@augno/sdk 0.13.4 → 0.14.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/CHANGELOG.md +3 -3
- package/package.json +1 -1
- package/resources/catalog/catalog.d.mts +10 -10
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +10 -10
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.js +10 -10
- package/resources/catalog/catalog.js.map +1 -1
- package/resources/catalog/catalog.mjs +10 -10
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +5 -5
- package/resources/catalog/index.d.ts +5 -5
- package/resources/catalog/index.js +14 -14
- package/resources/catalog/index.js.map +1 -1
- package/resources/catalog/index.mjs +5 -5
- package/resources/catalog/item-categories/actions.d.mts +93 -0
- package/resources/catalog/item-categories/actions.d.mts.map +1 -0
- package/resources/catalog/item-categories/actions.d.ts +93 -0
- package/resources/catalog/item-categories/actions.d.ts.map +1 -0
- package/resources/catalog/item-categories/actions.js +35 -0
- package/resources/catalog/item-categories/actions.js.map +1 -0
- package/resources/catalog/item-categories/actions.mjs +31 -0
- package/resources/catalog/item-categories/actions.mjs.map +1 -0
- package/resources/catalog/item-categories/index.d.mts +1 -0
- package/resources/catalog/item-categories/index.d.mts.map +1 -1
- package/resources/catalog/item-categories/index.d.ts +1 -0
- package/resources/catalog/item-categories/index.d.ts.map +1 -1
- package/resources/catalog/item-categories/index.js +3 -1
- package/resources/catalog/item-categories/index.js.map +1 -1
- package/resources/catalog/item-categories/index.mjs +1 -0
- package/resources/catalog/item-categories/index.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +4 -0
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +4 -0
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +4 -0
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +4 -0
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +1 -1
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +1 -1
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/materials/actions.d.mts +118 -0
- package/resources/catalog/materials/actions.d.mts.map +1 -0
- package/resources/catalog/materials/actions.d.ts +118 -0
- package/resources/catalog/materials/actions.d.ts.map +1 -0
- package/resources/catalog/materials/actions.js +33 -0
- package/resources/catalog/materials/actions.js.map +1 -0
- package/resources/catalog/materials/actions.mjs +29 -0
- package/resources/catalog/materials/actions.mjs.map +1 -0
- package/resources/catalog/materials/index.d.mts +3 -0
- package/resources/catalog/materials/index.d.mts.map +1 -0
- package/resources/catalog/materials/index.d.ts +3 -0
- package/resources/catalog/materials/index.d.ts.map +1 -0
- package/resources/catalog/materials/index.js +9 -0
- package/resources/catalog/materials/index.js.map +1 -0
- package/resources/catalog/materials/index.mjs +4 -0
- package/resources/catalog/materials/index.mjs.map +1 -0
- package/resources/catalog/materials/materials.d.mts +483 -0
- package/resources/catalog/materials/materials.d.mts.map +1 -0
- package/resources/catalog/materials/materials.d.ts +483 -0
- package/resources/catalog/materials/materials.d.ts.map +1 -0
- package/resources/catalog/materials/materials.js +159 -0
- package/resources/catalog/materials/materials.js.map +1 -0
- package/resources/catalog/materials/materials.mjs +154 -0
- package/resources/catalog/materials/materials.mjs.map +1 -0
- package/resources/catalog/materials.d.mts +1 -478
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +1 -478
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +2 -147
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +1 -145
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts/actions.d.mts +108 -0
- package/resources/catalog/parts/actions.d.mts.map +1 -0
- package/resources/catalog/parts/actions.d.ts +108 -0
- package/resources/catalog/parts/actions.d.ts.map +1 -0
- package/resources/catalog/parts/actions.js +32 -0
- package/resources/catalog/parts/actions.js.map +1 -0
- package/resources/catalog/parts/actions.mjs +28 -0
- package/resources/catalog/parts/actions.mjs.map +1 -0
- package/resources/catalog/parts/index.d.mts +3 -0
- package/resources/catalog/parts/index.d.mts.map +1 -0
- package/resources/catalog/parts/index.d.ts +3 -0
- package/resources/catalog/parts/index.d.ts.map +1 -0
- package/resources/catalog/parts/index.js +9 -0
- package/resources/catalog/parts/index.js.map +1 -0
- package/resources/catalog/parts/index.mjs +4 -0
- package/resources/catalog/parts/index.mjs.map +1 -0
- package/resources/catalog/parts/parts.d.mts +362 -0
- package/resources/catalog/parts/parts.d.mts.map +1 -0
- package/resources/catalog/parts/parts.d.ts +362 -0
- package/resources/catalog/parts/parts.d.ts.map +1 -0
- package/resources/catalog/parts/parts.js +138 -0
- package/resources/catalog/parts/parts.js.map +1 -0
- package/resources/catalog/parts/parts.mjs +133 -0
- package/resources/catalog/parts/parts.mjs.map +1 -0
- package/resources/catalog/parts.d.mts +1 -357
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +1 -357
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +2 -126
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +1 -124
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines/actions.d.mts +82 -0
- package/resources/catalog/product-lines/actions.d.mts.map +1 -0
- package/resources/catalog/product-lines/actions.d.ts +82 -0
- package/resources/catalog/product-lines/actions.d.ts.map +1 -0
- package/resources/catalog/product-lines/actions.js +34 -0
- package/resources/catalog/product-lines/actions.js.map +1 -0
- package/resources/catalog/product-lines/actions.mjs +30 -0
- package/resources/catalog/product-lines/actions.mjs.map +1 -0
- package/resources/catalog/product-lines/index.d.mts +3 -0
- package/resources/catalog/product-lines/index.d.mts.map +1 -0
- package/resources/catalog/product-lines/index.d.ts +3 -0
- package/resources/catalog/product-lines/index.d.ts.map +1 -0
- package/resources/catalog/product-lines/index.js +9 -0
- package/resources/catalog/product-lines/index.js.map +1 -0
- package/resources/catalog/product-lines/index.mjs +4 -0
- package/resources/catalog/product-lines/index.mjs.map +1 -0
- package/resources/catalog/product-lines/product-lines.d.mts +448 -0
- package/resources/catalog/product-lines/product-lines.d.mts.map +1 -0
- package/resources/catalog/product-lines/product-lines.d.ts +448 -0
- package/resources/catalog/product-lines/product-lines.d.ts.map +1 -0
- package/resources/catalog/product-lines/product-lines.js +136 -0
- package/resources/catalog/product-lines/product-lines.js.map +1 -0
- package/resources/catalog/product-lines/product-lines.mjs +131 -0
- package/resources/catalog/product-lines/product-lines.mjs.map +1 -0
- package/resources/catalog/product-lines.d.mts +1 -443
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +1 -443
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +2 -124
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +1 -122
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products/actions.d.mts +124 -0
- package/resources/catalog/products/actions.d.mts.map +1 -0
- package/resources/catalog/products/actions.d.ts +124 -0
- package/resources/catalog/products/actions.d.ts.map +1 -0
- package/resources/catalog/products/actions.js +33 -0
- package/resources/catalog/products/actions.js.map +1 -0
- package/resources/catalog/products/actions.mjs +29 -0
- package/resources/catalog/products/actions.mjs.map +1 -0
- package/resources/catalog/products/index.d.mts +3 -0
- package/resources/catalog/products/index.d.mts.map +1 -0
- package/resources/catalog/products/index.d.ts +3 -0
- package/resources/catalog/products/index.d.ts.map +1 -0
- package/resources/catalog/products/index.js +9 -0
- package/resources/catalog/products/index.js.map +1 -0
- package/resources/catalog/products/index.mjs +4 -0
- package/resources/catalog/products/index.mjs.map +1 -0
- package/resources/catalog/products/products.d.mts +585 -0
- package/resources/catalog/products/products.d.mts.map +1 -0
- package/resources/catalog/products/products.d.ts +585 -0
- package/resources/catalog/products/products.d.ts.map +1 -0
- package/resources/catalog/products/products.js +185 -0
- package/resources/catalog/products/products.js.map +1 -0
- package/resources/catalog/products/products.mjs +180 -0
- package/resources/catalog/products/products.mjs.map +1 -0
- package/resources/catalog/products.d.mts +1 -580
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +1 -580
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +2 -173
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +1 -171
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/actions.d.mts +86 -0
- package/resources/catalog/properties/actions.d.mts.map +1 -0
- package/resources/catalog/properties/actions.d.ts +86 -0
- package/resources/catalog/properties/actions.d.ts.map +1 -0
- package/resources/catalog/properties/actions.js +33 -0
- package/resources/catalog/properties/actions.js.map +1 -0
- package/resources/catalog/properties/actions.mjs +29 -0
- package/resources/catalog/properties/actions.mjs.map +1 -0
- package/resources/catalog/properties/index.d.mts +1 -0
- package/resources/catalog/properties/index.d.mts.map +1 -1
- package/resources/catalog/properties/index.d.ts +1 -0
- package/resources/catalog/properties/index.d.ts.map +1 -1
- package/resources/catalog/properties/index.js +3 -1
- package/resources/catalog/properties/index.js.map +1 -1
- package/resources/catalog/properties/index.mjs +1 -0
- package/resources/catalog/properties/index.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +4 -0
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +4 -0
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +4 -0
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +4 -0
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/actions.d.mts +116 -0
- package/resources/catalog/unit-groups/actions.d.mts.map +1 -0
- package/resources/catalog/unit-groups/actions.d.ts +116 -0
- package/resources/catalog/unit-groups/actions.d.ts.map +1 -0
- package/resources/catalog/unit-groups/actions.js +39 -0
- package/resources/catalog/unit-groups/actions.js.map +1 -0
- package/resources/catalog/unit-groups/actions.mjs +35 -0
- package/resources/catalog/unit-groups/actions.mjs.map +1 -0
- package/resources/catalog/unit-groups/index.d.mts +1 -0
- package/resources/catalog/unit-groups/index.d.mts.map +1 -1
- package/resources/catalog/unit-groups/index.d.ts +1 -0
- package/resources/catalog/unit-groups/index.d.ts.map +1 -1
- package/resources/catalog/unit-groups/index.js +3 -1
- package/resources/catalog/unit-groups/index.js.map +1 -1
- package/resources/catalog/unit-groups/index.mjs +1 -0
- package/resources/catalog/unit-groups/index.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +9 -5
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +9 -5
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +6 -2
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +6 -2
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/units/actions.d.mts +91 -0
- package/resources/catalog/units/actions.d.mts.map +1 -0
- package/resources/catalog/units/actions.d.ts +91 -0
- package/resources/catalog/units/actions.d.ts.map +1 -0
- package/resources/catalog/units/actions.js +37 -0
- package/resources/catalog/units/actions.js.map +1 -0
- package/resources/catalog/units/actions.mjs +33 -0
- package/resources/catalog/units/actions.mjs.map +1 -0
- package/resources/catalog/units/index.d.mts +3 -0
- package/resources/catalog/units/index.d.mts.map +1 -0
- package/resources/catalog/units/index.d.ts +3 -0
- package/resources/catalog/units/index.d.ts.map +1 -0
- package/resources/catalog/units/index.js +9 -0
- package/resources/catalog/units/index.js.map +1 -0
- package/resources/catalog/units/index.mjs +4 -0
- package/resources/catalog/units/index.mjs.map +1 -0
- package/resources/catalog/units/units.d.mts +449 -0
- package/resources/catalog/units/units.d.mts.map +1 -0
- package/resources/catalog/units/units.d.ts +449 -0
- package/resources/catalog/units/units.d.ts.map +1 -0
- package/resources/catalog/units/units.js +122 -0
- package/resources/catalog/units/units.js.map +1 -0
- package/resources/catalog/units/units.mjs +117 -0
- package/resources/catalog/units/units.mjs.map +1 -0
- package/resources/catalog/units.d.mts +1 -444
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +1 -444
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +2 -110
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +1 -108
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +6 -6
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +6 -6
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +6 -2
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +6 -2
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +4 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +4 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -0
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -0
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js +3 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs +1 -0
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/jobs.d.mts +236 -0
- package/resources/core/jobs.d.mts.map +1 -0
- package/resources/core/jobs.d.ts +236 -0
- package/resources/core/jobs.d.ts.map +1 -0
- package/resources/core/jobs.js +43 -0
- package/resources/core/jobs.js.map +1 -0
- package/resources/core/jobs.mjs +39 -0
- package/resources/core/jobs.mjs.map +1 -0
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/operations/demand-overrides.d.mts +1 -1
- package/resources/operations/demand-overrides.d.mts.map +1 -1
- package/resources/operations/demand-overrides.d.ts +1 -1
- package/resources/operations/demand-overrides.d.ts.map +1 -1
- package/resources/operations/index.d.mts +1 -1
- package/resources/operations/index.d.ts +1 -1
- package/resources/operations/index.js +8 -8
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +1 -1
- package/resources/operations/locations/actions.d.mts +67 -0
- package/resources/operations/locations/actions.d.mts.map +1 -0
- package/resources/operations/locations/actions.d.ts +67 -0
- package/resources/operations/locations/actions.d.ts.map +1 -0
- package/resources/operations/locations/actions.js +27 -0
- package/resources/operations/locations/actions.js.map +1 -0
- package/resources/operations/locations/actions.mjs +23 -0
- package/resources/operations/locations/actions.mjs.map +1 -0
- package/resources/operations/locations/index.d.mts +3 -0
- package/resources/operations/locations/index.d.mts.map +1 -0
- package/resources/operations/locations/index.d.ts +3 -0
- package/resources/operations/locations/index.d.ts.map +1 -0
- package/resources/operations/locations/index.js +9 -0
- package/resources/operations/locations/index.js.map +1 -0
- package/resources/operations/locations/index.mjs +4 -0
- package/resources/operations/locations/index.mjs.map +1 -0
- package/resources/operations/locations/locations.d.mts +273 -0
- package/resources/operations/locations/locations.d.mts.map +1 -0
- package/resources/operations/locations/locations.d.ts +273 -0
- package/resources/operations/locations/locations.d.ts.map +1 -0
- package/resources/operations/locations/locations.js +113 -0
- package/resources/operations/locations/locations.js.map +1 -0
- package/resources/operations/locations/locations.mjs +108 -0
- package/resources/operations/locations/locations.mjs.map +1 -0
- package/resources/operations/locations.d.mts +1 -268
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +1 -268
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +2 -101
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +1 -99
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/operations.d.mts +2 -2
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +2 -2
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +2 -2
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +2 -2
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +12 -4
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +12 -4
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/shipping-terms.d.mts +1 -1
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +1 -1
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +1 -1
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +1 -1
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
- package/resources/sales/sales-orders/sales-orders.d.mts +4 -4
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +4 -4
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/src/resources/catalog/catalog.ts +51 -51
- package/src/resources/catalog/index.ts +5 -5
- package/src/resources/catalog/item-categories/actions.ts +112 -0
- package/src/resources/catalog/item-categories/index.ts +7 -0
- package/src/resources/catalog/item-categories/item-categories.ts +18 -0
- package/src/resources/catalog/items/items.ts +1 -1
- package/src/resources/catalog/materials/actions.ts +141 -0
- package/src/resources/catalog/materials/index.ts +22 -0
- package/src/resources/catalog/materials/materials.ts +633 -0
- package/src/resources/catalog/materials.ts +1 -611
- package/src/resources/catalog/parts/actions.ts +129 -0
- package/src/resources/catalog/parts/index.ts +20 -0
- package/src/resources/catalog/parts/parts.ts +476 -0
- package/src/resources/catalog/parts.ts +1 -454
- package/src/resources/catalog/product-lines/actions.ts +97 -0
- package/src/resources/catalog/product-lines/index.ts +21 -0
- package/src/resources/catalog/product-lines/product-lines.ts +552 -0
- package/src/resources/catalog/product-lines.ts +1 -532
- package/src/resources/catalog/products/actions.ts +148 -0
- package/src/resources/catalog/products/index.ts +22 -0
- package/src/resources/catalog/products/products.ts +816 -0
- package/src/resources/catalog/products.ts +1 -794
- package/src/resources/catalog/properties/actions.ts +102 -0
- package/src/resources/catalog/properties/index.ts +7 -0
- package/src/resources/catalog/properties/properties.ts +18 -0
- package/src/resources/catalog/unit-groups/actions.ts +139 -0
- package/src/resources/catalog/unit-groups/index.ts +8 -0
- package/src/resources/catalog/unit-groups/unit-groups.ts +25 -5
- package/src/resources/catalog/units/actions.ts +110 -0
- package/src/resources/catalog/units/index.ts +20 -0
- package/src/resources/catalog/units/units.ts +547 -0
- package/src/resources/catalog/units.ts +1 -532
- package/src/resources/core/audit-events.ts +8 -4
- package/src/resources/core/core.ts +17 -1
- package/src/resources/core/index.ts +9 -0
- package/src/resources/core/jobs.ts +321 -0
- package/src/resources/messaging/conversations/conversations.ts +6 -3
- package/src/resources/messaging/conversations/links.ts +4 -2
- package/src/resources/messaging/conversations/messages.ts +4 -2
- package/src/resources/messaging/notifications/notifications.ts +4 -2
- package/src/resources/operations/demand-overrides.ts +1 -1
- package/src/resources/operations/index.ts +1 -1
- package/src/resources/operations/locations/actions.ts +82 -0
- package/src/resources/operations/locations/index.ts +18 -0
- package/src/resources/operations/locations/locations.ts +344 -0
- package/src/resources/operations/locations.ts +1 -329
- package/src/resources/operations/operations.ts +11 -11
- package/src/resources/operations/scanning-stations.ts +12 -4
- package/src/resources/operations/shipping-terms.ts +1 -1
- package/src/resources/sales/customers/customers.ts +1 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as BlocksAPI from '../../messaging/blocks';
|
|
5
|
+
import * as ActionsAPI from './actions';
|
|
6
|
+
import { ActionBulkUpsertParams, Actions, BulkUpsertLocationsRequest, UpsertLocationInput } from './actions';
|
|
7
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* List and manage locations.
|
|
13
|
+
*/
|
|
14
|
+
export class Locations extends APIResource {
|
|
15
|
+
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns a paginated list of locations in your account, newest first.
|
|
19
|
+
*
|
|
20
|
+
* Every location is returned regardless of its depth in the hierarchy, so
|
|
21
|
+
* top-level locations and their descendants appear side by side. The `q` search
|
|
22
|
+
* term matches on location name.
|
|
23
|
+
*
|
|
24
|
+
* This endpoint requires the permission: `locations:read`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const listLocation =
|
|
29
|
+
* await client.operations.locations.list();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
list(
|
|
33
|
+
query: LocationListParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<BlocksAPI.ListLocation> {
|
|
36
|
+
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns a location by ID.
|
|
41
|
+
*
|
|
42
|
+
* This endpoint requires the permission: `locations:read`.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const location = await client.operations.locations.retrieve(
|
|
47
|
+
* 'lc_yonnys0hx3ju',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(
|
|
52
|
+
id: string,
|
|
53
|
+
query: LocationRetrieveParams | null | undefined = {},
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<BlocksAPI.Location> {
|
|
56
|
+
return this._client.get(path`/v1/operations/locations/${id}`, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Creates a storage location, optionally placing it in the location hierarchy.
|
|
61
|
+
*
|
|
62
|
+
* This endpoint requires the permission: `locations:create`.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const location = await client.operations.locations.create({
|
|
67
|
+
* name: 'Warehouse A',
|
|
68
|
+
* type: 'building',
|
|
69
|
+
* child_ids: ['lc_yonnys0hx3ju'],
|
|
70
|
+
* parent_id: 'lc_yonnys0hx3ju',
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<BlocksAPI.Location> {
|
|
75
|
+
const { include, ...body } = params;
|
|
76
|
+
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Partially updates a location.
|
|
81
|
+
*
|
|
82
|
+
* This endpoint requires the permission: `locations:update`.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const location = await client.operations.locations.update(
|
|
87
|
+
* 'lc_yonnys0hx3ju',
|
|
88
|
+
* {
|
|
89
|
+
* child_ids: ['lc_yonnys0hx3ju'],
|
|
90
|
+
* name: 'Warehouse B',
|
|
91
|
+
* parent_id: 'lc_yonnys0hx3ju',
|
|
92
|
+
* type: 'section',
|
|
93
|
+
* },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
update(
|
|
98
|
+
id: string,
|
|
99
|
+
params: LocationUpdateParams | null | undefined = {},
|
|
100
|
+
options?: RequestOptions,
|
|
101
|
+
): APIPromise<BlocksAPI.Location> {
|
|
102
|
+
const { include, ...body } = params ?? {};
|
|
103
|
+
return this._client.patch(path`/v1/operations/locations/${id}`, { query: { include }, body, ...options });
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Deletes a location.
|
|
108
|
+
*
|
|
109
|
+
* Fails if the location has child locations; remove or reassign the children
|
|
110
|
+
* first.
|
|
111
|
+
*
|
|
112
|
+
* This endpoint requires the permission: `locations:delete`.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const location = await client.operations.locations.delete(
|
|
117
|
+
* 'lc_yonnys0hx3ju',
|
|
118
|
+
* );
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
delete(id: string, options?: RequestOptions): APIPromise<LocationDeleteResponse> {
|
|
122
|
+
return this._client.delete(path`/v1/operations/locations/${id}`, options);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Request to create a location.
|
|
128
|
+
*/
|
|
129
|
+
export interface CreateLocationRequest {
|
|
130
|
+
/**
|
|
131
|
+
* Display name of the location.
|
|
132
|
+
*
|
|
133
|
+
* Maximum 255 characters.
|
|
134
|
+
*/
|
|
135
|
+
name: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* This location's level in the storage hierarchy.
|
|
139
|
+
*
|
|
140
|
+
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
141
|
+
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent you
|
|
142
|
+
* choose is not required to be the next level up.
|
|
143
|
+
*/
|
|
144
|
+
type: BlocksAPI.LocationTypeCode;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Existing locations to attach beneath the new location.
|
|
148
|
+
*
|
|
149
|
+
* Each listed location is reparented onto the new location, detaching it from its
|
|
150
|
+
* current parent. Every ID must belong to your account.
|
|
151
|
+
*/
|
|
152
|
+
child_ids?: Array<string>;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The location this one sits under in the storage hierarchy.
|
|
156
|
+
*
|
|
157
|
+
* Must be an existing location in your account. Omit to create a top-level
|
|
158
|
+
* location.
|
|
159
|
+
*/
|
|
160
|
+
parent_id?: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Request to partially update a location.
|
|
165
|
+
*/
|
|
166
|
+
export interface UpdateLocationRequest {
|
|
167
|
+
/**
|
|
168
|
+
* The locations that sit directly beneath this one.
|
|
169
|
+
*
|
|
170
|
+
* This replaces the full set of children: current children that are not listed are
|
|
171
|
+
* detached and become top-level locations, and listed locations are reparented
|
|
172
|
+
* onto this location. Send `null` to detach every child. Omit the field to leave
|
|
173
|
+
* the existing children untouched.
|
|
174
|
+
*/
|
|
175
|
+
child_ids?: Array<string> | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Display name of the location.
|
|
179
|
+
*
|
|
180
|
+
* Maximum 255 characters.
|
|
181
|
+
*/
|
|
182
|
+
name?: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The location this one sits under in the storage hierarchy.
|
|
186
|
+
*
|
|
187
|
+
* Must be an existing location in your account, and cannot be the location being
|
|
188
|
+
* updated. Send `null` to detach it from its parent and make it a top-level
|
|
189
|
+
* location.
|
|
190
|
+
*/
|
|
191
|
+
parent_id?: string | null;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* This location's level in the storage hierarchy.
|
|
195
|
+
*
|
|
196
|
+
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
197
|
+
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent is
|
|
198
|
+
* not required to be the next level up.
|
|
199
|
+
*/
|
|
200
|
+
type?: BlocksAPI.LocationTypeCode;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface LocationDeleteResponse {}
|
|
204
|
+
|
|
205
|
+
export interface LocationListParams {
|
|
206
|
+
/**
|
|
207
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
208
|
+
*
|
|
209
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
210
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
211
|
+
* page.
|
|
212
|
+
*/
|
|
213
|
+
cursor?: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
217
|
+
* `null`.
|
|
218
|
+
*/
|
|
219
|
+
include?: Array<'parent' | 'children'>;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Maximum number of results to return in a single page.
|
|
223
|
+
*/
|
|
224
|
+
limit?: number;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Free-text search term used to filter results.
|
|
228
|
+
*
|
|
229
|
+
* Which fields are matched against the term varies by endpoint.
|
|
230
|
+
*/
|
|
231
|
+
q?: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface LocationRetrieveParams {
|
|
235
|
+
/**
|
|
236
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
237
|
+
* `null`.
|
|
238
|
+
*/
|
|
239
|
+
include?: Array<'parent' | 'children'>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface LocationCreateParams {
|
|
243
|
+
/**
|
|
244
|
+
* Body param: Display name of the location.
|
|
245
|
+
*
|
|
246
|
+
* Maximum 255 characters.
|
|
247
|
+
*/
|
|
248
|
+
name: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Body param: This location's level in the storage hierarchy.
|
|
252
|
+
*
|
|
253
|
+
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
254
|
+
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent you
|
|
255
|
+
* choose is not required to be the next level up.
|
|
256
|
+
*/
|
|
257
|
+
type: BlocksAPI.LocationTypeCode;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
261
|
+
* are returned as `null`.
|
|
262
|
+
*/
|
|
263
|
+
include?: Array<'parent' | 'children'>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Body param: Existing locations to attach beneath the new location.
|
|
267
|
+
*
|
|
268
|
+
* Each listed location is reparented onto the new location, detaching it from its
|
|
269
|
+
* current parent. Every ID must belong to your account.
|
|
270
|
+
*/
|
|
271
|
+
child_ids?: Array<string>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Body param: The location this one sits under in the storage hierarchy.
|
|
275
|
+
*
|
|
276
|
+
* Must be an existing location in your account. Omit to create a top-level
|
|
277
|
+
* location.
|
|
278
|
+
*/
|
|
279
|
+
parent_id?: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface LocationUpdateParams {
|
|
283
|
+
/**
|
|
284
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
285
|
+
* are returned as `null`.
|
|
286
|
+
*/
|
|
287
|
+
include?: Array<'parent' | 'children'>;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Body param: The locations that sit directly beneath this one.
|
|
291
|
+
*
|
|
292
|
+
* This replaces the full set of children: current children that are not listed are
|
|
293
|
+
* detached and become top-level locations, and listed locations are reparented
|
|
294
|
+
* onto this location. Send `null` to detach every child. Omit the field to leave
|
|
295
|
+
* the existing children untouched.
|
|
296
|
+
*/
|
|
297
|
+
child_ids?: Array<string> | null;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Body param: Display name of the location.
|
|
301
|
+
*
|
|
302
|
+
* Maximum 255 characters.
|
|
303
|
+
*/
|
|
304
|
+
name?: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Body param: The location this one sits under in the storage hierarchy.
|
|
308
|
+
*
|
|
309
|
+
* Must be an existing location in your account, and cannot be the location being
|
|
310
|
+
* updated. Send `null` to detach it from its parent and make it a top-level
|
|
311
|
+
* location.
|
|
312
|
+
*/
|
|
313
|
+
parent_id?: string | null;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Body param: This location's level in the storage hierarchy.
|
|
317
|
+
*
|
|
318
|
+
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
319
|
+
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent is
|
|
320
|
+
* not required to be the next level up.
|
|
321
|
+
*/
|
|
322
|
+
type?: BlocksAPI.LocationTypeCode;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
Locations.Actions = Actions;
|
|
326
|
+
|
|
327
|
+
export declare namespace Locations {
|
|
328
|
+
export {
|
|
329
|
+
type CreateLocationRequest as CreateLocationRequest,
|
|
330
|
+
type UpdateLocationRequest as UpdateLocationRequest,
|
|
331
|
+
type LocationDeleteResponse as LocationDeleteResponse,
|
|
332
|
+
type LocationListParams as LocationListParams,
|
|
333
|
+
type LocationRetrieveParams as LocationRetrieveParams,
|
|
334
|
+
type LocationCreateParams as LocationCreateParams,
|
|
335
|
+
type LocationUpdateParams as LocationUpdateParams,
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export {
|
|
339
|
+
Actions as Actions,
|
|
340
|
+
type BulkUpsertLocationsRequest as BulkUpsertLocationsRequest,
|
|
341
|
+
type UpsertLocationInput as UpsertLocationInput,
|
|
342
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
@@ -1,331 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as BlocksAPI from '../messaging/blocks';
|
|
5
|
-
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* List and manage locations.
|
|
11
|
-
*/
|
|
12
|
-
export class Locations extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Returns a paginated list of locations in your account, newest first.
|
|
15
|
-
*
|
|
16
|
-
* Every location is returned regardless of its depth in the hierarchy, so
|
|
17
|
-
* top-level locations and their descendants appear side by side. The `q` search
|
|
18
|
-
* term matches on location name.
|
|
19
|
-
*
|
|
20
|
-
* This endpoint requires the permission: `locations:read`.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const listLocation =
|
|
25
|
-
* await client.operations.locations.list();
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
list(
|
|
29
|
-
query: LocationListParams | null | undefined = {},
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): APIPromise<BlocksAPI.ListLocation> {
|
|
32
|
-
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Returns a location by ID.
|
|
37
|
-
*
|
|
38
|
-
* This endpoint requires the permission: `locations:read`.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const location = await client.operations.locations.retrieve(
|
|
43
|
-
* 'lc_yonnys0hx3ju',
|
|
44
|
-
* );
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
retrieve(
|
|
48
|
-
id: string,
|
|
49
|
-
query: LocationRetrieveParams | null | undefined = {},
|
|
50
|
-
options?: RequestOptions,
|
|
51
|
-
): APIPromise<BlocksAPI.Location> {
|
|
52
|
-
return this._client.get(path`/v1/operations/locations/${id}`, { query, ...options });
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Creates a storage location, optionally placing it in the location hierarchy.
|
|
57
|
-
*
|
|
58
|
-
* This endpoint requires the permission: `locations:create`.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const location = await client.operations.locations.create({
|
|
63
|
-
* name: 'Warehouse A',
|
|
64
|
-
* type: 'building',
|
|
65
|
-
* child_ids: ['lc_yonnys0hx3ju'],
|
|
66
|
-
* parent_id: 'lc_yonnys0hx3ju',
|
|
67
|
-
* });
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<BlocksAPI.Location> {
|
|
71
|
-
const { include, ...body } = params;
|
|
72
|
-
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Partially updates a location.
|
|
77
|
-
*
|
|
78
|
-
* This endpoint requires the permission: `locations:update`.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```ts
|
|
82
|
-
* const location = await client.operations.locations.update(
|
|
83
|
-
* 'lc_yonnys0hx3ju',
|
|
84
|
-
* {
|
|
85
|
-
* child_ids: ['lc_yonnys0hx3ju'],
|
|
86
|
-
* name: 'Warehouse B',
|
|
87
|
-
* parent_id: 'lc_yonnys0hx3ju',
|
|
88
|
-
* type: 'section',
|
|
89
|
-
* },
|
|
90
|
-
* );
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
update(
|
|
94
|
-
id: string,
|
|
95
|
-
params: LocationUpdateParams | null | undefined = {},
|
|
96
|
-
options?: RequestOptions,
|
|
97
|
-
): APIPromise<BlocksAPI.Location> {
|
|
98
|
-
const { include, ...body } = params ?? {};
|
|
99
|
-
return this._client.patch(path`/v1/operations/locations/${id}`, { query: { include }, body, ...options });
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Deletes a location.
|
|
104
|
-
*
|
|
105
|
-
* Fails if the location has child locations; remove or reassign the children
|
|
106
|
-
* first.
|
|
107
|
-
*
|
|
108
|
-
* This endpoint requires the permission: `locations:delete`.
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
* ```ts
|
|
112
|
-
* const location = await client.operations.locations.delete(
|
|
113
|
-
* 'lc_yonnys0hx3ju',
|
|
114
|
-
* );
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
delete(id: string, options?: RequestOptions): APIPromise<LocationDeleteResponse> {
|
|
118
|
-
return this._client.delete(path`/v1/operations/locations/${id}`, options);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Request to create a location.
|
|
124
|
-
*/
|
|
125
|
-
export interface CreateLocationRequest {
|
|
126
|
-
/**
|
|
127
|
-
* Display name of the location.
|
|
128
|
-
*
|
|
129
|
-
* Maximum 255 characters.
|
|
130
|
-
*/
|
|
131
|
-
name: string;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* This location's level in the storage hierarchy.
|
|
135
|
-
*
|
|
136
|
-
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
137
|
-
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent you
|
|
138
|
-
* choose is not required to be the next level up.
|
|
139
|
-
*/
|
|
140
|
-
type: BlocksAPI.LocationTypeCode;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Existing locations to attach beneath the new location.
|
|
144
|
-
*
|
|
145
|
-
* Each listed location is reparented onto the new location, detaching it from its
|
|
146
|
-
* current parent. Every ID must belong to your account.
|
|
147
|
-
*/
|
|
148
|
-
child_ids?: Array<string>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* The location this one sits under in the storage hierarchy.
|
|
152
|
-
*
|
|
153
|
-
* Must be an existing location in your account. Omit to create a top-level
|
|
154
|
-
* location.
|
|
155
|
-
*/
|
|
156
|
-
parent_id?: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Request to partially update a location.
|
|
161
|
-
*/
|
|
162
|
-
export interface UpdateLocationRequest {
|
|
163
|
-
/**
|
|
164
|
-
* The locations that sit directly beneath this one.
|
|
165
|
-
*
|
|
166
|
-
* This replaces the full set of children: current children that are not listed are
|
|
167
|
-
* detached and become top-level locations, and listed locations are reparented
|
|
168
|
-
* onto this location. Send `null` to detach every child. Omit the field to leave
|
|
169
|
-
* the existing children untouched.
|
|
170
|
-
*/
|
|
171
|
-
child_ids?: Array<string> | null;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Display name of the location.
|
|
175
|
-
*
|
|
176
|
-
* Maximum 255 characters.
|
|
177
|
-
*/
|
|
178
|
-
name?: string;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* The location this one sits under in the storage hierarchy.
|
|
182
|
-
*
|
|
183
|
-
* Must be an existing location in your account, and cannot be the location being
|
|
184
|
-
* updated. Send `null` to detach it from its parent and make it a top-level
|
|
185
|
-
* location.
|
|
186
|
-
*/
|
|
187
|
-
parent_id?: string | null;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* This location's level in the storage hierarchy.
|
|
191
|
-
*
|
|
192
|
-
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
193
|
-
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent is
|
|
194
|
-
* not required to be the next level up.
|
|
195
|
-
*/
|
|
196
|
-
type?: BlocksAPI.LocationTypeCode;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export interface LocationDeleteResponse {}
|
|
200
|
-
|
|
201
|
-
export interface LocationListParams {
|
|
202
|
-
/**
|
|
203
|
-
* Opaque cursor token identifying where the page of results starts.
|
|
204
|
-
*
|
|
205
|
-
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
206
|
-
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
207
|
-
* page.
|
|
208
|
-
*/
|
|
209
|
-
cursor?: string;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
213
|
-
* `null`.
|
|
214
|
-
*/
|
|
215
|
-
include?: Array<'parent' | 'children'>;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Maximum number of results to return in a single page.
|
|
219
|
-
*/
|
|
220
|
-
limit?: number;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Free-text search term used to filter results.
|
|
224
|
-
*
|
|
225
|
-
* Which fields are matched against the term varies by endpoint.
|
|
226
|
-
*/
|
|
227
|
-
q?: string;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export interface LocationRetrieveParams {
|
|
231
|
-
/**
|
|
232
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
233
|
-
* `null`.
|
|
234
|
-
*/
|
|
235
|
-
include?: Array<'parent' | 'children'>;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface LocationCreateParams {
|
|
239
|
-
/**
|
|
240
|
-
* Body param: Display name of the location.
|
|
241
|
-
*
|
|
242
|
-
* Maximum 255 characters.
|
|
243
|
-
*/
|
|
244
|
-
name: string;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Body param: This location's level in the storage hierarchy.
|
|
248
|
-
*
|
|
249
|
-
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
250
|
-
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent you
|
|
251
|
-
* choose is not required to be the next level up.
|
|
252
|
-
*/
|
|
253
|
-
type: BlocksAPI.LocationTypeCode;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
257
|
-
* are returned as `null`.
|
|
258
|
-
*/
|
|
259
|
-
include?: Array<'parent' | 'children'>;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Body param: Existing locations to attach beneath the new location.
|
|
263
|
-
*
|
|
264
|
-
* Each listed location is reparented onto the new location, detaching it from its
|
|
265
|
-
* current parent. Every ID must belong to your account.
|
|
266
|
-
*/
|
|
267
|
-
child_ids?: Array<string>;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Body param: The location this one sits under in the storage hierarchy.
|
|
271
|
-
*
|
|
272
|
-
* Must be an existing location in your account. Omit to create a top-level
|
|
273
|
-
* location.
|
|
274
|
-
*/
|
|
275
|
-
parent_id?: string;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export interface LocationUpdateParams {
|
|
279
|
-
/**
|
|
280
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
281
|
-
* are returned as `null`.
|
|
282
|
-
*/
|
|
283
|
-
include?: Array<'parent' | 'children'>;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Body param: The locations that sit directly beneath this one.
|
|
287
|
-
*
|
|
288
|
-
* This replaces the full set of children: current children that are not listed are
|
|
289
|
-
* detached and become top-level locations, and listed locations are reparented
|
|
290
|
-
* onto this location. Send `null` to detach every child. Omit the field to leave
|
|
291
|
-
* the existing children untouched.
|
|
292
|
-
*/
|
|
293
|
-
child_ids?: Array<string> | null;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Body param: Display name of the location.
|
|
297
|
-
*
|
|
298
|
-
* Maximum 255 characters.
|
|
299
|
-
*/
|
|
300
|
-
name?: string;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Body param: The location this one sits under in the storage hierarchy.
|
|
304
|
-
*
|
|
305
|
-
* Must be an existing location in your account, and cannot be the location being
|
|
306
|
-
* updated. Send `null` to detach it from its parent and make it a top-level
|
|
307
|
-
* location.
|
|
308
|
-
*/
|
|
309
|
-
parent_id?: string | null;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Body param: This location's level in the storage hierarchy.
|
|
313
|
-
*
|
|
314
|
-
* The levels run from largest to smallest: `building`, `section`, `aisle`, `rack`,
|
|
315
|
-
* `shelf`, `bin`. They are descriptive labels rather than a rule — the parent is
|
|
316
|
-
* not required to be the next level up.
|
|
317
|
-
*/
|
|
318
|
-
type?: BlocksAPI.LocationTypeCode;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export declare namespace Locations {
|
|
322
|
-
export {
|
|
323
|
-
type CreateLocationRequest as CreateLocationRequest,
|
|
324
|
-
type UpdateLocationRequest as UpdateLocationRequest,
|
|
325
|
-
type LocationDeleteResponse as LocationDeleteResponse,
|
|
326
|
-
type LocationListParams as LocationListParams,
|
|
327
|
-
type LocationRetrieveParams as LocationRetrieveParams,
|
|
328
|
-
type LocationCreateParams as LocationCreateParams,
|
|
329
|
-
type LocationUpdateParams as LocationUpdateParams,
|
|
330
|
-
};
|
|
331
|
-
}
|
|
3
|
+
export * from './locations/index';
|
|
@@ -30,17 +30,6 @@ import {
|
|
|
30
30
|
} from './departments';
|
|
31
31
|
import * as LocationTypesAPI from './location-types';
|
|
32
32
|
import { ListLocationType, LocationType, LocationTypeListParams, LocationTypes } from './location-types';
|
|
33
|
-
import * as LocationsAPI from './locations';
|
|
34
|
-
import {
|
|
35
|
-
CreateLocationRequest,
|
|
36
|
-
LocationCreateParams,
|
|
37
|
-
LocationDeleteResponse,
|
|
38
|
-
LocationListParams,
|
|
39
|
-
LocationRetrieveParams,
|
|
40
|
-
LocationUpdateParams,
|
|
41
|
-
Locations,
|
|
42
|
-
UpdateLocationRequest,
|
|
43
|
-
} from './locations';
|
|
44
33
|
import * as MachineDowntimeEventsAPI from './machine-downtime-events';
|
|
45
34
|
import {
|
|
46
35
|
CreateMachineDowntimeEventRequest,
|
|
@@ -101,6 +90,17 @@ import {
|
|
|
101
90
|
ListCarrier,
|
|
102
91
|
UpdateCarrierRequest,
|
|
103
92
|
} from './carriers/carriers';
|
|
93
|
+
import * as LocationsAPI from './locations/locations';
|
|
94
|
+
import {
|
|
95
|
+
CreateLocationRequest,
|
|
96
|
+
LocationCreateParams,
|
|
97
|
+
LocationDeleteResponse,
|
|
98
|
+
LocationListParams,
|
|
99
|
+
LocationRetrieveParams,
|
|
100
|
+
LocationUpdateParams,
|
|
101
|
+
Locations,
|
|
102
|
+
UpdateLocationRequest,
|
|
103
|
+
} from './locations/locations';
|
|
104
104
|
import * as ProductionScheduleSettingsAPI from './production-schedule-settings/production-schedule-settings';
|
|
105
105
|
import {
|
|
106
106
|
ProductionScheduleSettingUpdateParams,
|