@edgebound/bigcommerce 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +473 -0
- package/dist/bigcommerce-entities/addresses/index.d.ts +2 -0
- package/dist/bigcommerce-entities/addresses/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/index.js +18 -0
- package/dist/bigcommerce-entities/addresses/index.js.map +1 -0
- package/dist/{addresses.d.mts → bigcommerce-entities/addresses/schemas/address.schema.d.ts} +2 -9
- package/dist/bigcommerce-entities/addresses/schemas/address.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/address.schema.js +54 -0
- package/dist/bigcommerce-entities/addresses/schemas/address.schema.js.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.d.ts +6 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.js +42 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.js.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/companies/companies.service.d.ts +309 -0
- package/dist/bigcommerce-entities/companies/companies.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/companies.service.js +331 -0
- package/dist/bigcommerce-entities/companies/companies.service.js.map +1 -0
- package/dist/bigcommerce-entities/companies/index.d.ts +3 -0
- package/dist/bigcommerce-entities/companies/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/index.js +19 -0
- package/dist/bigcommerce-entities/companies/index.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.d.ts +63 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.js +101 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.d.ts +15 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.js +49 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.d.ts +28 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.js +60 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/index.d.ts +8 -0
- package/dist/bigcommerce-entities/companies/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/index.js +24 -0
- package/dist/bigcommerce-entities/companies/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.d.ts +12 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.js +50 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.d.ts +28 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.js +59 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.d.ts +15 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.js +51 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.d.ts +51 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.js +91 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.js.map +1 -0
- package/dist/bigcommerce-entities/currencies/index.d.ts +2 -0
- package/dist/bigcommerce-entities/currencies/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/currencies/index.js +3 -0
- package/dist/bigcommerce-entities/currencies/index.js.map +1 -0
- package/dist/bigcommerce-entities/customers/customers.service.d.ts +270 -0
- package/dist/bigcommerce-entities/customers/customers.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/customers.service.js +254 -0
- package/dist/bigcommerce-entities/customers/customers.service.js.map +1 -0
- package/dist/bigcommerce-entities/customers/index.d.ts +3 -0
- package/dist/bigcommerce-entities/customers/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/index.js +19 -0
- package/dist/bigcommerce-entities/customers/index.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.d.ts +35 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.js +74 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.d.ts +38 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.js +65 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.d.ts +35 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.js +81 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.d.ts +9 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.js +54 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/index.d.ts +5 -0
- package/dist/bigcommerce-entities/customers/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/index.js +21 -0
- package/dist/bigcommerce-entities/customers/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/index.d.ts +11 -0
- package/dist/bigcommerce-entities/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/index.js +27 -0
- package/dist/bigcommerce-entities/index.js.map +1 -0
- package/dist/bigcommerce-entities/orders/index.d.ts +3 -0
- package/dist/bigcommerce-entities/orders/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/index.js +19 -0
- package/dist/bigcommerce-entities/orders/index.js.map +1 -0
- package/dist/bigcommerce-entities/orders/orders.service.d.ts +470 -0
- package/dist/bigcommerce-entities/orders/orders.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/orders.service.js +274 -0
- package/dist/bigcommerce-entities/orders/orders.service.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.d.ts +17 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.js +55 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/index.d.ts +6 -0
- package/dist/bigcommerce-entities/orders/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/index.js +22 -0
- package/dist/bigcommerce-entities/orders/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.d.ts +31 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.js +64 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.js.map +1 -0
- package/dist/{addresses.d.ts → bigcommerce-entities/orders/schemas/order-shipping-address.schema.d.ts} +5 -9
- package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.js +44 -0
- package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.d.ts +104 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.js +109 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.js.map +1 -0
- package/dist/{status.schema-BgztUtGy.d.mts → bigcommerce-entities/orders/schemas/status.schema.d.ts} +4 -6
- package/dist/bigcommerce-entities/orders/schemas/status.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/status.schema.js +74 -0
- package/dist/bigcommerce-entities/orders/schemas/status.schema.js.map +1 -0
- package/dist/bigcommerce-entities/payments/index.d.ts +3 -0
- package/dist/bigcommerce-entities/payments/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/index.js +19 -0
- package/dist/bigcommerce-entities/payments/index.js.map +1 -0
- package/dist/bigcommerce-entities/payments/payments.service.d.ts +40 -0
- package/dist/bigcommerce-entities/payments/payments.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/payments.service.js +66 -0
- package/dist/bigcommerce-entities/payments/payments.service.js.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/index.d.ts +2 -0
- package/dist/bigcommerce-entities/payments/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/index.js +18 -0
- package/dist/bigcommerce-entities/payments/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.d.ts +14 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.js +46 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/index.d.ts +3 -0
- package/dist/bigcommerce-entities/price-lists/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/index.js +19 -0
- package/dist/bigcommerce-entities/price-lists/index.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.d.ts +97 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.js +126 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.d.ts +11 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.js +47 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.d.ts +32 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.js +66 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/products/index.d.ts +3 -0
- package/dist/bigcommerce-entities/products/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/index.js +19 -0
- package/dist/bigcommerce-entities/products/index.js.map +1 -0
- package/dist/bigcommerce-entities/products/products.service.d.ts +88 -0
- package/dist/bigcommerce-entities/products/products.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/products.service.js +165 -0
- package/dist/bigcommerce-entities/products/products.service.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/products/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/products/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.d.ts +26 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.js +57 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts +11 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.js +44 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/index.d.ts +3 -0
- package/dist/bigcommerce-entities/sales-staff/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/index.js +19 -0
- package/dist/bigcommerce-entities/sales-staff/index.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.d.ts +78 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.js +102 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.d.ts +31 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.js +62 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.d.ts +2 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.js +18 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/index.d.ts +2 -0
- package/dist/bigcommerce-entities/webhooks/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/index.js +18 -0
- package/dist/bigcommerce-entities/webhooks/index.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.d.ts +28 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.js +64 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.d.ts +4 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.js +20 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.d.ts +26 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.js +57 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.d.ts +54 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.js +52 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.js.map +1 -0
- package/dist/bigcommerce.module.d.ts +16 -0
- package/dist/bigcommerce.module.d.ts.map +1 -0
- package/dist/bigcommerce.module.js +83 -0
- package/dist/bigcommerce.module.js.map +1 -0
- package/dist/constants.d.ts +52 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +55 -0
- package/dist/constants.js.map +1 -0
- package/dist/core/bigcommerce-fetcher.service.d.ts +40 -0
- package/dist/core/bigcommerce-fetcher.service.d.ts.map +1 -0
- package/dist/core/bigcommerce-fetcher.service.js +133 -0
- package/dist/core/bigcommerce-fetcher.service.js.map +1 -0
- package/dist/core/bigcommerce.error.d.ts +51 -0
- package/dist/core/bigcommerce.error.d.ts.map +1 -0
- package/dist/core/bigcommerce.error.js +160 -0
- package/dist/core/bigcommerce.error.js.map +1 -0
- package/dist/core/config.module.d.ts +12 -0
- package/dist/core/config.module.d.ts.map +1 -0
- package/dist/core/config.module.js +75 -0
- package/dist/core/config.module.js.map +1 -0
- package/dist/core/config.schema.d.ts +20 -0
- package/dist/core/config.schema.d.ts.map +1 -0
- package/dist/core/config.schema.js +74 -0
- package/dist/core/config.schema.js.map +1 -0
- package/dist/core/config.service.d.ts +13 -0
- package/dist/core/config.service.d.ts.map +1 -0
- package/dist/core/config.service.js +30 -0
- package/dist/core/config.service.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +22 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +5 -36
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -371
- package/dist/index.js.map +1 -1
- package/dist/utils/chunk.d.ts +2 -0
- package/dist/utils/chunk.d.ts.map +1 -0
- package/dist/utils/chunk.js +12 -0
- package/dist/utils/chunk.js.map +1 -0
- package/dist/utils/concurrency.d.ts +11 -0
- package/dist/utils/concurrency.d.ts.map +1 -0
- package/dist/utils/concurrency.js +20 -0
- package/dist/utils/concurrency.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validation.error.d.ts +6 -0
- package/dist/utils/validation.error.d.ts.map +1 -0
- package/dist/utils/validation.error.js +50 -0
- package/dist/utils/validation.error.js.map +1 -0
- package/dist/utils/while.d.ts +8 -0
- package/dist/utils/while.d.ts.map +1 -0
- package/dist/utils/while.js +23 -0
- package/dist/utils/while.js.map +1 -0
- package/package.json +23 -67
- package/dist/addresses.js +0 -69
- package/dist/addresses.js.map +0 -1
- package/dist/addresses.mjs +0 -9
- package/dist/addresses.mjs.map +0 -1
- package/dist/bigcommerce.fetcher-Ujztbs8P.d.mts +0 -90
- package/dist/bigcommerce.fetcher-Ujztbs8P.d.ts +0 -90
- package/dist/chunk-BWLQCNNX.mjs +0 -30
- package/dist/chunk-BWLQCNNX.mjs.map +0 -1
- package/dist/chunk-CERZFSUE.mjs +0 -20
- package/dist/chunk-CERZFSUE.mjs.map +0 -1
- package/dist/chunk-V2WZ3SDN.mjs +0 -333
- package/dist/chunk-V2WZ3SDN.mjs.map +0 -1
- package/dist/chunk-XONZC4AG.mjs +0 -45
- package/dist/chunk-XONZC4AG.mjs.map +0 -1
- package/dist/companies.d.mts +0 -346
- package/dist/companies.d.ts +0 -346
- package/dist/companies.js +0 -837
- package/dist/companies.js.map +0 -1
- package/dist/companies.mjs +0 -467
- package/dist/companies.mjs.map +0 -1
- package/dist/currencies.d.mts +0 -2
- package/dist/currencies.d.ts +0 -2
- package/dist/currencies.js +0 -2
- package/dist/currencies.js.map +0 -1
- package/dist/currencies.mjs +0 -1
- package/dist/currencies.mjs.map +0 -1
- package/dist/customers.d.mts +0 -235
- package/dist/customers.d.ts +0 -235
- package/dist/customers.js +0 -679
- package/dist/customers.js.map +0 -1
- package/dist/customers.mjs +0 -320
- package/dist/customers.mjs.map +0 -1
- package/dist/index.d.mts +0 -36
- package/dist/index.mjs +0 -39
- package/dist/index.mjs.map +0 -1
- package/dist/orders.d.mts +0 -492
- package/dist/orders.d.ts +0 -492
- package/dist/orders.js +0 -723
- package/dist/orders.js.map +0 -1
- package/dist/orders.mjs +0 -312
- package/dist/orders.mjs.map +0 -1
- package/dist/payments.d.mts +0 -28
- package/dist/payments.d.ts +0 -28
- package/dist/payments.js +0 -372
- package/dist/payments.js.map +0 -1
- package/dist/payments.mjs +0 -43
- package/dist/payments.mjs.map +0 -1
- package/dist/priceLists.d.mts +0 -81
- package/dist/priceLists.d.ts +0 -81
- package/dist/priceLists.js +0 -465
- package/dist/priceLists.js.map +0 -1
- package/dist/priceLists.mjs +0 -118
- package/dist/priceLists.mjs.map +0 -1
- package/dist/products.d.mts +0 -52
- package/dist/products.d.ts +0 -52
- package/dist/products.js +0 -470
- package/dist/products.js.map +0 -1
- package/dist/products.mjs +0 -120
- package/dist/products.mjs.map +0 -1
- package/dist/salesStaff.d.mts +0 -64
- package/dist/salesStaff.d.ts +0 -64
- package/dist/salesStaff.js +0 -426
- package/dist/salesStaff.js.map +0 -1
- package/dist/salesStaff.mjs +0 -82
- package/dist/salesStaff.mjs.map +0 -1
- package/dist/status.schema-BgztUtGy.d.ts +0 -39
- package/dist/validation.error-CHLpPYC_.d.mts +0 -14
- package/dist/validation.error-CHLpPYC_.d.ts +0 -14
- package/dist/webhooks.d.mts +0 -109
- package/dist/webhooks.d.ts +0 -109
- package/dist/webhooks.js +0 -157
- package/dist/webhooks.js.map +0 -1
- package/dist/webhooks.mjs +0 -79
- package/dist/webhooks.mjs.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GetSalesStaffCriteriaSchema = exports.GetSalesStaffResponseSchema = exports.SalesStaffSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const constants_1 = require("../../../constants");
|
|
39
|
+
exports.SalesStaffSchema = z.object({
|
|
40
|
+
companyCount: z.number(),
|
|
41
|
+
email: z.string(),
|
|
42
|
+
id: z.number(),
|
|
43
|
+
roleName: z.string(),
|
|
44
|
+
salesRepName: z.string(),
|
|
45
|
+
});
|
|
46
|
+
exports.GetSalesStaffResponseSchema = z.object({
|
|
47
|
+
code: z.number(),
|
|
48
|
+
data: exports.SalesStaffSchema.array(),
|
|
49
|
+
meta: z.object({
|
|
50
|
+
message: z.string(),
|
|
51
|
+
pagination: z.object({
|
|
52
|
+
limit: z.number(),
|
|
53
|
+
offset: z.number(),
|
|
54
|
+
totalCount: z.number(),
|
|
55
|
+
}),
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
58
|
+
exports.GetSalesStaffCriteriaSchema = z.object({
|
|
59
|
+
limit: z.int().max(constants_1.DEFAULTS.salesStaff.getBatchSize).optional(),
|
|
60
|
+
offset: z.int().optional(),
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=get-sales-staff.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sales-staff.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,kDAA8C;AACjC,QAAA,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AACU,QAAA,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,wBAAgB,CAAC,KAAK,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;YACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;YACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;YAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;SACvB,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,oBAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;IAC/D,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/sales-staff/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-sales-staff.schema"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/sales-staff/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/webhooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./schemas"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/webhooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const CustomerAddressWebhookScopeSchema: z.ZodObject<{
|
|
3
|
+
scope: z.ZodEnum<{
|
|
4
|
+
"store/customer/address/created": "store/customer/address/created";
|
|
5
|
+
"store/customer/address/updated": "store/customer/address/updated";
|
|
6
|
+
"store/customer/address/deleted": "store/customer/address/deleted";
|
|
7
|
+
}>;
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<"customer">;
|
|
10
|
+
id: z.ZodInt;
|
|
11
|
+
address: z.ZodObject<{
|
|
12
|
+
customer_id: z.ZodInt;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const CustomerWebhookScopeSchema: z.ZodObject<{
|
|
17
|
+
scope: z.ZodEnum<{
|
|
18
|
+
"store/customer/created": "store/customer/created";
|
|
19
|
+
"store/customer/updated": "store/customer/updated";
|
|
20
|
+
"store/customer/deleted": "store/customer/deleted";
|
|
21
|
+
"store/customer/payment/instrument/default/updated": "store/customer/payment/instrument/default/updated";
|
|
22
|
+
}>;
|
|
23
|
+
data: z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"customer">;
|
|
25
|
+
id: z.ZodInt;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
//# sourceMappingURL=customer.scope.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.scope.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/customer.scope.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAa5C,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAWrC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CustomerWebhookScopeSchema = exports.CustomerAddressWebhookScopeSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
exports.CustomerAddressWebhookScopeSchema = z.object({
|
|
39
|
+
scope: z.enum([
|
|
40
|
+
'store/customer/address/created',
|
|
41
|
+
'store/customer/address/updated',
|
|
42
|
+
'store/customer/address/deleted',
|
|
43
|
+
]),
|
|
44
|
+
data: z.object({
|
|
45
|
+
type: z.literal('customer'),
|
|
46
|
+
id: z.int(),
|
|
47
|
+
address: z.object({
|
|
48
|
+
customer_id: z.int(),
|
|
49
|
+
}),
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
exports.CustomerWebhookScopeSchema = z.object({
|
|
53
|
+
scope: z.enum([
|
|
54
|
+
'store/customer/created',
|
|
55
|
+
'store/customer/updated',
|
|
56
|
+
'store/customer/deleted',
|
|
57
|
+
'store/customer/payment/instrument/default/updated',
|
|
58
|
+
]),
|
|
59
|
+
data: z.object({
|
|
60
|
+
type: z.literal('customer'),
|
|
61
|
+
id: z.int(),
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=customer.scope.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.scope.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/customer.scope.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACZ,QAAA,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC;QACZ,gCAAgC;QAChC,gCAAgC;QAChC,gCAAgC;KACjC,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC3B,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;QACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YAChB,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE;SACrB,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AACU,QAAA,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC;QACZ,wBAAwB;QACxB,wBAAwB;QACxB,wBAAwB;QACxB,mDAAmD;KACpD,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC3B,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;KACZ,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./customer.scope.schema"), exports);
|
|
18
|
+
__exportStar(require("./order.scope.schema"), exports);
|
|
19
|
+
__exportStar(require("./webhooks.schema"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const OrderWebhookScopeSchema: z.ZodObject<{
|
|
3
|
+
scope: z.ZodEnum<{
|
|
4
|
+
"store/order/created": "store/order/created";
|
|
5
|
+
"store/order/updated": "store/order/updated";
|
|
6
|
+
"store/order/archived": "store/order/archived";
|
|
7
|
+
}>;
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<"order">;
|
|
10
|
+
id: z.ZodInt;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const OrderStatusWebhookScopeSchema: z.ZodObject<{
|
|
14
|
+
scope: z.ZodEnum<{
|
|
15
|
+
"store/order/statusUpdated": "store/order/statusUpdated";
|
|
16
|
+
}>;
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<"order">;
|
|
19
|
+
id: z.ZodInt;
|
|
20
|
+
status: z.ZodObject<{
|
|
21
|
+
previous_status_id: z.ZodEnum<typeof import("../../orders/schemas/status.schema").OrderStatusEnum>;
|
|
22
|
+
new_status_id: z.ZodEnum<typeof import("../../orders/schemas/status.schema").OrderStatusEnum>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
//# sourceMappingURL=order.scope.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.scope.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/order.scope.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAMlC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;iBAUxC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.OrderStatusWebhookScopeSchema = exports.OrderWebhookScopeSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const status_schema_1 = require("../../orders/schemas/status.schema");
|
|
39
|
+
exports.OrderWebhookScopeSchema = z.object({
|
|
40
|
+
scope: z.enum(['store/order/created', 'store/order/updated', 'store/order/archived']),
|
|
41
|
+
data: z.object({
|
|
42
|
+
type: z.literal('order'),
|
|
43
|
+
id: z.int(),
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
exports.OrderStatusWebhookScopeSchema = z.object({
|
|
47
|
+
scope: z.enum(['store/order/statusUpdated']),
|
|
48
|
+
data: z.object({
|
|
49
|
+
type: z.literal('order'),
|
|
50
|
+
id: z.int(),
|
|
51
|
+
status: z.object({
|
|
52
|
+
previous_status_id: status_schema_1.OrderStatusSchema,
|
|
53
|
+
new_status_id: status_schema_1.OrderStatusSchema,
|
|
54
|
+
}),
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=order.scope.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.scope.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/order.scope.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,sEAAuE;AAC1D,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;IACrF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QACxB,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;KACZ,CAAC;CACH,CAAC,CAAC;AACU,QAAA,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,2BAA2B,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QACxB,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE;QACX,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,kBAAkB,EAAE,iCAAiB;YACrC,aAAa,EAAE,iCAAiB;SACjC,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const BigCommerceWebhooksScopeSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
|
+
hash: z.ZodString;
|
|
4
|
+
created_at: z.ZodNumber;
|
|
5
|
+
store_id: z.ZodString;
|
|
6
|
+
producer: z.ZodString;
|
|
7
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
scope: z.ZodEnum<{
|
|
9
|
+
"store/order/created": "store/order/created";
|
|
10
|
+
"store/order/updated": "store/order/updated";
|
|
11
|
+
"store/order/archived": "store/order/archived";
|
|
12
|
+
}>;
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"order">;
|
|
15
|
+
id: z.ZodInt;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
scope: z.ZodEnum<{
|
|
19
|
+
"store/order/statusUpdated": "store/order/statusUpdated";
|
|
20
|
+
}>;
|
|
21
|
+
data: z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"order">;
|
|
23
|
+
id: z.ZodInt;
|
|
24
|
+
status: z.ZodObject<{
|
|
25
|
+
previous_status_id: z.ZodEnum<typeof import("../..").OrderStatusEnum>;
|
|
26
|
+
new_status_id: z.ZodEnum<typeof import("../..").OrderStatusEnum>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
scope: z.ZodEnum<{
|
|
31
|
+
"store/customer/created": "store/customer/created";
|
|
32
|
+
"store/customer/updated": "store/customer/updated";
|
|
33
|
+
"store/customer/deleted": "store/customer/deleted";
|
|
34
|
+
"store/customer/payment/instrument/default/updated": "store/customer/payment/instrument/default/updated";
|
|
35
|
+
}>;
|
|
36
|
+
data: z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"customer">;
|
|
38
|
+
id: z.ZodInt;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
scope: z.ZodEnum<{
|
|
42
|
+
"store/customer/address/created": "store/customer/address/created";
|
|
43
|
+
"store/customer/address/updated": "store/customer/address/updated";
|
|
44
|
+
"store/customer/address/deleted": "store/customer/address/deleted";
|
|
45
|
+
}>;
|
|
46
|
+
data: z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<"customer">;
|
|
48
|
+
id: z.ZodInt;
|
|
49
|
+
address: z.ZodObject<{
|
|
50
|
+
customer_id: z.ZodInt;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>], "scope">>;
|
|
54
|
+
//# sourceMappingURL=webhooks.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/webhooks.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAczB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAQ1C,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.BigCommerceWebhooksScopeSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
const customer_scope_schema_1 = require("./customer.scope.schema");
|
|
39
|
+
const order_scope_schema_1 = require("./order.scope.schema");
|
|
40
|
+
const BigCommerceSomeOfSchema = z.discriminatedUnion('scope', [
|
|
41
|
+
order_scope_schema_1.OrderWebhookScopeSchema,
|
|
42
|
+
order_scope_schema_1.OrderStatusWebhookScopeSchema,
|
|
43
|
+
customer_scope_schema_1.CustomerWebhookScopeSchema,
|
|
44
|
+
customer_scope_schema_1.CustomerAddressWebhookScopeSchema,
|
|
45
|
+
]);
|
|
46
|
+
exports.BigCommerceWebhooksScopeSchema = z.intersection(z.object({
|
|
47
|
+
hash: z.string(),
|
|
48
|
+
created_at: z.number(),
|
|
49
|
+
store_id: z.string(),
|
|
50
|
+
producer: z.string(),
|
|
51
|
+
}), BigCommerceSomeOfSchema);
|
|
52
|
+
//# sourceMappingURL=webhooks.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/webhooks/schemas/webhooks.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,mEAGiC;AACjC,6DAA8F;AAE9F,MAAM,uBAAuB,GAAG,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE;IAC5D,4CAAuB;IACvB,kDAA6B;IAC7B,kDAA0B;IAC1B,yDAAiC;CAClC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAC1D,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,EACF,uBAAuB,CACxB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type DynamicModule } from '@nestjs/common';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
import { BigCommerceConfigSchema } from './core/config.schema';
|
|
4
|
+
/**
|
|
5
|
+
* Punto de entrada para consumir las APIs de BigCommerce dentro de la aplicación NestJS.
|
|
6
|
+
*
|
|
7
|
+
* Si no se proporciona una configuración personalizada mediante {@link BigCommerceModule.forRootAsync},
|
|
8
|
+
* el módulo utilizará `process.env` para leer las variables necesarias y construir la configuración
|
|
9
|
+
* inicial a través de `AppConfigModule.forRoot`. En ese caso se consultarán las variables de entorno
|
|
10
|
+
* `BIGCOMMERCE_STORE_HASH`, `BIGCOMMERCE_CLIENT_ID`, `BIGCOMMERCE_CLIENT_SECRET` y
|
|
11
|
+
* `BIGCOMMERCE_ACCESS_TOKEN`.
|
|
12
|
+
*/
|
|
13
|
+
export declare class BigCommerceModule {
|
|
14
|
+
static forRootAsync(config: z.input<typeof BigCommerceConfigSchema>): DynamicModule;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=bigcommerce.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigcommerce.module.d.ts","sourceRoot":"","sources":["../src/bigcommerce.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAiB,MAAM,gBAAgB,CAAC;AAC3E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAazB,OAAO,EAAE,uBAAuB,EAA4B,MAAM,sBAAsB,CAAC;AAezF;;;;;;;;GAQG;AACH,qBAoBa,iBAAiB;IAC5B,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG,aAAa;CAcpF"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var BigCommerceModule_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.BigCommerceModule = void 0;
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
const bigcommerce_entities_1 = require("./bigcommerce-entities");
|
|
13
|
+
const companies_service_1 = require("./bigcommerce-entities/companies/companies.service");
|
|
14
|
+
const orders_service_1 = require("./bigcommerce-entities/orders/orders.service");
|
|
15
|
+
const payments_service_1 = require("./bigcommerce-entities/payments/payments.service");
|
|
16
|
+
const price_lists_service_1 = require("./bigcommerce-entities/price-lists/price-lists.service");
|
|
17
|
+
const products_service_1 = require("./bigcommerce-entities/products/products.service");
|
|
18
|
+
const sales_staff_service_1 = require("./bigcommerce-entities/sales-staff/sales-staff.service");
|
|
19
|
+
const bigcommerce_fetcher_service_1 = require("./core/bigcommerce-fetcher.service");
|
|
20
|
+
const config_module_1 = require("./core/config.module");
|
|
21
|
+
const config_schema_1 = require("./core/config.schema");
|
|
22
|
+
const services = [
|
|
23
|
+
{
|
|
24
|
+
provide: bigcommerce_fetcher_service_1.BigCommerceFetcherService,
|
|
25
|
+
useClass: bigcommerce_fetcher_service_1.BigCommerceFetcherServiceImpl,
|
|
26
|
+
},
|
|
27
|
+
companies_service_1.BigCommerceCompaniesService,
|
|
28
|
+
bigcommerce_entities_1.BigCommerceCustomersService,
|
|
29
|
+
orders_service_1.BigCommerceOrdersService,
|
|
30
|
+
payments_service_1.BigCommercePaymentsService,
|
|
31
|
+
price_lists_service_1.BigCommercePriceListsService,
|
|
32
|
+
products_service_1.BigCommerceProductsService,
|
|
33
|
+
sales_staff_service_1.BigCommerceSalesStaffService,
|
|
34
|
+
];
|
|
35
|
+
/**
|
|
36
|
+
* Punto de entrada para consumir las APIs de BigCommerce dentro de la aplicación NestJS.
|
|
37
|
+
*
|
|
38
|
+
* Si no se proporciona una configuración personalizada mediante {@link BigCommerceModule.forRootAsync},
|
|
39
|
+
* el módulo utilizará `process.env` para leer las variables necesarias y construir la configuración
|
|
40
|
+
* inicial a través de `AppConfigModule.forRoot`. En ese caso se consultarán las variables de entorno
|
|
41
|
+
* `BIGCOMMERCE_STORE_HASH`, `BIGCOMMERCE_CLIENT_ID`, `BIGCOMMERCE_CLIENT_SECRET` y
|
|
42
|
+
* `BIGCOMMERCE_ACCESS_TOKEN`.
|
|
43
|
+
*/
|
|
44
|
+
let BigCommerceModule = BigCommerceModule_1 = class BigCommerceModule {
|
|
45
|
+
static forRootAsync(config) {
|
|
46
|
+
return {
|
|
47
|
+
imports: [
|
|
48
|
+
config_module_1.AppConfigModule.forRoot({
|
|
49
|
+
schema: config_schema_1.BigCommerceConfigSchema,
|
|
50
|
+
serviceClass: config_schema_1.BigCommerceConfigService,
|
|
51
|
+
loader: () => config,
|
|
52
|
+
}),
|
|
53
|
+
],
|
|
54
|
+
module: BigCommerceModule_1,
|
|
55
|
+
providers: services,
|
|
56
|
+
exports: services,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.BigCommerceModule = BigCommerceModule;
|
|
61
|
+
exports.BigCommerceModule = BigCommerceModule = BigCommerceModule_1 = __decorate([
|
|
62
|
+
(0, common_1.Module)({
|
|
63
|
+
providers: services,
|
|
64
|
+
exports: services,
|
|
65
|
+
imports: [
|
|
66
|
+
config_module_1.AppConfigModule.forRoot({
|
|
67
|
+
schema: config_schema_1.BigCommerceConfigSchema,
|
|
68
|
+
serviceClass: config_schema_1.BigCommerceConfigService,
|
|
69
|
+
loader: () => ({
|
|
70
|
+
store: {
|
|
71
|
+
hash: process.env['BIGCOMMERCE_STORE_HASH'],
|
|
72
|
+
},
|
|
73
|
+
credentials: {
|
|
74
|
+
clientId: process.env['BIGCOMMERCE_CLIENT_ID'],
|
|
75
|
+
clientSecret: process.env['BIGCOMMERCE_CLIENT_SECRET'],
|
|
76
|
+
accessToken: process.env['BIGCOMMERCE_ACCESS_TOKEN'],
|
|
77
|
+
},
|
|
78
|
+
}),
|
|
79
|
+
}),
|
|
80
|
+
],
|
|
81
|
+
})
|
|
82
|
+
], BigCommerceModule);
|
|
83
|
+
//# sourceMappingURL=bigcommerce.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigcommerce.module.js","sourceRoot":"","sources":["../src/bigcommerce.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA2E;AAE3E,iEAAqE;AACrE,0FAAiG;AACjG,iFAAwF;AACxF,uFAA8F;AAC9F,gGAAsG;AACtG,uFAA8F;AAC9F,gGAAsG;AACtG,oFAG4C;AAC5C,wDAAuD;AACvD,wDAAyF;AACzF,MAAM,QAAQ,GAAe;IAC3B;QACE,OAAO,EAAE,uDAAyB;QAClC,QAAQ,EAAE,2DAA6B;KACxC;IACD,+CAA2B;IAC3B,kDAA2B;IAC3B,yCAAwB;IACxB,6CAA0B;IAC1B,kDAA4B;IAC5B,6CAA0B;IAC1B,kDAA4B;CAC7B,CAAC;AAEF;;;;;;;;GAQG;AAqBI,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC5B,MAAM,CAAC,YAAY,CAAC,MAA+C;QACjE,OAAO;YACL,OAAO,EAAE;gBACP,+BAAe,CAAC,OAAO,CAAC;oBACtB,MAAM,EAAE,uCAAuB;oBAC/B,YAAY,EAAE,wCAAwB;oBACtC,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM;iBACrB,CAAC;aACH;YACD,MAAM,EAAE,mBAAiB;YACzB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,8CAAiB;4BAAjB,iBAAiB;IApB7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,QAAQ;QACnB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE;YACP,+BAAe,CAAC,OAAO,CAAC;gBACtB,MAAM,EAAE,uCAAuB;gBAC/B,YAAY,EAAE,wCAAwB;gBACtC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;oBACb,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;qBAC5C;oBACD,WAAW,EAAE;wBACX,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;wBAC9C,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;wBACtD,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;qBACrD;iBACF,CAAC;aACH,CAAC;SACH;KACF,CAAC;GACW,iBAAiB,CAe7B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const DEFAULTS: {
|
|
2
|
+
readonly retry: {
|
|
3
|
+
readonly maxRetries: 3;
|
|
4
|
+
readonly baseDelaySeconds: 2;
|
|
5
|
+
};
|
|
6
|
+
readonly timeout: {
|
|
7
|
+
readonly ms: 30000;
|
|
8
|
+
};
|
|
9
|
+
readonly bigcommerceUrls: {
|
|
10
|
+
readonly b2b: "https://api-b2b.bigcommerce.com/api";
|
|
11
|
+
readonly regular: "https://api.bigcommerce.com/stores";
|
|
12
|
+
};
|
|
13
|
+
readonly customers: {
|
|
14
|
+
readonly getBatchSize: 250;
|
|
15
|
+
};
|
|
16
|
+
readonly salesStaff: {
|
|
17
|
+
readonly getBatchSize: 250;
|
|
18
|
+
};
|
|
19
|
+
readonly companies: {
|
|
20
|
+
readonly salesStaffAssignments: {
|
|
21
|
+
readonly assignBatchSize: 10;
|
|
22
|
+
readonly concurrency: 2;
|
|
23
|
+
};
|
|
24
|
+
readonly extraFields: {
|
|
25
|
+
readonly getBatchSize: 250;
|
|
26
|
+
};
|
|
27
|
+
readonly roles: {
|
|
28
|
+
readonly getBatchSize: 250;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly products: {
|
|
32
|
+
readonly updateBatchSize: 5;
|
|
33
|
+
readonly updateConcurrency: 2;
|
|
34
|
+
readonly inventory: {
|
|
35
|
+
readonly updateBatchSize: 2000;
|
|
36
|
+
readonly updateConcurrency: 2;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly orders: {
|
|
40
|
+
readonly getAllBatchSize: 250;
|
|
41
|
+
readonly shippingAddresses: {
|
|
42
|
+
readonly getAllBatchSize: 250;
|
|
43
|
+
};
|
|
44
|
+
readonly products: {
|
|
45
|
+
readonly getAllBatchSize: 250;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly priceLists: {
|
|
49
|
+
readonly getAllBatchSize: 250;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDX,CAAC"}
|