@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,581 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as MaterialsAPI from "./materials.mjs";
|
|
3
|
-
import * as ProductLinesAPI from "./product-lines.mjs";
|
|
4
|
-
import * as APIKeysAPI from "../auth/api-keys/api-keys.mjs";
|
|
5
|
-
import * as ItemsAPI from "./items/items.mjs";
|
|
6
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
|
-
/**
|
|
9
|
-
* List and manage products.
|
|
10
|
-
*/
|
|
11
|
-
export declare class Products extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Returns a paginated list of products for the target account, newest first.
|
|
14
|
-
*
|
|
15
|
-
* Only products of type `sale` are listed — service, shipping, credit, return, and
|
|
16
|
-
* tax products are excluded and must be retrieved by ID. A request made by a
|
|
17
|
-
* customer-portal buyer always returns portal-visible products only, and its
|
|
18
|
-
* `customer_ids` filter is replaced with the buyer's own account, so the results
|
|
19
|
-
* reflect what that account is entitled to buy.
|
|
20
|
-
*
|
|
21
|
-
* The `q` search term is matched against the SKU and description of each product's
|
|
22
|
-
* item; when it is supplied, products whose SKU matches are returned ahead of the
|
|
23
|
-
* rest.
|
|
24
|
-
*
|
|
25
|
-
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
26
|
-
* `suppliers:read`.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const listProduct = await client.catalog.products.list();
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
list(query?: ProductListParams | null | undefined, options?: RequestOptions): APIPromise<ListProduct>;
|
|
34
|
-
/**
|
|
35
|
-
* Returns a product by ID.
|
|
36
|
-
*
|
|
37
|
-
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
38
|
-
* `suppliers:read`.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const product = await client.catalog.products.retrieve(
|
|
43
|
-
* 'pd_07oe0r7adh2w',
|
|
44
|
-
* );
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
retrieve(id: string, query?: ProductRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
48
|
-
/**
|
|
49
|
-
* Creates a product and its backing inventory item.
|
|
50
|
-
*
|
|
51
|
-
* The new item starts with zero on-hand inventory, and its pricing defaults to
|
|
52
|
-
* zero rates in the category's base unit unless `unit_price` or `unit_cost` is
|
|
53
|
-
* provided.
|
|
54
|
-
*
|
|
55
|
-
* Only products of type `sale` appear in the product list and export; products
|
|
56
|
-
* created with any other type are still usable on orders and invoices but must be
|
|
57
|
-
* retrieved by ID.
|
|
58
|
-
*
|
|
59
|
-
* This endpoint requires the permission: `items:create`.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const product = await client.catalog.products.create({
|
|
64
|
-
* category_id: 'ic_d06g9c6yc9ck',
|
|
65
|
-
* sku: 'ALM-2024-1001',
|
|
66
|
-
* type: 'sale',
|
|
67
|
-
* attribute_ids: ['at_rf1w295jt5ia'],
|
|
68
|
-
* description:
|
|
69
|
-
* 'Wireless barcode scanner with charging cradle',
|
|
70
|
-
* notes:
|
|
71
|
-
* 'Ships with a 2-year warranty; register for extended coverage.',
|
|
72
|
-
* portal_visibility: 'visible',
|
|
73
|
-
* product_line_id: 'pdln_k9bnlgvxhxjh',
|
|
74
|
-
* unit_cost: {
|
|
75
|
-
* value: '112.00',
|
|
76
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
77
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
78
|
-
* },
|
|
79
|
-
* unit_price: {
|
|
80
|
-
* value: '199.00',
|
|
81
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
82
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
83
|
-
* },
|
|
84
|
-
* });
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
create(params: ProductCreateParams, options?: RequestOptions): APIPromise<Product>;
|
|
88
|
-
/**
|
|
89
|
-
* Partially updates a product.
|
|
90
|
-
*
|
|
91
|
-
* `sku`, `description`, `notes`, and `unit_price` all live on the product's
|
|
92
|
-
* backing item and are written there, so the change is visible on the item as
|
|
93
|
-
* well. The product line is reassigned through its own endpoint, and the product
|
|
94
|
-
* type cannot be changed after creation.
|
|
95
|
-
*
|
|
96
|
-
* This endpoint requires the permission: `items:update`.
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* ```ts
|
|
100
|
-
* const product = await client.catalog.products.update(
|
|
101
|
-
* 'pd_07oe0r7adh2w',
|
|
102
|
-
* {
|
|
103
|
-
* description:
|
|
104
|
-
* 'Wireless barcode scanner with charging cradle (v2)',
|
|
105
|
-
* notes:
|
|
106
|
-
* 'Firmware 2.1 improves Bluetooth pairing reliability.',
|
|
107
|
-
* portal_visibility: 'visible',
|
|
108
|
-
* sku: 'SKU-002',
|
|
109
|
-
* unit_price: {
|
|
110
|
-
* value: '219.00',
|
|
111
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
112
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
113
|
-
* },
|
|
114
|
-
* },
|
|
115
|
-
* );
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
|
-
update(id: string, params?: ProductUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
119
|
-
/**
|
|
120
|
-
* Soft-deletes a product and returns it as it stood at deletion.
|
|
121
|
-
*
|
|
122
|
-
* Deletion marks the product's backing item as deleted, so the item and its
|
|
123
|
-
* inventory drop out of catalog and inventory listings too. Deleting the same
|
|
124
|
-
* product again returns an error saying it has already been deleted.
|
|
125
|
-
*
|
|
126
|
-
* This endpoint requires the permission: `items:delete`.
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* ```ts
|
|
130
|
-
* const product = await client.catalog.products.delete(
|
|
131
|
-
* 'pd_07oe0r7adh2w',
|
|
132
|
-
* );
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
|
-
delete(id: string, params?: ProductDeleteParams | null | undefined, options?: RequestOptions): APIPromise<Product>;
|
|
136
|
-
/**
|
|
137
|
-
* Moves a product to a different product line.
|
|
138
|
-
*
|
|
139
|
-
* The target product line must be one your account owns or a shared system line;
|
|
140
|
-
* anything else fails as not found. Because customer accounts are granted access
|
|
141
|
-
* to whole product lines, moving a product changes which buyers can see and order
|
|
142
|
-
* it in the customer portal, and which default commission and freight policies
|
|
143
|
-
* apply to it.
|
|
144
|
-
*
|
|
145
|
-
* This endpoint requires the permission: `items:update`.
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```ts
|
|
149
|
-
* const product =
|
|
150
|
-
* await client.catalog.products.changeProductLine(
|
|
151
|
-
* 'pdln_k9bnlgvxhxjh',
|
|
152
|
-
* { id: 'pd_07oe0r7adh2w' },
|
|
153
|
-
* );
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
changeProductLine(productLineID: string, params: ProductChangeProductLineParams, options?: RequestOptions): APIPromise<Product>;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Request to create a product.
|
|
160
|
-
*/
|
|
161
|
-
export interface CreateProductRequest {
|
|
162
|
-
/**
|
|
163
|
-
* ID of the item category for the product's item.
|
|
164
|
-
*
|
|
165
|
-
* The category's unit group determines the default units used for the product's
|
|
166
|
-
* pricing rates and inventory tracking.
|
|
167
|
-
*/
|
|
168
|
-
category_id: string;
|
|
169
|
-
/**
|
|
170
|
-
* Stock keeping unit code for the product's item.
|
|
171
|
-
*
|
|
172
|
-
* Must be unique within the account; creation fails with a conflict error if
|
|
173
|
-
* another item already uses it.
|
|
174
|
-
*/
|
|
175
|
-
sku: string;
|
|
176
|
-
/**
|
|
177
|
-
* Product type code, which determines how the product behaves on orders and
|
|
178
|
-
* invoices.
|
|
179
|
-
*
|
|
180
|
-
* - `sale`: a standard sellable product.
|
|
181
|
-
* - `service`: a non-physical service line, such as labor or installation.
|
|
182
|
-
* - `shipping`: a shipping charge applied to an order.
|
|
183
|
-
* - `credit`: a credit applied against an order or invoice.
|
|
184
|
-
* - `return`: a returned product (RMA).
|
|
185
|
-
* - `tax`: a tax line.
|
|
186
|
-
*/
|
|
187
|
-
type: 'sale' | 'service' | 'shipping' | 'credit' | 'return' | 'tax';
|
|
188
|
-
/**
|
|
189
|
-
* Attribute IDs to link to the product's item at creation time.
|
|
190
|
-
*
|
|
191
|
-
* Every ID must already exist in your account; an unknown ID fails the whole
|
|
192
|
-
* request rather than being skipped.
|
|
193
|
-
*/
|
|
194
|
-
attribute_ids?: Array<string>;
|
|
195
|
-
/**
|
|
196
|
-
* Free-form description of the product.
|
|
197
|
-
*/
|
|
198
|
-
description?: string;
|
|
199
|
-
/**
|
|
200
|
-
* Free-form notes about the product.
|
|
201
|
-
*/
|
|
202
|
-
notes?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Whether the product is shown to buyers in the customer portal.
|
|
205
|
-
*
|
|
206
|
-
* - `visible`: buyers can see and order the product in the portal.
|
|
207
|
-
* - `hidden`: the product is concealed from the portal but remains usable
|
|
208
|
-
* internally.
|
|
209
|
-
*
|
|
210
|
-
* When omitted, the product is created hidden, so it must be set to `visible`
|
|
211
|
-
* before buyers can see it.
|
|
212
|
-
*/
|
|
213
|
-
portal_visibility?: 'visible' | 'hidden';
|
|
214
|
-
/**
|
|
215
|
-
* ID of the product line to assign the product to.
|
|
216
|
-
*
|
|
217
|
-
* The product line must be one your account owns or a shared system line; anything
|
|
218
|
-
* else fails as not found. Buyers are granted access to whole product lines, so a
|
|
219
|
-
* product created without one never appears in the customer portal, whatever its
|
|
220
|
-
* `portal_visibility`.
|
|
221
|
-
*/
|
|
222
|
-
product_line_id?: string;
|
|
223
|
-
/**
|
|
224
|
-
* A value expressed as a ratio of two units, supplied on create and update
|
|
225
|
-
* requests.
|
|
226
|
-
*
|
|
227
|
-
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
228
|
-
* product is bought or sold by as its denominator.
|
|
229
|
-
*/
|
|
230
|
-
unit_cost?: MaterialsAPI.RateInput;
|
|
231
|
-
/**
|
|
232
|
-
* A value expressed as a ratio of two units, supplied on create and update
|
|
233
|
-
* requests.
|
|
234
|
-
*
|
|
235
|
-
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
236
|
-
* product is bought or sold by as its denominator.
|
|
237
|
-
*/
|
|
238
|
-
unit_price?: MaterialsAPI.RateInput;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* A single page of resources, together with the metadata needed to page through
|
|
242
|
-
* the rest of the result set.
|
|
243
|
-
*/
|
|
244
|
-
export interface ListProduct {
|
|
245
|
-
/**
|
|
246
|
-
* Resources in this page.
|
|
247
|
-
*/
|
|
248
|
-
data: Array<Product>;
|
|
249
|
-
/**
|
|
250
|
-
* Resource type identifier.
|
|
251
|
-
*/
|
|
252
|
-
object: 'list';
|
|
253
|
-
/**
|
|
254
|
-
* PageInfo describes where the current page sits within a paginated result set and
|
|
255
|
-
* how to move to the adjacent pages.
|
|
256
|
-
*
|
|
257
|
-
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
258
|
-
* For a top-level list endpoint the URL repeats the original request's query
|
|
259
|
-
* string with only the cursor swapped, so following it preserves the same filters,
|
|
260
|
-
* search term, and page size.
|
|
261
|
-
*/
|
|
262
|
-
page_info: APIKeysAPI.PageInfo;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* A catalog entry as it is sold: an inventory item together with its product type,
|
|
266
|
-
* product line, and customer portal visibility.
|
|
267
|
-
*
|
|
268
|
-
* Every product is backed by exactly one item, which carries the SKU, description,
|
|
269
|
-
* pricing, attributes, and inventory position. Creating a product creates that
|
|
270
|
-
* item; deleting the product deletes it.
|
|
271
|
-
*/
|
|
272
|
-
export interface Product {
|
|
273
|
-
/**
|
|
274
|
-
* Product ID.
|
|
275
|
-
*/
|
|
276
|
-
id: string;
|
|
277
|
-
/**
|
|
278
|
-
* Creation timestamp.
|
|
279
|
-
*/
|
|
280
|
-
created_at: string;
|
|
281
|
-
/**
|
|
282
|
-
* An entry in your catalog: something you sell, consume, or build with.
|
|
283
|
-
*/
|
|
284
|
-
item: ItemsAPI.Item | null;
|
|
285
|
-
/**
|
|
286
|
-
* Resource type identifier.
|
|
287
|
-
*/
|
|
288
|
-
object: 'product';
|
|
289
|
-
/**
|
|
290
|
-
* Whether the product is shown to buyers in the customer portal.
|
|
291
|
-
*
|
|
292
|
-
* - `visible`: buyers can see and order the product in the portal.
|
|
293
|
-
* - `hidden`: the product is concealed from the portal but remains usable
|
|
294
|
-
* internally.
|
|
295
|
-
*
|
|
296
|
-
* Visibility alone is not enough to expose a product: a buyer only sees it if
|
|
297
|
-
* their account has also been granted access to the product's product line.
|
|
298
|
-
*/
|
|
299
|
-
portal_visibility: 'visible' | 'hidden';
|
|
300
|
-
/**
|
|
301
|
-
* A named grouping of related products in your catalog.
|
|
302
|
-
*
|
|
303
|
-
* A product line carries the default commission and freight policies for the
|
|
304
|
-
* products assigned to it, along with the unit group that determines how those
|
|
305
|
-
* products are measured. Product lines are also the unit that catalog access is
|
|
306
|
-
* granted over, for both customers and account groups.
|
|
307
|
-
*/
|
|
308
|
-
product_line: ProductLinesAPI.ProductLine | null;
|
|
309
|
-
/**
|
|
310
|
-
* Product type code, which determines how the product behaves on orders and
|
|
311
|
-
* invoices.
|
|
312
|
-
*
|
|
313
|
-
* - `sale`: a standard sellable product.
|
|
314
|
-
* - `service`: a non-physical service line, such as labor or installation.
|
|
315
|
-
* - `shipping`: a shipping charge applied to an order.
|
|
316
|
-
* - `credit`: a credit applied against an order or invoice.
|
|
317
|
-
* - `return`: a returned product (RMA).
|
|
318
|
-
* - `tax`: a tax line.
|
|
319
|
-
*/
|
|
320
|
-
type: 'sale' | 'service' | 'shipping' | 'credit' | 'return' | 'tax';
|
|
321
|
-
/**
|
|
322
|
-
* Last updated timestamp.
|
|
323
|
-
*/
|
|
324
|
-
updated_at: string;
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Request to partially update a product.
|
|
328
|
-
*/
|
|
329
|
-
export interface UpdateProductRequest {
|
|
330
|
-
/**
|
|
331
|
-
* Free-form description of the product.
|
|
332
|
-
*
|
|
333
|
-
* Send `null` to clear.
|
|
334
|
-
*/
|
|
335
|
-
description?: string | null;
|
|
336
|
-
/**
|
|
337
|
-
* Free-form notes about the product.
|
|
338
|
-
*
|
|
339
|
-
* Send `null` to clear.
|
|
340
|
-
*/
|
|
341
|
-
notes?: string | null;
|
|
342
|
-
/**
|
|
343
|
-
* Whether the product is shown to buyers in the customer portal.
|
|
344
|
-
*
|
|
345
|
-
* - `visible`: buyers can see and order the product in the portal.
|
|
346
|
-
* - `hidden`: the product is concealed from the portal but remains usable
|
|
347
|
-
* internally.
|
|
348
|
-
*/
|
|
349
|
-
portal_visibility?: 'visible' | 'hidden';
|
|
350
|
-
/**
|
|
351
|
-
* New stock keeping unit code for the product's item.
|
|
352
|
-
*
|
|
353
|
-
* Must be unique within the account; the update fails with a conflict error if
|
|
354
|
-
* another item already uses it.
|
|
355
|
-
*/
|
|
356
|
-
sku?: string;
|
|
357
|
-
/**
|
|
358
|
-
* A value expressed as a ratio of two units, supplied on create and update
|
|
359
|
-
* requests.
|
|
360
|
-
*
|
|
361
|
-
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
362
|
-
* product is bought or sold by as its denominator.
|
|
363
|
-
*/
|
|
364
|
-
unit_price?: MaterialsAPI.RateInput;
|
|
365
|
-
}
|
|
366
|
-
export interface ProductListParams {
|
|
367
|
-
/**
|
|
368
|
-
* Filter to products whose item carries at least one of these attributes.
|
|
369
|
-
*/
|
|
370
|
-
attribute_ids?: Array<string>;
|
|
371
|
-
/**
|
|
372
|
-
* Filter by the item category the product's item belongs to.
|
|
373
|
-
*/
|
|
374
|
-
category_ids?: Array<string>;
|
|
375
|
-
/**
|
|
376
|
-
* Opaque cursor token identifying where the page of results starts.
|
|
377
|
-
*
|
|
378
|
-
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
379
|
-
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
380
|
-
* page.
|
|
381
|
-
*/
|
|
382
|
-
cursor?: string;
|
|
383
|
-
/**
|
|
384
|
-
* Restrict results to products these customer accounts are entitled to buy.
|
|
385
|
-
*
|
|
386
|
-
* A product matches when its product line has been granted to the customer
|
|
387
|
-
* directly, through the customer's account group, or through the account group
|
|
388
|
-
* used for the customer's pricing. Combined with `product_line_ids` this widens
|
|
389
|
-
* the results rather than narrowing them: products matching either filter are
|
|
390
|
-
* returned.
|
|
391
|
-
*/
|
|
392
|
-
customer_ids?: Array<string>;
|
|
393
|
-
/**
|
|
394
|
-
* End of creation date range.
|
|
395
|
-
*/
|
|
396
|
-
ends_at?: string;
|
|
397
|
-
/**
|
|
398
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
399
|
-
* `null`.
|
|
400
|
-
*/
|
|
401
|
-
include?: Array<'product_line' | 'product_line.unit_group' | 'product_line.unit_group.base_unit' | 'product_line.unit_group.associated_units' | 'product_line.unit_group.associated_units.unit' | 'item' | 'item.category' | 'item.category.properties' | 'item.category.unit_group' | 'item.category.unit_group.base_unit' | 'item.category.unit_group.associated_units' | 'item.category.unit_group.associated_units.unit' | 'item.unit_value' | 'item.unit_cost' | 'item.burn_rate' | 'item.attributes'>;
|
|
402
|
-
/**
|
|
403
|
-
* Maximum number of results to return in a single page.
|
|
404
|
-
*/
|
|
405
|
-
limit?: number;
|
|
406
|
-
/**
|
|
407
|
-
* Filter by customer portal visibility.
|
|
408
|
-
*/
|
|
409
|
-
portal_visibility?: 'visible' | 'hidden';
|
|
410
|
-
/**
|
|
411
|
-
* Filter by product line IDs.
|
|
412
|
-
*
|
|
413
|
-
* Combined with `customer_ids`, products matching either filter are returned.
|
|
414
|
-
*/
|
|
415
|
-
product_line_ids?: Array<string>;
|
|
416
|
-
/**
|
|
417
|
-
* Free-text search term used to filter results.
|
|
418
|
-
*
|
|
419
|
-
* Which fields are matched against the term varies by endpoint.
|
|
420
|
-
*/
|
|
421
|
-
q?: string;
|
|
422
|
-
/**
|
|
423
|
-
* Start of creation date range.
|
|
424
|
-
*/
|
|
425
|
-
starts_at?: string;
|
|
426
|
-
}
|
|
427
|
-
export interface ProductRetrieveParams {
|
|
428
|
-
/**
|
|
429
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
430
|
-
* `null`.
|
|
431
|
-
*/
|
|
432
|
-
include?: Array<'product_line' | 'product_line.unit_group' | 'product_line.unit_group.base_unit' | 'product_line.unit_group.associated_units' | 'product_line.unit_group.associated_units.unit' | 'item' | 'item.category' | 'item.category.properties' | 'item.category.unit_group' | 'item.category.unit_group.base_unit' | 'item.category.unit_group.associated_units' | 'item.category.unit_group.associated_units.unit' | 'item.unit_value' | 'item.unit_cost' | 'item.burn_rate' | 'item.attributes'>;
|
|
433
|
-
}
|
|
434
|
-
export interface ProductCreateParams {
|
|
435
|
-
/**
|
|
436
|
-
* Body param: ID of the item category for the product's item.
|
|
437
|
-
*
|
|
438
|
-
* The category's unit group determines the default units used for the product's
|
|
439
|
-
* pricing rates and inventory tracking.
|
|
440
|
-
*/
|
|
441
|
-
category_id: string;
|
|
442
|
-
/**
|
|
443
|
-
* Body param: Stock keeping unit code for the product's item.
|
|
444
|
-
*
|
|
445
|
-
* Must be unique within the account; creation fails with a conflict error if
|
|
446
|
-
* another item already uses it.
|
|
447
|
-
*/
|
|
448
|
-
sku: string;
|
|
449
|
-
/**
|
|
450
|
-
* Body param: Product type code, which determines how the product behaves on
|
|
451
|
-
* orders and invoices.
|
|
452
|
-
*
|
|
453
|
-
* - `sale`: a standard sellable product.
|
|
454
|
-
* - `service`: a non-physical service line, such as labor or installation.
|
|
455
|
-
* - `shipping`: a shipping charge applied to an order.
|
|
456
|
-
* - `credit`: a credit applied against an order or invoice.
|
|
457
|
-
* - `return`: a returned product (RMA).
|
|
458
|
-
* - `tax`: a tax line.
|
|
459
|
-
*/
|
|
460
|
-
type: 'sale' | 'service' | 'shipping' | 'credit' | 'return' | 'tax';
|
|
461
|
-
/**
|
|
462
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
463
|
-
* are returned as `null`.
|
|
464
|
-
*/
|
|
465
|
-
include?: Array<'product_line' | 'product_line.unit_group' | 'product_line.unit_group.base_unit' | 'product_line.unit_group.associated_units' | 'product_line.unit_group.associated_units.unit' | 'item' | 'item.category' | 'item.category.properties' | 'item.category.unit_group' | 'item.category.unit_group.base_unit' | 'item.category.unit_group.associated_units' | 'item.category.unit_group.associated_units.unit' | 'item.unit_value' | 'item.unit_cost' | 'item.burn_rate' | 'item.attributes'>;
|
|
466
|
-
/**
|
|
467
|
-
* Body param: Attribute IDs to link to the product's item at creation time.
|
|
468
|
-
*
|
|
469
|
-
* Every ID must already exist in your account; an unknown ID fails the whole
|
|
470
|
-
* request rather than being skipped.
|
|
471
|
-
*/
|
|
472
|
-
attribute_ids?: Array<string>;
|
|
473
|
-
/**
|
|
474
|
-
* Body param: Free-form description of the product.
|
|
475
|
-
*/
|
|
476
|
-
description?: string;
|
|
477
|
-
/**
|
|
478
|
-
* Body param: Free-form notes about the product.
|
|
479
|
-
*/
|
|
480
|
-
notes?: string;
|
|
481
|
-
/**
|
|
482
|
-
* Body param: Whether the product is shown to buyers in the customer portal.
|
|
483
|
-
*
|
|
484
|
-
* - `visible`: buyers can see and order the product in the portal.
|
|
485
|
-
* - `hidden`: the product is concealed from the portal but remains usable
|
|
486
|
-
* internally.
|
|
487
|
-
*
|
|
488
|
-
* When omitted, the product is created hidden, so it must be set to `visible`
|
|
489
|
-
* before buyers can see it.
|
|
490
|
-
*/
|
|
491
|
-
portal_visibility?: 'visible' | 'hidden';
|
|
492
|
-
/**
|
|
493
|
-
* Body param: ID of the product line to assign the product to.
|
|
494
|
-
*
|
|
495
|
-
* The product line must be one your account owns or a shared system line; anything
|
|
496
|
-
* else fails as not found. Buyers are granted access to whole product lines, so a
|
|
497
|
-
* product created without one never appears in the customer portal, whatever its
|
|
498
|
-
* `portal_visibility`.
|
|
499
|
-
*/
|
|
500
|
-
product_line_id?: string;
|
|
501
|
-
/**
|
|
502
|
-
* Body param: A value expressed as a ratio of two units, supplied on create and
|
|
503
|
-
* update requests.
|
|
504
|
-
*
|
|
505
|
-
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
506
|
-
* product is bought or sold by as its denominator.
|
|
507
|
-
*/
|
|
508
|
-
unit_cost?: MaterialsAPI.RateInput;
|
|
509
|
-
/**
|
|
510
|
-
* Body param: A value expressed as a ratio of two units, supplied on create and
|
|
511
|
-
* update requests.
|
|
512
|
-
*
|
|
513
|
-
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
514
|
-
* product is bought or sold by as its denominator.
|
|
515
|
-
*/
|
|
516
|
-
unit_price?: MaterialsAPI.RateInput;
|
|
517
|
-
}
|
|
518
|
-
export interface ProductUpdateParams {
|
|
519
|
-
/**
|
|
520
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
521
|
-
* are returned as `null`.
|
|
522
|
-
*/
|
|
523
|
-
include?: Array<'product_line' | 'product_line.unit_group' | 'product_line.unit_group.base_unit' | 'product_line.unit_group.associated_units' | 'product_line.unit_group.associated_units.unit' | 'item' | 'item.category' | 'item.category.properties' | 'item.category.unit_group' | 'item.category.unit_group.base_unit' | 'item.category.unit_group.associated_units' | 'item.category.unit_group.associated_units.unit' | 'item.unit_value' | 'item.unit_cost' | 'item.burn_rate' | 'item.attributes'>;
|
|
524
|
-
/**
|
|
525
|
-
* Body param: Free-form description of the product.
|
|
526
|
-
*
|
|
527
|
-
* Send `null` to clear.
|
|
528
|
-
*/
|
|
529
|
-
description?: string | null;
|
|
530
|
-
/**
|
|
531
|
-
* Body param: Free-form notes about the product.
|
|
532
|
-
*
|
|
533
|
-
* Send `null` to clear.
|
|
534
|
-
*/
|
|
535
|
-
notes?: string | null;
|
|
536
|
-
/**
|
|
537
|
-
* Body param: Whether the product is shown to buyers in the customer portal.
|
|
538
|
-
*
|
|
539
|
-
* - `visible`: buyers can see and order the product in the portal.
|
|
540
|
-
* - `hidden`: the product is concealed from the portal but remains usable
|
|
541
|
-
* internally.
|
|
542
|
-
*/
|
|
543
|
-
portal_visibility?: 'visible' | 'hidden';
|
|
544
|
-
/**
|
|
545
|
-
* Body param: New stock keeping unit code for the product's item.
|
|
546
|
-
*
|
|
547
|
-
* Must be unique within the account; the update fails with a conflict error if
|
|
548
|
-
* another item already uses it.
|
|
549
|
-
*/
|
|
550
|
-
sku?: string;
|
|
551
|
-
/**
|
|
552
|
-
* Body param: A value expressed as a ratio of two units, supplied on create and
|
|
553
|
-
* update requests.
|
|
554
|
-
*
|
|
555
|
-
* A unit price, for example, has a currency as its numerator unit and the unit the
|
|
556
|
-
* product is bought or sold by as its denominator.
|
|
557
|
-
*/
|
|
558
|
-
unit_price?: MaterialsAPI.RateInput;
|
|
559
|
-
}
|
|
560
|
-
export interface ProductDeleteParams {
|
|
561
|
-
/**
|
|
562
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
563
|
-
* `null`.
|
|
564
|
-
*/
|
|
565
|
-
include?: Array<'product_line' | 'product_line.unit_group' | 'product_line.unit_group.base_unit' | 'product_line.unit_group.associated_units' | 'product_line.unit_group.associated_units.unit' | 'item' | 'item.category' | 'item.category.properties' | 'item.category.unit_group' | 'item.category.unit_group.base_unit' | 'item.category.unit_group.associated_units' | 'item.category.unit_group.associated_units.unit' | 'item.unit_value' | 'item.unit_cost' | 'item.burn_rate' | 'item.attributes'>;
|
|
566
|
-
}
|
|
567
|
-
export interface ProductChangeProductLineParams {
|
|
568
|
-
/**
|
|
569
|
-
* Path param: Product ID.
|
|
570
|
-
*/
|
|
571
|
-
id: string;
|
|
572
|
-
/**
|
|
573
|
-
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
574
|
-
* are returned as `null`.
|
|
575
|
-
*/
|
|
576
|
-
include?: Array<'product_line' | 'product_line.unit_group' | 'product_line.unit_group.base_unit' | 'product_line.unit_group.associated_units' | 'product_line.unit_group.associated_units.unit' | 'item' | 'item.category' | 'item.category.properties' | 'item.category.unit_group' | 'item.category.unit_group.base_unit' | 'item.category.unit_group.associated_units' | 'item.category.unit_group.associated_units.unit' | 'item.unit_value' | 'item.unit_cost' | 'item.burn_rate' | 'item.attributes'>;
|
|
577
|
-
}
|
|
578
|
-
export declare namespace Products {
|
|
579
|
-
export { type CreateProductRequest as CreateProductRequest, type ListProduct as ListProduct, type Product as Product, type UpdateProductRequest as UpdateProductRequest, type ProductListParams as ProductListParams, type ProductRetrieveParams as ProductRetrieveParams, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductDeleteParams as ProductDeleteParams, type ProductChangeProductLineParams as ProductChangeProductLineParams, };
|
|
580
|
-
}
|
|
1
|
+
export * from "./products/index.mjs";
|
|
581
2
|
//# sourceMappingURL=products.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/catalog/products.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/catalog/products.ts"],"names":[],"mappings":""}
|