@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,102 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as JobsAPI from '../../core/jobs';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* List and manage properties and their attributes.
|
|
10
|
+
*/
|
|
11
|
+
export class Actions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates or updates multiple properties and their attributes for the account,
|
|
14
|
+
* matched by name (case-insensitive), then writes asynchronously — 202 with a job
|
|
15
|
+
* to poll.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const job =
|
|
20
|
+
* await client.catalog.properties.actions.bulkUpsert({
|
|
21
|
+
* properties: [
|
|
22
|
+
* {
|
|
23
|
+
* name: 'Color',
|
|
24
|
+
* attributes: [{ value: 'Premium', color: 'red' }],
|
|
25
|
+
* },
|
|
26
|
+
* ],
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
|
|
31
|
+
return this._client.post('/v1/catalog/properties/actions/bulk-upsert', { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* carries the properties to bulk upsert
|
|
37
|
+
*/
|
|
38
|
+
export interface BulkUpsertPropertiesRequest {
|
|
39
|
+
/**
|
|
40
|
+
* Properties to create or update, matched by name (case-insensitive) within the
|
|
41
|
+
* account.
|
|
42
|
+
*/
|
|
43
|
+
properties: Array<UpsertPropertyInput>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* carries one attribute under a bulk-upserted property
|
|
48
|
+
*/
|
|
49
|
+
export interface UpsertPropertyAttributeInput {
|
|
50
|
+
/**
|
|
51
|
+
* The selectable value this attribute represents, such as `Red`.
|
|
52
|
+
*
|
|
53
|
+
* Must be unique across all attributes in the account, not just within the
|
|
54
|
+
* property. Leading and trailing whitespace is trimmed.
|
|
55
|
+
*/
|
|
56
|
+
value: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Swatch color used to display this attribute in the UI.
|
|
60
|
+
*
|
|
61
|
+
* When omitted, one of the nine named colors is assigned. Ignored for a value the
|
|
62
|
+
* property already defines.
|
|
63
|
+
*/
|
|
64
|
+
color?: 'blue' | 'brown' | 'default' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'yellow';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* carries one property in a bulk upsert
|
|
69
|
+
*/
|
|
70
|
+
export interface UpsertPropertyInput {
|
|
71
|
+
/**
|
|
72
|
+
* The selectable values to define under this property, in the order they should be
|
|
73
|
+
* arranged.
|
|
74
|
+
*
|
|
75
|
+
* Additive — values the property already defines are left as they stand, and none
|
|
76
|
+
* are removed. New values are appended after the existing ones.
|
|
77
|
+
*/
|
|
78
|
+
attributes: Array<UpsertPropertyAttributeInput>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Display name of the property, used to match existing properties within the
|
|
82
|
+
* account.
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface ActionBulkUpsertParams {
|
|
88
|
+
/**
|
|
89
|
+
* Properties to create or update, matched by name (case-insensitive) within the
|
|
90
|
+
* account.
|
|
91
|
+
*/
|
|
92
|
+
properties: Array<UpsertPropertyInput>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export declare namespace Actions {
|
|
96
|
+
export {
|
|
97
|
+
type BulkUpsertPropertiesRequest as BulkUpsertPropertiesRequest,
|
|
98
|
+
type UpsertPropertyAttributeInput as UpsertPropertyAttributeInput,
|
|
99
|
+
type UpsertPropertyInput as UpsertPropertyInput,
|
|
100
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Actions,
|
|
5
|
+
type BulkUpsertPropertiesRequest,
|
|
6
|
+
type UpsertPropertyAttributeInput,
|
|
7
|
+
type UpsertPropertyInput,
|
|
8
|
+
type ActionBulkUpsertParams,
|
|
9
|
+
} from './actions';
|
|
3
10
|
export {
|
|
4
11
|
Attributes,
|
|
5
12
|
type CreateAttributeRequest,
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
5
|
+
import * as ActionsAPI from './actions';
|
|
6
|
+
import {
|
|
7
|
+
ActionBulkUpsertParams,
|
|
8
|
+
Actions,
|
|
9
|
+
BulkUpsertPropertiesRequest,
|
|
10
|
+
UpsertPropertyAttributeInput,
|
|
11
|
+
UpsertPropertyInput,
|
|
12
|
+
} from './actions';
|
|
5
13
|
import * as AttributesAPI from './attributes';
|
|
6
14
|
import {
|
|
7
15
|
AttributeCreateParams,
|
|
@@ -23,6 +31,7 @@ import { path } from '../../../internal/utils/path';
|
|
|
23
31
|
*/
|
|
24
32
|
export class Properties extends APIResource {
|
|
25
33
|
attributes: AttributesAPI.Attributes = new AttributesAPI.Attributes(this._client);
|
|
34
|
+
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
26
35
|
|
|
27
36
|
/**
|
|
28
37
|
* Returns a paginated list of properties for the target account.
|
|
@@ -373,6 +382,7 @@ export interface PropertyUpdateParams {
|
|
|
373
382
|
}
|
|
374
383
|
|
|
375
384
|
Properties.Attributes = Attributes;
|
|
385
|
+
Properties.Actions = Actions;
|
|
376
386
|
|
|
377
387
|
export declare namespace Properties {
|
|
378
388
|
export {
|
|
@@ -400,4 +410,12 @@ export declare namespace Properties {
|
|
|
400
410
|
type AttributeUpdateParams as AttributeUpdateParams,
|
|
401
411
|
type AttributeDeleteParams as AttributeDeleteParams,
|
|
402
412
|
};
|
|
413
|
+
|
|
414
|
+
export {
|
|
415
|
+
Actions as Actions,
|
|
416
|
+
type BulkUpsertPropertiesRequest as BulkUpsertPropertiesRequest,
|
|
417
|
+
type UpsertPropertyAttributeInput as UpsertPropertyAttributeInput,
|
|
418
|
+
type UpsertPropertyInput as UpsertPropertyInput,
|
|
419
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
420
|
+
};
|
|
403
421
|
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as JobsAPI from '../../core/jobs';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* List and manage unit groups and their associated units.
|
|
10
|
+
*/
|
|
11
|
+
export class Actions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates or updates multiple unit groups for the account, matched by name
|
|
14
|
+
* (case-insensitive), then writes asynchronously — 202 with a job to poll.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const job =
|
|
19
|
+
* await client.catalog.unitGroups.actions.bulkUpsert({
|
|
20
|
+
* unit_groups: [
|
|
21
|
+
* {
|
|
22
|
+
* name: 'Weight',
|
|
23
|
+
* type: 'mass',
|
|
24
|
+
* base_unit: { id: 'un_82bd37dae5po' },
|
|
25
|
+
* unit_conversions: [
|
|
26
|
+
* {
|
|
27
|
+
* unit: { id: 'un_82bd37dae5po' },
|
|
28
|
+
* discount_percentage: 1,
|
|
29
|
+
* },
|
|
30
|
+
* ],
|
|
31
|
+
* },
|
|
32
|
+
* ],
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
|
|
37
|
+
return this._client.post('/v1/catalog/unit-groups/actions/bulk-upsert', { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* BulkUpsertUnitGroupsRequest is the request to bulk upsert unit groups.
|
|
43
|
+
*/
|
|
44
|
+
export interface BulkUpsertUnitGroupsRequest {
|
|
45
|
+
/**
|
|
46
|
+
* Unit groups to create or update, matched by name within the account.
|
|
47
|
+
*/
|
|
48
|
+
unit_groups: Array<UpsertUnitGroupInput>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* -------------------------- UNIT -------------------------- Identifies a unit by
|
|
53
|
+
* its id, its name, or its abbreviation, in that order of precedence.
|
|
54
|
+
*/
|
|
55
|
+
export interface UnitIdentifier {
|
|
56
|
+
/**
|
|
57
|
+
* Unit ID.
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Unit abbreviation, matched case-insensitively against the account's units.
|
|
63
|
+
*/
|
|
64
|
+
abbreviation: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Unit name, matched case-insensitively against the account's units.
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* UpsertUnitGroupConversionInput is the input for a single unit conversion within
|
|
74
|
+
* a bulk upsert unit group.
|
|
75
|
+
*/
|
|
76
|
+
export interface UpsertUnitGroupConversionInput {
|
|
77
|
+
/**
|
|
78
|
+
* -------------------------- UNIT -------------------------- Identifies a unit by
|
|
79
|
+
* its id, its name, or its abbreviation, in that order of precedence.
|
|
80
|
+
*/
|
|
81
|
+
unit: UnitIdentifier;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Discount percentage to apply for this unit conversion.
|
|
85
|
+
*/
|
|
86
|
+
discount_percentage?: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* UpsertUnitGroupInput is the input for a single unit group in a bulk upsert
|
|
91
|
+
* operation.
|
|
92
|
+
*/
|
|
93
|
+
export interface UpsertUnitGroupInput {
|
|
94
|
+
/**
|
|
95
|
+
* -------------------------- UNIT -------------------------- Identifies a unit by
|
|
96
|
+
* its id, its name, or its abbreviation, in that order of precedence.
|
|
97
|
+
*/
|
|
98
|
+
base_unit: UnitIdentifier;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Display name of the unit group, matched case-insensitively against existing
|
|
102
|
+
* groups. A row matching a system unit group fails — system groups cannot be
|
|
103
|
+
* modified.
|
|
104
|
+
*/
|
|
105
|
+
name: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Unit dimension type. Create-only — an existing group keeps its stored type.
|
|
109
|
+
*/
|
|
110
|
+
type: 'currency' | 'quantity' | 'time' | 'mass' | 'volume' | 'length' | 'temperature' | 'area';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Free-form notes about the unit group. Preserved when omitted on update.
|
|
114
|
+
*/
|
|
115
|
+
notes?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Units to associate with the group. Replaces the existing set on update; the base
|
|
119
|
+
* unit is always kept.
|
|
120
|
+
*/
|
|
121
|
+
unit_conversions?: Array<UpsertUnitGroupConversionInput>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface ActionBulkUpsertParams {
|
|
125
|
+
/**
|
|
126
|
+
* Unit groups to create or update, matched by name within the account.
|
|
127
|
+
*/
|
|
128
|
+
unit_groups: Array<UpsertUnitGroupInput>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export declare namespace Actions {
|
|
132
|
+
export {
|
|
133
|
+
type BulkUpsertUnitGroupsRequest as BulkUpsertUnitGroupsRequest,
|
|
134
|
+
type UnitIdentifier as UnitIdentifier,
|
|
135
|
+
type UpsertUnitGroupConversionInput as UpsertUnitGroupConversionInput,
|
|
136
|
+
type UpsertUnitGroupInput as UpsertUnitGroupInput,
|
|
137
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Actions,
|
|
5
|
+
type BulkUpsertUnitGroupsRequest,
|
|
6
|
+
type UnitIdentifier,
|
|
7
|
+
type UpsertUnitGroupConversionInput,
|
|
8
|
+
type UpsertUnitGroupInput,
|
|
9
|
+
type ActionBulkUpsertParams,
|
|
10
|
+
} from './actions';
|
|
3
11
|
export {
|
|
4
12
|
UnitGroups,
|
|
5
13
|
type CreateUnitGroupRequest,
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as UnitsAPI from '../units';
|
|
5
4
|
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
6
|
-
import * as
|
|
5
|
+
import * as ActionsAPI from './actions';
|
|
6
|
+
import {
|
|
7
|
+
ActionBulkUpsertParams,
|
|
8
|
+
Actions,
|
|
9
|
+
BulkUpsertUnitGroupsRequest,
|
|
10
|
+
UnitIdentifier,
|
|
11
|
+
UpsertUnitGroupConversionInput,
|
|
12
|
+
UpsertUnitGroupInput,
|
|
13
|
+
} from './actions';
|
|
14
|
+
import * as UnitsAPI from './units';
|
|
7
15
|
import {
|
|
8
16
|
CreateUnitGroupUnitRequest,
|
|
9
17
|
UnitCreateParams,
|
|
@@ -15,6 +23,7 @@ import {
|
|
|
15
23
|
Units,
|
|
16
24
|
UpdateUnitGroupUnitRequest,
|
|
17
25
|
} from './units';
|
|
26
|
+
import * as CatalogUnitsAPI from '../units/units';
|
|
18
27
|
import { APIPromise } from '../../../core/api-promise';
|
|
19
28
|
import { RequestOptions } from '../../../internal/request-options';
|
|
20
29
|
import { path } from '../../../internal/utils/path';
|
|
@@ -23,7 +32,8 @@ import { path } from '../../../internal/utils/path';
|
|
|
23
32
|
* List and manage unit groups and their associated units.
|
|
24
33
|
*/
|
|
25
34
|
export class UnitGroups extends APIResource {
|
|
26
|
-
units:
|
|
35
|
+
units: UnitsAPI.Units = new UnitsAPI.Units(this._client);
|
|
36
|
+
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
27
37
|
|
|
28
38
|
/**
|
|
29
39
|
* Returns a paginated list of unit groups, including system unit groups.
|
|
@@ -303,7 +313,7 @@ export interface UnitGroup {
|
|
|
303
313
|
/**
|
|
304
314
|
* Unit of measurement used for conversions and product quantities.
|
|
305
315
|
*/
|
|
306
|
-
base_unit:
|
|
316
|
+
base_unit: CatalogUnitsAPI.Unit | null;
|
|
307
317
|
|
|
308
318
|
/**
|
|
309
319
|
* Creation timestamp.
|
|
@@ -391,7 +401,7 @@ export interface UnitGroupUnit {
|
|
|
391
401
|
/**
|
|
392
402
|
* Unit of measurement used for conversions and product quantities.
|
|
393
403
|
*/
|
|
394
|
-
unit:
|
|
404
|
+
unit: CatalogUnitsAPI.Unit | null;
|
|
395
405
|
|
|
396
406
|
/**
|
|
397
407
|
* Last updated timestamp.
|
|
@@ -559,6 +569,7 @@ export interface UnitGroupUpdateParams {
|
|
|
559
569
|
}
|
|
560
570
|
|
|
561
571
|
UnitGroups.Units = Units;
|
|
572
|
+
UnitGroups.Actions = Actions;
|
|
562
573
|
|
|
563
574
|
export declare namespace UnitGroups {
|
|
564
575
|
export {
|
|
@@ -587,4 +598,13 @@ export declare namespace UnitGroups {
|
|
|
587
598
|
type UnitUpdateParams as UnitUpdateParams,
|
|
588
599
|
type UnitDeleteParams as UnitDeleteParams,
|
|
589
600
|
};
|
|
601
|
+
|
|
602
|
+
export {
|
|
603
|
+
Actions as Actions,
|
|
604
|
+
type BulkUpsertUnitGroupsRequest as BulkUpsertUnitGroupsRequest,
|
|
605
|
+
type UnitIdentifier as UnitIdentifier,
|
|
606
|
+
type UpsertUnitGroupConversionInput as UpsertUnitGroupConversionInput,
|
|
607
|
+
type UpsertUnitGroupInput as UpsertUnitGroupInput,
|
|
608
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
609
|
+
};
|
|
590
610
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as JobsAPI from '../../core/jobs';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* List and manage units.
|
|
10
|
+
*/
|
|
11
|
+
export class Actions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates or updates multiple units of measure for the account, matched by name or
|
|
14
|
+
* abbreviation, then writes asynchronously — 202 with a job to poll.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const job = await client.catalog.units.actions.bulkUpsert({
|
|
19
|
+
* units: [
|
|
20
|
+
* {
|
|
21
|
+
* name: 'Kilogram',
|
|
22
|
+
* abbreviation: 'kg',
|
|
23
|
+
* type: 'mass',
|
|
24
|
+
* ratio_numerator: '1000',
|
|
25
|
+
* ratio_denominator: '1',
|
|
26
|
+
* offset_numerator: '0',
|
|
27
|
+
* offset_denominator: '1',
|
|
28
|
+
* is_base_unit: false,
|
|
29
|
+
* },
|
|
30
|
+
* ],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
|
|
35
|
+
return this._client.post('/v1/catalog/units/actions/bulk-upsert', { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* BulkUpsertUnitsRequest is the request to bulk upsert units.
|
|
41
|
+
*/
|
|
42
|
+
export interface BulkUpsertUnitsRequest {
|
|
43
|
+
/**
|
|
44
|
+
* Units to create or update, matched by name or abbreviation within the account.
|
|
45
|
+
*/
|
|
46
|
+
units: Array<UpsertUnitInput>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* UpsertUnitInput is the input for a single unit in a bulk upsert operation.
|
|
51
|
+
*/
|
|
52
|
+
export interface UpsertUnitInput {
|
|
53
|
+
/**
|
|
54
|
+
* Short abbreviation for the unit (e.g. "g"). Also used for matching — see `name`.
|
|
55
|
+
*/
|
|
56
|
+
abbreviation: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Whether the unit is its dimension's base unit. Bulk upsert never creates a base
|
|
60
|
+
* unit and rejects a change to an existing one.
|
|
61
|
+
*/
|
|
62
|
+
is_base_unit: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Display name of the unit (e.g. "Gram"). A row matching a system unit fails —
|
|
66
|
+
* system units cannot be modified.
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Conversion offset denominator, as a decimal string.
|
|
72
|
+
*/
|
|
73
|
+
offset_denominator: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Conversion offset numerator, as a decimal string.
|
|
77
|
+
*/
|
|
78
|
+
offset_numerator: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Conversion ratio denominator relative to the base unit, as a decimal string.
|
|
82
|
+
*/
|
|
83
|
+
ratio_denominator: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Conversion ratio numerator relative to the base unit, as a decimal string.
|
|
87
|
+
*/
|
|
88
|
+
ratio_numerator: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Unit dimension code. Create-only — a row that changes an existing unit's
|
|
92
|
+
* dimension fails.
|
|
93
|
+
*/
|
|
94
|
+
type: 'currency' | 'quantity' | 'time' | 'mass' | 'volume' | 'length' | 'temperature' | 'area';
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface ActionBulkUpsertParams {
|
|
98
|
+
/**
|
|
99
|
+
* Units to create or update, matched by name or abbreviation within the account.
|
|
100
|
+
*/
|
|
101
|
+
units: Array<UpsertUnitInput>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare namespace Actions {
|
|
105
|
+
export {
|
|
106
|
+
type BulkUpsertUnitsRequest as BulkUpsertUnitsRequest,
|
|
107
|
+
type UpsertUnitInput as UpsertUnitInput,
|
|
108
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Actions,
|
|
5
|
+
type BulkUpsertUnitsRequest,
|
|
6
|
+
type UpsertUnitInput,
|
|
7
|
+
type ActionBulkUpsertParams,
|
|
8
|
+
} from './actions';
|
|
9
|
+
export {
|
|
10
|
+
Units,
|
|
11
|
+
type CreateUnitRequest,
|
|
12
|
+
type ListUnit,
|
|
13
|
+
type Unit,
|
|
14
|
+
type UpdateUnitRequest,
|
|
15
|
+
type UnitDeleteResponse,
|
|
16
|
+
type UnitListParams,
|
|
17
|
+
type UnitRetrieveParams,
|
|
18
|
+
type UnitCreateParams,
|
|
19
|
+
type UnitUpdateParams,
|
|
20
|
+
} from './units';
|