@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
|
@@ -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,11 +88,16 @@ 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(
|
|
86
96
|
* 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
87
|
-
* {
|
|
97
|
+
* {
|
|
98
|
+
* customer_portal_visibility: 'visible',
|
|
99
|
+
* name: 'FedEx Express',
|
|
100
|
+
* },
|
|
88
101
|
* );
|
|
89
102
|
* ```
|
|
90
103
|
*/
|
|
@@ -103,6 +116,8 @@ export class Carriers extends APIResource {
|
|
|
103
116
|
* If the carrier is connected through Shippo, its Shippo carrier account is
|
|
104
117
|
* deactivated. System-owned carriers cannot be deleted.
|
|
105
118
|
*
|
|
119
|
+
* This endpoint requires the permission: `carriers:delete`.
|
|
120
|
+
*
|
|
106
121
|
* @example
|
|
107
122
|
* ```ts
|
|
108
123
|
* const carrier = await client.operations.carriers.delete(
|
|
@@ -178,9 +193,8 @@ export interface UpdateCarrierRequest {
|
|
|
178
193
|
/**
|
|
179
194
|
* Carrier visibility in the customer portal.
|
|
180
195
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* checkout.
|
|
196
|
+
* A `visible` carrier can be selected by your customers at checkout; a `hidden`
|
|
197
|
+
* carrier is not offered there.
|
|
184
198
|
*/
|
|
185
199
|
customer_portal_visibility?: 'visible' | 'hidden';
|
|
186
200
|
|
|
@@ -278,9 +292,8 @@ export interface CarrierUpdateParams {
|
|
|
278
292
|
/**
|
|
279
293
|
* Body param: Carrier visibility in the customer portal.
|
|
280
294
|
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* checkout.
|
|
295
|
+
* A `visible` carrier can be selected by your customers at checkout; a `hidden`
|
|
296
|
+
* carrier is not offered there.
|
|
284
297
|
*/
|
|
285
298
|
customer_portal_visibility?: 'visible' | 'hidden';
|
|
286
299
|
|
|
@@ -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 =
|
|
@@ -65,6 +73,7 @@ export class ServiceLevels extends APIResource {
|
|
|
65
73
|
* code: 'ground',
|
|
66
74
|
* is_default: false,
|
|
67
75
|
* name: 'Ground Shipping',
|
|
76
|
+
* customer_portal_visibility: 'visible',
|
|
68
77
|
* },
|
|
69
78
|
* );
|
|
70
79
|
* ```
|
|
@@ -87,6 +96,8 @@ export class ServiceLevels extends APIResource {
|
|
|
87
96
|
*
|
|
88
97
|
* System-owned service levels cannot be updated.
|
|
89
98
|
*
|
|
99
|
+
* This endpoint requires the permission: `carriers:update`.
|
|
100
|
+
*
|
|
90
101
|
* @example
|
|
91
102
|
* ```ts
|
|
92
103
|
* const serviceLevel =
|
|
@@ -94,6 +105,8 @@ export class ServiceLevels extends APIResource {
|
|
|
94
105
|
* 'crop_01cfaf03f104e90ef9680e2a30',
|
|
95
106
|
* {
|
|
96
107
|
* carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
108
|
+
* code: 'express',
|
|
109
|
+
* customer_portal_visibility: 'visible',
|
|
97
110
|
* name: 'Express Shipping',
|
|
98
111
|
* },
|
|
99
112
|
* );
|
|
@@ -118,6 +131,8 @@ export class ServiceLevels extends APIResource {
|
|
|
118
131
|
* System-owned service levels and the carrier's default service level cannot be
|
|
119
132
|
* deleted; unset `is_default` first to delete a default.
|
|
120
133
|
*
|
|
134
|
+
* This endpoint requires the permission: `carriers:delete`.
|
|
135
|
+
*
|
|
121
136
|
* @example
|
|
122
137
|
* ```ts
|
|
123
138
|
* 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,22 +44,26 @@ 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({
|
|
53
59
|
* name: 'Warehouse A',
|
|
54
60
|
* type: 'building',
|
|
61
|
+
* child_ids: ['lc_014d187d99b31926f0c74af9d8'],
|
|
62
|
+
* parent_id: 'lc_014d187d99b31926f0c74af9d8',
|
|
55
63
|
* });
|
|
56
64
|
* ```
|
|
57
65
|
*/
|
|
58
|
-
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<
|
|
66
|
+
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<BlocksAPI.Location> {
|
|
59
67
|
const { include, ...body } = params;
|
|
60
68
|
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
61
69
|
}
|
|
@@ -63,11 +71,18 @@ export class Locations extends APIResource {
|
|
|
63
71
|
/**
|
|
64
72
|
* Partially updates a location.
|
|
65
73
|
*
|
|
74
|
+
* This endpoint requires the permission: `locations:update`.
|
|
75
|
+
*
|
|
66
76
|
* @example
|
|
67
77
|
* ```ts
|
|
68
78
|
* const location = await client.operations.locations.update(
|
|
69
79
|
* 'lc_014d187d99b31926f0c74af9d8',
|
|
70
|
-
* {
|
|
80
|
+
* {
|
|
81
|
+
* child_ids: ['lc_014d187d99b31926f0c74af9d8'],
|
|
82
|
+
* name: 'Warehouse B',
|
|
83
|
+
* parent_id: 'lc_014d187d99b31926f0c74af9d8',
|
|
84
|
+
* type: 'section',
|
|
85
|
+
* },
|
|
71
86
|
* );
|
|
72
87
|
* ```
|
|
73
88
|
*/
|
|
@@ -75,7 +90,7 @@ export class Locations extends APIResource {
|
|
|
75
90
|
id: string,
|
|
76
91
|
params: LocationUpdateParams | null | undefined = {},
|
|
77
92
|
options?: RequestOptions,
|
|
78
|
-
): APIPromise<
|
|
93
|
+
): APIPromise<BlocksAPI.Location> {
|
|
79
94
|
const { include, ...body } = params ?? {};
|
|
80
95
|
return this._client.patch(path`/v1/operations/locations/${id}`, { query: { include }, body, ...options });
|
|
81
96
|
}
|
|
@@ -86,6 +101,8 @@ export class Locations extends APIResource {
|
|
|
86
101
|
* Fails if the location has child locations; remove or reassign the children
|
|
87
102
|
* first.
|
|
88
103
|
*
|
|
104
|
+
* This endpoint requires the permission: `locations:delete`.
|
|
105
|
+
*
|
|
89
106
|
* @example
|
|
90
107
|
* ```ts
|
|
91
108
|
* const location = await client.operations.locations.delete(
|
|
@@ -119,7 +136,7 @@ export interface CreateLocationRequest {
|
|
|
119
136
|
* - `shelf`: a shelf within a rack.
|
|
120
137
|
* - `bin`: a bin within a shelf.
|
|
121
138
|
*/
|
|
122
|
-
type:
|
|
139
|
+
type: BlocksAPI.LocationTypeCode;
|
|
123
140
|
|
|
124
141
|
/**
|
|
125
142
|
* IDs of existing locations to attach as children of the new location.
|
|
@@ -173,7 +190,7 @@ export interface UpdateLocationRequest {
|
|
|
173
190
|
* - `shelf`: a shelf within a rack.
|
|
174
191
|
* - `bin`: a bin within a shelf.
|
|
175
192
|
*/
|
|
176
|
-
type?:
|
|
193
|
+
type?: BlocksAPI.LocationTypeCode;
|
|
177
194
|
}
|
|
178
195
|
|
|
179
196
|
export interface LocationDeleteResponse {}
|
|
@@ -234,7 +251,7 @@ export interface LocationCreateParams {
|
|
|
234
251
|
* - `shelf`: a shelf within a rack.
|
|
235
252
|
* - `bin`: a bin within a shelf.
|
|
236
253
|
*/
|
|
237
|
-
type:
|
|
254
|
+
type: BlocksAPI.LocationTypeCode;
|
|
238
255
|
|
|
239
256
|
/**
|
|
240
257
|
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
@@ -298,7 +315,7 @@ export interface LocationUpdateParams {
|
|
|
298
315
|
* - `shelf`: a shelf within a rack.
|
|
299
316
|
* - `bin`: a bin within a shelf.
|
|
300
317
|
*/
|
|
301
|
-
type?:
|
|
318
|
+
type?: BlocksAPI.LocationTypeCode;
|
|
302
319
|
}
|
|
303
320
|
|
|
304
321
|
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 =
|
|
@@ -61,13 +67,14 @@ export class ScanningStations extends APIResource {
|
|
|
61
67
|
* type: 'init_batch',
|
|
62
68
|
* label_size: '1x1',
|
|
63
69
|
* label_type: 'tag',
|
|
70
|
+
* notes: 'Primary intake station on the receiving dock.',
|
|
64
71
|
* });
|
|
65
72
|
* ```
|
|
66
73
|
*/
|
|
67
74
|
create(
|
|
68
75
|
params: ScanningStationCreateParams,
|
|
69
76
|
options?: RequestOptions,
|
|
70
|
-
): APIPromise<
|
|
77
|
+
): APIPromise<BlocksAPI.ScanningStation> {
|
|
71
78
|
const { include, ...body } = params;
|
|
72
79
|
return this._client.post('/v1/operations/scanning-stations', { query: { include }, body, ...options });
|
|
73
80
|
}
|
|
@@ -78,12 +85,20 @@ export class ScanningStations extends APIResource {
|
|
|
78
85
|
* Only the fields provided in the request are changed. Returns a conflict error if
|
|
79
86
|
* the new name is already in use by another scanning station.
|
|
80
87
|
*
|
|
88
|
+
* This endpoint requires the permission: `scanners:update`.
|
|
89
|
+
*
|
|
81
90
|
* @example
|
|
82
91
|
* ```ts
|
|
83
92
|
* const scanningStation =
|
|
84
93
|
* await client.operations.scanningStations.update(
|
|
85
94
|
* 'scst_0129335dd6286056a97024fcc1',
|
|
86
|
-
* {
|
|
95
|
+
* {
|
|
96
|
+
* label_size: '1x1',
|
|
97
|
+
* label_type: 'tag',
|
|
98
|
+
* name: 'Station B',
|
|
99
|
+
* notes: 'Relocated to the finishing area.',
|
|
100
|
+
* operator_requirement: 'material_check',
|
|
101
|
+
* },
|
|
87
102
|
* );
|
|
88
103
|
* ```
|
|
89
104
|
*/
|
|
@@ -91,7 +106,7 @@ export class ScanningStations extends APIResource {
|
|
|
91
106
|
id: string,
|
|
92
107
|
params: ScanningStationUpdateParams | null | undefined = {},
|
|
93
108
|
options?: RequestOptions,
|
|
94
|
-
): APIPromise<
|
|
109
|
+
): APIPromise<BlocksAPI.ScanningStation> {
|
|
95
110
|
const { include, ...body } = params ?? {};
|
|
96
111
|
return this._client.patch(path`/v1/operations/scanning-stations/${id}`, {
|
|
97
112
|
query: { include },
|
|
@@ -103,6 +118,8 @@ export class ScanningStations extends APIResource {
|
|
|
103
118
|
/**
|
|
104
119
|
* Deletes a scanning station.
|
|
105
120
|
*
|
|
121
|
+
* This endpoint requires the permission: `scanners:delete`.
|
|
122
|
+
*
|
|
106
123
|
* @example
|
|
107
124
|
* ```ts
|
|
108
125
|
* const scanningStation =
|