@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/billing.ts
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ActionRecordSchema, DateTimeZoneSchema } from './time'
|
|
3
|
+
|
|
4
|
+
export const AccountTierSchema = Type.Union([
|
|
5
|
+
Type.Literal('LITE'),
|
|
6
|
+
Type.Literal('SCALE'),
|
|
7
|
+
Type.Literal('VOLUME')
|
|
8
|
+
])
|
|
9
|
+
|
|
10
|
+
export const BillingStatusSchema = Type.Union([
|
|
11
|
+
Type.Literal('ACTIVE'),
|
|
12
|
+
Type.Literal('SUSPENDED'),
|
|
13
|
+
Type.Literal('PAST_DUE'),
|
|
14
|
+
Type.Literal('CANCELLED')
|
|
15
|
+
])
|
|
16
|
+
|
|
17
|
+
export const TierConfigSchema = Type.Object({
|
|
18
|
+
tier: AccountTierSchema,
|
|
19
|
+
freeAllowance: Type.Number(),
|
|
20
|
+
pricePerRequest: Type.Number(),
|
|
21
|
+
autoUpgradeThreshold: Type.Optional(Type.Number()),
|
|
22
|
+
features: Type.Array(Type.String()),
|
|
23
|
+
rateLimit: Type.Object({
|
|
24
|
+
requestsPerSecond: Type.Number(),
|
|
25
|
+
burstCapacity: Type.Number()
|
|
26
|
+
}),
|
|
27
|
+
support: Type.Object({
|
|
28
|
+
level: Type.String(),
|
|
29
|
+
responseTime: Type.String()
|
|
30
|
+
}),
|
|
31
|
+
sla: Type.Object({
|
|
32
|
+
uptime: Type.Number(),
|
|
33
|
+
hasPenalties: Type.Boolean()
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
export const UsageRecordSchema = Type.Object({
|
|
38
|
+
id: Type.String(),
|
|
39
|
+
wid: Type.String(),
|
|
40
|
+
billingPeriod: Type.Object({
|
|
41
|
+
start: DateTimeZoneSchema,
|
|
42
|
+
end: DateTimeZoneSchema
|
|
43
|
+
}),
|
|
44
|
+
requestCount: Type.Number(),
|
|
45
|
+
tier: AccountTierSchema,
|
|
46
|
+
billableRequests: Type.Number(),
|
|
47
|
+
estimatedCost: Type.Number(),
|
|
48
|
+
breakdown: Type.Object({
|
|
49
|
+
free: Type.Number(),
|
|
50
|
+
billable: Type.Number()
|
|
51
|
+
}),
|
|
52
|
+
lastUpdated: DateTimeZoneSchema
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
export const TierUpgradeEventSchema = Type.Object({
|
|
56
|
+
id: Type.String(),
|
|
57
|
+
wid: Type.String(),
|
|
58
|
+
fromTier: AccountTierSchema,
|
|
59
|
+
toTier: AccountTierSchema,
|
|
60
|
+
reason: Type.Union([
|
|
61
|
+
Type.Literal('AUTO_THRESHOLD'),
|
|
62
|
+
Type.Literal('MANUAL_UPGRADE'),
|
|
63
|
+
Type.Literal('MANUAL_DOWNGRADE')
|
|
64
|
+
]),
|
|
65
|
+
triggerThreshold: Type.Optional(Type.Number()),
|
|
66
|
+
requestCount: Type.Number(),
|
|
67
|
+
upgraded: ActionRecordSchema,
|
|
68
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any()))
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
export const ThresholdNotificationSchema = Type.Object({
|
|
72
|
+
id: Type.String(),
|
|
73
|
+
wid: Type.String(),
|
|
74
|
+
type: Type.Union([
|
|
75
|
+
Type.Literal('USAGE_WARNING_80'),
|
|
76
|
+
Type.Literal('USAGE_WARNING_95'),
|
|
77
|
+
Type.Literal('TIER_UPGRADE_IMMINENT'),
|
|
78
|
+
Type.Literal('TIER_UPGRADED'),
|
|
79
|
+
Type.Literal('BILLING_ESTIMATE')
|
|
80
|
+
]),
|
|
81
|
+
threshold: Type.Number(),
|
|
82
|
+
currentUsage: Type.Number(),
|
|
83
|
+
estimatedCost: Type.Optional(Type.Number()),
|
|
84
|
+
sent: DateTimeZoneSchema,
|
|
85
|
+
acknowledged: Type.Optional(Type.Boolean())
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
export const AccountBillingSchema = Type.Object({
|
|
89
|
+
wid: Type.String(),
|
|
90
|
+
status: BillingStatusSchema,
|
|
91
|
+
paymentMethod: Type.Optional(Type.Object({
|
|
92
|
+
type: Type.Union([
|
|
93
|
+
Type.Literal('CARD'),
|
|
94
|
+
Type.Literal('BANK_TRANSFER'),
|
|
95
|
+
Type.Literal('INVOICE')
|
|
96
|
+
]),
|
|
97
|
+
fingerprint: Type.String(),
|
|
98
|
+
last4: Type.Optional(Type.String()),
|
|
99
|
+
expiryMonth: Type.Optional(Type.Number()),
|
|
100
|
+
expiryYear: Type.Optional(Type.Number()),
|
|
101
|
+
verified: Type.Boolean()
|
|
102
|
+
})),
|
|
103
|
+
currentPeriod: Type.Object({
|
|
104
|
+
start: DateTimeZoneSchema,
|
|
105
|
+
end: DateTimeZoneSchema,
|
|
106
|
+
requestCount: Type.Number(),
|
|
107
|
+
billableRequests: Type.Number(),
|
|
108
|
+
estimatedCost: Type.Number(),
|
|
109
|
+
byConnector: Type.Array(Type.Object({
|
|
110
|
+
cid: Type.String(),
|
|
111
|
+
tier: AccountTierSchema,
|
|
112
|
+
requestCount: Type.Number(),
|
|
113
|
+
billableRequests: Type.Number(),
|
|
114
|
+
estimatedCost: Type.Number()
|
|
115
|
+
}))
|
|
116
|
+
}),
|
|
117
|
+
connectors: Type.Object({
|
|
118
|
+
total: Type.Number(),
|
|
119
|
+
byTier: Type.Object({
|
|
120
|
+
LITE: Type.Number(),
|
|
121
|
+
SCALE: Type.Number(),
|
|
122
|
+
VOLUME: Type.Number()
|
|
123
|
+
})
|
|
124
|
+
}),
|
|
125
|
+
abuseFlags: Type.Optional(Type.Array(Type.Object({
|
|
126
|
+
type: Type.Union([
|
|
127
|
+
Type.Literal('MULTIPLE_ACCOUNTS'),
|
|
128
|
+
Type.Literal('TIER_CYCLING'),
|
|
129
|
+
Type.Literal('SUSPICIOUS_PATTERN')
|
|
130
|
+
]),
|
|
131
|
+
detected: DateTimeZoneSchema,
|
|
132
|
+
severity: Type.Union([
|
|
133
|
+
Type.Literal('LOW'),
|
|
134
|
+
Type.Literal('MEDIUM'),
|
|
135
|
+
Type.Literal('HIGH')
|
|
136
|
+
]),
|
|
137
|
+
resolved: Type.Optional(Type.Boolean())
|
|
138
|
+
}))),
|
|
139
|
+
created: ActionRecordSchema,
|
|
140
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
export const BillingInvoiceSchema = Type.Object({
|
|
144
|
+
id: Type.String(),
|
|
145
|
+
invoiceNumber: Type.String(),
|
|
146
|
+
wid: Type.String(),
|
|
147
|
+
period: Type.Object({
|
|
148
|
+
start: DateTimeZoneSchema,
|
|
149
|
+
end: DateTimeZoneSchema
|
|
150
|
+
}),
|
|
151
|
+
lineItems: Type.Array(Type.Object({
|
|
152
|
+
description: Type.String(),
|
|
153
|
+
quantity: Type.Number(),
|
|
154
|
+
unitPrice: Type.Number(),
|
|
155
|
+
amount: Type.Number()
|
|
156
|
+
})),
|
|
157
|
+
subtotal: Type.Number(),
|
|
158
|
+
tax: Type.Number(),
|
|
159
|
+
total: Type.Number(),
|
|
160
|
+
currency: Type.String(),
|
|
161
|
+
status: Type.Union([
|
|
162
|
+
Type.Literal('DRAFT'),
|
|
163
|
+
Type.Literal('OPEN'),
|
|
164
|
+
Type.Literal('PAID'),
|
|
165
|
+
Type.Literal('VOID'),
|
|
166
|
+
Type.Literal('UNCOLLECTIBLE')
|
|
167
|
+
]),
|
|
168
|
+
dueDate: DateTimeZoneSchema,
|
|
169
|
+
paidAt: Type.Optional(DateTimeZoneSchema),
|
|
170
|
+
created: ActionRecordSchema
|
|
171
|
+
})
|
|
172
|
+
|
|
173
|
+
export const DowngradeCooldownSchema = Type.Object({
|
|
174
|
+
cid: Type.String(),
|
|
175
|
+
wid: Type.String(),
|
|
176
|
+
lastDowngrade: DateTimeZoneSchema,
|
|
177
|
+
cooldownUntil: DateTimeZoneSchema,
|
|
178
|
+
fromTier: AccountTierSchema,
|
|
179
|
+
toTier: AccountTierSchema,
|
|
180
|
+
canChangeAt: DateTimeZoneSchema,
|
|
181
|
+
downgraded: ActionRecordSchema
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
// Connector Billing Schema - Per-connector tier and usage tracking
|
|
185
|
+
export const ConnectorBillingSchema = Type.Object({
|
|
186
|
+
wid: Type.String(),
|
|
187
|
+
cid: Type.String(),
|
|
188
|
+
tier: AccountTierSchema,
|
|
189
|
+
status: Type.Union([
|
|
190
|
+
Type.Literal('ACTIVE'),
|
|
191
|
+
Type.Literal('PAUSED')
|
|
192
|
+
]),
|
|
193
|
+
currentPeriod: Type.Object({
|
|
194
|
+
start: DateTimeZoneSchema,
|
|
195
|
+
end: DateTimeZoneSchema,
|
|
196
|
+
requestCount: Type.Number(),
|
|
197
|
+
billableRequests: Type.Number(),
|
|
198
|
+
estimatedCost: Type.Number()
|
|
199
|
+
}),
|
|
200
|
+
tierHistory: Type.Array(TierUpgradeEventSchema),
|
|
201
|
+
lastTierChange: Type.Optional(Type.Object({
|
|
202
|
+
date: DateTimeZoneSchema,
|
|
203
|
+
fromTier: AccountTierSchema,
|
|
204
|
+
toTier: AccountTierSchema,
|
|
205
|
+
cooldownUntil: Type.Optional(DateTimeZoneSchema)
|
|
206
|
+
})),
|
|
207
|
+
created: ActionRecordSchema,
|
|
208
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
// ─── Subscription ─────────────────────────────────────────────────────────────
|
|
212
|
+
|
|
213
|
+
export const SubscriptionSchema = Type.Object({
|
|
214
|
+
status: Type.String(),
|
|
215
|
+
package: Type.String(),
|
|
216
|
+
history: Type.Array(Type.Any()),
|
|
217
|
+
datetime: DateTimeZoneSchema
|
|
218
|
+
})
|
|
219
|
+
|
|
220
|
+
export type AccountTier = Static<typeof AccountTierSchema>
|
|
221
|
+
export type BillingStatus = Static<typeof BillingStatusSchema>
|
|
222
|
+
export type TierConfig = Static<typeof TierConfigSchema>
|
|
223
|
+
export type UsageRecord = Static<typeof UsageRecordSchema>
|
|
224
|
+
export type TierUpgradeEvent = Static<typeof TierUpgradeEventSchema>
|
|
225
|
+
export type ThresholdNotification = Static<typeof ThresholdNotificationSchema>
|
|
226
|
+
export type AccountBilling = Static<typeof AccountBillingSchema>
|
|
227
|
+
export type BillingInvoice = Static<typeof BillingInvoiceSchema>
|
|
228
|
+
export type DowngradeCooldown = Static<typeof DowngradeCooldownSchema>
|
|
229
|
+
export type ConnectorBilling = Static<typeof ConnectorBillingSchema>
|
|
230
|
+
export type Subscription = Static<typeof SubscriptionSchema>
|
|
231
|
+
|
|
232
|
+
export const TIER_CONFIGS: Record<AccountTier, TierConfig> = {
|
|
233
|
+
LITE: {
|
|
234
|
+
tier: 'LITE',
|
|
235
|
+
freeAllowance: 25000,
|
|
236
|
+
pricePerRequest: 0,
|
|
237
|
+
autoUpgradeThreshold: 25000,
|
|
238
|
+
features: [
|
|
239
|
+
'Full API access',
|
|
240
|
+
'Community support',
|
|
241
|
+
'Public documentation',
|
|
242
|
+
'No feature restrictions'
|
|
243
|
+
],
|
|
244
|
+
rateLimit: {
|
|
245
|
+
requestsPerSecond: 10,
|
|
246
|
+
burstCapacity: 50
|
|
247
|
+
},
|
|
248
|
+
support: {
|
|
249
|
+
level: 'Community',
|
|
250
|
+
responseTime: 'Best effort (Discord/Forum)'
|
|
251
|
+
},
|
|
252
|
+
sla: {
|
|
253
|
+
uptime: 99.5,
|
|
254
|
+
hasPenalties: false
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
SCALE: {
|
|
258
|
+
tier: 'SCALE',
|
|
259
|
+
freeAllowance: 0,
|
|
260
|
+
pricePerRequest: 0.0025,
|
|
261
|
+
autoUpgradeThreshold: 1000000,
|
|
262
|
+
features: [
|
|
263
|
+
'All Developer features',
|
|
264
|
+
'Email support (24hr response)',
|
|
265
|
+
'99.9% uptime SLA',
|
|
266
|
+
'Enhanced rate limits',
|
|
267
|
+
'Beta feature access',
|
|
268
|
+
'Monthly usage reports'
|
|
269
|
+
],
|
|
270
|
+
rateLimit: {
|
|
271
|
+
requestsPerSecond: 50,
|
|
272
|
+
burstCapacity: 200
|
|
273
|
+
},
|
|
274
|
+
support: {
|
|
275
|
+
level: 'Email',
|
|
276
|
+
responseTime: '24 hours'
|
|
277
|
+
},
|
|
278
|
+
sla: {
|
|
279
|
+
uptime: 99.9,
|
|
280
|
+
hasPenalties: false
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
VOLUME: {
|
|
284
|
+
tier: 'VOLUME',
|
|
285
|
+
freeAllowance: 0,
|
|
286
|
+
pricePerRequest: 0.001,
|
|
287
|
+
features: [
|
|
288
|
+
'All Pro features',
|
|
289
|
+
'Dedicated account manager',
|
|
290
|
+
'Priority support (4hr response)',
|
|
291
|
+
'99.95% uptime SLA with penalties',
|
|
292
|
+
'Custom contract terms',
|
|
293
|
+
'On-premise deployment options',
|
|
294
|
+
'White-label capabilities',
|
|
295
|
+
'Custom feature development',
|
|
296
|
+
'Quarterly business reviews'
|
|
297
|
+
],
|
|
298
|
+
rateLimit: {
|
|
299
|
+
requestsPerSecond: 200,
|
|
300
|
+
burstCapacity: 1000
|
|
301
|
+
},
|
|
302
|
+
support: {
|
|
303
|
+
level: 'Priority',
|
|
304
|
+
responseTime: '4 hours (Slack channel)'
|
|
305
|
+
},
|
|
306
|
+
sla: {
|
|
307
|
+
uptime: 99.95,
|
|
308
|
+
hasPenalties: true
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export const PRICING_CONSTANTS = {
|
|
314
|
+
LITE_FREE_LIMIT: 25000,
|
|
315
|
+
SCALE_UPGRADE_THRESHOLD: 25000,
|
|
316
|
+
VOLUME_UPGRADE_THRESHOLD: 1000000,
|
|
317
|
+
BASE_PRICE_PER_REQUEST: 0.0025,
|
|
318
|
+
NOTIFICATION_THRESHOLDS: {
|
|
319
|
+
WARNING_80: 0.8,
|
|
320
|
+
WARNING_95: 0.95,
|
|
321
|
+
UPGRADE_100: 1.0
|
|
322
|
+
},
|
|
323
|
+
DOWNGRADE_COOLDOWN_DAYS: 30,
|
|
324
|
+
CUSTOM_VOLUME_TIERS: [
|
|
325
|
+
{ min: 1000000, max: 10000000, price: 0.0025 },
|
|
326
|
+
{ min: 10000000, max: 50000000, price: 0.002 },
|
|
327
|
+
{ min: 50000000, max: 100000000, price: 0.0018 },
|
|
328
|
+
{ min: 100000000, max: Infinity, price: 0.0015 }
|
|
329
|
+
]
|
|
330
|
+
}
|
package/src/bucket.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { UserAssigneeSchema } from './user'
|
|
3
|
+
import { ActionRecordSchema } from './time'
|
|
4
|
+
import { ContextSchema } from './context'
|
|
5
|
+
|
|
6
|
+
// ─── Bucket ───────────────────────────────────────────────────────────────────
|
|
7
|
+
//
|
|
8
|
+
// A Bucket groups multiple orders under a shared reference for consolidated
|
|
9
|
+
// dispatch, routing, or workspace-level tracking.
|
|
10
|
+
|
|
11
|
+
export const BucketLogSchema = Type.Intersect([
|
|
12
|
+
ActionRecordSchema,
|
|
13
|
+
Type.Object({
|
|
14
|
+
status: Type.Union([
|
|
15
|
+
Type.Literal('LSP_ASSIGNED'),
|
|
16
|
+
Type.Literal('LSP_UNASSIGNED'),
|
|
17
|
+
Type.Literal('WSP_ASSIGNED'),
|
|
18
|
+
Type.Literal('WSP_UNASSIGNED'),
|
|
19
|
+
Type.Literal('LOCKED'),
|
|
20
|
+
Type.Literal('UNLOCKED'),
|
|
21
|
+
Type.Literal('PACKAGED'),
|
|
22
|
+
Type.Literal('EXPIRED')
|
|
23
|
+
]),
|
|
24
|
+
assignee: Type.Optional(UserAssigneeSchema),
|
|
25
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
26
|
+
})
|
|
27
|
+
])
|
|
28
|
+
|
|
29
|
+
export const BucketSchema = Type.Object({
|
|
30
|
+
reference: Type.String(),
|
|
31
|
+
PTC: Type.Optional(Type.String()),
|
|
32
|
+
context: ContextSchema,
|
|
33
|
+
name: Type.Optional(Type.String({ maxLength: 100 })),
|
|
34
|
+
description: Type.Optional(Type.String({ maxLength: 500 })),
|
|
35
|
+
categories: Type.Array(Type.String()),
|
|
36
|
+
tags: Type.Optional(Type.Array(Type.String())),
|
|
37
|
+
items: Type.Array(Type.String()),
|
|
38
|
+
assignees: Type.Array(UserAssigneeSchema),
|
|
39
|
+
locked: Type.Optional(Type.Boolean()),
|
|
40
|
+
packaged: Type.Optional(Type.Boolean()),
|
|
41
|
+
logs: Type.Array(BucketLogSchema),
|
|
42
|
+
created: ActionRecordSchema,
|
|
43
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
export const BucketUpdateSchema = Type.Object({
|
|
47
|
+
PTC: Type.Optional(Type.String()),
|
|
48
|
+
name: Type.Optional(Type.String({ maxLength: 100 })),
|
|
49
|
+
description: Type.Optional(Type.String({ maxLength: 500 })),
|
|
50
|
+
categories: Type.Optional(Type.Array(Type.String())),
|
|
51
|
+
tags: Type.Optional(Type.Array(Type.String()))
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
// ─── TypeScript types ─────────────────────────────────────────────────────────
|
|
55
|
+
|
|
56
|
+
export type BucketLog = Static<typeof BucketLogSchema>
|
|
57
|
+
export type Bucket = Static<typeof BucketSchema>
|
|
58
|
+
export type BucketUpdate = Static<typeof BucketUpdateSchema>
|
package/src/context.ts
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { AddressSchema, ContactsSchema, CompanySchema } from './geo'
|
|
3
|
+
import { ActionRecordSchema } from './time'
|
|
4
|
+
|
|
5
|
+
// ─── Service provider types ───────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
export const SPCodeSchema = Type.String({
|
|
8
|
+
minLength: 3,
|
|
9
|
+
maxLength: 20,
|
|
10
|
+
description: 'Integration code for system reference'
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
export const SPTypeSchema = Type.Union([
|
|
14
|
+
// Logistics
|
|
15
|
+
Type.Literal('FLEET'),
|
|
16
|
+
Type.Literal('CARRIER'),
|
|
17
|
+
Type.Literal('WAREHOUSE'),
|
|
18
|
+
Type.Literal('TERMINAL'),
|
|
19
|
+
Type.Literal('HUB'),
|
|
20
|
+
Type.Literal('POD'),
|
|
21
|
+
Type.Literal('BROKER'),
|
|
22
|
+
Type.Literal('FORWARDER'),
|
|
23
|
+
Type.Literal('3PL'),
|
|
24
|
+
Type.Literal('4PL'),
|
|
25
|
+
// Commerce
|
|
26
|
+
Type.Literal('RETAIL'),
|
|
27
|
+
Type.Literal('VENDOR'),
|
|
28
|
+
Type.Literal('SHIPPER'),
|
|
29
|
+
Type.Literal('MANUFACTURER'),
|
|
30
|
+
// Professional services
|
|
31
|
+
Type.Literal('CONSULTANCY'),
|
|
32
|
+
Type.Literal('ENTERPRISE'),
|
|
33
|
+
Type.Literal('FREELANCE'),
|
|
34
|
+
// IoT — tracking & monitoring
|
|
35
|
+
Type.Literal('ASSET_TRACKING'),
|
|
36
|
+
Type.Literal('FLEET_TRACKING'),
|
|
37
|
+
Type.Literal('CARGO_MONITORING'),
|
|
38
|
+
Type.Literal('COLD_CHAIN'),
|
|
39
|
+
Type.Literal('LOCATION_SERVICES'),
|
|
40
|
+
// IoT — telematics
|
|
41
|
+
Type.Literal('TELEMATICS'),
|
|
42
|
+
Type.Literal('DRIVER_BEHAVIOR'),
|
|
43
|
+
Type.Literal('VEHICLE_DIAGNOSTICS'),
|
|
44
|
+
Type.Literal('FUEL_MONITORING'),
|
|
45
|
+
// IoT — sensors
|
|
46
|
+
Type.Literal('ENVIRONMENTAL_SENSORS'),
|
|
47
|
+
Type.Literal('SECURITY_SENSORS'),
|
|
48
|
+
Type.Literal('SHOCK_VIBRATION'),
|
|
49
|
+
Type.Literal('LIGHT_EXPOSURE'),
|
|
50
|
+
// IoT — connectivity
|
|
51
|
+
Type.Literal('CONNECTIVITY_PROVIDER'),
|
|
52
|
+
Type.Literal('SATELLITE_IOT'),
|
|
53
|
+
Type.Literal('EDGE_COMPUTING'),
|
|
54
|
+
// IoT — platforms
|
|
55
|
+
Type.Literal('IOT_PLATFORM'),
|
|
56
|
+
Type.Literal('ANALYTICS'),
|
|
57
|
+
Type.Literal('INTEGRATION'),
|
|
58
|
+
// IoT — specialized
|
|
59
|
+
Type.Literal('WAREHOUSE_IOT'),
|
|
60
|
+
Type.Literal('YARD_MANAGEMENT'),
|
|
61
|
+
Type.Literal('SMART_LOCKS'),
|
|
62
|
+
Type.Literal('RFID'),
|
|
63
|
+
Type.Literal('BARCODE_SCANNING'),
|
|
64
|
+
// General
|
|
65
|
+
Type.Literal('HARDWARE_PROVIDER'),
|
|
66
|
+
Type.Literal('SOFTWARE_PROVIDER'),
|
|
67
|
+
Type.Literal('FULL_SOLUTION'),
|
|
68
|
+
Type.Literal('OTHER')
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
export const SPProfileSchema = Type.Object({
|
|
72
|
+
wid: Type.String(),
|
|
73
|
+
xcode: SPCodeSchema,
|
|
74
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
75
|
+
description: Type.String({ maxLength: 1000 }),
|
|
76
|
+
logo: Type.String({ format: 'uri', description: 'Logo URL' }),
|
|
77
|
+
contacts: ContactsSchema,
|
|
78
|
+
address: Type.Optional(AddressSchema),
|
|
79
|
+
website: Type.Optional(Type.String({ format: 'uri' })),
|
|
80
|
+
company: Type.Optional(CompanySchema),
|
|
81
|
+
created: ActionRecordSchema,
|
|
82
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
83
|
+
})
|
|
84
|
+
export const SPProfileUpdateSchema = Type.Partial(
|
|
85
|
+
Type.Omit(SPProfileSchema, ['wid', 'xcode', 'created', 'updated'])
|
|
86
|
+
)
|
|
87
|
+
export const SPAvailabilitySchema = Type.Object({
|
|
88
|
+
isAcceptingOrders: Type.Boolean(),
|
|
89
|
+
isFullyOperational: Type.Boolean(),
|
|
90
|
+
hasCapacity: Type.Boolean(),
|
|
91
|
+
healthStatus: Type.Union([
|
|
92
|
+
Type.Literal('HEALTHY'),
|
|
93
|
+
Type.Literal('DEGRADED'),
|
|
94
|
+
Type.Literal('CRITICAL')
|
|
95
|
+
])
|
|
96
|
+
})
|
|
97
|
+
export const SPPerformanceSummarySchema = Type.Object({
|
|
98
|
+
reliability: Type.Number({ minimum: 0, maximum: 100 }),
|
|
99
|
+
onTimePerformance: Type.Number({ minimum: 0, maximum: 100 }),
|
|
100
|
+
accuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
101
|
+
customerSatisfaction: Type.Number({ minimum: 0, maximum: 100 }),
|
|
102
|
+
capacityUtilization: Type.Number({ minimum: 0, maximum: 100 }),
|
|
103
|
+
availableCapacity: Type.Number({ minimum: 0, maximum: 100 }),
|
|
104
|
+
capacityStress: Type.Number({ minimum: 0, maximum: 100 }),
|
|
105
|
+
operationalEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
|
|
106
|
+
costEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
|
|
107
|
+
performanceTrend: Type.Union([
|
|
108
|
+
Type.Literal('IMPROVING'),
|
|
109
|
+
Type.Literal('STABLE'),
|
|
110
|
+
Type.Literal('DECLINING')
|
|
111
|
+
]),
|
|
112
|
+
overallScore: Type.Number({ minimum: 0, maximum: 100 })
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
// ─── Context ──────────────────────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
export const ContextTypeSchema = Type.Union([
|
|
118
|
+
Type.Literal('WORKSPACE'),
|
|
119
|
+
Type.Literal('REALM'),
|
|
120
|
+
Type.Literal('IoTSP'),
|
|
121
|
+
Type.Literal('LSP'),
|
|
122
|
+
Type.Literal('CSP'),
|
|
123
|
+
Type.Literal('DEV')
|
|
124
|
+
])
|
|
125
|
+
export const ContextSchema = Type.Object({
|
|
126
|
+
wid: Type.String(), // Workspace ID
|
|
127
|
+
type: ContextTypeSchema,
|
|
128
|
+
xcode: SPCodeSchema // Service provider code
|
|
129
|
+
})
|
|
130
|
+
export const UserContextTypeSchema = Type.Union([
|
|
131
|
+
Type.Literal('LSP'),
|
|
132
|
+
Type.Literal('CSP'),
|
|
133
|
+
Type.Literal('DEV'),
|
|
134
|
+
Type.Literal('IoTSP'),
|
|
135
|
+
])
|
|
136
|
+
export const OperatorContextTypeSchema = Type.Union([
|
|
137
|
+
Type.Literal('LSP'),
|
|
138
|
+
Type.Literal('CSP'),
|
|
139
|
+
Type.Literal('DEV'),
|
|
140
|
+
Type.Literal('IoTSP')
|
|
141
|
+
])
|
|
142
|
+
export const GenericServiceContextSchema = Type.Object({
|
|
143
|
+
ptype: SPTypeSchema,
|
|
144
|
+
type: Type.Any(), // warehouse | carrier | hub | ...
|
|
145
|
+
id: Type.String(),
|
|
146
|
+
description: Type.Optional(Type.String({ minLength: 10, maxLength: 250 }))
|
|
147
|
+
})
|
|
148
|
+
export const PipelineContextSchema = Type.Object({
|
|
149
|
+
id: Type.String(),
|
|
150
|
+
description: Type.Optional(Type.String({ minLength: 10, maxLength: 250 })),
|
|
151
|
+
applicabilityCriteria: Type.Optional(Type.String())
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
// ─── TypeScript types ─────────────────────────────────────────────────────────
|
|
155
|
+
|
|
156
|
+
export type SPCode = Static<typeof SPCodeSchema>
|
|
157
|
+
export type SPType = Static<typeof SPTypeSchema>
|
|
158
|
+
export type SPProfile = Static<typeof SPProfileSchema>
|
|
159
|
+
export type SPProfileUpdate = Static<typeof SPProfileUpdateSchema>
|
|
160
|
+
export type SPAvailability = Static<typeof SPAvailabilitySchema>
|
|
161
|
+
export type SPPerformanceSummary = Static<typeof SPPerformanceSummarySchema>
|
|
162
|
+
export type ContextType = Static<typeof ContextTypeSchema>
|
|
163
|
+
export type Context = Static<typeof ContextSchema>
|
|
164
|
+
export type UserContextType = Static<typeof UserContextTypeSchema>
|
|
165
|
+
export type OperatorContextType = Static<typeof OperatorContextTypeSchema>
|
|
166
|
+
export type GenericServiceContext = Static<typeof GenericServiceContextSchema>
|
|
167
|
+
export type PipelineContext = Static<typeof PipelineContextSchema>
|