@de./types 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +113 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +92 -0
- package/dist/api.js.map +1 -0
- package/dist/auth.d.ts +109 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +80 -0
- package/dist/auth.js.map +1 -0
- package/dist/aux/agent-rvs.d.ts +1205 -0
- package/dist/aux/agent-rvs.d.ts.map +1 -0
- package/dist/aux/agent-rvs.js +444 -0
- package/dist/aux/agent-rvs.js.map +1 -0
- package/dist/aux/agents.d.ts +1573 -0
- package/dist/aux/agents.d.ts.map +1 -0
- package/dist/aux/agents.js +487 -0
- package/dist/aux/agents.js.map +1 -0
- package/dist/aux/customer-rvs.d.ts +711 -0
- package/dist/aux/customer-rvs.d.ts.map +1 -0
- package/dist/aux/customer-rvs.js +321 -0
- package/dist/aux/customer-rvs.js.map +1 -0
- package/dist/aux/customers.d.ts +379 -0
- package/dist/aux/customers.d.ts.map +1 -0
- package/dist/aux/customers.js +67 -0
- package/dist/aux/customers.js.map +1 -0
- package/dist/aux/index.d.ts +5 -0
- package/dist/aux/index.d.ts.map +1 -0
- package/dist/aux/index.js +21 -0
- package/dist/aux/index.js.map +1 -0
- package/dist/billing.d.ts +367 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +308 -0
- package/dist/billing.js.map +1 -0
- package/dist/bucket.d.ts +97 -0
- package/dist/bucket.d.ts.map +1 -0
- package/dist/bucket.js +52 -0
- package/dist/bucket.js.map +1 -0
- package/dist/context.d.ts +148 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +148 -0
- package/dist/context.js.map +1 -0
- package/dist/csp/analytics.d.ts +270 -0
- package/dist/csp/analytics.d.ts.map +1 -0
- package/dist/csp/analytics.js +185 -0
- package/dist/csp/analytics.js.map +1 -0
- package/dist/csp/base.d.ts +11 -0
- package/dist/csp/base.d.ts.map +1 -0
- package/dist/csp/base.js +17 -0
- package/dist/csp/base.js.map +1 -0
- package/dist/csp/index.d.ts +107 -0
- package/dist/csp/index.d.ts.map +1 -0
- package/dist/csp/index.js +48 -0
- package/dist/csp/index.js.map +1 -0
- package/dist/csp/inventory.d.ts +361 -0
- package/dist/csp/inventory.d.ts.map +1 -0
- package/dist/csp/inventory.js +267 -0
- package/dist/csp/inventory.js.map +1 -0
- package/dist/csp/order.d.ts +1457 -0
- package/dist/csp/order.d.ts.map +1 -0
- package/dist/csp/order.js +367 -0
- package/dist/csp/order.js.map +1 -0
- package/dist/csp/webhook.d.ts +381 -0
- package/dist/csp/webhook.d.ts.map +1 -0
- package/dist/csp/webhook.js +207 -0
- package/dist/csp/webhook.js.map +1 -0
- package/dist/de.profile.d.ts +411 -0
- package/dist/de.profile.d.ts.map +1 -0
- package/dist/de.profile.js +98 -0
- package/dist/de.profile.js.map +1 -0
- package/dist/dev/developer.d.ts +211 -0
- package/dist/dev/developer.d.ts.map +1 -0
- package/dist/dev/developer.js +55 -0
- package/dist/dev/developer.js.map +1 -0
- package/dist/dev/index.d.ts +133 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +79 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/entity.d.ts +159 -0
- package/dist/entity.d.ts.map +1 -0
- package/dist/entity.js +127 -0
- package/dist/entity.js.map +1 -0
- package/dist/events.d.ts +1844 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +303 -0
- package/dist/events.js.map +1 -0
- package/dist/faq.d.ts +60 -0
- package/dist/faq.d.ts.map +1 -0
- package/dist/faq.js +31 -0
- package/dist/faq.js.map +1 -0
- package/dist/geo.d.ts +123 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +87 -0
- package/dist/geo.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/inventory.d.ts +1347 -0
- package/dist/inventory.d.ts.map +1 -0
- package/dist/inventory.js +356 -0
- package/dist/inventory.js.map +1 -0
- package/dist/invoice.d.ts +46 -0
- package/dist/invoice.d.ts.map +1 -0
- package/dist/invoice.js +33 -0
- package/dist/invoice.js.map +1 -0
- package/dist/iotsp/device.d.ts +581 -0
- package/dist/iotsp/device.d.ts.map +1 -0
- package/dist/iotsp/device.js +277 -0
- package/dist/iotsp/device.js.map +1 -0
- package/dist/iotsp/index.d.ts +111 -0
- package/dist/iotsp/index.d.ts.map +1 -0
- package/dist/iotsp/index.js +76 -0
- package/dist/iotsp/index.js.map +1 -0
- package/dist/iotsp/rule.d.ts +340 -0
- package/dist/iotsp/rule.d.ts.map +1 -0
- package/dist/iotsp/rule.js +172 -0
- package/dist/iotsp/rule.js.map +1 -0
- package/dist/iotsp/topic.d.ts +249 -0
- package/dist/iotsp/topic.d.ts.map +1 -0
- package/dist/iotsp/topic.js +139 -0
- package/dist/iotsp/topic.js.map +1 -0
- package/dist/lsp/carrier/analytics.d.ts +1191 -0
- package/dist/lsp/carrier/analytics.d.ts.map +1 -0
- package/dist/lsp/carrier/analytics.js +354 -0
- package/dist/lsp/carrier/analytics.js.map +1 -0
- package/dist/lsp/carrier/capabilities.d.ts +3603 -0
- package/dist/lsp/carrier/capabilities.d.ts.map +1 -0
- package/dist/lsp/carrier/capabilities.js +880 -0
- package/dist/lsp/carrier/capabilities.js.map +1 -0
- package/dist/lsp/carrier/capacities.d.ts +4436 -0
- package/dist/lsp/carrier/capacities.d.ts.map +1 -0
- package/dist/lsp/carrier/capacities.js +615 -0
- package/dist/lsp/carrier/capacities.js.map +1 -0
- package/dist/lsp/carrier/index.d.ts +734 -0
- package/dist/lsp/carrier/index.d.ts.map +1 -0
- package/dist/lsp/carrier/index.js +150 -0
- package/dist/lsp/carrier/index.js.map +1 -0
- package/dist/lsp/carrier/performance.d.ts +567 -0
- package/dist/lsp/carrier/performance.d.ts.map +1 -0
- package/dist/lsp/carrier/performance.js +127 -0
- package/dist/lsp/carrier/performance.js.map +1 -0
- package/dist/lsp/carrier/utilities.d.ts +6671 -0
- package/dist/lsp/carrier/utilities.d.ts.map +1 -0
- package/dist/lsp/carrier/utilities.js +597 -0
- package/dist/lsp/carrier/utilities.js.map +1 -0
- package/dist/lsp/consolidation.d.ts +793 -0
- package/dist/lsp/consolidation.d.ts.map +1 -0
- package/dist/lsp/consolidation.js +343 -0
- package/dist/lsp/consolidation.js.map +1 -0
- package/dist/lsp/coverage.d.ts +7449 -0
- package/dist/lsp/coverage.d.ts.map +1 -0
- package/dist/lsp/coverage.js +706 -0
- package/dist/lsp/coverage.js.map +1 -0
- package/dist/lsp/fleet/index.d.ts +1128 -0
- package/dist/lsp/fleet/index.d.ts.map +1 -0
- package/dist/lsp/fleet/index.js +269 -0
- package/dist/lsp/fleet/index.js.map +1 -0
- package/dist/lsp/fleet/maintenance.d.ts +2022 -0
- package/dist/lsp/fleet/maintenance.d.ts.map +1 -0
- package/dist/lsp/fleet/maintenance.js +386 -0
- package/dist/lsp/fleet/maintenance.js.map +1 -0
- package/dist/lsp/fleet/parking.d.ts +2043 -0
- package/dist/lsp/fleet/parking.d.ts.map +1 -0
- package/dist/lsp/fleet/parking.js +458 -0
- package/dist/lsp/fleet/parking.js.map +1 -0
- package/dist/lsp/fleet/vehicle.d.ts +783 -0
- package/dist/lsp/fleet/vehicle.d.ts.map +1 -0
- package/dist/lsp/fleet/vehicle.js +314 -0
- package/dist/lsp/fleet/vehicle.js.map +1 -0
- package/dist/lsp/graph.d.ts +212 -0
- package/dist/lsp/graph.d.ts.map +1 -0
- package/dist/lsp/graph.js +92 -0
- package/dist/lsp/graph.js.map +1 -0
- package/dist/lsp/hub/analytics.d.ts +4294 -0
- package/dist/lsp/hub/analytics.d.ts.map +1 -0
- package/dist/lsp/hub/analytics.js +219 -0
- package/dist/lsp/hub/analytics.js.map +1 -0
- package/dist/lsp/hub/capabilities.d.ts +1467 -0
- package/dist/lsp/hub/capabilities.d.ts.map +1 -0
- package/dist/lsp/hub/capabilities.js +464 -0
- package/dist/lsp/hub/capabilities.js.map +1 -0
- package/dist/lsp/hub/capacities.d.ts +4278 -0
- package/dist/lsp/hub/capacities.d.ts.map +1 -0
- package/dist/lsp/hub/capacities.js +495 -0
- package/dist/lsp/hub/capacities.js.map +1 -0
- package/dist/lsp/hub/index.d.ts +2784 -0
- package/dist/lsp/hub/index.d.ts.map +1 -0
- package/dist/lsp/hub/index.js +268 -0
- package/dist/lsp/hub/index.js.map +1 -0
- package/dist/lsp/hub/performance.d.ts +391 -0
- package/dist/lsp/hub/performance.d.ts.map +1 -0
- package/dist/lsp/hub/performance.js +78 -0
- package/dist/lsp/hub/performance.js.map +1 -0
- package/dist/lsp/hub/utilities.d.ts +2996 -0
- package/dist/lsp/hub/utilities.d.ts.map +1 -0
- package/dist/lsp/hub/utilities.js +521 -0
- package/dist/lsp/hub/utilities.js.map +1 -0
- package/dist/lsp/index.d.ts +157 -0
- package/dist/lsp/index.d.ts.map +1 -0
- package/dist/lsp/index.js +121 -0
- package/dist/lsp/index.js.map +1 -0
- package/dist/lsp/operations.d.ts +563 -0
- package/dist/lsp/operations.d.ts.map +1 -0
- package/dist/lsp/operations.js +265 -0
- package/dist/lsp/operations.js.map +1 -0
- package/dist/lsp/order/delivery.d.ts +1119 -0
- package/dist/lsp/order/delivery.d.ts.map +1 -0
- package/dist/lsp/order/delivery.js +169 -0
- package/dist/lsp/order/delivery.js.map +1 -0
- package/dist/lsp/order/flow/processes.d.ts +8 -0
- package/dist/lsp/order/flow/processes.d.ts.map +1 -0
- package/dist/lsp/order/flow/processes.js +67 -0
- package/dist/lsp/order/flow/processes.js.map +1 -0
- package/dist/lsp/order/flow/stages.d.ts +8 -0
- package/dist/lsp/order/flow/stages.d.ts.map +1 -0
- package/dist/lsp/order/flow/stages.js +111 -0
- package/dist/lsp/order/flow/stages.js.map +1 -0
- package/dist/lsp/order/inbound.d.ts +1165 -0
- package/dist/lsp/order/inbound.d.ts.map +1 -0
- package/dist/lsp/order/inbound.js +185 -0
- package/dist/lsp/order/inbound.js.map +1 -0
- package/dist/lsp/order/internal.d.ts +1404 -0
- package/dist/lsp/order/internal.d.ts.map +1 -0
- package/dist/lsp/order/internal.js +255 -0
- package/dist/lsp/order/internal.js.map +1 -0
- package/dist/lsp/order/management.d.ts +541 -0
- package/dist/lsp/order/management.d.ts.map +1 -0
- package/dist/lsp/order/management.js +326 -0
- package/dist/lsp/order/management.js.map +1 -0
- package/dist/lsp/order/outbound.d.ts +909 -0
- package/dist/lsp/order/outbound.d.ts.map +1 -0
- package/dist/lsp/order/outbound.js +105 -0
- package/dist/lsp/order/outbound.js.map +1 -0
- package/dist/lsp/order/passthrough.d.ts +1816 -0
- package/dist/lsp/order/passthrough.d.ts.map +1 -0
- package/dist/lsp/order/passthrough.js +360 -0
- package/dist/lsp/order/passthrough.js.map +1 -0
- package/dist/lsp/order/ride.d.ts +1056 -0
- package/dist/lsp/order/ride.d.ts.map +1 -0
- package/dist/lsp/order/ride.js +166 -0
- package/dist/lsp/order/ride.js.map +1 -0
- package/dist/lsp/order/shipping.d.ts +1524 -0
- package/dist/lsp/order/shipping.d.ts.map +1 -0
- package/dist/lsp/order/shipping.js +223 -0
- package/dist/lsp/order/shipping.js.map +1 -0
- package/dist/lsp/performance.d.ts +2 -0
- package/dist/lsp/performance.d.ts.map +1 -0
- package/dist/lsp/performance.js +3 -0
- package/dist/lsp/performance.js.map +1 -0
- package/dist/lsp/pod/index.d.ts +805 -0
- package/dist/lsp/pod/index.d.ts.map +1 -0
- package/dist/lsp/pod/index.js +250 -0
- package/dist/lsp/pod/index.js.map +1 -0
- package/dist/lsp/pricing.d.ts +1811 -0
- package/dist/lsp/pricing.d.ts.map +1 -0
- package/dist/lsp/pricing.js +972 -0
- package/dist/lsp/pricing.js.map +1 -0
- package/dist/lsp/processing.d.ts +893 -0
- package/dist/lsp/processing.d.ts.map +1 -0
- package/dist/lsp/processing.js +202 -0
- package/dist/lsp/processing.js.map +1 -0
- package/dist/lsp/product.d.ts +76 -0
- package/dist/lsp/product.d.ts.map +1 -0
- package/dist/lsp/product.js +3 -0
- package/dist/lsp/product.js.map +1 -0
- package/dist/lsp/psl.d.ts +785 -0
- package/dist/lsp/psl.d.ts.map +1 -0
- package/dist/lsp/psl.js +333 -0
- package/dist/lsp/psl.js.map +1 -0
- package/dist/lsp/terminal/analytics.d.ts +278 -0
- package/dist/lsp/terminal/analytics.d.ts.map +1 -0
- package/dist/lsp/terminal/analytics.js +310 -0
- package/dist/lsp/terminal/analytics.js.map +1 -0
- package/dist/lsp/terminal/capabilities.d.ts +797 -0
- package/dist/lsp/terminal/capabilities.d.ts.map +1 -0
- package/dist/lsp/terminal/capabilities.js +506 -0
- package/dist/lsp/terminal/capabilities.js.map +1 -0
- package/dist/lsp/terminal/capacities.d.ts +3152 -0
- package/dist/lsp/terminal/capacities.d.ts.map +1 -0
- package/dist/lsp/terminal/capacities.js +504 -0
- package/dist/lsp/terminal/capacities.js.map +1 -0
- package/dist/lsp/terminal/index.d.ts +1056 -0
- package/dist/lsp/terminal/index.d.ts.map +1 -0
- package/dist/lsp/terminal/index.js +394 -0
- package/dist/lsp/terminal/index.js.map +1 -0
- package/dist/lsp/terminal/performance.d.ts +955 -0
- package/dist/lsp/terminal/performance.d.ts.map +1 -0
- package/dist/lsp/terminal/performance.js +159 -0
- package/dist/lsp/terminal/performance.js.map +1 -0
- package/dist/lsp/terminal/utilities.d.ts +2374 -0
- package/dist/lsp/terminal/utilities.d.ts.map +1 -0
- package/dist/lsp/terminal/utilities.js +161 -0
- package/dist/lsp/terminal/utilities.js.map +1 -0
- package/dist/lsp/warehouse/analytics.d.ts +3088 -0
- package/dist/lsp/warehouse/analytics.d.ts.map +1 -0
- package/dist/lsp/warehouse/analytics.js +229 -0
- package/dist/lsp/warehouse/analytics.js.map +1 -0
- package/dist/lsp/warehouse/capabilities.d.ts +1384 -0
- package/dist/lsp/warehouse/capabilities.d.ts.map +1 -0
- package/dist/lsp/warehouse/capabilities.js +567 -0
- package/dist/lsp/warehouse/capabilities.js.map +1 -0
- package/dist/lsp/warehouse/capacities.d.ts +2921 -0
- package/dist/lsp/warehouse/capacities.d.ts.map +1 -0
- package/dist/lsp/warehouse/capacities.js +450 -0
- package/dist/lsp/warehouse/capacities.js.map +1 -0
- package/dist/lsp/warehouse/index.d.ts +2566 -0
- package/dist/lsp/warehouse/index.d.ts.map +1 -0
- package/dist/lsp/warehouse/index.js +264 -0
- package/dist/lsp/warehouse/index.js.map +1 -0
- package/dist/lsp/warehouse/performance.d.ts +287 -0
- package/dist/lsp/warehouse/performance.d.ts.map +1 -0
- package/dist/lsp/warehouse/performance.js +72 -0
- package/dist/lsp/warehouse/performance.js.map +1 -0
- package/dist/lsp/warehouse/utilities.d.ts +5174 -0
- package/dist/lsp/warehouse/utilities.d.ts.map +1 -0
- package/dist/lsp/warehouse/utilities.js +588 -0
- package/dist/lsp/warehouse/utilities.js.map +1 -0
- package/dist/lsp/zones.d.ts +305 -0
- package/dist/lsp/zones.d.ts.map +1 -0
- package/dist/lsp/zones.js +118 -0
- package/dist/lsp/zones.js.map +1 -0
- package/dist/measure.d.ts +139 -0
- package/dist/measure.d.ts.map +1 -0
- package/dist/measure.js +190 -0
- package/dist/measure.js.map +1 -0
- package/dist/operator.d.ts +103 -0
- package/dist/operator.d.ts.map +1 -0
- package/dist/operator.js +38 -0
- package/dist/operator.js.map +1 -0
- package/dist/order.d.ts +2739 -0
- package/dist/order.d.ts.map +1 -0
- package/dist/order.js +1078 -0
- package/dist/order.js.map +1 -0
- package/dist/realm/index.d.ts +4 -0
- package/dist/realm/index.d.ts.map +1 -0
- package/dist/realm/index.js +20 -0
- package/dist/realm/index.js.map +1 -0
- package/dist/realm/pipelines.d.ts +32567 -0
- package/dist/realm/pipelines.d.ts.map +1 -0
- package/dist/realm/pipelines.js +1273 -0
- package/dist/realm/pipelines.js.map +1 -0
- package/dist/realm/queries.d.ts +1327 -0
- package/dist/realm/queries.d.ts.map +1 -0
- package/dist/realm/queries.js +456 -0
- package/dist/realm/queries.js.map +1 -0
- package/dist/realm/utilities.d.ts +1794 -0
- package/dist/realm/utilities.d.ts.map +1 -0
- package/dist/realm/utilities.js +594 -0
- package/dist/realm/utilities.js.map +1 -0
- package/dist/routing.d.ts +428 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/routing.js +60 -0
- package/dist/routing.js.map +1 -0
- package/dist/service.d.ts +264 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +60 -0
- package/dist/service.js.map +1 -0
- package/dist/shared/access.d.ts +102 -0
- package/dist/shared/access.d.ts.map +1 -0
- package/dist/shared/access.js +30 -0
- package/dist/shared/access.js.map +1 -0
- package/dist/shared/account.d.ts +44 -0
- package/dist/shared/account.d.ts.map +1 -0
- package/dist/shared/account.js +15 -0
- package/dist/shared/account.js.map +1 -0
- package/dist/shared/auth.d.ts +45 -0
- package/dist/shared/auth.d.ts.map +1 -0
- package/dist/shared/auth.js +19 -0
- package/dist/shared/auth.js.map +1 -0
- package/dist/shared/bucket.d.ts +294 -0
- package/dist/shared/bucket.d.ts.map +1 -0
- package/dist/shared/bucket.js +79 -0
- package/dist/shared/bucket.js.map +1 -0
- package/dist/shared/faq.d.ts +280 -0
- package/dist/shared/faq.d.ts.map +1 -0
- package/dist/shared/faq.js +73 -0
- package/dist/shared/faq.js.map +1 -0
- package/dist/shared/index.d.ts +10 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +26 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/invitation.d.ts +1525 -0
- package/dist/shared/invitation.d.ts.map +1 -0
- package/dist/shared/invitation.js +60 -0
- package/dist/shared/invitation.js.map +1 -0
- package/dist/shared/operator.d.ts +956 -0
- package/dist/shared/operator.d.ts.map +1 -0
- package/dist/shared/operator.js +48 -0
- package/dist/shared/operator.js.map +1 -0
- package/dist/shared/tracking.d.ts +31 -0
- package/dist/shared/tracking.d.ts.map +1 -0
- package/dist/shared/tracking.js +23 -0
- package/dist/shared/tracking.js.map +1 -0
- package/dist/shared/user.d.ts +77 -0
- package/dist/shared/user.d.ts.map +1 -0
- package/dist/shared/user.js +22 -0
- package/dist/shared/user.js.map +1 -0
- package/dist/sync.d.ts +539 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +329 -0
- package/dist/sync.js.map +1 -0
- package/dist/time.d.ts +139 -0
- package/dist/time.d.ts.map +1 -0
- package/dist/time.js +93 -0
- package/dist/time.js.map +1 -0
- package/dist/user.d.ts +394 -0
- package/dist/user.d.ts.map +1 -0
- package/dist/user.js +205 -0
- package/dist/user.js.map +1 -0
- package/dist/workspace/admin.d.ts +91 -0
- package/dist/workspace/admin.d.ts.map +1 -0
- package/dist/workspace/admin.js +33 -0
- package/dist/workspace/admin.js.map +1 -0
- package/dist/workspace/billing.d.ts +2 -0
- package/dist/workspace/billing.d.ts.map +1 -0
- package/dist/workspace/billing.js +18 -0
- package/dist/workspace/billing.js.map +1 -0
- package/dist/workspace/connector.d.ts +595 -0
- package/dist/workspace/connector.d.ts.map +1 -0
- package/dist/workspace/connector.js +229 -0
- package/dist/workspace/connector.js.map +1 -0
- package/dist/workspace/index.d.ts +36 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +21 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +70 -0
- package/src/api.ts +147 -0
- package/src/auth.ts +103 -0
- package/src/aux/agent-rvs.ts +596 -0
- package/src/aux/agents.ts +542 -0
- package/src/aux/customer-rvs.ts +421 -0
- package/src/aux/customers.ts +80 -0
- package/src/aux/index.ts +4 -0
- package/src/billing.ts +330 -0
- package/src/bucket.ts +58 -0
- package/src/context.ts +167 -0
- package/src/csp/analytics.ts +238 -0
- package/src/csp/base.ts +18 -0
- package/src/csp/index.ts +41 -0
- package/src/csp/inventory.ts +325 -0
- package/src/csp/order.ts +485 -0
- package/src/csp/webhook.ts +269 -0
- package/src/de.profile.ts +123 -0
- package/src/dev/developer.ts +90 -0
- package/src/dev/index.ts +81 -0
- package/src/entity.ts +154 -0
- package/src/events.ts +349 -0
- package/src/faq.ts +39 -0
- package/src/geo.ts +111 -0
- package/src/index.ts +48 -0
- package/src/inventory.ts +405 -0
- package/src/invoice.ts +37 -0
- package/src/iotsp/device.ts +334 -0
- package/src/iotsp/index.ts +91 -0
- package/src/iotsp/rule.ts +227 -0
- package/src/iotsp/topic.ts +191 -0
- package/src/lsp/carrier/analytics.ts +393 -0
- package/src/lsp/carrier/capabilities.ts +1009 -0
- package/src/lsp/carrier/capacities.ts +723 -0
- package/src/lsp/carrier/index.ts +175 -0
- package/src/lsp/carrier/performance.ts +145 -0
- package/src/lsp/carrier/utilities.ts +654 -0
- package/src/lsp/consolidation.ts +420 -0
- package/src/lsp/coverage.ts +869 -0
- package/src/lsp/fleet/index.ts +327 -0
- package/src/lsp/fleet/maintenance.ts +478 -0
- package/src/lsp/fleet/parking.ts +582 -0
- package/src/lsp/fleet/vehicle.ts +381 -0
- package/src/lsp/graph.ts +113 -0
- package/src/lsp/hub/analytics.ts +236 -0
- package/src/lsp/hub/capabilities.ts +549 -0
- package/src/lsp/hub/capacities.ts +590 -0
- package/src/lsp/hub/index.ts +298 -0
- package/src/lsp/hub/performance.ts +89 -0
- package/src/lsp/hub/utilities.ts +560 -0
- package/src/lsp/index.ts +125 -0
- package/src/lsp/operations.ts +304 -0
- package/src/lsp/order/delivery.ts +212 -0
- package/src/lsp/order/flow/processes.ts +70 -0
- package/src/lsp/order/flow/stages.ts +119 -0
- package/src/lsp/order/inbound.ts +231 -0
- package/src/lsp/order/internal.ts +305 -0
- package/src/lsp/order/management.ts +367 -0
- package/src/lsp/order/outbound.ts +128 -0
- package/src/lsp/order/passthrough.ts +434 -0
- package/src/lsp/order/ride.ts +190 -0
- package/src/lsp/order/shipping.ts +263 -0
- package/src/lsp/performance.ts +2 -0
- package/src/lsp/pod/index.ts +323 -0
- package/src/lsp/pricing.ts +1097 -0
- package/src/lsp/processing.ts +243 -0
- package/src/lsp/product.ts +104 -0
- package/src/lsp/psl.ts +399 -0
- package/src/lsp/terminal/analytics.ts +334 -0
- package/src/lsp/terminal/capabilities.ts +541 -0
- package/src/lsp/terminal/capacities.ts +556 -0
- package/src/lsp/terminal/index.ts +442 -0
- package/src/lsp/terminal/performance.ts +168 -0
- package/src/lsp/terminal/utilities.ts +173 -0
- package/src/lsp/warehouse/analytics.ts +248 -0
- package/src/lsp/warehouse/capabilities.ts +673 -0
- package/src/lsp/warehouse/capacities.ts +538 -0
- package/src/lsp/warehouse/index.ts +298 -0
- package/src/lsp/warehouse/performance.ts +83 -0
- package/src/lsp/warehouse/utilities.ts +634 -0
- package/src/lsp/zones.ts +148 -0
- package/src/measure.ts +240 -0
- package/src/operator.ts +39 -0
- package/src/order.ts +1207 -0
- package/src/realm/index.ts +3 -0
- package/src/realm/pipelines.ts +1607 -0
- package/src/realm/queries.ts +608 -0
- package/src/realm/utilities.ts +730 -0
- package/src/routing.ts +69 -0
- package/src/service.ts +66 -0
- package/src/shared/access.ts +58 -0
- package/src/shared/account.ts +25 -0
- package/src/shared/auth.ts +30 -0
- package/src/shared/bucket.ts +153 -0
- package/src/shared/faq.ts +139 -0
- package/src/shared/index.ts +9 -0
- package/src/shared/invitation.ts +124 -0
- package/src/shared/operator.ts +159 -0
- package/src/shared/tracking.ts +30 -0
- package/src/shared/user.ts +42 -0
- package/src/sync.ts +364 -0
- package/src/time.ts +113 -0
- package/src/user.ts +243 -0
- package/src/workspace/admin.ts +38 -0
- package/src/workspace/billing.ts +1 -0
- package/src/workspace/connector.ts +270 -0
- package/src/workspace/index.ts +22 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// ─── @de./types ───────────────────────────────────────────────────────────────
|
|
2
|
+
//
|
|
3
|
+
// Shared domain types for the De. platform.
|
|
4
|
+
//
|
|
5
|
+
// Consuming projects:
|
|
6
|
+
// • de.arch, de.auth, de.iotb — import schemas for runtime validation
|
|
7
|
+
// import { RTLocationSchema, type RTLocation } from '@de./types'
|
|
8
|
+
//
|
|
9
|
+
// • de.sdk, de.sdk-rn — import TS types only (TypeBox tree-shaken away)
|
|
10
|
+
// import type { RTLocation, OrderPackage } from '@de./types'
|
|
11
|
+
//
|
|
12
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
13
|
+
|
|
14
|
+
// ─── Base / primitive layer ───────────────────────────────────────────────────
|
|
15
|
+
|
|
16
|
+
export * from './time'
|
|
17
|
+
export * from './measure'
|
|
18
|
+
export * from './geo'
|
|
19
|
+
export * from './billing'
|
|
20
|
+
export * from './entity'
|
|
21
|
+
export * from './context'
|
|
22
|
+
export * from './user'
|
|
23
|
+
export * from './auth'
|
|
24
|
+
export * from './api'
|
|
25
|
+
export * from './faq'
|
|
26
|
+
export * from './order'
|
|
27
|
+
export * from './routing'
|
|
28
|
+
export * from './events'
|
|
29
|
+
|
|
30
|
+
// ─── Cross-service domain types ───────────────────────────────────────────────
|
|
31
|
+
|
|
32
|
+
export * from './service'
|
|
33
|
+
export * from './bucket'
|
|
34
|
+
export * from './inventory'
|
|
35
|
+
export * from './operator'
|
|
36
|
+
export * from './sync'
|
|
37
|
+
export * from './de.profile'
|
|
38
|
+
|
|
39
|
+
// ─── Service-specific types ───────────────────────────────────────────────────
|
|
40
|
+
|
|
41
|
+
export * from './lsp'
|
|
42
|
+
export * from './csp'
|
|
43
|
+
export * from './iotsp'
|
|
44
|
+
export * from './dev'
|
|
45
|
+
export * from './aux'
|
|
46
|
+
export * from './workspace'
|
|
47
|
+
export * from './realm'
|
|
48
|
+
export * from './shared'
|
package/src/inventory.ts
ADDED
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from './context'
|
|
3
|
+
import { CSPServiceContextSchema } from './csp/base'
|
|
4
|
+
import { LSPServiceContextSchema } from './lsp'
|
|
5
|
+
import { ActionRecordSchema, DateTimeZoneSchema } from './time'
|
|
6
|
+
import { MoneySchema } from './measure'
|
|
7
|
+
import { SyncAlertSeveritySchema, SyncAlertTypeSchema, SyncConflictSchema, SyncDirectionSchema, SyncStatusSchema } from './sync'
|
|
8
|
+
|
|
9
|
+
// Inventory Item Status Schema (Shared)
|
|
10
|
+
export const InventoryItemStatusSchema = Type.Union([
|
|
11
|
+
Type.Literal('AVAILABLE'),
|
|
12
|
+
Type.Literal('RESERVED'),
|
|
13
|
+
Type.Literal('DAMAGED'),
|
|
14
|
+
Type.Literal('EXPIRED'),
|
|
15
|
+
Type.Literal('IN_TRANSIT'),
|
|
16
|
+
Type.Literal('QUARANTINED')
|
|
17
|
+
])
|
|
18
|
+
|
|
19
|
+
// Inventory Item Condition Schema (Shared)
|
|
20
|
+
export const InventoryItemConditionSchema = Type.Union([
|
|
21
|
+
Type.Literal('NEW'),
|
|
22
|
+
Type.Literal('USED'),
|
|
23
|
+
Type.Literal('REFURBISHED'),
|
|
24
|
+
Type.Literal('DAMAGED')
|
|
25
|
+
])
|
|
26
|
+
|
|
27
|
+
// Inventory Discrepancy Schema
|
|
28
|
+
export const InventoryDiscrepancySchema = Type.Object({
|
|
29
|
+
id: Type.String(),
|
|
30
|
+
expectedQuantity: Type.Number({ minimum: 0 }),
|
|
31
|
+
actualQuantity: Type.Number({ minimum: 0 }),
|
|
32
|
+
variance: Type.Number(),
|
|
33
|
+
detected: ActionRecordSchema,
|
|
34
|
+
reason: Type.Optional(Type.String({ maxLength: 500 })),
|
|
35
|
+
isResolved: Type.Boolean(),
|
|
36
|
+
resolved: Type.Optional(ActionRecordSchema)
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
// Inventory Alert Schema
|
|
40
|
+
export const InventoryAlertSchema = Type.Object({
|
|
41
|
+
id: Type.String(),
|
|
42
|
+
type: SyncAlertTypeSchema,
|
|
43
|
+
severity: SyncAlertSeveritySchema,
|
|
44
|
+
message: Type.String({ maxLength: 1000 }),
|
|
45
|
+
triggered: ActionRecordSchema,
|
|
46
|
+
acknowledged: Type.Optional(ActionRecordSchema),
|
|
47
|
+
autoResolved: Type.Optional(Type.Boolean())
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
// Inventory Item Schema
|
|
51
|
+
export const InventoryItemProductSchema = Type.Object({
|
|
52
|
+
id: Type.String({ description: 'Universal product ID' }),
|
|
53
|
+
sku: Type.String({ description: 'Master SKU' }),
|
|
54
|
+
internalId: Type.Optional(Type.String({ description: "RSP's internal product ID" })),
|
|
55
|
+
internalSku: Type.Optional(Type.String({ description: "RSP's SKU if different" })),
|
|
56
|
+
name: Type.String({ description: 'Cached product name for quick access' }),
|
|
57
|
+
lastSynced: Type.Optional(ActionRecordSchema),
|
|
58
|
+
catalogSyncStatus: SyncStatusSchema,
|
|
59
|
+
syncConflicts: Type.Optional(Type.Array(SyncConflictSchema))
|
|
60
|
+
})
|
|
61
|
+
export const InventoryItemQuantitySchema = Type.Object({
|
|
62
|
+
total: Type.Number({ minimum: 0 }),
|
|
63
|
+
available: Type.Number({ minimum: 0 }),
|
|
64
|
+
reserved: Type.Optional(Type.Number({ minimum: 0 })),
|
|
65
|
+
onOrder: Type.Optional(Type.Number({
|
|
66
|
+
minimum: 0,
|
|
67
|
+
description: 'Quantity on order/in transit'
|
|
68
|
+
})),
|
|
69
|
+
damaged: Type.Optional(Type.Number({ minimum: 0 })),
|
|
70
|
+
expired: Type.Optional(Type.Number({ minimum: 0 }))
|
|
71
|
+
})
|
|
72
|
+
export const InventoryItemSchema = Type.Object({
|
|
73
|
+
id: Type.String(),
|
|
74
|
+
slot: Type.String({ description: 'String address of the slot location' }),
|
|
75
|
+
client: CSPServiceContextSchema,
|
|
76
|
+
product: InventoryItemProductSchema,
|
|
77
|
+
quantity: InventoryItemQuantitySchema,
|
|
78
|
+
lotNumber: Type.Optional(Type.String()),
|
|
79
|
+
serialNumbers: Type.Optional(Type.Array(Type.String())),
|
|
80
|
+
batchId: Type.Optional(Type.String()),
|
|
81
|
+
dates: Type.Object({
|
|
82
|
+
manufacturing: Type.Optional(DateTimeZoneSchema),
|
|
83
|
+
expiration: Type.Optional(DateTimeZoneSchema)
|
|
84
|
+
}),
|
|
85
|
+
status: InventoryItemStatusSchema,
|
|
86
|
+
condition: InventoryItemConditionSchema,
|
|
87
|
+
cost: Type.Optional(MoneySchema),
|
|
88
|
+
lastCountDate: Type.Optional(DateTimeZoneSchema),
|
|
89
|
+
cycleCountDue: Type.Optional(Type.Boolean()),
|
|
90
|
+
discrepancyHistory: Type.Optional(Type.Array(InventoryDiscrepancySchema)),
|
|
91
|
+
customsInfo: Type.Optional(Type.Object({
|
|
92
|
+
hsCode: Type.String(),
|
|
93
|
+
value: MoneySchema,
|
|
94
|
+
description: Type.String({ maxLength: 500 }),
|
|
95
|
+
originCountry: Type.String({
|
|
96
|
+
minLength: 2,
|
|
97
|
+
maxLength: 2,
|
|
98
|
+
description: 'ISO 3166-1 alpha-2 country code'
|
|
99
|
+
})
|
|
100
|
+
})),
|
|
101
|
+
notes: Type.Optional(Type.String({ maxLength: 2000 })),
|
|
102
|
+
alerts: Type.Optional(Type.Array(InventoryAlertSchema)),
|
|
103
|
+
received: ActionRecordSchema,
|
|
104
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
// Inventory Transaction Schema
|
|
108
|
+
export const InventoryTransactionTypeSchema = Type.Union([
|
|
109
|
+
Type.Literal('RECEIVING'),
|
|
110
|
+
Type.Literal('ADJUSTMENT'),
|
|
111
|
+
Type.Literal('PICK'),
|
|
112
|
+
Type.Literal('PUTAWAY'),
|
|
113
|
+
Type.Literal('TRANSFER'),
|
|
114
|
+
Type.Literal('RETURN'),
|
|
115
|
+
Type.Literal('DAMAGE'),
|
|
116
|
+
Type.Literal('CYCLE_COUNT'),
|
|
117
|
+
Type.Literal('SCRAP'),
|
|
118
|
+
Type.Literal('CATALOG_SYNC'),
|
|
119
|
+
Type.Literal('PRODUCT_UPDATE'),
|
|
120
|
+
Type.Literal('SKU_MAPPING'),
|
|
121
|
+
Type.Literal('STOCK_ALERT')
|
|
122
|
+
])
|
|
123
|
+
export const InventoryTransactionSchema = Type.Object({
|
|
124
|
+
id: Type.String(),
|
|
125
|
+
type: InventoryTransactionTypeSchema,
|
|
126
|
+
productId: Type.String(),
|
|
127
|
+
slot: Type.String({ description: 'String address of the slot location' }),
|
|
128
|
+
quantity: Type.Number(),
|
|
129
|
+
lotNumber: Type.Optional(Type.String()),
|
|
130
|
+
serialNumbers: Type.Optional(Type.Array(Type.String())),
|
|
131
|
+
batchId: Type.Optional(Type.String()),
|
|
132
|
+
reference: Type.Optional(Type.Object({
|
|
133
|
+
id: Type.String(),
|
|
134
|
+
type: Type.Optional(Type.Union([
|
|
135
|
+
Type.Literal('ORDER'),
|
|
136
|
+
Type.Literal('TRANSFER'),
|
|
137
|
+
Type.Literal('RETURN'),
|
|
138
|
+
Type.Literal('SYNC'),
|
|
139
|
+
Type.Literal('ADJUSTMENT')
|
|
140
|
+
])),
|
|
141
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
142
|
+
})),
|
|
143
|
+
syncContext: Type.Optional(Type.Object({
|
|
144
|
+
client: CSPServiceContextSchema,
|
|
145
|
+
orderId: Type.Optional(Type.String()),
|
|
146
|
+
syncBatchId: Type.Optional(Type.String()),
|
|
147
|
+
triggered: ActionRecordSchema
|
|
148
|
+
})),
|
|
149
|
+
isVerified: Type.Optional(Type.Boolean()),
|
|
150
|
+
verified: Type.Optional(ActionRecordSchema),
|
|
151
|
+
notes: Type.Optional(Type.String({ maxLength: 1000 })),
|
|
152
|
+
performed: ActionRecordSchema
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
// Generate TypeScript types from schemas
|
|
156
|
+
export type InventoryDiscrepancy = Static<typeof InventoryDiscrepancySchema>
|
|
157
|
+
export type InventoryAlert = Static<typeof InventoryAlertSchema>
|
|
158
|
+
export type InventoryItem = Static<typeof InventoryItemSchema>
|
|
159
|
+
export type InventoryItemStatus = Static<typeof InventoryItemStatusSchema>
|
|
160
|
+
export type InventoryItemCondition = Static<typeof InventoryItemConditionSchema>
|
|
161
|
+
export type InventoryTransactionType = Static<typeof InventoryTransactionTypeSchema>
|
|
162
|
+
export type InventoryTransaction = Static<typeof InventoryTransactionSchema>
|
|
163
|
+
|
|
164
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
165
|
+
|
|
166
|
+
import {
|
|
167
|
+
APIErrorSchema,
|
|
168
|
+
APIHeadersSchema,
|
|
169
|
+
APIResponseBaseSchema,
|
|
170
|
+
APIResponseDataSchemaFactory
|
|
171
|
+
} from './api'
|
|
172
|
+
|
|
173
|
+
export const LSPInventoryCreateRVS = {
|
|
174
|
+
headers: APIHeadersSchema,
|
|
175
|
+
body: Type.Omit(InventoryItemSchema, ['id', 'created', 'updated']),
|
|
176
|
+
response: {
|
|
177
|
+
201: APIResponseDataSchemaFactory({ itemId: Type.String() }),
|
|
178
|
+
'4XX': APIErrorSchema
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const LSPInventoryUpdateRVS = {
|
|
183
|
+
headers: APIHeadersSchema,
|
|
184
|
+
params: Type.Object({ itemId: Type.String() }),
|
|
185
|
+
body: Type.Partial(Type.Omit(InventoryItemSchema, ['id', 'created', 'updated'])),
|
|
186
|
+
response: {
|
|
187
|
+
200: APIResponseDataSchemaFactory({ item: InventoryItemSchema }),
|
|
188
|
+
'4XX': APIErrorSchema
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export const LSPInventoryRetrieveRVS = {
|
|
193
|
+
headers: APIHeadersSchema,
|
|
194
|
+
params: Type.Object({ itemId: Type.String() }),
|
|
195
|
+
response: {
|
|
196
|
+
200: APIResponseDataSchemaFactory({ item: InventoryItemSchema }),
|
|
197
|
+
'4XX': APIErrorSchema
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export const LSPInventoryFetchRVS = {
|
|
202
|
+
headers: APIHeadersSchema,
|
|
203
|
+
querystring: Type.Object({
|
|
204
|
+
status: Type.Optional(Type.String()),
|
|
205
|
+
locationId: Type.Optional(Type.String()),
|
|
206
|
+
productId: Type.Optional(Type.String()),
|
|
207
|
+
limit: Type.Optional(Type.Number()),
|
|
208
|
+
offset: Type.Optional(Type.Number())
|
|
209
|
+
}),
|
|
210
|
+
response: {
|
|
211
|
+
200: APIResponseDataSchemaFactory({ items: Type.Array(InventoryItemSchema), total: Type.Number() }),
|
|
212
|
+
'4XX': APIErrorSchema
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export const LSPInventoryRemoveRVS = {
|
|
217
|
+
headers: APIHeadersSchema,
|
|
218
|
+
params: Type.Object({ itemId: Type.String() }),
|
|
219
|
+
response: {
|
|
220
|
+
200: APIResponseBaseSchema,
|
|
221
|
+
'4XX': APIErrorSchema
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export const LSPInventoryAdjustRVS = {
|
|
226
|
+
headers: APIHeadersSchema,
|
|
227
|
+
params: Type.Object({ itemId: Type.String() }),
|
|
228
|
+
body: Type.Object({
|
|
229
|
+
quantity: Type.Number(),
|
|
230
|
+
reason: Type.Optional(Type.String()),
|
|
231
|
+
notes: Type.Optional(Type.String())
|
|
232
|
+
}),
|
|
233
|
+
response: {
|
|
234
|
+
200: APIResponseDataSchemaFactory({ item: InventoryItemSchema, transaction: InventoryTransactionSchema }),
|
|
235
|
+
'4XX': APIErrorSchema
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type LSPInventoryCreateValidation = { body: Static<typeof LSPInventoryCreateRVS.body>, response: Static<(typeof LSPInventoryCreateRVS.response)[201]> }
|
|
240
|
+
export type LSPInventoryUpdateValidation = { params: Static<typeof LSPInventoryUpdateRVS.params>, body: Static<typeof LSPInventoryUpdateRVS.body>, response: Static<(typeof LSPInventoryUpdateRVS.response)[200]> }
|
|
241
|
+
export type LSPInventoryRetrieveValidation = { params: Static<typeof LSPInventoryRetrieveRVS.params>, response: Static<(typeof LSPInventoryRetrieveRVS.response)[200]> }
|
|
242
|
+
export type LSPInventoryFetchValidation = { querystring: Static<typeof LSPInventoryFetchRVS.querystring>, response: Static<(typeof LSPInventoryFetchRVS.response)[200]> }
|
|
243
|
+
export type LSPInventoryRemoveValidation = { params: Static<typeof LSPInventoryRemoveRVS.params>, response: Static<(typeof LSPInventoryRemoveRVS.response)[200]> }
|
|
244
|
+
export type LSPInventoryAdjustValidation = { params: Static<typeof LSPInventoryAdjustRVS.params>, body: Static<typeof LSPInventoryAdjustRVS.body>, response: Static<(typeof LSPInventoryAdjustRVS.response)[200]> }
|
|
245
|
+
|
|
246
|
+
// Inventory Reservation Schema
|
|
247
|
+
export const InventoryReservationSchema = Type.Object({
|
|
248
|
+
id: Type.String(),
|
|
249
|
+
orderId: Type.String(),
|
|
250
|
+
items: Type.Array(Type.Object({
|
|
251
|
+
productId: Type.String(),
|
|
252
|
+
sku: Type.String(),
|
|
253
|
+
quantity: Type.Number({ minimum: 1 })
|
|
254
|
+
})),
|
|
255
|
+
expiry: Type.Optional(DateTimeZoneSchema),
|
|
256
|
+
created: ActionRecordSchema,
|
|
257
|
+
released: Type.Optional(ActionRecordSchema)
|
|
258
|
+
})
|
|
259
|
+
|
|
260
|
+
// Inventory Sync Request Schema
|
|
261
|
+
export const InventorySyncRequestSchema = Type.Object({
|
|
262
|
+
direction: SyncDirectionSchema,
|
|
263
|
+
targetProvider: Type.Optional(LSPServiceContextSchema),
|
|
264
|
+
items: Type.Optional(Type.Array(Type.Object({
|
|
265
|
+
productId: Type.String(),
|
|
266
|
+
sku: Type.Optional(Type.String())
|
|
267
|
+
}))),
|
|
268
|
+
fullSync: Type.Optional(Type.Boolean())
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
// Inventory Sync Log Schema
|
|
272
|
+
export const InventorySyncLogSchema = Type.Object({
|
|
273
|
+
id: Type.String(),
|
|
274
|
+
direction: SyncDirectionSchema,
|
|
275
|
+
provider: Type.Union([ContextSchema, LSPServiceContextSchema]),
|
|
276
|
+
status: SyncStatusSchema,
|
|
277
|
+
itemsProcessed: Type.Number({ minimum: 0 }),
|
|
278
|
+
itemsFailed: Type.Number({ minimum: 0 }),
|
|
279
|
+
errors: Type.Optional(Type.Array(Type.String())),
|
|
280
|
+
conflicts: Type.Optional(Type.Array(Type.Any())),
|
|
281
|
+
errorLog: Type.Optional(Type.Array(Type.Object({
|
|
282
|
+
productId: Type.String(),
|
|
283
|
+
sku: Type.String(),
|
|
284
|
+
error: Type.String()
|
|
285
|
+
}))),
|
|
286
|
+
started: ActionRecordSchema,
|
|
287
|
+
completed: Type.Optional(ActionRecordSchema)
|
|
288
|
+
})
|
|
289
|
+
|
|
290
|
+
// Inventory Availability Request & Response Schema
|
|
291
|
+
export const InventoryAvailabilityRequestSchema = Type.Object({
|
|
292
|
+
items: Type.Array(Type.Object({
|
|
293
|
+
productId: Type.String(),
|
|
294
|
+
sku: Type.String(),
|
|
295
|
+
quantity: Type.Number({ minimum: 1 })
|
|
296
|
+
}))
|
|
297
|
+
})
|
|
298
|
+
|
|
299
|
+
export type InventoryReservation = Static<typeof InventoryReservationSchema>
|
|
300
|
+
export type InventorySyncRequest = Static<typeof InventorySyncRequestSchema>
|
|
301
|
+
export type InventorySyncLog = Static<typeof InventorySyncLogSchema>
|
|
302
|
+
export type InventoryAvailabilityRequest = Static<typeof InventoryAvailabilityRequestSchema>
|
|
303
|
+
|
|
304
|
+
// Inventory utility schemas for inventory management
|
|
305
|
+
export const InventoryQuerySchema = Type.Object({
|
|
306
|
+
workspaceId: Type.Optional(Type.String()),
|
|
307
|
+
clientId: Type.Optional(Type.String()),
|
|
308
|
+
productId: Type.Optional(Type.String()),
|
|
309
|
+
sku: Type.Optional(Type.String()),
|
|
310
|
+
slot: Type.Optional(Type.String()),
|
|
311
|
+
status: Type.Optional(Type.Array(InventoryItemStatusSchema)),
|
|
312
|
+
condition: Type.Optional(Type.Array(InventoryItemConditionSchema)),
|
|
313
|
+
hasStock: Type.Optional(Type.Boolean()),
|
|
314
|
+
cycleCountDue: Type.Optional(Type.Boolean()),
|
|
315
|
+
expiryRange: Type.Optional(Type.Object({
|
|
316
|
+
from: Type.Optional(DateTimeZoneSchema),
|
|
317
|
+
to: Type.Optional(DateTimeZoneSchema)
|
|
318
|
+
})),
|
|
319
|
+
lotNumber: Type.Optional(Type.String()),
|
|
320
|
+
batchId: Type.Optional(Type.String()),
|
|
321
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 1000 })),
|
|
322
|
+
offset: Type.Optional(Type.Number({ minimum: 0 }))
|
|
323
|
+
})
|
|
324
|
+
|
|
325
|
+
export const InventoryStatsSchema = Type.Object({
|
|
326
|
+
workspaceId: Type.String(),
|
|
327
|
+
totalItems: Type.Number({ minimum: 0 }),
|
|
328
|
+
totalQuantity: Type.Number({ minimum: 0 }),
|
|
329
|
+
totalValue: Type.Optional(MoneySchema),
|
|
330
|
+
byStatus: Type.Record(InventoryItemStatusSchema, Type.Number({ minimum: 0 })),
|
|
331
|
+
byCondition: Type.Record(InventoryItemConditionSchema, Type.Number({ minimum: 0 })),
|
|
332
|
+
lowStock: Type.Number({ minimum: 0, description: 'Items below reorder point' }),
|
|
333
|
+
expiringItems: Type.Number({ minimum: 0, description: 'Items expiring within 30 days' }),
|
|
334
|
+
cycleCountDue: Type.Number({ minimum: 0 }),
|
|
335
|
+
discrepancies: Type.Number({ minimum: 0, description: 'Unresolved discrepancies' }),
|
|
336
|
+
turnoverRate: Type.Optional(Type.Number({ minimum: 0, description: 'Inventory turnover rate' })),
|
|
337
|
+
accuracy: Type.Optional(Type.Number({ minimum: 0, maximum: 100, description: 'Inventory accuracy percentage' }))
|
|
338
|
+
})
|
|
339
|
+
|
|
340
|
+
export const InventoryMovementSchema = Type.Object({
|
|
341
|
+
id: Type.String(),
|
|
342
|
+
productId: Type.String(),
|
|
343
|
+
fromSlot: Type.Optional(Type.String()),
|
|
344
|
+
toSlot: Type.String(),
|
|
345
|
+
quantity: Type.Number({ minimum: 1 }),
|
|
346
|
+
reason: Type.Union([
|
|
347
|
+
Type.Literal('OPTIMIZATION'),
|
|
348
|
+
Type.Literal('DAMAGE'),
|
|
349
|
+
Type.Literal('EXPIRY'),
|
|
350
|
+
Type.Literal('CONSOLIDATION'),
|
|
351
|
+
Type.Literal('REPLENISHMENT'),
|
|
352
|
+
Type.Literal('MANUAL')
|
|
353
|
+
]),
|
|
354
|
+
movementType: Type.Union([
|
|
355
|
+
Type.Literal('PUTAWAY'),
|
|
356
|
+
Type.Literal('PICK'),
|
|
357
|
+
Type.Literal('REPLENISHMENT'),
|
|
358
|
+
Type.Literal('RELOCATION'),
|
|
359
|
+
Type.Literal('TRANSFER')
|
|
360
|
+
]),
|
|
361
|
+
priority: Type.Union([
|
|
362
|
+
Type.Literal('LOW'),
|
|
363
|
+
Type.Literal('NORMAL'),
|
|
364
|
+
Type.Literal('HIGH'),
|
|
365
|
+
Type.Literal('URGENT')
|
|
366
|
+
]),
|
|
367
|
+
assignedTo: Type.Optional(Type.String()),
|
|
368
|
+
scheduledAt: Type.Optional(DateTimeZoneSchema),
|
|
369
|
+
startedAt: Type.Optional(DateTimeZoneSchema),
|
|
370
|
+
completedAt: Type.Optional(DateTimeZoneSchema),
|
|
371
|
+
status: Type.Union([
|
|
372
|
+
Type.Literal('PENDING'),
|
|
373
|
+
Type.Literal('ASSIGNED'),
|
|
374
|
+
Type.Literal('IN_PROGRESS'),
|
|
375
|
+
Type.Literal('COMPLETED'),
|
|
376
|
+
Type.Literal('CANCELLED')
|
|
377
|
+
]),
|
|
378
|
+
notes: Type.Optional(Type.String({ maxLength: 500 })),
|
|
379
|
+
created: ActionRecordSchema,
|
|
380
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
381
|
+
})
|
|
382
|
+
|
|
383
|
+
export const InventoryValuationSchema = Type.Object({
|
|
384
|
+
workspaceId: Type.String(),
|
|
385
|
+
calculationMethod: Type.Union([
|
|
386
|
+
Type.Literal('FIFO'),
|
|
387
|
+
Type.Literal('LIFO'),
|
|
388
|
+
Type.Literal('AVERAGE_COST'),
|
|
389
|
+
Type.Literal('STANDARD_COST')
|
|
390
|
+
]),
|
|
391
|
+
totalValue: MoneySchema,
|
|
392
|
+
totalUnits: Type.Number({ minimum: 0 }),
|
|
393
|
+
averageUnitCost: MoneySchema,
|
|
394
|
+
byCategory: Type.Optional(Type.Record(Type.String(), Type.Object({
|
|
395
|
+
value: MoneySchema,
|
|
396
|
+
units: Type.Number({ minimum: 0 }),
|
|
397
|
+
avgCost: MoneySchema
|
|
398
|
+
}))),
|
|
399
|
+
calculated: ActionRecordSchema
|
|
400
|
+
})
|
|
401
|
+
|
|
402
|
+
export type InventoryQuery = Static<typeof InventoryQuerySchema>
|
|
403
|
+
export type InventoryStats = Static<typeof InventoryStatsSchema>
|
|
404
|
+
export type InventoryMovement = Static<typeof InventoryMovementSchema>
|
|
405
|
+
export type InventoryValuation = Static<typeof InventoryValuationSchema>
|
package/src/invoice.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
|
|
3
|
+
// ─── Service cost ─────────────────────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
export const ServiceCostSchema = Type.Object({
|
|
6
|
+
description: Type.String(),
|
|
7
|
+
per: Type.Union([Type.Literal('mb'), Type.Literal('day'), Type.Literal('quota')]),
|
|
8
|
+
unit: Type.Number(),
|
|
9
|
+
costPerUnit: Type.Number(),
|
|
10
|
+
currency: Type.Object({
|
|
11
|
+
code: Type.String(),
|
|
12
|
+
name: Type.String(),
|
|
13
|
+
symbol: Type.String()
|
|
14
|
+
})
|
|
15
|
+
})
|
|
16
|
+
export const BillingItemSchema = Type.Composite([
|
|
17
|
+
ServiceCostSchema,
|
|
18
|
+
Type.Object({ usage: Type.Number() })
|
|
19
|
+
])
|
|
20
|
+
export const BillingSchema = Type.Object({
|
|
21
|
+
id: Type.String(),
|
|
22
|
+
nsp: Type.String(),
|
|
23
|
+
status: Type.Union([
|
|
24
|
+
Type.Literal('CURRENT'),
|
|
25
|
+
Type.Literal('DUE'),
|
|
26
|
+
Type.Literal('OVERDUE'),
|
|
27
|
+
Type.Literal('SETTLED')
|
|
28
|
+
]),
|
|
29
|
+
items: Type.Record(Type.String(), BillingItemSchema),
|
|
30
|
+
due: Type.Number()
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
// ─── TypeScript types ─────────────────────────────────────────────────────────
|
|
34
|
+
|
|
35
|
+
export type ServiceCost = Static<typeof ServiceCostSchema>
|
|
36
|
+
export type BillingItem = Static<typeof BillingItemSchema>
|
|
37
|
+
export type Billing = Static<typeof BillingSchema>
|