@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/time.ts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
|
|
3
|
+
// ─── Timezone & Time ──────────────────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
export const TimeZoneSchema = Type.String({
|
|
6
|
+
description: 'IANA timezone identifier',
|
|
7
|
+
examples: ['Europe/London', 'Africa/Cairo', 'America/New_York']
|
|
8
|
+
})
|
|
9
|
+
export const TimeSchema = Type.Object({
|
|
10
|
+
value: Type.String({ description: 'HH:MM' }),
|
|
11
|
+
timezone: TimeZoneSchema
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
// ─── DateTime ─────────────────────────────────────────────────────────────────
|
|
15
|
+
|
|
16
|
+
export const DateTimeZoneSchema = Type.Object({
|
|
17
|
+
literal: Type.Optional(Type.String({ description: 'DD-MM-YY HH:MM ...' })),
|
|
18
|
+
timestamp: Type.Number(),
|
|
19
|
+
timezone: TimeZoneSchema
|
|
20
|
+
})
|
|
21
|
+
export const DateTimeRangeSchema = Type.Object({
|
|
22
|
+
start: DateTimeZoneSchema,
|
|
23
|
+
end: DateTimeZoneSchema
|
|
24
|
+
})
|
|
25
|
+
export const DateTimeScheduleSchema = Type.Object({
|
|
26
|
+
planned: Type.Optional(DateTimeRangeSchema),
|
|
27
|
+
estimated: Type.Optional(DateTimeRangeSchema),
|
|
28
|
+
actual: Type.Optional(DateTimeRangeSchema),
|
|
29
|
+
status: Type.Union([
|
|
30
|
+
Type.Literal('AHEAD_OF_TIME'),
|
|
31
|
+
Type.Literal('ON_TIME'),
|
|
32
|
+
Type.Literal('AT_RISK'),
|
|
33
|
+
Type.Literal('DELAYED'),
|
|
34
|
+
Type.Literal('CRITICAL')
|
|
35
|
+
])
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
// ─── Week ─────────────────────────────────────────────────────────────────────
|
|
39
|
+
|
|
40
|
+
export const WeekDaySchema = Type.Union([
|
|
41
|
+
Type.Literal('MONDAY'),
|
|
42
|
+
Type.Literal('TUESDAY'),
|
|
43
|
+
Type.Literal('WEDNESDAY'),
|
|
44
|
+
Type.Literal('THURSDAY'),
|
|
45
|
+
Type.Literal('FRIDAY'),
|
|
46
|
+
Type.Literal('SATURDAY'),
|
|
47
|
+
Type.Literal('SUNDAY')
|
|
48
|
+
])
|
|
49
|
+
|
|
50
|
+
// ─── Action Record ────────────────────────────────────────────────────────────
|
|
51
|
+
|
|
52
|
+
export const ActionTriggerTypeSchema = Type.Union([
|
|
53
|
+
Type.Literal('AI_AGENT'),
|
|
54
|
+
Type.Literal('SYSTEM'),
|
|
55
|
+
Type.Literal('USER'),
|
|
56
|
+
Type.Literal('WEBHOOK'),
|
|
57
|
+
Type.Literal('TIMEOUT'),
|
|
58
|
+
Type.Literal('VALIDATION')
|
|
59
|
+
])
|
|
60
|
+
export const ActionRecordSchema = Type.Object({
|
|
61
|
+
at: DateTimeZoneSchema,
|
|
62
|
+
by: Type.Object({
|
|
63
|
+
type: ActionTriggerTypeSchema,
|
|
64
|
+
id: Type.Optional(Type.String({ example: 'usr-001' })),
|
|
65
|
+
name: Type.Optional(Type.String({ example: 'John Doe' }))
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
// ─── Duration ─────────────────────────────────────────────────────────────────
|
|
70
|
+
|
|
71
|
+
export const TimeUnitSchema = Type.Union([
|
|
72
|
+
Type.Literal('ms', { description: 'millisecond' }),
|
|
73
|
+
Type.Literal('sec', { description: 'second' }),
|
|
74
|
+
Type.Literal('min', { description: 'minute' }),
|
|
75
|
+
Type.Literal('hr', { description: 'hour' }),
|
|
76
|
+
Type.Literal('day', { description: 'day' }),
|
|
77
|
+
Type.Literal('week', { description: 'week' }),
|
|
78
|
+
Type.Literal('mth', { description: 'month' }),
|
|
79
|
+
Type.Literal('tr', { description: 'trimester' }),
|
|
80
|
+
Type.Literal('qr', { description: 'quarter' }),
|
|
81
|
+
Type.Literal('year', { description: 'year' })
|
|
82
|
+
])
|
|
83
|
+
export const DurationSchema = Type.Object({
|
|
84
|
+
millisecond: Type.Optional(Type.Number({ minimum: 0 })),
|
|
85
|
+
second: Type.Optional(Type.Number({ minimum: 0 })),
|
|
86
|
+
minute: Type.Optional(Type.Number({ minimum: 0 })),
|
|
87
|
+
hour: Type.Optional(Type.Number({ minimum: 0 })),
|
|
88
|
+
day: Type.Optional(Type.Number({ minimum: 0 })),
|
|
89
|
+
week: Type.Optional(Type.Number({ minimum: 0 })),
|
|
90
|
+
month: Type.Optional(Type.Number({ minimum: 0 })),
|
|
91
|
+
trimester: Type.Optional(Type.Number({ minimum: 0 })),
|
|
92
|
+
quarter: Type.Optional(Type.Number({ minimum: 0 })),
|
|
93
|
+
year: Type.Optional(Type.Number({ minimum: 0 }))
|
|
94
|
+
})
|
|
95
|
+
export const DurationRangeSchema = Type.Object({
|
|
96
|
+
min: DurationSchema,
|
|
97
|
+
max: DurationSchema,
|
|
98
|
+
average: Type.Optional(DurationSchema)
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
// ─── TypeScript types ─────────────────────────────────────────────────────────
|
|
102
|
+
|
|
103
|
+
export type TimeZone = Static<typeof TimeZoneSchema>
|
|
104
|
+
export type Time = Static<typeof TimeSchema>
|
|
105
|
+
export type DateTimeZone = Static<typeof DateTimeZoneSchema>
|
|
106
|
+
export type DateTimeRange = Static<typeof DateTimeRangeSchema>
|
|
107
|
+
export type DateTimeSchedule = Static<typeof DateTimeScheduleSchema>
|
|
108
|
+
export type WeekDay = Static<typeof WeekDaySchema>
|
|
109
|
+
export type ActionTriggerType = Static<typeof ActionTriggerTypeSchema>
|
|
110
|
+
export type ActionRecord = Static<typeof ActionRecordSchema>
|
|
111
|
+
export type TimeUnit = Static<typeof TimeUnitSchema>
|
|
112
|
+
export type Duration = Static<typeof DurationSchema>
|
|
113
|
+
export type DurationRange = Static<typeof DurationRangeSchema>
|
package/src/user.ts
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from './context'
|
|
3
|
+
import { ActionRecordSchema } from './time'
|
|
4
|
+
import { CurrencySchema } from './measure'
|
|
5
|
+
import { TimeZoneSchema } from './time'
|
|
6
|
+
|
|
7
|
+
// ─── Account types (de.auth domain) ──────────────────────────────────────────
|
|
8
|
+
//
|
|
9
|
+
// These represent a De. user account as managed by de.auth.
|
|
10
|
+
// Canonical name: AccountType (avoids collision with workspace roles below).
|
|
11
|
+
// Bridge alias in de.auth: export { AccountTypeSchema as UserTypeSchema }
|
|
12
|
+
|
|
13
|
+
export const AccountTypeSchema = Type.Union([
|
|
14
|
+
Type.Literal('PERSONAL'),
|
|
15
|
+
Type.Literal('BUSINESS'),
|
|
16
|
+
Type.Literal('CUSTOMER'),
|
|
17
|
+
Type.Literal('VENDOR'),
|
|
18
|
+
Type.Literal('ADMIN')
|
|
19
|
+
])
|
|
20
|
+
|
|
21
|
+
export const AuthProfileSchema = Type.Object({
|
|
22
|
+
firstName: Type.String(),
|
|
23
|
+
lastName: Type.String(),
|
|
24
|
+
phone: Type.String(),
|
|
25
|
+
email: Type.Optional(Type.String()),
|
|
26
|
+
photo: Type.String(),
|
|
27
|
+
gender: Type.Optional(Type.Union([
|
|
28
|
+
Type.Literal('male'),
|
|
29
|
+
Type.Literal('female'),
|
|
30
|
+
Type.Literal('other'),
|
|
31
|
+
Type.Literal('-')
|
|
32
|
+
])),
|
|
33
|
+
country: Type.Object({
|
|
34
|
+
currency: Type.Object({
|
|
35
|
+
symbol: Type.String(),
|
|
36
|
+
name: Type.String(),
|
|
37
|
+
id: Type.String()
|
|
38
|
+
})
|
|
39
|
+
}),
|
|
40
|
+
address: Type.Optional(Type.String())
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
export const AuthSettingsSchema = Type.Object({
|
|
44
|
+
theme: Type.Optional(Type.Object({
|
|
45
|
+
mode: Type.String(),
|
|
46
|
+
fontSize: Type.String()
|
|
47
|
+
})),
|
|
48
|
+
notification: Type.Optional(Type.Object({
|
|
49
|
+
push: Type.String(),
|
|
50
|
+
sms: Type.Boolean(),
|
|
51
|
+
email: Type.Boolean()
|
|
52
|
+
})),
|
|
53
|
+
privacy: Type.Optional(Type.Object({
|
|
54
|
+
publicView: Type.Boolean()
|
|
55
|
+
}))
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
export const AuthAccountSchema = Type.Object({
|
|
59
|
+
uid: Type.Optional(Type.String()),
|
|
60
|
+
type: AccountTypeSchema,
|
|
61
|
+
isRestricted: Type.Boolean(),
|
|
62
|
+
agreeTerms: Type.Boolean(),
|
|
63
|
+
settings: AuthSettingsSchema
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
export const AuthDeviceSchema = Type.Object({
|
|
67
|
+
deviceId: Type.String(),
|
|
68
|
+
isConnected: Type.Boolean(),
|
|
69
|
+
status: Type.Union([
|
|
70
|
+
Type.Literal('activated'),
|
|
71
|
+
Type.Literal('deactivated')
|
|
72
|
+
]),
|
|
73
|
+
ctoken: Type.String(),
|
|
74
|
+
datetime: Type.Number(),
|
|
75
|
+
ip: Type.Optional(Type.String()),
|
|
76
|
+
country: Type.Optional(Type.String()),
|
|
77
|
+
city: Type.Optional(Type.String())
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
export const AuthHistorySchema = Type.Object({
|
|
81
|
+
status: Type.Union([
|
|
82
|
+
Type.Literal('SIGNIN'),
|
|
83
|
+
Type.Literal('SIGNOUT'),
|
|
84
|
+
Type.Literal('CHANGE_PHONE'),
|
|
85
|
+
Type.Literal('CREATE_ACCOUNT'),
|
|
86
|
+
Type.Literal('UPDATE_PROFILE'),
|
|
87
|
+
Type.Literal('DELETE_ACCOUNT')
|
|
88
|
+
]),
|
|
89
|
+
userAgent: Type.String(),
|
|
90
|
+
service: Type.String(),
|
|
91
|
+
datetime: Type.Number(),
|
|
92
|
+
ip: Type.Optional(Type.String()),
|
|
93
|
+
country: Type.Optional(Type.String()),
|
|
94
|
+
city: Type.Optional(Type.String())
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
export const AuthConnectionSchema = Type.Object({
|
|
98
|
+
history: Type.Array(AuthHistorySchema),
|
|
99
|
+
devices: Type.Object({})
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
export const AuthUserSchema = Type.Object({
|
|
103
|
+
profile: AuthProfileSchema,
|
|
104
|
+
account: AuthAccountSchema,
|
|
105
|
+
connection: AuthConnectionSchema,
|
|
106
|
+
datetime: Type.Number()
|
|
107
|
+
})
|
|
108
|
+
export const AuthUserPublicSchema = Type.Intersect([
|
|
109
|
+
Type.Omit(AuthAccountSchema, ['isRestricted', 'agreeTerms']),
|
|
110
|
+
Type.Object({
|
|
111
|
+
profile: AuthProfileSchema,
|
|
112
|
+
cToken: Type.String()
|
|
113
|
+
})
|
|
114
|
+
])
|
|
115
|
+
|
|
116
|
+
// ─── User Type (de.arch domain) ─────────────────────────────────────────
|
|
117
|
+
//
|
|
118
|
+
// These represent a user in the context of a De. workspace / service.
|
|
119
|
+
// Canonical name: WorkspaceRole (avoids collision with AccountType above).
|
|
120
|
+
// Bridge alias in de.arch: export { UserTypeSchema as UserTypeSchema }
|
|
121
|
+
|
|
122
|
+
export const UserTypeSchema = Type.Union([
|
|
123
|
+
Type.Literal('admin'),
|
|
124
|
+
Type.Literal('operator'),
|
|
125
|
+
Type.Literal('agent'),
|
|
126
|
+
Type.Literal('developer')
|
|
127
|
+
])
|
|
128
|
+
|
|
129
|
+
export const UserSchema = Type.Object({
|
|
130
|
+
name: Type.String(),
|
|
131
|
+
photo: Type.String(),
|
|
132
|
+
email: Type.Optional(Type.String({ format: 'email' })),
|
|
133
|
+
phone: Type.Optional(Type.String())
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
export const UserCountrySchema = Type.Object({
|
|
137
|
+
continent_code: Type.String(),
|
|
138
|
+
continent_name: Type.String(),
|
|
139
|
+
country_code: Type.String(),
|
|
140
|
+
country_name: Type.String(),
|
|
141
|
+
region_code: Type.Optional(Type.String()),
|
|
142
|
+
region_name: Type.Optional(Type.String()),
|
|
143
|
+
capital: Type.String(),
|
|
144
|
+
city: Type.String(),
|
|
145
|
+
zip: Type.Optional(Type.String()),
|
|
146
|
+
latitude: Type.String(),
|
|
147
|
+
longitude: Type.String(),
|
|
148
|
+
time_zone: TimeZoneSchema,
|
|
149
|
+
currency: CurrencySchema,
|
|
150
|
+
connection: Type.Object({ asn: Type.String(), isp: Type.String() }),
|
|
151
|
+
languages: Type.Array(Type.Object({
|
|
152
|
+
code: Type.String(),
|
|
153
|
+
name: Type.String(),
|
|
154
|
+
native: Type.String()
|
|
155
|
+
})),
|
|
156
|
+
country_flag: Type.String(),
|
|
157
|
+
country_flag_emoji: Type.String(),
|
|
158
|
+
country_flag_emoji_unicode: Type.String(),
|
|
159
|
+
calling_code: Type.String(),
|
|
160
|
+
geoname_id: Type.String(),
|
|
161
|
+
is_eu: Type.String()
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
export const UserInContextSchema = Type.Intersect([
|
|
165
|
+
ContextSchema,
|
|
166
|
+
Type.Object({
|
|
167
|
+
as: UserTypeSchema,
|
|
168
|
+
role: Type.String()
|
|
169
|
+
})
|
|
170
|
+
])
|
|
171
|
+
|
|
172
|
+
export const UserAssigneeSchema = Type.Object({
|
|
173
|
+
type: UserTypeSchema,
|
|
174
|
+
id: Type.String(),
|
|
175
|
+
permission: Type.Union([
|
|
176
|
+
Type.Literal('read'),
|
|
177
|
+
Type.Literal('write'),
|
|
178
|
+
Type.Literal('read-write')
|
|
179
|
+
])
|
|
180
|
+
})
|
|
181
|
+
|
|
182
|
+
export const InvitationSchema = Type.Object({
|
|
183
|
+
vcode: Type.String(),
|
|
184
|
+
expiry: Type.Number(),
|
|
185
|
+
sent: ActionRecordSchema,
|
|
186
|
+
context: Type.Intersect([
|
|
187
|
+
ContextSchema,
|
|
188
|
+
Type.Object({
|
|
189
|
+
as: UserTypeSchema,
|
|
190
|
+
details: Type.Any()
|
|
191
|
+
})
|
|
192
|
+
])
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
export const UserAccountSchema = Type.Object({
|
|
196
|
+
uid: Type.String(),
|
|
197
|
+
phone: Type.Optional(Type.Union([Type.Null(), Type.String()])),
|
|
198
|
+
email: Type.Optional(Type.Union([Type.Null(), Type.String({ format: 'email' })])),
|
|
199
|
+
country: Type.Optional(UserCountrySchema),
|
|
200
|
+
timestamp: Type.Number(),
|
|
201
|
+
timezone: TimeZoneSchema,
|
|
202
|
+
invitation: Type.Optional(InvitationSchema),
|
|
203
|
+
contexts: Type.Array(UserInContextSchema)
|
|
204
|
+
})
|
|
205
|
+
export const UserAccountPublicSchema = Type.Object({
|
|
206
|
+
uid: Type.String(),
|
|
207
|
+
userinfo: Type.Optional(Type.Record(Type.String(), Type.Any())),
|
|
208
|
+
timestamp: Type.Number(),
|
|
209
|
+
timezone: TimeZoneSchema,
|
|
210
|
+
contexts: Type.Array(UserInContextSchema)
|
|
211
|
+
})
|
|
212
|
+
|
|
213
|
+
// ─── Shared user update shapes ────────────────────────────────────────────────
|
|
214
|
+
|
|
215
|
+
export const UpdateProfileBodySchema = Type.Partial(AuthProfileSchema)
|
|
216
|
+
export const UpdateSettingsBodySchema = Type.Partial(AuthSettingsSchema)
|
|
217
|
+
export const DeleteUserBodySchema = Type.Object({
|
|
218
|
+
reason: Type.String(),
|
|
219
|
+
comment: Type.Optional(Type.String())
|
|
220
|
+
})
|
|
221
|
+
|
|
222
|
+
// ─── TypeScript types ─────────────────────────────────────────────────────────
|
|
223
|
+
|
|
224
|
+
export type AccountType = Static<typeof AccountTypeSchema>
|
|
225
|
+
export type AuthProfile = Static<typeof AuthProfileSchema>
|
|
226
|
+
export type AuthSettings = Static<typeof AuthSettingsSchema>
|
|
227
|
+
export type AuthAccount = Static<typeof AuthAccountSchema>
|
|
228
|
+
export type AuthDevice = Static<typeof AuthDeviceSchema>
|
|
229
|
+
export type AuthHistory = Static<typeof AuthHistorySchema>
|
|
230
|
+
export type AuthConnection = Static<typeof AuthConnectionSchema>
|
|
231
|
+
export type AuthUser = Static<typeof AuthUserSchema>
|
|
232
|
+
export type AuthUserPublic = Static<typeof AuthUserPublicSchema>
|
|
233
|
+
export type UserType = Static<typeof UserTypeSchema>
|
|
234
|
+
export type User = Static<typeof UserSchema>
|
|
235
|
+
export type UserCountry = Static<typeof UserCountrySchema>
|
|
236
|
+
export type UserInContext = Static<typeof UserInContextSchema>
|
|
237
|
+
export type UserAssignee = Static<typeof UserAssigneeSchema>
|
|
238
|
+
export type Invitation = Static<typeof InvitationSchema>
|
|
239
|
+
export type UserAccount = Static<typeof UserAccountSchema>
|
|
240
|
+
export type UserAccountPublic = Static<typeof UserAccountPublicSchema>
|
|
241
|
+
export type UpdateProfileBody = Static<typeof UpdateProfileBodySchema>
|
|
242
|
+
export type UpdateSettingsBody = Static<typeof UpdateSettingsBodySchema>
|
|
243
|
+
export type DeleteUserBody = Static<typeof DeleteUserBodySchema>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from '../context'
|
|
3
|
+
import { ActionRecordSchema } from '../time'
|
|
4
|
+
import { ContactsSchema, AddressSchema } from '../geo'
|
|
5
|
+
|
|
6
|
+
// Admin Status Schema
|
|
7
|
+
export const AdminStatusSchema = Type.Union([
|
|
8
|
+
Type.Literal('ACTIVE'),
|
|
9
|
+
Type.Literal('INACTIVE'),
|
|
10
|
+
Type.Literal('SUSPENDED')
|
|
11
|
+
])
|
|
12
|
+
|
|
13
|
+
export const AdminRoleSchema = Type.Union([
|
|
14
|
+
Type.Literal('MANAGER'),
|
|
15
|
+
Type.Literal('MAINTAINER'),
|
|
16
|
+
Type.Literal('DEVELOPER'),
|
|
17
|
+
])
|
|
18
|
+
|
|
19
|
+
// Admin Schema
|
|
20
|
+
export const AdminSchema = Type.Object({
|
|
21
|
+
id: Type.String(),
|
|
22
|
+
context: ContextSchema,
|
|
23
|
+
bio: Type.Optional(Type.String({ maxLength: 500 })),
|
|
24
|
+
contacts: ContactsSchema,
|
|
25
|
+
address: Type.Optional(AddressSchema),
|
|
26
|
+
role: AdminRoleSchema,
|
|
27
|
+
// permissions: Type.Array(PermissionSchema), // Uncomment when Permission type is available
|
|
28
|
+
status: AdminStatusSchema,
|
|
29
|
+
added: ActionRecordSchema,
|
|
30
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
31
|
+
})
|
|
32
|
+
export const AdminUpdateSchema = Type.Partial( Type.Omit( AdminSchema, ['id', 'context', 'role', 'added', 'updated']) )
|
|
33
|
+
|
|
34
|
+
// Generate TypeScript types from schemas
|
|
35
|
+
export type AdminStatus = Static<typeof AdminStatusSchema>
|
|
36
|
+
export type AdminRole = Static<typeof AdminRoleSchema>
|
|
37
|
+
export type Admin = Static<typeof AdminSchema>
|
|
38
|
+
export type AdminUpdate = Static<typeof AdminUpdateSchema>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../billing'
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ActionRecordSchema } from '../time'
|
|
3
|
+
import { ContextSchema } from '../context'
|
|
4
|
+
import { AccessSchema } from '../api'
|
|
5
|
+
|
|
6
|
+
// Resources Schema
|
|
7
|
+
export const ResourcesSchema = Type.Object({
|
|
8
|
+
alloc: Type.Union([Type.Literal('shared'), Type.Literal('standalone')]),
|
|
9
|
+
specs: Type.Object({
|
|
10
|
+
domain: Type.Optional(Type.String()),
|
|
11
|
+
database: Type.Object({
|
|
12
|
+
size: Type.Number({ description: 'Mb unit' }),
|
|
13
|
+
url: Type.String()
|
|
14
|
+
}),
|
|
15
|
+
filestorage: Type.Object({
|
|
16
|
+
accessKey: Type.String(),
|
|
17
|
+
secret: Type.String(),
|
|
18
|
+
spaces: Type.Array(Type.Object({
|
|
19
|
+
region: Type.String(),
|
|
20
|
+
host: Type.String(),
|
|
21
|
+
endpoint: Type.String(),
|
|
22
|
+
version: Type.Optional(Type.String()),
|
|
23
|
+
bucket: Type.Optional(Type.String())
|
|
24
|
+
})),
|
|
25
|
+
size: Type.Number()
|
|
26
|
+
}),
|
|
27
|
+
ratelimit: Type.Object({
|
|
28
|
+
channel: Type.Union([Type.Number(), Type.Literal('*')], {
|
|
29
|
+
description: 'Per seconds'
|
|
30
|
+
}),
|
|
31
|
+
event: Type.Union([Type.Number(), Type.Literal('*')], {
|
|
32
|
+
description: 'Per seconds'
|
|
33
|
+
}),
|
|
34
|
+
api: Type.Union([Type.Number(), Type.Literal('*')], {
|
|
35
|
+
description: 'Per seconds'
|
|
36
|
+
})
|
|
37
|
+
}),
|
|
38
|
+
realtime: Type.Object({}, {
|
|
39
|
+
additionalProperties: true,
|
|
40
|
+
description: 'Realtime configuration - flexible object'
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// MSI Connector Config Schema
|
|
46
|
+
export const MSIConnectorConfigSchema = Type.Object({
|
|
47
|
+
provider: Type.Union([Type.Literal('mapbox'), Type.Literal('googlemap')]),
|
|
48
|
+
defaultLayerStyle: Type.String()
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
// WES Connector Config Schema
|
|
52
|
+
export const WESConnectorConfigSchema = Type.Object({
|
|
53
|
+
token: Type.String(),
|
|
54
|
+
events: Type.Array(Type.String())
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
// ASI Connector Config Schema
|
|
58
|
+
export const ASIConnectorConfigSchema = Type.Object({
|
|
59
|
+
protocol: Type.Union([Type.Literal('http1'), Type.Literal('http2')]),
|
|
60
|
+
version: Type.Optional(Type.String({ maxLength: 1 })),
|
|
61
|
+
scope: Type.Array(Type.String())
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// API Connector Config Schema
|
|
65
|
+
export const APIConnectorConfigSchema = Type.Object({
|
|
66
|
+
protocol: Type.Union([Type.Literal('http1'), Type.Literal('http2')]),
|
|
67
|
+
version: Type.Optional(Type.String({ maxLength: 1 })),
|
|
68
|
+
scope: Type.Union([
|
|
69
|
+
Type.Literal('*'),
|
|
70
|
+
Type.Array(Type.String())
|
|
71
|
+
]),
|
|
72
|
+
auth: Type.Union([
|
|
73
|
+
Type.Literal('internal'),
|
|
74
|
+
Type.Literal('external')
|
|
75
|
+
])
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
// IoT Connector Config Schema`
|
|
79
|
+
export const IoTConnectorConfigSchema = Type.Object({
|
|
80
|
+
protocol: Type.Union([
|
|
81
|
+
Type.Literal('http'),
|
|
82
|
+
Type.Literal('ws'),
|
|
83
|
+
Type.Literal('sio'),
|
|
84
|
+
Type.Literal('*')
|
|
85
|
+
]),
|
|
86
|
+
resources: Type.Optional(ResourcesSchema)
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
// Sync Connector Config Schema
|
|
90
|
+
export const SyncConnectorConfigSchema = Type.Object({
|
|
91
|
+
schedule: Type.Object({
|
|
92
|
+
inventorySync: Type.String({
|
|
93
|
+
description: 'cron expression',
|
|
94
|
+
pattern: '^(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|(((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?)))$'
|
|
95
|
+
}),
|
|
96
|
+
catalogSync: Type.String({
|
|
97
|
+
description: 'cron expression',
|
|
98
|
+
pattern: '^(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|(((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?)))$'
|
|
99
|
+
}),
|
|
100
|
+
priceSync: Type.String({
|
|
101
|
+
description: 'cron expression',
|
|
102
|
+
pattern: '^(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\\d+(ns|us|µs|ms|s|m|h))+)|(((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?))\\s+((\\d+,)+\\d+|((\\d+|\\*)(/\\d+)?)))$'
|
|
103
|
+
})
|
|
104
|
+
}),
|
|
105
|
+
webhookUrl: Type.Optional(Type.String({ format: 'uri' })),
|
|
106
|
+
rateLimits: Type.Object({
|
|
107
|
+
requestsPerMinute: Type.Number({ minimum: 1 }),
|
|
108
|
+
requestsPerHour: Type.Number({ minimum: 1 })
|
|
109
|
+
}),
|
|
110
|
+
rules: Type.Object({
|
|
111
|
+
autoResolveConflicts: Type.Boolean(),
|
|
112
|
+
conflictResolutionStrategy: Type.Union([
|
|
113
|
+
Type.Literal('LSP_PRIORITY'),
|
|
114
|
+
Type.Literal('CSP_PRIORITY'),
|
|
115
|
+
Type.Literal('MANUAL')
|
|
116
|
+
]),
|
|
117
|
+
syncDirection: Type.Union([
|
|
118
|
+
Type.Literal('BIDIRECTIONAL'),
|
|
119
|
+
Type.Literal('LSP_TO_CSP'),
|
|
120
|
+
Type.Literal('CSP_TO_LSP')
|
|
121
|
+
])
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* `MSI` - Map System Integration
|
|
127
|
+
* `SSI` - Sync Systems Integration
|
|
128
|
+
* `WES` - Webhook Events Subscription
|
|
129
|
+
* `API` - Application Programming Interface
|
|
130
|
+
* `IoT` - Internet of Things
|
|
131
|
+
*/
|
|
132
|
+
export const ConnectorTypeSchema = Type.Union([
|
|
133
|
+
Type.Literal('MSI'),
|
|
134
|
+
Type.Literal('SSI'),
|
|
135
|
+
Type.Literal('WES'),
|
|
136
|
+
Type.Literal('ASI'),
|
|
137
|
+
Type.Literal('API'),
|
|
138
|
+
Type.Literal('IoT')
|
|
139
|
+
])
|
|
140
|
+
|
|
141
|
+
export const ConnectorModeSchema = Type.Union([
|
|
142
|
+
Type.Literal('TEST'),
|
|
143
|
+
Type.Literal('LIVE')
|
|
144
|
+
])
|
|
145
|
+
|
|
146
|
+
// Union of all connector configs
|
|
147
|
+
export const ConnectorCombinedConfigSchema = Type.Union([
|
|
148
|
+
MSIConnectorConfigSchema,
|
|
149
|
+
WESConnectorConfigSchema,
|
|
150
|
+
ASIConnectorConfigSchema,
|
|
151
|
+
APIConnectorConfigSchema,
|
|
152
|
+
IoTConnectorConfigSchema,
|
|
153
|
+
SyncConnectorConfigSchema
|
|
154
|
+
])
|
|
155
|
+
export const ConnectorConfigSchema = Type.Any()
|
|
156
|
+
|
|
157
|
+
// Main Connector Schema
|
|
158
|
+
export const ConnectorSchema = Type.Object({
|
|
159
|
+
context: ContextSchema,
|
|
160
|
+
id: Type.String(),
|
|
161
|
+
type: ConnectorTypeSchema,
|
|
162
|
+
mode: ConnectorModeSchema,
|
|
163
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
164
|
+
description: Type.Optional(Type.String({ maxLength: 500 })),
|
|
165
|
+
access: AccessSchema,
|
|
166
|
+
config: Type.Optional(ConnectorConfigSchema),
|
|
167
|
+
enabled: Type.Boolean(),
|
|
168
|
+
created: ActionRecordSchema,
|
|
169
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
170
|
+
})
|
|
171
|
+
export const ConnectorUpdateSchema = Type.Object({
|
|
172
|
+
name: Type.Optional(Type.String({ minLength: 1, maxLength: 100 })),
|
|
173
|
+
description: Type.Optional(Type.String({ maxLength: 500 }))
|
|
174
|
+
}, { additionalProperties: false })
|
|
175
|
+
|
|
176
|
+
// Type-specific connector schemas for more precise validation
|
|
177
|
+
export const MSIConnectorSchema = Type.Intersect([
|
|
178
|
+
ConnectorSchema,
|
|
179
|
+
Type.Object({
|
|
180
|
+
config: Type.Optional(MSIConnectorConfigSchema)
|
|
181
|
+
})
|
|
182
|
+
])
|
|
183
|
+
|
|
184
|
+
export const WESConnectorSchema = Type.Intersect([
|
|
185
|
+
ConnectorSchema,
|
|
186
|
+
Type.Object({
|
|
187
|
+
config: Type.Optional(WESConnectorConfigSchema)
|
|
188
|
+
})
|
|
189
|
+
])
|
|
190
|
+
|
|
191
|
+
export const ASIConnectorSchema = Type.Intersect([
|
|
192
|
+
ConnectorSchema,
|
|
193
|
+
Type.Object({
|
|
194
|
+
config: Type.Optional(ASIConnectorConfigSchema)
|
|
195
|
+
})
|
|
196
|
+
])
|
|
197
|
+
|
|
198
|
+
export const APIConnectorSchema = Type.Intersect([
|
|
199
|
+
ConnectorSchema,
|
|
200
|
+
Type.Object({
|
|
201
|
+
config: Type.Optional(APIConnectorConfigSchema)
|
|
202
|
+
})
|
|
203
|
+
])
|
|
204
|
+
|
|
205
|
+
export const IoTConnectorSchema = Type.Intersect([
|
|
206
|
+
ConnectorSchema,
|
|
207
|
+
Type.Object({
|
|
208
|
+
config: Type.Optional(IoTConnectorConfigSchema)
|
|
209
|
+
})
|
|
210
|
+
])
|
|
211
|
+
|
|
212
|
+
export const SyncConnectorSchema = Type.Intersect([
|
|
213
|
+
ConnectorSchema,
|
|
214
|
+
Type.Object({
|
|
215
|
+
config: Type.Optional(SyncConnectorConfigSchema)
|
|
216
|
+
})
|
|
217
|
+
])
|
|
218
|
+
|
|
219
|
+
// Generate TypeScript types from schemas
|
|
220
|
+
export type Resources = Static<typeof ResourcesSchema>
|
|
221
|
+
|
|
222
|
+
export type ConnectorConfig = Static<typeof ConnectorConfigSchema>
|
|
223
|
+
export type MSIConnectorConfig = Static<typeof MSIConnectorConfigSchema>
|
|
224
|
+
export type WESConnectorConfig = Static<typeof WESConnectorConfigSchema>
|
|
225
|
+
export type ASIConnectorConfig = Static<typeof ASIConnectorConfigSchema>
|
|
226
|
+
export type APIConnectorConfig = Static<typeof APIConnectorConfigSchema>
|
|
227
|
+
export type IoTConnectorConfig = Static<typeof IoTConnectorConfigSchema>
|
|
228
|
+
export type SyncConnectorConfig = Static<typeof SyncConnectorConfigSchema>
|
|
229
|
+
|
|
230
|
+
export type ConnectorType = Static<typeof ConnectorTypeSchema>
|
|
231
|
+
export type Connector = Static<typeof ConnectorSchema>
|
|
232
|
+
export type ConnectorUpdate = Static<typeof ConnectorUpdateSchema>
|
|
233
|
+
|
|
234
|
+
// Type-specific connector types
|
|
235
|
+
export type MSIConnector = Static<typeof MSIConnectorSchema>
|
|
236
|
+
export type WESConnector = Static<typeof WESConnectorSchema>
|
|
237
|
+
export type ASIConnector = Static<typeof ASIConnectorSchema>
|
|
238
|
+
export type APIConnector = Static<typeof APIConnectorSchema>
|
|
239
|
+
export type IoTConnector = Static<typeof IoTConnectorSchema>
|
|
240
|
+
export type SyncConnector = Static<typeof SyncConnectorSchema>
|
|
241
|
+
|
|
242
|
+
// Utility schemas for validation
|
|
243
|
+
export const ConnectorTestSchema = Type.Object({
|
|
244
|
+
connectorId: Type.String(),
|
|
245
|
+
testType: Type.Union([
|
|
246
|
+
Type.Literal('CONNECTION'),
|
|
247
|
+
Type.Literal('AUTHENTICATION'),
|
|
248
|
+
Type.Literal('FUNCTIONALITY')
|
|
249
|
+
]),
|
|
250
|
+
timeout: Type.Optional(Type.Number({ minimum: 1000, maximum: 30000 })) // milliseconds
|
|
251
|
+
})
|
|
252
|
+
|
|
253
|
+
export const ConnectorStatsSchema = Type.Object({
|
|
254
|
+
connectorId: Type.String(),
|
|
255
|
+
period: Type.Union([
|
|
256
|
+
Type.Literal('HOUR'),
|
|
257
|
+
Type.Literal('DAY'),
|
|
258
|
+
Type.Literal('WEEK'),
|
|
259
|
+
Type.Literal('MONTH')
|
|
260
|
+
]),
|
|
261
|
+
metrics: Type.Object({
|
|
262
|
+
requests: Type.Number(),
|
|
263
|
+
errors: Type.Number(),
|
|
264
|
+
avgResponseTime: Type.Number(),
|
|
265
|
+
uptime: Type.Number() // percentage
|
|
266
|
+
})
|
|
267
|
+
})
|
|
268
|
+
|
|
269
|
+
export type ConnectorTest = Static<typeof ConnectorTestSchema>
|
|
270
|
+
export type ConnectorStats = Static<typeof ConnectorStatsSchema>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ActionRecordSchema } from '../time'
|
|
3
|
+
|
|
4
|
+
export const WorkspaceStatusSchema = Type.Union([
|
|
5
|
+
Type.Literal('ACTIVE'),
|
|
6
|
+
Type.Literal('INACTIVE'),
|
|
7
|
+
Type.Literal('SUSPENDED')
|
|
8
|
+
])
|
|
9
|
+
|
|
10
|
+
// Workspace Schema
|
|
11
|
+
export const WorkspaceSchema = Type.Object({
|
|
12
|
+
id: Type.String(),
|
|
13
|
+
settings: Type.Object({
|
|
14
|
+
theme: Type.Optional(Type.String())
|
|
15
|
+
}),
|
|
16
|
+
status: WorkspaceStatusSchema,
|
|
17
|
+
created: ActionRecordSchema,
|
|
18
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
export type Workspace = Static<typeof WorkspaceSchema>
|
|
22
|
+
export type WorkspaceStatus = Static<typeof WorkspaceStatusSchema>
|