Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: add @carbon/paths package and integrate path utilities into Notifications component
naveenkash8cfe8733d8de
diff --git a/packages/notifications/package.json b/packages/notifications/package.jsonindex 003ba25373..2262d2f803 100644--- a/packages/notifications/package.json+++ b/packages/notifications/package.json@@ -1,5 +1,7 @@{- "dependencies": {},+ "dependencies": {+ "@carbon/paths": "workspace:*"+ },"devDependencies": {"@carbon/config": "workspace:*","@carbon/database": "workspace:*",diff --git a/packages/notifications/src/index.ts b/packages/notifications/src/index.tsindex 3f25891831..f841afe247 100644--- a/packages/notifications/src/index.ts+++ b/packages/notifications/src/index.ts@@ -1,5 +1,5 @@import type { Database } from "@carbon/database";-+import { path } from "@carbon/paths";// Notification event taxonomy. Kept as a standalone package because the// enums are referenced from app routes, scheduled jobs, and the inngest// notify function. The previous Novu trigger helpers have been removed —@@ -109,42 +109,6 @@ export function getNotificationTopic(type ApprovalDocumentType = Database["public"]["Enums"]["approvalDocumentType"];-const x = "x";-// Path templates for ERP records that notifications can deep-link to. These-// mirror apps/erp/app/utils/path.ts — kept here (not imported from the app)-// because @carbon/notifications is upstream of the apps in the dependency-// graph. If a route changes in path.ts, update the matching builder here.-export const notificationPath = {- gauge: (id: string) => `/${x}/quality/gauges/${id}`,- job: (id: string) => `/${x}/job/${id}/details`,- jobOperation: (- jobId: string,- makeMethodId: string,- operationId: string,- materialId?: string- ) => {- const base = materialId- ? `/${x}/job/${jobId}/make/${makeMethodId}`- : `/${x}/job/${jobId}/method/${makeMethodId}`;- return `${base}?selectedOperation=${operationId}`;- },- maintenanceDispatch: (id: string) => `/${x}/maintenance/${id}`,- nonConformance: (id: string) => `/${x}/issue/${id}`,- procedure: (id: string) => `/${x}/procedure/${id}`,- purchaseInvoice: (id: string) => `/${x}/purchase-invoice/${id}/details`,- purchaseOrder: (id: string) => `/${x}/purchase-order/${id}/details`,- qualityDocument: (id: string) => `/${x}/quality-document/${id}`,- quote: (id: string) => `/${x}/quote/${id}/details`,- risk: (id: string) => `/${x}/quality/risks/${id}`,- salesOrder: (id: string) => `/${x}/sales-order/${id}/details`,- salesRfq: (id: string) => `/${x}/sales-rfq/${id}`,- stockTransfer: (id: string) => `/${x}/stock-transfer/${id}`,- suggestion: (id: string) => `/${x}/resources/suggestions/${id}`,- supplierApproval: (id: string) => `/${x}/supplier/${id}/approval`,- supplierQuote: (id: string) => `/${x}/supplier-quote/${id}/details`,- training: (id: string) => `/share/training/${id}`-} as const;-// Relative path that the notification deep-links to in the ERP app. Used for// email CTA buttons and (in future) topbar click handlers. Returns null if// the event doesn't correspond to a single navigable record.@@ -164,62 +128,59 @@ export function getNotificationLink(switch (event) {case NotificationEvent.JobAssignment:case NotificationEvent.JobCompleted:- return notificationPath.job(recordId);+ return path.to.job(recordId);case NotificationEvent.JobOperationAssignment:case NotificationEvent.JobOperationMessage: {const { jobId, operationId, makeMethodId, materialId } = context ?? {};- if (!jobId || !operationId || !makeMethodId) return null;- return notificationPath.jobOperation(- jobId,- makeMethodId,- operationId,- materialId- );+ const link = materialId+ ? path.to.jobMakeMethod(jobId, makeMethodId)+ : path.to.jobMethod(jobId, makeMethodId);+ return `${link}?selectedOperation=${operationId}`;}case NotificationEvent.PurchaseInvoiceAssignment:- return notificationPath.purchaseInvoice(recordId);+ return path.to.purchaseInvoice(recordId);case NotificationEvent.PurchaseOrderAssignment:- return notificationPath.purchaseOrder(recordId);+ return path.to.purchaseOrder(recordId);case NotificationEvent.QuoteAssignment:case NotificationEvent.QuoteExpired:case NotificationEvent.DigitalQuoteResponse:- return notificationPath.quote(recordId);+ return path.to.quote(recordId);case NotificationEvent.SupplierQuoteAssignment:case NotificationEvent.SupplierQuoteResponse:- return notificationPath.supplierQuote(recordId);+ return path.to.supplierQuote(recordId);case NotificationEvent.SalesOrderAssignment:- return notificationPath.salesOrder(recordId);+ return path.to.salesOrder(recordId);case NotificationEvent.SalesRfqAssignment:case NotificationEvent.SalesRfqReady:- return notificationPath.salesRfq(recordId);+ return path.to.salesRfq(recordId);case NotificationEvent.MaintenanceDispatchAssignment:case NotificationEvent.MaintenanceDispatchCreated:- return notificationPath.maintenanceDispatch(recordId);+ return path.to.maintenanceDispatch(recordId);case NotificationEvent.GaugeCalibrationExpired:- return notificationPath.gauge(recordId);+ return path.to.gauge(recordId);case NotificationEvent.NonConformanceAssignment:- return notificationPath.nonConformance(recordId);+ return path.to.issue(recordId);case NotificationEvent.RiskAssignment:- return notificationPath.risk(recordId);+ return path.to.risk(recordId);case NotificationEvent.ProcedureAssignment:- return notificationPath.procedure(recordId);+ return path.to.procedure(recordId);case NotificationEvent.TrainingAssignment:- return notificationPath.training(recordId);+ return path.to.training(recordId);case NotificationEvent.StockTransferAssignment:- return notificationPath.stockTransfer(recordId);+ return path.to.stockTransfer(recordId);case NotificationEvent.SuggestionResponse:- return notificationPath.suggestion(recordId);+ return path.to.suggestion(recordId);case NotificationEvent.ApprovalApproved:case NotificationEvent.ApprovalRejected:case NotificationEvent.ApprovalRequested:if (context?.documentType === "purchaseOrder") {- return notificationPath.purchaseOrder(recordId);+ return path.to.purchaseOrder(recordId);}if (context?.documentType === "qualityDocument") {- return notificationPath.qualityDocument(recordId);+ return path.to.qualityDocument(recordId);}if (context?.documentType === "supplier") {- return notificationPath.supplierApproval(recordId);+ return path.to.supplierApproval(recordId);}return null;default:diff --git a/packages/paths/package.json b/packages/paths/package.jsonnew file mode 100644index 0000000000..31e0a51a10--- /dev/null+++ b/packages/paths/package.json@@ -0,0 +1,23 @@+{+ "name": "@carbon/paths",+ "private": true,+ "version": "0.0.0",+ "type": "module",+ "sideEffects": false,+ "exports": {+ ".": "./src/index.ts"+ },+ "dependencies": {+ "react-router": "catalog:"+ },+ "devDependencies": {+ "@carbon/config": "workspace:*",+ "@types/node": "20.19.39",+ "typescript": "catalog:"+ },+ "scripts": {+ "clean": "rimraf .turbo node_modules dist",+ "lint": "biome lint --write ",+ "typecheck": "tsgo --noEmit"+ }+}diff --git a/packages/paths/src/index.ts b/packages/paths/src/index.tsnew file mode 100644index 0000000000..2d5a454fd0--- /dev/null+++ b/packages/paths/src/index.ts@@ -0,0 +1,1776 @@+import { generatePath } from "react-router";++const x = "/x"; // from ~/routes/x+ folder+const api = "/api"; // from ~/routes/api+ folder+const file = "/file"; // from ~/routes/file+ folder+const share = "/share"; // from ~/routes/shared+ folder+const onboarding = "/onboarding"; // from ~/routes/onboarding+ folder++// Resolve app URLs from env without importing @carbon/env / @carbon/auth.+// Those packages have re-export chains that don't resolve in raw-Node ESM+// runtimes (e.g. Inngest), and importing them here pulls @carbon/utils+// back into a cycle. Keep this file self-contained.+const env =+ (typeof process !== "undefined" && process.env) ||+ ({} as Record<string, string | undefined>);+const isProd = env.VERCEL_ENV === "production" || env.NODE_ENV === "production";+const isPreview = env.VERCEL_ENV === "preview";+const isControlled =+ env.CONTROLLED_ENVIRONMENT === "true" || env.CONTROLLED_ENVIRONMENT === "1";++export const ERP_URL = isProd+ ? (env.ERP_URL ??+ (isControlled ? "https://itar.carbon.ms" : "https://app.carbon.ms"))+ : isPreview+ ? `https://${env.VERCEL_URL}`+ : (env.ERP_URL ?? "http://localhost:3000");++export const MES_URL = isProd+ ? (env.MES_URL ??+ (isControlled ? "https://mes.itar.carbon.ms" : "https://mes.carbon.ms"))+ : isPreview+ ? `https://${env.VERCEL_URL}`+ : (env.MES_URL ?? "http://localhost:3001");++export const SUPABASE_URL = env.SUPABASE_URL ?? "";++export const path = {+ to: {+ api: {+ abilities: `${api}/resources/abilities`,+ accounts: `${api}/accounting/accounts`,+ assign: `${api}/assign`,+ batchNumbers: (itemId: string) =>+ generatePath(`${api}/inventory/batch-numbers?itemId=${itemId}`),++ billOfMaterials: (methodId: string, withOperations: boolean = false) =>+ generatePath(+ `${api}/items/methods/${methodId}/bom?withOperations=${withOperations}`+ ),+ billOfMaterialsCsv: (methodId: string, withOperations: boolean = false) =>+ generatePath(+ `${api}/items/methods/${methodId}/bom.csv?withOperations=${withOperations}`+ ),+ chat: `${api}/ai/chat`,+ countries: `${api}/countries`,+ currencies: `${api}/accounting/currencies`,+ customerContacts: (id: string) =>+ generatePath(`${api}/sales/customer-contacts/${id}`),+ customerLocations: (id: string) =>+ generatePath(`${api}/sales/customer-locations/${id}`),+ customerStatuses: `${api}/sales/customer-statuses`,+ customerTypes: `${api}/sales/customer-types`,+ customFieldOptions: (table: string, fieldId: string) =>+ generatePath(`${api}/settings/custom-fields/${table}/${fieldId}`),+ costCenters: `${api}/accounting/cost-centers`,+ departments: `${api}/people/departments`,+ timecard: `${api}/people/timecard`,+ outstandingTrainings: `${api}/resources/trainings`,+ digitalQuote: (id: string) =>+ generatePath(`${api}/sales/digital-quote/${id}`),+ digitalSupplierQuote: (id: string) =>+ generatePath(`${api}/purchasing/digital-quote/${id}`),+ docs: `${api}/docs`,+ employeeTypes: `${api}/users/employee-types`,+ emptyPermissions: `${api}/users/empty-permissions`,+ failureModes: `${api}/resources/failure-modes`,+ gauges: `${api}/quality/gauges`,+ generateCsvColumns: (table: string) =>+ generatePath(`${api}/ai/csv/${table}/columns`),+ groupsByType: (type?: string) =>+ generatePath(`${api}/users/groups?type=${type}`),+ item: (type: string) => generatePath(`${api}/item/${type}`),+ itemCostRecalculate: (itemId: string) =>+ generatePath(`${api}/items/${itemId}/recalculate-cost`),+ itemConfigurable: `${api}/items/configurable`,+ itemForecast: (itemId: string, locationId: string) =>+ generatePath(`${api}/items/${itemId}/${locationId}/forecast`),+ itemPostingGroups: `${api}/items/groups`,+ jobBillOfMaterials: (id: string, withOperations: boolean = false) =>+ generatePath(+ `${api}/production/methods/${id}/bom?withOperations=${withOperations}`+ ),+ jobBillOfMaterialsCsv: (id: string, withOperations: boolean = false) =>+ generatePath(+ `${api}/production/methods/${id}/bom.csv?withOperations=${withOperations}`+ ),+ jobs: `${api}/production/jobs`,+ kanban: (id: string) => generatePath(`${api}/kanban/${id}`),+ kanbanCollision: (id: string) =>+ generatePath(`${api}/kanban/collision/${id}`),+ kanbanComplete: (id: string) =>+ generatePath(`${api}/kanban/complete/${id}`),+ kanbanJobLink: (id: string) => generatePath(`${api}/kanban/link/${id}`),+ kanbanStart: (id: string) => generatePath(`${api}/kanban/start/${id}`),+ locations: `${api}/resources/locations`,+ maintenanceDispatches: `${api}/resources/maintenance`,+ maintenanceSchedules: `${api}/resources/scheduled-maintenance`,+ materialDimensions: (formId: string) =>+ generatePath(`${api}/items/dimensions/${formId}`),+ materialFinishes: (substanceId: string) =>+ generatePath(`${api}/items/finishes/${substanceId}`),+ materialForms: `${api}/items/forms`,+ materials: (materialFormId?: string) =>+ generatePath(+ `${api}/items/materials${+ materialFormId ? `?materialFormId=${materialFormId}` : ""+ }`+ ),+ materialGrades: (substanceId: string) =>+ generatePath(`${api}/items/grades/${substanceId}`),+ materialTypes: (substanceId: string, formId: string) =>+ generatePath(`${api}/items/types/${substanceId}/${formId}`),+ materialSubstances: `${api}/items/substances`,+ messagingNotify: `${api}/messaging/notify`,+ mrp: (locationId?: string) =>+ generatePath(+ `${api}/mrp${locationId ? `?location=${locationId}` : ""}`+ ),+ modelUpload: `${api}/model/upload`,+ onShapeBom: (documentId: string, versionId: string, elementId: string) =>+ generatePath(+ `${api}/integrations/onshape/d/${documentId}/v/${versionId}/e/${elementId}/bom`+ ),+ onShapeDocuments: `${api}/integrations/onshape/documents`,+ onShapeVersions: (documentId: string) =>+ generatePath(`${api}/integrations/onshape/d/${documentId}/versions`),+ onShapeElements: (documentId: string, versionId: string) =>+ generatePath(+ `${api}/integrations/onshape/d/${documentId}/v/${versionId}/elements`+ ),+ onShapeSync: `${api}/integrations/onshape/sync`,+ linearCreateIssue: `${api}/integrations/linear/issue/create`,+ linearLinkExistingIssue: `${api}/integrations/linear/issue/link`,+ linearSyncNotes: `${api}/integrations/linear/issue/sync-notes`,+ jiraCreateIssue: `${api}/integrations/jira/issue/create`,+ jiraLinkExistingIssue: `${api}/integrations/jira/issue/link`,+ jiraSyncNotes: `${api}/integrations/jira/issue/sync-notes`,+ outsideOperations: (jobId: string) =>+ generatePath(`${api}/production/outside-operations/${jobId}`),+ purchasingKpi: (key: string) =>+ generatePath(`${api}/purchasing/kpi/${key}`),+ qualityKpi: (key: string) => generatePath(`${api}/quality/kpi/${key}`),+ procedures: `${api}/production/procedures`,+ processes: `${api}/resources/processes`,+ itemRecipeProcesses: (itemId: string) =>+ generatePath(`${api}/items/${itemId}/recipe-processes`),+ productionKpi: (key: string) =>+ generatePath(`${api}/production/kpi/${key}`),+ quoteBillOfMaterials: (+ methodId: string,+ withOperations: boolean = false+ ) =>+ generatePath(+ `${api}/sales/quote/line/${methodId}/bom?withOperations=${withOperations}`+ ),+ quoteBillOfMaterialsCsv: (+ methodId: string,+ withOperations: boolean = false+ ) =>+ generatePath(+ `${api}/sales/quote/line/${methodId}/bom.csv?withOperations=${withOperations}`+ ),+ quotes: `${api}/sales/quotes`,+ quoteLines: (quoteId: string) =>+ generatePath(`${api}/sales/quotes/${quoteId}/lines`),+ rollback: (table: string, id: string) =>+ generatePath(+ `${api}/settings/sequence/rollback?table=${table}¤tSequence=${id}`+ ),+ resourcesKpi: (key: string) =>+ generatePath(`${api}/resources/kpi/${key}`),+ salesCustomerOverride: `${api}/sales/customer-override`,+ salesKpi: (key: string) => generatePath(`${api}/sales/kpi/${key}`),+ salesResolvePrice: `${api}/sales/resolve-price`,+ salesOrders: `${api}/sales/orders`,+ scrapReasons: `${api}/production/scrap-reasons`,+ search: `${api}/search`,+ seedQualityDocuments: `${api}/quality/documents/seed`,+ sequences: (table: string) => `${api}/settings/sequences?table=${table}`,+ serialNumbers: (itemId: string, isReadOnly: boolean) =>+ generatePath(+ `${api}/inventory/serial-numbers?itemId=${itemId}&isReadOnly=${isReadOnly}`+ ),+ services: `${api}/items/services`,+ shifts: (id: string) =>+ generatePath(`${api}/people/shifts?location=${id}`),+ storageUnits: (id: string) =>+ generatePath(`${api}/inventory/storage-units?locationId=${id}`),+ storageUnitsTree: (id: string) =>+ generatePath(`${api}/inventory/storage-units-tree?locationId=${id}`),+ storageUnitsWithQuantities: (locationId: string, itemId?: string) =>+ generatePath(+ `${api}/inventory/storage-units-with-quantities?locationId=${locationId}${+ itemId ? `&itemId=${itemId}` : ""+ }`+ ),+ storageTypes: `${api}/inventory/storage-types`,+ storageUnitDescendants: (id: string) =>+ generatePath(`${api}/inventory/storage-unit-descendants?id=${id}`),+ storageUnitChildren: (parentId: string) =>+ generatePath(+ `${api}/inventory/storage-unit-children?parentId=${parentId}`+ ),+ supplierContacts: (id: string) =>+ generatePath(`${api}/purchasing/supplier-contacts/${id}`),+ supplierLocations: (id: string) =>+ generatePath(`${api}/purchasing/supplier-locations/${id}`),+ supplierProcesses: (id?: string) =>+ generatePath(`${api}/purchasing/supplier-processes/${id}`),+ supplierTypes: `${api}/purchasing/supplier-types`,+ tags: (table?: string) =>+ generatePath(`${api}/shared/tags?table=${table}`),+ unitOfMeasures: `${api}/items/uoms`,+ webhookTables: `${api}/webhook/tables`,+ webhookStripe: `${api}/webhook/stripe`,+ workCentersByLocation: (id: string) =>+ generatePath(`${api}/resources/work-centers?location=${id}`),+ workCenters: `${api}/resources/work-centers`,+ paymentTerms: `${api}/accounting/payment-terms`,+ shippingMethods: `${api}/inventory/shipping-methods`+ },+ external: {+ mes: MES_URL,+ mesJobOperationsForJob: (jobId: string) =>+ `${MES_URL}/x/operations?search=${encodeURIComponent(jobId)}`,+ mesJobOperation: (id: string) => `${MES_URL}/x/operation/${id}`,+ mesJobOperationStart: (id: string, type: "Setup" | "Labor" | "Machine") =>+ `${MES_URL}/x/start/${id}?type=${type}`,+ mesJobOperationComplete: (id: string) => `${MES_URL}/x/end/${id}`+ },+ file: {+ cadModel: (id: string) => generatePath(`${file}/model/${id}`),+ kanbanLabelsPdf: (+ ids: string | string[],+ action: "order" | "start" | "complete"+ ) => {+ const idString = Array.isArray(ids) ? ids.join(",") : ids;+ return generatePath(+ `${file}/kanban/labels/${action}.pdf?ids=${idString}`+ );+ },+ kanbanQrCode: (id: string, action: "order" | "start" | "complete") =>+ generatePath(`${file}/kanban/${id}/${action}.png`),+ jobTraveler: (id: string) => generatePath(`${file}/traveler/${id}.pdf`),+ jobTravelerByJobId: (jobId: string) =>+ generatePath(`${file}/job/${jobId}/traveler.pdf`),+ nonConformance: (id: string) => generatePath(`${file}/issue/${id}.pdf`),+ operationLabelsPdf: (+ id: string,+ {+ labelSize,+ trackedEntityId+ }: { labelSize?: string; trackedEntityId?: string } = {}+ ) => {+ let url = `${file}/operation/${id}/labels.pdf`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);+ if (trackedEntityId) params.append("trackedEntityId", trackedEntityId);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ operationLabelsZpl: (+ id: string,+ {+ labelSize,+ trackedEntityId+ }: { labelSize?: string; trackedEntityId?: string } = {}+ ) => {+ let url = `${file}/operation/${id}/labels.zpl`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);+ if (trackedEntityId) params.append("trackedEntityId", trackedEntityId);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ preview: (bucket: string, path: string) =>+ generatePath(`${file}/preview/${bucket}/${path}`),+ previewImage: (bucket: string, path: string) =>+ generatePath(`${file}/preview/image?file=${bucket}/${path}`),+ previewFile: (path: string) => generatePath(`${file}/preview/${path}`),+ purchaseOrder: (id: string) =>+ generatePath(`${file}/purchase-order/${id}.pdf`),+ receiptLabelsPdf: (+ id: string,+ { labelSize, lineId }: { labelSize?: string; lineId?: string } = {}+ ) => {+ let url = `${file}/receipt/${id}/labels.pdf`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);+ if (lineId) params.append("lineId", lineId);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ receiptLabelsZpl: (+ id: string,+ { labelSize, lineId }: { labelSize?: string; lineId?: string } = {}+ ) => {+ let url = `${file}/receipt/${id}/labels.zpl`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);+ if (lineId) params.append("lineId", lineId);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },++ salesOrder: (id: string) => generatePath(`${file}/sales-order/${id}.pdf`),+ salesInvoice: (id: string) =>+ generatePath(`${file}/sales-invoice/${id}.pdf`),+ shipment: (id: string) => generatePath(`${file}/shipment/${id}.pdf`),+ shipmentLabelsPdf: (+ id: string,+ { labelSize, lineId }: { labelSize?: string; lineId?: string } = {}+ ) => {+ let url = `${file}/shipment/${id}/labels.pdf`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);+ if (lineId) params.append("lineId", lineId);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ shipmentLabelsZpl: (+ id: string,+ { labelSize, lineId }: { labelSize?: string; lineId?: string } = {}+ ) => {+ let url = `${file}/shipment/${id}/labels.zpl`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);+ if (lineId) params.append("lineId", lineId);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ trackedEntityLabelPdf: (+ id: string,+ { labelSize }: { labelSize?: string } = {}+ ) => {+ let url = `${file}/entity/${id}/labels.pdf`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ trackedEntityLabelZpl: (+ id: string,+ { labelSize }: { labelSize?: string } = {}+ ) => {+ let url = `${file}/entity/${id}/labels.zpl`;+ const params = new URLSearchParams();++ if (labelSize) params.append("labelSize", labelSize);++ const queryString = params.toString();+ if (queryString) url += `?${queryString}`;++ return generatePath(url);+ },+ stockTransfer: (id: string) =>+ generatePath(`${file}/stock-transfer/${id}.pdf`),+ quote: (id: string) => generatePath(`${file}/quote/${id}.pdf`)+ },+ legal: {+ termsAndConditions: "https://carbon.ms/terms",+ privacyPolicy: "https://carbon.ms/privacy"+ },+ onboarding: {+ company: `${onboarding}/company`,+ location: `${onboarding}/location`,+ plan: `${onboarding}/plan`,+ root: `${onboarding}`,+ theme: `${onboarding}/theme`,+ user: `${onboarding}/user`+ },+ authenticatedRoot: x,+ acknowledge: `${x}/acknowledge`,+ approvalRules: `${x}/settings/approval-rules`,+ approvalRule: (id: string) =>+ generatePath(`${x}/settings/approval-rules/${id}`),+ newApprovalRule: (documentType?: string) =>+ documentType+ ? `${x}/settings/approval-rules/new?type=${documentType}`+ : `${x}/settings/approval-rules/new`,+ deleteApprovalRule: (id: string) =>+ generatePath(`${x}/settings/approval-rules/${id}/delete`),+ abilities: `${x}/resources/abilities`,+ ability: (id: string) => generatePath(`${x}/resources/ability/${id}`),+ account: `${x}/account`,+ accountPersonal: `${x}/account/personal`,+ accountPassword: `${x}/account/password`,+ accounting: `${x}/accounting`,+ accountingDefaults: `${x}/accounting/defaults`,+ accountingJournals: `${x}/accounting/journals`,+ accountingSettings: `${x}/settings/accounting`,+ journalEntry: (id: string) => generatePath(`${x}/journal-entry/${id}`),+ journalEntryDetails: (id: string) =>+ generatePath(`${x}/journal-entry/${id}/details`),+ newJournalEntry: `${x}/accounting/journals/new`,+ postJournalEntry: (id: string) =>+ generatePath(`${x}/journal-entry/${id}/post`),+ reverseJournalEntry: (id: string) =>+ generatePath(`${x}/journal-entry/${id}/reverse`),+ journalLineDimensions: (lineId: string) =>+ `/api/accounting/journal-line-dimensions/${lineId}`,+ accountingGroupsBankAccounts: `${x}/accounting/groups/bank-accounts`,+ accountingGroupsFixedAssets: `${x}/accounting/groups/fixed-assets`,+ accountingGroupsInventory: `${x}/accounting/groups/inventory`,+ accountingGroupsPurchasing: `${x}/accounting/groups/purchasing`,+ accountingGroupsSales: `${x}/accounting/groups/sales`,+ accountingRoot: `${x}/accounting`,+ intercompany: `${x}/accounting/intercompany`,+ newIntercompanyTransaction: `${x}/accounting/intercompany/new`,+ activeMethodVersion: (id: string) =>+ generatePath(`${x}/items/methods/versions/activate/${id}`),+ activateGauge: (id: string) =>+ generatePath(`${x}/quality/gauges/activate/${id}`),+ attribute: (id: string) => generatePath(`${x}/people/attribute/${id}`),+ attributes: `${x}/people/attributes`,+ apiIntroduction: `/docs/api/js/intro`,+ apiIntro: (lang: string) => generatePath(`/docs/api/${lang}/intro/`),+ apiTable: (lang: string, table: string) =>+ generatePath(`/docs/api/${lang}/table/${table}`),+ apiKey: (id: string) => generatePath(`${x}/settings/api-keys/${id}`),+ apiKeys: `${x}/settings/api-keys`,+ attributeCategory: (id: string) =>+ generatePath(`${x}/people/attributes/${id}`),+ attributeCategoryList: (id: string) =>+ generatePath(`${x}/people/attributes/list/${id}`),+ auditLog: `${x}/settings/audit-logs`,+ auditLogDetails: `${x}/settings/audit-logs/details`,+ batchProperty: (itemId: string) =>+ generatePath(`${x}/inventory/batch-property/${itemId}/property`),+ batchPropertyOrder: (itemId: string) =>+ generatePath(`${x}/inventory/batch-property/${itemId}/property/order`),+ billing: `${x}/settings/billing`,+ bulkEditPermissions: `${x}/users/bulk-edit-permissions`,+ bulkUpdateItems: `${x}/items/update`,+ bulkUpdateProductionPlanning: `${x}/production/planning/update`,+ bulkUpdatePurchasingPlanning: `${x}/purchasing/planning/update`,+ bulkUpdateProcedure: `${x}/procedure/update`,+ bulkUpdateJob: `${x}/job/update`,+ bulkUpdateIssue: `${x}/issue/update`,+ updateIssueItem: `${x}/issue/item/update`,+ splitIssueItem: `${x}/issue/item/split`,+ assignIssueItemEntities: `${x}/issue/item/assign-entities`,+ issueActionTasksOrder: `${x}/issue/action-tasks/order`,+ bulkUpdateIssueWorkflow: `${x}/issue-workflow/update`,+ bulkUpdatePurchaseOrder: `${x}/purchase-order/update`,+ bulkUpdatePurchasingRfq: `${x}/purchasing-rfq/update`,+ bulkUpdatePurchaseInvoice: `${x}/purchase-invoice/update`,+ bulkUpdateQuote: `${x}/quote/update`,+ bulkUpdateQualityDocument: `${x}/quality-document/update`,+ bulkUpdateReceiptLine: `${x}/receipt/lines/update`,+ bulkUpdateSalesInvoice: `${x}/sales-invoice/update`,+ bulkUpdateSalesOrder: `${x}/sales-order/update`,+ bulkUpdateSalesRfq: `${x}/sales-rfq/update`,+ bulkUpdateShipmentLine: `${x}/shipment/lines/update`,+ bulkUpdateStockTransferLine: `${x}/stock-transfer/lines/update`,+ bulkUpdateSupplierQuote: `${x}/supplier-quote/update`,+ bulkUpdateTraining: `${x}/training/update`,+ calibrations: `${x}/quality/calibrations`,+ chartOfAccount: (id: string) =>+ generatePath(`${x}/accounting/charts/${id}`),+ chartOfAccounts: `${x}/accounting/charts`,+ moveChartOfAccount: (id: string) =>+ generatePath(`${x}/accounting/charts/move/${id}`),+ costCenter: (id: string) =>+ generatePath(`${x}/accounting/cost-centers/${id}`),+ costCenters: `${x}/accounting/cost-centers`,+ trialBalance: `${x}/accounting/trial-balance`,+ balanceSheet: `${x}/accounting/balance-sheet`,+ incomeStatement: `${x}/accounting/income-statement`,+ company: `${x}/settings/company`,+ companySwitch: (companyId: string) =>+ generatePath(`${x}/settings/company/switch/${companyId}`),+ companies: `${x}/settings/companies`,+ completeTrainingAssignment: (id: string) =>+ generatePath(`${share}/training/${id}`),+ configurationParameter: (itemId: string) =>+ generatePath(`${x}/part/${itemId}/parameter`),+ configurationParameterGroup: (itemId: string) =>+ generatePath(`${x}/part/${itemId}/parameter/group`),+ configurationParameterGroupOrder: (itemId: string) =>+ generatePath(`${x}/part/${itemId}/parameter/group/order`),+ configurationParameterOrder: (itemId: string) =>+ generatePath(`${x}/part/${itemId}/parameter/order`),+ configurationRule: (itemId: string) =>+ generatePath(`${x}/part/${itemId}/rule`),+ contractor: (id: string) =>+ generatePath(`${x}/resources/contractors/${id}`),+ contractors: `${x}/resources/contractors`,+ consumable: (id: string) => generatePath(`${x}/consumable/${id}`),+ consumables: `${x}/items/consumables`,+ consumableCosting: (id: string) =>+ generatePath(`${x}/consumable/${id}/costing`),+ consumableDetails: (id: string) =>+ generatePath(`${x}/consumable/${id}/details`),+ consumableInventory: (id: string) =>+ generatePath(`${x}/consumable/${id}/inventory`),+ consumableInventoryLocation: (id: string, locationId: string) =>+ generatePath(`${x}/consumable/${id}/inventory?location=${locationId}`),+ consumablePlanning: (id: string) =>+ generatePath(`${x}/consumable/${id}/planning`),+ consumablePlanningLocation: (id: string, locationId: string) =>+ generatePath(`${x}/consumable/${id}/planning?location=${locationId}`),+ consumablePurchasing: (id: string) =>+ generatePath(`${x}/consumable/${id}/purchasing`),+ consumableQuality: (id: string) =>+ generatePath(`${x}/consumable/${id}/quality`),+ consumableRoot: `${x}/consumable`,+ consumableSupplier: (itemId: string, id: string) =>+ generatePath(`${x}/consumable/${itemId}/purchasing/${id}`),+ consumableSuppliers: (id: string) =>+ generatePath(`${x}/consumable/${id}/suppliers`),+ convertQuoteToOrder: (id: string) =>+ generatePath(`${x}/quote/${id}/convert`),+ convertSupplierQuoteToOrder: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/convert`),+ exchangeRate: (id: string) =>+ generatePath(`${x}/accounting/exchange-rates/${id}`),+ exchangeRates: `${x}/accounting/exchange-rates`,+ dimension: (id: string) => generatePath(`${x}/accounting/dimensions/${id}`),+ dimensions: `${x}/accounting/dimensions`,+ customer: (id: string) => generatePath(`${x}/customer/${id}`),+ customerDetails: (id: string) =>+ generatePath(`${x}/customer/${id}/details`),+ customerRoot: `${x}/customer`,+ customers: `${x}/sales/customers`,+ customerAccounts: `${x}/users/customers`,+ customerAccounting: (id: string) =>+ generatePath(`${x}/customer/${id}/accounting`),+ customerContact: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/contacts/${id}`),+ customerContacts: (id: string) =>+ generatePath(`${x}/customer/${id}/contacts`),+ customerLocation: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/locations/${id}`),+ customerLocations: (id: string) =>+ generatePath(`${x}/customer/${id}/locations`),+ customerPart: (id: string, customerPartToItemId: string) =>+ generatePath(+ `${x}/part/${id}/sales/customer-parts/${customerPartToItemId}`+ ),+ customerPayment: (id: string) =>+ generatePath(`${x}/customer/${id}/payments`),+ customerPortals: `${x}/sales/customer-portals`,+ customerPortal: (id: string) =>+ generatePath(`${x}/sales/customer-portals/${id}`),+ customerShipping: (id: string) =>+ generatePath(`${x}/customer/${id}/shipping`),+ customerTax: (id: string) => generatePath(`${x}/customer/${id}/tax`),+ customerRisks: (id: string) => generatePath(`${x}/customer/${id}/risks`),+ customerStatus: (id: string) =>+ generatePath(`${x}/sales/customer-statuses/${id}`),+ customerStatuses: `${x}/sales/customer-statuses`,+ customerType: (id: string) =>+ generatePath(`${x}/sales/customer-types/${id}`),+ customerTypes: `${x}/sales/customer-types`,+ customField: (tableId: string, id: string) =>+ generatePath(`${x}/settings/custom-fields/${tableId}/${id}`),+ customFields: `${x}/settings/custom-fields`,+ customFieldsTable: (table: string) =>+ generatePath(`${x}/settings/custom-fields/${table}`),+ customFieldList: (id: string) =>+ generatePath(`${x}/settings/custom-fields/${id}`),++ deactivateUsers: `${x}/users/deactivate`,+ defaultRevision: (id: string) =>+ generatePath(`${x}/items/revisions/default/${id}`),+ deleteAbility: (id: string) =>+ generatePath(`${x}/resources/abilities/delete/${id}`),+ deleteAccountingCharts: (id: string) =>+ generatePath(`${x}/accounting/charts/delete/${id}`),+ deleteCostCenter: (id: string) =>+ generatePath(`${x}/accounting/cost-centers/delete/${id}`),+ deleteApiKey: (id: string) =>+ generatePath(`${x}/settings/api-keys/delete/${id}`),+ deleteAttribute: (id: string) =>+ generatePath(`${x}/people/attribute/delete/${id}`),+ deleteAttributeCategory: (id: string) =>+ generatePath(`${x}/people/attributes/delete/${id}`),+ deleteBatchProperty: (itemId: string, id: string) =>+ generatePath(+ `${x}/inventory/batch-property/${itemId}/property/delete/${id}`+ ),+ deleteCompany: (id: string) =>+ generatePath(`${x}/settings/companies/delete/${id}`),+ deleteConfigurationParameter: (itemId: string, id: string) =>+ generatePath(`${x}/part/${itemId}/parameter/delete/${id}`),+ deleteConfigurationParameterGroup: (itemId: string, id: string) =>+ generatePath(`${x}/part/${itemId}/parameter/group/delete/${id}`),+ deleteConfigurationRule: (itemId: string, field: string) =>+ generatePath(`${x}/part/${itemId}/rule/delete/${field}`),+ deleteContractor: (id: string) =>+ generatePath(`${x}/resources/contractors/delete/${id}`),+ deleteExchangeRate: (id: string) =>+ generatePath(`${x}/accounting/exchange-rates/delete/${id}`),+ deleteDimension: (id: string) =>+ generatePath(`${x}/accounting/dimensions/delete/${id}`),+ deleteCustomer: (id: string) => generatePath(`${x}/customer/${id}/delete`),+ deleteCustomerContact: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/contacts/delete/${id}`),+ deleteCustomerLocation: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/locations/delete/${id}`),+ deleteCustomerPart: (id: string, customerPartToItemId: string) =>+ generatePath(+ `${x}/part/${id}/sales/customer-parts/delete/${customerPartToItemId}`+ ),+ deleteCustomerStatus: (id: string) =>+ generatePath(`${x}/sales/customer-statuses/delete/${id}`),+ deleteCustomerType: (id: string) =>+ generatePath(`${x}/sales/customer-types/delete/${id}`),+ deleteCustomField: (tableId: string, id: string) =>+ generatePath(`${x}/settings/custom-fields/${tableId}/delete/${id}`),+ deleteDepartment: (id: string) =>+ generatePath(`${x}/people/departments/delete/${id}`),+ deleteDocument: (id: string) => generatePath(`${x}/documents/${id}/trash`),+ deleteDocumentPermanently: (id: string) =>+ generatePath(`${x}/documents/${id}/delete`),+ deleteEmployeeAbility: (abilityId: string, id: string) =>+ generatePath(`${x}/resources/ability/${abilityId}/employee/delete/${id}`),+ deleteEmployeeType: (id: string) =>+ generatePath(`${x}/users/employee-types/delete/${id}`),+ deleteFailureMode: (id: string) =>+ generatePath(`${x}/resources/failure-modes/delete/${id}`),+ deleteGauge: (id: string) =>+ generatePath(`${x}/quality/gauges/delete/${id}`),+ deleteGaugeCalibrationRecord: (id: string) =>+ generatePath(`${x}/quality/calibrations/delete/${id}`),+ deleteGaugeType: (id: string) =>+ generatePath(`${x}/quality/gauge-types/delete/${id}`),+ deleteGroup: (id: string) => generatePath(`${x}/users/groups/delete/${id}`),+ deleteHoliday: (id: string) =>+ generatePath(`${x}/people/holidays/delete/${id}`),+ deleteTimecard: (id: string) =>+ generatePath(`${x}/people/timecard/delete/${id}`),+ deleteLocation: (id: string) =>+ generatePath(`${x}/resources/locations/delete/${id}`),+ deleteItem: (id: string) => generatePath(`${x}/items/delete/${id}`),+ deleteItemPostingGroup: (id: string) =>+ generatePath(`${x}/items/groups/delete/${id}`),+ deleteJournalEntry: (id: string) =>+ generatePath(`${x}/journal-entry/${id}/delete`),+ deleteJob: (id: string) => generatePath(`${x}/job/${id}/delete`),+ deleteJobMaterial: (jobId: string, id: string) =>+ generatePath(`${x}/job/methods/${jobId}/material/delete/${id}`),+ deleteJobOperationStep: (id: string) =>+ generatePath(`${x}/job/methods/operation/step/delete/${id}`),+ deleteJobOperationParameter: (id: string) =>+ generatePath(`${x}/job/methods/operation/parameter/delete/${id}`),+ deleteJobOperationTool: (id: string) =>+ generatePath(`${x}/job/methods/operation/tool/delete/${id}`),+ deleteMaterialDimension: (id: string) =>+ generatePath(`${x}/items/dimensions/delete/${id}`),+ deleteMaterialFinish: (id: string) =>+ generatePath(`${x}/items/finishes/delete/${id}`),+ deleteMaterialForm: (id: string) =>+ generatePath(`${x}/items/forms/delete/${id}`),+ deleteMaterialGrade: (id: string) =>+ generatePath(`${x}/items/grades/delete/${id}`),+ deleteMaterialType: (id: string) =>+ generatePath(`${x}/items/types/delete/${id}`),+ deleteMaterialSubstance: (id: string) =>+ generatePath(`${x}/items/substances/delete/${id}`),+ deleteMethodMaterial: (id: string) =>+ generatePath(`${x}/items/methods/material/delete/${id}`),+ deleteMethodOperationStep: (id: string) =>+ generatePath(`${x}/items/methods/operation/step/delete/${id}`),+ deleteMethodOperationParameter: (id: string) =>+ generatePath(`${x}/items/methods/operation/parameter/delete/${id}`),+ deleteMethodOperationTool: (id: string) =>+ generatePath(`${x}/items/methods/operation/tool/delete/${id}`),+ deleteIssue: (id: string) => generatePath(`${x}/issue/delete/${id}`),+ deleteIssueAssociation: (id: string, type: string, associationId: string) =>+ generatePath(+ `${x}/issue/${id}/association/delete/${type}/${associationId}`+ ),+ deleteIssueWorkflow: (id: string) =>+ generatePath(`${x}/issue-workflow/delete/${id}`),+ deleteInvestigationType: (id: string) =>+ generatePath(`${x}/quality/investigation-types/delete/${id}`),+ deleteRequiredAction: (id: string) =>+ generatePath(`${x}/quality/required-actions/delete/${id}`),+ deleteRisk: (id: string) => generatePath(`${x}/quality/risks/delete/${id}`),+ deleteIssueType: (id: string) =>+ generatePath(`${x}/quality/issue-types/delete/${id}`),+ deleteKanban: (id: string) =>+ generatePath(`${x}/inventory/kanbans/delete/${id}`),+ deleteMaintenanceDispatch: (id: string) =>+ generatePath(`${x}/resources/maintenance/delete/${id}`),+ deleteMaintenanceSchedule: (id: string) =>+ generatePath(`${x}/resources/scheduled-maintenance/delete/${id}`),+ deleteNoQuoteReason: (id: string) =>+ generatePath(`${x}/sales/no-quote-reasons/delete/${id}`),+ deleteCustomerPortal: (id: string) =>+ generatePath(`${x}/sales/customer-portals/delete/${id}`),+ deleteNote: (id: string) => generatePath(`${x}/shared/notes/${id}/delete`),+ deletePartner: (id: string) =>+ generatePath(`${x}/resources/partners/delete/${id}`),+ deletePaymentTerm: (id: string) =>+ generatePath(`${x}/accounting/payment-terms/delete/${id}`),+ deleteStockTransfer: (id: string) =>+ generatePath(`${x}/stock-transfer/delete/${id}`),+ deleteStockTransferLine: (id: string, lineId: string) =>+ generatePath(`${x}/stock-transfer/${id}/line/${lineId}/delete`),+ deleteProcedure: (id: string) =>+ generatePath(`${x}/procedure/delete/${id}`),+ deleteProcedureStep: (id: string, stepId: string) =>+ generatePath(`${x}/procedure/${id}/steps/delete/${stepId}`),+ deleteProcedureParameter: (id: string, parameterId: string) =>+ generatePath(`${x}/procedure/${id}/parameters/delete/${parameterId}`),+ deleteProcess: (id: string) =>+ generatePath(`${x}/resources/processes/delete/${id}`),+ deleteProductionEvent: (id: string) =>+ generatePath(`${x}/job/methods/event/delete/${id}`),+ deleteProductionQuantity: (id: string) =>+ generatePath(`${x}/job/methods/quantity/delete/${id}`),+ deleteDemandProjections: (itemId: string, locationId: string) =>+ generatePath(+ `${x}/production/projections/delete/${itemId}/${locationId}`+ ),+ deletePurchaseInvoice: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/delete`),+ deletePurchaseInvoiceLine: (invoiceId: string, lineId: string) =>+ generatePath(`${x}/purchase-invoice/${invoiceId}/${lineId}/delete`),+ deletePurchaseOrder: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/delete`),+ deletePurchaseOrderLine: (orderId: string, lineId: string) =>+ generatePath(`${x}/purchase-order/${orderId}/${lineId}/delete`),+ deleteQualityDocument: (id: string) =>+ generatePath(`${x}/quality-document/delete/${id}`),+ deleteQualityDocumentStep: (id: string, stepId: string) =>+ generatePath(`${x}/quality-document/${id}/steps/delete/${stepId}`),+ deleteQuote: (id: string) => generatePath(`${x}/quote/${id}/delete`),+ deleteQuoteLine: (id: string, lineId: string) =>+ generatePath(`${x}/quote/${id}/${lineId}/delete`),+ deleteQuoteLineCost: (quoteId: string, lineId: string) =>+ generatePath(`${x}/quote/${quoteId}/${lineId}/cost/delete`),+ deleteQuoteMaterial: (quoteId: string, lineId: string, id: string) =>+ generatePath(+ `${x}/quote/methods/${quoteId}/${lineId}/material/delete/${id}`+ ),+ deleteQuoteOperationStep: (id: string) =>+ generatePath(`${x}/quote/methods/operation/step/delete/${id}`),+ deleteQuoteOperationParameter: (id: string) =>+ generatePath(`${x}/quote/methods/operation/parameter/delete/${id}`),+ deleteQuoteOperationTool: (id: string) =>+ generatePath(`${x}/quote/methods/operation/tool/delete/${id}`),+ deleteReceipt: (id: string) => generatePath(`${x}/receipt/${id}/delete`),+ deleteSalesInvoice: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/delete`),+ deleteSalesInvoiceLine: (invoiceId: string, lineId: string) =>+ generatePath(`${x}/sales-invoice/${invoiceId}/${lineId}/delete`),+ deleteSalesOrder: (id: string) =>+ generatePath(`${x}/sales-order/${id}/delete`),+ deleteSalesOrderLine: (orderId: string, lineId: string) =>+ generatePath(`${x}/sales-order/${orderId}/${lineId}/delete`),+ deleteSalesRfq: (id: string) => generatePath(`${x}/sales-rfq/${id}/delete`),+ deleteSalesRfqLine: (id: string, lineId: string) =>+ generatePath(`${x}/sales-rfq/${id}/${lineId}/delete`),+ deleteSavedView: (id: string) =>+ generatePath(`${x}/shared/views/delete/${id}`),+ deleteScrapReason: (id: string) =>+ generatePath(`${x}/production/scrap-reasons/delete/${id}`),+ deleteShift: (id: string) =>+ generatePath(`${x}/people/shifts/delete/${id}`),+ deleteShipment: (id: string) => generatePath(`${x}/shipment/${id}/delete`),+ deleteStorageUnit: (id: string) =>+ generatePath(`${x}/inventory/storage-units/delete/${id}`),+ deleteItemRule: (id: string) =>+ generatePath(`${x}/items/rules/delete/${id}`),+ deleteStorageType: (id: string) =>+ generatePath(`${x}/inventory/storage-types/delete/${id}`),+ deleteShippingMethod: (id: string) =>+ generatePath(`${x}/inventory/shipping-methods/delete/${id}`),+ deleteSupplier: (id: string) => generatePath(`${x}/supplier/${id}/delete`),+ deleteSupplierContact: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/contacts/delete/${id}`),+ deleteSupplierLocation: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/locations/delete/${id}`),+ deleteSupplierProcess: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/processes/delete/${id}`),+ deleteSupplierQuote: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/delete`),+ deleteSupplierQuoteLine: (id: string, lineId: string) =>+ generatePath(`${x}/supplier-quote/${id}/${lineId}/delete`),+ deleteSupplierType: (id: string) =>+ generatePath(`${x}/purchasing/supplier-types/delete/${id}`),+ deleteSuggestion: (id: string) =>+ generatePath(`${x}/resources/suggestions/delete/${id}`),+ deleteTraining: (id: string) => generatePath(`${x}/training/delete/${id}`),+ deleteTrainingAssignment: (assignmentId: string) =>+ generatePath(+ `${x}/resources/assignments/assignment/${assignmentId}/delete`+ ),+ deleteTrainingQuestion: (id: string, questionId: string) =>+ generatePath(`${x}/training/${id}/questions/delete/${questionId}`),+ deleteUom: (id: string) => generatePath(`${x}/items/uom/delete/${id}`),+ deleteUserAttribute: (id: string) =>+ generatePath(`${x}/account/${id}/delete/attribute`),+ deleteWebhook: (id: string) =>+ generatePath(`${x}/settings/webhooks/delete/${id}`),+ deleteWarehouseTransfer: (id: string) =>+ generatePath(`${x}/warehouse-transfer/${id}/delete`),+ deleteWorkCenter: (id: string) =>+ generatePath(`${x}/resources/work-centers/delete/${id}`),+ demandProjection: (itemId: string, locationId: string) =>+ generatePath(`${x}/production/projections/${itemId}/${locationId}`),+ demandProjections: `${x}/production/projections`,+ department: (id: string) => generatePath(`${x}/people/departments/${id}`),+ departments: `${x}/people/departments`,+ document: (id: string) => generatePath(`${x}/documents/search/${id}`),+ documentView: (id: string) =>+ generatePath(`${x}/documents/search/view/${id}`),+ documents: `${x}/documents/search`,+ documentFavorite: `${x}/documents/favorite`,+ documentRestore: (id: string) =>+ generatePath(`${x}/documents/${id}/restore`),+ documentsTrash: `${x}/documents/search?q=trash`,+ employeeAbility: (abilityId: string, id: string) =>+ generatePath(`${x}/resources/ability/${abilityId}/employee/${id}`),+ employeeAccount: (id: string) => generatePath(`${x}/users/employees/${id}`),+ employeeAccounts: `${x}/users/employees`,+ employeeType: (id: string) =>+ generatePath(`${x}/users/employee-types/${id}`),+ employeeTypes: `${x}/users/employee-types`,+ operators: `${x}/users/operators`,+ operator: (id: string) => generatePath(`${x}/users/operators/${id}`),+ operatorResetPin: (id: string) =>+ generatePath(`${x}/users/operators/reset-pin/${id}`),+ externalCustomer: (id: string) => generatePath(`/share/customer/${id}`),+ externalCustomerFile: (id: string, path: string) =>+ generatePath(`/share/customer/${id}/${path}`),+ externalQuote: (id: string) => generatePath(`/share/quote/${id}`),+ externalSupplierQuote: (id: string) =>+ generatePath(`/share/supplier-quote/${id}`),+ externalScar: (id: string) => generatePath(`/share/scar/${id}`),+ externalTraining: (assignmentId: string) =>+ generatePath(`/share/training/${assignmentId}`),+ feedback: `${x}/feedback`,+ failureMode: (id: string) =>+ generatePath(`${x}/resources/failure-modes/${id}`),+ failureModes: `${x}/resources/failure-modes`,+ fiscalYears: `${x}/accounting/years`,+ gauge: (id: string) => generatePath(`${x}/quality/gauges/${id}`),+ gauges: `${x}/quality/gauges`,+ gaugeCalibrationRecord: (id: string) =>+ generatePath(`${x}/quality/calibrations/${id}`),+ gaugeCalibrationRecords: `${x}/quality/calibrations`,+ gaugeDeactivate: (id: string) =>+ generatePath(`${x}/quality/gauges/deactivate/${id}`),+ gaugeTypes: `${x}/quality/gauge-types`,+ gaugeType: (id: string) => generatePath(`${x}/quality/gauge-types/${id}`),+ group: (id: string) => generatePath(`${x}/users/groups/${id}`),+ groups: `${x}/users/groups`,+ holiday: (id: string) => generatePath(`${x}/people/holidays/${id}`),+ holidays: `${x}/people/holidays`,+ import: (tableId: string) => generatePath(`${x}/shared/import/${tableId}`),+ inspections: `${x}/quality/inspections`,+ integration: (id: string) =>+ generatePath(`${x}/settings/integrations/${id}`),+ integrationDeactivate: (id: string) =>+ generatePath(`${x}/settings/integrations/deactivate/${id}`),+ integrations: `${x}/settings/integrations`,+ inventory: `${x}/inventory/quantities`,+ inventoryItem: (id: string) =>+ generatePath(`${x}/inventory/quantities/${id}/details`),+ inventoryItemActivity: (id: string) =>+ generatePath(`${x}/inventory/quantities/${id}/activity`),+ inventoryItemAdjustment: (id: string) =>+ generatePath(`${x}/inventory/quantities/${id}/adjustment`),+ inventoryRoot: `${x}/inventory`,+ inventorySettings: `${x}/settings/inventory`,+ invoicing: `${x}/invoicing`,+ issues: `${x}/quality/issues`,+ issue: (id: string) => generatePath(`${x}/issue/${id}`),+ issueDetails: (id: string) => generatePath(`${x}/issue/${id}/details`),+ issueStatus: (id: string) => generatePath(`${x}/issue/${id}/status`),+ closeIssue: (id: string) => generatePath(`${x}/issue/${id}/close`),+ issueActions: (id: string) => generatePath(`${x}/issue/${id}`),+ issueDispositions: (id: string) =>+ generatePath(`${x}/issue/${id}/dispositions`),+ issueTaskStatus: (id: string) =>+ generatePath(`${x}/issue/task/${id}/status`),+ issueTaskSupplier: `${x}/issue/task/supplier`,+ issueActionDueDate: (id: string) =>+ generatePath(`${x}/issue/action/${id}/due-date`),+ issueActionProcesses: (id: string) =>+ generatePath(`${x}/issue/action/${id}/processes`),+ issueReview: (id: string) => generatePath(`${x}/issue/${id}/review`),+ issueWorkflow: (id: string) => generatePath(`${x}/issue-workflow/${id}`),+ issueWorkflows: `${x}/quality/issue-workflows`,+ investigationType: (id: string) =>+ generatePath(`${x}/quality/investigation-types/${id}`),+ investigationTypes: `${x}/quality/investigation-types`,+ issueType: (id: string) => generatePath(`${x}/quality/issue-types/${id}`),+ issueTypes: `${x}/quality/issue-types`,+ items: `${x}/items`,+ itemCostUpdate: (id: string) => generatePath(`${x}/items/cost/${id}`),+ itemPostingGroup: (id: string) => generatePath(`${x}/items/groups/${id}`),+ itemPostingGroups: `${x}/items/groups`,+ itemsSettings: `${x}/settings/items`,+ job: (id: string) => generatePath(`${x}/job/${id}`),+ jobBatchNumber: (id: string) => generatePath(`${x}/job/${id}/batch`),+ jobComplete: (id: string) => generatePath(`${x}/job/${id}/complete`),+ jobConfigure: (id: string) => generatePath(`${x}/job/${id}/configure`),+ jobDag: (id: string) => generatePath(`${x}/job/${id}/dag`),+ jobDetails: (id: string) => generatePath(`${x}/job/${id}/details`),+ jobInspectionSteps: (id: string) =>+ generatePath(`${x}/job/${id}/steps?filter=type:eq:Inspection`),+ jobMaterial: (jobId: string, id: string) =>+ generatePath(`${x}/job/methods/${jobId}/material/${id}`),+ jobMaterials: (id: string) => generatePath(`${x}/job/${id}/materials`),+ jobMethod: (jobId: string, methodId: string) =>+ generatePath(`${x}/job/${jobId}/method/${methodId}`),+ jobMakeMethod: (jobId: string, makeMethodId: string) =>+ generatePath(`${x}/job/${jobId}/make/${makeMethodId}`),+ jobMaterialsOrder: `${x}/job/methods/material/order`,+ jobMethodGet: `${x}/job/methods/get`,+ jobMethodSave: `${x}/job/methods/save`,+ jobOperation: (jobId: string, id: string) =>+ generatePath(`${x}/job/methods/${jobId}/operation/${id}`),+ jobOperations: (id: string) => generatePath(`${x}/job/${id}/operations`),+ jobOperationsOrder: (jobId: string) =>+ generatePath(`${x}/job/methods/${jobId}/operation/order`),+ jobOperationsDelete: (jobId: string) =>+ generatePath(`${x}/job/methods/${jobId}/operation/delete`),+ jobOperationStep: (id: string) =>+ generatePath(`${x}/job/methods/operation/step/${id}`),+ jobOperationStepOrder: (operationId: string) =>+ generatePath(`${x}/job/methods/operation/${operationId}/step/order`),+ jobOperationParameter: (id: string) =>+ generatePath(`${x}/job/methods/operation/parameter/${id}`),+ jobOperationProcedureSync: `${x}/job/methods/operation/procedure/sync`,+ jobOperationTool: (id: string) =>+ generatePath(`${x}/job/methods/operation/tool/${id}`),+ jobOperationDueDate: `${x}/job/methods/operation/due-date`,+ jobOperationStatus: `${x}/job/methods/operation/status`,+ jobOperationStepRecords: (id: string) =>+ generatePath(`${x}/job/${id}/steps`),+ jobProductionEvent: (jobId: string, eventId: string) =>+ generatePath(`${x}/job/${jobId}/events/${eventId}`),+ jobProductionEvents: (id: string) => generatePath(`${x}/job/${id}/events`),+ jobProductionQuantities: (id: string) =>+ generatePath(`${x}/job/${id}/quantities`),+ jobs: `${x}/production/jobs`,+ jobRecalculate: (id: string) => generatePath(`${x}/job/${id}/recalculate`),+ jobRelease: (id: string) => generatePath(`${x}/job/${id}/release`),+ jobStatus: (id: string) => generatePath(`${x}/job/${id}/status`),+ kanban: (id: string) => generatePath(`${x}/inventory/kanbans/${id}`),+ kanbans: `${x}/inventory/kanbans`,+ labelsSettings: `${x}/settings/labels`,+ location: (id: string) => generatePath(`${x}/resources/locations/${id}`),+ locations: `${x}/resources/locations`,+ login: "/login",+ logout: "/logout",+ logos: `${x}/settings/logos`,+ maintenanceDispatch: (id: string) => generatePath(`${x}/maintenance/${id}`),+ maintenanceDispatchComments: (id: string) =>+ generatePath(`${x}/maintenance/${id}/comments`),+ maintenanceDispatchEvents: (id: string) =>+ generatePath(`${x}/maintenance/${id}/events`),+ maintenanceDispatchItems: (id: string) =>+ generatePath(`${x}/maintenance/${id}/items`),+ maintenanceDispatchStatus: (id: string) =>+ generatePath(`${x}/maintenance/${id}/status`),+ maintenanceDispatchUpdate: `${x}/maintenance/update`,+ maintenanceDispatchWorkCenters: (id: string) =>+ generatePath(`${x}/maintenance/${id}/work-centers`),+ newMaintenanceDispatchItem: (dispatchId: string) =>+ generatePath(`${x}/maintenance/${dispatchId}/item/new`),+ deleteMaintenanceDispatchItem: (dispatchId: string, itemId: string) =>+ generatePath(`${x}/maintenance/${dispatchId}/item/${itemId}/delete`),+ newMaintenanceDispatchEvent: (dispatchId: string) =>+ generatePath(`${x}/maintenance/${dispatchId}/event/new`),+ editMaintenanceDispatchEvent: (dispatchId: string, eventId: string) =>+ generatePath(`${x}/maintenance/${dispatchId}/event/${eventId}`),+ deleteMaintenanceDispatchEvent: (dispatchId: string, eventId: string) =>+ generatePath(`${x}/maintenance/${dispatchId}/event/${eventId}/delete`),+ addAndIssueMaintenanceDispatchItem: (dispatchId: string) =>+ generatePath(`${x}/maintenance/${dispatchId}/add-and-issue`),+ maintenanceDispatches: `${x}/resources/maintenance`,+ maintenanceSchedule: (id: string) =>+ generatePath(`${x}/resources/scheduled-maintenance/${id}`),+ maintenanceSchedules: `${x}/resources/scheduled-maintenance`,+ makeMethodGet: `${x}/items/methods/get`,+ makeMethodSave: `${x}/items/methods/save`,+ markTrainingComplete: `${x}/resources/assignments/complete`,+ material: (id: string) => generatePath(`${x}/material/${id}`),+ materialCosting: (id: string) =>+ generatePath(`${x}/material/${id}/costing`),+ materialDetails: (id: string) =>+ generatePath(`${x}/material/${id}/details`),+ materialDimension: (id: string) =>+ generatePath(`${x}/items/dimensions/${id}`),+ materialDimensions: `${x}/items/dimensions`,+ materialFinish: (id: string) => generatePath(`${x}/items/finishes/${id}`),+ materialFinishes: `${x}/items/finishes`,+ materialForm: (id: string) => generatePath(`${x}/items/forms/${id}`),+ materialForms: `${x}/items/forms`,+ materialGrade: (id: string) => generatePath(`${x}/items/grades/${id}`),+ materialGrades: `${x}/items/grades`,+ materialType: (id: string) => generatePath(`${x}/items/types/${id}`),+ materialTypes: `${x}/items/types`,+ materialInventory: (id: string) =>+ generatePath(`${x}/material/${id}/inventory`),+ materialInventoryLocation: (id: string, locationId: string) =>+ generatePath(`${x}/material/${id}/inventory?location=${locationId}`),+ materialPlanning: (id: string) =>+ generatePath(`${x}/material/${id}/planning`),+ materialPlanningLocation: (id: string, locationId: string) =>+ generatePath(`${x}/material/${id}/planning?location=${locationId}`),+ materialPricing: (id: string) =>+ generatePath(`${x}/material/${id}/pricing`),+ materialPurchasing: (id: string) =>+ generatePath(`${x}/material/${id}/purchasing`),+ materialQuality: (id: string) =>+ generatePath(`${x}/material/${id}/quality`),+ materialRoot: `${x}/material`,+ materialSupplier: (itemId: string, id: string) =>+ generatePath(`${x}/material/${itemId}/purchasing/${id}`),+ materialSuppliers: (id: string) =>+ generatePath(`${x}/material/${id}/suppliers`),+ materials: `${x}/items/materials`,+ materialSubstance: (id: string) =>+ generatePath(`${x}/items/substances/${id}`),+ materialSubstances: `${x}/items/substances`,+ methodMaterial: (id: string) =>+ generatePath(`${x}/items/methods/material/${id}`),+ methodMaterials: `${x}/items/methods/materials`,+ methodMaterialsOrder: `${x}/items/methods/material/order`,+ methodOperation: (id: string) =>+ generatePath(`${x}/items/methods/operation/${id}`),+ methodOperations: `${x}/items/methods/operations`,+ methodOperationsOrder: `${x}/items/methods/operation/order`,+ methodOperationsDelete: `${x}/items/methods/operation/delete`,+ methodOperationStep: (id: string) =>+ generatePath(`${x}/items/methods/operation/step/${id}`),+ methodOperationStepOrder: (operationId: string) =>+ generatePath(`${x}/items/methods/operation/${operationId}/step/order`),+ methodOperationParameter: (id: string) =>+ generatePath(`${x}/items/methods/operation/parameter/${id}`),+ methodOperationTool: (id: string) =>+ generatePath(`${x}/items/methods/operation/tool/${id}`),+ newAbility: `${x}/resources/abilities/new`,+ newApiKey: `${x}/settings/api-keys/new`,+ newAttribute: `${x}/people/attribute/new`,+ newAttributeCategory: `${x}/people/attributes/new`,+ newAttributeForCategory: (id: string) =>+ generatePath(`${x}/people/attributes/list/${id}/new`),+ newBatch: `${x}/inventory/batches/new`,+ newBulkJob: `${x}/job/bulk/new`,+ newChartOfAccount: `${x}/accounting/charts/new`,+ newChartOfAccountGroup: `${x}/accounting/charts/new-group`,+ newCostCenter: `${x}/accounting/cost-centers/new`,+ newCompany: `${x}/settings/company/new`,+ newCompanyInGroup: `${x}/settings/companies/new`,+ newConsumable: `${x}/consumable/new`,+ newConsumableSupplier: (id: string) =>+ generatePath(`${x}/consumable/${id}/purchasing/new`),+ newContractor: `${x}/resources/contractors/new`,+ newExchangeRate: `${x}/accounting/exchange-rates/new`,+ newDimension: `${x}/accounting/dimensions/new`,+ newCustomer: `${x}/customer/new`,+ newCustomerAccount: `${x}/users/customers/new`,+ newCustomerContact: (id: string) =>+ generatePath(`${x}/customer/${id}/contacts/new`),+ newCustomerLocation: (id: string) =>+ generatePath(`${x}/customer/${id}/locations/new`),+ newCustomerStatus: `${x}/sales/customer-statuses/new`,+ newCustomerType: `${x}/sales/customer-types/new`,+ newCustomField: (tableId: string) =>+ generatePath(`${x}/settings/custom-fields/${tableId}/new`),+ newCustomerPart: (id: string) =>+ generatePath(`${x}/part/${id}/sales/customer-parts/new`),+ newDemandProjection: `${x}/production/projections/new`,+ newDepartment: `${x}/people/departments/new`,+ newDocument: `${x}/documents/new`,+ newEmployee: `${x}/users/employees/new`,+ newOperator: `${x}/users/operators/new`,+ newEmployeeAbility: (id: string) =>+ generatePath(`${x}/resources/ability/${id}/employee/new`),+ newEmployeeType: `${x}/users/employee-types/new`,+ newFailureMode: `${x}/resources/failure-modes/new`,+ newFixture: `${x}/fixture/new`,+ newFixtureSupplier: (id: string) =>+ generatePath(`${x}/fixture/${id}/purchasing/new`),+ newGauge: `${x}/quality/gauges/new`,+ newGaugeCalibrationRecord: `${x}/quality/calibrations/new`,+ newGaugeType: `${x}/quality/gauge-types/new`,+ newGroup: `${x}/users/groups/new`,+ newHoliday: `${x}/people/holidays/new`,+ newTimecard: `${x}/people/timecard/new`,+ newInvestigationType: `${x}/quality/investigation-types/new`,+ newIssue: `${x}/issue/new`,+ newIssueAssociation: (id: string) =>+ generatePath(`${x}/issue/${id}/association/new`),+ newIssueType: `${x}/quality/issue-types/new`,+ newIssueWorkflow: `${x}/issue-workflow/new`,+ newItemPostingGroup: `${x}/items/groups/new`,+ newJob: `${x}/job/new`,+ newJobMaterial: (jobId: string) =>+ generatePath(`${x}/job/methods/${jobId}/material/new`),+ newJobOperation: (jobId: string) =>+ generatePath(`${x}/job/methods/${jobId}/operation/new`),+ newJobOperationStep: `${x}/job/methods/operation/step/new`,+ newJobOperationParameter: `${x}/job/methods/operation/parameter/new`,+ newJobOperationTool: `${x}/job/methods/operation/tool/new`,+ newJobMaterialsSession: (jobId: string) =>+ generatePath(`${x}/job/${jobId}/materials/session/new`),+ newKanban: `${x}/inventory/kanbans/new`,+ newLocation: `${x}/resources/locations/new`,+ newMaintenanceDispatch: `${x}/maintenance/new`,+ newMaintenanceSchedule: `${x}/resources/scheduled-maintenance/new`,+ newMakeMethodVersion: `${x}/items/methods/version/new`,+ newMaterial: `${x}/material/new`,+ newMethodMaterial: `${x}/items/methods/material/new`,+ newMethodOperation: `${x}/items/methods/operation/new`,+ newMethodOperationStep: `${x}/items/methods/operation/step/new`,+ newMethodOperationTool: `${x}/items/methods/operation/tool/new`,+ newMethodOperationParameter: `${x}/items/methods/operation/parameter/new`,+ newMaterialDimension: `${x}/items/dimensions/new`,+ newMaterialFinish: `${x}/items/finishes/new`,+ newMaterialForm: `${x}/items/forms/new`,+ newMaterialGrade: `${x}/items/grades/new`,+ newMaterialSubstance: `${x}/items/substances/new`,+ newMaterialSupplier: (id: string) =>+ generatePath(`${x}/material/${id}/purchasing/new`),+ newNote: `${x}/shared/notes/new`,+ newPart: `${x}/part/new`,+ newPartSupplier: (id: string) =>+ generatePath(`${x}/part/${id}/purchasing/new`),+ newStockTransfer: `${x}/stock-transfer/new`,+ newStockTransferLine: (id: string) =>+ generatePath(`${x}/stock-transfer/${id}/line/new`),+ newSuggestion: `${x}/resources/suggestions/new`,+ newProcedure: `${x}/production/procedures/new`,+ newProcedureStep: (id: string) =>+ generatePath(`${x}/procedure/${id}/steps/new`),+ newProcedureParameter: (id: string) =>+ generatePath(`${x}/procedure/${id}/parameters/new`),+ newMaterialType: `${x}/items/types/new`,+ newNoQuoteReason: `${x}/sales/no-quote-reasons/new`,+ newCustomerPortal: `${x}/sales/customer-portals/new`,+ newPartner: `${x}/resources/partners/new`,+ newPaymentTerm: `${x}/accounting/payment-terms/new`,+ newProcess: `${x}/resources/processes/new`,+ newPurchaseInvoice: `${x}/purchase-invoice/new`,+ newPurchaseInvoiceLine: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/new`),+ newPurchaseOrder: `${x}/purchase-order/new`,+ newPurchaseOrderLine: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/new`),+ newQualityDocument: `${x}/quality/documents/new`,+ newQualityDocumentStep: (id: string) =>+ generatePath(`${x}/quality-document/${id}/steps/new`),+ newQuote: `${x}/quote/new`,+ newQuoteLine: (id: string) => generatePath(`${x}/quote/${id}/new`),+ newQuoteLineCost: (id: string, lineId: string) =>+ generatePath(`${x}/quote/${id}/${lineId}/cost/new`),+ newQuoteOperation: (quoteId: string, lineId: string) =>+ generatePath(`${x}/quote/methods/${quoteId}/${lineId}/operation/new`),+ newQuoteOperationStep: `${x}/quote/methods/operation/step/new`,+ newQuoteOperationParameter: `${x}/quote/methods/operation/parameter/new`,+ newQuoteOperationTool: `${x}/quote/methods/operation/tool/new`,+ newQuoteMaterial: (quoteId: string, lineId: string) =>+ generatePath(`${x}/quote/methods/${quoteId}/${lineId}/material/new`),+ newReceipt: `${x}/receipt/new`,+ newRequiredAction: `${x}/quality/required-actions/new`,+ newRevision: `${x}/items/revisions/new`,+ newRisk: `${x}/quality/risks/new`,+ newSalesInvoice: `${x}/sales-invoice/new`,+ newSalesInvoiceLine: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/new`),+ newSalesOrder: `${x}/sales-order/new`,+ newSalesOrderLine: (id: string) =>+ generatePath(`${x}/sales-order/${id}/new`),+ newSalesOrderLineShipment: (id: string, lineId: string) =>+ generatePath(`${x}/sales-order/${id}/${lineId}/shipment`),+ newSalesRFQ: `${x}/sales-rfq/new`,+ newSalesRFQLine: (id: string) => generatePath(`${x}/sales-rfq/${id}/new`),+ newScrapReason: `${x}/production/scrap-reasons/new`,+ newStorageUnit: `${x}/inventory/storage-units/new`,+ newItemRule: `${x}/items/rules/new`,+ newStorageType: `${x}/inventory/storage-types/new`,+ newShipment: `${x}/shipment/new`,+ newShift: `${x}/people/shifts/new`,+ newShippingMethod: `${x}/inventory/shipping-methods/new`,+ newService: `${x}/service/new`,+ newServiceSupplier: (id: string) =>+ generatePath(`${x}/service/${id}/purchasing/new`),+ newSupplier: `${x}/supplier/new`,+ newSupplierAccount: `${x}/users/suppliers/new`,+ newSupplierContact: (id: string) =>+ generatePath(`${x}/supplier/${id}/contacts/new`),+ newSupplierLocation: (id: string) =>+ generatePath(`${x}/supplier/${id}/locations/new`),+ newSupplierProcess: (id: string) =>+ generatePath(`${x}/supplier/${id}/processes/new`),+ newSupplierQuote: `${x}/supplier-quote/new`,+ newSupplierQuoteLine: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/new`),+ newSupplierType: `${x}/purchasing/supplier-types/new`,+ newTag: `${x}/settings/tags/new`,+ newTool: `${x}/tool/new`,+ newToolSupplier: (id: string) =>+ generatePath(`${x}/tool/${id}/purchasing/new`),+ newTraining: `${x}/resources/training/new`,+ newTrainingAssignment: `${x}/resources/assignments/new`,+ newTrainingQuestion: (id: string) =>+ generatePath(`${x}/training/${id}/questions/new`),+ newUom: `${x}/items/uom/new`,+ newWarehouseTransfer: `${x}/warehouse-transfer/new`,+ newWarehouseTransferLine: (transferId: string) =>+ generatePath(`${x}/warehouse-transfer/${transferId}/details/new`),+ newWorkCenter: `${x}/resources/work-centers/new`,+ newWebhook: `${x}/settings/webhooks/new`,+ noQuoteReasons: `${x}/sales/no-quote-reasons`,+ noQuoteReason: (id: string) =>+ generatePath(`${x}/sales/no-quote-reasons/${id}`),+ notificationSettings: `${x}/account/notifications`,+ part: (id: string) => generatePath(`${x}/part/${id}`),+ partCosting: (id: string) => generatePath(`${x}/part/${id}/costing`),+ partDetails: (id: string) => generatePath(`${x}/part/${id}/details`),+ partMake: (id: string, makeMethodId: string) =>+ generatePath(`${x}/part/${id}/make/${makeMethodId}`),+ partInventory: (id: string) => generatePath(`${x}/part/${id}/inventory`),+ partInventoryLocation: (id: string, locationId: string) =>+ generatePath(`${x}/part/${id}/inventory?location=${locationId}`),+ partPlanning: (id: string) => generatePath(`${x}/part/${id}/planning`),+ partPlanningLocation: (id: string, locationId: string) =>+ generatePath(`${x}/part/${id}/planning?location=${locationId}`),+ partPricing: (id: string) => generatePath(`${x}/part/${id}/pricing`),+ partPurchasing: (id: string) => generatePath(`${x}/part/${id}/purchasing`),+ partRoot: `${x}/part`,+ partQuality: (id: string) => generatePath(`${x}/part/${id}/quality`),+ partRules: (id: string) => generatePath(`${x}/part/${id}/rules`),+ materialRules: (id: string) => generatePath(`${x}/material/${id}/rules`),+ consumableRules: (id: string) =>+ generatePath(`${x}/consumable/${id}/rules`),+ toolRules: (id: string) => generatePath(`${x}/tool/${id}/rules`),+ itemRules: `${x}/items/rules`,+ itemRule: (id: string) => generatePath(`${x}/items/rules/${id}`),+ itemRuleAssign: (itemId: string) =>+ generatePath(`${x}/items/rules/assign/${itemId}`),+ itemRuleUnassign: (itemId: string, ruleId: string) =>+ generatePath(`${x}/items/rules/unassign/${itemId}/${ruleId}`),+ partSales: (id: string) => generatePath(`${x}/part/${id}/sales`),+ partSupplier: (itemId: string, id: string) =>+ generatePath(`${x}/part/${itemId}/purchasing/${id}`),+ parts: `${x}/items/parts`,+ partner: (id: string, abilityId: string) =>+ generatePath(`${x}/resources/partners/${id}/${abilityId}`),+ partners: `${x}/resources/partners`,+ paymentTerm: (id: string) =>+ generatePath(`${x}/accounting/payment-terms/${id}`),+ paymentTerms: `${x}/accounting/payment-terms`,+ people: `${x}/people/employee`,+ peopleTimecard: `${x}/people/timecard`,+ timecard: (id: string) => generatePath(`${x}/people/timecard/${id}`),+ contact: `${x}/people/contact`,+ person: (id: string) => generatePath(`${x}/person/${id}`),+ personDetails: (id: string) => generatePath(`${x}/person/${id}/details`),+ personJob: (id: string) => generatePath(`${x}/person/${id}/job`),+ personTimecard: (id: string) => generatePath(`${x}/person/${id}/timecard`),+ personAttributeCategory: (personId: string, categoryId: string) =>+ generatePath(`${x}/person/${personId}/attributes/${categoryId}`),+ stockTransfer: (id: string) => generatePath(`${x}/stock-transfer/${id}`),+ stockTransferComplete: (id: string) =>+ generatePath(`${x}/stock-transfer/${id}/complete`),+ stockTransferLine: (id: string, lineId: string) =>+ generatePath(`${x}/stock-transfer/${id}/line/${lineId}`),+ stockTransferLineQuantity: (id: string) =>+ generatePath(`${x}/stock-transfer/${id}/line/quantity`),+ stockTransferScan: (id: string, lineId: string) =>+ generatePath(`${x}/stock-transfer/${id}/scan/${lineId}`),+ stockTransferStatus: (id: string) =>+ generatePath(`${x}/stock-transfer/${id}/status`),+ stockTransfers: `${x}/inventory/stock-transfers`,+ suggestion: (id: string) =>+ generatePath(`${x}/resources/suggestions/${id}`),+ suggestions: `${x}/resources/suggestions`,+ procedure: (id: string) => generatePath(`${x}/procedure/${id}`),+ procedureStep: (id: string, attributeId: string) =>+ generatePath(`${x}/procedure/${id}/steps/${attributeId}`),+ procedureStepOrder: (id: string) =>+ generatePath(`${x}/procedure/${id}/steps/order`),+ procedureParameter: (id: string, parameterId: string) =>+ generatePath(`${x}/procedure/${id}/parameters/${parameterId}`),+ procedures: `${x}/production/procedures`,+ process: (id: string) => generatePath(`${x}/resources/processes/${id}`),+ processes: `${x}/resources/processes`,+ processActivate: (id: string) =>+ generatePath(`${x}/resources/processes/activate/${id}`),+ processDeactivate: (id: string) =>+ generatePath(`${x}/resources/processes/deactivate/${id}`),+ production: `${x}/production`,+ productionPlanning: `${x}/production/planning`,+ productionPlanningItem: (itemId: string) =>+ generatePath(`${x}/production/planning/${itemId}`),+ peopleSettings: `${x}/settings/people`,+ productionSettings: `${x}/settings/production`,+ profile: `${x}/account/profile`,+ purchaseInvoice: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}`),+ purchaseInvoiceDelivery: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/delivery`),+ purchaseInvoiceDetails: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/details`),+ purchaseInvoiceExchangeRate: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/exchange-rate`),+ purchaseInvoiceLine: (invoiceId: string, id: string) =>+ generatePath(`${x}/purchase-invoice/${invoiceId}/${id}/details`),+ purchaseInvoiceLineOrder: (invoiceId: string) =>+ generatePath(`${x}/purchase-invoice/${invoiceId}/line-order`),+ purchaseInvoicePost: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/post`),+ purchaseInvoiceRoot: `${x}/purchase-invoice`,+ purchaseInvoiceStatus: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/status`),+ purchaseInvoiceVoid: (id: string) =>+ generatePath(`${x}/purchase-invoice/${id}/void`),+ purchaseInvoices: `${x}/purchasing/invoices`,+ purchaseOrder: (id: string) => generatePath(`${x}/purchase-order/${id}`),+ purchaseOrderDelivery: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/delivery`),+ purchaseOrderDetails: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/details`),+ purchaseOrderExchangeRate: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/exchange-rate`),+ purchaseOrderExternalDocuments: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/external`),+ purchaseOrderFavorite: `${x}/purchasing/orders/favorite`,+ purchaseOrderLine: (orderId: string, id: string) =>+ generatePath(`${x}/purchase-order/${orderId}/${id}/details`),+ purchaseOrderLineOrder: (orderId: string) =>+ generatePath(`${x}/purchase-order/${orderId}/line-order`),+ purchaseOrderPayment: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/payment`),+ purchaseOrderFinalize: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/finalize`),+ purchaseOrderRoot: `${x}/purchase-order`,+ purchaseOrderStatus: (id: string) =>+ generatePath(`${x}/purchase-order/${id}/status`),+ purchaseOrders: `${x}/purchasing/orders`,+ purchasing: `${x}/purchasing`,+ purchasingPlanning: `${x}/purchasing/planning`,+ purchasingSettings: `${x}/settings/purchasing`,+ quality: `${x}/quality`,+ qualityActions: `${x}/quality/actions`,+ inboundInspections: `${x}/quality/inbound-inspections`,+ inboundInspection: (id: string) =>+ generatePath(`${x}/quality/inbound-inspections/${id}`),+ qualityDocument: (id: string) =>+ generatePath(`${x}/quality-document/${id}`),+ qualityDocuments: `${x}/quality/documents`,+ qualityDocumentStep: (id: string, attributeId: string) =>+ generatePath(`${x}/quality-document/${id}/steps/${attributeId}`),+ qualityDocumentStepOrder: (id: string) =>+ generatePath(`${x}/quality-document/${id}/steps/order`),+ qualitySettings: `${x}/settings/quality`,+ quote: (id: string) => generatePath(`${x}/quote/${id}`),+ quoteAssembly: (quoteId: string, lineId: string, assemblyId: string) =>+ generatePath(+ `${x}/quote/${quoteId}/lines/${lineId}/assembly/${assemblyId}`+ ),+ quoteDetails: (id: string) => generatePath(`${x}/quote/${id}/details`),+ quoteDrag: (id: string) => generatePath(`${x}/quote/${id}/drag`),+ quoteDuplicate: (id: string) => generatePath(`${x}/quote/${id}/duplicate`),+ quoteExchangeRate: (id: string) =>+ generatePath(`${x}/quote/${id}/exchange-rate`),+ quoteExternalDocuments: (id: string) =>+ generatePath(`${x}/quote/${id}/external`),+ quoteFavorite: `${x}/sales/quotes/favorite`,+ quoteFinalize: (id: string) => generatePath(`${x}/quote/${id}/finalize`),+ quoteInternalDocuments: (id: string) =>+ generatePath(`${x}/quote/${id}/internal`),+ quoteLine: (quoteId: string, id: string) =>+ generatePath(`${x}/quote/${quoteId}/${id}/details`),+ quoteLineOrder: (quoteId: string) =>+ generatePath(`${x}/quote/${quoteId}/line-order`),+ quoteLineConfigure: (quoteId: string, lineId: string) =>+ generatePath(`${x}/quote/${quoteId}/${lineId}/configure`),+ quoteLineMakeMethod: (+ quoteId: string,+ lineId: string,+ makeMethodId: string+ ) => generatePath(`${x}/quote/${quoteId}/${lineId}/make/${makeMethodId}`),+ quoteLineMethod: (quoteId: string, quoteLineId: string, methodId: string) =>+ generatePath(`${x}/quote/${quoteId}/${quoteLineId}/method/${methodId}`),+ quoteLineRecalculatePrice: (quoteId: string, lineId: string) =>+ generatePath(`${x}/quote/${quoteId}/${lineId}/recalculate-price`),+ quoteLineUpdatePrecision: (quoteId: string, lineId: string) =>+ generatePath(`${x}/quote/${quoteId}/${lineId}/update-precision`),+ quoteMaterial: (quoteId: string, lineId: string, id: string) =>+ generatePath(`${x}/quote/methods/${quoteId}/${lineId}/material/${id}`),+ quoteMaterialsOrder: `${x}/quote/methods/material/order`,+ quoteMethodGet: `${x}/quote/methods/get`,+ quoteMethodSave: `${x}/quote/methods/save`,+ quoteOperation: (quoteId: string, lineId: string, id: string) =>+ generatePath(`${x}/quote/methods/${quoteId}/${lineId}/operation/${id}`),+ quoteOperationsOrder: `${x}/quote/methods/operation/order`,+ quoteOperationsDelete: `${x}/quote/methods/operation/delete`,+ quoteOperationStep: (id: string) =>+ generatePath(`${x}/quote/methods/operation/step/${id}`),+ quoteOperationStepOrder: (operationId: string) =>+ generatePath(`${x}/quote/methods/operation/${operationId}/step/order`),+ quoteOperationParameter: (id: string) =>+ generatePath(`${x}/quote/methods/operation/parameter/${id}`),+ quoteOperationTool: (id: string) =>+ generatePath(`${x}/quote/methods/operation/tool/${id}`),+ quotePayment: (id: string) => generatePath(`${x}/quote/${id}/payment`),+ quoteShipment: (id: string) => generatePath(`${x}/quote/${id}/shipment`),+ quoteStatus: (id: string) => generatePath(`${x}/quote/${id}/status`),+ quotes: `${x}/sales/quotes`,+ receipt: (id: string) => generatePath(`${x}/receipt/${id}`),+ receiptInvoice: (id: string) => generatePath(`${x}/receipt/${id}/invoice`),+ receiptDetails: (id: string) => generatePath(`${x}/receipt/${id}/details`),+ receiptLineDelete: (id: string) =>+ generatePath(`${x}/receipt/lines/${id}/delete`),+ receiptLineSplit: `${x}/receipt/lines/split`,+ receiptLines: (id: string) => generatePath(`${x}/receipt/${id}/lines`),+ receiptLinesTracking: (id: string) =>+ generatePath(`${x}/receipt/lines/tracking`),+ receipts: `${x}/inventory/receipts`,+ receiptPost: (id: string) => generatePath(`${x}/receipt/${id}/post`),+ receiptRoot: `${x}/receipt`,+ receiptVoid: (id: string) => generatePath(`${x}/receipt/${id}/void`),+ refreshSession: "/refresh-session",+ requiredAction: (id: string) =>+ generatePath(`${x}/quality/required-actions/${id}`),+ requiredActions: `${x}/quality/required-actions`,+ resendInvite: `${x}/users/resend-invite`,+ resources: `${x}/resources`,+ resourcesSettings: `${x}/settings/resources`,+ revision: (id: string) => generatePath(`${x}/items/revisions/${id}`),+ revokeInvite: `${x}/users/revoke-invite`,+ risks: `${x}/quality/risks`,+ risk: (id: string) => generatePath(`${x}/quality/risks/${id}`),+ root: "/",+ routings: `${x}/items/routing`,+ sales: `${x}/sales`,+ salesInvoice: (id: string) => generatePath(`${x}/sales-invoice/${id}`),+ salesInvoiceDetails: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/details`),+ salesInvoiceExchangeRate: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/exchange-rate`),+ salesInvoiceLine: (id: string, lineId: string) =>+ generatePath(`${x}/sales-invoice/${id}/${lineId}/details`),+ salesInvoiceLineOrder: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/line-order`),+ salesInvoicePost: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/post`),+ salesInvoiceShipment: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/shipment`),+ salesInvoiceStatus: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/status`),+ salesInvoiceVoid: (id: string) =>+ generatePath(`${x}/sales-invoice/${id}/void`),+ salesInvoices: `${x}/sales/invoices`,+ salesOrder: (id: string) => generatePath(`${x}/sales-order/${id}`),+ salesOrderConfirm: (id: string) =>+ generatePath(`${x}/sales-order/${id}/confirm`),+ salesOrderShipment: (id: string) =>+ generatePath(`${x}/sales-order/${id}/shipment`),+ salesOrderDetails: (id: string) =>+ generatePath(`${x}/sales-order/${id}/details`),+ salesOrderExchangeRate: (id: string) =>+ generatePath(`${x}/sales-order/${id}/exchange-rate`),+ salesOrderExternalDocuments: (id: string) =>+ generatePath(`${x}/sales-order/${id}/external`),+ salesOrderFavorite: `${x}/sales-order/orders/favorite`,+ salesOrderInternalDocuments: (id: string) =>+ generatePath(`${x}/sales-order/${id}/internal`),+ salesOrderLine: (orderId: string, id: string) =>+ generatePath(`${x}/sales-order/${orderId}/${id}/details`),+ salesOrderLineOrder: (orderId: string) =>+ generatePath(`${x}/sales-order/${orderId}/line-order`),+ salesOrderLineToJob: (orderId: string, lineId: string) =>+ generatePath(`${x}/sales-order/${orderId}/${lineId}/job`),+ salesOrderLinesToJobs: (orderId: string) =>+ generatePath(`${x}/sales-order/${orderId}/lines/jobs`),+ salesOrderPayment: (id: string) =>+ generatePath(`${x}/sales-order/${id}/payment`),+ salesOrderRelease: (id: string) =>+ generatePath(`${x}/sales-order/${id}/release`),+ salesOrderStatus: (id: string) =>+ generatePath(`${x}/sales-order/${id}/status`),+ salesOrders: `${x}/sales/orders`,+ salesPriceList: `${x}/sales/price-list`,+ deletePriceOverride: (id: string) =>+ generatePath(`${x}/sales/price-list/delete/${id}`),+ newPriceOverride: `${x}/sales/price-list/new`,+ duplicatePriceList: `${x}/sales/price-list/duplicate`,+ priceOverride: (id: string) => generatePath(`${x}/sales/price-list/${id}`),+ salesPricingRules: `${x}/sales/pricing-rules`,+ pricingRule: (id: string) => generatePath(`${x}/sales/pricing-rules/${id}`),+ newPricingRule: `${x}/sales/pricing-rules/new`,+ deletePricingRule: (id: string) =>+ generatePath(`${x}/sales/pricing-rules/delete/${id}`),+ salesRfq: (id: string) => generatePath(`${x}/sales-rfq/${id}`),+ salesRfqConvert: (id: string) =>+ generatePath(`${x}/sales-rfq/${id}/convert`),+ salesRfqDetails: (id: string) =>+ generatePath(`${x}/sales-rfq/${id}/details`),+ salesRfqDrag: (id: string) => generatePath(`${x}/sales-rfq/${id}/drag`),+ salesRfqFavorite: `${x}/sales/rfqs/favorite`,+ salesRfqLine: (id: string, lineId: string) =>+ generatePath(`${x}/sales-rfq/${id}/${lineId}/details`),+ salesRfqLineOrder: (id: string) =>+ generatePath(`${x}/sales-rfq/${id}/line-order`),+ salesRfqRoot: `${x}/sales-rfq`,+ salesRfqStatus: (id: string) => generatePath(`${x}/sales-rfq/${id}/status`),+ salesRfqs: `${x}/sales/rfqs`,+ salesSettings: `${x}/settings/sales`,++ // Purchasing RFQ paths+ purchasingRfq: (id: string) => generatePath(`${x}/purchasing-rfq/${id}`),+ purchasingRfqDetails: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/details`),+ purchasingRfqFavorite: `${x}/purchasing/rfqs/favorite`,+ purchasingRfqLine: (id: string, lineId: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/${lineId}/details`),+ purchasingRfqLineOrder: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/line-order`),+ purchasingRfqRoot: `${x}/purchasing-rfq`,+ purchasingRfqStatus: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/status`),+ cancelPurchasingRfq: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/cancel`),+ purchasingRfqFinalize: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/finalize`),+ purchasingRfqs: `${x}/purchasing/rfqs`,+ newPurchasingRFQ: `${x}/purchasing-rfq/new`,+ newPurchasingRFQLine: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/new`),+ deletePurchasingRfq: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/delete`),+ deletePurchasingRfqLine: (id: string, lineId: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/${lineId}/delete`),+ purchasingRfqConvert: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/convert`),+ purchasingRfqCompare: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/compare`),+ purchasingRfqSuppliers: (id: string) =>+ generatePath(`${x}/purchasing-rfq/${id}/suppliers`),+ purchasingRfqPreview: (id: string) =>+ generatePath(`/share/purchasing-rfq/${id}`),++ saveViews: `${x}/shared/views`,++ saveViewOrder: `${x}/shared/view/order`,+ scheduleOperation: `${x}/schedule/operations`,+ scheduleOperationUpdate: `${x}/schedule/operations/update`,+ scheduleDates: `${x}/schedule/dates`,+ scheduleDatesUpdate: `${x}/schedule/dates/update`,+ scrapReason: (id: string) =>+ generatePath(`${x}/production/scrap-reasons/${id}`),+ scrapReasons: `${x}/production/scrap-reasons`,+ serialNumbers: `${x}/inventory/serial-numbers`,+ serialNumber: (id: string) =>+ generatePath(`${x}/inventory/serial-numbers/${id}`),+ service: (id: string) => generatePath(`${x}/service/${id}`),+ services: `${x}/items/services`,+ serviceDetails: (id: string) => `${x}/service/${id}/details`,+ serviceRoot: `${x}/service`,+ servicePurchasing: (id: string) =>+ generatePath(`${x}/service/${id}/purchasing`),+ serviceSupplier: (serviceId: string, id: string) =>+ generatePath(`${x}/service/${serviceId}/purchasing/${id}`),+ serviceSuppliers: (id: string) =>+ generatePath(`${x}/service/${id}/suppliers`),+ settings: `${x}/settings`,+ sequences: `${x}/settings/sequences`,+ storageUnit: (id: string) =>+ generatePath(`${x}/inventory/storage-units/${id}`),+ storageUnits: `${x}/inventory/storage-units`,+ storageType: (id: string) =>+ generatePath(`${x}/inventory/storage-types/${id}`),+ storageTypes: `${x}/inventory/storage-types`,+ shift: (id: string) => generatePath(`${x}/people/shifts/${id}`),+ shifts: `${x}/people/shifts`,+ shipments: `${x}/inventory/shipments`,+ shipment: (id: string) => generatePath(`${x}/shipment/${id}`),+ shipmentDetails: (id: string) =>+ generatePath(`${x}/shipment/${id}/details`),+ shipmentLineDelete: (id: string) =>+ generatePath(`${x}/shipment/lines/${id}/delete`),+ shipmentLineSplit: `${x}/shipment/lines/split`,+ shipmentLinesTracking: (id: string) =>+ generatePath(`${x}/shipment/lines/tracking`),+ shipmentPost: (id: string) => generatePath(`${x}/shipment/${id}/post`),+ shipmentVoid: (id: string) => generatePath(`${x}/shipment/${id}/void`),+ shippingMethod: (id: string) =>+ generatePath(`${x}/inventory/shipping-methods/${id}`),+ warehouseTransfers: `${x}/inventory/warehouse-transfers`,+ warehouseTransfer: (id: string) =>+ generatePath(`${x}/warehouse-transfer/${id}`),+ warehouseTransferDetails: (id: string) =>+ generatePath(`${x}/warehouse-transfer/${id}/details`),+ warehouseTransferStatus: (id: string) =>+ generatePath(`${x}/warehouse-transfer/${id}/status`),+ warehouseTransferShip: (id: string) =>+ generatePath(`${x}/warehouse-transfer/${id}/ship`),+ warehouseTransferReceive: (id: string) =>+ generatePath(`${x}/warehouse-transfer/${id}/receive`),+ warehouseTransferLines: (transferId: string) =>+ generatePath(`${x}/warehouse-transfer/${transferId}/lines`),+ warehouseTransferLine: (transferId: string, lineId: string) =>+ generatePath(`${x}/warehouse-transfer/${transferId}/details/${lineId}`),+ shippingMethods: `${x}/inventory/shipping-methods`,+ supplier: (id: string) => generatePath(`${x}/supplier/${id}`),+ supplierApproval: (id: string) =>+ generatePath(`${x}/supplier/${id}/approval`),+ suppliers: `${x}/purchasing/suppliers`,+ supplierAccounts: `${x}/users/suppliers`,+ supplierAccounting: (id: string) =>+ generatePath(`${x}/supplier/${id}/accounting`),+ supplierContact: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/contacts/${id}`),+ supplierDetails: (id: string) =>+ generatePath(`${x}/supplier/${id}/details`),+ supplierContacts: (id: string) =>+ generatePath(`${x}/supplier/${id}/contacts`),+ supplierLocation: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/locations/${id}`),+ supplierLocations: (id: string) =>+ generatePath(`${x}/supplier/${id}/locations`),+ supplierPayment: (id: string) =>+ generatePath(`${x}/supplier/${id}/payments`),+ supplierProcess: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/processes/${id}`),+ supplierProcesses: (id: string) =>+ generatePath(`${x}/supplier/${id}/processes`),+ supplierRisks: (id: string) => generatePath(`${x}/supplier/${id}/risks`),+ supplierShipping: (id: string) =>+ generatePath(`${x}/supplier/${id}/shipping`),+ supplierTax: (id: string) => generatePath(`${x}/supplier/${id}/tax`),+ supplierQuote: (id: string) => generatePath(`${x}/supplier-quote/${id}`),+ supplierQuotes: `${x}/purchasing/quotes`,+ supplierQuoteFavorite: `${x}/purchasing/quotes/favorite`,+ supplierQuoteDetails: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/details`),+ supplierQuoteExchangeRate: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/exchange-rate`),+ supplierQuoteLine: (id: string, lineId: string) =>+ generatePath(`${x}/supplier-quote/${id}/${lineId}/details`),+ supplierQuoteLineOrder: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/line-order`),+ supplierQuoteFinalize: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/finalize`),+ supplierQuoteSend: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/send`),+ supplierQuoteStatus: (id: string) =>+ generatePath(`${x}/supplier-quote/${id}/status`),+ supplierRoot: `${x}/supplier`,+ supplierType: (id: string) =>+ generatePath(`${x}/purchasing/supplier-types/${id}`),+ supplierTypes: `${x}/purchasing/supplier-types`,+ tableSequence: (id: string) =>+ generatePath(`${x}/settings/sequences/${id}`),+ tags: `${x}/settings/tags`,+ theme: `${x}/account/theme`,+ timecards: `${x}/timecards`,+ tool: (id: string) => generatePath(`${x}/tool/${id}`),+ toolCosting: (id: string) => generatePath(`${x}/tool/${id}/costing`),+ toolDetails: (id: string) => generatePath(`${x}/tool/${id}/details`),+ toolInventory: (id: string) => generatePath(`${x}/tool/${id}/inventory`),+ toolInventoryLocation: (id: string, locationId: string) =>+ generatePath(`${x}/tool/${id}/inventory?location=${locationId}`),+ toolMake: (id: string, makeMethodId: string) =>+ generatePath(`${x}/tool/${id}/make/${makeMethodId}`),+ toolPlanning: (id: string) => generatePath(`${x}/tool/${id}/planning`),+ toolPlanningLocation: (id: string, locationId: string) =>+ generatePath(`${x}/tool/${id}/planning?location=${locationId}`),+ toolPricing: (id: string) => generatePath(`${x}/tool/${id}/pricing`),+ toolPurchasing: (id: string) => generatePath(`${x}/tool/${id}/purchasing`),+ toolQuality: (id: string) => generatePath(`${x}/tool/${id}/quality`),+ toolRoot: `${x}/tool`,+ toolSupplier: (itemId: string, id: string) =>+ generatePath(`${x}/tool/${itemId}/suppliers/${id}`),+ toolSuppliers: (id: string) => generatePath(`${x}/tool/${id}/suppliers`),+ tools: `${x}/items/tools`,+ traceability: `${x}/traceability`,+ traceabilityGraph: `${x}/traceability/graph`,+ trackedEntities: `${x}/inventory/tracked-entities`,+ trackedEntityExpiry: `${x}/inventory/tracked-entity/expiry`,+ training: (id: string) => generatePath(`${x}/training/${id}`),+ trainings: `${x}/resources/training`,+ trainingQuestion: (id: string, questionId: string) =>+ generatePath(`${x}/training/${id}/questions/${questionId}`),+ trainingQuestionOrder: (id: string) =>+ generatePath(`${x}/training/${id}/questions/order`),+ trainingAssignments: `${x}/resources/assignments`,+ trainingAssignmentDetail: (trainingId: string) =>+ generatePath(`${x}/resources/assignments/${trainingId}`),++ trainingAssignment: (assignmentId: string) =>+ generatePath(`${x}/resources/assignments/assignment/${assignmentId}`),+ uom: (id: string) => generatePath(`${x}/items/uom/${id}`),+ uoms: `${x}/items/uom`,+ userAttribute: (id: string) => generatePath(`${x}/account/${id}/attribute`),+ users: `${x}/users`,+ webhook: (id: string) => generatePath(`${x}/settings/webhooks/${id}`),+ webhooks: `${x}/settings/webhooks`,+ workCenters: `${x}/resources/work-centers`,+ workCenter: (id: string) =>+ generatePath(`${x}/resources/work-centers/${id}`),+ workCenterActivate: (id: string) =>+ generatePath(`${x}/resources/work-centers/activate/${id}`)+ }+} as const;++export const onboardingSequence = [+ path.to.onboarding.theme,+ path.to.onboarding.user,+ path.to.onboarding.company,+ path.to.onboarding.plan+] as const;++export const getStoragePath = (bucket: string, path: string) => {+ return `${SUPABASE_URL}/storage/v1/object/public/${bucket}/${path}`;+};++export const requestReferrer = (request: Request, withParams = true) => {+ return request.headers.get("referer");+};++export const getParams = (request: Request) => {+ const url = new URL(requestReferrer(request) ?? "");+ const searchParams = new URLSearchParams(url.search);+ return searchParams.toString();+};++export const getPrivateUrl = (path: string) => {+ return `/file/preview/private/${path}`;+};++export const getPublicModelUrl = (path: string) => {+ return `/file/model/public/${path}`;+};diff --git a/packages/paths/tsconfig.json b/packages/paths/tsconfig.jsonnew file mode 100644index 0000000000..8cee9135d1--- /dev/null+++ b/packages/paths/tsconfig.json@@ -0,0 +1,5 @@+{+ "extends": "@carbon/config/tsconfig/react-library.json",+ "include": ["src"],+ "exclude": ["dist", "build", "node_modules"]+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 85ef4246b2..24123cb4d1 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2340,6 +2340,10 @@ importers:version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))packages/notifications:+ dependencies:+ '@carbon/paths':+ specifier: workspace:*+ version: link:../pathsdevDependencies:'@carbon/config':specifier: workspace:*@@ -2357,6 +2361,22 @@ importers:specifier: 'catalog:'version: 5.8.3+ packages/paths:+ dependencies:+ react-router:+ specifier: 'catalog:'+ devDependencies:+ '@carbon/config':+ specifier: workspace:*+ version: link:../config+ '@types/node':+ specifier: 20.19.39+ version: 20.19.39+ typescript:+ specifier: 'catalog:'+ version: 5.8.3+packages/react:dependencies:'@carbon/database':