@augno/sdk 0.1.9 → 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 +4 -9
- 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 +3 -3
- 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 -65
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +95 -65
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +38 -30
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +38 -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 +134 -87
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +134 -87
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +29 -19
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +29 -19
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +127 -74
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +127 -74
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +34 -20
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +34 -20
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +145 -70
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +145 -70
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +31 -26
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +31 -26
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +187 -90
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +187 -90
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +25 -20
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +25 -20
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +96 -44
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +96 -44
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +31 -21
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +31 -21
- 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 -47
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +70 -47
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +19 -18
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +19 -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 +130 -83
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +130 -83
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +33 -24
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +33 -24
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +78 -54
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +78 -54
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +34 -25
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +34 -25
- 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 -63
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +100 -63
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +26 -25
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +26 -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 +87 -48
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +87 -48
- 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 +52 -31
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +52 -31
- 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 -43
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +72 -43
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +33 -22
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +33 -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 +166 -79
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +166 -79
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +43 -25
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +43 -25
- 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 +88 -61
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +88 -61
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +33 -27
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +33 -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 +88 -59
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +88 -59
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +29 -21
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +29 -21
- 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 +115 -68
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +115 -68
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +37 -30
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +37 -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 +131 -65
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +131 -65
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +24 -20
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +24 -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 -69
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +143 -69
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +32 -23
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +32 -23
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +117 -81
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +117 -81
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +28 -26
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +28 -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 +111 -80
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +111 -80
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +30 -21
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +30 -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 +83 -36
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +83 -36
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +29 -19
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +29 -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 +588 -291
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +588 -291
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +58 -30
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +58 -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 +116 -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 +159 -112
- package/src/resources/catalog/parts.ts +145 -92
- package/src/resources/catalog/product-lines.ts +160 -85
- package/src/resources/catalog/products.ts +205 -108
- package/src/resources/catalog/properties/attributes.ts +110 -58
- package/src/resources/catalog/properties/index.ts +4 -4
- package/src/resources/catalog/properties/properties.ts +84 -61
- package/src/resources/catalog/unit-groups/index.ts +4 -4
- package/src/resources/catalog/unit-groups/unit-groups.ts +144 -97
- package/src/resources/catalog/unit-groups/units.ts +97 -73
- package/src/resources/catalog/units.ts +114 -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 +142 -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 +104 -64
- package/src/resources/core/sandboxes.ts +57 -36
- package/src/resources/finance/finance.ts +78 -44
- package/src/resources/finance/index.ts +4 -4
- package/src/resources/finance/payment-terms.ts +85 -56
- package/src/resources/identity/account-users/account-users.ts +180 -93
- 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 +96 -69
- package/src/resources/index.ts +3 -2
- package/src/resources/operations/carriers/carriers.ts +97 -68
- package/src/resources/operations/carriers/index.ts +4 -4
- package/src/resources/operations/carriers/service-levels.ts +136 -89
- package/src/resources/operations/index.ts +8 -8
- package/src/resources/operations/location-types.ts +38 -23
- package/src/resources/operations/locations.ts +140 -74
- package/src/resources/operations/operations.ts +8 -8
- package/src/resources/operations/scanning-stations.ts +160 -86
- package/src/resources/operations/shipping-terms.ts +134 -98
- package/src/resources/sales/account-groups.ts +122 -91
- package/src/resources/sales/account-statuses.ts +48 -30
- package/src/resources/sales/addresses.ts +91 -44
- package/src/resources/sales/customers/actions.ts +15 -4
- package/src/resources/sales/customers/customers.ts +660 -351
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"locations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC;IAIxC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CA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oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -7,17 +7,15 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Locations extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Returns a paginated list of locations in your account.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* const
|
|
15
|
-
*
|
|
16
|
-
* type: 'building',
|
|
17
|
-
* });
|
|
14
|
+
* const listLocation =
|
|
15
|
+
* await client.operations.locations.list();
|
|
18
16
|
* ```
|
|
19
17
|
*/
|
|
20
|
-
|
|
18
|
+
list(query?: LocationListParams | null | undefined, options?: RequestOptions): APIPromise<CustomersAPI.ListLocation>;
|
|
21
19
|
/**
|
|
22
20
|
* Returns a location by ID.
|
|
23
21
|
*
|
|
@@ -30,28 +28,34 @@ export declare class Locations extends APIResource {
|
|
|
30
28
|
*/
|
|
31
29
|
retrieve(id: string, query?: LocationRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomersAPI.Location>;
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
31
|
+
* Creates a storage location, optionally placing it in the location hierarchy.
|
|
34
32
|
*
|
|
35
33
|
* @example
|
|
36
34
|
* ```ts
|
|
37
|
-
* const location = await client.operations.locations.
|
|
38
|
-
* '
|
|
39
|
-
*
|
|
35
|
+
* const location = await client.operations.locations.create({
|
|
36
|
+
* name: 'Warehouse A',
|
|
37
|
+
* type: 'building',
|
|
38
|
+
* });
|
|
40
39
|
* ```
|
|
41
40
|
*/
|
|
42
|
-
|
|
41
|
+
create(params: LocationCreateParams, options?: RequestOptions): APIPromise<CustomersAPI.Location>;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
43
|
+
* Partially updates a location.
|
|
45
44
|
*
|
|
46
45
|
* @example
|
|
47
46
|
* ```ts
|
|
48
|
-
* const
|
|
49
|
-
*
|
|
47
|
+
* const location = await client.operations.locations.update(
|
|
48
|
+
* 'lc_014d187d99b31926f0c74af9d8',
|
|
49
|
+
* { name: 'Warehouse B' },
|
|
50
|
+
* );
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
|
+
update(id: string, params?: LocationUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CustomersAPI.Location>;
|
|
53
54
|
/**
|
|
54
|
-
* Deletes a location.
|
|
55
|
+
* Deletes a location.
|
|
56
|
+
*
|
|
57
|
+
* Fails if the location has child locations; remove or reassign the children
|
|
58
|
+
* first.
|
|
55
59
|
*
|
|
56
60
|
* @example
|
|
57
61
|
* ```ts
|
|
@@ -67,19 +71,32 @@ export declare class Locations extends APIResource {
|
|
|
67
71
|
*/
|
|
68
72
|
export interface CreateLocationRequest {
|
|
69
73
|
/**
|
|
70
|
-
* Display name.
|
|
74
|
+
* Display name of the location.
|
|
75
|
+
*
|
|
76
|
+
* Maximum 255 characters.
|
|
71
77
|
*/
|
|
72
78
|
name: string;
|
|
73
79
|
/**
|
|
74
|
-
* Location type code.
|
|
80
|
+
* Location type code, identifying this location's level in the storage hierarchy.
|
|
81
|
+
*
|
|
82
|
+
* - `building`: a building-level location.
|
|
83
|
+
* - `section`: a section within a building.
|
|
84
|
+
* - `aisle`: an aisle within a section.
|
|
85
|
+
* - `rack`: a rack within an aisle.
|
|
86
|
+
* - `shelf`: a shelf within a rack.
|
|
87
|
+
* - `bin`: a bin within a shelf.
|
|
75
88
|
*/
|
|
76
|
-
type:
|
|
89
|
+
type: CustomersAPI.LocationTypeCode;
|
|
77
90
|
/**
|
|
78
|
-
* IDs of
|
|
91
|
+
* IDs of existing locations to attach as children of the new location.
|
|
92
|
+
*
|
|
93
|
+
* Listed locations are moved from their current parent, if any.
|
|
79
94
|
*/
|
|
80
95
|
child_ids?: Array<string>;
|
|
81
96
|
/**
|
|
82
|
-
*
|
|
97
|
+
* ID of the parent location.
|
|
98
|
+
*
|
|
99
|
+
* Omit for top-level locations.
|
|
83
100
|
*/
|
|
84
101
|
parent_id?: string;
|
|
85
102
|
}
|
|
@@ -88,47 +105,63 @@ export interface CreateLocationRequest {
|
|
|
88
105
|
*/
|
|
89
106
|
export interface UpdateLocationRequest {
|
|
90
107
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
108
|
+
* IDs of locations to set as this location's children.
|
|
109
|
+
*
|
|
110
|
+
* When provided, replaces the full set of children: current children not listed
|
|
111
|
+
* are detached, and listed locations are moved from their current parent. Send
|
|
112
|
+
* `null` to detach all children.
|
|
93
113
|
*/
|
|
94
114
|
child_ids?: Array<string> | null;
|
|
95
115
|
/**
|
|
96
|
-
* Display name.
|
|
116
|
+
* Display name of the location.
|
|
117
|
+
*
|
|
118
|
+
* Maximum 255 characters.
|
|
97
119
|
*/
|
|
98
120
|
name?: string;
|
|
99
121
|
/**
|
|
100
|
-
*
|
|
122
|
+
* ID of the parent location.
|
|
123
|
+
*
|
|
124
|
+
* Send `null` to clear the parent and make this a top-level location.
|
|
101
125
|
*/
|
|
102
126
|
parent_id?: string | null;
|
|
103
127
|
/**
|
|
104
|
-
* Location type code.
|
|
105
|
-
|
|
106
|
-
|
|
128
|
+
* Location type code, identifying this location's level in the storage hierarchy.
|
|
129
|
+
*
|
|
130
|
+
* - `building`: a building-level location.
|
|
131
|
+
* - `section`: a section within a building.
|
|
132
|
+
* - `aisle`: an aisle within a section.
|
|
133
|
+
* - `rack`: a rack within an aisle.
|
|
134
|
+
* - `shelf`: a shelf within a rack.
|
|
135
|
+
* - `bin`: a bin within a shelf.
|
|
136
|
+
*/
|
|
137
|
+
type?: CustomersAPI.LocationTypeCode;
|
|
107
138
|
}
|
|
108
139
|
export interface LocationDeleteResponse {
|
|
109
140
|
}
|
|
110
|
-
export interface
|
|
111
|
-
/**
|
|
112
|
-
* Body param: Display name.
|
|
113
|
-
*/
|
|
114
|
-
name: string;
|
|
141
|
+
export interface LocationListParams {
|
|
115
142
|
/**
|
|
116
|
-
*
|
|
143
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
144
|
+
*
|
|
145
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
146
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
147
|
+
* page.
|
|
117
148
|
*/
|
|
118
|
-
|
|
149
|
+
cursor?: string;
|
|
119
150
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
151
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
152
|
+
* `null`.
|
|
122
153
|
*/
|
|
123
154
|
include?: Array<'parent' | 'children'>;
|
|
124
155
|
/**
|
|
125
|
-
*
|
|
156
|
+
* Maximum number of results to return in a single page.
|
|
126
157
|
*/
|
|
127
|
-
|
|
158
|
+
limit?: number;
|
|
128
159
|
/**
|
|
129
|
-
*
|
|
160
|
+
* Free-text search term used to filter results.
|
|
161
|
+
*
|
|
162
|
+
* Which fields are matched against the term varies by endpoint.
|
|
130
163
|
*/
|
|
131
|
-
|
|
164
|
+
q?: string;
|
|
132
165
|
}
|
|
133
166
|
export interface LocationRetrieveParams {
|
|
134
167
|
/**
|
|
@@ -137,50 +170,83 @@ export interface LocationRetrieveParams {
|
|
|
137
170
|
*/
|
|
138
171
|
include?: Array<'parent' | 'children'>;
|
|
139
172
|
}
|
|
140
|
-
export interface
|
|
173
|
+
export interface LocationCreateParams {
|
|
141
174
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
175
|
+
* Body param: Display name of the location.
|
|
176
|
+
*
|
|
177
|
+
* Maximum 255 characters.
|
|
144
178
|
*/
|
|
145
|
-
|
|
179
|
+
name: string;
|
|
146
180
|
/**
|
|
147
|
-
* Body param:
|
|
148
|
-
*
|
|
181
|
+
* Body param: Location type code, identifying this location's level in the storage
|
|
182
|
+
* hierarchy.
|
|
183
|
+
*
|
|
184
|
+
* - `building`: a building-level location.
|
|
185
|
+
* - `section`: a section within a building.
|
|
186
|
+
* - `aisle`: an aisle within a section.
|
|
187
|
+
* - `rack`: a rack within an aisle.
|
|
188
|
+
* - `shelf`: a shelf within a rack.
|
|
189
|
+
* - `bin`: a bin within a shelf.
|
|
149
190
|
*/
|
|
150
|
-
|
|
191
|
+
type: CustomersAPI.LocationTypeCode;
|
|
151
192
|
/**
|
|
152
|
-
*
|
|
193
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
194
|
+
* are returned as `null`.
|
|
153
195
|
*/
|
|
154
|
-
|
|
196
|
+
include?: Array<'parent' | 'children'>;
|
|
155
197
|
/**
|
|
156
|
-
* Body param:
|
|
198
|
+
* Body param: IDs of existing locations to attach as children of the new location.
|
|
199
|
+
*
|
|
200
|
+
* Listed locations are moved from their current parent, if any.
|
|
157
201
|
*/
|
|
158
|
-
|
|
202
|
+
child_ids?: Array<string>;
|
|
159
203
|
/**
|
|
160
|
-
* Body param:
|
|
204
|
+
* Body param: ID of the parent location.
|
|
205
|
+
*
|
|
206
|
+
* Omit for top-level locations.
|
|
161
207
|
*/
|
|
162
|
-
|
|
208
|
+
parent_id?: string;
|
|
163
209
|
}
|
|
164
|
-
export interface
|
|
210
|
+
export interface LocationUpdateParams {
|
|
165
211
|
/**
|
|
166
|
-
*
|
|
212
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
213
|
+
* are returned as `null`.
|
|
167
214
|
*/
|
|
168
|
-
|
|
215
|
+
include?: Array<'parent' | 'children'>;
|
|
169
216
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
217
|
+
* Body param: IDs of locations to set as this location's children.
|
|
218
|
+
*
|
|
219
|
+
* When provided, replaces the full set of children: current children not listed
|
|
220
|
+
* are detached, and listed locations are moved from their current parent. Send
|
|
221
|
+
* `null` to detach all children.
|
|
172
222
|
*/
|
|
173
|
-
|
|
223
|
+
child_ids?: Array<string> | null;
|
|
174
224
|
/**
|
|
175
|
-
*
|
|
225
|
+
* Body param: Display name of the location.
|
|
226
|
+
*
|
|
227
|
+
* Maximum 255 characters.
|
|
176
228
|
*/
|
|
177
|
-
|
|
229
|
+
name?: string;
|
|
178
230
|
/**
|
|
179
|
-
*
|
|
231
|
+
* Body param: ID of the parent location.
|
|
232
|
+
*
|
|
233
|
+
* Send `null` to clear the parent and make this a top-level location.
|
|
180
234
|
*/
|
|
181
|
-
|
|
235
|
+
parent_id?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
* Body param: Location type code, identifying this location's level in the storage
|
|
238
|
+
* hierarchy.
|
|
239
|
+
*
|
|
240
|
+
* - `building`: a building-level location.
|
|
241
|
+
* - `section`: a section within a building.
|
|
242
|
+
* - `aisle`: an aisle within a section.
|
|
243
|
+
* - `rack`: a rack within an aisle.
|
|
244
|
+
* - `shelf`: a shelf within a rack.
|
|
245
|
+
* - `bin`: a bin within a shelf.
|
|
246
|
+
*/
|
|
247
|
+
type?: CustomersAPI.LocationTypeCode;
|
|
182
248
|
}
|
|
183
249
|
export declare namespace Locations {
|
|
184
|
-
export { type CreateLocationRequest as CreateLocationRequest, type UpdateLocationRequest as UpdateLocationRequest, type LocationDeleteResponse as LocationDeleteResponse, type
|
|
250
|
+
export { type CreateLocationRequest as CreateLocationRequest, type UpdateLocationRequest as UpdateLocationRequest, type LocationDeleteResponse as LocationDeleteResponse, type LocationListParams as LocationListParams, type LocationRetrieveParams as LocationRetrieveParams, type LocationCreateParams as LocationCreateParams, type LocationUpdateParams as LocationUpdateParams, };
|
|
185
251
|
}
|
|
186
252
|
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;OAQG;IACH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AgB,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -9,19 +9,16 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
9
9
|
*/
|
|
10
10
|
class Locations extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Returns a paginated list of locations in your account.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* const
|
|
17
|
-
*
|
|
18
|
-
* type: 'building',
|
|
19
|
-
* });
|
|
16
|
+
* const listLocation =
|
|
17
|
+
* await client.operations.locations.list();
|
|
20
18
|
* ```
|
|
21
19
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
27
24
|
* Returns a location by ID.
|
|
@@ -36,6 +33,21 @@ class Locations extends resource_1.APIResource {
|
|
|
36
33
|
retrieve(id, query = {}, options) {
|
|
37
34
|
return this._client.get((0, path_1.path) `/v1/operations/locations/${id}`, { query, ...options });
|
|
38
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Creates a storage location, optionally placing it in the location hierarchy.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const location = await client.operations.locations.create({
|
|
42
|
+
* name: 'Warehouse A',
|
|
43
|
+
* type: 'building',
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
create(params, options) {
|
|
48
|
+
const { include, ...body } = params;
|
|
49
|
+
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
50
|
+
}
|
|
39
51
|
/**
|
|
40
52
|
* Partially updates a location.
|
|
41
53
|
*
|
|
@@ -43,6 +55,7 @@ class Locations extends resource_1.APIResource {
|
|
|
43
55
|
* ```ts
|
|
44
56
|
* const location = await client.operations.locations.update(
|
|
45
57
|
* 'lc_014d187d99b31926f0c74af9d8',
|
|
58
|
+
* { name: 'Warehouse B' },
|
|
46
59
|
* );
|
|
47
60
|
* ```
|
|
48
61
|
*/
|
|
@@ -51,19 +64,10 @@ class Locations extends resource_1.APIResource {
|
|
|
51
64
|
return this._client.patch((0, path_1.path) `/v1/operations/locations/${id}`, { query: { include }, body, ...options });
|
|
52
65
|
}
|
|
53
66
|
/**
|
|
54
|
-
*
|
|
67
|
+
* Deletes a location.
|
|
55
68
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* const listLocation =
|
|
59
|
-
* await client.operations.locations.list();
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
list(query = {}, options) {
|
|
63
|
-
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Deletes a location. Fails if the location has child locations.
|
|
69
|
+
* Fails if the location has child locations; remove or reassign the children
|
|
70
|
+
* first.
|
|
67
71
|
*
|
|
68
72
|
* @example
|
|
69
73
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../src/resources/oper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,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAvFD,8BAuFC"}
|
|
@@ -6,19 +6,16 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export class Locations extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns a paginated list of locations in your account.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const
|
|
14
|
-
*
|
|
15
|
-
* type: 'building',
|
|
16
|
-
* });
|
|
13
|
+
* const listLocation =
|
|
14
|
+
* await client.operations.locations.list();
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
22
19
|
}
|
|
23
20
|
/**
|
|
24
21
|
* Returns a location by ID.
|
|
@@ -33,6 +30,21 @@ export class Locations extends APIResource {
|
|
|
33
30
|
retrieve(id, query = {}, options) {
|
|
34
31
|
return this._client.get(path `/v1/operations/locations/${id}`, { query, ...options });
|
|
35
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates a storage location, optionally placing it in the location hierarchy.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const location = await client.operations.locations.create({
|
|
39
|
+
* name: 'Warehouse A',
|
|
40
|
+
* type: 'building',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
create(params, options) {
|
|
45
|
+
const { include, ...body } = params;
|
|
46
|
+
return this._client.post('/v1/operations/locations', { query: { include }, body, ...options });
|
|
47
|
+
}
|
|
36
48
|
/**
|
|
37
49
|
* Partially updates a location.
|
|
38
50
|
*
|
|
@@ -40,6 +52,7 @@ export class Locations extends APIResource {
|
|
|
40
52
|
* ```ts
|
|
41
53
|
* const location = await client.operations.locations.update(
|
|
42
54
|
* 'lc_014d187d99b31926f0c74af9d8',
|
|
55
|
+
* { name: 'Warehouse B' },
|
|
43
56
|
* );
|
|
44
57
|
* ```
|
|
45
58
|
*/
|
|
@@ -48,19 +61,10 @@ export class Locations extends APIResource {
|
|
|
48
61
|
return this._client.patch(path `/v1/operations/locations/${id}`, { query: { include }, body, ...options });
|
|
49
62
|
}
|
|
50
63
|
/**
|
|
51
|
-
*
|
|
64
|
+
* Deletes a location.
|
|
52
65
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* const listLocation =
|
|
56
|
-
* await client.operations.locations.list();
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
list(query = {}, options) {
|
|
60
|
-
return this._client.get('/v1/operations/locations', { query, ...options });
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Deletes a location. Fails if the location has child locations.
|
|
66
|
+
* Fails if the location has child locations; remove or reassign the children
|
|
67
|
+
* first.
|
|
64
68
|
*
|
|
65
69
|
* @example
|
|
66
70
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.mjs","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"locations.mjs","sourceRoot":"","sources":["../../src/resources/operations/locations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAU,EACV,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA4B,EAAE,OAAwB;QAC3D,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -17,10 +17,10 @@ export declare class Operations extends APIResource {
|
|
|
17
17
|
scanningStations: ScanningStationsAPI.ScanningStations;
|
|
18
18
|
}
|
|
19
19
|
export declare namespace Operations {
|
|
20
|
-
export { ShippingTerms as ShippingTerms, type CreateShippingTermRequest as CreateShippingTermRequest, type ListShippingTerm as ListShippingTerm, type UpdateShippingTermRequest as UpdateShippingTermRequest, type ShippingTermDeleteResponse as ShippingTermDeleteResponse, type
|
|
21
|
-
export { Carriers as Carriers, type CreateCarrierRequest as CreateCarrierRequest, type ListCarrier as ListCarrier, type UpdateCarrierRequest as UpdateCarrierRequest, type CarrierDeleteResponse as CarrierDeleteResponse, type
|
|
22
|
-
export { Locations as Locations, type CreateLocationRequest as CreateLocationRequest, type UpdateLocationRequest as UpdateLocationRequest, type LocationDeleteResponse as LocationDeleteResponse, type
|
|
20
|
+
export { ShippingTerms as ShippingTerms, type CreateShippingTermRequest as CreateShippingTermRequest, type ListShippingTerm as ListShippingTerm, type UpdateShippingTermRequest as UpdateShippingTermRequest, type ShippingTermDeleteResponse as ShippingTermDeleteResponse, type ShippingTermListParams as ShippingTermListParams, type ShippingTermRetrieveParams as ShippingTermRetrieveParams, type ShippingTermCreateParams as ShippingTermCreateParams, type ShippingTermUpdateParams as ShippingTermUpdateParams, };
|
|
21
|
+
export { Carriers as Carriers, type CreateCarrierRequest as CreateCarrierRequest, type ListCarrier as ListCarrier, type UpdateCarrierRequest as UpdateCarrierRequest, type CarrierDeleteResponse as CarrierDeleteResponse, type CarrierListParams as CarrierListParams, type CarrierRetrieveParams as CarrierRetrieveParams, type CarrierCreateParams as CarrierCreateParams, type CarrierUpdateParams as CarrierUpdateParams, };
|
|
22
|
+
export { Locations as Locations, type CreateLocationRequest as CreateLocationRequest, type UpdateLocationRequest as UpdateLocationRequest, type LocationDeleteResponse as LocationDeleteResponse, type LocationListParams as LocationListParams, type LocationRetrieveParams as LocationRetrieveParams, type LocationCreateParams as LocationCreateParams, type LocationUpdateParams as LocationUpdateParams, };
|
|
23
23
|
export { LocationTypes as LocationTypes, type ListLocationType as ListLocationType, type LocationType as LocationType, type LocationTypeListParams as LocationTypeListParams, };
|
|
24
|
-
export { ScanningStations as ScanningStations, type CreateScanningStationRequest as CreateScanningStationRequest, type UpdateScanningStationRequest as UpdateScanningStationRequest, type ScanningStationDeleteResponse as ScanningStationDeleteResponse, type
|
|
24
|
+
export { ScanningStations as ScanningStations, type CreateScanningStationRequest as CreateScanningStationRequest, type UpdateScanningStationRequest as UpdateScanningStationRequest, type ScanningStationDeleteResponse as ScanningStationDeleteResponse, type ScanningStationListParams as ScanningStationListParams, type ScanningStationRetrieveParams as ScanningStationRetrieveParams, type ScanningStationCreateParams as ScanningStationCreateParams, type ScanningStationUpdateParams as ScanningStationUpdateParams, };
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=operations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,gBAAgB,EAAE,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE;OACzE,KAAK,YAAY;OACjB,EACL,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACT,qBAAqB,EACtB;OACM,KAAK,mBAAmB;OACxB,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,4BAA4B,EAC7B;OACM,KAAK,gBAAgB;OACrB,EACL,yBAAyB,EACzB,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,aAAa,EACb,yBAAyB,EAC1B;OACM,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,WAAW,EAC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,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -17,10 +17,10 @@ export declare class Operations extends APIResource {
|
|
|
17
17
|
scanningStations: ScanningStationsAPI.ScanningStations;
|
|
18
18
|
}
|
|
19
19
|
export declare namespace Operations {
|
|
20
|
-
export { ShippingTerms as ShippingTerms, type CreateShippingTermRequest as CreateShippingTermRequest, type ListShippingTerm as ListShippingTerm, type UpdateShippingTermRequest as UpdateShippingTermRequest, type ShippingTermDeleteResponse as ShippingTermDeleteResponse, type
|
|
21
|
-
export { Carriers as Carriers, type CreateCarrierRequest as CreateCarrierRequest, type ListCarrier as ListCarrier, type UpdateCarrierRequest as UpdateCarrierRequest, type CarrierDeleteResponse as CarrierDeleteResponse, type
|
|
22
|
-
export { Locations as Locations, type CreateLocationRequest as CreateLocationRequest, type UpdateLocationRequest as UpdateLocationRequest, type LocationDeleteResponse as LocationDeleteResponse, type
|
|
20
|
+
export { ShippingTerms as ShippingTerms, type CreateShippingTermRequest as CreateShippingTermRequest, type ListShippingTerm as ListShippingTerm, type UpdateShippingTermRequest as UpdateShippingTermRequest, type ShippingTermDeleteResponse as ShippingTermDeleteResponse, type ShippingTermListParams as ShippingTermListParams, type ShippingTermRetrieveParams as ShippingTermRetrieveParams, type ShippingTermCreateParams as ShippingTermCreateParams, type ShippingTermUpdateParams as ShippingTermUpdateParams, };
|
|
21
|
+
export { Carriers as Carriers, type CreateCarrierRequest as CreateCarrierRequest, type ListCarrier as ListCarrier, type UpdateCarrierRequest as UpdateCarrierRequest, type CarrierDeleteResponse as CarrierDeleteResponse, type CarrierListParams as CarrierListParams, type CarrierRetrieveParams as CarrierRetrieveParams, type CarrierCreateParams as CarrierCreateParams, type CarrierUpdateParams as CarrierUpdateParams, };
|
|
22
|
+
export { Locations as Locations, type CreateLocationRequest as CreateLocationRequest, type UpdateLocationRequest as UpdateLocationRequest, type LocationDeleteResponse as LocationDeleteResponse, type LocationListParams as LocationListParams, type LocationRetrieveParams as LocationRetrieveParams, type LocationCreateParams as LocationCreateParams, type LocationUpdateParams as LocationUpdateParams, };
|
|
23
23
|
export { LocationTypes as LocationTypes, type ListLocationType as ListLocationType, type LocationType as LocationType, type LocationTypeListParams as LocationTypeListParams, };
|
|
24
|
-
export { ScanningStations as ScanningStations, type CreateScanningStationRequest as CreateScanningStationRequest, type UpdateScanningStationRequest as UpdateScanningStationRequest, type ScanningStationDeleteResponse as ScanningStationDeleteResponse, type
|
|
24
|
+
export { ScanningStations as ScanningStations, type CreateScanningStationRequest as CreateScanningStationRequest, type UpdateScanningStationRequest as UpdateScanningStationRequest, type ScanningStationDeleteResponse as ScanningStationDeleteResponse, type ScanningStationListParams as ScanningStationListParams, type ScanningStationRetrieveParams as ScanningStationRetrieveParams, type ScanningStationCreateParams as ScanningStationCreateParams, type ScanningStationUpdateParams as ScanningStationUpdateParams, };
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"OAE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":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAA0D,aAAa,EAAE;OACzE,KAAK,YAAY;OACjB,EAOL,SAAS,GAEV;OACM,KAAK,mBAAmB;OACxB,EAOL,gBAAgB,GAEjB;OACM,KAAK,gBAAgB;OACrB,EAQL,aAAa,GAEd;OACM,KAAK,WAAW;OAChB,EAML,QAAQ,GAIT;AAED,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CAAA;AAED,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;AACzC,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC/B,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC;AACjC,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;AACzC,UAAU,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|