@augno/sdk 0.1.6 → 0.7.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 +5 -4
- package/README.md +27 -0
- package/api-promise.d.mts +0 -1
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +0 -1
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +0 -1
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +0 -1
- package/error.d.mts.map +1 -1
- package/error.d.ts +0 -1
- package/error.d.ts.map +1 -1
- package/error.mjs +0 -1
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +0 -6
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +0 -6
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +13 -18
- package/resource.d.mts +0 -1
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +0 -1
- package/resource.d.ts.map +1 -1
- package/resource.mjs +0 -1
- package/resource.mjs.map +1 -1
- package/resources/auth/api-keys/actions.d.mts +26 -5
- package/resources/auth/api-keys/actions.d.mts.map +1 -1
- package/resources/auth/api-keys/actions.d.ts +26 -5
- package/resources/auth/api-keys/actions.d.ts.map +1 -1
- package/resources/auth/api-keys/actions.js +4 -1
- package/resources/auth/api-keys/actions.js.map +1 -1
- package/resources/auth/api-keys/actions.mjs +4 -1
- package/resources/auth/api-keys/actions.mjs.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +134 -70
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +134 -70
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +24 -22
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +24 -22
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/auth/api-keys/index.d.mts +1 -1
- package/resources/auth/api-keys/index.d.mts.map +1 -1
- package/resources/auth/api-keys/index.d.ts +1 -1
- package/resources/auth/api-keys/index.d.ts.map +1 -1
- package/resources/auth/api-keys/index.mjs.map +1 -1
- package/resources/auth/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys.mjs.map +1 -1
- package/resources/auth/auth.d.mts +1 -1
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +1 -1
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/catalog/catalog.d.mts +9 -9
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +9 -9
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +9 -9
- package/resources/catalog/index.d.mts.map +1 -1
- package/resources/catalog/index.d.ts +9 -9
- package/resources/catalog/index.d.ts.map +1 -1
- package/resources/catalog/index.mjs.map +1 -1
- package/resources/catalog/item-categories/index.d.mts +1 -1
- package/resources/catalog/item-categories/index.d.mts.map +1 -1
- package/resources/catalog/item-categories/index.d.ts +1 -1
- package/resources/catalog/item-categories/index.d.ts.map +1 -1
- package/resources/catalog/item-categories/index.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +95 -66
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +95 -66
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +37 -30
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +37 -30
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/item-categories/properties.d.mts +9 -4
- package/resources/catalog/item-categories/properties.d.mts.map +1 -1
- package/resources/catalog/item-categories/properties.d.ts +9 -4
- package/resources/catalog/item-categories/properties.d.ts.map +1 -1
- package/resources/catalog/item-categories/properties.js +9 -4
- package/resources/catalog/item-categories/properties.js.map +1 -1
- package/resources/catalog/item-categories/properties.mjs +9 -4
- package/resources/catalog/item-categories/properties.mjs.map +1 -1
- package/resources/catalog/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +3 -2
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +3 -2
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +3 -2
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +3 -2
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/items/index.d.mts +1 -1
- package/resources/catalog/items/index.d.mts.map +1 -1
- package/resources/catalog/items/index.d.ts +1 -1
- package/resources/catalog/items/index.d.ts.map +1 -1
- package/resources/catalog/items/index.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +88 -52
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +88 -52
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +24 -21
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +24 -21
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/items.d.mts.map +1 -1
- package/resources/catalog/items.d.ts.map +1 -1
- package/resources/catalog/items.mjs.map +1 -1
- package/resources/catalog/materials.d.mts +142 -95
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +142 -95
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +28 -19
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +28 -19
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +131 -81
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +131 -81
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +34 -21
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +34 -21
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +145 -71
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +145 -71
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +30 -26
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +30 -26
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +196 -104
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +196 -104
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +24 -21
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +24 -21
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +97 -48
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +97 -48
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +27 -20
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +27 -20
- package/resources/catalog/properties/attributes.mjs.map +1 -1
- package/resources/catalog/properties/index.d.mts +2 -2
- package/resources/catalog/properties/index.d.mts.map +1 -1
- package/resources/catalog/properties/index.d.ts +2 -2
- package/resources/catalog/properties/index.d.ts.map +1 -1
- package/resources/catalog/properties/index.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +70 -48
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +70 -48
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +18 -18
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +18 -18
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/properties.d.mts.map +1 -1
- package/resources/catalog/properties.d.ts.map +1 -1
- package/resources/catalog/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/index.d.mts +2 -2
- package/resources/catalog/unit-groups/index.d.mts.map +1 -1
- package/resources/catalog/unit-groups/index.d.ts +2 -2
- package/resources/catalog/unit-groups/index.d.ts.map +1 -1
- package/resources/catalog/unit-groups/index.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +123 -85
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +123 -85
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +25 -25
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +25 -25
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +75 -59
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +75 -59
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +31 -30
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +31 -30
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups.mjs.map +1 -1
- package/resources/catalog/units.d.mts +100 -64
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +100 -64
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +25 -25
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +25 -25
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/catalog.d.mts.map +1 -1
- package/resources/catalog.d.ts.map +1 -1
- package/resources/catalog.mjs.map +1 -1
- package/resources/core/addresses/actions.d.mts +12 -5
- package/resources/core/addresses/actions.d.mts.map +1 -1
- package/resources/core/addresses/actions.d.ts +12 -5
- package/resources/core/addresses/actions.d.ts.map +1 -1
- package/resources/core/addresses/actions.mjs.map +1 -1
- package/resources/core/addresses/addresses.d.mts +5 -2
- package/resources/core/addresses/addresses.d.mts.map +1 -1
- package/resources/core/addresses/addresses.d.ts +5 -2
- package/resources/core/addresses/addresses.d.ts.map +1 -1
- package/resources/core/addresses/addresses.js.map +1 -1
- package/resources/core/addresses/addresses.mjs.map +1 -1
- package/resources/core/addresses/index.d.mts.map +1 -1
- package/resources/core/addresses/index.d.ts.map +1 -1
- package/resources/core/addresses/index.mjs.map +1 -1
- package/resources/core/addresses.d.mts.map +1 -1
- package/resources/core/addresses.d.ts.map +1 -1
- package/resources/core/addresses.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +78 -34
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +78 -34
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/audit-events.js +13 -10
- package/resources/core/audit-events.js.map +1 -1
- package/resources/core/audit-events.mjs +13 -10
- package/resources/core/audit-events.mjs.map +1 -1
- package/resources/core/core.d.mts +4 -4
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +4 -4
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/email-logs.d.mts +31 -21
- package/resources/core/email-logs.d.mts.map +1 -1
- package/resources/core/email-logs.d.ts +31 -21
- package/resources/core/email-logs.d.ts.map +1 -1
- package/resources/core/email-logs.js +10 -10
- package/resources/core/email-logs.js.map +1 -1
- package/resources/core/email-logs.mjs +10 -10
- package/resources/core/email-logs.mjs.map +1 -1
- package/resources/core/index.d.mts +4 -4
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +4 -4
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/request-logs.d.mts +95 -41
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +95 -41
- package/resources/core/request-logs.d.ts.map +1 -1
- package/resources/core/request-logs.js +10 -10
- package/resources/core/request-logs.js.map +1 -1
- package/resources/core/request-logs.mjs +10 -10
- package/resources/core/request-logs.mjs.map +1 -1
- package/resources/core/sandboxes.d.mts +53 -32
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +53 -32
- package/resources/core/sandboxes.d.ts.map +1 -1
- package/resources/core/sandboxes.js +20 -13
- package/resources/core/sandboxes.js.map +1 -1
- package/resources/core/sandboxes.mjs +20 -13
- package/resources/core/sandboxes.mjs.map +1 -1
- package/resources/core.d.mts.map +1 -1
- package/resources/core.d.ts.map +1 -1
- package/resources/core.mjs.map +1 -1
- package/resources/finance/finance.d.mts +69 -35
- package/resources/finance/finance.d.mts.map +1 -1
- package/resources/finance/finance.d.ts +69 -35
- package/resources/finance/finance.d.ts.map +1 -1
- package/resources/finance/finance.js +10 -10
- package/resources/finance/finance.js.map +1 -1
- package/resources/finance/finance.mjs +10 -10
- package/resources/finance/finance.mjs.map +1 -1
- package/resources/finance/index.d.mts +2 -2
- package/resources/finance/index.d.mts.map +1 -1
- package/resources/finance/index.d.ts +2 -2
- package/resources/finance/index.d.ts.map +1 -1
- package/resources/finance/index.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +72 -44
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +72 -44
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +32 -22
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +32 -22
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/finance.d.mts.map +1 -1
- package/resources/finance.d.ts.map +1 -1
- package/resources/finance.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +175 -93
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +175 -93
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +43 -30
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +43 -30
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/identity/account-users/actions.d.mts +13 -3
- package/resources/identity/account-users/actions.d.mts.map +1 -1
- package/resources/identity/account-users/actions.d.ts +13 -3
- package/resources/identity/account-users/actions.d.ts.map +1 -1
- package/resources/identity/account-users/actions.js +13 -3
- package/resources/identity/account-users/actions.js.map +1 -1
- package/resources/identity/account-users/actions.mjs +13 -3
- package/resources/identity/account-users/actions.mjs.map +1 -1
- package/resources/identity/account-users/index.d.mts +1 -1
- package/resources/identity/account-users/index.d.mts.map +1 -1
- package/resources/identity/account-users/index.d.ts +1 -1
- package/resources/identity/account-users/index.d.ts.map +1 -1
- package/resources/identity/account-users/index.mjs.map +1 -1
- package/resources/identity/account-users.d.mts.map +1 -1
- package/resources/identity/account-users.d.ts.map +1 -1
- package/resources/identity/account-users.mjs.map +1 -1
- package/resources/identity/identity.d.mts +2 -2
- package/resources/identity/identity.d.mts.map +1 -1
- package/resources/identity/identity.d.ts +2 -2
- package/resources/identity/identity.d.ts.map +1 -1
- package/resources/identity/identity.mjs.map +1 -1
- package/resources/identity/index.d.mts +2 -2
- package/resources/identity/index.d.mts.map +1 -1
- package/resources/identity/index.d.ts +2 -2
- package/resources/identity/index.d.ts.map +1 -1
- package/resources/identity/index.mjs.map +1 -1
- package/resources/identity/roles.d.mts +84 -61
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +84 -61
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +29 -27
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +29 -27
- package/resources/identity/roles.mjs.map +1 -1
- package/resources/identity.d.mts.map +1 -1
- package/resources/identity.d.ts.map +1 -1
- package/resources/identity.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/operations/carriers/carriers.d.mts +101 -64
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +101 -64
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +28 -24
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +28 -24
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/index.d.mts +2 -2
- package/resources/operations/carriers/index.d.mts.map +1 -1
- package/resources/operations/carriers/index.d.ts +2 -2
- package/resources/operations/carriers/index.d.ts.map +1 -1
- package/resources/operations/carriers/index.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +113 -69
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +113 -69
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +34 -30
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +34 -30
- package/resources/operations/carriers/service-levels.mjs.map +1 -1
- package/resources/operations/carriers.d.mts.map +1 -1
- package/resources/operations/carriers.d.ts.map +1 -1
- package/resources/operations/carriers.mjs.map +1 -1
- package/resources/operations/index.d.mts +4 -4
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +4 -4
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/location-types.d.mts +33 -18
- package/resources/operations/location-types.d.mts.map +1 -1
- package/resources/operations/location-types.d.ts +33 -18
- package/resources/operations/location-types.d.ts.map +1 -1
- package/resources/operations/location-types.js +12 -12
- package/resources/operations/location-types.js.map +1 -1
- package/resources/operations/location-types.mjs +12 -12
- package/resources/operations/location-types.mjs.map +1 -1
- package/resources/operations/locations.d.mts +132 -67
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +132 -67
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +23 -20
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +23 -20
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +143 -72
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +143 -72
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +31 -25
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +31 -25
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +121 -86
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +121 -86
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +27 -26
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +27 -26
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/operations.d.mts.map +1 -1
- package/resources/operations.d.ts.map +1 -1
- package/resources/operations.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +149 -66
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +149 -66
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +29 -21
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +29 -21
- package/resources/sales/account-groups.mjs.map +1 -1
- package/resources/sales/account-statuses.d.mts +41 -23
- package/resources/sales/account-statuses.d.mts.map +1 -1
- package/resources/sales/account-statuses.d.ts +41 -23
- package/resources/sales/account-statuses.d.ts.map +1 -1
- package/resources/sales/account-statuses.js +16 -13
- package/resources/sales/account-statuses.js.map +1 -1
- package/resources/sales/account-statuses.mjs +16 -13
- package/resources/sales/account-statuses.mjs.map +1 -1
- package/resources/sales/addresses.d.mts +96 -50
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +96 -50
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +28 -19
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +28 -19
- package/resources/sales/addresses.mjs.map +1 -1
- package/resources/sales/customers/actions.d.mts +15 -5
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +15 -5
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js +6 -2
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs +6 -2
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +583 -288
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +583 -288
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +52 -30
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +52 -30
- 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/customers.d.mts.map +1 -1
- package/resources/sales/customers.d.ts.map +1 -1
- package/resources/sales/customers.mjs.map +1 -1
- package/resources/sales/index.d.mts +6 -6
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -6
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/priorities.d.mts +31 -21
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +31 -21
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js +10 -10
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs +10 -10
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders.d.mts +877 -7
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +877 -7
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +45 -3
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +45 -3
- package/resources/sales/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +8 -8
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +8 -8
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales.d.mts.map +1 -1
- package/resources/sales.d.ts.map +1 -1
- package/resources/sales.mjs.map +1 -1
- package/resources/settings/index.d.mts +3 -0
- package/resources/settings/index.d.mts.map +1 -0
- package/resources/settings/index.d.ts +3 -0
- package/resources/settings/index.d.ts.map +1 -0
- package/resources/settings/index.js +9 -0
- package/resources/settings/index.js.map +1 -0
- package/resources/settings/index.mjs +4 -0
- package/resources/settings/index.mjs.map +1 -0
- package/resources/settings/integrations.d.mts +238 -0
- package/resources/settings/integrations.d.mts.map +1 -0
- package/resources/settings/integrations.d.ts +238 -0
- package/resources/settings/integrations.d.ts.map +1 -0
- package/resources/settings/integrations.js +80 -0
- package/resources/settings/integrations.js.map +1 -0
- package/resources/settings/integrations.mjs +76 -0
- package/resources/settings/integrations.mjs.map +1 -0
- package/resources/settings/settings.d.mts +10 -0
- package/resources/settings/settings.d.mts.map +1 -0
- package/resources/settings/settings.d.ts +10 -0
- package/resources/settings/settings.d.ts.map +1 -0
- package/resources/settings/settings.js +17 -0
- package/resources/settings/settings.js.map +1 -0
- package/resources/settings/settings.mjs +12 -0
- package/resources/settings/settings.mjs.map +1 -0
- package/resources/settings.d.mts +2 -0
- package/resources/settings.d.mts.map +1 -0
- package/resources/settings.d.ts +2 -0
- package/resources/settings.d.ts.map +1 -0
- package/resources/settings.js +6 -0
- package/resources/settings.js.map +1 -0
- package/resources/settings.mjs +3 -0
- package/resources/settings.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +13 -3
- package/src/resources/auth/api-keys/actions.ts +28 -5
- package/src/resources/auth/api-keys/api-keys.ts +142 -78
- package/src/resources/auth/api-keys/index.ts +1 -1
- package/src/resources/auth/auth.ts +1 -1
- package/src/resources/auth/index.ts +1 -1
- package/src/resources/catalog/catalog.ts +18 -18
- package/src/resources/catalog/index.ts +18 -18
- package/src/resources/catalog/item-categories/index.ts +2 -2
- package/src/resources/catalog/item-categories/item-categories.ts +115 -86
- package/src/resources/catalog/item-categories/properties.ts +9 -4
- package/src/resources/catalog/items/attributes.ts +3 -2
- package/src/resources/catalog/items/index.ts +2 -2
- package/src/resources/catalog/items/items.ts +111 -75
- package/src/resources/catalog/materials.ts +167 -120
- package/src/resources/catalog/parts.ts +149 -99
- package/src/resources/catalog/product-lines.ts +159 -85
- package/src/resources/catalog/products.ts +211 -119
- package/src/resources/catalog/properties/attributes.ts +109 -82
- package/src/resources/catalog/properties/index.ts +4 -4
- package/src/resources/catalog/properties/properties.ts +83 -61
- package/src/resources/catalog/unit-groups/index.ts +4 -4
- package/src/resources/catalog/unit-groups/unit-groups.ts +140 -102
- package/src/resources/catalog/unit-groups/units.ts +94 -78
- package/src/resources/catalog/units.ts +113 -77
- package/src/resources/core/addresses/actions.ts +12 -5
- package/src/resources/core/addresses/addresses.ts +5 -2
- package/src/resources/core/audit-events.ts +154 -47
- package/src/resources/core/core.ts +5 -5
- package/src/resources/core/email-logs.ts +39 -29
- package/src/resources/core/index.ts +5 -5
- package/src/resources/core/request-logs.ts +113 -57
- package/src/resources/core/sandboxes.ts +58 -37
- package/src/resources/finance/finance.ts +78 -44
- package/src/resources/finance/index.ts +4 -4
- package/src/resources/finance/payment-terms.ts +84 -56
- package/src/resources/identity/account-users/account-users.ts +190 -105
- package/src/resources/identity/account-users/actions.ts +13 -3
- package/src/resources/identity/account-users/index.ts +2 -2
- package/src/resources/identity/identity.ts +4 -4
- package/src/resources/identity/index.ts +4 -4
- package/src/resources/identity/roles.ts +92 -69
- package/src/resources/index.ts +3 -2
- package/src/resources/operations/carriers/carriers.ts +109 -72
- package/src/resources/operations/carriers/index.ts +4 -4
- package/src/resources/operations/carriers/service-levels.ts +133 -89
- package/src/resources/operations/index.ts +8 -8
- package/src/resources/operations/location-types.ts +38 -23
- package/src/resources/operations/locations.ts +141 -76
- package/src/resources/operations/operations.ts +8 -8
- package/src/resources/operations/scanning-stations.ts +159 -88
- package/src/resources/operations/shipping-terms.ts +135 -100
- package/src/resources/sales/account-groups.ts +159 -76
- package/src/resources/sales/account-statuses.ts +48 -30
- package/src/resources/sales/addresses.ts +104 -58
- package/src/resources/sales/customers/actions.ts +15 -4
- package/src/resources/sales/customers/customers.ts +655 -347
- package/src/resources/sales/customers/index.ts +4 -2
- package/src/resources/sales/index.ts +25 -6
- package/src/resources/sales/priorities.ts +39 -29
- package/src/resources/sales/sales-orders.ts +1113 -21
- package/src/resources/sales/sales.ts +44 -6
- package/src/resources/settings/index.ts +13 -0
- package/src/resources/settings/integrations.ts +291 -0
- package/src/resources/settings/settings.ts +33 -0
- package/src/resources/settings.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +0 -1
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +0 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +0 -1
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,13 +1,15 @@
|
|
|
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 MaterialsAPI from '../catalog/materials';
|
|
5
|
+
import * as ProductsAPI from '../catalog/products';
|
|
6
|
+
import * as RequestLogsAPI from '../core/request-logs';
|
|
4
7
|
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
8
|
+
import * as ItemsAPI from '../catalog/items/items';
|
|
9
|
+
import * as CustomersAPI from './customers/customers';
|
|
5
10
|
import { APIPromise } from '../../core/api-promise';
|
|
6
11
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
12
|
|
|
8
|
-
/**
|
|
9
|
-
* List sales order statuses.
|
|
10
|
-
*/
|
|
11
13
|
export class SalesOrders extends APIResource {
|
|
12
14
|
/**
|
|
13
15
|
* Returns a paginated list of sales order statuses.
|
|
@@ -24,6 +26,345 @@ export class SalesOrders extends APIResource {
|
|
|
24
26
|
): APIPromise<ListSalesOrderStatus> {
|
|
25
27
|
return this._client.get('/v1/sales/sales-orders/statuses', { query, ...options });
|
|
26
28
|
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Returns a paginated list of sales orders for the current account.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const listSalesOrder =
|
|
36
|
+
* await client.sales.salesOrders.list();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
list(
|
|
40
|
+
query: SalesOrderListParams | null | undefined = {},
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<ListSalesOrder> {
|
|
43
|
+
return this._client.get('/v1/sales/sales-orders', { query, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Creates a sales order in `estimate` status.
|
|
48
|
+
*
|
|
49
|
+
* The order number is assigned automatically, and a sales rep is auto-assigned
|
|
50
|
+
* when none is provided. A shipping line is always added to the order, plus a
|
|
51
|
+
* discount line when an order discount is supplied.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const salesOrder = await client.sales.salesOrders.create({
|
|
56
|
+
* bill_to_address_id: 'ad_012c2e4aeeb20f56c1a3d06cc7',
|
|
57
|
+
* buyer_account_id: 'ac_0170df1ac58e4d24c66fc89f5f',
|
|
58
|
+
* lines: [
|
|
59
|
+
* {
|
|
60
|
+
* product_id: 'pd_013c29ab3f1518d0004094c316',
|
|
61
|
+
* quantity: {
|
|
62
|
+
* value: '10',
|
|
63
|
+
* unit_id: 'un_01966263f74a5a0cae356000a1',
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* priority_code: 'normal',
|
|
68
|
+
* ship_to_address_id: 'ad_012c2e4aeeb20f56c1a3d06cc7',
|
|
69
|
+
* carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
70
|
+
* note: 'Rush order for trade show',
|
|
71
|
+
* service_level_id: 'crop_01cfaf03f104e90ef9680e2a30',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
create(params: SalesOrderCreateParams, options?: RequestOptions): APIPromise<SalesOrder> {
|
|
76
|
+
const { include, ...body } = params;
|
|
77
|
+
return this._client.post('/v1/sales/sales-orders', { query: { include }, body, ...options });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Line item input for a create sales order request.
|
|
83
|
+
*
|
|
84
|
+
* The item, unit cost, and (unless an internal user supplies a `unit_price`
|
|
85
|
+
* override) the unit price are resolved server-side from the product. The quantity
|
|
86
|
+
* unit must belong to the product's unit group.
|
|
87
|
+
*/
|
|
88
|
+
export interface CreateSalesOrderLineInput {
|
|
89
|
+
/**
|
|
90
|
+
* ID of the product being ordered.
|
|
91
|
+
*/
|
|
92
|
+
product_id: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A value with an associated unit, used in create and update requests.
|
|
96
|
+
*/
|
|
97
|
+
quantity: CustomersAPI.QuantityInput;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* EDI line item ID.
|
|
101
|
+
*/
|
|
102
|
+
edi_line_item_id?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Description recorded on the line. Defaults to the product's description when
|
|
106
|
+
* omitted.
|
|
107
|
+
*/
|
|
108
|
+
product_description?: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* SKU recorded on the line. Defaults to the product's SKU when omitted.
|
|
112
|
+
*/
|
|
113
|
+
product_sku?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A rate value with its numerator and denominator units, used in create and update
|
|
117
|
+
* requests.
|
|
118
|
+
*/
|
|
119
|
+
unit_price?: MaterialsAPI.RateInput;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Request to create a sales order.
|
|
124
|
+
*/
|
|
125
|
+
export interface CreateSalesOrderRequest {
|
|
126
|
+
/**
|
|
127
|
+
* Bill-to address ID. Must reference an existing address on the order's owner or
|
|
128
|
+
* buyer account.
|
|
129
|
+
*/
|
|
130
|
+
bill_to_address_id: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* ID of the customer account the order is for.
|
|
134
|
+
*/
|
|
135
|
+
buyer_account_id: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Order lines to create.
|
|
139
|
+
*/
|
|
140
|
+
lines: Array<CreateSalesOrderLineInput>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Fulfillment priority used to rank the order on the shop floor.
|
|
144
|
+
*/
|
|
145
|
+
priority_code: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Ship-to address ID. Must reference an existing address on the order's owner or
|
|
149
|
+
* buyer account.
|
|
150
|
+
*/
|
|
151
|
+
ship_to_address_id: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Account users who should receive order acknowledgement emails.
|
|
155
|
+
*/
|
|
156
|
+
acknowledgement_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Carrier billing account number.
|
|
160
|
+
*/
|
|
161
|
+
carrier_billing_account_number?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Who is billed for freight.
|
|
165
|
+
*
|
|
166
|
+
* - `sender`: the sender pays for shipping.
|
|
167
|
+
* - `third_party`: a third party pays for shipping, using the carrier billing
|
|
168
|
+
* account number.
|
|
169
|
+
*/
|
|
170
|
+
carrier_billing_type?: 'sender' | 'third_party';
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Carrier ID.
|
|
174
|
+
*/
|
|
175
|
+
carrier_id?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The customer's own purchase order number, for cross-referencing.
|
|
179
|
+
*
|
|
180
|
+
* Must be unique among your orders for this customer.
|
|
181
|
+
*/
|
|
182
|
+
customer_purchase_order_number?: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Account users who should receive invoice emails.
|
|
186
|
+
*/
|
|
187
|
+
invoice_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Order note.
|
|
191
|
+
*/
|
|
192
|
+
note?: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Order discount ID.
|
|
196
|
+
*
|
|
197
|
+
* When supplied, a discount line is added to the order automatically.
|
|
198
|
+
*/
|
|
199
|
+
order_discount_id?: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Payment term ID.
|
|
203
|
+
*/
|
|
204
|
+
payment_term_id?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Promised delivery date.
|
|
208
|
+
*/
|
|
209
|
+
promised_at?: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Sales rep ID.
|
|
213
|
+
*
|
|
214
|
+
* When omitted, a rep is assigned automatically: the customer's default sales rep
|
|
215
|
+
* first, then the sales territory matching the ship-to postal code, then the
|
|
216
|
+
* ship-to state.
|
|
217
|
+
*/
|
|
218
|
+
sales_rep_id?: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Service level ID.
|
|
222
|
+
*/
|
|
223
|
+
service_level_id?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Shipping term ID.
|
|
227
|
+
*/
|
|
228
|
+
shipping_term_id?: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* CreatedBy describes who created a resource and their relationship to the account
|
|
233
|
+
* that owns it. Resolved from the resource's create audit event when the
|
|
234
|
+
* `created_by` field is included.
|
|
235
|
+
*/
|
|
236
|
+
export interface CreatedBy {
|
|
237
|
+
/**
|
|
238
|
+
* Reference to an actor (user, API key, or agent).
|
|
239
|
+
*/
|
|
240
|
+
actor: RequestLogsAPI.Actor | null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Resource type identifier.
|
|
244
|
+
*/
|
|
245
|
+
object: 'created_by';
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The creator's relationship to the account that owns the resource.
|
|
249
|
+
*
|
|
250
|
+
* - `internal`: created by a user of the owning account.
|
|
251
|
+
* - `customer`: created by a customer of the owning account.
|
|
252
|
+
* - `system`: created automatically with no human actor (e.g. an EDI import).
|
|
253
|
+
*/
|
|
254
|
+
relation: 'internal' | 'customer' | 'system';
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Freight describes the carrier selection and freight billing for a record.
|
|
259
|
+
*
|
|
260
|
+
* It is a generic, reusable sub-resource shared by anything that carries shipping
|
|
261
|
+
* configuration — e.g. a sales order's chosen freight, or a customer's default
|
|
262
|
+
* freight preferences. It is itself expanded via its parent (e.g.
|
|
263
|
+
* include[]=freight); when present, the full carrier and service level are
|
|
264
|
+
* included.
|
|
265
|
+
*/
|
|
266
|
+
export interface Freight {
|
|
267
|
+
/**
|
|
268
|
+
* Carrier account number to bill, used when `billing_type` is `third_party`.
|
|
269
|
+
*/
|
|
270
|
+
billing_account_number: string | null;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Which party the carrier bills for the shipment.
|
|
274
|
+
*
|
|
275
|
+
* - `sender`: the shipper (your account) is billed.
|
|
276
|
+
* - `third_party`: a third party is billed via `billing_account_number`.
|
|
277
|
+
*/
|
|
278
|
+
billing_type: 'sender' | 'third_party' | null;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* A shipping carrier configured for fulfilling orders.
|
|
282
|
+
*
|
|
283
|
+
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
284
|
+
* through Shippo for live rating and label purchase; other carriers represent
|
|
285
|
+
* self-managed shipping methods such as will call or local delivery.
|
|
286
|
+
*/
|
|
287
|
+
carrier: CustomersAPI.Carrier | null;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Resource type identifier.
|
|
291
|
+
*/
|
|
292
|
+
object: 'freight';
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Freight policy (who arranges and pays for freight).
|
|
296
|
+
*
|
|
297
|
+
* Populated where a policy applies, such as customer defaults; null otherwise.
|
|
298
|
+
*
|
|
299
|
+
* - `free_freight`: no shipping cost to the buyer.
|
|
300
|
+
* - `billed_freight`: freight is billed to the buyer.
|
|
301
|
+
*/
|
|
302
|
+
policy: 'free_freight' | 'billed_freight' | null;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Shipping service level for a carrier.
|
|
306
|
+
*/
|
|
307
|
+
service_level: CustomersAPI.ServiceLevel | null;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* List represents a paginated list of resources.
|
|
312
|
+
*/
|
|
313
|
+
export interface ListRecord {
|
|
314
|
+
/**
|
|
315
|
+
* Resources in this page.
|
|
316
|
+
*/
|
|
317
|
+
data: Array<Record>;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Resource type identifier.
|
|
321
|
+
*/
|
|
322
|
+
object: 'list';
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* PageInfo contains URL-based pagination metadata.
|
|
326
|
+
*/
|
|
327
|
+
page_info: APIKeysAPI.PageInfo;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* List represents a paginated list of resources.
|
|
332
|
+
*/
|
|
333
|
+
export interface ListSalesOrder {
|
|
334
|
+
/**
|
|
335
|
+
* Resources in this page.
|
|
336
|
+
*/
|
|
337
|
+
data: Array<SalesOrder>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Resource type identifier.
|
|
341
|
+
*/
|
|
342
|
+
object: 'list';
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* PageInfo contains URL-based pagination metadata.
|
|
346
|
+
*/
|
|
347
|
+
page_info: APIKeysAPI.PageInfo;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* List represents a paginated list of resources.
|
|
352
|
+
*/
|
|
353
|
+
export interface ListSalesOrderLine {
|
|
354
|
+
/**
|
|
355
|
+
* Resources in this page.
|
|
356
|
+
*/
|
|
357
|
+
data: Array<SalesOrderLine>;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Resource type identifier.
|
|
361
|
+
*/
|
|
362
|
+
object: 'list';
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* PageInfo contains URL-based pagination metadata.
|
|
366
|
+
*/
|
|
367
|
+
page_info: APIKeysAPI.PageInfo;
|
|
27
368
|
}
|
|
28
369
|
|
|
29
370
|
/**
|
|
@@ -47,24 +388,65 @@ export interface ListSalesOrderStatus {
|
|
|
47
388
|
}
|
|
48
389
|
|
|
49
390
|
/**
|
|
50
|
-
*
|
|
391
|
+
* OrderContact groups a sales order's email recipients by notification purpose.
|
|
51
392
|
*/
|
|
52
|
-
export interface
|
|
393
|
+
export interface OrderContact {
|
|
53
394
|
/**
|
|
54
|
-
*
|
|
395
|
+
* Email addresses that receive order acknowledgements for this order.
|
|
396
|
+
*/
|
|
397
|
+
acknowledgement: Array<string>;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Email addresses that receive invoices for this order.
|
|
401
|
+
*/
|
|
402
|
+
invoice: Array<string>;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Resource type identifier.
|
|
406
|
+
*/
|
|
407
|
+
object: 'order_contact';
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* A discount code that can be applied to a sales order.
|
|
412
|
+
*
|
|
413
|
+
* An order discount reduces the order total by either a percentage or a fixed
|
|
414
|
+
* amount, depending on `discount_type`.
|
|
415
|
+
*/
|
|
416
|
+
export interface OrderDiscount {
|
|
417
|
+
/**
|
|
418
|
+
* Order discount ID.
|
|
55
419
|
*/
|
|
56
420
|
id: string;
|
|
57
421
|
|
|
58
422
|
/**
|
|
59
|
-
*
|
|
423
|
+
* Fixed amount off as a decimal string.
|
|
424
|
+
*
|
|
425
|
+
* Applies when `discount_type` is `amount`; otherwise `0`.
|
|
60
426
|
*/
|
|
61
|
-
|
|
427
|
+
amount: string;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The code entered to apply this discount to an order.
|
|
431
|
+
*
|
|
432
|
+
* Must be unique within the account.
|
|
433
|
+
*/
|
|
434
|
+
code: string;
|
|
62
435
|
|
|
63
436
|
/**
|
|
64
437
|
* Creation timestamp.
|
|
65
438
|
*/
|
|
66
439
|
created_at: string;
|
|
67
440
|
|
|
441
|
+
/**
|
|
442
|
+
* How the discount is calculated, determining whether `percentage` or `amount` is
|
|
443
|
+
* used.
|
|
444
|
+
*
|
|
445
|
+
* - `percentage`: the discount is a percent off, taken from `percentage`.
|
|
446
|
+
* - `amount`: the discount is a fixed amount off, taken from `amount`.
|
|
447
|
+
*/
|
|
448
|
+
discount_type: 'percentage' | 'amount';
|
|
449
|
+
|
|
68
450
|
/**
|
|
69
451
|
* Display name.
|
|
70
452
|
*/
|
|
@@ -73,12 +455,19 @@ export interface SalesOrderStatus {
|
|
|
73
455
|
/**
|
|
74
456
|
* Resource type identifier.
|
|
75
457
|
*/
|
|
76
|
-
object: '
|
|
458
|
+
object: 'order_discount';
|
|
77
459
|
|
|
78
460
|
/**
|
|
79
|
-
*
|
|
461
|
+
* Number of orders currently using this discount.
|
|
80
462
|
*/
|
|
81
|
-
|
|
463
|
+
order_count: number;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Percent off as a decimal string (e.g. `10` for 10%).
|
|
467
|
+
*
|
|
468
|
+
* Applies when `discount_type` is `percentage`; otherwise `0`.
|
|
469
|
+
*/
|
|
470
|
+
percentage: string;
|
|
82
471
|
|
|
83
472
|
/**
|
|
84
473
|
* Last updated timestamp.
|
|
@@ -86,33 +475,736 @@ export interface SalesOrderStatus {
|
|
|
86
475
|
updated_at: string;
|
|
87
476
|
}
|
|
88
477
|
|
|
89
|
-
|
|
478
|
+
/**
|
|
479
|
+
* Record is a lightweight reference to a business record — a sales order, purchase
|
|
480
|
+
* order, pick, shipment, production run, invoice, etc.
|
|
481
|
+
*
|
|
482
|
+
* Like Actor and Entity, it carries just enough to identify and label the
|
|
483
|
+
* referenced record without embedding its full resource. The optional status and
|
|
484
|
+
* metadata fields hold type-specific detail that varies by the kind of record
|
|
485
|
+
* referenced.
|
|
486
|
+
*/
|
|
487
|
+
export interface Record {
|
|
90
488
|
/**
|
|
91
|
-
*
|
|
489
|
+
* Record ID.
|
|
92
490
|
*/
|
|
93
|
-
|
|
491
|
+
id: string;
|
|
94
492
|
|
|
95
493
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
494
|
+
* Type-specific metadata.
|
|
495
|
+
*
|
|
496
|
+
* The set of keys varies by record type.
|
|
98
497
|
*/
|
|
99
|
-
|
|
498
|
+
metadata: { [key: string]: string };
|
|
100
499
|
|
|
101
500
|
/**
|
|
102
|
-
*
|
|
501
|
+
* Human-readable record number, when the record has one.
|
|
103
502
|
*/
|
|
104
|
-
|
|
503
|
+
number: string | null;
|
|
105
504
|
|
|
106
505
|
/**
|
|
107
|
-
*
|
|
506
|
+
* Resource type identifier.
|
|
108
507
|
*/
|
|
109
|
-
|
|
508
|
+
object: 'record';
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Type-specific status code, when applicable.
|
|
512
|
+
*/
|
|
513
|
+
status: string | null;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* The kind of business record referenced.
|
|
517
|
+
*
|
|
518
|
+
* Determines how to resolve the record and which `status` and `metadata` keys may
|
|
519
|
+
* appear.
|
|
520
|
+
*
|
|
521
|
+
* - `sales_order`: a customer order.
|
|
522
|
+
* - `purchase_order`: an order placed with a supplier.
|
|
523
|
+
* - `receiving_order`: an inbound order being received into inventory.
|
|
524
|
+
* - `pick`: a warehouse pick task.
|
|
525
|
+
* - `shipment`: an outbound shipment.
|
|
526
|
+
* - `delivery`: a delivery of one or more shipments to a destination.
|
|
527
|
+
* - `production_run`: a manufacturing production run.
|
|
528
|
+
* - `invoice`: a customer invoice.
|
|
529
|
+
* - `transaction`: a payment or financial transaction.
|
|
530
|
+
* - `settlement`: a settlement reconciling transactions against invoices.
|
|
531
|
+
*/
|
|
532
|
+
type:
|
|
533
|
+
| 'sales_order'
|
|
534
|
+
| 'purchase_order'
|
|
535
|
+
| 'receiving_order'
|
|
536
|
+
| 'pick'
|
|
537
|
+
| 'shipment'
|
|
538
|
+
| 'delivery'
|
|
539
|
+
| 'production_run'
|
|
540
|
+
| 'invoice'
|
|
541
|
+
| 'transaction'
|
|
542
|
+
| 'settlement';
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Full sales order resource.
|
|
547
|
+
*/
|
|
548
|
+
export interface SalesOrder {
|
|
549
|
+
/**
|
|
550
|
+
* Sales order ID.
|
|
551
|
+
*/
|
|
552
|
+
id: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Whether an order acknowledgment has been sent to the customer.
|
|
556
|
+
*/
|
|
557
|
+
acknowledgment_status: 'not_sent' | 'sent';
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
561
|
+
* invoices, and shipments.
|
|
562
|
+
*/
|
|
563
|
+
bill_to_address: APIKeysAPI.Address | null;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* When the order was fulfilled and closed.
|
|
567
|
+
*/
|
|
568
|
+
completed_at: string | null;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* OrderContact groups a sales order's email recipients by notification purpose.
|
|
572
|
+
*/
|
|
573
|
+
contacts: OrderContact | null;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Creation timestamp.
|
|
577
|
+
*/
|
|
578
|
+
created_at: string;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* CreatedBy describes who created a resource and their relationship to the account
|
|
582
|
+
* that owns it. Resolved from the resource's create audit event when the
|
|
583
|
+
* `created_by` field is included.
|
|
584
|
+
*/
|
|
585
|
+
created_by: CreatedBy | null;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* A business you sell to, with its contact details, default fulfillment settings,
|
|
589
|
+
* and order policies.
|
|
590
|
+
*/
|
|
591
|
+
customer: CustomersAPI.Customer | null;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The customer's own purchase order number, for cross-referencing.
|
|
595
|
+
*
|
|
596
|
+
* Unique among this customer's orders.
|
|
597
|
+
*/
|
|
598
|
+
customer_purchase_order_number: string | null;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* When this estimate expires, if an expiration was set.
|
|
602
|
+
*/
|
|
603
|
+
expired_at: string | null;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* When the first shipment against this order went out.
|
|
607
|
+
*/
|
|
608
|
+
first_ship_at: string | null;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Freight describes the carrier selection and freight billing for a record.
|
|
612
|
+
*
|
|
613
|
+
* It is a generic, reusable sub-resource shared by anything that carries shipping
|
|
614
|
+
* configuration — e.g. a sales order's chosen freight, or a customer's default
|
|
615
|
+
* freight preferences. It is itself expanded via its parent (e.g.
|
|
616
|
+
* include[]=freight); when present, the full carrier and service level are
|
|
617
|
+
* included.
|
|
618
|
+
*/
|
|
619
|
+
freight: Freight | null;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* When the order was issued (moved out of `estimate`).
|
|
623
|
+
*/
|
|
624
|
+
issued_at: string | null;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Number of order lines on this order, returned even when the `lines` list itself
|
|
628
|
+
* is not expanded.
|
|
629
|
+
*/
|
|
630
|
+
line_count: number;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* List represents a paginated list of resources.
|
|
634
|
+
*/
|
|
635
|
+
lines: ListSalesOrderLine | null;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Order note.
|
|
639
|
+
*/
|
|
640
|
+
note: string | null;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Human-readable order number, e.g. `SO-001`.
|
|
644
|
+
*
|
|
645
|
+
* Assigned automatically when the order is created; unique within your account.
|
|
646
|
+
*/
|
|
647
|
+
number: string;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Resource type identifier.
|
|
651
|
+
*/
|
|
652
|
+
object: 'sales_order';
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* A discount code that can be applied to a sales order.
|
|
656
|
+
*
|
|
657
|
+
* An order discount reduces the order total by either a percentage or a fixed
|
|
658
|
+
* amount, depending on `discount_type`.
|
|
659
|
+
*/
|
|
660
|
+
order_discount: OrderDiscount | null;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Payment state of the order.
|
|
664
|
+
*
|
|
665
|
+
* Payment tracking is not yet wired up, so this currently always reports `unpaid`.
|
|
666
|
+
*/
|
|
667
|
+
payment_status: 'unpaid' | 'partially_paid' | 'paid';
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
671
|
+
* customers, sales orders, purchase orders, and invoices.
|
|
672
|
+
*/
|
|
673
|
+
payment_term: CustomersAPI.PaymentTerm | null;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Fulfillment priority, used to rank orders on the shop floor.
|
|
677
|
+
*/
|
|
678
|
+
priority: 'low' | 'normal' | 'high';
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Date promised to the customer for delivery, if one was committed.
|
|
682
|
+
*/
|
|
683
|
+
promised_at: string | null;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* SalesOrderRelated groups the records related to a sales order.
|
|
687
|
+
*
|
|
688
|
+
* The members are individually expandable (e.g. include[]=related.pick). The group
|
|
689
|
+
* is null unless at least one of its members is expanded.
|
|
690
|
+
*/
|
|
691
|
+
related: SalesOrderRelated | null;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Reference to an actor (user, API key, or agent).
|
|
695
|
+
*/
|
|
696
|
+
sales_rep: RequestLogsAPI.Actor | null;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
700
|
+
* invoices, and shipments.
|
|
701
|
+
*/
|
|
702
|
+
ship_to_address: APIKeysAPI.Address | null;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* A shipping term defining how freight charges are calculated for an order.
|
|
706
|
+
*/
|
|
707
|
+
shipping_term: CustomersAPI.ShippingTerm | null;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Order lifecycle status.
|
|
711
|
+
*
|
|
712
|
+
* - `estimate`: a draft quote that has not yet been committed; not counted as a
|
|
713
|
+
* real order.
|
|
714
|
+
* - `issued`: the order has been issued and is being fulfilled.
|
|
715
|
+
* - `fulfilled`: the order has been completed and closed.
|
|
716
|
+
*
|
|
717
|
+
* Status changes are made through the issue, unissue, close, and reopen action
|
|
718
|
+
* endpoints rather than by updating this field.
|
|
719
|
+
*/
|
|
720
|
+
status: 'estimate' | 'issued' | 'fulfilled';
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* SalesOrderTotals holds the derived monetary totals for a sales order or one of
|
|
724
|
+
* its lines, following the lifecycle ordered -> packed -> invoiced.
|
|
725
|
+
*/
|
|
726
|
+
totals: SalesOrderTotals | null;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Last updated timestamp.
|
|
730
|
+
*/
|
|
731
|
+
updated_at: string;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* SalesOrderEmailContactInput represents an account user subscribed to a
|
|
736
|
+
* sales-order email notification type.
|
|
737
|
+
*/
|
|
738
|
+
export interface SalesOrderEmailContactInput {
|
|
739
|
+
/**
|
|
740
|
+
* Account user ID to receive the notification.
|
|
741
|
+
*/
|
|
742
|
+
account_user_id: string;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Full sales order line resource.
|
|
747
|
+
*/
|
|
748
|
+
export interface SalesOrderLine {
|
|
749
|
+
/**
|
|
750
|
+
* Sales order line ID.
|
|
751
|
+
*/
|
|
752
|
+
id: string;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Creation timestamp.
|
|
756
|
+
*/
|
|
757
|
+
created_at: string;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Position of the line on the order.
|
|
761
|
+
*
|
|
762
|
+
* Assigned automatically in sequence, starting at `1`.
|
|
763
|
+
*/
|
|
764
|
+
line_item_number: number;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Resource type identifier.
|
|
768
|
+
*/
|
|
769
|
+
object: 'sales_order_line';
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Product pairs an inventory item with how it is sold: its product type, optional
|
|
773
|
+
* product line, and customer portal visibility.
|
|
774
|
+
*/
|
|
775
|
+
product: ProductsAPI.Product | null;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Product description.
|
|
779
|
+
*/
|
|
780
|
+
product_description: string | null;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Product SKU.
|
|
784
|
+
*/
|
|
785
|
+
product_sku: string;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Value with an associated unit.
|
|
789
|
+
*/
|
|
790
|
+
quantity_ordered: ItemsAPI.Quantity | null;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* SalesOrderTotals holds the derived monetary totals for a sales order or one of
|
|
794
|
+
* its lines, following the lifecycle ordered -> packed -> invoiced.
|
|
795
|
+
*/
|
|
796
|
+
totals: SalesOrderTotals | null;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Value expressed as a ratio of two units, such as a price per kilogram or a
|
|
800
|
+
* throughput per hour.
|
|
801
|
+
*/
|
|
802
|
+
unit_cost: ItemsAPI.Rate | null;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Value expressed as a ratio of two units, such as a price per kilogram or a
|
|
806
|
+
* throughput per hour.
|
|
807
|
+
*/
|
|
808
|
+
unit_price: ItemsAPI.Rate | null;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Last updated timestamp.
|
|
812
|
+
*/
|
|
813
|
+
updated_at: string;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* SalesOrderRelated groups the records related to a sales order.
|
|
818
|
+
*
|
|
819
|
+
* The members are individually expandable (e.g. include[]=related.pick). The group
|
|
820
|
+
* is null unless at least one of its members is expanded.
|
|
821
|
+
*/
|
|
822
|
+
export interface SalesOrderRelated {
|
|
823
|
+
/**
|
|
824
|
+
* Resource type identifier.
|
|
825
|
+
*/
|
|
826
|
+
object: 'sales_order_related';
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Record is a lightweight reference to a business record — a sales order, purchase
|
|
830
|
+
* order, pick, shipment, production run, invoice, etc.
|
|
831
|
+
*
|
|
832
|
+
* Like Actor and Entity, it carries just enough to identify and label the
|
|
833
|
+
* referenced record without embedding its full resource. The optional status and
|
|
834
|
+
* metadata fields hold type-specific detail that varies by the kind of record
|
|
835
|
+
* referenced.
|
|
836
|
+
*/
|
|
837
|
+
pick: Record | null;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Record is a lightweight reference to a business record — a sales order, purchase
|
|
841
|
+
* order, pick, shipment, production run, invoice, etc.
|
|
842
|
+
*
|
|
843
|
+
* Like Actor and Entity, it carries just enough to identify and label the
|
|
844
|
+
* referenced record without embedding its full resource. The optional status and
|
|
845
|
+
* metadata fields hold type-specific detail that varies by the kind of record
|
|
846
|
+
* referenced.
|
|
847
|
+
*/
|
|
848
|
+
production_run: Record | null;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* List represents a paginated list of resources.
|
|
852
|
+
*/
|
|
853
|
+
shipments: ListRecord | null;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Sales order status lookup value.
|
|
858
|
+
*/
|
|
859
|
+
export interface SalesOrderStatus {
|
|
860
|
+
/**
|
|
861
|
+
* Sales order status ID.
|
|
862
|
+
*/
|
|
863
|
+
id: string;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Machine-readable status code.
|
|
867
|
+
*
|
|
868
|
+
* - `estimate`: a draft quote that has not yet been committed.
|
|
869
|
+
* - `issued`: the order has been issued and is being fulfilled.
|
|
870
|
+
* - `fulfilled`: the order has been completed and closed.
|
|
871
|
+
*/
|
|
872
|
+
code: 'estimate' | 'issued' | 'fulfilled';
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Creation timestamp.
|
|
876
|
+
*/
|
|
877
|
+
created_at: string;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Display name.
|
|
881
|
+
*/
|
|
882
|
+
name: string;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Resource type identifier.
|
|
886
|
+
*/
|
|
887
|
+
object: 'sales_order_status';
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Owner describes the provenance of a resource.
|
|
891
|
+
*/
|
|
892
|
+
owner: APIKeysAPI.Owner | null;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* Last updated timestamp.
|
|
896
|
+
*/
|
|
897
|
+
updated_at: string;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* SalesOrderTotals holds the derived monetary totals for a sales order or one of
|
|
902
|
+
* its lines, following the lifecycle ordered -> packed -> invoiced.
|
|
903
|
+
*/
|
|
904
|
+
export interface SalesOrderTotals {
|
|
905
|
+
/**
|
|
906
|
+
* Total invoiced amount as a decimal string (unit price x quantity invoiced).
|
|
907
|
+
*/
|
|
908
|
+
invoiced: string;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Resource type identifier.
|
|
912
|
+
*/
|
|
913
|
+
object: 'sales_order_totals';
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Total ordered amount as a decimal string (unit price x quantity ordered).
|
|
917
|
+
*/
|
|
918
|
+
ordered: string;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Total packed amount as a decimal string (unit price x quantity packed).
|
|
922
|
+
*/
|
|
923
|
+
packed: string;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
export interface SalesOrderRetrieveStatusesParams {
|
|
927
|
+
/**
|
|
928
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
929
|
+
*
|
|
930
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
931
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
932
|
+
* page.
|
|
933
|
+
*/
|
|
934
|
+
cursor?: string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
938
|
+
* `null`.
|
|
939
|
+
*/
|
|
940
|
+
include?: Array<'owner'>;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Maximum number of results to return in a single page.
|
|
944
|
+
*/
|
|
945
|
+
limit?: number;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Free-text search term used to filter results.
|
|
949
|
+
*
|
|
950
|
+
* Which fields are matched against the term varies by endpoint.
|
|
951
|
+
*/
|
|
952
|
+
q?: string;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export interface SalesOrderListParams {
|
|
956
|
+
/**
|
|
957
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
958
|
+
*
|
|
959
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
960
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
961
|
+
* page.
|
|
962
|
+
*/
|
|
963
|
+
cursor?: string;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Filter by customer group IDs.
|
|
967
|
+
*/
|
|
968
|
+
customer_group_ids?: Array<string>;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Filter by customer IDs.
|
|
972
|
+
*/
|
|
973
|
+
customer_ids?: Array<string>;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Latest order creation date to include, in `YYYY-MM-DD` format (inclusive).
|
|
977
|
+
*/
|
|
978
|
+
end_date?: string;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Whether to exclude internal orders.
|
|
982
|
+
*
|
|
983
|
+
* When `true`, omits orders the account placed with itself (the buyer is the same
|
|
984
|
+
* account that owns the order).
|
|
985
|
+
*/
|
|
986
|
+
exclude_internal_orders?: boolean;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
990
|
+
* `null`.
|
|
991
|
+
*/
|
|
992
|
+
include?: Array<
|
|
993
|
+
| 'customer'
|
|
994
|
+
| 'sales_rep'
|
|
995
|
+
| 'created_by'
|
|
996
|
+
| 'bill_to_address'
|
|
997
|
+
| 'ship_to_address'
|
|
998
|
+
| 'freight'
|
|
999
|
+
| 'payment_term'
|
|
1000
|
+
| 'shipping_term'
|
|
1001
|
+
| 'order_discount'
|
|
1002
|
+
| 'totals'
|
|
1003
|
+
| 'contacts'
|
|
1004
|
+
| 'related.pick'
|
|
1005
|
+
| 'related.production_run'
|
|
1006
|
+
| 'related.shipments'
|
|
1007
|
+
| 'lines'
|
|
1008
|
+
| 'lines.product'
|
|
1009
|
+
| 'lines.product.item'
|
|
1010
|
+
| 'lines.product.product_line'
|
|
1011
|
+
| 'lines.quantity_ordered'
|
|
1012
|
+
| 'lines.unit_price'
|
|
1013
|
+
| 'lines.unit_cost'
|
|
1014
|
+
| 'lines.totals'
|
|
1015
|
+
>;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Filter by item IDs.
|
|
1019
|
+
*/
|
|
1020
|
+
item_ids?: Array<string>;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Maximum number of results to return in a single page.
|
|
1024
|
+
*/
|
|
1025
|
+
limit?: number;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Filter by product line IDs.
|
|
1029
|
+
*/
|
|
1030
|
+
product_line_ids?: Array<string>;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Free-text search term used to filter results.
|
|
1034
|
+
*
|
|
1035
|
+
* Which fields are matched against the term varies by endpoint.
|
|
1036
|
+
*/
|
|
1037
|
+
q?: string;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Filter by sales rep IDs.
|
|
1041
|
+
*/
|
|
1042
|
+
sales_rep_ids?: Array<string>;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Earliest order creation date to include, in `YYYY-MM-DD` format (inclusive).
|
|
1046
|
+
*/
|
|
1047
|
+
start_date?: string;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Filter by status codes.
|
|
1051
|
+
*/
|
|
1052
|
+
status_codes?: Array<string>;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
export interface SalesOrderCreateParams {
|
|
1056
|
+
/**
|
|
1057
|
+
* Body param: Bill-to address ID. Must reference an existing address on the
|
|
1058
|
+
* order's owner or buyer account.
|
|
1059
|
+
*/
|
|
1060
|
+
bill_to_address_id: string;
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Body param: ID of the customer account the order is for.
|
|
1064
|
+
*/
|
|
1065
|
+
buyer_account_id: string;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Body param: Order lines to create.
|
|
1069
|
+
*/
|
|
1070
|
+
lines: Array<CreateSalesOrderLineInput>;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Body param: Fulfillment priority used to rank the order on the shop floor.
|
|
1074
|
+
*/
|
|
1075
|
+
priority_code: string;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Body param: Ship-to address ID. Must reference an existing address on the
|
|
1079
|
+
* order's owner or buyer account.
|
|
1080
|
+
*/
|
|
1081
|
+
ship_to_address_id: string;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
1085
|
+
* are returned as `null`.
|
|
1086
|
+
*/
|
|
1087
|
+
include?: Array<
|
|
1088
|
+
| 'customer'
|
|
1089
|
+
| 'sales_rep'
|
|
1090
|
+
| 'bill_to_address'
|
|
1091
|
+
| 'ship_to_address'
|
|
1092
|
+
| 'freight'
|
|
1093
|
+
| 'payment_term'
|
|
1094
|
+
| 'shipping_term'
|
|
1095
|
+
| 'order_discount'
|
|
1096
|
+
| 'totals'
|
|
1097
|
+
| 'contacts'
|
|
1098
|
+
| 'related.pick'
|
|
1099
|
+
| 'related.production_run'
|
|
1100
|
+
| 'related.shipments'
|
|
1101
|
+
| 'lines'
|
|
1102
|
+
| 'lines.product'
|
|
1103
|
+
| 'lines.quantity_ordered'
|
|
1104
|
+
| 'lines.unit_price'
|
|
1105
|
+
| 'lines.unit_cost'
|
|
1106
|
+
| 'lines.totals'
|
|
1107
|
+
>;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Body param: Account users who should receive order acknowledgement emails.
|
|
1111
|
+
*/
|
|
1112
|
+
acknowledgement_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Body param: Carrier billing account number.
|
|
1116
|
+
*/
|
|
1117
|
+
carrier_billing_account_number?: string;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Body param: Who is billed for freight.
|
|
1121
|
+
*
|
|
1122
|
+
* - `sender`: the sender pays for shipping.
|
|
1123
|
+
* - `third_party`: a third party pays for shipping, using the carrier billing
|
|
1124
|
+
* account number.
|
|
1125
|
+
*/
|
|
1126
|
+
carrier_billing_type?: 'sender' | 'third_party';
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Body param: Carrier ID.
|
|
1130
|
+
*/
|
|
1131
|
+
carrier_id?: string;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Body param: The customer's own purchase order number, for cross-referencing.
|
|
1135
|
+
*
|
|
1136
|
+
* Must be unique among your orders for this customer.
|
|
1137
|
+
*/
|
|
1138
|
+
customer_purchase_order_number?: string;
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Body param: Account users who should receive invoice emails.
|
|
1142
|
+
*/
|
|
1143
|
+
invoice_email_contacts?: Array<SalesOrderEmailContactInput>;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Body param: Order note.
|
|
1147
|
+
*/
|
|
1148
|
+
note?: string;
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Body param: Order discount ID.
|
|
1152
|
+
*
|
|
1153
|
+
* When supplied, a discount line is added to the order automatically.
|
|
1154
|
+
*/
|
|
1155
|
+
order_discount_id?: string;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Body param: Payment term ID.
|
|
1159
|
+
*/
|
|
1160
|
+
payment_term_id?: string;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Body param: Promised delivery date.
|
|
1164
|
+
*/
|
|
1165
|
+
promised_at?: string;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Body param: Sales rep ID.
|
|
1169
|
+
*
|
|
1170
|
+
* When omitted, a rep is assigned automatically: the customer's default sales rep
|
|
1171
|
+
* first, then the sales territory matching the ship-to postal code, then the
|
|
1172
|
+
* ship-to state.
|
|
1173
|
+
*/
|
|
1174
|
+
sales_rep_id?: string;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Body param: Service level ID.
|
|
1178
|
+
*/
|
|
1179
|
+
service_level_id?: string;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Body param: Shipping term ID.
|
|
1183
|
+
*/
|
|
1184
|
+
shipping_term_id?: string;
|
|
110
1185
|
}
|
|
111
1186
|
|
|
112
1187
|
export declare namespace SalesOrders {
|
|
113
1188
|
export {
|
|
1189
|
+
type CreateSalesOrderLineInput as CreateSalesOrderLineInput,
|
|
1190
|
+
type CreateSalesOrderRequest as CreateSalesOrderRequest,
|
|
1191
|
+
type CreatedBy as CreatedBy,
|
|
1192
|
+
type Freight as Freight,
|
|
1193
|
+
type ListRecord as ListRecord,
|
|
1194
|
+
type ListSalesOrder as ListSalesOrder,
|
|
1195
|
+
type ListSalesOrderLine as ListSalesOrderLine,
|
|
114
1196
|
type ListSalesOrderStatus as ListSalesOrderStatus,
|
|
1197
|
+
type OrderContact as OrderContact,
|
|
1198
|
+
type OrderDiscount as OrderDiscount,
|
|
1199
|
+
type Record as Record,
|
|
1200
|
+
type SalesOrder as SalesOrder,
|
|
1201
|
+
type SalesOrderEmailContactInput as SalesOrderEmailContactInput,
|
|
1202
|
+
type SalesOrderLine as SalesOrderLine,
|
|
1203
|
+
type SalesOrderRelated as SalesOrderRelated,
|
|
115
1204
|
type SalesOrderStatus as SalesOrderStatus,
|
|
1205
|
+
type SalesOrderTotals as SalesOrderTotals,
|
|
116
1206
|
type SalesOrderRetrieveStatusesParams as SalesOrderRetrieveStatusesParams,
|
|
1207
|
+
type SalesOrderListParams as SalesOrderListParams,
|
|
1208
|
+
type SalesOrderCreateParams as SalesOrderCreateParams,
|
|
117
1209
|
};
|
|
118
1210
|
}
|