@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,177 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
/**
|
|
8
|
-
* List and manage products.
|
|
9
|
-
*/
|
|
10
|
-
class Products extends resource_1.APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Returns a paginated list of products for the target account, newest first.
|
|
13
|
-
*
|
|
14
|
-
* Only products of type `sale` are listed — service, shipping, credit, return, and
|
|
15
|
-
* tax products are excluded and must be retrieved by ID. A request made by a
|
|
16
|
-
* customer-portal buyer always returns portal-visible products only, and its
|
|
17
|
-
* `customer_ids` filter is replaced with the buyer's own account, so the results
|
|
18
|
-
* reflect what that account is entitled to buy.
|
|
19
|
-
*
|
|
20
|
-
* The `q` search term is matched against the SKU and description of each product's
|
|
21
|
-
* item; when it is supplied, products whose SKU matches are returned ahead of the
|
|
22
|
-
* rest.
|
|
23
|
-
*
|
|
24
|
-
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
25
|
-
* `suppliers:read`.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const listProduct = await client.catalog.products.list();
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
list(query = {}, options) {
|
|
33
|
-
return this._client.get('/v1/catalog/products', { query, ...options });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Returns a product by ID.
|
|
37
|
-
*
|
|
38
|
-
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
39
|
-
* `suppliers:read`.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const product = await client.catalog.products.retrieve(
|
|
44
|
-
* 'pd_07oe0r7adh2w',
|
|
45
|
-
* );
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
retrieve(id, query = {}, options) {
|
|
49
|
-
return this._client.get((0, path_1.path) `/v1/catalog/products/${id}`, { query, ...options });
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Creates a product and its backing inventory item.
|
|
53
|
-
*
|
|
54
|
-
* The new item starts with zero on-hand inventory, and its pricing defaults to
|
|
55
|
-
* zero rates in the category's base unit unless `unit_price` or `unit_cost` is
|
|
56
|
-
* provided.
|
|
57
|
-
*
|
|
58
|
-
* Only products of type `sale` appear in the product list and export; products
|
|
59
|
-
* created with any other type are still usable on orders and invoices but must be
|
|
60
|
-
* retrieved by ID.
|
|
61
|
-
*
|
|
62
|
-
* This endpoint requires the permission: `items:create`.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* const product = await client.catalog.products.create({
|
|
67
|
-
* category_id: 'ic_d06g9c6yc9ck',
|
|
68
|
-
* sku: 'ALM-2024-1001',
|
|
69
|
-
* type: 'sale',
|
|
70
|
-
* attribute_ids: ['at_rf1w295jt5ia'],
|
|
71
|
-
* description:
|
|
72
|
-
* 'Wireless barcode scanner with charging cradle',
|
|
73
|
-
* notes:
|
|
74
|
-
* 'Ships with a 2-year warranty; register for extended coverage.',
|
|
75
|
-
* portal_visibility: 'visible',
|
|
76
|
-
* product_line_id: 'pdln_k9bnlgvxhxjh',
|
|
77
|
-
* unit_cost: {
|
|
78
|
-
* value: '112.00',
|
|
79
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
80
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
81
|
-
* },
|
|
82
|
-
* unit_price: {
|
|
83
|
-
* value: '199.00',
|
|
84
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
85
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
86
|
-
* },
|
|
87
|
-
* });
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
create(params, options) {
|
|
91
|
-
const { include, ...body } = params;
|
|
92
|
-
return this._client.post('/v1/catalog/products', { query: { include }, body, ...options });
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Partially updates a product.
|
|
96
|
-
*
|
|
97
|
-
* `sku`, `description`, `notes`, and `unit_price` all live on the product's
|
|
98
|
-
* backing item and are written there, so the change is visible on the item as
|
|
99
|
-
* well. The product line is reassigned through its own endpoint, and the product
|
|
100
|
-
* type cannot be changed after creation.
|
|
101
|
-
*
|
|
102
|
-
* This endpoint requires the permission: `items:update`.
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```ts
|
|
106
|
-
* const product = await client.catalog.products.update(
|
|
107
|
-
* 'pd_07oe0r7adh2w',
|
|
108
|
-
* {
|
|
109
|
-
* description:
|
|
110
|
-
* 'Wireless barcode scanner with charging cradle (v2)',
|
|
111
|
-
* notes:
|
|
112
|
-
* 'Firmware 2.1 improves Bluetooth pairing reliability.',
|
|
113
|
-
* portal_visibility: 'visible',
|
|
114
|
-
* sku: 'SKU-002',
|
|
115
|
-
* unit_price: {
|
|
116
|
-
* value: '219.00',
|
|
117
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
118
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
119
|
-
* },
|
|
120
|
-
* },
|
|
121
|
-
* );
|
|
122
|
-
* ```
|
|
123
|
-
*/
|
|
124
|
-
update(id, params = {}, options) {
|
|
125
|
-
const { include, ...body } = params ?? {};
|
|
126
|
-
return this._client.patch((0, path_1.path) `/v1/catalog/products/${id}`, { query: { include }, body, ...options });
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Soft-deletes a product and returns it as it stood at deletion.
|
|
130
|
-
*
|
|
131
|
-
* Deletion marks the product's backing item as deleted, so the item and its
|
|
132
|
-
* inventory drop out of catalog and inventory listings too. Deleting the same
|
|
133
|
-
* product again returns an error saying it has already been deleted.
|
|
134
|
-
*
|
|
135
|
-
* This endpoint requires the permission: `items:delete`.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```ts
|
|
139
|
-
* const product = await client.catalog.products.delete(
|
|
140
|
-
* 'pd_07oe0r7adh2w',
|
|
141
|
-
* );
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
delete(id, params = {}, options) {
|
|
145
|
-
const { include } = params ?? {};
|
|
146
|
-
return this._client.delete((0, path_1.path) `/v1/catalog/products/${id}`, { query: { include }, ...options });
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Moves a product to a different product line.
|
|
150
|
-
*
|
|
151
|
-
* The target product line must be one your account owns or a shared system line;
|
|
152
|
-
* anything else fails as not found. Because customer accounts are granted access
|
|
153
|
-
* to whole product lines, moving a product changes which buyers can see and order
|
|
154
|
-
* it in the customer portal, and which default commission and freight policies
|
|
155
|
-
* apply to it.
|
|
156
|
-
*
|
|
157
|
-
* This endpoint requires the permission: `items:update`.
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* ```ts
|
|
161
|
-
* const product =
|
|
162
|
-
* await client.catalog.products.changeProductLine(
|
|
163
|
-
* 'pdln_k9bnlgvxhxjh',
|
|
164
|
-
* { id: 'pd_07oe0r7adh2w' },
|
|
165
|
-
* );
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
changeProductLine(productLineID, params, options) {
|
|
169
|
-
const { id, include } = params;
|
|
170
|
-
return this._client.put((0, path_1.path) `/v1/catalog/products/${id}/product-line/${productLineID}`, {
|
|
171
|
-
query: { include },
|
|
172
|
-
...options,
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
exports.Products = Products;
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./products/index.js"), exports);
|
|
177
6
|
//# sourceMappingURL=products.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/catalog/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/catalog/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -1,173 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* List and manage products.
|
|
6
|
-
*/
|
|
7
|
-
export class Products extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Returns a paginated list of products for the target account, newest first.
|
|
10
|
-
*
|
|
11
|
-
* Only products of type `sale` are listed — service, shipping, credit, return, and
|
|
12
|
-
* tax products are excluded and must be retrieved by ID. A request made by a
|
|
13
|
-
* customer-portal buyer always returns portal-visible products only, and its
|
|
14
|
-
* `customer_ids` filter is replaced with the buyer's own account, so the results
|
|
15
|
-
* reflect what that account is entitled to buy.
|
|
16
|
-
*
|
|
17
|
-
* The `q` search term is matched against the SKU and description of each product's
|
|
18
|
-
* item; when it is supplied, products whose SKU matches are returned ahead of the
|
|
19
|
-
* rest.
|
|
20
|
-
*
|
|
21
|
-
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
22
|
-
* `suppliers:read`.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const listProduct = await client.catalog.products.list();
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
list(query = {}, options) {
|
|
30
|
-
return this._client.get('/v1/catalog/products', { query, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Returns a product by ID.
|
|
34
|
-
*
|
|
35
|
-
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
36
|
-
* `suppliers:read`.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const product = await client.catalog.products.retrieve(
|
|
41
|
-
* 'pd_07oe0r7adh2w',
|
|
42
|
-
* );
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
retrieve(id, query = {}, options) {
|
|
46
|
-
return this._client.get(path `/v1/catalog/products/${id}`, { query, ...options });
|
|
47
|
-
}
|
|
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, options) {
|
|
88
|
-
const { include, ...body } = params;
|
|
89
|
-
return this._client.post('/v1/catalog/products', { query: { include }, body, ...options });
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Partially updates a product.
|
|
93
|
-
*
|
|
94
|
-
* `sku`, `description`, `notes`, and `unit_price` all live on the product's
|
|
95
|
-
* backing item and are written there, so the change is visible on the item as
|
|
96
|
-
* well. The product line is reassigned through its own endpoint, and the product
|
|
97
|
-
* type cannot be changed after creation.
|
|
98
|
-
*
|
|
99
|
-
* This endpoint requires the permission: `items:update`.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```ts
|
|
103
|
-
* const product = await client.catalog.products.update(
|
|
104
|
-
* 'pd_07oe0r7adh2w',
|
|
105
|
-
* {
|
|
106
|
-
* description:
|
|
107
|
-
* 'Wireless barcode scanner with charging cradle (v2)',
|
|
108
|
-
* notes:
|
|
109
|
-
* 'Firmware 2.1 improves Bluetooth pairing reliability.',
|
|
110
|
-
* portal_visibility: 'visible',
|
|
111
|
-
* sku: 'SKU-002',
|
|
112
|
-
* unit_price: {
|
|
113
|
-
* value: '219.00',
|
|
114
|
-
* numerator_unit_id: 'un_82bd37dae5po',
|
|
115
|
-
* denominator_unit_id: 'un_82bd37dae5po',
|
|
116
|
-
* },
|
|
117
|
-
* },
|
|
118
|
-
* );
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
update(id, params = {}, options) {
|
|
122
|
-
const { include, ...body } = params ?? {};
|
|
123
|
-
return this._client.patch(path `/v1/catalog/products/${id}`, { query: { include }, body, ...options });
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Soft-deletes a product and returns it as it stood at deletion.
|
|
127
|
-
*
|
|
128
|
-
* Deletion marks the product's backing item as deleted, so the item and its
|
|
129
|
-
* inventory drop out of catalog and inventory listings too. Deleting the same
|
|
130
|
-
* product again returns an error saying it has already been deleted.
|
|
131
|
-
*
|
|
132
|
-
* This endpoint requires the permission: `items:delete`.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```ts
|
|
136
|
-
* const product = await client.catalog.products.delete(
|
|
137
|
-
* 'pd_07oe0r7adh2w',
|
|
138
|
-
* );
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
delete(id, params = {}, options) {
|
|
142
|
-
const { include } = params ?? {};
|
|
143
|
-
return this._client.delete(path `/v1/catalog/products/${id}`, { query: { include }, ...options });
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Moves a product to a different product line.
|
|
147
|
-
*
|
|
148
|
-
* The target product line must be one your account owns or a shared system line;
|
|
149
|
-
* anything else fails as not found. Because customer accounts are granted access
|
|
150
|
-
* to whole product lines, moving a product changes which buyers can see and order
|
|
151
|
-
* it in the customer portal, and which default commission and freight policies
|
|
152
|
-
* apply to it.
|
|
153
|
-
*
|
|
154
|
-
* This endpoint requires the permission: `items:update`.
|
|
155
|
-
*
|
|
156
|
-
* @example
|
|
157
|
-
* ```ts
|
|
158
|
-
* const product =
|
|
159
|
-
* await client.catalog.products.changeProductLine(
|
|
160
|
-
* 'pdln_k9bnlgvxhxjh',
|
|
161
|
-
* { id: 'pd_07oe0r7adh2w' },
|
|
162
|
-
* );
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
changeProductLine(productLineID, params, options) {
|
|
166
|
-
const { id, include } = params;
|
|
167
|
-
return this._client.put(path `/v1/catalog/products/${id}/product-line/${productLineID}`, {
|
|
168
|
-
query: { include },
|
|
169
|
-
...options,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
}
|
|
2
|
+
export * from "./products/index.mjs";
|
|
173
3
|
//# sourceMappingURL=products.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/catalog/products.ts"],"names":[],"mappings":"AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/catalog/products.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as JobsAPI from "../../core/jobs.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* List and manage properties and their attributes.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates or updates multiple properties and their attributes for the account,
|
|
11
|
+
* matched by name (case-insensitive), then writes asynchronously — 202 with a job
|
|
12
|
+
* to poll.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const job =
|
|
17
|
+
* await client.catalog.properties.actions.bulkUpsert({
|
|
18
|
+
* properties: [
|
|
19
|
+
* {
|
|
20
|
+
* name: 'Color',
|
|
21
|
+
* attributes: [{ value: 'Premium', color: 'red' }],
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* carries the properties to bulk upsert
|
|
31
|
+
*/
|
|
32
|
+
export interface BulkUpsertPropertiesRequest {
|
|
33
|
+
/**
|
|
34
|
+
* Properties to create or update, matched by name (case-insensitive) within the
|
|
35
|
+
* account.
|
|
36
|
+
*/
|
|
37
|
+
properties: Array<UpsertPropertyInput>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* carries one attribute under a bulk-upserted property
|
|
41
|
+
*/
|
|
42
|
+
export interface UpsertPropertyAttributeInput {
|
|
43
|
+
/**
|
|
44
|
+
* The selectable value this attribute represents, such as `Red`.
|
|
45
|
+
*
|
|
46
|
+
* Must be unique across all attributes in the account, not just within the
|
|
47
|
+
* property. Leading and trailing whitespace is trimmed.
|
|
48
|
+
*/
|
|
49
|
+
value: string;
|
|
50
|
+
/**
|
|
51
|
+
* Swatch color used to display this attribute in the UI.
|
|
52
|
+
*
|
|
53
|
+
* When omitted, one of the nine named colors is assigned. Ignored for a value the
|
|
54
|
+
* property already defines.
|
|
55
|
+
*/
|
|
56
|
+
color?: 'blue' | 'brown' | 'default' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'yellow';
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* carries one property in a bulk upsert
|
|
60
|
+
*/
|
|
61
|
+
export interface UpsertPropertyInput {
|
|
62
|
+
/**
|
|
63
|
+
* The selectable values to define under this property, in the order they should be
|
|
64
|
+
* arranged.
|
|
65
|
+
*
|
|
66
|
+
* Additive — values the property already defines are left as they stand, and none
|
|
67
|
+
* are removed. New values are appended after the existing ones.
|
|
68
|
+
*/
|
|
69
|
+
attributes: Array<UpsertPropertyAttributeInput>;
|
|
70
|
+
/**
|
|
71
|
+
* Display name of the property, used to match existing properties within the
|
|
72
|
+
* account.
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ActionBulkUpsertParams {
|
|
77
|
+
/**
|
|
78
|
+
* Properties to create or update, matched by name (case-insensitive) within the
|
|
79
|
+
* account.
|
|
80
|
+
*/
|
|
81
|
+
properties: Array<UpsertPropertyInput>;
|
|
82
|
+
}
|
|
83
|
+
export declare namespace Actions {
|
|
84
|
+
export { type BulkUpsertPropertiesRequest as BulkUpsertPropertiesRequest, type UpsertPropertyAttributeInput as UpsertPropertyAttributeInput, type UpsertPropertyInput as UpsertPropertyInput, type ActionBulkUpsertParams as ActionBulkUpsertParams, };
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/properties/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;CAG5F;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;CAC3G;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,UAAU,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAEhD;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as JobsAPI from "../../core/jobs.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* List and manage properties and their attributes.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates or updates multiple properties and their attributes for the account,
|
|
11
|
+
* matched by name (case-insensitive), then writes asynchronously — 202 with a job
|
|
12
|
+
* to poll.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const job =
|
|
17
|
+
* await client.catalog.properties.actions.bulkUpsert({
|
|
18
|
+
* properties: [
|
|
19
|
+
* {
|
|
20
|
+
* name: 'Color',
|
|
21
|
+
* attributes: [{ value: 'Premium', color: 'red' }],
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
bulkUpsert(body: ActionBulkUpsertParams, options?: RequestOptions): APIPromise<JobsAPI.Job>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* carries the properties to bulk upsert
|
|
31
|
+
*/
|
|
32
|
+
export interface BulkUpsertPropertiesRequest {
|
|
33
|
+
/**
|
|
34
|
+
* Properties to create or update, matched by name (case-insensitive) within the
|
|
35
|
+
* account.
|
|
36
|
+
*/
|
|
37
|
+
properties: Array<UpsertPropertyInput>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* carries one attribute under a bulk-upserted property
|
|
41
|
+
*/
|
|
42
|
+
export interface UpsertPropertyAttributeInput {
|
|
43
|
+
/**
|
|
44
|
+
* The selectable value this attribute represents, such as `Red`.
|
|
45
|
+
*
|
|
46
|
+
* Must be unique across all attributes in the account, not just within the
|
|
47
|
+
* property. Leading and trailing whitespace is trimmed.
|
|
48
|
+
*/
|
|
49
|
+
value: string;
|
|
50
|
+
/**
|
|
51
|
+
* Swatch color used to display this attribute in the UI.
|
|
52
|
+
*
|
|
53
|
+
* When omitted, one of the nine named colors is assigned. Ignored for a value the
|
|
54
|
+
* property already defines.
|
|
55
|
+
*/
|
|
56
|
+
color?: 'blue' | 'brown' | 'default' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'yellow';
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* carries one property in a bulk upsert
|
|
60
|
+
*/
|
|
61
|
+
export interface UpsertPropertyInput {
|
|
62
|
+
/**
|
|
63
|
+
* The selectable values to define under this property, in the order they should be
|
|
64
|
+
* arranged.
|
|
65
|
+
*
|
|
66
|
+
* Additive — values the property already defines are left as they stand, and none
|
|
67
|
+
* are removed. New values are appended after the existing ones.
|
|
68
|
+
*/
|
|
69
|
+
attributes: Array<UpsertPropertyAttributeInput>;
|
|
70
|
+
/**
|
|
71
|
+
* Display name of the property, used to match existing properties within the
|
|
72
|
+
* account.
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ActionBulkUpsertParams {
|
|
77
|
+
/**
|
|
78
|
+
* Properties to create or update, matched by name (case-insensitive) within the
|
|
79
|
+
* account.
|
|
80
|
+
*/
|
|
81
|
+
properties: Array<UpsertPropertyInput>;
|
|
82
|
+
}
|
|
83
|
+
export declare namespace Actions {
|
|
84
|
+
export { type BulkUpsertPropertiesRequest as BulkUpsertPropertiesRequest, type UpsertPropertyAttributeInput as UpsertPropertyAttributeInput, type UpsertPropertyInput as UpsertPropertyInput, type ActionBulkUpsertParams as ActionBulkUpsertParams, };
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/properties/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;CAG5F;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;CAC3G;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,UAAU,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAEhD;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Actions = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* List and manage properties and their attributes.
|
|
8
|
+
*/
|
|
9
|
+
class Actions extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Creates or updates multiple properties and their attributes for the account,
|
|
12
|
+
* matched by name (case-insensitive), then writes asynchronously — 202 with a job
|
|
13
|
+
* to poll.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const job =
|
|
18
|
+
* await client.catalog.properties.actions.bulkUpsert({
|
|
19
|
+
* properties: [
|
|
20
|
+
* {
|
|
21
|
+
* name: 'Color',
|
|
22
|
+
* attributes: [{ value: 'Premium', color: 'red' }],
|
|
23
|
+
* },
|
|
24
|
+
* ],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
bulkUpsert(body, options) {
|
|
29
|
+
return this._client.post('/v1/catalog/properties/actions/bulk-upsert', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.Actions = Actions;
|
|
33
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/catalog/properties/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,IAA4B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AAtBD,0BAsBC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* List and manage properties and their attributes.
|
|
5
|
+
*/
|
|
6
|
+
export class Actions extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates or updates multiple properties and their attributes for the account,
|
|
9
|
+
* matched by name (case-insensitive), then writes asynchronously — 202 with a job
|
|
10
|
+
* to poll.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const job =
|
|
15
|
+
* await client.catalog.properties.actions.bulkUpsert({
|
|
16
|
+
* properties: [
|
|
17
|
+
* {
|
|
18
|
+
* name: 'Color',
|
|
19
|
+
* attributes: [{ value: 'Premium', color: 'red' }],
|
|
20
|
+
* },
|
|
21
|
+
* ],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
bulkUpsert(body, options) {
|
|
26
|
+
return this._client.post('/v1/catalog/properties/actions/bulk-upsert', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=actions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/catalog/properties/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,IAA4B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Actions, type BulkUpsertPropertiesRequest, type UpsertPropertyAttributeInput, type UpsertPropertyInput, type ActionBulkUpsertParams, } from "./actions.mjs";
|
|
1
2
|
export { Attributes, type CreateAttributeRequest, type UpdateAttributeRequest, type AttributeDeleteResponse, type AttributeListParams, type AttributeRetrieveParams, type AttributeCreateParams, type AttributeUpdateParams, type AttributeDeleteParams, } from "./attributes.mjs";
|
|
2
3
|
export { Properties, type Attribute, type CreatePropertyRequest, type ListAttribute, type ListProperty, type Property, type UpdatePropertyRequest, type PropertyDeleteResponse, type PropertyListParams, type PropertyRetrieveParams, type PropertyCreateParams, type PropertyUpdateParams, } from "./properties.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/properties/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/catalog/properties/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Actions, type BulkUpsertPropertiesRequest, type UpsertPropertyAttributeInput, type UpsertPropertyInput, type ActionBulkUpsertParams, } from "./actions.js";
|
|
1
2
|
export { Attributes, type CreateAttributeRequest, type UpdateAttributeRequest, type AttributeDeleteResponse, type AttributeListParams, type AttributeRetrieveParams, type AttributeCreateParams, type AttributeUpdateParams, type AttributeDeleteParams, } from "./attributes.js";
|
|
2
3
|
export { Properties, type Attribute, type CreatePropertyRequest, type ListAttribute, type ListProperty, type Property, type UpdatePropertyRequest, type PropertyDeleteResponse, type PropertyListParams, type PropertyRetrieveParams, type PropertyCreateParams, type PropertyUpdateParams, } from "./properties.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/properties/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/catalog/properties/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Properties = exports.Attributes = void 0;
|
|
4
|
+
exports.Properties = exports.Attributes = exports.Actions = void 0;
|
|
5
|
+
var actions_1 = require("./actions.js");
|
|
6
|
+
Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return actions_1.Actions; } });
|
|
5
7
|
var attributes_1 = require("./attributes.js");
|
|
6
8
|
Object.defineProperty(exports, "Attributes", { enumerable: true, get: function () { return attributes_1.Attributes; } });
|
|
7
9
|
var properties_1 = require("./properties.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/catalog/properties/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,8CAasB;AAZpB,wGAAA,UAAU,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/catalog/properties/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,8CAUsB;AATpB,wGAAA,UAAU,OAAA;AAUZ,8CAasB;AAZpB,wGAAA,UAAU,OAAA"}
|