@augno/sdk 0.7.0 → 0.7.1
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/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 +1 -1
- 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 +11 -3
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +11 -3
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +8 -0
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +8 -0
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +12 -0
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +12 -0
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +12 -0
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +12 -0
- 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 +24 -9
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +24 -9
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +15 -0
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +15 -0
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +15 -0
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +15 -0
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +15 -0
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +15 -0
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +12 -0
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +12 -0
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +12 -0
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +12 -0
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +22 -8
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +22 -8
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +14 -0
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +14 -0
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +10 -0
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +10 -0
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +10 -0
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +10 -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 +18 -7
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +18 -7
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +12 -2
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +12 -2
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +10 -0
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +10 -0
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +10 -0
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +10 -0
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/units.d.mts +48 -25
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +48 -25
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +14 -2
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +14 -2
- package/resources/catalog/units.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 +17 -5
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +17 -5
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +12 -0
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +12 -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 +1328 -0
- package/resources/messaging/conversations/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations/conversations.d.ts +1328 -0
- package/resources/messaging/conversations/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations/conversations.js +109 -0
- package/resources/messaging/conversations/conversations.js.map +1 -0
- package/resources/messaging/conversations/conversations.mjs +104 -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 +332 -0
- package/resources/messaging/conversations/messages.d.mts.map +1 -0
- package/resources/messaging/conversations/messages.d.ts +332 -0
- package/resources/messaging/conversations/messages.d.ts.map +1 -0
- package/resources/messaging/conversations/messages.js +60 -0
- package/resources/messaging/conversations/messages.js.map +1 -0
- package/resources/messaging/conversations/messages.mjs +56 -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 +327 -0
- package/resources/messaging/email-inboxes.d.mts.map +1 -0
- package/resources/messaging/email-inboxes.d.ts +327 -0
- package/resources/messaging/email-inboxes.d.ts.map +1 -0
- package/resources/messaging/email-inboxes.js +101 -0
- package/resources/messaging/email-inboxes.js.map +1 -0
- package/resources/messaging/email-inboxes.mjs +97 -0
- package/resources/messaging/email-inboxes.mjs.map +1 -0
- package/resources/messaging/groups/groups.d.mts +159 -0
- package/resources/messaging/groups/groups.d.mts.map +1 -0
- package/resources/messaging/groups/groups.d.ts +159 -0
- package/resources/messaging/groups/groups.d.ts.map +1 -0
- package/resources/messaging/groups/groups.js +107 -0
- package/resources/messaging/groups/groups.js.map +1 -0
- package/resources/messaging/groups/groups.mjs +102 -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 +83 -0
- package/resources/messaging/groups/members.d.mts.map +1 -0
- package/resources/messaging/groups/members.d.ts +83 -0
- package/resources/messaging/groups/members.d.ts.map +1 -0
- package/resources/messaging/groups/members.js +51 -0
- package/resources/messaging/groups/members.js.map +1 -0
- package/resources/messaging/groups/members.mjs +47 -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 +61 -0
- package/resources/messaging/messages/messages.d.mts.map +1 -0
- package/resources/messaging/messages/messages.d.ts +61 -0
- package/resources/messaging/messages/messages.d.ts.map +1 -0
- package/resources/messaging/messages/messages.js +40 -0
- package/resources/messaging/messages/messages.js.map +1 -0
- package/resources/messaging/messages/messages.mjs +35 -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 +440 -0
- package/resources/messaging/notifications/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications/notifications.d.ts +440 -0
- package/resources/messaging/notifications/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications/notifications.js +104 -0
- package/resources/messaging/notifications/notifications.js.map +1 -0
- package/resources/messaging/notifications/notifications.mjs +99 -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 +16 -6
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +16 -6
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +12 -0
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +12 -0
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +12 -0
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +12 -0
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +12 -0
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +12 -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 +19 -9
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +19 -9
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +10 -0
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +10 -0
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +15 -5
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +15 -5
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +10 -0
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +10 -0
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +10 -0
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +10 -0
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +10 -0
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +10 -0
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +10 -0
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +10 -0
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +10 -0
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +10 -0
- 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 +20 -5
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +20 -5
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +15 -0
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +15 -0
- 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 +17 -553
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +17 -553
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +10 -0
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +10 -0
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +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 +45 -42
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +45 -42
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +5 -0
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +5 -0
- 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 +8 -0
- package/resources/settings/integrations.d.mts.map +1 -1
- package/resources/settings/integrations.d.ts +8 -0
- package/resources/settings/integrations.d.ts.map +1 -1
- package/resources/settings/integrations.js +8 -0
- package/resources/settings/integrations.js.map +1 -1
- package/resources/settings/integrations.mjs +8 -0
- 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 +11 -3
- package/src/resources/catalog/item-categories/item-categories.ts +12 -0
- 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 +24 -9
- package/src/resources/catalog/parts.ts +15 -0
- package/src/resources/catalog/product-lines.ts +12 -0
- package/src/resources/catalog/products.ts +22 -8
- package/src/resources/catalog/properties/attributes.ts +10 -0
- package/src/resources/catalog/properties/properties.ts +10 -0
- package/src/resources/catalog/unit-groups/unit-groups.ts +18 -7
- package/src/resources/catalog/unit-groups/units.ts +10 -0
- package/src/resources/catalog/units.ts +48 -25
- package/src/resources/core/audit-events.ts +111 -11
- package/src/resources/core/core.ts +600 -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 +17 -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 +2452 -0
- package/src/resources/messaging/conversations/index.ts +80 -0
- package/src/resources/messaging/conversations/links.ts +690 -0
- package/src/resources/messaging/conversations/messages.ts +906 -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 +408 -0
- package/src/resources/messaging/groups/groups.ts +208 -0
- package/src/resources/messaging/groups/index.ts +17 -0
- package/src/resources/messaging/groups/members.ts +112 -0
- package/src/resources/messaging/groups.ts +3 -0
- package/src/resources/messaging/index.ts +115 -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 +107 -0
- package/src/resources/messaging/messages.ts +3 -0
- package/src/resources/messaging/messaging.ts +351 -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 +1051 -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 +16 -6
- package/src/resources/operations/carriers/service-levels.ts +12 -0
- package/src/resources/operations/location-types.ts +6 -2
- package/src/resources/operations/locations.ts +19 -9
- package/src/resources/operations/scanning-stations.ts +15 -5
- package/src/resources/operations/shipping-terms.ts +10 -0
- package/src/resources/sales/account-groups.ts +10 -0
- package/src/resources/sales/account-statuses.ts +1 -1
- package/src/resources/sales/addresses.ts +20 -5
- 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 +20 -666
- 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 +45 -44
- package/src/resources/sales/sales.ts +6 -30
- package/src/resources/settings/integrations.ts +8 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Manage per-category notification channel preferences (in-app, email, push).
|
|
10
|
+
*/
|
|
11
|
+
export class Preferences extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Lists the caller's notification channel preferences (global default +
|
|
14
|
+
* per-category overrides).
|
|
15
|
+
*
|
|
16
|
+
* This endpoint requires the permission: `messaging:read`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const listNotificationPreference =
|
|
21
|
+
* await client.messaging.preferences.list();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(options?: RequestOptions): APIPromise<ListNotificationPreference> {
|
|
25
|
+
return this._client.get('/v1/messaging/preferences', options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Creates or replaces a notification channel preference for the caller.
|
|
30
|
+
*
|
|
31
|
+
* This endpoint requires the permission: `messaging:update`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const notificationPreference =
|
|
36
|
+
* await client.messaging.preferences.update({
|
|
37
|
+
* email_enabled: false,
|
|
38
|
+
* in_app_enabled: true,
|
|
39
|
+
* push_enabled: false,
|
|
40
|
+
* category: 'chat.message',
|
|
41
|
+
* digest: 'instant',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(body: PreferenceUpdateParams, options?: RequestOptions): APIPromise<NotificationPreference> {
|
|
46
|
+
return this._client.put('/v1/messaging/preferences', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* List represents a paginated list of resources.
|
|
52
|
+
*/
|
|
53
|
+
export interface ListNotificationPreference {
|
|
54
|
+
/**
|
|
55
|
+
* Resources in this page.
|
|
56
|
+
*/
|
|
57
|
+
data: Array<NotificationPreference>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Resource type identifier.
|
|
61
|
+
*/
|
|
62
|
+
object: 'list';
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* PageInfo contains URL-based pagination metadata.
|
|
66
|
+
*/
|
|
67
|
+
page_info: APIKeysAPI.PageInfo;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A per-(user, category) notification channel preference.
|
|
72
|
+
*
|
|
73
|
+
* A preference with a `null` category is the user's global default; a
|
|
74
|
+
* category-specific preference overrides it.
|
|
75
|
+
*/
|
|
76
|
+
export interface NotificationPreference {
|
|
77
|
+
/**
|
|
78
|
+
* Preference ID.
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The notification category this preference applies to.
|
|
84
|
+
*
|
|
85
|
+
* `null` for the global default that applies to all categories without a specific
|
|
86
|
+
* preference.
|
|
87
|
+
*/
|
|
88
|
+
category: string | null;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Creation timestamp.
|
|
92
|
+
*/
|
|
93
|
+
created_at: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* How email delivery for this category is batched.
|
|
97
|
+
*
|
|
98
|
+
* - `instant`: send an email as soon as an eligible notification occurs.
|
|
99
|
+
* - `hourly`: batch eligible notifications into a single hourly email.
|
|
100
|
+
* - `daily`: batch eligible notifications into a single daily email.
|
|
101
|
+
* - `off`: never send email for this category, even when email delivery is
|
|
102
|
+
* otherwise enabled.
|
|
103
|
+
*/
|
|
104
|
+
digest: 'instant' | 'hourly' | 'daily' | 'off';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Whether email notifications are delivered for this category.
|
|
108
|
+
*/
|
|
109
|
+
email_enabled: boolean;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Whether in-app (bell) notifications are delivered for this category.
|
|
113
|
+
*/
|
|
114
|
+
in_app_enabled: boolean;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Resource type identifier.
|
|
118
|
+
*/
|
|
119
|
+
object: 'notification_preference';
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Whether push notifications are delivered for this category.
|
|
123
|
+
*/
|
|
124
|
+
push_enabled: boolean;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Last update timestamp.
|
|
128
|
+
*/
|
|
129
|
+
updated_at: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Request to create or replace a notification preference for the caller.
|
|
134
|
+
*
|
|
135
|
+
* The preference is keyed by (caller, category), so repeating the request with the
|
|
136
|
+
* same category replaces the existing preference.
|
|
137
|
+
*/
|
|
138
|
+
export interface UpsertNotificationPreferenceRequest {
|
|
139
|
+
/**
|
|
140
|
+
* Whether email notifications are delivered for this category.
|
|
141
|
+
*/
|
|
142
|
+
email_enabled: boolean;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Whether in-app (bell) notifications are delivered for this category.
|
|
146
|
+
*/
|
|
147
|
+
in_app_enabled: boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Whether push notifications are delivered for this category.
|
|
151
|
+
*/
|
|
152
|
+
push_enabled: boolean;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The notification category this preference applies to.
|
|
156
|
+
*
|
|
157
|
+
* Omit (or `null`) to set the caller's global default.
|
|
158
|
+
*/
|
|
159
|
+
category?: string | null;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* How email delivery for this category is batched.
|
|
163
|
+
*
|
|
164
|
+
* - `instant`: send an email as soon as an eligible notification occurs.
|
|
165
|
+
* - `hourly`: batch eligible notifications into a single hourly email.
|
|
166
|
+
* - `daily`: batch eligible notifications into a single daily email.
|
|
167
|
+
* - `off`: never send email for this category, even when email delivery is
|
|
168
|
+
* otherwise enabled.
|
|
169
|
+
*/
|
|
170
|
+
digest?: 'instant' | 'hourly' | 'daily' | 'off';
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface PreferenceUpdateParams {
|
|
174
|
+
/**
|
|
175
|
+
* Whether email notifications are delivered for this category.
|
|
176
|
+
*/
|
|
177
|
+
email_enabled: boolean;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Whether in-app (bell) notifications are delivered for this category.
|
|
181
|
+
*/
|
|
182
|
+
in_app_enabled: boolean;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Whether push notifications are delivered for this category.
|
|
186
|
+
*/
|
|
187
|
+
push_enabled: boolean;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The notification category this preference applies to.
|
|
191
|
+
*
|
|
192
|
+
* Omit (or `null`) to set the caller's global default.
|
|
193
|
+
*/
|
|
194
|
+
category?: string | null;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* How email delivery for this category is batched.
|
|
198
|
+
*
|
|
199
|
+
* - `instant`: send an email as soon as an eligible notification occurs.
|
|
200
|
+
* - `hourly`: batch eligible notifications into a single hourly email.
|
|
201
|
+
* - `daily`: batch eligible notifications into a single daily email.
|
|
202
|
+
* - `off`: never send email for this category, even when email delivery is
|
|
203
|
+
* otherwise enabled.
|
|
204
|
+
*/
|
|
205
|
+
digest?: 'instant' | 'hourly' | 'daily' | 'off';
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export declare namespace Preferences {
|
|
209
|
+
export {
|
|
210
|
+
type ListNotificationPreference as ListNotificationPreference,
|
|
211
|
+
type NotificationPreference as NotificationPreference,
|
|
212
|
+
type UpsertNotificationPreferenceRequest as UpsertNotificationPreferenceRequest,
|
|
213
|
+
type PreferenceUpdateParams as PreferenceUpdateParams,
|
|
214
|
+
};
|
|
215
|
+
}
|
|
@@ -28,6 +28,9 @@ export class Carriers extends APIResource {
|
|
|
28
28
|
/**
|
|
29
29
|
* Returns a paginated list of carriers for the current account.
|
|
30
30
|
*
|
|
31
|
+
* This endpoint requires the permissions: `carriers:read`, `customers:read`,
|
|
32
|
+
* `suppliers:read`.
|
|
33
|
+
*
|
|
31
34
|
* @example
|
|
32
35
|
* ```ts
|
|
33
36
|
* const listCarrier = await client.operations.carriers.list();
|
|
@@ -40,6 +43,9 @@ export class Carriers extends APIResource {
|
|
|
40
43
|
/**
|
|
41
44
|
* Returns a carrier by ID.
|
|
42
45
|
*
|
|
46
|
+
* This endpoint requires the permissions: `carriers:read`, `customers:read`,
|
|
47
|
+
* `suppliers:read`.
|
|
48
|
+
*
|
|
43
49
|
* @example
|
|
44
50
|
* ```ts
|
|
45
51
|
* const carrier = await client.operations.carriers.retrieve(
|
|
@@ -62,6 +68,8 @@ export class Carriers extends APIResource {
|
|
|
62
68
|
* connected through Shippo and its service levels are auto-synced, initially
|
|
63
69
|
* hidden from the customer portal. Sandbox accounts skip the Shippo connection.
|
|
64
70
|
*
|
|
71
|
+
* This endpoint requires the permission: `carriers:create`.
|
|
72
|
+
*
|
|
65
73
|
* @example
|
|
66
74
|
* ```ts
|
|
67
75
|
* const carrier = await client.operations.carriers.create({
|
|
@@ -80,6 +88,8 @@ export class Carriers extends APIResource {
|
|
|
80
88
|
/**
|
|
81
89
|
* Partially updates a carrier's name and portal visibility.
|
|
82
90
|
*
|
|
91
|
+
* This endpoint requires the permission: `carriers:update`.
|
|
92
|
+
*
|
|
83
93
|
* @example
|
|
84
94
|
* ```ts
|
|
85
95
|
* const carrier = await client.operations.carriers.update(
|
|
@@ -103,6 +113,8 @@ export class Carriers extends APIResource {
|
|
|
103
113
|
* If the carrier is connected through Shippo, its Shippo carrier account is
|
|
104
114
|
* deactivated. System-owned carriers cannot be deleted.
|
|
105
115
|
*
|
|
116
|
+
* This endpoint requires the permission: `carriers:delete`.
|
|
117
|
+
*
|
|
106
118
|
* @example
|
|
107
119
|
* ```ts
|
|
108
120
|
* const carrier = await client.operations.carriers.delete(
|
|
@@ -178,9 +190,8 @@ export interface UpdateCarrierRequest {
|
|
|
178
190
|
/**
|
|
179
191
|
* Carrier visibility in the customer portal.
|
|
180
192
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* checkout.
|
|
193
|
+
* A `visible` carrier can be selected by your customers at checkout; a `hidden`
|
|
194
|
+
* carrier is not offered there.
|
|
184
195
|
*/
|
|
185
196
|
customer_portal_visibility?: 'visible' | 'hidden';
|
|
186
197
|
|
|
@@ -278,9 +289,8 @@ export interface CarrierUpdateParams {
|
|
|
278
289
|
/**
|
|
279
290
|
* Body param: Carrier visibility in the customer portal.
|
|
280
291
|
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* checkout.
|
|
292
|
+
* A `visible` carrier can be selected by your customers at checkout; a `hidden`
|
|
293
|
+
* carrier is not offered there.
|
|
284
294
|
*/
|
|
285
295
|
customer_portal_visibility?: 'visible' | 'hidden';
|
|
286
296
|
|
|
@@ -13,6 +13,9 @@ export class ServiceLevels extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Returns a paginated list of service levels for a carrier.
|
|
15
15
|
*
|
|
16
|
+
* This endpoint requires the permissions: `carriers:read`, `customers:read`,
|
|
17
|
+
* `suppliers:read`.
|
|
18
|
+
*
|
|
16
19
|
* @example
|
|
17
20
|
* ```ts
|
|
18
21
|
* const listServiceLevel =
|
|
@@ -32,6 +35,9 @@ export class ServiceLevels extends APIResource {
|
|
|
32
35
|
/**
|
|
33
36
|
* Returns a service level by ID.
|
|
34
37
|
*
|
|
38
|
+
* This endpoint requires the permissions: `carriers:read`, `customers:read`,
|
|
39
|
+
* `suppliers:read`.
|
|
40
|
+
*
|
|
35
41
|
* @example
|
|
36
42
|
* ```ts
|
|
37
43
|
* const serviceLevel =
|
|
@@ -56,6 +62,8 @@ export class ServiceLevels extends APIResource {
|
|
|
56
62
|
/**
|
|
57
63
|
* Creates a service level for a carrier.
|
|
58
64
|
*
|
|
65
|
+
* This endpoint requires the permission: `carriers:create`.
|
|
66
|
+
*
|
|
59
67
|
* @example
|
|
60
68
|
* ```ts
|
|
61
69
|
* const serviceLevel =
|
|
@@ -87,6 +95,8 @@ export class ServiceLevels extends APIResource {
|
|
|
87
95
|
*
|
|
88
96
|
* System-owned service levels cannot be updated.
|
|
89
97
|
*
|
|
98
|
+
* This endpoint requires the permission: `carriers:update`.
|
|
99
|
+
*
|
|
90
100
|
* @example
|
|
91
101
|
* ```ts
|
|
92
102
|
* const serviceLevel =
|
|
@@ -118,6 +128,8 @@ export class ServiceLevels extends APIResource {
|
|
|
118
128
|
* System-owned service levels and the carrier's default service level cannot be
|
|
119
129
|
* deleted; unset `is_default` first to delete a default.
|
|
120
130
|
*
|
|
131
|
+
* This endpoint requires the permission: `carriers:delete`.
|
|
132
|
+
*
|
|
121
133
|
* @example
|
|
122
134
|
* ```ts
|
|
123
135
|
* const serviceLevel =
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as BlocksAPI from '../messaging/blocks';
|
|
4
5
|
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
5
|
-
import * as CustomersAPI from '../sales/customers/customers';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -14,6 +14,8 @@ export class LocationTypes extends APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated list of location types.
|
|
16
16
|
*
|
|
17
|
+
* This endpoint requires the permission: `locations:read`.
|
|
18
|
+
*
|
|
17
19
|
* @example
|
|
18
20
|
* ```ts
|
|
19
21
|
* const listLocationType =
|
|
@@ -30,6 +32,8 @@ export class LocationTypes extends APIResource {
|
|
|
30
32
|
/**
|
|
31
33
|
* Returns a location type by ID or code.
|
|
32
34
|
*
|
|
35
|
+
* This endpoint requires the permission: `locations:read`.
|
|
36
|
+
*
|
|
33
37
|
* @example
|
|
34
38
|
* ```ts
|
|
35
39
|
* const locationType =
|
|
@@ -83,7 +87,7 @@ export interface LocationType {
|
|
|
83
87
|
* - `shelf`: a shelf within a rack.
|
|
84
88
|
* - `bin`: a bin within a shelf.
|
|
85
89
|
*/
|
|
86
|
-
code:
|
|
90
|
+
code: BlocksAPI.LocationTypeCode;
|
|
87
91
|
|
|
88
92
|
/**
|
|
89
93
|
* Creation timestamp.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as BlocksAPI from '../messaging/blocks';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
@@ -13,6 +13,8 @@ export class Locations extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Returns a paginated list of locations in your account.
|
|
15
15
|
*
|
|
16
|
+
* This endpoint requires the permission: `locations:read`.
|
|
17
|
+
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
20
|
* const listLocation =
|
|
@@ -22,13 +24,15 @@ export class Locations extends APIResource {
|
|
|
22
24
|
list(
|
|
23
25
|
query: LocationListParams | null | undefined = {},
|
|
24
26
|
options?: RequestOptions,
|
|
25
|
-
): APIPromise<
|
|
27
|
+
): APIPromise<BlocksAPI.ListLocation> {
|
|
26
28
|
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* Returns a location by ID.
|
|
31
33
|
*
|
|
34
|
+
* This endpoint requires the permission: `locations:read`.
|
|
35
|
+
*
|
|
32
36
|
* @example
|
|
33
37
|
* ```ts
|
|
34
38
|
* const location = await client.operations.locations.retrieve(
|
|
@@ -40,13 +44,15 @@ export class Locations extends APIResource {
|
|
|
40
44
|
id: string,
|
|
41
45
|
query: LocationRetrieveParams | null | undefined = {},
|
|
42
46
|
options?: RequestOptions,
|
|
43
|
-
): APIPromise<
|
|
47
|
+
): APIPromise<BlocksAPI.Location> {
|
|
44
48
|
return this._client.get(path`/v1/operations/locations/${id}`, { query, ...options });
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/**
|
|
48
52
|
* Creates a storage location, optionally placing it in the location hierarchy.
|
|
49
53
|
*
|
|
54
|
+
* This endpoint requires the permission: `locations:create`.
|
|
55
|
+
*
|
|
50
56
|
* @example
|
|
51
57
|
* ```ts
|
|
52
58
|
* const location = await client.operations.locations.create({
|
|
@@ -55,7 +61,7 @@ export class Locations extends APIResource {
|
|
|
55
61
|
* });
|
|
56
62
|
* ```
|
|
57
63
|
*/
|
|
58
|
-
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<
|
|
64
|
+
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<BlocksAPI.Location> {
|
|
59
65
|
const { include, ...body } = params;
|
|
60
66
|
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
61
67
|
}
|
|
@@ -63,6 +69,8 @@ export class Locations extends APIResource {
|
|
|
63
69
|
/**
|
|
64
70
|
* Partially updates a location.
|
|
65
71
|
*
|
|
72
|
+
* This endpoint requires the permission: `locations:update`.
|
|
73
|
+
*
|
|
66
74
|
* @example
|
|
67
75
|
* ```ts
|
|
68
76
|
* const location = await client.operations.locations.update(
|
|
@@ -75,7 +83,7 @@ export class Locations extends APIResource {
|
|
|
75
83
|
id: string,
|
|
76
84
|
params: LocationUpdateParams | null | undefined = {},
|
|
77
85
|
options?: RequestOptions,
|
|
78
|
-
): APIPromise<
|
|
86
|
+
): APIPromise<BlocksAPI.Location> {
|
|
79
87
|
const { include, ...body } = params ?? {};
|
|
80
88
|
return this._client.patch(path`/v1/operations/locations/${id}`, { query: { include }, body, ...options });
|
|
81
89
|
}
|
|
@@ -86,6 +94,8 @@ export class Locations extends APIResource {
|
|
|
86
94
|
* Fails if the location has child locations; remove or reassign the children
|
|
87
95
|
* first.
|
|
88
96
|
*
|
|
97
|
+
* This endpoint requires the permission: `locations:delete`.
|
|
98
|
+
*
|
|
89
99
|
* @example
|
|
90
100
|
* ```ts
|
|
91
101
|
* const location = await client.operations.locations.delete(
|
|
@@ -119,7 +129,7 @@ export interface CreateLocationRequest {
|
|
|
119
129
|
* - `shelf`: a shelf within a rack.
|
|
120
130
|
* - `bin`: a bin within a shelf.
|
|
121
131
|
*/
|
|
122
|
-
type:
|
|
132
|
+
type: BlocksAPI.LocationTypeCode;
|
|
123
133
|
|
|
124
134
|
/**
|
|
125
135
|
* IDs of existing locations to attach as children of the new location.
|
|
@@ -173,7 +183,7 @@ export interface UpdateLocationRequest {
|
|
|
173
183
|
* - `shelf`: a shelf within a rack.
|
|
174
184
|
* - `bin`: a bin within a shelf.
|
|
175
185
|
*/
|
|
176
|
-
type?:
|
|
186
|
+
type?: BlocksAPI.LocationTypeCode;
|
|
177
187
|
}
|
|
178
188
|
|
|
179
189
|
export interface LocationDeleteResponse {}
|
|
@@ -234,7 +244,7 @@ export interface LocationCreateParams {
|
|
|
234
244
|
* - `shelf`: a shelf within a rack.
|
|
235
245
|
* - `bin`: a bin within a shelf.
|
|
236
246
|
*/
|
|
237
|
-
type:
|
|
247
|
+
type: BlocksAPI.LocationTypeCode;
|
|
238
248
|
|
|
239
249
|
/**
|
|
240
250
|
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
@@ -298,7 +308,7 @@ export interface LocationUpdateParams {
|
|
|
298
308
|
* - `shelf`: a shelf within a rack.
|
|
299
309
|
* - `bin`: a bin within a shelf.
|
|
300
310
|
*/
|
|
301
|
-
type?:
|
|
311
|
+
type?: BlocksAPI.LocationTypeCode;
|
|
302
312
|
}
|
|
303
313
|
|
|
304
314
|
export declare namespace Locations {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as BlocksAPI from '../messaging/blocks';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
@@ -13,6 +13,8 @@ export class ScanningStations extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Returns a paginated list of scanning stations in your account.
|
|
15
15
|
*
|
|
16
|
+
* This endpoint requires the permission: `scanners:read`.
|
|
17
|
+
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
20
|
* const listScanningStation =
|
|
@@ -22,13 +24,15 @@ export class ScanningStations extends APIResource {
|
|
|
22
24
|
list(
|
|
23
25
|
query: ScanningStationListParams | null | undefined = {},
|
|
24
26
|
options?: RequestOptions,
|
|
25
|
-
): APIPromise<
|
|
27
|
+
): APIPromise<BlocksAPI.ListScanningStation> {
|
|
26
28
|
return this._client.get('/v1/operations/scanning-stations', { query, ...options });
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* Returns a scanning station by ID.
|
|
31
33
|
*
|
|
34
|
+
* This endpoint requires the permission: `scanners:read`.
|
|
35
|
+
*
|
|
32
36
|
* @example
|
|
33
37
|
* ```ts
|
|
34
38
|
* const scanningStation =
|
|
@@ -41,7 +45,7 @@ export class ScanningStations extends APIResource {
|
|
|
41
45
|
id: string,
|
|
42
46
|
query: ScanningStationRetrieveParams | null | undefined = {},
|
|
43
47
|
options?: RequestOptions,
|
|
44
|
-
): APIPromise<
|
|
48
|
+
): APIPromise<BlocksAPI.ScanningStation> {
|
|
45
49
|
return this._client.get(path`/v1/operations/scanning-stations/${id}`, { query, ...options });
|
|
46
50
|
}
|
|
47
51
|
|
|
@@ -51,6 +55,8 @@ export class ScanningStations extends APIResource {
|
|
|
51
55
|
* Returns a conflict error if a scanning station with the same name already
|
|
52
56
|
* exists.
|
|
53
57
|
*
|
|
58
|
+
* This endpoint requires the permission: `scanners:create`.
|
|
59
|
+
*
|
|
54
60
|
* @example
|
|
55
61
|
* ```ts
|
|
56
62
|
* const scanningStation =
|
|
@@ -67,7 +73,7 @@ export class ScanningStations extends APIResource {
|
|
|
67
73
|
create(
|
|
68
74
|
params: ScanningStationCreateParams,
|
|
69
75
|
options?: RequestOptions,
|
|
70
|
-
): APIPromise<
|
|
76
|
+
): APIPromise<BlocksAPI.ScanningStation> {
|
|
71
77
|
const { include, ...body } = params;
|
|
72
78
|
return this._client.post('/v1/operations/scanning-stations', { query: { include }, body, ...options });
|
|
73
79
|
}
|
|
@@ -78,6 +84,8 @@ export class ScanningStations extends APIResource {
|
|
|
78
84
|
* Only the fields provided in the request are changed. Returns a conflict error if
|
|
79
85
|
* the new name is already in use by another scanning station.
|
|
80
86
|
*
|
|
87
|
+
* This endpoint requires the permission: `scanners:update`.
|
|
88
|
+
*
|
|
81
89
|
* @example
|
|
82
90
|
* ```ts
|
|
83
91
|
* const scanningStation =
|
|
@@ -91,7 +99,7 @@ export class ScanningStations extends APIResource {
|
|
|
91
99
|
id: string,
|
|
92
100
|
params: ScanningStationUpdateParams | null | undefined = {},
|
|
93
101
|
options?: RequestOptions,
|
|
94
|
-
): APIPromise<
|
|
102
|
+
): APIPromise<BlocksAPI.ScanningStation> {
|
|
95
103
|
const { include, ...body } = params ?? {};
|
|
96
104
|
return this._client.patch(path`/v1/operations/scanning-stations/${id}`, {
|
|
97
105
|
query: { include },
|
|
@@ -103,6 +111,8 @@ export class ScanningStations extends APIResource {
|
|
|
103
111
|
/**
|
|
104
112
|
* Deletes a scanning station.
|
|
105
113
|
*
|
|
114
|
+
* This endpoint requires the permission: `scanners:delete`.
|
|
115
|
+
*
|
|
106
116
|
* @example
|
|
107
117
|
* ```ts
|
|
108
118
|
* const scanningStation =
|
|
@@ -15,6 +15,8 @@ export class ShippingTerms extends APIResource {
|
|
|
15
15
|
* Returns a paginated list of shipping terms for the account, including default
|
|
16
16
|
* system shipping terms.
|
|
17
17
|
*
|
|
18
|
+
* This endpoint requires the permission: `shipping_terms:read`.
|
|
19
|
+
*
|
|
18
20
|
* @example
|
|
19
21
|
* ```ts
|
|
20
22
|
* const listShippingTerm =
|
|
@@ -31,6 +33,8 @@ export class ShippingTerms extends APIResource {
|
|
|
31
33
|
/**
|
|
32
34
|
* Returns a shipping term by ID.
|
|
33
35
|
*
|
|
36
|
+
* This endpoint requires the permission: `shipping_terms:read`.
|
|
37
|
+
*
|
|
34
38
|
* @example
|
|
35
39
|
* ```ts
|
|
36
40
|
* const shippingTerm =
|
|
@@ -50,6 +54,8 @@ export class ShippingTerms extends APIResource {
|
|
|
50
54
|
/**
|
|
51
55
|
* Creates an account-owned shipping term.
|
|
52
56
|
*
|
|
57
|
+
* This endpoint requires the permission: `shipping_terms:create`.
|
|
58
|
+
*
|
|
53
59
|
* @example
|
|
54
60
|
* ```ts
|
|
55
61
|
* const shippingTerm =
|
|
@@ -69,6 +75,8 @@ export class ShippingTerms extends APIResource {
|
|
|
69
75
|
*
|
|
70
76
|
* System-provided default shipping terms cannot be updated.
|
|
71
77
|
*
|
|
78
|
+
* This endpoint requires the permission: `shipping_terms:update`.
|
|
79
|
+
*
|
|
72
80
|
* @example
|
|
73
81
|
* ```ts
|
|
74
82
|
* const shippingTerm =
|
|
@@ -96,6 +104,8 @@ export class ShippingTerms extends APIResource {
|
|
|
96
104
|
*
|
|
97
105
|
* System-provided default shipping terms cannot be deleted.
|
|
98
106
|
*
|
|
107
|
+
* This endpoint requires the permission: `shipping_terms:delete`.
|
|
108
|
+
*
|
|
99
109
|
* @example
|
|
100
110
|
* ```ts
|
|
101
111
|
* const shippingTerm =
|
|
@@ -13,6 +13,8 @@ export class AccountGroups extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Returns a paginated list of account groups.
|
|
15
15
|
*
|
|
16
|
+
* This endpoint requires the permission: `customer_groups:read`.
|
|
17
|
+
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
20
|
* const listAccountGroup =
|
|
@@ -29,6 +31,8 @@ export class AccountGroups extends APIResource {
|
|
|
29
31
|
/**
|
|
30
32
|
* Returns an account group by ID.
|
|
31
33
|
*
|
|
34
|
+
* This endpoint requires the permission: `customer_groups:read`.
|
|
35
|
+
*
|
|
32
36
|
* @example
|
|
33
37
|
* ```ts
|
|
34
38
|
* const accountGroup =
|
|
@@ -46,6 +50,8 @@ export class AccountGroups extends APIResource {
|
|
|
46
50
|
*
|
|
47
51
|
* Returns a conflict error if an account group with the same name already exists.
|
|
48
52
|
*
|
|
53
|
+
* This endpoint requires the permission: `customer_groups:create`.
|
|
54
|
+
*
|
|
49
55
|
* @example
|
|
50
56
|
* ```ts
|
|
51
57
|
* const accountGroup =
|
|
@@ -65,6 +71,8 @@ export class AccountGroups extends APIResource {
|
|
|
65
71
|
* Only the provided fields are changed. The account group's `type` cannot be
|
|
66
72
|
* changed after creation.
|
|
67
73
|
*
|
|
74
|
+
* This endpoint requires the permission: `customer_groups:update`.
|
|
75
|
+
*
|
|
68
76
|
* @example
|
|
69
77
|
* ```ts
|
|
70
78
|
* const accountGroup =
|
|
@@ -89,6 +97,8 @@ export class AccountGroups extends APIResource {
|
|
|
89
97
|
* for example by customer records, product line access, volume discounts, pricing
|
|
90
98
|
* assignments, or an active registration flow.
|
|
91
99
|
*
|
|
100
|
+
* This endpoint requires the permission: `customer_groups:delete`.
|
|
101
|
+
*
|
|
92
102
|
* @example
|
|
93
103
|
* ```ts
|
|
94
104
|
* const accountGroup =
|