@augno/sdk 0.13.4 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/package.json +1 -1
- package/resources/catalog/catalog.d.mts +10 -10
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +10 -10
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.js +10 -10
- package/resources/catalog/catalog.js.map +1 -1
- package/resources/catalog/catalog.mjs +10 -10
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +5 -5
- package/resources/catalog/index.d.ts +5 -5
- package/resources/catalog/index.js +14 -14
- package/resources/catalog/index.js.map +1 -1
- package/resources/catalog/index.mjs +5 -5
- package/resources/catalog/item-categories/actions.d.mts +93 -0
- package/resources/catalog/item-categories/actions.d.mts.map +1 -0
- package/resources/catalog/item-categories/actions.d.ts +93 -0
- package/resources/catalog/item-categories/actions.d.ts.map +1 -0
- package/resources/catalog/item-categories/actions.js +35 -0
- package/resources/catalog/item-categories/actions.js.map +1 -0
- package/resources/catalog/item-categories/actions.mjs +31 -0
- package/resources/catalog/item-categories/actions.mjs.map +1 -0
- package/resources/catalog/item-categories/index.d.mts +1 -0
- package/resources/catalog/item-categories/index.d.mts.map +1 -1
- package/resources/catalog/item-categories/index.d.ts +1 -0
- package/resources/catalog/item-categories/index.d.ts.map +1 -1
- package/resources/catalog/item-categories/index.js +3 -1
- package/resources/catalog/item-categories/index.js.map +1 -1
- package/resources/catalog/item-categories/index.mjs +1 -0
- package/resources/catalog/item-categories/index.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +4 -0
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +4 -0
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +4 -0
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +4 -0
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +1 -1
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +1 -1
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/materials/actions.d.mts +118 -0
- package/resources/catalog/materials/actions.d.mts.map +1 -0
- package/resources/catalog/materials/actions.d.ts +118 -0
- package/resources/catalog/materials/actions.d.ts.map +1 -0
- package/resources/catalog/materials/actions.js +33 -0
- package/resources/catalog/materials/actions.js.map +1 -0
- package/resources/catalog/materials/actions.mjs +29 -0
- package/resources/catalog/materials/actions.mjs.map +1 -0
- package/resources/catalog/materials/index.d.mts +3 -0
- package/resources/catalog/materials/index.d.mts.map +1 -0
- package/resources/catalog/materials/index.d.ts +3 -0
- package/resources/catalog/materials/index.d.ts.map +1 -0
- package/resources/catalog/materials/index.js +9 -0
- package/resources/catalog/materials/index.js.map +1 -0
- package/resources/catalog/materials/index.mjs +4 -0
- package/resources/catalog/materials/index.mjs.map +1 -0
- package/resources/catalog/materials/materials.d.mts +483 -0
- package/resources/catalog/materials/materials.d.mts.map +1 -0
- package/resources/catalog/materials/materials.d.ts +483 -0
- package/resources/catalog/materials/materials.d.ts.map +1 -0
- package/resources/catalog/materials/materials.js +159 -0
- package/resources/catalog/materials/materials.js.map +1 -0
- package/resources/catalog/materials/materials.mjs +154 -0
- package/resources/catalog/materials/materials.mjs.map +1 -0
- package/resources/catalog/materials.d.mts +1 -478
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +1 -478
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +2 -147
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +1 -145
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts/actions.d.mts +108 -0
- package/resources/catalog/parts/actions.d.mts.map +1 -0
- package/resources/catalog/parts/actions.d.ts +108 -0
- package/resources/catalog/parts/actions.d.ts.map +1 -0
- package/resources/catalog/parts/actions.js +32 -0
- package/resources/catalog/parts/actions.js.map +1 -0
- package/resources/catalog/parts/actions.mjs +28 -0
- package/resources/catalog/parts/actions.mjs.map +1 -0
- package/resources/catalog/parts/index.d.mts +3 -0
- package/resources/catalog/parts/index.d.mts.map +1 -0
- package/resources/catalog/parts/index.d.ts +3 -0
- package/resources/catalog/parts/index.d.ts.map +1 -0
- package/resources/catalog/parts/index.js +9 -0
- package/resources/catalog/parts/index.js.map +1 -0
- package/resources/catalog/parts/index.mjs +4 -0
- package/resources/catalog/parts/index.mjs.map +1 -0
- package/resources/catalog/parts/parts.d.mts +362 -0
- package/resources/catalog/parts/parts.d.mts.map +1 -0
- package/resources/catalog/parts/parts.d.ts +362 -0
- package/resources/catalog/parts/parts.d.ts.map +1 -0
- package/resources/catalog/parts/parts.js +138 -0
- package/resources/catalog/parts/parts.js.map +1 -0
- package/resources/catalog/parts/parts.mjs +133 -0
- package/resources/catalog/parts/parts.mjs.map +1 -0
- package/resources/catalog/parts.d.mts +1 -357
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +1 -357
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +2 -126
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +1 -124
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines/actions.d.mts +82 -0
- package/resources/catalog/product-lines/actions.d.mts.map +1 -0
- package/resources/catalog/product-lines/actions.d.ts +82 -0
- package/resources/catalog/product-lines/actions.d.ts.map +1 -0
- package/resources/catalog/product-lines/actions.js +34 -0
- package/resources/catalog/product-lines/actions.js.map +1 -0
- package/resources/catalog/product-lines/actions.mjs +30 -0
- package/resources/catalog/product-lines/actions.mjs.map +1 -0
- package/resources/catalog/product-lines/index.d.mts +3 -0
- package/resources/catalog/product-lines/index.d.mts.map +1 -0
- package/resources/catalog/product-lines/index.d.ts +3 -0
- package/resources/catalog/product-lines/index.d.ts.map +1 -0
- package/resources/catalog/product-lines/index.js +9 -0
- package/resources/catalog/product-lines/index.js.map +1 -0
- package/resources/catalog/product-lines/index.mjs +4 -0
- package/resources/catalog/product-lines/index.mjs.map +1 -0
- package/resources/catalog/product-lines/product-lines.d.mts +448 -0
- package/resources/catalog/product-lines/product-lines.d.mts.map +1 -0
- package/resources/catalog/product-lines/product-lines.d.ts +448 -0
- package/resources/catalog/product-lines/product-lines.d.ts.map +1 -0
- package/resources/catalog/product-lines/product-lines.js +136 -0
- package/resources/catalog/product-lines/product-lines.js.map +1 -0
- package/resources/catalog/product-lines/product-lines.mjs +131 -0
- package/resources/catalog/product-lines/product-lines.mjs.map +1 -0
- package/resources/catalog/product-lines.d.mts +1 -443
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +1 -443
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +2 -124
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +1 -122
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products/actions.d.mts +124 -0
- package/resources/catalog/products/actions.d.mts.map +1 -0
- package/resources/catalog/products/actions.d.ts +124 -0
- package/resources/catalog/products/actions.d.ts.map +1 -0
- package/resources/catalog/products/actions.js +33 -0
- package/resources/catalog/products/actions.js.map +1 -0
- package/resources/catalog/products/actions.mjs +29 -0
- package/resources/catalog/products/actions.mjs.map +1 -0
- package/resources/catalog/products/index.d.mts +3 -0
- package/resources/catalog/products/index.d.mts.map +1 -0
- package/resources/catalog/products/index.d.ts +3 -0
- package/resources/catalog/products/index.d.ts.map +1 -0
- package/resources/catalog/products/index.js +9 -0
- package/resources/catalog/products/index.js.map +1 -0
- package/resources/catalog/products/index.mjs +4 -0
- package/resources/catalog/products/index.mjs.map +1 -0
- package/resources/catalog/products/products.d.mts +585 -0
- package/resources/catalog/products/products.d.mts.map +1 -0
- package/resources/catalog/products/products.d.ts +585 -0
- package/resources/catalog/products/products.d.ts.map +1 -0
- package/resources/catalog/products/products.js +185 -0
- package/resources/catalog/products/products.js.map +1 -0
- package/resources/catalog/products/products.mjs +180 -0
- package/resources/catalog/products/products.mjs.map +1 -0
- package/resources/catalog/products.d.mts +1 -580
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +1 -580
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +2 -173
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +1 -171
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/actions.d.mts +86 -0
- package/resources/catalog/properties/actions.d.mts.map +1 -0
- package/resources/catalog/properties/actions.d.ts +86 -0
- package/resources/catalog/properties/actions.d.ts.map +1 -0
- package/resources/catalog/properties/actions.js +33 -0
- package/resources/catalog/properties/actions.js.map +1 -0
- package/resources/catalog/properties/actions.mjs +29 -0
- package/resources/catalog/properties/actions.mjs.map +1 -0
- package/resources/catalog/properties/index.d.mts +1 -0
- package/resources/catalog/properties/index.d.mts.map +1 -1
- package/resources/catalog/properties/index.d.ts +1 -0
- package/resources/catalog/properties/index.d.ts.map +1 -1
- package/resources/catalog/properties/index.js +3 -1
- package/resources/catalog/properties/index.js.map +1 -1
- package/resources/catalog/properties/index.mjs +1 -0
- package/resources/catalog/properties/index.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +4 -0
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +4 -0
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +4 -0
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +4 -0
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/actions.d.mts +116 -0
- package/resources/catalog/unit-groups/actions.d.mts.map +1 -0
- package/resources/catalog/unit-groups/actions.d.ts +116 -0
- package/resources/catalog/unit-groups/actions.d.ts.map +1 -0
- package/resources/catalog/unit-groups/actions.js +39 -0
- package/resources/catalog/unit-groups/actions.js.map +1 -0
- package/resources/catalog/unit-groups/actions.mjs +35 -0
- package/resources/catalog/unit-groups/actions.mjs.map +1 -0
- package/resources/catalog/unit-groups/index.d.mts +1 -0
- package/resources/catalog/unit-groups/index.d.mts.map +1 -1
- package/resources/catalog/unit-groups/index.d.ts +1 -0
- package/resources/catalog/unit-groups/index.d.ts.map +1 -1
- package/resources/catalog/unit-groups/index.js +3 -1
- package/resources/catalog/unit-groups/index.js.map +1 -1
- package/resources/catalog/unit-groups/index.mjs +1 -0
- package/resources/catalog/unit-groups/index.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +9 -5
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +9 -5
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +6 -2
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +6 -2
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/units/actions.d.mts +91 -0
- package/resources/catalog/units/actions.d.mts.map +1 -0
- package/resources/catalog/units/actions.d.ts +91 -0
- package/resources/catalog/units/actions.d.ts.map +1 -0
- package/resources/catalog/units/actions.js +37 -0
- package/resources/catalog/units/actions.js.map +1 -0
- package/resources/catalog/units/actions.mjs +33 -0
- package/resources/catalog/units/actions.mjs.map +1 -0
- package/resources/catalog/units/index.d.mts +3 -0
- package/resources/catalog/units/index.d.mts.map +1 -0
- package/resources/catalog/units/index.d.ts +3 -0
- package/resources/catalog/units/index.d.ts.map +1 -0
- package/resources/catalog/units/index.js +9 -0
- package/resources/catalog/units/index.js.map +1 -0
- package/resources/catalog/units/index.mjs +4 -0
- package/resources/catalog/units/index.mjs.map +1 -0
- package/resources/catalog/units/units.d.mts +449 -0
- package/resources/catalog/units/units.d.mts.map +1 -0
- package/resources/catalog/units/units.d.ts +449 -0
- package/resources/catalog/units/units.d.ts.map +1 -0
- package/resources/catalog/units/units.js +122 -0
- package/resources/catalog/units/units.js.map +1 -0
- package/resources/catalog/units/units.mjs +117 -0
- package/resources/catalog/units/units.mjs.map +1 -0
- package/resources/catalog/units.d.mts +1 -444
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +1 -444
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +2 -110
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +1 -108
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +6 -6
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +6 -6
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +6 -2
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +6 -2
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +4 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +4 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -0
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -0
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js +3 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs +1 -0
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/jobs.d.mts +236 -0
- package/resources/core/jobs.d.mts.map +1 -0
- package/resources/core/jobs.d.ts +236 -0
- package/resources/core/jobs.d.ts.map +1 -0
- package/resources/core/jobs.js +43 -0
- package/resources/core/jobs.js.map +1 -0
- package/resources/core/jobs.mjs +39 -0
- package/resources/core/jobs.mjs.map +1 -0
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/operations/demand-overrides.d.mts +1 -1
- package/resources/operations/demand-overrides.d.mts.map +1 -1
- package/resources/operations/demand-overrides.d.ts +1 -1
- package/resources/operations/demand-overrides.d.ts.map +1 -1
- package/resources/operations/index.d.mts +1 -1
- package/resources/operations/index.d.ts +1 -1
- package/resources/operations/index.js +8 -8
- package/resources/operations/index.js.map +1 -1
- package/resources/operations/index.mjs +1 -1
- package/resources/operations/locations/actions.d.mts +67 -0
- package/resources/operations/locations/actions.d.mts.map +1 -0
- package/resources/operations/locations/actions.d.ts +67 -0
- package/resources/operations/locations/actions.d.ts.map +1 -0
- package/resources/operations/locations/actions.js +27 -0
- package/resources/operations/locations/actions.js.map +1 -0
- package/resources/operations/locations/actions.mjs +23 -0
- package/resources/operations/locations/actions.mjs.map +1 -0
- package/resources/operations/locations/index.d.mts +3 -0
- package/resources/operations/locations/index.d.mts.map +1 -0
- package/resources/operations/locations/index.d.ts +3 -0
- package/resources/operations/locations/index.d.ts.map +1 -0
- package/resources/operations/locations/index.js +9 -0
- package/resources/operations/locations/index.js.map +1 -0
- package/resources/operations/locations/index.mjs +4 -0
- package/resources/operations/locations/index.mjs.map +1 -0
- package/resources/operations/locations/locations.d.mts +273 -0
- package/resources/operations/locations/locations.d.mts.map +1 -0
- package/resources/operations/locations/locations.d.ts +273 -0
- package/resources/operations/locations/locations.d.ts.map +1 -0
- package/resources/operations/locations/locations.js +113 -0
- package/resources/operations/locations/locations.js.map +1 -0
- package/resources/operations/locations/locations.mjs +108 -0
- package/resources/operations/locations/locations.mjs.map +1 -0
- package/resources/operations/locations.d.mts +1 -268
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +1 -268
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +2 -101
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +1 -99
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/operations.d.mts +2 -2
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +2 -2
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +2 -2
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +2 -2
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +12 -4
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +12 -4
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/shipping-terms.d.mts +1 -1
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +1 -1
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/sales/customers/customers.d.mts +1 -1
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +1 -1
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
- package/resources/sales/sales-orders/sales-orders.d.mts +4 -4
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +4 -4
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/src/resources/catalog/catalog.ts +51 -51
- package/src/resources/catalog/index.ts +5 -5
- package/src/resources/catalog/item-categories/actions.ts +112 -0
- package/src/resources/catalog/item-categories/index.ts +7 -0
- package/src/resources/catalog/item-categories/item-categories.ts +18 -0
- package/src/resources/catalog/items/items.ts +1 -1
- package/src/resources/catalog/materials/actions.ts +141 -0
- package/src/resources/catalog/materials/index.ts +22 -0
- package/src/resources/catalog/materials/materials.ts +633 -0
- package/src/resources/catalog/materials.ts +1 -611
- package/src/resources/catalog/parts/actions.ts +129 -0
- package/src/resources/catalog/parts/index.ts +20 -0
- package/src/resources/catalog/parts/parts.ts +476 -0
- package/src/resources/catalog/parts.ts +1 -454
- package/src/resources/catalog/product-lines/actions.ts +97 -0
- package/src/resources/catalog/product-lines/index.ts +21 -0
- package/src/resources/catalog/product-lines/product-lines.ts +552 -0
- package/src/resources/catalog/product-lines.ts +1 -532
- package/src/resources/catalog/products/actions.ts +148 -0
- package/src/resources/catalog/products/index.ts +22 -0
- package/src/resources/catalog/products/products.ts +816 -0
- package/src/resources/catalog/products.ts +1 -794
- package/src/resources/catalog/properties/actions.ts +102 -0
- package/src/resources/catalog/properties/index.ts +7 -0
- package/src/resources/catalog/properties/properties.ts +18 -0
- package/src/resources/catalog/unit-groups/actions.ts +139 -0
- package/src/resources/catalog/unit-groups/index.ts +8 -0
- package/src/resources/catalog/unit-groups/unit-groups.ts +25 -5
- package/src/resources/catalog/units/actions.ts +110 -0
- package/src/resources/catalog/units/index.ts +20 -0
- package/src/resources/catalog/units/units.ts +547 -0
- package/src/resources/catalog/units.ts +1 -532
- package/src/resources/core/audit-events.ts +8 -4
- package/src/resources/core/core.ts +17 -1
- package/src/resources/core/index.ts +9 -0
- package/src/resources/core/jobs.ts +321 -0
- package/src/resources/messaging/conversations/conversations.ts +6 -3
- package/src/resources/messaging/conversations/links.ts +4 -2
- package/src/resources/messaging/conversations/messages.ts +4 -2
- package/src/resources/messaging/notifications/notifications.ts +4 -2
- package/src/resources/operations/demand-overrides.ts +1 -1
- package/src/resources/operations/index.ts +1 -1
- package/src/resources/operations/locations/actions.ts +82 -0
- package/src/resources/operations/locations/index.ts +18 -0
- package/src/resources/operations/locations/locations.ts +344 -0
- package/src/resources/operations/locations.ts +1 -329
- package/src/resources/operations/operations.ts +11 -11
- package/src/resources/operations/scanning-stations.ts +12 -4
- package/src/resources/operations/shipping-terms.ts +1 -1
- package/src/resources/sales/customers/customers.ts +1 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,534 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
5
|
-
import * as ItemsAPI from './items/items';
|
|
6
|
-
import * as UnitGroupsAPI from './unit-groups/unit-groups';
|
|
7
|
-
import { APIPromise } from '../../core/api-promise';
|
|
8
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
9
|
-
import { path } from '../../internal/utils/path';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* List and manage product lines.
|
|
13
|
-
*/
|
|
14
|
-
export class ProductLines extends APIResource {
|
|
15
|
-
/**
|
|
16
|
-
* Returns a paginated list of product lines, newest first.
|
|
17
|
-
*
|
|
18
|
-
* Covers both the product lines your account owns and the shared system lines. The
|
|
19
|
-
* `q` search term is matched against the product line name.
|
|
20
|
-
*
|
|
21
|
-
* This endpoint requires the permissions: `product_lines:read`, `customers:read`,
|
|
22
|
-
* `suppliers:read`.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const listProductLine =
|
|
27
|
-
* await client.catalog.productLines.list();
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
list(
|
|
31
|
-
query: ProductLineListParams | null | undefined = {},
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): APIPromise<ListProductLine> {
|
|
34
|
-
return this._client.get('/v1/catalog/product-lines', { query, ...options });
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Returns a single product line by ID.
|
|
39
|
-
*
|
|
40
|
-
* Both the product lines your account owns and the shared system lines can be
|
|
41
|
-
* retrieved.
|
|
42
|
-
*
|
|
43
|
-
* This endpoint requires the permissions: `product_lines:read`, `customers:read`,
|
|
44
|
-
* `suppliers:read`.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const productLine =
|
|
49
|
-
* await client.catalog.productLines.retrieve(
|
|
50
|
-
* 'pdln_k9bnlgvxhxjh',
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
retrieve(
|
|
55
|
-
id: string,
|
|
56
|
-
query: ProductLineRetrieveParams | null | undefined = {},
|
|
57
|
-
options?: RequestOptions,
|
|
58
|
-
): APIPromise<ProductLine> {
|
|
59
|
-
return this._client.get(path`/v1/catalog/product-lines/${id}`, { query, ...options });
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Creates a product line owned by your account.
|
|
64
|
-
*
|
|
65
|
-
* The new line starts with no products; assign products to it by setting their
|
|
66
|
-
* product line. Customers and account groups can only be granted access to lines
|
|
67
|
-
* your account owns, so this is the starting point for scoping a customer's
|
|
68
|
-
* catalog.
|
|
69
|
-
*
|
|
70
|
-
* This endpoint requires the permission: `product_lines:create`.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* const productLine =
|
|
75
|
-
* await client.catalog.productLines.create({
|
|
76
|
-
* commission_policy: 'commission_exempt',
|
|
77
|
-
* freight_policy: 'billed_freight',
|
|
78
|
-
* name: 'Industrial Fasteners',
|
|
79
|
-
* unit_group_id: 'ug_andst6m79n41',
|
|
80
|
-
* });
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
create(params: ProductLineCreateParams, options?: RequestOptions): APIPromise<ProductLine> {
|
|
84
|
-
const { include, ...body } = params;
|
|
85
|
-
return this._client.post('/v1/catalog/product-lines', { query: { include }, body, ...options });
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Partially updates a product line your account owns.
|
|
90
|
-
*
|
|
91
|
-
* Only the provided fields are changed. The reserved `shipping`, `service`,
|
|
92
|
-
* `credit`, and `tax` lines cannot be updated, and neither can the shared system
|
|
93
|
-
* lines, which belong to no single account.
|
|
94
|
-
*
|
|
95
|
-
* This endpoint requires the permission: `product_lines:update`.
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```ts
|
|
99
|
-
* const productLine =
|
|
100
|
-
* await client.catalog.productLines.update(
|
|
101
|
-
* 'pdln_k9bnlgvxhxjh',
|
|
102
|
-
* {
|
|
103
|
-
* commission_policy: 'commission_applied',
|
|
104
|
-
* freight_policy: 'billed_freight',
|
|
105
|
-
* name: 'Updated Product Line',
|
|
106
|
-
* unit_group_id: 'ug_andst6m79n41',
|
|
107
|
-
* },
|
|
108
|
-
* );
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
update(
|
|
112
|
-
id: string,
|
|
113
|
-
params: ProductLineUpdateParams | null | undefined = {},
|
|
114
|
-
options?: RequestOptions,
|
|
115
|
-
): APIPromise<ProductLine> {
|
|
116
|
-
const { include, ...body } = params ?? {};
|
|
117
|
-
return this._client.patch(path`/v1/catalog/product-lines/${id}`, {
|
|
118
|
-
query: { include },
|
|
119
|
-
body,
|
|
120
|
-
...options,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Permanently deletes a product line your account owns.
|
|
126
|
-
*
|
|
127
|
-
* The reserved `shipping`, `service`, `credit`, and `tax` lines cannot be deleted,
|
|
128
|
-
* and neither can the shared system lines, which belong to no single account.
|
|
129
|
-
* Deleting a line that was already deleted returns an already-deleted error rather
|
|
130
|
-
* than succeeding silently.
|
|
131
|
-
*
|
|
132
|
-
* This endpoint requires the permission: `product_lines:delete`.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```ts
|
|
136
|
-
* const productLine =
|
|
137
|
-
* await client.catalog.productLines.delete(
|
|
138
|
-
* 'pdln_k9bnlgvxhxjh',
|
|
139
|
-
* );
|
|
140
|
-
* ```
|
|
141
|
-
*/
|
|
142
|
-
delete(id: string, options?: RequestOptions): APIPromise<ProductLineDeleteResponse> {
|
|
143
|
-
return this._client.delete(path`/v1/catalog/product-lines/${id}`, options);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Request to create a product line.
|
|
149
|
-
*/
|
|
150
|
-
export interface CreateProductLineRequest {
|
|
151
|
-
/**
|
|
152
|
-
* Default commission policy for products in this product line.
|
|
153
|
-
*
|
|
154
|
-
* - `commission_exempt`: no commission applies to these products.
|
|
155
|
-
* - `commission_applied`: commission applies to these products, unless overridden
|
|
156
|
-
* elsewhere.
|
|
157
|
-
*/
|
|
158
|
-
commission_policy: 'commission_applied' | 'commission_exempt';
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Default freight policy for products in this product line.
|
|
162
|
-
*
|
|
163
|
-
* - `free_freight`: these products do not incur a freight charge.
|
|
164
|
-
* - `billed_freight`: freight is billed for these products, unless overridden
|
|
165
|
-
* elsewhere.
|
|
166
|
-
*/
|
|
167
|
-
freight_policy: 'free_freight' | 'billed_freight';
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Display name of the product line.
|
|
171
|
-
*
|
|
172
|
-
* Must be unique among the product lines visible to your account, including the
|
|
173
|
-
* shared system lines; a duplicate name returns a conflict error.
|
|
174
|
-
*/
|
|
175
|
-
name: string;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* ID of the unit group to associate with this product line.
|
|
179
|
-
*
|
|
180
|
-
* The unit group determines the set of units available to products in this product
|
|
181
|
-
* line. It must be a unit group your account owns or one of the shared system unit
|
|
182
|
-
* groups.
|
|
183
|
-
*/
|
|
184
|
-
unit_group_id: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* An amount together with the unit it is expressed in.
|
|
188
|
-
*
|
|
189
|
-
* The unit may be a currency, so money amounts such as a credit limit are written
|
|
190
|
-
* the same way as physical amounts like weights or counts.
|
|
191
|
-
*/
|
|
192
|
-
default_lot?: QuantityInput;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* A single page of resources, together with the metadata needed to page through
|
|
197
|
-
* the rest of the result set.
|
|
198
|
-
*/
|
|
199
|
-
export interface ListProductLine {
|
|
200
|
-
/**
|
|
201
|
-
* Resources in this page.
|
|
202
|
-
*/
|
|
203
|
-
data: Array<ProductLine>;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Resource type identifier.
|
|
207
|
-
*/
|
|
208
|
-
object: 'list';
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* PageInfo describes where the current page sits within a paginated result set and
|
|
212
|
-
* how to move to the adjacent pages.
|
|
213
|
-
*
|
|
214
|
-
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
215
|
-
* For a top-level list endpoint the URL repeats the original request's query
|
|
216
|
-
* string with only the cursor swapped, so following it preserves the same filters,
|
|
217
|
-
* search term, and page size.
|
|
218
|
-
*/
|
|
219
|
-
page_info: APIKeysAPI.PageInfo;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* A named grouping of related products in your catalog.
|
|
224
|
-
*
|
|
225
|
-
* A product line carries the default commission and freight policies for the
|
|
226
|
-
* products assigned to it, along with the unit group that determines how those
|
|
227
|
-
* products are measured. Product lines are also the unit that catalog access is
|
|
228
|
-
* granted over, for both customers and account groups.
|
|
229
|
-
*/
|
|
230
|
-
export interface ProductLine {
|
|
231
|
-
/**
|
|
232
|
-
* Product line ID.
|
|
233
|
-
*/
|
|
234
|
-
id: string;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Default commission policy for products in this product line.
|
|
238
|
-
*
|
|
239
|
-
* - `commission_exempt`: no commission applies to these products.
|
|
240
|
-
* - `commission_applied`: commission applies to these products, unless overridden
|
|
241
|
-
* elsewhere.
|
|
242
|
-
*/
|
|
243
|
-
commission_policy: 'commission_applied' | 'commission_exempt';
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Creation timestamp.
|
|
247
|
-
*/
|
|
248
|
-
created_at: string;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
252
|
-
*
|
|
253
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
254
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
255
|
-
* money, weights, and durations.
|
|
256
|
-
*/
|
|
257
|
-
default_lot: ItemsAPI.Quantity | null;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Free-form description of the product line.
|
|
261
|
-
*/
|
|
262
|
-
description: string | null;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Default freight policy for products in this product line.
|
|
266
|
-
*
|
|
267
|
-
* - `free_freight`: these products do not incur a freight charge.
|
|
268
|
-
* - `billed_freight`: freight is billed for these products, unless overridden
|
|
269
|
-
* elsewhere.
|
|
270
|
-
*/
|
|
271
|
-
freight_policy: 'free_freight' | 'billed_freight';
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Display name of the product line.
|
|
275
|
-
*
|
|
276
|
-
* Unique among the product lines visible to your account, which includes the
|
|
277
|
-
* shared system lines.
|
|
278
|
-
*/
|
|
279
|
-
name: string;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Free-form notes about the product line.
|
|
283
|
-
*/
|
|
284
|
-
notes: string | null;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Resource type identifier.
|
|
288
|
-
*/
|
|
289
|
-
object: 'product_line';
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Owner describes the provenance of a resource.
|
|
293
|
-
*/
|
|
294
|
-
owner: APIKeysAPI.Owner | null;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* A named collection of units that share one dimension, defining which units a
|
|
298
|
-
* product can be ordered in.
|
|
299
|
-
*
|
|
300
|
-
* Each associated unit carries its own discount and customer portal visibility,
|
|
301
|
-
* applied when an order line is priced in that unit. A product takes its unit
|
|
302
|
-
* group from its product line, falling back to its item category.
|
|
303
|
-
*/
|
|
304
|
-
unit_group: UnitGroupsAPI.UnitGroup | null;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Last-updated timestamp.
|
|
308
|
-
*/
|
|
309
|
-
updated_at: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* An amount together with the unit it is expressed in.
|
|
314
|
-
*
|
|
315
|
-
* The unit may be a currency, so money amounts such as a credit limit are written
|
|
316
|
-
* the same way as physical amounts like weights or counts.
|
|
317
|
-
*/
|
|
318
|
-
export interface QuantityInput {
|
|
319
|
-
/**
|
|
320
|
-
* ID of the unit of measure for the value.
|
|
321
|
-
*/
|
|
322
|
-
unit_id: string;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Decimal value, as a string to preserve precision.
|
|
326
|
-
*/
|
|
327
|
-
value: string;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Request to partially update a product line.
|
|
332
|
-
*/
|
|
333
|
-
export interface UpdateProductLineRequest {
|
|
334
|
-
/**
|
|
335
|
-
* Default commission policy for products in this product line.
|
|
336
|
-
*
|
|
337
|
-
* - `commission_exempt`: no commission applies to these products.
|
|
338
|
-
* - `commission_applied`: commission applies to these products, unless overridden
|
|
339
|
-
* elsewhere.
|
|
340
|
-
*/
|
|
341
|
-
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* An amount together with the unit it is expressed in.
|
|
345
|
-
*
|
|
346
|
-
* The unit may be a currency, so money amounts such as a credit limit are written
|
|
347
|
-
* the same way as physical amounts like weights or counts.
|
|
348
|
-
*/
|
|
349
|
-
default_lot?: QuantityInput | null;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Default freight policy for products in this product line.
|
|
353
|
-
*
|
|
354
|
-
* - `free_freight`: these products do not incur a freight charge.
|
|
355
|
-
* - `billed_freight`: freight is billed for these products, unless overridden
|
|
356
|
-
* elsewhere.
|
|
357
|
-
*/
|
|
358
|
-
freight_policy?: 'free_freight' | 'billed_freight';
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Display name of the product line.
|
|
362
|
-
*
|
|
363
|
-
* Must be unique among the product lines visible to your account, including the
|
|
364
|
-
* shared system lines; a duplicate name returns a conflict error.
|
|
365
|
-
*/
|
|
366
|
-
name?: string;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* ID of the unit group to associate with this product line.
|
|
370
|
-
*
|
|
371
|
-
* The unit group determines the set of units available to products in this product
|
|
372
|
-
* line. It must be a unit group your account owns or one of the shared system unit
|
|
373
|
-
* groups. A lot already stored on the line is not rechecked when the group
|
|
374
|
-
* changes, so send `default_lot` alongside to keep the two consistent.
|
|
375
|
-
*/
|
|
376
|
-
unit_group_id?: string;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
export interface ProductLineDeleteResponse {}
|
|
380
|
-
|
|
381
|
-
export interface ProductLineListParams {
|
|
382
|
-
/**
|
|
383
|
-
* Opaque cursor token identifying where the page of results starts.
|
|
384
|
-
*
|
|
385
|
-
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
386
|
-
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
387
|
-
* page.
|
|
388
|
-
*/
|
|
389
|
-
cursor?: string;
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
393
|
-
* `null`.
|
|
394
|
-
*/
|
|
395
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Maximum number of results to return in a single page.
|
|
399
|
-
*/
|
|
400
|
-
limit?: number;
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Free-text search term used to filter results.
|
|
404
|
-
*
|
|
405
|
-
* Which fields are matched against the term varies by endpoint.
|
|
406
|
-
*/
|
|
407
|
-
q?: string;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export interface ProductLineRetrieveParams {
|
|
411
|
-
/**
|
|
412
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
413
|
-
* `null`.
|
|
414
|
-
*/
|
|
415
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export interface ProductLineCreateParams {
|
|
419
|
-
/**
|
|
420
|
-
* Body param: Default commission policy for products in this product line.
|
|
421
|
-
*
|
|
422
|
-
* - `commission_exempt`: no commission applies to these products.
|
|
423
|
-
* - `commission_applied`: commission applies to these products, unless overridden
|
|
424
|
-
* elsewhere.
|
|
425
|
-
*/
|
|
426
|
-
commission_policy: 'commission_applied' | 'commission_exempt';
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Body param: Default freight policy for products in this product line.
|
|
430
|
-
*
|
|
431
|
-
* - `free_freight`: these products do not incur a freight charge.
|
|
432
|
-
* - `billed_freight`: freight is billed for these products, unless overridden
|
|
433
|
-
* elsewhere.
|
|
434
|
-
*/
|
|
435
|
-
freight_policy: 'free_freight' | 'billed_freight';
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Body param: Display name of the product line.
|
|
439
|
-
*
|
|
440
|
-
* Must be unique among the product lines visible to your account, including the
|
|
441
|
-
* shared system lines; a duplicate name returns a conflict error.
|
|
442
|
-
*/
|
|
443
|
-
name: string;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Body param: ID of the unit group to associate with this product line.
|
|
447
|
-
*
|
|
448
|
-
* The unit group determines the set of units available to products in this product
|
|
449
|
-
* line. It must be a unit group your account owns or one of the shared system unit
|
|
450
|
-
* groups.
|
|
451
|
-
*/
|
|
452
|
-
unit_group_id: string;
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
456
|
-
* are returned as `null`.
|
|
457
|
-
*/
|
|
458
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Body param: An amount together with the unit it is expressed in.
|
|
462
|
-
*
|
|
463
|
-
* The unit may be a currency, so money amounts such as a credit limit are written
|
|
464
|
-
* the same way as physical amounts like weights or counts.
|
|
465
|
-
*/
|
|
466
|
-
default_lot?: QuantityInput;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export interface ProductLineUpdateParams {
|
|
470
|
-
/**
|
|
471
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
472
|
-
* are returned as `null`.
|
|
473
|
-
*/
|
|
474
|
-
include?: Array<'owner' | 'owner.account' | 'unit_group' | 'default_lot' | 'default_lot.unit'>;
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Body param: Default commission policy for products in this product line.
|
|
478
|
-
*
|
|
479
|
-
* - `commission_exempt`: no commission applies to these products.
|
|
480
|
-
* - `commission_applied`: commission applies to these products, unless overridden
|
|
481
|
-
* elsewhere.
|
|
482
|
-
*/
|
|
483
|
-
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Body param: An amount together with the unit it is expressed in.
|
|
487
|
-
*
|
|
488
|
-
* The unit may be a currency, so money amounts such as a credit limit are written
|
|
489
|
-
* the same way as physical amounts like weights or counts.
|
|
490
|
-
*/
|
|
491
|
-
default_lot?: QuantityInput | null;
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Body param: Default freight policy for products in this product line.
|
|
495
|
-
*
|
|
496
|
-
* - `free_freight`: these products do not incur a freight charge.
|
|
497
|
-
* - `billed_freight`: freight is billed for these products, unless overridden
|
|
498
|
-
* elsewhere.
|
|
499
|
-
*/
|
|
500
|
-
freight_policy?: 'free_freight' | 'billed_freight';
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Body param: Display name of the product line.
|
|
504
|
-
*
|
|
505
|
-
* Must be unique among the product lines visible to your account, including the
|
|
506
|
-
* shared system lines; a duplicate name returns a conflict error.
|
|
507
|
-
*/
|
|
508
|
-
name?: string;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Body param: ID of the unit group to associate with this product line.
|
|
512
|
-
*
|
|
513
|
-
* The unit group determines the set of units available to products in this product
|
|
514
|
-
* line. It must be a unit group your account owns or one of the shared system unit
|
|
515
|
-
* groups. A lot already stored on the line is not rechecked when the group
|
|
516
|
-
* changes, so send `default_lot` alongside to keep the two consistent.
|
|
517
|
-
*/
|
|
518
|
-
unit_group_id?: string;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
export declare namespace ProductLines {
|
|
522
|
-
export {
|
|
523
|
-
type CreateProductLineRequest as CreateProductLineRequest,
|
|
524
|
-
type ListProductLine as ListProductLine,
|
|
525
|
-
type ProductLine as ProductLine,
|
|
526
|
-
type QuantityInput as QuantityInput,
|
|
527
|
-
type UpdateProductLineRequest as UpdateProductLineRequest,
|
|
528
|
-
type ProductLineDeleteResponse as ProductLineDeleteResponse,
|
|
529
|
-
type ProductLineListParams as ProductLineListParams,
|
|
530
|
-
type ProductLineRetrieveParams as ProductLineRetrieveParams,
|
|
531
|
-
type ProductLineCreateParams as ProductLineCreateParams,
|
|
532
|
-
type ProductLineUpdateParams as ProductLineUpdateParams,
|
|
533
|
-
};
|
|
534
|
-
}
|
|
3
|
+
export * from './product-lines/index';
|
|
@@ -0,0 +1,148 @@
|
|
|
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 * as ActionsAPI from '../item-categories/actions';
|
|
6
|
+
import * as MaterialsAPI from '../materials/materials';
|
|
7
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* List and manage products.
|
|
12
|
+
*/
|
|
13
|
+
export class Actions extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Creates or updates multiple products for the account, matched by SKU. Validates
|
|
16
|
+
* and resolves synchronously, then writes asynchronously — 202 with a job to poll.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const job =
|
|
21
|
+
* await client.catalog.products.actions.bulkUpsert({
|
|
22
|
+
* products: [
|
|
23
|
+
* {
|
|
24
|
+
* sku: 'ALM-2024-1001',
|
|
25
|
+
* category: { id: 'ic_d06g9c6yc9ck' },
|
|
26
|
+
* properties: [],
|
|
27
|
+
* },
|
|
28
|
+
* ],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job> {
|
|
33
|
+
return this._client.post('/v1/catalog/products/actions/bulk-upsert', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Request to bulk upsert products.
|
|
39
|
+
*/
|
|
40
|
+
export interface BulkUpsertProductsRequest {
|
|
41
|
+
/**
|
|
42
|
+
* Products to create or update, matched by SKU within the account.
|
|
43
|
+
*/
|
|
44
|
+
products: Array<UpsertProductInput>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Input for a single product in a bulk upsert operation.
|
|
49
|
+
*/
|
|
50
|
+
export interface UpsertProductInput {
|
|
51
|
+
/**
|
|
52
|
+
* -------------------------- Named Object -------------------------- Identifies an
|
|
53
|
+
* object by its id or its name. An id wins when both are given.
|
|
54
|
+
*/
|
|
55
|
+
category: ActionsAPI.ObjectIdentifier;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Properties to attach to the product, matched/created by name + value. Additive —
|
|
59
|
+
* existing attributes are not removed.
|
|
60
|
+
*/
|
|
61
|
+
properties: Array<UpsertProductProperty>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* SKU for the product, used to match an existing product within the account. If it
|
|
65
|
+
* exists the product is updated in place; otherwise a new product is created. A
|
|
66
|
+
* SKU already used by a non-product item fails that row.
|
|
67
|
+
*/
|
|
68
|
+
sku: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Product description.
|
|
72
|
+
*/
|
|
73
|
+
description?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Product notes.
|
|
77
|
+
*/
|
|
78
|
+
notes?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Whether the product is shown to buyers in the customer portal. Defaults to
|
|
82
|
+
* `hidden` on create; preserved when omitted on update.
|
|
83
|
+
*/
|
|
84
|
+
portal_visibility?: 'visible' | 'hidden';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* -------------------------- Named Object -------------------------- Identifies an
|
|
88
|
+
* object by its id or its name. An id wins when both are given.
|
|
89
|
+
*/
|
|
90
|
+
product_line?: ActionsAPI.ObjectIdentifier;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Product type. Create-only; defaults to `sale` when omitted.
|
|
94
|
+
*/
|
|
95
|
+
type?: 'sale' | 'service' | 'shipping' | 'credit' | 'return' | 'tax';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A value expressed as a ratio of two units, supplied on create and update
|
|
99
|
+
* requests.
|
|
100
|
+
*
|
|
101
|
+
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
102
|
+
* product is bought or sold by as its denominator.
|
|
103
|
+
*/
|
|
104
|
+
unit_cost?: MaterialsAPI.RateInput;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* A value expressed as a ratio of two units, supplied on create and update
|
|
108
|
+
* requests.
|
|
109
|
+
*
|
|
110
|
+
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
111
|
+
* product is bought or sold by as its denominator.
|
|
112
|
+
*/
|
|
113
|
+
unit_price?: MaterialsAPI.RateInput;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Property name + value pair attached to a product. The property and its value (an
|
|
118
|
+
* attribute) are created if they do not yet exist.
|
|
119
|
+
*/
|
|
120
|
+
export interface UpsertProductProperty {
|
|
121
|
+
/**
|
|
122
|
+
* Property name (e.g. "Color"). Matched case-insensitively; created if missing.
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Property value (e.g. "Red"). Matched case-insensitively; created under the
|
|
128
|
+
* property if missing. A value already in use under a different property fails the
|
|
129
|
+
* whole job.
|
|
130
|
+
*/
|
|
131
|
+
value: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface ActionBulkUpsertParams {
|
|
135
|
+
/**
|
|
136
|
+
* Products to create or update, matched by SKU within the account.
|
|
137
|
+
*/
|
|
138
|
+
products: Array<UpsertProductInput>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export declare namespace Actions {
|
|
142
|
+
export {
|
|
143
|
+
type BulkUpsertProductsRequest as BulkUpsertProductsRequest,
|
|
144
|
+
type UpsertProductInput as UpsertProductInput,
|
|
145
|
+
type UpsertProductProperty as UpsertProductProperty,
|
|
146
|
+
type ActionBulkUpsertParams as ActionBulkUpsertParams,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Actions,
|
|
5
|
+
type BulkUpsertProductsRequest,
|
|
6
|
+
type UpsertProductInput,
|
|
7
|
+
type UpsertProductProperty,
|
|
8
|
+
type ActionBulkUpsertParams,
|
|
9
|
+
} from './actions';
|
|
10
|
+
export {
|
|
11
|
+
Products,
|
|
12
|
+
type CreateProductRequest,
|
|
13
|
+
type ListProduct,
|
|
14
|
+
type Product,
|
|
15
|
+
type UpdateProductRequest,
|
|
16
|
+
type ProductListParams,
|
|
17
|
+
type ProductRetrieveParams,
|
|
18
|
+
type ProductCreateParams,
|
|
19
|
+
type ProductUpdateParams,
|
|
20
|
+
type ProductDeleteParams,
|
|
21
|
+
type ProductChangeProductLineParams,
|
|
22
|
+
} from './products';
|