@augno/sdk 0.13.4 → 0.15.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 +501 -0
- package/resources/catalog/product-lines/product-lines.d.mts.map +1 -0
- package/resources/catalog/product-lines/product-lines.d.ts +501 -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/analytics.d.mts +252 -1
- package/resources/core/analytics.d.mts.map +1 -1
- package/resources/core/analytics.d.ts +252 -1
- package/resources/core/analytics.d.ts.map +1 -1
- package/resources/core/analytics.js +38 -0
- package/resources/core/analytics.js.map +1 -1
- package/resources/core/analytics.mjs +38 -0
- package/resources/core/analytics.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 +8 -4
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +8 -4
- 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 +2 -1
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +2 -1
- 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/fulfillment-recommendations/actions.d.mts +59 -0
- package/resources/operations/fulfillment-recommendations/actions.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations/actions.d.ts +59 -0
- package/resources/operations/fulfillment-recommendations/actions.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations/actions.js +40 -0
- package/resources/operations/fulfillment-recommendations/actions.js.map +1 -0
- package/resources/operations/fulfillment-recommendations/actions.mjs +36 -0
- package/resources/operations/fulfillment-recommendations/actions.mjs.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts +165 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts +165 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js +52 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js.map +1 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs +47 -0
- package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.d.mts +3 -0
- package/resources/operations/fulfillment-recommendations/index.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.d.ts +3 -0
- package/resources/operations/fulfillment-recommendations/index.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.js +9 -0
- package/resources/operations/fulfillment-recommendations/index.js.map +1 -0
- package/resources/operations/fulfillment-recommendations/index.mjs +4 -0
- package/resources/operations/fulfillment-recommendations/index.mjs.map +1 -0
- package/resources/operations/fulfillment-recommendations.d.mts +2 -0
- package/resources/operations/fulfillment-recommendations.d.mts.map +1 -0
- package/resources/operations/fulfillment-recommendations.d.ts +2 -0
- package/resources/operations/fulfillment-recommendations.d.ts.map +1 -0
- package/resources/operations/fulfillment-recommendations.js +6 -0
- package/resources/operations/fulfillment-recommendations.js.map +1 -0
- package/resources/operations/fulfillment-recommendations.mjs +3 -0
- package/resources/operations/fulfillment-recommendations.mjs.map +1 -0
- package/resources/operations/index.d.mts +3 -2
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +3 -2
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.js +11 -9
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +2 -1
- package/resources/operations/index.mjs.map +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 +8 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +8 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +6 -2
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +6 -2
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/index.d.mts +1 -0
- package/resources/operations/production-schedule-settings/index.d.mts.map +1 -1
- package/resources/operations/production-schedule-settings/index.d.ts +1 -0
- package/resources/operations/production-schedule-settings/index.d.ts.map +1 -1
- package/resources/operations/production-schedule-settings/index.js +3 -1
- package/resources/operations/production-schedule-settings/index.js.map +1 -1
- package/resources/operations/production-schedule-settings/index.mjs +1 -0
- package/resources/operations/production-schedule-settings/index.mjs.map +1 -1
- package/resources/operations/production-schedule-settings/items.d.mts +228 -0
- package/resources/operations/production-schedule-settings/items.d.mts.map +1 -0
- package/resources/operations/production-schedule-settings/items.d.ts +228 -0
- package/resources/operations/production-schedule-settings/items.d.ts.map +1 -0
- package/resources/operations/production-schedule-settings/items.js +109 -0
- package/resources/operations/production-schedule-settings/items.js.map +1 -0
- package/resources/operations/production-schedule-settings/items.mjs +105 -0
- package/resources/operations/production-schedule-settings/items.mjs.map +1 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +60 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +60 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.js +6 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +6 -0
- package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
- package/resources/operations/production-schedules/actions.d.mts +117 -1
- package/resources/operations/production-schedules/actions.d.mts.map +1 -1
- package/resources/operations/production-schedules/actions.d.ts +117 -1
- package/resources/operations/production-schedules/actions.d.ts.map +1 -1
- package/resources/operations/production-schedules/actions.js +34 -0
- package/resources/operations/production-schedules/actions.js.map +1 -1
- package/resources/operations/production-schedules/actions.mjs +34 -0
- package/resources/operations/production-schedules/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/index.d.mts +2 -2
- package/resources/operations/production-schedules/index.d.mts.map +1 -1
- package/resources/operations/production-schedules/index.d.ts +2 -2
- package/resources/operations/production-schedules/index.d.ts.map +1 -1
- package/resources/operations/production-schedules/index.js.map +1 -1
- package/resources/operations/production-schedules/index.mjs.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +260 -3
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +260 -3
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +29 -0
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +29 -0
- package/resources/operations/production-schedules/production-schedules.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/account-groups.d.mts +27 -0
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +27 -0
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +100 -2
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +100 -2
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +27 -0
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +27 -0
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +1 -1
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +1 -1
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.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 +39 -4
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +39 -4
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +2 -2
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +2 -2
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs.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 +610 -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/analytics.ts +300 -0
- package/src/resources/core/audit-events.ts +48 -4
- package/src/resources/core/core.ts +51 -1
- package/src/resources/core/index.ts +16 -0
- package/src/resources/core/jobs.ts +321 -0
- package/src/resources/messaging/conversations/conversations.ts +36 -3
- package/src/resources/messaging/conversations/links.ts +24 -2
- package/src/resources/messaging/conversations/messages.ts +24 -2
- package/src/resources/messaging/notifications/notifications.ts +24 -2
- package/src/resources/operations/demand-overrides.ts +1 -1
- package/src/resources/operations/fulfillment-recommendations/actions.ts +75 -0
- package/src/resources/operations/fulfillment-recommendations/fulfillment-recommendations.ts +206 -0
- package/src/resources/operations/fulfillment-recommendations/index.ts +8 -0
- package/src/resources/operations/fulfillment-recommendations.ts +3 -0
- package/src/resources/operations/index.ts +12 -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 +38 -11
- package/src/resources/operations/production-schedule-settings/index.ts +8 -0
- package/src/resources/operations/production-schedule-settings/items.ts +273 -0
- package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +82 -0
- package/src/resources/operations/production-schedules/actions.ts +144 -0
- package/src/resources/operations/production-schedules/index.ts +9 -0
- package/src/resources/operations/production-schedules/production-schedules.ts +310 -0
- package/src/resources/operations/scanning-stations.ts +12 -4
- package/src/resources/operations/shipping-terms.ts +1 -1
- package/src/resources/sales/account-groups.ts +32 -0
- package/src/resources/sales/customers/customers.ts +113 -1
- package/src/resources/sales/customers/index.ts +1 -0
- package/src/resources/sales/index.ts +1 -0
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +45 -4
- package/src/resources/sales/sales.ts +2 -0
- 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,228 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as CoreAPI from "../../core/core.mjs";
|
|
3
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Items extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns every per-item planning override in the account.
|
|
12
|
+
*
|
|
13
|
+
* Only items that have been given an override appear here. An item with none is
|
|
14
|
+
* planned on the account defaults and its product line's conventions, which is the
|
|
15
|
+
* normal case — this is the list of exceptions, not a list of every item.
|
|
16
|
+
*
|
|
17
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const listProductionScheduleItemSetting =
|
|
22
|
+
* await client.operations.productionScheduleSettings.items.list();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(options?: RequestOptions): APIPromise<ListProductionScheduleItemSetting>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the planning overrides for one item.
|
|
28
|
+
*
|
|
29
|
+
* Fails with a not-found error when the item has none, rather than returning an
|
|
30
|
+
* empty set of overrides: an item with no overrides is planned on the account
|
|
31
|
+
* defaults and its product line's conventions, and reporting that as a resource
|
|
32
|
+
* would suggest there is something here to edit.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const productionScheduleItemSetting =
|
|
39
|
+
* await client.operations.productionScheduleSettings.items.retrieve(
|
|
40
|
+
* 'example',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(itemID: string, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
|
|
45
|
+
/**
|
|
46
|
+
* Writes the planning overrides for one item.
|
|
47
|
+
*
|
|
48
|
+
* An item has at most one set of overrides, so this replaces the existing entry
|
|
49
|
+
* rather than adding a second, and the entry keeps the ID it already had.
|
|
50
|
+
*
|
|
51
|
+
* The fulfillment policy is the most consequential of these. A `make_to_order`
|
|
52
|
+
* item contributes no forecast demand and holds no safety stock, so it is built
|
|
53
|
+
* only against orders already on the book — which is what stops a slow mover
|
|
54
|
+
* accumulating inventory nobody asked for. It also propagates: an intermediate
|
|
55
|
+
* item is planned to order only when every finished good it becomes is, so one
|
|
56
|
+
* stocked sibling keeps the whole family buffered.
|
|
57
|
+
*
|
|
58
|
+
* Overrides are read when a plan is generated, so a change takes effect on the
|
|
59
|
+
* next generated version and leaves existing ones untouched.
|
|
60
|
+
*
|
|
61
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const productionScheduleItemSetting =
|
|
66
|
+
* await client.operations.productionScheduleSettings.items.update(
|
|
67
|
+
* 'example',
|
|
68
|
+
* {
|
|
69
|
+
* participation_status: 'included',
|
|
70
|
+
* fulfillment_policy: 'make_to_order',
|
|
71
|
+
* },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
update(itemID: string, body: ItemUpdateParams, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
|
|
76
|
+
/**
|
|
77
|
+
* Removes one item's planning overrides, returning it to the account defaults and
|
|
78
|
+
* its product line's conventions.
|
|
79
|
+
*
|
|
80
|
+
* Fails with a not-found error when the item has no overrides, rather than
|
|
81
|
+
* reporting success: a mistyped item ID would otherwise read as a change that
|
|
82
|
+
* never happened.
|
|
83
|
+
*
|
|
84
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const item =
|
|
89
|
+
* await client.operations.productionScheduleSettings.items.delete(
|
|
90
|
+
* 'example',
|
|
91
|
+
* );
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
delete(itemID: string, options?: RequestOptions): APIPromise<ItemDeleteResponse>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A single page of resources, together with the metadata needed to page through
|
|
98
|
+
* the rest of the result set.
|
|
99
|
+
*/
|
|
100
|
+
export interface ListProductionScheduleItemSetting {
|
|
101
|
+
/**
|
|
102
|
+
* Resources in this page.
|
|
103
|
+
*/
|
|
104
|
+
data: Array<ProductionScheduleItemSetting>;
|
|
105
|
+
/**
|
|
106
|
+
* Resource type identifier.
|
|
107
|
+
*/
|
|
108
|
+
object: 'list';
|
|
109
|
+
/**
|
|
110
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
111
|
+
* how to move to the adjacent pages.
|
|
112
|
+
*
|
|
113
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
114
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
115
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
116
|
+
* search term, and page size.
|
|
117
|
+
*/
|
|
118
|
+
page_info: APIKeysAPI.PageInfo;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Planning overrides for one item, on top of the account-wide assumptions.
|
|
122
|
+
*/
|
|
123
|
+
export interface ProductionScheduleItemSetting {
|
|
124
|
+
/**
|
|
125
|
+
* Item setting ID.
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
/**
|
|
129
|
+
* Creation timestamp.
|
|
130
|
+
*/
|
|
131
|
+
created_at: string;
|
|
132
|
+
/**
|
|
133
|
+
* How this item is produced.
|
|
134
|
+
*
|
|
135
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
136
|
+
* variability.
|
|
137
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
138
|
+
* buffer.
|
|
139
|
+
*
|
|
140
|
+
* Null inherits from the item's product line, then from the account default.
|
|
141
|
+
*/
|
|
142
|
+
fulfillment_policy: 'make_to_stock' | 'make_to_order' | null;
|
|
143
|
+
/**
|
|
144
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
145
|
+
*/
|
|
146
|
+
item: CoreAPI.Entity | null;
|
|
147
|
+
/**
|
|
148
|
+
* Units in one production lot for this item, overriding the lot its product line
|
|
149
|
+
* would supply.
|
|
150
|
+
*/
|
|
151
|
+
lot_multiple_units: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* Resource type identifier.
|
|
154
|
+
*/
|
|
155
|
+
object: 'production_schedule_item_setting';
|
|
156
|
+
/**
|
|
157
|
+
* Whether this item takes part in planning.
|
|
158
|
+
*
|
|
159
|
+
* An excluded item is left out of the plan entirely: no campaigns, no policy, no
|
|
160
|
+
* capacity.
|
|
161
|
+
*/
|
|
162
|
+
participation_status: 'included' | 'excluded';
|
|
163
|
+
/**
|
|
164
|
+
* Last updated timestamp.
|
|
165
|
+
*/
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Request to write one item's planning overrides.
|
|
170
|
+
*/
|
|
171
|
+
export interface UpsertItemSettingRequest {
|
|
172
|
+
/**
|
|
173
|
+
* Whether this item takes part in planning.
|
|
174
|
+
*
|
|
175
|
+
* An excluded item is left out of the plan entirely: no campaigns, no policy, no
|
|
176
|
+
* capacity.
|
|
177
|
+
*/
|
|
178
|
+
participation_status: 'included' | 'excluded';
|
|
179
|
+
/**
|
|
180
|
+
* How this item is produced.
|
|
181
|
+
*
|
|
182
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
183
|
+
* variability.
|
|
184
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
185
|
+
* buffer.
|
|
186
|
+
*
|
|
187
|
+
* Clearing it returns the item to its product line's policy, then to the account
|
|
188
|
+
* default.
|
|
189
|
+
*/
|
|
190
|
+
fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
|
|
191
|
+
/**
|
|
192
|
+
* Units in one production lot for this item, overriding the lot its product line
|
|
193
|
+
* would supply.
|
|
194
|
+
*/
|
|
195
|
+
lot_multiple_units?: number;
|
|
196
|
+
}
|
|
197
|
+
export interface ItemDeleteResponse {
|
|
198
|
+
}
|
|
199
|
+
export interface ItemUpdateParams {
|
|
200
|
+
/**
|
|
201
|
+
* Whether this item takes part in planning.
|
|
202
|
+
*
|
|
203
|
+
* An excluded item is left out of the plan entirely: no campaigns, no policy, no
|
|
204
|
+
* capacity.
|
|
205
|
+
*/
|
|
206
|
+
participation_status: 'included' | 'excluded';
|
|
207
|
+
/**
|
|
208
|
+
* How this item is produced.
|
|
209
|
+
*
|
|
210
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
211
|
+
* variability.
|
|
212
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
213
|
+
* buffer.
|
|
214
|
+
*
|
|
215
|
+
* Clearing it returns the item to its product line's policy, then to the account
|
|
216
|
+
* default.
|
|
217
|
+
*/
|
|
218
|
+
fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
|
|
219
|
+
/**
|
|
220
|
+
* Units in one production lot for this item, overriding the lot its product line
|
|
221
|
+
* would supply.
|
|
222
|
+
*/
|
|
223
|
+
lot_multiple_units?: number;
|
|
224
|
+
}
|
|
225
|
+
export declare namespace Items {
|
|
226
|
+
export { type ListProductionScheduleItemSetting as ListProductionScheduleItemSetting, type ProductionScheduleItemSetting as ProductionScheduleItemSetting, type UpsertItemSettingRequest as UpsertItemSettingRequest, type ItemDeleteResponse as ItemDeleteResponse, type ItemUpdateParams as ItemUpdateParams, };
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=items.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;IAI7E;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAO5C;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjF;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAE3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;OAQG;IACH,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,EAAE,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,MAAM,EAAE,kCAAkC,CAAC;IAE3C;;;;;OAKG;IACH,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IAE9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;IAE9D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;CAAG;AAEtC,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;IAE9D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as CoreAPI from "../../core/core.js";
|
|
3
|
+
import * as APIKeysAPI from "../../auth/api-keys/api-keys.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Items extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns every per-item planning override in the account.
|
|
12
|
+
*
|
|
13
|
+
* Only items that have been given an override appear here. An item with none is
|
|
14
|
+
* planned on the account defaults and its product line's conventions, which is the
|
|
15
|
+
* normal case — this is the list of exceptions, not a list of every item.
|
|
16
|
+
*
|
|
17
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const listProductionScheduleItemSetting =
|
|
22
|
+
* await client.operations.productionScheduleSettings.items.list();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(options?: RequestOptions): APIPromise<ListProductionScheduleItemSetting>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the planning overrides for one item.
|
|
28
|
+
*
|
|
29
|
+
* Fails with a not-found error when the item has none, rather than returning an
|
|
30
|
+
* empty set of overrides: an item with no overrides is planned on the account
|
|
31
|
+
* defaults and its product line's conventions, and reporting that as a resource
|
|
32
|
+
* would suggest there is something here to edit.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const productionScheduleItemSetting =
|
|
39
|
+
* await client.operations.productionScheduleSettings.items.retrieve(
|
|
40
|
+
* 'example',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(itemID: string, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
|
|
45
|
+
/**
|
|
46
|
+
* Writes the planning overrides for one item.
|
|
47
|
+
*
|
|
48
|
+
* An item has at most one set of overrides, so this replaces the existing entry
|
|
49
|
+
* rather than adding a second, and the entry keeps the ID it already had.
|
|
50
|
+
*
|
|
51
|
+
* The fulfillment policy is the most consequential of these. A `make_to_order`
|
|
52
|
+
* item contributes no forecast demand and holds no safety stock, so it is built
|
|
53
|
+
* only against orders already on the book — which is what stops a slow mover
|
|
54
|
+
* accumulating inventory nobody asked for. It also propagates: an intermediate
|
|
55
|
+
* item is planned to order only when every finished good it becomes is, so one
|
|
56
|
+
* stocked sibling keeps the whole family buffered.
|
|
57
|
+
*
|
|
58
|
+
* Overrides are read when a plan is generated, so a change takes effect on the
|
|
59
|
+
* next generated version and leaves existing ones untouched.
|
|
60
|
+
*
|
|
61
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const productionScheduleItemSetting =
|
|
66
|
+
* await client.operations.productionScheduleSettings.items.update(
|
|
67
|
+
* 'example',
|
|
68
|
+
* {
|
|
69
|
+
* participation_status: 'included',
|
|
70
|
+
* fulfillment_policy: 'make_to_order',
|
|
71
|
+
* },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
update(itemID: string, body: ItemUpdateParams, options?: RequestOptions): APIPromise<ProductionScheduleItemSetting>;
|
|
76
|
+
/**
|
|
77
|
+
* Removes one item's planning overrides, returning it to the account defaults and
|
|
78
|
+
* its product line's conventions.
|
|
79
|
+
*
|
|
80
|
+
* Fails with a not-found error when the item has no overrides, rather than
|
|
81
|
+
* reporting success: a mistyped item ID would otherwise read as a change that
|
|
82
|
+
* never happened.
|
|
83
|
+
*
|
|
84
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const item =
|
|
89
|
+
* await client.operations.productionScheduleSettings.items.delete(
|
|
90
|
+
* 'example',
|
|
91
|
+
* );
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
delete(itemID: string, options?: RequestOptions): APIPromise<ItemDeleteResponse>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A single page of resources, together with the metadata needed to page through
|
|
98
|
+
* the rest of the result set.
|
|
99
|
+
*/
|
|
100
|
+
export interface ListProductionScheduleItemSetting {
|
|
101
|
+
/**
|
|
102
|
+
* Resources in this page.
|
|
103
|
+
*/
|
|
104
|
+
data: Array<ProductionScheduleItemSetting>;
|
|
105
|
+
/**
|
|
106
|
+
* Resource type identifier.
|
|
107
|
+
*/
|
|
108
|
+
object: 'list';
|
|
109
|
+
/**
|
|
110
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
111
|
+
* how to move to the adjacent pages.
|
|
112
|
+
*
|
|
113
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
114
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
115
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
116
|
+
* search term, and page size.
|
|
117
|
+
*/
|
|
118
|
+
page_info: APIKeysAPI.PageInfo;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Planning overrides for one item, on top of the account-wide assumptions.
|
|
122
|
+
*/
|
|
123
|
+
export interface ProductionScheduleItemSetting {
|
|
124
|
+
/**
|
|
125
|
+
* Item setting ID.
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
/**
|
|
129
|
+
* Creation timestamp.
|
|
130
|
+
*/
|
|
131
|
+
created_at: string;
|
|
132
|
+
/**
|
|
133
|
+
* How this item is produced.
|
|
134
|
+
*
|
|
135
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
136
|
+
* variability.
|
|
137
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
138
|
+
* buffer.
|
|
139
|
+
*
|
|
140
|
+
* Null inherits from the item's product line, then from the account default.
|
|
141
|
+
*/
|
|
142
|
+
fulfillment_policy: 'make_to_stock' | 'make_to_order' | null;
|
|
143
|
+
/**
|
|
144
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
145
|
+
*/
|
|
146
|
+
item: CoreAPI.Entity | null;
|
|
147
|
+
/**
|
|
148
|
+
* Units in one production lot for this item, overriding the lot its product line
|
|
149
|
+
* would supply.
|
|
150
|
+
*/
|
|
151
|
+
lot_multiple_units: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* Resource type identifier.
|
|
154
|
+
*/
|
|
155
|
+
object: 'production_schedule_item_setting';
|
|
156
|
+
/**
|
|
157
|
+
* Whether this item takes part in planning.
|
|
158
|
+
*
|
|
159
|
+
* An excluded item is left out of the plan entirely: no campaigns, no policy, no
|
|
160
|
+
* capacity.
|
|
161
|
+
*/
|
|
162
|
+
participation_status: 'included' | 'excluded';
|
|
163
|
+
/**
|
|
164
|
+
* Last updated timestamp.
|
|
165
|
+
*/
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Request to write one item's planning overrides.
|
|
170
|
+
*/
|
|
171
|
+
export interface UpsertItemSettingRequest {
|
|
172
|
+
/**
|
|
173
|
+
* Whether this item takes part in planning.
|
|
174
|
+
*
|
|
175
|
+
* An excluded item is left out of the plan entirely: no campaigns, no policy, no
|
|
176
|
+
* capacity.
|
|
177
|
+
*/
|
|
178
|
+
participation_status: 'included' | 'excluded';
|
|
179
|
+
/**
|
|
180
|
+
* How this item is produced.
|
|
181
|
+
*
|
|
182
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
183
|
+
* variability.
|
|
184
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
185
|
+
* buffer.
|
|
186
|
+
*
|
|
187
|
+
* Clearing it returns the item to its product line's policy, then to the account
|
|
188
|
+
* default.
|
|
189
|
+
*/
|
|
190
|
+
fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
|
|
191
|
+
/**
|
|
192
|
+
* Units in one production lot for this item, overriding the lot its product line
|
|
193
|
+
* would supply.
|
|
194
|
+
*/
|
|
195
|
+
lot_multiple_units?: number;
|
|
196
|
+
}
|
|
197
|
+
export interface ItemDeleteResponse {
|
|
198
|
+
}
|
|
199
|
+
export interface ItemUpdateParams {
|
|
200
|
+
/**
|
|
201
|
+
* Whether this item takes part in planning.
|
|
202
|
+
*
|
|
203
|
+
* An excluded item is left out of the plan entirely: no campaigns, no policy, no
|
|
204
|
+
* capacity.
|
|
205
|
+
*/
|
|
206
|
+
participation_status: 'included' | 'excluded';
|
|
207
|
+
/**
|
|
208
|
+
* How this item is produced.
|
|
209
|
+
*
|
|
210
|
+
* - `make_to_stock`: built to the forecast, holding a safety stock against its
|
|
211
|
+
* variability.
|
|
212
|
+
* - `make_to_order`: built only against orders already on the book, holding no
|
|
213
|
+
* buffer.
|
|
214
|
+
*
|
|
215
|
+
* Clearing it returns the item to its product line's policy, then to the account
|
|
216
|
+
* default.
|
|
217
|
+
*/
|
|
218
|
+
fulfillment_policy?: 'make_to_stock' | 'make_to_order' | null;
|
|
219
|
+
/**
|
|
220
|
+
* Units in one production lot for this item, overriding the lot its product line
|
|
221
|
+
* would supply.
|
|
222
|
+
*/
|
|
223
|
+
lot_multiple_units?: number;
|
|
224
|
+
}
|
|
225
|
+
export declare namespace Items {
|
|
226
|
+
export { type ListProductionScheduleItemSetting as ListProductionScheduleItemSetting, type ProductionScheduleItemSetting as ProductionScheduleItemSetting, type UpsertItemSettingRequest as UpsertItemSettingRequest, type ItemDeleteResponse as ItemDeleteResponse, type ItemUpdateParams as ItemUpdateParams, };
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;IAI7E;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAO5C;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjF;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAE3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;;OAQG;IACH,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,EAAE,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,MAAM,EAAE,kCAAkC,CAAC;IAE3C;;;;;OAKG;IACH,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IAE9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;IAE9D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;CAAG;AAEtC,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,oBAAoB,EAAE,UAAU,GAAG,UAAU,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;IAE9D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Items = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
9
|
+
*/
|
|
10
|
+
class Items extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns every per-item planning override in the account.
|
|
13
|
+
*
|
|
14
|
+
* Only items that have been given an override appear here. An item with none is
|
|
15
|
+
* planned on the account defaults and its product line's conventions, which is the
|
|
16
|
+
* normal case — this is the list of exceptions, not a list of every item.
|
|
17
|
+
*
|
|
18
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const listProductionScheduleItemSetting =
|
|
23
|
+
* await client.operations.productionScheduleSettings.items.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
return this._client.get('/v1/operations/production-schedule-settings/items', options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns the planning overrides for one item.
|
|
31
|
+
*
|
|
32
|
+
* Fails with a not-found error when the item has none, rather than returning an
|
|
33
|
+
* empty set of overrides: an item with no overrides is planned on the account
|
|
34
|
+
* defaults and its product line's conventions, and reporting that as a resource
|
|
35
|
+
* would suggest there is something here to edit.
|
|
36
|
+
*
|
|
37
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const productionScheduleItemSetting =
|
|
42
|
+
* await client.operations.productionScheduleSettings.items.retrieve(
|
|
43
|
+
* 'example',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
retrieve(itemID, options) {
|
|
48
|
+
return this._client.get((0, path_1.path) `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Writes the planning overrides for one item.
|
|
52
|
+
*
|
|
53
|
+
* An item has at most one set of overrides, so this replaces the existing entry
|
|
54
|
+
* rather than adding a second, and the entry keeps the ID it already had.
|
|
55
|
+
*
|
|
56
|
+
* The fulfillment policy is the most consequential of these. A `make_to_order`
|
|
57
|
+
* item contributes no forecast demand and holds no safety stock, so it is built
|
|
58
|
+
* only against orders already on the book — which is what stops a slow mover
|
|
59
|
+
* accumulating inventory nobody asked for. It also propagates: an intermediate
|
|
60
|
+
* item is planned to order only when every finished good it becomes is, so one
|
|
61
|
+
* stocked sibling keeps the whole family buffered.
|
|
62
|
+
*
|
|
63
|
+
* Overrides are read when a plan is generated, so a change takes effect on the
|
|
64
|
+
* next generated version and leaves existing ones untouched.
|
|
65
|
+
*
|
|
66
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const productionScheduleItemSetting =
|
|
71
|
+
* await client.operations.productionScheduleSettings.items.update(
|
|
72
|
+
* 'example',
|
|
73
|
+
* {
|
|
74
|
+
* participation_status: 'included',
|
|
75
|
+
* fulfillment_policy: 'make_to_order',
|
|
76
|
+
* },
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
update(itemID, body, options) {
|
|
81
|
+
return this._client.put((0, path_1.path) `/v1/operations/production-schedule-settings/items/${itemID}`, {
|
|
82
|
+
body,
|
|
83
|
+
...options,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Removes one item's planning overrides, returning it to the account defaults and
|
|
88
|
+
* its product line's conventions.
|
|
89
|
+
*
|
|
90
|
+
* Fails with a not-found error when the item has no overrides, rather than
|
|
91
|
+
* reporting success: a mistyped item ID would otherwise read as a change that
|
|
92
|
+
* never happened.
|
|
93
|
+
*
|
|
94
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* const item =
|
|
99
|
+
* await client.operations.productionScheduleSettings.items.delete(
|
|
100
|
+
* 'example',
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
delete(itemID, options) {
|
|
105
|
+
return this._client.delete((0, path_1.path) `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.Items = Items;
|
|
109
|
+
//# sourceMappingURL=items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/operations/production-schedule-settings/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qDAAqD,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,MAAc,EACd,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qDAAqD,MAAM,EAAE,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qDAAqD,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF;AAxGD,sBAwGC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
|
|
6
|
+
*/
|
|
7
|
+
export class Items extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns every per-item planning override in the account.
|
|
10
|
+
*
|
|
11
|
+
* Only items that have been given an override appear here. An item with none is
|
|
12
|
+
* planned on the account defaults and its product line's conventions, which is the
|
|
13
|
+
* normal case — this is the list of exceptions, not a list of every item.
|
|
14
|
+
*
|
|
15
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const listProductionScheduleItemSetting =
|
|
20
|
+
* await client.operations.productionScheduleSettings.items.list();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(options) {
|
|
24
|
+
return this._client.get('/v1/operations/production-schedule-settings/items', options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the planning overrides for one item.
|
|
28
|
+
*
|
|
29
|
+
* Fails with a not-found error when the item has none, rather than returning an
|
|
30
|
+
* empty set of overrides: an item with no overrides is planned on the account
|
|
31
|
+
* defaults and its product line's conventions, and reporting that as a resource
|
|
32
|
+
* would suggest there is something here to edit.
|
|
33
|
+
*
|
|
34
|
+
* This endpoint requires the permission: `production_schedules:read`.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const productionScheduleItemSetting =
|
|
39
|
+
* await client.operations.productionScheduleSettings.items.retrieve(
|
|
40
|
+
* 'example',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(itemID, options) {
|
|
45
|
+
return this._client.get(path `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Writes the planning overrides for one item.
|
|
49
|
+
*
|
|
50
|
+
* An item has at most one set of overrides, so this replaces the existing entry
|
|
51
|
+
* rather than adding a second, and the entry keeps the ID it already had.
|
|
52
|
+
*
|
|
53
|
+
* The fulfillment policy is the most consequential of these. A `make_to_order`
|
|
54
|
+
* item contributes no forecast demand and holds no safety stock, so it is built
|
|
55
|
+
* only against orders already on the book — which is what stops a slow mover
|
|
56
|
+
* accumulating inventory nobody asked for. It also propagates: an intermediate
|
|
57
|
+
* item is planned to order only when every finished good it becomes is, so one
|
|
58
|
+
* stocked sibling keeps the whole family buffered.
|
|
59
|
+
*
|
|
60
|
+
* Overrides are read when a plan is generated, so a change takes effect on the
|
|
61
|
+
* next generated version and leaves existing ones untouched.
|
|
62
|
+
*
|
|
63
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const productionScheduleItemSetting =
|
|
68
|
+
* await client.operations.productionScheduleSettings.items.update(
|
|
69
|
+
* 'example',
|
|
70
|
+
* {
|
|
71
|
+
* participation_status: 'included',
|
|
72
|
+
* fulfillment_policy: 'make_to_order',
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(itemID, body, options) {
|
|
78
|
+
return this._client.put(path `/v1/operations/production-schedule-settings/items/${itemID}`, {
|
|
79
|
+
body,
|
|
80
|
+
...options,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Removes one item's planning overrides, returning it to the account defaults and
|
|
85
|
+
* its product line's conventions.
|
|
86
|
+
*
|
|
87
|
+
* Fails with a not-found error when the item has no overrides, rather than
|
|
88
|
+
* reporting success: a mistyped item ID would otherwise read as a change that
|
|
89
|
+
* never happened.
|
|
90
|
+
*
|
|
91
|
+
* This endpoint requires the permission: `production_schedules:update`.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const item =
|
|
96
|
+
* await client.operations.productionScheduleSettings.items.delete(
|
|
97
|
+
* 'example',
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
delete(itemID, options) {
|
|
102
|
+
return this._client.delete(path `/v1/operations/production-schedule-settings/items/${itemID}`, options);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=items.mjs.map
|