Spaces:
Sleeping
Sleeping
Download automation/src/modules/scm/labels.ts from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 4 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/automation/src/modules/scm/labels.ts
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/automation/src/modules/scm/labels.ts
-
curl -L -o labels.ts https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/automation/src/modules/scm/labels.ts
4 kB
| /** | |
| * SCM label mapping: the ONE place SCM UI labels, nav targets and mock seed values live for automation. | |
| * Source: step targets in tests/cases/scm/*.yaml (tests/ui-glossary.yaml has no scm: section yet; reported to the Test Designer). | |
| * All UNVERIFIED against a Fusion pod. MOCK app only (mock-app/modules/scm). | |
| */ | |
| export const SCM_PERSONA_LABELS = { | |
| inventory_clerk: 'Inventory Clerk (MOCK)', inventory_clerk_org1: 'Inventory Clerk Org1 (MOCK)', inventory_viewer: 'Inventory Viewer (MOCK)', | |
| inventory_counter: 'Cycle Counter (MOCK)', inventory_manager: 'Inventory Manager (MOCK)', receiving_agent: 'Receiving Agent (MOCK)', | |
| cost_accountant: 'Cost Accountant (MOCK)', scm_integration: 'SCM Integration User (MOCK)', | |
| } as const; | |
| export type SCMPersona = keyof typeof SCM_PERSONA_LABELS; | |
| /** {{nav.*}} keys used by SCM cases -> mock work-area path. */ | |
| export const NAV = { inventory_management: '/scm/inventory', receipts: '/scm/receiving', cost_review: '/scm/cost/review', scheduled_processes: '/scheduled-processes' } as const; | |
| export const TASK = { | |
| createMiscTxn: 'Create Miscellaneous Transaction', manageItemQuantities: 'Manage Item Quantities', managePending: 'Manage Pending Transactions', | |
| approveCounts: 'Approve Cycle Count Adjustments', receivingErrors: 'Manage Receiving Transactions with Errors', reviewTransactions: 'Review Transactions', | |
| } as const; | |
| export const TASK_PATH: Record<string, string> = { [TASK.createMiscTxn]: '/scm/misc-transactions/new' }; | |
| export const FIELD = { | |
| organization: 'Organization', transactionType: 'Transaction Type', item: 'Item', subinventory: 'Subinventory', quantity: 'Quantity', unitCost: 'Unit Cost', | |
| accountAlias: 'Account Alias', document: 'Document', count: 'Count', | |
| } as const; | |
| export const PARAM = { costOrg: 'Cost Organization', subledger: 'Subledger Application', ledger: 'Ledger', mode: 'Mode', transferToGL: 'Transfer to General Ledger', postInGL: 'Post in General Ledger' } as const; | |
| export const PROCESS = { | |
| costDistributions: 'Create Cost Accounting Distributions', txnManager: 'Manage Inventory Transactions (transaction manager)', | |
| receivingProcessor: 'Receiving Transaction Processor', createAccounting: 'Create Accounting', transferToCosting: 'Transfer Transactions from Production to Costing', | |
| } as const; | |
| export const BUTTON = { submit: 'Submit', search: 'Search', resubmit: 'Resubmit', approve: 'Approve' } as const; | |
| export const TABLE = { | |
| itemQuantities: 'Item Quantities', subinventoryQuantities: 'Subinventory Quantities', pending: 'Pending Transactions', receivingErrors: 'Receiving Transactions with Errors', | |
| countAdjustments: 'Count Adjustments', costErrors: 'Transactions with Errors', | |
| } as const; | |
| export const COL = { onhand: 'On-hand', reserved: 'Reserved', atr: 'Available to Reserve', att: 'Available to Transact', nonNettable: 'Non-nettable', message: 'Message', action: 'Action', error: 'Error' } as const; | |
| /** Read-only value cells (getByTestId only for values). */ | |
| export const TID = { txnId: 'scm-txn-id', txnCostStatus: 'scm-txn-cost-status', stgStatus: 'scm-stg-status', rrqStatus: 'scm-rrq-status', rrqReceipt: 'scm-rrq-receipt' } as const; | |
| /** Synthetic seed values in mock-app/modules/scm/store.js (ASSUMED; never pod values). */ | |
| export const DATA = { | |
| invOrg: 'ZZ1', invOrg2: 'ZZ2', subinvStores: 'ZZ-STORES', subinvMrb: 'ZZ-MRB', badSubinv: 'ZZ-NOSUB', accountAlias: 'ZZ-ALIAS-ADJ (MOCK)', costOrg: 'ZZ Cost Org (MOCK)', | |
| testLedger: 'US Primary Ledger (MOCK)', fgItem: 'ZZ-FG-1', costProfile: 'ZZ Perpetual Average (MOCK)', | |
| account: { inv: '01-000-1410', ri: '01-000-1420', wip: '01-000-1430', accrual: '01-000-2110', resAbs: '01-000-5810', ohAbs: '01-000-5820', alias: '01-000-6900' }, | |
| } as const; | |
| export const ACCOUNT_CLASS = { inv: 'Inventory Valuation', ri: 'Receiving Inspection', accrual: 'Accrual', alias: 'Account Alias Offset', wip: 'Work in Process', resAbs: 'Resource Absorption', ohAbs: 'Overhead Absorption' } as const; | |