@augno/sdk 0.7.0 → 0.9.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 +2 -2
- package/client.d.mts +11 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -2
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/auth/api-keys/actions.d.mts +2 -0
- package/resources/auth/api-keys/actions.d.mts.map +1 -1
- package/resources/auth/api-keys/actions.d.ts +2 -0
- package/resources/auth/api-keys/actions.d.ts.map +1 -1
- package/resources/auth/api-keys/actions.js +2 -0
- package/resources/auth/api-keys/actions.js.map +1 -1
- package/resources/auth/api-keys/actions.mjs +2 -0
- package/resources/auth/api-keys/actions.mjs.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +12 -3
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +12 -3
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +9 -0
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +9 -0
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +17 -1
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +17 -1
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +17 -1
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +17 -1
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/item-categories/properties.d.mts +4 -0
- package/resources/catalog/item-categories/properties.d.mts.map +1 -1
- package/resources/catalog/item-categories/properties.d.ts +4 -0
- package/resources/catalog/item-categories/properties.d.ts.map +1 -1
- package/resources/catalog/item-categories/properties.js +4 -0
- package/resources/catalog/item-categories/properties.js.map +1 -1
- package/resources/catalog/item-categories/properties.mjs +4 -0
- package/resources/catalog/item-categories/properties.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +4 -0
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +4 -0
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +4 -0
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +4 -0
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +8 -0
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +8 -0
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +8 -0
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +8 -0
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/materials.d.mts +66 -10
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +66 -10
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +57 -1
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +57 -1
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +30 -0
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +30 -0
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +30 -0
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +30 -0
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +18 -1
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +18 -1
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +18 -1
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +18 -1
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +52 -9
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +52 -9
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +44 -1
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +44 -1
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +12 -0
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +12 -0
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +12 -0
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +12 -0
- package/resources/catalog/properties/attributes.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +10 -0
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +10 -0
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +10 -0
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +10 -0
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +29 -7
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +29 -7
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +23 -2
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +23 -2
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +12 -0
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +12 -0
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +12 -0
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +12 -0
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/units.d.mts +56 -26
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +56 -26
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +22 -3
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +22 -3
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/core/addresses/actions.d.mts +1 -0
- package/resources/core/addresses/actions.d.mts.map +1 -1
- package/resources/core/addresses/actions.d.ts +1 -0
- package/resources/core/addresses/actions.d.ts.map +1 -1
- package/resources/core/addresses/actions.js +1 -0
- package/resources/core/addresses/actions.js.map +1 -1
- package/resources/core/addresses/actions.mjs +1 -0
- package/resources/core/addresses/actions.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +22 -7
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +22 -7
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/audit-events.js +6 -0
- package/resources/core/audit-events.js.map +1 -1
- package/resources/core/audit-events.mjs +6 -0
- package/resources/core/audit-events.mjs.map +1 -1
- package/resources/core/core.d.mts +103 -0
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +103 -0
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +19 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +19 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/email-logs.d.mts +6 -1
- package/resources/core/email-logs.d.mts.map +1 -1
- package/resources/core/email-logs.d.ts +6 -1
- package/resources/core/email-logs.d.ts.map +1 -1
- package/resources/core/email-logs.js +4 -0
- package/resources/core/email-logs.js.map +1 -1
- package/resources/core/email-logs.mjs +4 -0
- package/resources/core/email-logs.mjs.map +1 -1
- package/resources/core/index.d.mts +1 -1
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +1 -1
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/request-logs.d.mts +21 -7
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +21 -7
- package/resources/core/request-logs.d.ts.map +1 -1
- package/resources/core/request-logs.js +4 -0
- package/resources/core/request-logs.js.map +1 -1
- package/resources/core/request-logs.mjs +4 -0
- package/resources/core/request-logs.mjs.map +1 -1
- package/resources/core/sandboxes.d.mts +11 -3
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +11 -3
- package/resources/core/sandboxes.d.ts.map +1 -1
- package/resources/core/sandboxes.js +8 -0
- package/resources/core/sandboxes.js.map +1 -1
- package/resources/core/sandboxes.mjs +8 -0
- package/resources/core/sandboxes.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +10 -0
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +10 -0
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +10 -0
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +10 -0
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +26 -5
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +26 -5
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +21 -0
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +21 -0
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/identity/account-users/actions.d.mts +9 -0
- package/resources/identity/account-users/actions.d.mts.map +1 -1
- package/resources/identity/account-users/actions.d.ts +9 -0
- package/resources/identity/account-users/actions.d.ts.map +1 -1
- package/resources/identity/account-users/actions.js +9 -0
- package/resources/identity/account-users/actions.js.map +1 -1
- package/resources/identity/account-users/actions.mjs +9 -0
- package/resources/identity/account-users/actions.mjs.map +1 -1
- package/resources/identity/roles.d.mts +33 -17
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +33 -17
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +20 -6
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +20 -6
- package/resources/identity/roles.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messaging/announcements/actions.d.mts +76 -0
- package/resources/messaging/announcements/actions.d.mts.map +1 -0
- package/resources/messaging/announcements/actions.d.ts +76 -0
- package/resources/messaging/announcements/actions.d.ts.map +1 -0
- package/resources/messaging/announcements/actions.js +73 -0
- package/resources/messaging/announcements/actions.js.map +1 -0
- package/resources/messaging/announcements/actions.mjs +69 -0
- package/resources/messaging/announcements/actions.mjs.map +1 -0
- package/resources/messaging/announcements/announcements.d.mts +173 -0
- package/resources/messaging/announcements/announcements.d.mts.map +1 -0
- package/resources/messaging/announcements/announcements.d.ts +173 -0
- package/resources/messaging/announcements/announcements.d.ts.map +1 -0
- package/resources/messaging/announcements/announcements.js +52 -0
- package/resources/messaging/announcements/announcements.js.map +1 -0
- package/resources/messaging/announcements/announcements.mjs +47 -0
- package/resources/messaging/announcements/announcements.mjs.map +1 -0
- package/resources/messaging/announcements/index.d.mts +3 -0
- package/resources/messaging/announcements/index.d.mts.map +1 -0
- package/resources/messaging/announcements/index.d.ts +3 -0
- package/resources/messaging/announcements/index.d.ts.map +1 -0
- package/resources/messaging/announcements/index.js +9 -0
- package/resources/messaging/announcements/index.js.map +1 -0
- package/resources/messaging/announcements/index.mjs +4 -0
- package/resources/messaging/announcements/index.mjs.map +1 -0
- package/resources/messaging/announcements.d.mts +2 -0
- package/resources/messaging/announcements.d.mts.map +1 -0
- package/resources/messaging/announcements.d.ts +2 -0
- package/resources/messaging/announcements.d.ts.map +1 -0
- package/resources/messaging/announcements.js +6 -0
- package/resources/messaging/announcements.js.map +1 -0
- package/resources/messaging/announcements.mjs +3 -0
- package/resources/messaging/announcements.mjs.map +1 -0
- package/resources/messaging/blocks.d.mts +674 -0
- package/resources/messaging/blocks.d.mts.map +1 -0
- package/resources/messaging/blocks.d.ts +674 -0
- package/resources/messaging/blocks.d.ts.map +1 -0
- package/resources/messaging/blocks.js +61 -0
- package/resources/messaging/blocks.js.map +1 -0
- package/resources/messaging/blocks.mjs +57 -0
- package/resources/messaging/blocks.mjs.map +1 -0
- package/resources/messaging/conversations/actions.d.mts +422 -0
- package/resources/messaging/conversations/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/actions.d.ts +422 -0
- package/resources/messaging/conversations/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/actions.js +299 -0
- package/resources/messaging/conversations/actions.js.map +1 -0
- package/resources/messaging/conversations/actions.mjs +295 -0
- package/resources/messaging/conversations/actions.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/actions.d.mts +87 -0
- package/resources/messaging/conversations/attachments/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/actions.d.ts +87 -0
- package/resources/messaging/conversations/attachments/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/actions.js +36 -0
- package/resources/messaging/conversations/attachments/actions.js.map +1 -0
- package/resources/messaging/conversations/attachments/actions.mjs +32 -0
- package/resources/messaging/conversations/attachments/actions.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.d.mts +10 -0
- package/resources/messaging/conversations/attachments/attachments.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.d.ts +10 -0
- package/resources/messaging/conversations/attachments/attachments.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.js +17 -0
- package/resources/messaging/conversations/attachments/attachments.js.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.mjs +12 -0
- package/resources/messaging/conversations/attachments/attachments.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/index.d.mts +3 -0
- package/resources/messaging/conversations/attachments/index.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/index.d.ts +3 -0
- package/resources/messaging/conversations/attachments/index.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/index.js +9 -0
- package/resources/messaging/conversations/attachments/index.js.map +1 -0
- package/resources/messaging/conversations/attachments/index.mjs +4 -0
- package/resources/messaging/conversations/attachments/index.mjs.map +1 -0
- package/resources/messaging/conversations/attachments.d.mts +2 -0
- package/resources/messaging/conversations/attachments.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments.d.ts +2 -0
- package/resources/messaging/conversations/attachments.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments.js +6 -0
- package/resources/messaging/conversations/attachments.js.map +1 -0
- package/resources/messaging/conversations/attachments.mjs +3 -0
- package/resources/messaging/conversations/attachments.mjs.map +1 -0
- package/resources/messaging/conversations/conversations.d.mts +1367 -0
- package/resources/messaging/conversations/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations/conversations.d.ts +1367 -0
- package/resources/messaging/conversations/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations/conversations.js +113 -0
- package/resources/messaging/conversations/conversations.js.map +1 -0
- package/resources/messaging/conversations/conversations.mjs +108 -0
- package/resources/messaging/conversations/conversations.mjs.map +1 -0
- package/resources/messaging/conversations/index.d.mts +7 -0
- package/resources/messaging/conversations/index.d.mts.map +1 -0
- package/resources/messaging/conversations/index.d.ts +7 -0
- package/resources/messaging/conversations/index.d.ts.map +1 -0
- package/resources/messaging/conversations/index.js +17 -0
- package/resources/messaging/conversations/index.js.map +1 -0
- package/resources/messaging/conversations/index.mjs +8 -0
- package/resources/messaging/conversations/index.mjs.map +1 -0
- package/resources/messaging/conversations/links.d.mts +149 -0
- package/resources/messaging/conversations/links.d.mts.map +1 -0
- package/resources/messaging/conversations/links.d.ts +149 -0
- package/resources/messaging/conversations/links.d.ts.map +1 -0
- package/resources/messaging/conversations/links.js +72 -0
- package/resources/messaging/conversations/links.js.map +1 -0
- package/resources/messaging/conversations/links.mjs +68 -0
- package/resources/messaging/conversations/links.mjs.map +1 -0
- package/resources/messaging/conversations/messages.d.mts +353 -0
- package/resources/messaging/conversations/messages.d.mts.map +1 -0
- package/resources/messaging/conversations/messages.d.ts +353 -0
- package/resources/messaging/conversations/messages.d.ts.map +1 -0
- package/resources/messaging/conversations/messages.js +81 -0
- package/resources/messaging/conversations/messages.js.map +1 -0
- package/resources/messaging/conversations/messages.mjs +77 -0
- package/resources/messaging/conversations/messages.mjs.map +1 -0
- package/resources/messaging/conversations/participants/actions.d.mts +62 -0
- package/resources/messaging/conversations/participants/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/actions.d.ts +62 -0
- package/resources/messaging/conversations/participants/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/actions.js +35 -0
- package/resources/messaging/conversations/participants/actions.js.map +1 -0
- package/resources/messaging/conversations/participants/actions.mjs +31 -0
- package/resources/messaging/conversations/participants/actions.mjs.map +1 -0
- package/resources/messaging/conversations/participants/index.d.mts +3 -0
- package/resources/messaging/conversations/participants/index.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/index.d.ts +3 -0
- package/resources/messaging/conversations/participants/index.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/index.js +9 -0
- package/resources/messaging/conversations/participants/index.js.map +1 -0
- package/resources/messaging/conversations/participants/index.mjs +4 -0
- package/resources/messaging/conversations/participants/index.mjs.map +1 -0
- package/resources/messaging/conversations/participants/participants.d.mts +100 -0
- package/resources/messaging/conversations/participants/participants.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/participants.d.ts +100 -0
- package/resources/messaging/conversations/participants/participants.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/participants.js +64 -0
- package/resources/messaging/conversations/participants/participants.js.map +1 -0
- package/resources/messaging/conversations/participants/participants.mjs +59 -0
- package/resources/messaging/conversations/participants/participants.mjs.map +1 -0
- package/resources/messaging/conversations/participants.d.mts +2 -0
- package/resources/messaging/conversations/participants.d.mts.map +1 -0
- package/resources/messaging/conversations/participants.d.ts +2 -0
- package/resources/messaging/conversations/participants.d.ts.map +1 -0
- package/resources/messaging/conversations/participants.js +6 -0
- package/resources/messaging/conversations/participants.js.map +1 -0
- package/resources/messaging/conversations/participants.mjs +3 -0
- package/resources/messaging/conversations/participants.mjs.map +1 -0
- package/resources/messaging/conversations.d.mts +2 -0
- package/resources/messaging/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations.d.ts +2 -0
- package/resources/messaging/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations.js +6 -0
- package/resources/messaging/conversations.js.map +1 -0
- package/resources/messaging/conversations.mjs +3 -0
- package/resources/messaging/conversations.mjs.map +1 -0
- package/resources/messaging/email-domains/actions.d.mts +27 -0
- package/resources/messaging/email-domains/actions.d.mts.map +1 -0
- package/resources/messaging/email-domains/actions.d.ts +27 -0
- package/resources/messaging/email-domains/actions.d.ts.map +1 -0
- package/resources/messaging/email-domains/actions.js +32 -0
- package/resources/messaging/email-domains/actions.js.map +1 -0
- package/resources/messaging/email-domains/actions.mjs +28 -0
- package/resources/messaging/email-domains/actions.mjs.map +1 -0
- package/resources/messaging/email-domains/email-domains.d.mts +136 -0
- package/resources/messaging/email-domains/email-domains.d.mts.map +1 -0
- package/resources/messaging/email-domains/email-domains.d.ts +136 -0
- package/resources/messaging/email-domains/email-domains.d.ts.map +1 -0
- package/resources/messaging/email-domains/email-domains.js +70 -0
- package/resources/messaging/email-domains/email-domains.js.map +1 -0
- package/resources/messaging/email-domains/email-domains.mjs +65 -0
- package/resources/messaging/email-domains/email-domains.mjs.map +1 -0
- package/resources/messaging/email-domains/index.d.mts +3 -0
- package/resources/messaging/email-domains/index.d.mts.map +1 -0
- package/resources/messaging/email-domains/index.d.ts +3 -0
- package/resources/messaging/email-domains/index.d.ts.map +1 -0
- package/resources/messaging/email-domains/index.js +9 -0
- package/resources/messaging/email-domains/index.js.map +1 -0
- package/resources/messaging/email-domains/index.mjs +4 -0
- package/resources/messaging/email-domains/index.mjs.map +1 -0
- package/resources/messaging/email-domains.d.mts +2 -0
- package/resources/messaging/email-domains.d.mts.map +1 -0
- package/resources/messaging/email-domains.d.ts +2 -0
- package/resources/messaging/email-domains.d.ts.map +1 -0
- package/resources/messaging/email-domains.js +6 -0
- package/resources/messaging/email-domains.js.map +1 -0
- package/resources/messaging/email-domains.mjs +3 -0
- package/resources/messaging/email-domains.mjs.map +1 -0
- package/resources/messaging/email-inboxes.d.mts +375 -0
- package/resources/messaging/email-inboxes.d.mts.map +1 -0
- package/resources/messaging/email-inboxes.d.ts +375 -0
- package/resources/messaging/email-inboxes.d.ts.map +1 -0
- package/resources/messaging/email-inboxes.js +111 -0
- package/resources/messaging/email-inboxes.js.map +1 -0
- package/resources/messaging/email-inboxes.mjs +107 -0
- package/resources/messaging/email-inboxes.mjs.map +1 -0
- package/resources/messaging/groups/groups.d.mts +162 -0
- package/resources/messaging/groups/groups.d.mts.map +1 -0
- package/resources/messaging/groups/groups.d.ts +162 -0
- package/resources/messaging/groups/groups.d.ts.map +1 -0
- package/resources/messaging/groups/groups.js +110 -0
- package/resources/messaging/groups/groups.js.map +1 -0
- package/resources/messaging/groups/groups.mjs +105 -0
- package/resources/messaging/groups/groups.mjs.map +1 -0
- package/resources/messaging/groups/index.d.mts +3 -0
- package/resources/messaging/groups/index.d.mts.map +1 -0
- package/resources/messaging/groups/index.d.ts +3 -0
- package/resources/messaging/groups/index.d.ts.map +1 -0
- package/resources/messaging/groups/index.js +9 -0
- package/resources/messaging/groups/index.js.map +1 -0
- package/resources/messaging/groups/index.mjs +4 -0
- package/resources/messaging/groups/index.mjs.map +1 -0
- package/resources/messaging/groups/members.d.mts +84 -0
- package/resources/messaging/groups/members.d.mts.map +1 -0
- package/resources/messaging/groups/members.d.ts +84 -0
- package/resources/messaging/groups/members.d.ts.map +1 -0
- package/resources/messaging/groups/members.js +52 -0
- package/resources/messaging/groups/members.js.map +1 -0
- package/resources/messaging/groups/members.mjs +48 -0
- package/resources/messaging/groups/members.mjs.map +1 -0
- package/resources/messaging/groups.d.mts +2 -0
- package/resources/messaging/groups.d.mts.map +1 -0
- package/resources/messaging/groups.d.ts +2 -0
- package/resources/messaging/groups.d.ts.map +1 -0
- package/resources/messaging/groups.js +6 -0
- package/resources/messaging/groups.js.map +1 -0
- package/resources/messaging/groups.mjs +3 -0
- package/resources/messaging/groups.mjs.map +1 -0
- package/resources/messaging/index.d.mts +11 -0
- package/resources/messaging/index.d.mts.map +1 -0
- package/resources/messaging/index.d.ts +11 -0
- package/resources/messaging/index.d.ts.map +1 -0
- package/resources/messaging/index.js +25 -0
- package/resources/messaging/index.js.map +1 -0
- package/resources/messaging/index.mjs +12 -0
- package/resources/messaging/index.mjs.map +1 -0
- package/resources/messaging/messages/actions.d.mts +95 -0
- package/resources/messaging/messages/actions.d.mts.map +1 -0
- package/resources/messaging/messages/actions.d.ts +95 -0
- package/resources/messaging/messages/actions.d.ts.map +1 -0
- package/resources/messaging/messages/actions.js +79 -0
- package/resources/messaging/messages/actions.js.map +1 -0
- package/resources/messaging/messages/actions.mjs +75 -0
- package/resources/messaging/messages/actions.mjs.map +1 -0
- package/resources/messaging/messages/index.d.mts +3 -0
- package/resources/messaging/messages/index.d.mts.map +1 -0
- package/resources/messaging/messages/index.d.ts +3 -0
- package/resources/messaging/messages/index.d.ts.map +1 -0
- package/resources/messaging/messages/index.js +9 -0
- package/resources/messaging/messages/index.js.map +1 -0
- package/resources/messaging/messages/index.mjs +4 -0
- package/resources/messaging/messages/index.mjs.map +1 -0
- package/resources/messaging/messages/messages.d.mts +62 -0
- package/resources/messaging/messages/messages.d.mts.map +1 -0
- package/resources/messaging/messages/messages.d.ts +62 -0
- package/resources/messaging/messages/messages.d.ts.map +1 -0
- package/resources/messaging/messages/messages.js +41 -0
- package/resources/messaging/messages/messages.js.map +1 -0
- package/resources/messaging/messages/messages.mjs +36 -0
- package/resources/messaging/messages/messages.mjs.map +1 -0
- package/resources/messaging/messages.d.mts +2 -0
- package/resources/messaging/messages.d.mts.map +1 -0
- package/resources/messaging/messages.d.ts +2 -0
- package/resources/messaging/messages.d.ts.map +1 -0
- package/resources/messaging/messages.js +6 -0
- package/resources/messaging/messages.js.map +1 -0
- package/resources/messaging/messages.mjs +3 -0
- package/resources/messaging/messages.mjs.map +1 -0
- package/resources/messaging/messaging.d.mts +103 -0
- package/resources/messaging/messaging.d.mts.map +1 -0
- package/resources/messaging/messaging.d.ts +103 -0
- package/resources/messaging/messaging.d.ts.map +1 -0
- package/resources/messaging/messaging.js +65 -0
- package/resources/messaging/messaging.js.map +1 -0
- package/resources/messaging/messaging.mjs +60 -0
- package/resources/messaging/messaging.mjs.map +1 -0
- package/resources/messaging/notifications/actions.d.mts +92 -0
- package/resources/messaging/notifications/actions.d.mts.map +1 -0
- package/resources/messaging/notifications/actions.d.ts +92 -0
- package/resources/messaging/notifications/actions.d.ts.map +1 -0
- package/resources/messaging/notifications/actions.js +89 -0
- package/resources/messaging/notifications/actions.js.map +1 -0
- package/resources/messaging/notifications/actions.mjs +85 -0
- package/resources/messaging/notifications/actions.mjs.map +1 -0
- package/resources/messaging/notifications/index.d.mts +3 -0
- package/resources/messaging/notifications/index.d.mts.map +1 -0
- package/resources/messaging/notifications/index.d.ts +3 -0
- package/resources/messaging/notifications/index.d.ts.map +1 -0
- package/resources/messaging/notifications/index.js +9 -0
- package/resources/messaging/notifications/index.js.map +1 -0
- package/resources/messaging/notifications/index.mjs +4 -0
- package/resources/messaging/notifications/index.mjs.map +1 -0
- package/resources/messaging/notifications/notifications.d.mts +444 -0
- package/resources/messaging/notifications/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications/notifications.d.ts +444 -0
- package/resources/messaging/notifications/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications/notifications.js +108 -0
- package/resources/messaging/notifications/notifications.js.map +1 -0
- package/resources/messaging/notifications/notifications.mjs +103 -0
- package/resources/messaging/notifications/notifications.mjs.map +1 -0
- package/resources/messaging/notifications.d.mts +2 -0
- package/resources/messaging/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications.d.ts +2 -0
- package/resources/messaging/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications.js +6 -0
- package/resources/messaging/notifications.js.map +1 -0
- package/resources/messaging/notifications.mjs +3 -0
- package/resources/messaging/notifications.mjs.map +1 -0
- package/resources/messaging/preferences.d.mts +180 -0
- package/resources/messaging/preferences.d.mts.map +1 -0
- package/resources/messaging/preferences.d.ts +180 -0
- package/resources/messaging/preferences.d.ts.map +1 -0
- package/resources/messaging/preferences.js +47 -0
- package/resources/messaging/preferences.js.map +1 -0
- package/resources/messaging/preferences.mjs +43 -0
- package/resources/messaging/preferences.mjs.map +1 -0
- package/resources/messaging.d.mts +2 -0
- package/resources/messaging.d.mts.map +1 -0
- package/resources/messaging.d.ts +2 -0
- package/resources/messaging.d.ts.map +1 -0
- package/resources/messaging.js +6 -0
- package/resources/messaging.js.map +1 -0
- package/resources/messaging.mjs +3 -0
- package/resources/messaging.mjs.map +1 -0
- package/resources/operations/carriers/carriers.d.mts +20 -7
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +20 -7
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +16 -1
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +16 -1
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +15 -0
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +15 -0
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +15 -0
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +15 -0
- package/resources/operations/carriers/service-levels.mjs.map +1 -1
- package/resources/operations/location-types.d.mts +6 -2
- package/resources/operations/location-types.d.mts.map +1 -1
- package/resources/operations/location-types.d.ts +6 -2
- package/resources/operations/location-types.d.ts.map +1 -1
- package/resources/operations/location-types.js +4 -0
- package/resources/operations/location-types.js.map +1 -1
- package/resources/operations/location-types.mjs +4 -0
- package/resources/operations/location-types.mjs.map +1 -1
- package/resources/operations/locations.d.mts +27 -10
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +27 -10
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +18 -1
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +18 -1
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +23 -6
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +23 -6
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +18 -1
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +18 -1
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +37 -2
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +37 -2
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +37 -2
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +37 -2
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +21 -1
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +21 -1
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +21 -1
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +21 -1
- package/resources/sales/account-groups.mjs.map +1 -1
- package/resources/sales/account-statuses.d.mts +1 -1
- package/resources/sales/account-statuses.d.ts +1 -1
- package/resources/sales/addresses.d.mts +36 -6
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +36 -6
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +31 -1
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +31 -1
- package/resources/sales/addresses.mjs.map +1 -1
- package/resources/sales/contacts/actions.d.mts +120 -0
- package/resources/sales/contacts/actions.d.mts.map +1 -0
- package/resources/sales/contacts/actions.d.ts +120 -0
- package/resources/sales/contacts/actions.d.ts.map +1 -0
- package/resources/sales/contacts/actions.js +38 -0
- package/resources/sales/contacts/actions.js.map +1 -0
- package/resources/sales/contacts/actions.mjs +34 -0
- package/resources/sales/contacts/actions.mjs.map +1 -0
- package/resources/sales/contacts/contacts.d.mts +10 -0
- package/resources/sales/contacts/contacts.d.mts.map +1 -0
- package/resources/sales/contacts/contacts.d.ts +10 -0
- package/resources/sales/contacts/contacts.d.ts.map +1 -0
- package/resources/sales/contacts/contacts.js +17 -0
- package/resources/sales/contacts/contacts.js.map +1 -0
- package/resources/sales/contacts/contacts.mjs +12 -0
- package/resources/sales/contacts/contacts.mjs.map +1 -0
- package/resources/sales/contacts/index.d.mts +3 -0
- package/resources/sales/contacts/index.d.mts.map +1 -0
- package/resources/sales/contacts/index.d.ts +3 -0
- package/resources/sales/contacts/index.d.ts.map +1 -0
- package/resources/sales/contacts/index.js +9 -0
- package/resources/sales/contacts/index.js.map +1 -0
- package/resources/sales/contacts/index.mjs +4 -0
- package/resources/sales/contacts/index.mjs.map +1 -0
- package/resources/sales/contacts.d.mts +2 -0
- package/resources/sales/contacts.d.mts.map +1 -0
- package/resources/sales/contacts.d.ts +2 -0
- package/resources/sales/contacts.d.ts.map +1 -0
- package/resources/sales/contacts.js +6 -0
- package/resources/sales/contacts.js.map +1 -0
- package/resources/sales/contacts.mjs +3 -0
- package/resources/sales/contacts.mjs.map +1 -0
- package/resources/sales/customers/actions.d.mts +3 -1
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +3 -1
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js +2 -0
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs +2 -0
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +59 -566
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +59 -566
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +52 -13
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +52 -13
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +2 -1
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +2 -1
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +5 -3
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +1 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/priorities.d.mts +5 -1
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +5 -1
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js +4 -0
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs +4 -0
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders.d.mts +58 -46
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +58 -46
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +18 -4
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +18 -4
- package/resources/sales/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +6 -2
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +6 -2
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +4 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +4 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/settings/integrations.d.mts +12 -1
- package/resources/settings/integrations.d.mts.map +1 -1
- package/resources/settings/integrations.d.ts +12 -1
- package/resources/settings/integrations.d.ts.map +1 -1
- package/resources/settings/integrations.js +12 -1
- package/resources/settings/integrations.js.map +1 -1
- package/resources/settings/integrations.mjs +12 -1
- package/resources/settings/integrations.mjs.map +1 -1
- package/src/client.ts +22 -2
- package/src/resources/auth/api-keys/actions.ts +2 -0
- package/src/resources/auth/api-keys/api-keys.ts +12 -3
- package/src/resources/catalog/item-categories/item-categories.ts +17 -1
- package/src/resources/catalog/item-categories/properties.ts +4 -0
- package/src/resources/catalog/items/attributes.ts +4 -0
- package/src/resources/catalog/items/items.ts +8 -0
- package/src/resources/catalog/materials.ts +66 -10
- package/src/resources/catalog/parts.ts +30 -0
- package/src/resources/catalog/product-lines.ts +18 -1
- package/src/resources/catalog/products.ts +52 -9
- package/src/resources/catalog/properties/attributes.ts +12 -0
- package/src/resources/catalog/properties/properties.ts +10 -0
- package/src/resources/catalog/unit-groups/unit-groups.ts +29 -7
- package/src/resources/catalog/unit-groups/units.ts +12 -0
- package/src/resources/catalog/units.ts +56 -26
- package/src/resources/core/addresses/actions.ts +1 -0
- package/src/resources/core/audit-events.ts +114 -11
- package/src/resources/core/core.ts +602 -0
- package/src/resources/core/email-logs.ts +6 -1
- package/src/resources/core/index.ts +1 -1
- package/src/resources/core/request-logs.ts +22 -7
- package/src/resources/core/sandboxes.ts +11 -3
- package/src/resources/finance/payment-terms.ts +10 -0
- package/src/resources/identity/account-users/account-users.ts +26 -5
- package/src/resources/identity/account-users/actions.ts +9 -0
- package/src/resources/identity/roles.ts +34 -18
- package/src/resources/index.ts +2 -1
- package/src/resources/messaging/announcements/actions.ts +119 -0
- package/src/resources/messaging/announcements/announcements.ts +234 -0
- package/src/resources/messaging/announcements/index.ts +10 -0
- package/src/resources/messaging/announcements.ts +3 -0
- package/src/resources/messaging/blocks.ts +826 -0
- package/src/resources/messaging/conversations/actions.ts +766 -0
- package/src/resources/messaging/conversations/attachments/actions.ts +116 -0
- package/src/resources/messaging/conversations/attachments/attachments.ts +25 -0
- package/src/resources/messaging/conversations/attachments/index.ts +9 -0
- package/src/resources/messaging/conversations/attachments.ts +3 -0
- package/src/resources/messaging/conversations/conversations.ts +2500 -0
- package/src/resources/messaging/conversations/index.ts +81 -0
- package/src/resources/messaging/conversations/links.ts +692 -0
- package/src/resources/messaging/conversations/messages.ts +929 -0
- package/src/resources/messaging/conversations/participants/actions.ts +92 -0
- package/src/resources/messaging/conversations/participants/index.ts +10 -0
- package/src/resources/messaging/conversations/participants/participants.ts +150 -0
- package/src/resources/messaging/conversations/participants.ts +3 -0
- package/src/resources/messaging/conversations.ts +3 -0
- package/src/resources/messaging/email-domains/actions.ts +32 -0
- package/src/resources/messaging/email-domains/email-domains.ts +170 -0
- package/src/resources/messaging/email-domains/index.ts +10 -0
- package/src/resources/messaging/email-domains.ts +3 -0
- package/src/resources/messaging/email-inboxes.ts +462 -0
- package/src/resources/messaging/groups/groups.ts +211 -0
- package/src/resources/messaging/groups/index.ts +17 -0
- package/src/resources/messaging/groups/members.ts +113 -0
- package/src/resources/messaging/groups.ts +3 -0
- package/src/resources/messaging/index.ts +116 -0
- package/src/resources/messaging/messages/actions.ts +184 -0
- package/src/resources/messaging/messages/index.ts +10 -0
- package/src/resources/messaging/messages/messages.ts +108 -0
- package/src/resources/messaging/messages.ts +3 -0
- package/src/resources/messaging/messaging.ts +353 -0
- package/src/resources/messaging/notifications/actions.ts +139 -0
- package/src/resources/messaging/notifications/index.ts +24 -0
- package/src/resources/messaging/notifications/notifications.ts +1057 -0
- package/src/resources/messaging/notifications.ts +3 -0
- package/src/resources/messaging/preferences.ts +215 -0
- package/src/resources/messaging.ts +3 -0
- package/src/resources/operations/carriers/carriers.ts +20 -7
- package/src/resources/operations/carriers/service-levels.ts +15 -0
- package/src/resources/operations/location-types.ts +6 -2
- package/src/resources/operations/locations.ts +27 -10
- package/src/resources/operations/scanning-stations.ts +23 -6
- package/src/resources/operations/shipping-terms.ts +37 -2
- package/src/resources/sales/account-groups.ts +21 -1
- package/src/resources/sales/account-statuses.ts +1 -1
- package/src/resources/sales/addresses.ts +36 -6
- package/src/resources/sales/contacts/actions.ts +150 -0
- package/src/resources/sales/contacts/contacts.ts +27 -0
- package/src/resources/sales/contacts/index.ts +10 -0
- package/src/resources/sales/contacts.ts +3 -0
- package/src/resources/sales/customers/actions.ts +4 -0
- package/src/resources/sales/customers/customers.ts +62 -679
- package/src/resources/sales/customers/index.ts +0 -15
- package/src/resources/sales/index.ts +1 -15
- package/src/resources/sales/priorities.ts +5 -1
- package/src/resources/sales/sales-orders.ts +58 -48
- package/src/resources/sales/sales.ts +6 -30
- package/src/resources/settings/integrations.ts +12 -1
- 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
|
@@ -25,6 +25,8 @@ export class ItemCategories extends APIResource {
|
|
|
25
25
|
* Returns a paginated list of item categories for the current account, including
|
|
26
26
|
* account-specific and global system categories.
|
|
27
27
|
*
|
|
28
|
+
* This endpoint requires the permission: `item_categories:read`.
|
|
29
|
+
*
|
|
28
30
|
* @example
|
|
29
31
|
* ```ts
|
|
30
32
|
* const listItemCategory =
|
|
@@ -43,6 +45,8 @@ export class ItemCategories extends APIResource {
|
|
|
43
45
|
*
|
|
44
46
|
* Both account-owned categories and global system categories can be retrieved.
|
|
45
47
|
*
|
|
48
|
+
* This endpoint requires the permission: `item_categories:read`.
|
|
49
|
+
*
|
|
46
50
|
* @example
|
|
47
51
|
* ```ts
|
|
48
52
|
* const itemCategory =
|
|
@@ -62,6 +66,8 @@ export class ItemCategories extends APIResource {
|
|
|
62
66
|
/**
|
|
63
67
|
* Creates an account-owned item category.
|
|
64
68
|
*
|
|
69
|
+
* This endpoint requires the permission: `item_categories:create`.
|
|
70
|
+
*
|
|
65
71
|
* @example
|
|
66
72
|
* ```ts
|
|
67
73
|
* const itemCategory =
|
|
@@ -83,12 +89,18 @@ export class ItemCategories extends APIResource {
|
|
|
83
89
|
* Only the fields provided in the request body are changed. Default system
|
|
84
90
|
* categories cannot be updated.
|
|
85
91
|
*
|
|
92
|
+
* This endpoint requires the permission: `item_categories:update`.
|
|
93
|
+
*
|
|
86
94
|
* @example
|
|
87
95
|
* ```ts
|
|
88
96
|
* const itemCategory =
|
|
89
97
|
* await client.catalog.itemCategories.update(
|
|
90
98
|
* 'ic_01ae7bd7bfd21ca0ab81e1357e',
|
|
91
|
-
* {
|
|
99
|
+
* {
|
|
100
|
+
* name: 'Electronic Components',
|
|
101
|
+
* notes:
|
|
102
|
+
* 'Covers passive and active components; excludes assemblies.',
|
|
103
|
+
* },
|
|
92
104
|
* );
|
|
93
105
|
* ```
|
|
94
106
|
*/
|
|
@@ -110,6 +122,8 @@ export class ItemCategories extends APIResource {
|
|
|
110
122
|
*
|
|
111
123
|
* Default system categories cannot be deleted.
|
|
112
124
|
*
|
|
125
|
+
* This endpoint requires the permission: `item_categories:delete`.
|
|
126
|
+
*
|
|
113
127
|
* @example
|
|
114
128
|
* ```ts
|
|
115
129
|
* const itemCategory =
|
|
@@ -129,6 +143,8 @@ export class ItemCategories extends APIResource {
|
|
|
129
143
|
* example, a category measured in `mass` units can only switch to another `mass`
|
|
130
144
|
* unit group. Default system categories cannot be modified.
|
|
131
145
|
*
|
|
146
|
+
* This endpoint requires the permission: `item_categories:update`.
|
|
147
|
+
*
|
|
132
148
|
* @example
|
|
133
149
|
* ```ts
|
|
134
150
|
* const response =
|
|
@@ -17,6 +17,8 @@ export class Properties extends APIResource {
|
|
|
17
17
|
* name duplicates one already in the category returns a conflict error. Default
|
|
18
18
|
* system categories cannot be modified.
|
|
19
19
|
*
|
|
20
|
+
* This endpoint requires the permission: `item_categories:update`.
|
|
21
|
+
*
|
|
20
22
|
* @example
|
|
21
23
|
* ```ts
|
|
22
24
|
* const property =
|
|
@@ -40,6 +42,8 @@ export class Properties extends APIResource {
|
|
|
40
42
|
*
|
|
41
43
|
* Default system categories cannot be modified.
|
|
42
44
|
*
|
|
45
|
+
* This endpoint requires the permission: `item_categories:update`.
|
|
46
|
+
*
|
|
43
47
|
* @example
|
|
44
48
|
* ```ts
|
|
45
49
|
* const property =
|
|
@@ -15,6 +15,8 @@ export class Attributes extends APIResource {
|
|
|
15
15
|
*
|
|
16
16
|
* If the attribute is already associated with the item, this is a no-op.
|
|
17
17
|
*
|
|
18
|
+
* This endpoint requires the permission: `items:update`.
|
|
19
|
+
*
|
|
18
20
|
* @example
|
|
19
21
|
* ```ts
|
|
20
22
|
* const item = await client.catalog.items.attributes.update(
|
|
@@ -38,6 +40,8 @@ export class Attributes extends APIResource {
|
|
|
38
40
|
/**
|
|
39
41
|
* Removes an attribute from an item.
|
|
40
42
|
*
|
|
43
|
+
* This endpoint requires the permission: `items:update`.
|
|
44
|
+
*
|
|
41
45
|
* @example
|
|
42
46
|
* ```ts
|
|
43
47
|
* const item = await client.catalog.items.attributes.delete(
|
|
@@ -20,6 +20,8 @@ export class Items extends APIResource {
|
|
|
20
20
|
/**
|
|
21
21
|
* Returns a paginated list of items.
|
|
22
22
|
*
|
|
23
|
+
* This endpoint requires the permission: `items:read`.
|
|
24
|
+
*
|
|
23
25
|
* @example
|
|
24
26
|
* ```ts
|
|
25
27
|
* const listItem = await client.catalog.items.list();
|
|
@@ -32,6 +34,8 @@ export class Items extends APIResource {
|
|
|
32
34
|
/**
|
|
33
35
|
* Returns an item by ID.
|
|
34
36
|
*
|
|
37
|
+
* This endpoint requires the permission: `items:read`.
|
|
38
|
+
*
|
|
35
39
|
* @example
|
|
36
40
|
* ```ts
|
|
37
41
|
* const item = await client.catalog.items.retrieve(
|
|
@@ -51,6 +55,8 @@ export class Items extends APIResource {
|
|
|
51
55
|
* Returns inventory quantities for an item, including on-hand, reserved,
|
|
52
56
|
* available-to-promise, and short amounts.
|
|
53
57
|
*
|
|
58
|
+
* This endpoint requires the permission: `items:read`.
|
|
59
|
+
*
|
|
54
60
|
* @example
|
|
55
61
|
* ```ts
|
|
56
62
|
* const itemInventory =
|
|
@@ -74,6 +80,8 @@ export class Items extends APIResource {
|
|
|
74
80
|
* order-point, consumption, and production quantity units are updated to the new
|
|
75
81
|
* category's base unit. Re-assigning the item's current category is a no-op.
|
|
76
82
|
*
|
|
83
|
+
* This endpoint requires the permission: `items:update`.
|
|
84
|
+
*
|
|
77
85
|
* @example
|
|
78
86
|
* ```ts
|
|
79
87
|
* const item = await client.catalog.items.changeCategory(
|
|
@@ -14,6 +14,9 @@ export class Materials extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated list of materials.
|
|
16
16
|
*
|
|
17
|
+
* This endpoint requires the permissions: `materials:read`, `customers:read`,
|
|
18
|
+
* `suppliers:read`.
|
|
19
|
+
*
|
|
17
20
|
* @example
|
|
18
21
|
* ```ts
|
|
19
22
|
* const listMaterial = await client.catalog.materials.list();
|
|
@@ -29,6 +32,9 @@ export class Materials extends APIResource {
|
|
|
29
32
|
/**
|
|
30
33
|
* Returns a material by ID.
|
|
31
34
|
*
|
|
35
|
+
* This endpoint requires the permissions: `materials:read`, `customers:read`,
|
|
36
|
+
* `suppliers:read`.
|
|
37
|
+
*
|
|
32
38
|
* @example
|
|
33
39
|
* ```ts
|
|
34
40
|
* const material = await client.catalog.materials.retrieve(
|
|
@@ -50,11 +56,37 @@ export class Materials extends APIResource {
|
|
|
50
56
|
* Inventory tracking for the new material starts at a zero on-hand quantity in the
|
|
51
57
|
* category's base unit.
|
|
52
58
|
*
|
|
59
|
+
* This endpoint requires the permissions: `materials:create`, `customers:update`,
|
|
60
|
+
* `suppliers:update`.
|
|
61
|
+
*
|
|
53
62
|
* @example
|
|
54
63
|
* ```ts
|
|
55
64
|
* const material = await client.catalog.materials.create({
|
|
56
65
|
* category_id: 'ic_01ae7bd7bfd21ca0ab81e1357e',
|
|
57
66
|
* sku: 'MAT-001',
|
|
67
|
+
* attribute_ids: ['at_01c9493ec0c46bb0ed12708ae4'],
|
|
68
|
+
* description:
|
|
69
|
+
* 'Cold-rolled 304 stainless steel sheet, 1.5mm',
|
|
70
|
+
* lead_time: {
|
|
71
|
+
* value: '7.00',
|
|
72
|
+
* unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
73
|
+
* },
|
|
74
|
+
* notes:
|
|
75
|
+
* 'Store flat in a dry area to avoid surface oxidation.',
|
|
76
|
+
* order_point: {
|
|
77
|
+
* value: '100.00',
|
|
78
|
+
* unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
79
|
+
* },
|
|
80
|
+
* unit_cost: {
|
|
81
|
+
* value: '8.25',
|
|
82
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
83
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
84
|
+
* },
|
|
85
|
+
* unit_price: {
|
|
86
|
+
* value: '12.50',
|
|
87
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
88
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
89
|
+
* },
|
|
58
90
|
* });
|
|
59
91
|
* ```
|
|
60
92
|
*/
|
|
@@ -68,11 +100,32 @@ export class Materials extends APIResource {
|
|
|
68
100
|
*
|
|
69
101
|
* Fields not provided retain their current values.
|
|
70
102
|
*
|
|
103
|
+
* This endpoint requires the permissions: `materials:update`, `customers:update`,
|
|
104
|
+
* `suppliers:update`.
|
|
105
|
+
*
|
|
71
106
|
* @example
|
|
72
107
|
* ```ts
|
|
73
108
|
* const material = await client.catalog.materials.update(
|
|
74
109
|
* 'ml_014613b8f7959a091d8cc0cef4',
|
|
75
|
-
* {
|
|
110
|
+
* {
|
|
111
|
+
* description:
|
|
112
|
+
* 'Cold-rolled 304 stainless steel sheet, 2.0mm',
|
|
113
|
+
* lead_time: {
|
|
114
|
+
* value: '10.00',
|
|
115
|
+
* unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
116
|
+
* },
|
|
117
|
+
* notes: 'Reorder point raised after Q2 demand spike.',
|
|
118
|
+
* order_point: {
|
|
119
|
+
* value: '150.00',
|
|
120
|
+
* unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
121
|
+
* },
|
|
122
|
+
* sku: 'MAT-001-UPDATED',
|
|
123
|
+
* unit_cost: {
|
|
124
|
+
* value: '9.10',
|
|
125
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
126
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
127
|
+
* },
|
|
128
|
+
* },
|
|
76
129
|
* );
|
|
77
130
|
* ```
|
|
78
131
|
*/
|
|
@@ -92,6 +145,9 @@ export class Materials extends APIResource {
|
|
|
92
145
|
* other endpoints, but the record is retained. Deleting an already-deleted
|
|
93
146
|
* material returns an error.
|
|
94
147
|
*
|
|
148
|
+
* This endpoint requires the permissions: `materials:delete`, `customers:update`,
|
|
149
|
+
* `suppliers:update`.
|
|
150
|
+
*
|
|
95
151
|
* @example
|
|
96
152
|
* ```ts
|
|
97
153
|
* const material = await client.catalog.materials.delete(
|
|
@@ -135,7 +191,7 @@ export interface CreateMaterialRequest {
|
|
|
135
191
|
description?: string;
|
|
136
192
|
|
|
137
193
|
/**
|
|
138
|
-
*
|
|
194
|
+
* A quantity, given as a decimal value and the unit it is measured in.
|
|
139
195
|
*/
|
|
140
196
|
lead_time?: QuantityInputRequest;
|
|
141
197
|
|
|
@@ -145,7 +201,7 @@ export interface CreateMaterialRequest {
|
|
|
145
201
|
notes?: string;
|
|
146
202
|
|
|
147
203
|
/**
|
|
148
|
-
*
|
|
204
|
+
* A quantity, given as a decimal value and the unit it is measured in.
|
|
149
205
|
*/
|
|
150
206
|
order_point?: QuantityInputRequest;
|
|
151
207
|
|
|
@@ -228,7 +284,7 @@ export interface Material {
|
|
|
228
284
|
}
|
|
229
285
|
|
|
230
286
|
/**
|
|
231
|
-
*
|
|
287
|
+
* A quantity, given as a decimal value and the unit it is measured in.
|
|
232
288
|
*/
|
|
233
289
|
export interface QuantityInputRequest {
|
|
234
290
|
/**
|
|
@@ -274,7 +330,7 @@ export interface UpdateMaterialRequest {
|
|
|
274
330
|
description?: string;
|
|
275
331
|
|
|
276
332
|
/**
|
|
277
|
-
*
|
|
333
|
+
* A quantity, given as a decimal value and the unit it is measured in.
|
|
278
334
|
*/
|
|
279
335
|
lead_time?: QuantityInputRequest;
|
|
280
336
|
|
|
@@ -284,7 +340,7 @@ export interface UpdateMaterialRequest {
|
|
|
284
340
|
notes?: string;
|
|
285
341
|
|
|
286
342
|
/**
|
|
287
|
-
*
|
|
343
|
+
* A quantity, given as a decimal value and the unit it is measured in.
|
|
288
344
|
*/
|
|
289
345
|
order_point?: QuantityInputRequest;
|
|
290
346
|
|
|
@@ -421,7 +477,7 @@ export interface MaterialCreateParams {
|
|
|
421
477
|
description?: string;
|
|
422
478
|
|
|
423
479
|
/**
|
|
424
|
-
* Body param:
|
|
480
|
+
* Body param: A quantity, given as a decimal value and the unit it is measured in.
|
|
425
481
|
*/
|
|
426
482
|
lead_time?: QuantityInputRequest;
|
|
427
483
|
|
|
@@ -431,7 +487,7 @@ export interface MaterialCreateParams {
|
|
|
431
487
|
notes?: string;
|
|
432
488
|
|
|
433
489
|
/**
|
|
434
|
-
* Body param:
|
|
490
|
+
* Body param: A quantity, given as a decimal value and the unit it is measured in.
|
|
435
491
|
*/
|
|
436
492
|
order_point?: QuantityInputRequest;
|
|
437
493
|
|
|
@@ -470,7 +526,7 @@ export interface MaterialUpdateParams {
|
|
|
470
526
|
description?: string;
|
|
471
527
|
|
|
472
528
|
/**
|
|
473
|
-
* Body param:
|
|
529
|
+
* Body param: A quantity, given as a decimal value and the unit it is measured in.
|
|
474
530
|
*/
|
|
475
531
|
lead_time?: QuantityInputRequest;
|
|
476
532
|
|
|
@@ -480,7 +536,7 @@ export interface MaterialUpdateParams {
|
|
|
480
536
|
notes?: string;
|
|
481
537
|
|
|
482
538
|
/**
|
|
483
|
-
* Body param:
|
|
539
|
+
* Body param: A quantity, given as a decimal value and the unit it is measured in.
|
|
484
540
|
*/
|
|
485
541
|
order_point?: QuantityInputRequest;
|
|
486
542
|
|
|
@@ -15,6 +15,9 @@ export class Parts extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns a paginated list of parts for the current account.
|
|
17
17
|
*
|
|
18
|
+
* This endpoint requires the permissions: `parts:read`, `customers:read`,
|
|
19
|
+
* `suppliers:read`.
|
|
20
|
+
*
|
|
18
21
|
* @example
|
|
19
22
|
* ```ts
|
|
20
23
|
* const listPart = await client.catalog.parts.list();
|
|
@@ -27,6 +30,9 @@ export class Parts extends APIResource {
|
|
|
27
30
|
/**
|
|
28
31
|
* Returns a part by ID.
|
|
29
32
|
*
|
|
33
|
+
* This endpoint requires the permissions: `parts:read`, `customers:read`,
|
|
34
|
+
* `suppliers:read`.
|
|
35
|
+
*
|
|
30
36
|
* @example
|
|
31
37
|
* ```ts
|
|
32
38
|
* const part = await client.catalog.parts.retrieve(
|
|
@@ -48,12 +54,28 @@ export class Parts extends APIResource {
|
|
|
48
54
|
* Inventory tracking for the new part starts at a zero on-hand quantity in the
|
|
49
55
|
* category's base unit.
|
|
50
56
|
*
|
|
57
|
+
* This endpoint requires the permissions: `parts:create`, `customers:update`,
|
|
58
|
+
* `suppliers:update`.
|
|
59
|
+
*
|
|
51
60
|
* @example
|
|
52
61
|
* ```ts
|
|
53
62
|
* const part = await client.catalog.parts.create({
|
|
54
63
|
* category_id: 'ic_01ae7bd7bfd21ca0ab81e1357e',
|
|
55
64
|
* sku: 'BRG-6204-2RS',
|
|
65
|
+
* attribute_ids: ['at_01c9493ec0c46bb0ed12708ae4'],
|
|
56
66
|
* description: 'Deep groove ball bearing, 20x47x14mm',
|
|
67
|
+
* notes:
|
|
68
|
+
* 'OEM-equivalent; verify shielding type before substitution.',
|
|
69
|
+
* unit_cost: {
|
|
70
|
+
* value: '9.40',
|
|
71
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
72
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
73
|
+
* },
|
|
74
|
+
* unit_price: {
|
|
75
|
+
* value: '14.99',
|
|
76
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
77
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
78
|
+
* },
|
|
57
79
|
* });
|
|
58
80
|
* ```
|
|
59
81
|
*/
|
|
@@ -67,12 +89,17 @@ export class Parts extends APIResource {
|
|
|
67
89
|
*
|
|
68
90
|
* Fields not provided retain their current values.
|
|
69
91
|
*
|
|
92
|
+
* This endpoint requires the permissions: `parts:update`, `customers:update`,
|
|
93
|
+
* `suppliers:update`.
|
|
94
|
+
*
|
|
70
95
|
* @example
|
|
71
96
|
* ```ts
|
|
72
97
|
* const part = await client.catalog.parts.update(
|
|
73
98
|
* 'pt_018d7bab53e864351f4c693a21',
|
|
74
99
|
* {
|
|
75
100
|
* description: 'Deep groove ball bearing, 20x47x14mm',
|
|
101
|
+
* notes:
|
|
102
|
+
* 'Superseded by low-friction variant; keep for legacy assemblies.',
|
|
76
103
|
* sku: 'BRG-6204-2RS',
|
|
77
104
|
* },
|
|
78
105
|
* );
|
|
@@ -94,6 +121,9 @@ export class Parts extends APIResource {
|
|
|
94
121
|
* other endpoints, but the record is retained. Deleting an already-deleted part
|
|
95
122
|
* returns an error.
|
|
96
123
|
*
|
|
124
|
+
* This endpoint requires the permissions: `parts:delete`, `customers:update`,
|
|
125
|
+
* `suppliers:update`.
|
|
126
|
+
*
|
|
97
127
|
* @example
|
|
98
128
|
* ```ts
|
|
99
129
|
* const part = await client.catalog.parts.delete(
|
|
@@ -15,6 +15,9 @@ export class ProductLines extends APIResource {
|
|
|
15
15
|
* Returns a paginated list of product lines, including account-owned and system
|
|
16
16
|
* product lines.
|
|
17
17
|
*
|
|
18
|
+
* This endpoint requires the permissions: `product_lines:read`, `customers:read`,
|
|
19
|
+
* `suppliers:read`.
|
|
20
|
+
*
|
|
18
21
|
* @example
|
|
19
22
|
* ```ts
|
|
20
23
|
* const listProductLine =
|
|
@@ -32,6 +35,9 @@ export class ProductLines extends APIResource {
|
|
|
32
35
|
* Returns a product line by ID, including system-owned product lines accessible to
|
|
33
36
|
* the account.
|
|
34
37
|
*
|
|
38
|
+
* This endpoint requires the permissions: `product_lines:read`, `customers:read`,
|
|
39
|
+
* `suppliers:read`.
|
|
40
|
+
*
|
|
35
41
|
* @example
|
|
36
42
|
* ```ts
|
|
37
43
|
* const productLine =
|
|
@@ -51,6 +57,8 @@ export class ProductLines extends APIResource {
|
|
|
51
57
|
/**
|
|
52
58
|
* Creates an account-owned product line.
|
|
53
59
|
*
|
|
60
|
+
* This endpoint requires the permission: `product_lines:create`.
|
|
61
|
+
*
|
|
54
62
|
* @example
|
|
55
63
|
* ```ts
|
|
56
64
|
* const productLine =
|
|
@@ -73,12 +81,19 @@ export class ProductLines extends APIResource {
|
|
|
73
81
|
* Only the provided fields are changed. The reserved default product lines
|
|
74
82
|
* (shipping, service, credit, tax) cannot be updated.
|
|
75
83
|
*
|
|
84
|
+
* This endpoint requires the permission: `product_lines:update`.
|
|
85
|
+
*
|
|
76
86
|
* @example
|
|
77
87
|
* ```ts
|
|
78
88
|
* const productLine =
|
|
79
89
|
* await client.catalog.productLines.update(
|
|
80
90
|
* 'pl_01996357326a0d3f7b129542ea',
|
|
81
|
-
* {
|
|
91
|
+
* {
|
|
92
|
+
* commission_policy: 'commission_applied',
|
|
93
|
+
* freight_policy: 'billed_freight',
|
|
94
|
+
* name: 'Updated Product Line',
|
|
95
|
+
* unit_group_id: 'ug_01aad07abb8e41fd392d2d7013',
|
|
96
|
+
* },
|
|
82
97
|
* );
|
|
83
98
|
* ```
|
|
84
99
|
*/
|
|
@@ -101,6 +116,8 @@ export class ProductLines extends APIResource {
|
|
|
101
116
|
* The reserved default product lines (shipping, service, credit, tax) cannot be
|
|
102
117
|
* deleted.
|
|
103
118
|
*
|
|
119
|
+
* This endpoint requires the permission: `product_lines:delete`.
|
|
120
|
+
*
|
|
104
121
|
* @example
|
|
105
122
|
* ```ts
|
|
106
123
|
* const productLine =
|
|
@@ -16,6 +16,9 @@ export class Products extends APIResource {
|
|
|
16
16
|
/**
|
|
17
17
|
* Returns a paginated list of products for the target account.
|
|
18
18
|
*
|
|
19
|
+
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
20
|
+
* `suppliers:read`.
|
|
21
|
+
*
|
|
19
22
|
* @example
|
|
20
23
|
* ```ts
|
|
21
24
|
* const listProduct = await client.catalog.products.list();
|
|
@@ -28,6 +31,9 @@ export class Products extends APIResource {
|
|
|
28
31
|
/**
|
|
29
32
|
* Returns a product by ID.
|
|
30
33
|
*
|
|
34
|
+
* This endpoint requires the permissions: `items:read`, `customers:read`,
|
|
35
|
+
* `suppliers:read`.
|
|
36
|
+
*
|
|
31
37
|
* @example
|
|
32
38
|
* ```ts
|
|
33
39
|
* const product = await client.catalog.products.retrieve(
|
|
@@ -50,12 +56,31 @@ export class Products extends APIResource {
|
|
|
50
56
|
* zero rates in the category's base unit unless `unit_price` or `unit_cost` is
|
|
51
57
|
* provided.
|
|
52
58
|
*
|
|
59
|
+
* This endpoint requires the permission: `items:create`.
|
|
60
|
+
*
|
|
53
61
|
* @example
|
|
54
62
|
* ```ts
|
|
55
63
|
* const product = await client.catalog.products.create({
|
|
56
64
|
* category_id: 'ic_01ae7bd7bfd21ca0ab81e1357e',
|
|
57
65
|
* sku: 'ALM-2024-1001',
|
|
58
66
|
* type: 'sale',
|
|
67
|
+
* attribute_ids: ['at_01c9493ec0c46bb0ed12708ae4'],
|
|
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: 'pl_01996357326a0d3f7b129542ea',
|
|
74
|
+
* unit_cost: {
|
|
75
|
+
* value: '112.00',
|
|
76
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
77
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
78
|
+
* },
|
|
79
|
+
* unit_price: {
|
|
80
|
+
* value: '199.00',
|
|
81
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
82
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
83
|
+
* },
|
|
59
84
|
* });
|
|
60
85
|
* ```
|
|
61
86
|
*/
|
|
@@ -67,11 +92,25 @@ export class Products extends APIResource {
|
|
|
67
92
|
/**
|
|
68
93
|
* Partially updates a product.
|
|
69
94
|
*
|
|
95
|
+
* This endpoint requires the permission: `items:update`.
|
|
96
|
+
*
|
|
70
97
|
* @example
|
|
71
98
|
* ```ts
|
|
72
99
|
* const product = await client.catalog.products.update(
|
|
73
100
|
* 'pd_013c29ab3f1518d0004094c316',
|
|
74
|
-
* {
|
|
101
|
+
* {
|
|
102
|
+
* description:
|
|
103
|
+
* 'Wireless barcode scanner with charging cradle (v2)',
|
|
104
|
+
* notes:
|
|
105
|
+
* 'Firmware 2.1 improves Bluetooth pairing reliability.',
|
|
106
|
+
* portal_visibility: 'visible',
|
|
107
|
+
* sku: 'SKU-002',
|
|
108
|
+
* unit_price: {
|
|
109
|
+
* value: '219.00',
|
|
110
|
+
* numerator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
111
|
+
* denominator_unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
112
|
+
* },
|
|
113
|
+
* },
|
|
75
114
|
* );
|
|
76
115
|
* ```
|
|
77
116
|
*/
|
|
@@ -87,6 +126,8 @@ export class Products extends APIResource {
|
|
|
87
126
|
/**
|
|
88
127
|
* Soft-deletes a product and returns the deleted product.
|
|
89
128
|
*
|
|
129
|
+
* This endpoint requires the permission: `items:delete`.
|
|
130
|
+
*
|
|
90
131
|
* @example
|
|
91
132
|
* ```ts
|
|
92
133
|
* const product = await client.catalog.products.delete(
|
|
@@ -106,6 +147,8 @@ export class Products extends APIResource {
|
|
|
106
147
|
/**
|
|
107
148
|
* Changes the product line assignment for a product.
|
|
108
149
|
*
|
|
150
|
+
* This endpoint requires the permission: `items:update`.
|
|
151
|
+
*
|
|
109
152
|
* @example
|
|
110
153
|
* ```ts
|
|
111
154
|
* const product =
|
|
@@ -167,12 +210,12 @@ export interface CreateProductRequest {
|
|
|
167
210
|
attribute_ids?: Array<string>;
|
|
168
211
|
|
|
169
212
|
/**
|
|
170
|
-
*
|
|
213
|
+
* Free-form description of the product.
|
|
171
214
|
*/
|
|
172
215
|
description?: string;
|
|
173
216
|
|
|
174
217
|
/**
|
|
175
|
-
*
|
|
218
|
+
* Free-form notes about the product.
|
|
176
219
|
*/
|
|
177
220
|
notes?: string;
|
|
178
221
|
|
|
@@ -292,14 +335,14 @@ export interface Product {
|
|
|
292
335
|
*/
|
|
293
336
|
export interface UpdateProductRequest {
|
|
294
337
|
/**
|
|
295
|
-
*
|
|
338
|
+
* Free-form description of the product.
|
|
296
339
|
*
|
|
297
340
|
* Send `null` to clear.
|
|
298
341
|
*/
|
|
299
342
|
description?: string | null;
|
|
300
343
|
|
|
301
344
|
/**
|
|
302
|
-
*
|
|
345
|
+
* Free-form notes about the product.
|
|
303
346
|
*
|
|
304
347
|
* Send `null` to clear.
|
|
305
348
|
*/
|
|
@@ -494,12 +537,12 @@ export interface ProductCreateParams {
|
|
|
494
537
|
attribute_ids?: Array<string>;
|
|
495
538
|
|
|
496
539
|
/**
|
|
497
|
-
* Body param:
|
|
540
|
+
* Body param: Free-form description of the product.
|
|
498
541
|
*/
|
|
499
542
|
description?: string;
|
|
500
543
|
|
|
501
544
|
/**
|
|
502
|
-
* Body param:
|
|
545
|
+
* Body param: Free-form notes about the product.
|
|
503
546
|
*/
|
|
504
547
|
notes?: string;
|
|
505
548
|
|
|
@@ -558,14 +601,14 @@ export interface ProductUpdateParams {
|
|
|
558
601
|
>;
|
|
559
602
|
|
|
560
603
|
/**
|
|
561
|
-
* Body param:
|
|
604
|
+
* Body param: Free-form description of the product.
|
|
562
605
|
*
|
|
563
606
|
* Send `null` to clear.
|
|
564
607
|
*/
|
|
565
608
|
description?: string | null;
|
|
566
609
|
|
|
567
610
|
/**
|
|
568
|
-
* Body param:
|
|
611
|
+
* Body param: Free-form notes about the product.
|
|
569
612
|
*
|
|
570
613
|
* Send `null` to clear.
|
|
571
614
|
*/
|
|
@@ -13,6 +13,8 @@ export class Attributes extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Returns a paginated list of attributes for a property.
|
|
15
15
|
*
|
|
16
|
+
* This endpoint requires the permission: `properties:read`.
|
|
17
|
+
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
20
|
* const listAttribute =
|
|
@@ -32,6 +34,8 @@ export class Attributes extends APIResource {
|
|
|
32
34
|
/**
|
|
33
35
|
* Returns an attribute by ID within a property.
|
|
34
36
|
*
|
|
37
|
+
* This endpoint requires the permission: `properties:read`.
|
|
38
|
+
*
|
|
35
39
|
* @example
|
|
36
40
|
* ```ts
|
|
37
41
|
* const attribute =
|
|
@@ -53,6 +57,8 @@ export class Attributes extends APIResource {
|
|
|
53
57
|
/**
|
|
54
58
|
* Creates an attribute under a property.
|
|
55
59
|
*
|
|
60
|
+
* This endpoint requires the permission: `properties:create`.
|
|
61
|
+
*
|
|
56
62
|
* @example
|
|
57
63
|
* ```ts
|
|
58
64
|
* const attribute =
|
|
@@ -77,6 +83,8 @@ export class Attributes extends APIResource {
|
|
|
77
83
|
/**
|
|
78
84
|
* Partially updates an attribute.
|
|
79
85
|
*
|
|
86
|
+
* This endpoint requires the permission: `properties:update`.
|
|
87
|
+
*
|
|
80
88
|
* @example
|
|
81
89
|
* ```ts
|
|
82
90
|
* const attribute =
|
|
@@ -84,6 +92,8 @@ export class Attributes extends APIResource {
|
|
|
84
92
|
* 'at_01c9493ec0c46bb0ed12708ae4',
|
|
85
93
|
* {
|
|
86
94
|
* property_id: 'pp_01e21344878064372f69e67093',
|
|
95
|
+
* color: 'blue',
|
|
96
|
+
* sort_order: 2,
|
|
87
97
|
* value: 'Blue',
|
|
88
98
|
* },
|
|
89
99
|
* );
|
|
@@ -107,6 +117,8 @@ export class Attributes extends APIResource {
|
|
|
107
117
|
* Remaining attributes in the property are shifted so their sort orders stay
|
|
108
118
|
* contiguous.
|
|
109
119
|
*
|
|
120
|
+
* This endpoint requires the permission: `properties:delete`.
|
|
121
|
+
*
|
|
110
122
|
* @example
|
|
111
123
|
* ```ts
|
|
112
124
|
* const attribute =
|
|
@@ -27,6 +27,8 @@ export class Properties extends APIResource {
|
|
|
27
27
|
/**
|
|
28
28
|
* Returns a paginated list of properties for the target account.
|
|
29
29
|
*
|
|
30
|
+
* This endpoint requires the permission: `properties:read`.
|
|
31
|
+
*
|
|
30
32
|
* @example
|
|
31
33
|
* ```ts
|
|
32
34
|
* const listProperty = await client.catalog.properties.list();
|
|
@@ -42,6 +44,8 @@ export class Properties extends APIResource {
|
|
|
42
44
|
/**
|
|
43
45
|
* Returns a property by ID.
|
|
44
46
|
*
|
|
47
|
+
* This endpoint requires the permission: `properties:read`.
|
|
48
|
+
*
|
|
45
49
|
* @example
|
|
46
50
|
* ```ts
|
|
47
51
|
* const property = await client.catalog.properties.retrieve(
|
|
@@ -60,6 +64,8 @@ export class Properties extends APIResource {
|
|
|
60
64
|
/**
|
|
61
65
|
* Creates a property.
|
|
62
66
|
*
|
|
67
|
+
* This endpoint requires the permission: `properties:create`.
|
|
68
|
+
*
|
|
63
69
|
* @example
|
|
64
70
|
* ```ts
|
|
65
71
|
* const property = await client.catalog.properties.create({
|
|
@@ -75,6 +81,8 @@ export class Properties extends APIResource {
|
|
|
75
81
|
/**
|
|
76
82
|
* Partially updates a property.
|
|
77
83
|
*
|
|
84
|
+
* This endpoint requires the permission: `properties:update`.
|
|
85
|
+
*
|
|
78
86
|
* @example
|
|
79
87
|
* ```ts
|
|
80
88
|
* const property = await client.catalog.properties.update(
|
|
@@ -95,6 +103,8 @@ export class Properties extends APIResource {
|
|
|
95
103
|
/**
|
|
96
104
|
* Deletes a property and all associated attributes.
|
|
97
105
|
*
|
|
106
|
+
* This endpoint requires the permission: `properties:delete`.
|
|
107
|
+
*
|
|
98
108
|
* @example
|
|
99
109
|
* ```ts
|
|
100
110
|
* const property = await client.catalog.properties.delete(
|