@edgebound/bigcommerce 0.3.2 → 0.4.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/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,309 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import type { BigCommerceFetcherService } from '../../core';
|
|
3
|
+
import { AssignSalesStaffSchema, CreateCompanySchema, CreateCompanyUserSchema, GetCompanyExtraFieldsCriteriaSchema, GetCompanyInputSchema, GetCompanyRolesCriteriaSchema, GetUserDetailsByCustomerIdInputSchema, SetCompanyCreditSchema, SetCompanyPaymentMethodsSchema } from './schemas';
|
|
4
|
+
/**
|
|
5
|
+
* Service for managing BigCommerce B2B companies.
|
|
6
|
+
*
|
|
7
|
+
* Provides methods for creating companies, managing users, assigning sales staff,
|
|
8
|
+
* configuring payment methods, and handling company-related operations.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import { BigCommerceCompaniesService } from '@edgebound/bigcommerce';
|
|
13
|
+
*
|
|
14
|
+
* @Injectable()
|
|
15
|
+
* export class MyService {
|
|
16
|
+
* constructor(private readonly companiesService: BigCommerceCompaniesService) {}
|
|
17
|
+
*
|
|
18
|
+
* async createCompany() {
|
|
19
|
+
* const result = await this.companiesService.createCompany({
|
|
20
|
+
* company_name: 'Acme Corp',
|
|
21
|
+
* company_email: 'contact@acme.com'
|
|
22
|
+
* });
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class BigCommerceCompaniesService {
|
|
28
|
+
private readonly fetcher;
|
|
29
|
+
constructor(fetcher: BigCommerceFetcherService);
|
|
30
|
+
/**
|
|
31
|
+
* Assigns sales staff members to companies in batch.
|
|
32
|
+
*
|
|
33
|
+
* Processes assignments concurrently with automatic batching for optimal performance.
|
|
34
|
+
*
|
|
35
|
+
* @param input - Assignment configuration including company-staff mappings
|
|
36
|
+
* @returns ResultAsync with success/error results for each assignment
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const result = await companiesService.assignSalesStaffToCompany({
|
|
41
|
+
* assignments: [
|
|
42
|
+
* { companyId: 1, salesStaffId: 10 },
|
|
43
|
+
* { companyId: 2, salesStaffId: 11 }
|
|
44
|
+
* ]
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
assignSalesStaffToCompany(input: z.input<typeof AssignSalesStaffSchema>): import("neverthrow").ResultAsync<{
|
|
49
|
+
success: {
|
|
50
|
+
code: number;
|
|
51
|
+
meta: {
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
}[];
|
|
55
|
+
errors: import("../../core").SomeBigCommerceError[];
|
|
56
|
+
}, import("../../utils/validation.error").InputDataValidationError>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new user within a company.
|
|
59
|
+
*
|
|
60
|
+
* @param input - User details including email, name, role, and company association
|
|
61
|
+
* @returns ResultAsync with the created user details
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* const result = await companiesService.createCompanyUser({
|
|
66
|
+
* email: 'john@acme.com',
|
|
67
|
+
* first_name: 'John',
|
|
68
|
+
* last_name: 'Doe',
|
|
69
|
+
* company_id: 1,
|
|
70
|
+
* role_id: 2
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
createCompanyUser(input: z.input<typeof CreateCompanyUserSchema>): import("neverthrow").ResultAsync<{
|
|
75
|
+
code: number;
|
|
76
|
+
data: {
|
|
77
|
+
bcId: number;
|
|
78
|
+
userId: number;
|
|
79
|
+
};
|
|
80
|
+
meta: {
|
|
81
|
+
message: string;
|
|
82
|
+
};
|
|
83
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates a new B2B company in BigCommerce.
|
|
86
|
+
*
|
|
87
|
+
* @param input - Company details including name, email, and configuration
|
|
88
|
+
* @returns ResultAsync with the created company details
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* const result = await companiesService.createCompany({
|
|
93
|
+
* company_name: 'Acme Corporation',
|
|
94
|
+
* company_email: 'contact@acme.com',
|
|
95
|
+
* phone: '+1-555-0100'
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
createCompany(input: z.input<typeof CreateCompanySchema>): import("neverthrow").ResultAsync<{
|
|
100
|
+
data: {
|
|
101
|
+
companyId: number;
|
|
102
|
+
};
|
|
103
|
+
meta: {
|
|
104
|
+
message: string;
|
|
105
|
+
};
|
|
106
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
107
|
+
/**
|
|
108
|
+
* Sets or updates the credit limit for a company.
|
|
109
|
+
*
|
|
110
|
+
* @param input - Company ID and credit configuration
|
|
111
|
+
* @returns ResultAsync with updated credit details
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* const result = await companiesService.setCompanyCredit({
|
|
116
|
+
* companyId: 1,
|
|
117
|
+
* data: {
|
|
118
|
+
* credit_limit: 10000,
|
|
119
|
+
* currency_code: 'USD'
|
|
120
|
+
* }
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
setCompanyCredit(input: z.infer<typeof SetCompanyCreditSchema>): import("neverthrow").ResultAsync<Record<string, never>, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
125
|
+
/**
|
|
126
|
+
* Finds company extra fields with pagination.
|
|
127
|
+
*
|
|
128
|
+
* @param criteria - Search criteria including limit and offset
|
|
129
|
+
* @returns ResultAsync with paginated extra fields
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* const result = await companiesService.findCompanyExtraFields({
|
|
134
|
+
* limit: 50,
|
|
135
|
+
* offset: 0
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
findCompanyExtraFields(criteria: z.input<typeof GetCompanyExtraFieldsCriteriaSchema>): import("neverthrow").ResultAsync<{
|
|
140
|
+
data: {
|
|
141
|
+
fieldName: string;
|
|
142
|
+
labelName: string;
|
|
143
|
+
listOfValue?: string[] | undefined;
|
|
144
|
+
maximumLength?: number | undefined;
|
|
145
|
+
}[];
|
|
146
|
+
meta: {
|
|
147
|
+
message: string;
|
|
148
|
+
pagination: {
|
|
149
|
+
totalCount: number;
|
|
150
|
+
offset: number;
|
|
151
|
+
limit: number;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
155
|
+
/**
|
|
156
|
+
* Retrieves all company extra fields by automatically handling pagination.
|
|
157
|
+
*
|
|
158
|
+
* @param criteria - Optional search criteria (excluding pagination params)
|
|
159
|
+
* @returns ResultAsync with all extra fields
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```typescript
|
|
163
|
+
* const result = await companiesService.getAllCompanyExtraFields();
|
|
164
|
+
* // Returns all extra fields across all pages
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
getAllCompanyExtraFields(criteria?: Omit<z.input<typeof GetCompanyExtraFieldsCriteriaSchema>, 'limit' | 'offset'>): import("neverthrow").ResultAsync<{
|
|
168
|
+
fieldName: string;
|
|
169
|
+
labelName: string;
|
|
170
|
+
listOfValue?: string[] | undefined;
|
|
171
|
+
maximumLength?: number | undefined;
|
|
172
|
+
}[], import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
173
|
+
/**
|
|
174
|
+
* Finds company roles with pagination.
|
|
175
|
+
*
|
|
176
|
+
* @param criteria - Search criteria including limit and offset
|
|
177
|
+
* @returns ResultAsync with paginated company roles
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```typescript
|
|
181
|
+
* const result = await companiesService.findCompanyRoles({
|
|
182
|
+
* limit: 50,
|
|
183
|
+
* offset: 0
|
|
184
|
+
* });
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
findCompanyRoles(criteria: z.infer<typeof GetCompanyRolesCriteriaSchema>): import("neverthrow").ResultAsync<{
|
|
188
|
+
data: {
|
|
189
|
+
id: number;
|
|
190
|
+
name: string;
|
|
191
|
+
roleLevel: number;
|
|
192
|
+
roleType: number;
|
|
193
|
+
}[];
|
|
194
|
+
meta: {
|
|
195
|
+
message: string;
|
|
196
|
+
pagination: {
|
|
197
|
+
limit: number;
|
|
198
|
+
offset: number;
|
|
199
|
+
totalCount: number;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
203
|
+
/**
|
|
204
|
+
* Retrieves all company roles by automatically handling pagination.
|
|
205
|
+
*
|
|
206
|
+
* @param criteria - Optional search criteria (excluding pagination params)
|
|
207
|
+
* @returns ResultAsync with all company roles
|
|
208
|
+
*/
|
|
209
|
+
getAllCompanyRoles(criteria?: Omit<z.infer<typeof GetCompanyRolesCriteriaSchema>, 'limit' | 'offset'>): import("neverthrow").ResultAsync<{
|
|
210
|
+
id: number;
|
|
211
|
+
name: string;
|
|
212
|
+
roleLevel: number;
|
|
213
|
+
roleType: number;
|
|
214
|
+
}[], import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
215
|
+
/**
|
|
216
|
+
* Retrieves detailed information about a specific company.
|
|
217
|
+
*
|
|
218
|
+
* @param input - Object containing the company ID
|
|
219
|
+
* @returns ResultAsync with company details
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* ```typescript
|
|
223
|
+
* const result = await companiesService.getCompanyDetails({ companyId: 1 });
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
getCompanyDetails(input: z.input<typeof GetCompanyInputSchema>): import("neverthrow").ResultAsync<{
|
|
227
|
+
data: {
|
|
228
|
+
companyId: number;
|
|
229
|
+
companyName: string;
|
|
230
|
+
bcGroupName: string;
|
|
231
|
+
companyStatus: number;
|
|
232
|
+
catalogId: number;
|
|
233
|
+
catalogName: string;
|
|
234
|
+
companyEmail: string;
|
|
235
|
+
companyPhone: string;
|
|
236
|
+
addressLine1: string;
|
|
237
|
+
addressLine2: string;
|
|
238
|
+
city: string;
|
|
239
|
+
state: string;
|
|
240
|
+
country: string;
|
|
241
|
+
zipCode: string;
|
|
242
|
+
createdAt: number;
|
|
243
|
+
updatedAt: number;
|
|
244
|
+
uuid: string;
|
|
245
|
+
extraFields: {
|
|
246
|
+
fieldName: string;
|
|
247
|
+
fieldValue: string;
|
|
248
|
+
}[];
|
|
249
|
+
bcGroupId?: number | null | undefined;
|
|
250
|
+
};
|
|
251
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
252
|
+
/**
|
|
253
|
+
* Retrieves company user details by customer ID.
|
|
254
|
+
*
|
|
255
|
+
* @param input - Object containing the customer ID
|
|
256
|
+
* @returns ResultAsync with user details
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* ```typescript
|
|
260
|
+
* const result = await companiesService.getUserByCustomerId({ customerId: 123 });
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
getUserByCustomerId(input: z.input<typeof GetUserDetailsByCustomerIdInputSchema>): import("neverthrow").ResultAsync<{
|
|
264
|
+
code: number;
|
|
265
|
+
data: {
|
|
266
|
+
firstName: string;
|
|
267
|
+
lastName: string;
|
|
268
|
+
email: string;
|
|
269
|
+
phoneNumber: string;
|
|
270
|
+
role: number;
|
|
271
|
+
companyRoleId: number;
|
|
272
|
+
extraFields: {
|
|
273
|
+
fieldName: string;
|
|
274
|
+
fieldValue: string;
|
|
275
|
+
}[];
|
|
276
|
+
companyId: number;
|
|
277
|
+
customerId: number;
|
|
278
|
+
companyRoleName: string;
|
|
279
|
+
channelList: {
|
|
280
|
+
channelId: number;
|
|
281
|
+
channelName: string;
|
|
282
|
+
iconUrl: string;
|
|
283
|
+
}[];
|
|
284
|
+
uuid?: string | null | undefined;
|
|
285
|
+
};
|
|
286
|
+
meta: {
|
|
287
|
+
message: string;
|
|
288
|
+
};
|
|
289
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
290
|
+
/**
|
|
291
|
+
* Configures available payment methods for a company.
|
|
292
|
+
*
|
|
293
|
+
* @param input - Company ID and payment methods configuration
|
|
294
|
+
* @returns ResultAsync with updated payment methods
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```typescript
|
|
298
|
+
* const result = await companiesService.setCompanyPaymentMethods({
|
|
299
|
+
* companyId: 1,
|
|
300
|
+
* data: {
|
|
301
|
+
* payment_methods: ['credit_card', 'purchase_order']
|
|
302
|
+
* }
|
|
303
|
+
* });
|
|
304
|
+
* ```
|
|
305
|
+
*/
|
|
306
|
+
setCompanyPaymentMethods(input: z.infer<typeof SetCompanyPaymentMethodsSchema>): import("neverthrow").ResultAsync<Record<string, never>, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
307
|
+
private assignSalesStaffToCompanyBatch;
|
|
308
|
+
}
|
|
309
|
+
//# sourceMappingURL=companies.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/companies/companies.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAI5D,OAAO,EAEL,sBAAsB,EAEtB,mBAAmB,EAEnB,uBAAuB,EACvB,mCAAmC,EAEnC,qBAAqB,EAErB,6BAA6B,EAE7B,qCAAqC,EAGrC,sBAAsB,EAEtB,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBACa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,yBAAyB;IAE/D;;;;;;;;;;;;;;;;;OAiBG;IACH,yBAAyB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC;;;;;;;;;IAYvE;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;;;;;;;;;;IAgBhE;;;;;;;;;;;;;;OAcG;I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|| 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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BigCommerceCompaniesService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const node_querystring_1 = require("node:querystring");
|
|
15
|
+
const constants_1 = require("../../constants");
|
|
16
|
+
const utils_1 = require("../../utils");
|
|
17
|
+
const concurrency_1 = require("../../utils/concurrency");
|
|
18
|
+
const while_1 = require("../../utils/while");
|
|
19
|
+
const schemas_1 = require("./schemas");
|
|
20
|
+
/**
|
|
21
|
+
* Service for managing BigCommerce B2B companies.
|
|
22
|
+
*
|
|
23
|
+
* Provides methods for creating companies, managing users, assigning sales staff,
|
|
24
|
+
* configuring payment methods, and handling company-related operations.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import { BigCommerceCompaniesService } from '@edgebound/bigcommerce';
|
|
29
|
+
*
|
|
30
|
+
* @Injectable()
|
|
31
|
+
* export class MyService {
|
|
32
|
+
* constructor(private readonly companiesService: BigCommerceCompaniesService) {}
|
|
33
|
+
*
|
|
34
|
+
* async createCompany() {
|
|
35
|
+
* const result = await this.companiesService.createCompany({
|
|
36
|
+
* company_name: 'Acme Corp',
|
|
37
|
+
* company_email: 'contact@acme.com'
|
|
38
|
+
* });
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
let BigCommerceCompaniesService = class BigCommerceCompaniesService {
|
|
44
|
+
fetcher;
|
|
45
|
+
constructor(fetcher) {
|
|
46
|
+
this.fetcher = fetcher;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Assigns sales staff members to companies in batch.
|
|
50
|
+
*
|
|
51
|
+
* Processes assignments concurrently with automatic batching for optimal performance.
|
|
52
|
+
*
|
|
53
|
+
* @param input - Assignment configuration including company-staff mappings
|
|
54
|
+
* @returns ResultAsync with success/error results for each assignment
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const result = await companiesService.assignSalesStaffToCompany({
|
|
59
|
+
* assignments: [
|
|
60
|
+
* { companyId: 1, salesStaffId: 10 },
|
|
61
|
+
* { companyId: 2, salesStaffId: 11 }
|
|
62
|
+
* ]
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
assignSalesStaffToCompany(input) {
|
|
67
|
+
return (0, utils_1.validateInputData)(schemas_1.AssignSalesStaffSchema, input).asyncAndThen((validatedInput) => (0, concurrency_1.concurrency)({
|
|
68
|
+
items: validatedInput.assignments,
|
|
69
|
+
limit: constants_1.DEFAULTS.companies.salesStaffAssignments.concurrency,
|
|
70
|
+
batchSize: constants_1.DEFAULTS.companies.salesStaffAssignments.assignBatchSize,
|
|
71
|
+
fn: (batch) => this.assignSalesStaffToCompanyBatch({ ...validatedInput, assignments: batch }),
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a new user within a company.
|
|
76
|
+
*
|
|
77
|
+
* @param input - User details including email, name, role, and company association
|
|
78
|
+
* @returns ResultAsync with the created user details
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const result = await companiesService.createCompanyUser({
|
|
83
|
+
* email: 'john@acme.com',
|
|
84
|
+
* first_name: 'John',
|
|
85
|
+
* last_name: 'Doe',
|
|
86
|
+
* company_id: 1,
|
|
87
|
+
* role_id: 2
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
createCompanyUser(input) {
|
|
92
|
+
return (0, utils_1.validateInputData)(schemas_1.CreateCompanyUserSchema, input).asyncAndThen((validatedInput) => this.fetcher.fetch({
|
|
93
|
+
body: validatedInput,
|
|
94
|
+
isB2B: true,
|
|
95
|
+
method: 'POST',
|
|
96
|
+
path: 'users',
|
|
97
|
+
resultSchema: schemas_1.CreateCompanyUserResponseSchema,
|
|
98
|
+
version: 'v3',
|
|
99
|
+
}, { shouldRetry: true }));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Creates a new B2B company in BigCommerce.
|
|
103
|
+
*
|
|
104
|
+
* @param input - Company details including name, email, and configuration
|
|
105
|
+
* @returns ResultAsync with the created company details
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```typescript
|
|
109
|
+
* const result = await companiesService.createCompany({
|
|
110
|
+
* company_name: 'Acme Corporation',
|
|
111
|
+
* company_email: 'contact@acme.com',
|
|
112
|
+
* phone: '+1-555-0100'
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
createCompany(input) {
|
|
117
|
+
return (0, utils_1.validateInputData)(schemas_1.CreateCompanySchema, input).asyncAndThen((validatedInput) => this.fetcher.fetch({
|
|
118
|
+
isB2B: true,
|
|
119
|
+
method: 'POST',
|
|
120
|
+
path: 'companies',
|
|
121
|
+
resultSchema: schemas_1.CreateCompanyResponseSchema,
|
|
122
|
+
version: 'v3',
|
|
123
|
+
body: validatedInput,
|
|
124
|
+
}, { shouldRetry: true }));
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Sets or updates the credit limit for a company.
|
|
128
|
+
*
|
|
129
|
+
* @param input - Company ID and credit configuration
|
|
130
|
+
* @returns ResultAsync with updated credit details
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```typescript
|
|
134
|
+
* const result = await companiesService.setCompanyCredit({
|
|
135
|
+
* companyId: 1,
|
|
136
|
+
* data: {
|
|
137
|
+
* credit_limit: 10000,
|
|
138
|
+
* currency_code: 'USD'
|
|
139
|
+
* }
|
|
140
|
+
* });
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
setCompanyCredit(input) {
|
|
144
|
+
return (0, utils_1.validateInputData)(schemas_1.SetCompanyCreditSchema, input).asyncAndThen(({ data, companyId }) => this.fetcher.fetch({
|
|
145
|
+
body: data,
|
|
146
|
+
isB2B: true,
|
|
147
|
+
method: 'PUT',
|
|
148
|
+
path: `companies/${companyId}/credit`,
|
|
149
|
+
resultSchema: schemas_1.SetCompanyCreditResponseSchema,
|
|
150
|
+
version: 'v3',
|
|
151
|
+
}, { shouldRetry: true }));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Finds company extra fields with pagination.
|
|
155
|
+
*
|
|
156
|
+
* @param criteria - Search criteria including limit and offset
|
|
157
|
+
* @returns ResultAsync with paginated extra fields
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const result = await companiesService.findCompanyExtraFields({
|
|
162
|
+
* limit: 50,
|
|
163
|
+
* offset: 0
|
|
164
|
+
* });
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
findCompanyExtraFields(criteria) {
|
|
168
|
+
return (0, utils_1.validateInputData)(schemas_1.GetCompanyExtraFieldsCriteriaSchema, criteria).asyncAndThen((validatedCriteria) => this.fetcher.fetch({
|
|
169
|
+
isB2B: true,
|
|
170
|
+
method: 'GET',
|
|
171
|
+
query: (0, node_querystring_1.stringify)(validatedCriteria),
|
|
172
|
+
path: 'companies/extra-fields',
|
|
173
|
+
resultSchema: schemas_1.GetCompanyExtraFieldsResponseSchema,
|
|
174
|
+
version: 'v3',
|
|
175
|
+
}, { shouldRetry: true }));
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Retrieves all company extra fields by automatically handling pagination.
|
|
179
|
+
*
|
|
180
|
+
* @param criteria - Optional search criteria (excluding pagination params)
|
|
181
|
+
* @returns ResultAsync with all extra fields
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```typescript
|
|
185
|
+
* const result = await companiesService.getAllCompanyExtraFields();
|
|
186
|
+
* // Returns all extra fields across all pages
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
getAllCompanyExtraFields(criteria) {
|
|
190
|
+
return (0, while_1.whileLoop)({
|
|
191
|
+
initialParams: {
|
|
192
|
+
...criteria,
|
|
193
|
+
offset: 0,
|
|
194
|
+
limit: constants_1.DEFAULTS.companies.extraFields.getBatchSize,
|
|
195
|
+
},
|
|
196
|
+
step: (params) => this.findCompanyExtraFields(params),
|
|
197
|
+
condition: ({ data }) => !!data.length,
|
|
198
|
+
onStep: (_, params) => {
|
|
199
|
+
params.offset += params.limit;
|
|
200
|
+
return params;
|
|
201
|
+
},
|
|
202
|
+
}).map((result) => result.flatMap((page) => page.data));
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Finds company roles with pagination.
|
|
206
|
+
*
|
|
207
|
+
* @param criteria - Search criteria including limit and offset
|
|
208
|
+
* @returns ResultAsync with paginated company roles
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```typescript
|
|
212
|
+
* const result = await companiesService.findCompanyRoles({
|
|
213
|
+
* limit: 50,
|
|
214
|
+
* offset: 0
|
|
215
|
+
* });
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
findCompanyRoles(criteria) {
|
|
219
|
+
return (0, utils_1.validateInputData)(schemas_1.GetCompanyRolesCriteriaSchema, criteria).asyncAndThen((validatedInput) => this.fetcher.fetch({
|
|
220
|
+
isB2B: true,
|
|
221
|
+
method: 'GET',
|
|
222
|
+
query: (0, node_querystring_1.stringify)(validatedInput),
|
|
223
|
+
path: 'companies/roles',
|
|
224
|
+
resultSchema: schemas_1.GetCompanyRolesResponseSchema,
|
|
225
|
+
version: 'v3',
|
|
226
|
+
}, { shouldRetry: true }));
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Retrieves all company roles by automatically handling pagination.
|
|
230
|
+
*
|
|
231
|
+
* @param criteria - Optional search criteria (excluding pagination params)
|
|
232
|
+
* @returns ResultAsync with all company roles
|
|
233
|
+
*/
|
|
234
|
+
getAllCompanyRoles(criteria) {
|
|
235
|
+
return (0, while_1.whileLoop)({
|
|
236
|
+
initialParams: {
|
|
237
|
+
...criteria,
|
|
238
|
+
offset: 0,
|
|
239
|
+
limit: constants_1.DEFAULTS.companies.roles.getBatchSize,
|
|
240
|
+
},
|
|
241
|
+
step: (params) => this.findCompanyRoles(params),
|
|
242
|
+
condition: ({ data }) => !!data.length,
|
|
243
|
+
onStep: (_, params) => {
|
|
244
|
+
params.offset += params.limit;
|
|
245
|
+
return params;
|
|
246
|
+
},
|
|
247
|
+
}).map((result) => result.flatMap((page) => page.data));
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Retrieves detailed information about a specific company.
|
|
251
|
+
*
|
|
252
|
+
* @param input - Object containing the company ID
|
|
253
|
+
* @returns ResultAsync with company details
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* const result = await companiesService.getCompanyDetails({ companyId: 1 });
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
getCompanyDetails(input) {
|
|
261
|
+
return (0, utils_1.validateInputData)(schemas_1.GetCompanyInputSchema, input).asyncAndThen(({ companyId }) => this.fetcher.fetch({
|
|
262
|
+
isB2B: true,
|
|
263
|
+
method: 'GET',
|
|
264
|
+
path: `companies/${companyId}`,
|
|
265
|
+
resultSchema: schemas_1.GetCompanyResponseSchema,
|
|
266
|
+
version: 'v3',
|
|
267
|
+
}, { shouldRetry: true }));
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Retrieves company user details by customer ID.
|
|
271
|
+
*
|
|
272
|
+
* @param input - Object containing the customer ID
|
|
273
|
+
* @returns ResultAsync with user details
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* ```typescript
|
|
277
|
+
* const result = await companiesService.getUserByCustomerId({ customerId: 123 });
|
|
278
|
+
* ```
|
|
279
|
+
*/
|
|
280
|
+
getUserByCustomerId(input) {
|
|
281
|
+
return (0, utils_1.validateInputData)(schemas_1.GetUserDetailsByCustomerIdInputSchema, input).asyncAndThen(({ customerId }) => this.fetcher.fetch({
|
|
282
|
+
isB2B: true,
|
|
283
|
+
method: 'GET',
|
|
284
|
+
path: `users/customer/${customerId}`,
|
|
285
|
+
resultSchema: schemas_1.GetUserDetailsByCustomerIdResponseSchema,
|
|
286
|
+
version: 'v3',
|
|
287
|
+
}, { shouldRetry: true }));
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Configures available payment methods for a company.
|
|
291
|
+
*
|
|
292
|
+
* @param input - Company ID and payment methods configuration
|
|
293
|
+
* @returns ResultAsync with updated payment methods
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* ```typescript
|
|
297
|
+
* const result = await companiesService.setCompanyPaymentMethods({
|
|
298
|
+
* companyId: 1,
|
|
299
|
+
* data: {
|
|
300
|
+
* payment_methods: ['credit_card', 'purchase_order']
|
|
301
|
+
* }
|
|
302
|
+
* });
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
setCompanyPaymentMethods(input) {
|
|
306
|
+
return (0, utils_1.validateInputData)(schemas_1.SetCompanyPaymentMethodsSchema, input).asyncAndThen(({ companyId, data }) => this.fetcher.fetch({
|
|
307
|
+
body: data,
|
|
308
|
+
isB2B: true,
|
|
309
|
+
method: 'PUT',
|
|
310
|
+
path: `companies/${companyId}/payments`,
|
|
311
|
+
resultSchema: schemas_1.SetCompanyPaymentMethodsResponseSchema,
|
|
312
|
+
version: 'v3',
|
|
313
|
+
}, { shouldRetry: true }));
|
|
314
|
+
}
|
|
315
|
+
assignSalesStaffToCompanyBatch(data) {
|
|
316
|
+
return this.fetcher.fetch({
|
|
317
|
+
isB2B: true,
|
|
318
|
+
method: 'PUT',
|
|
319
|
+
path: `sales-staffs/${data.salesStaffId}`,
|
|
320
|
+
version: 'v3',
|
|
321
|
+
body: data.assignments,
|
|
322
|
+
resultSchema: schemas_1.AssignSalesStaffResponseSchema,
|
|
323
|
+
}, { shouldRetry: true });
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
exports.BigCommerceCompaniesService = BigCommerceCompaniesService;
|
|
327
|
+
exports.BigCommerceCompaniesService = BigCommerceCompaniesService = __decorate([
|
|
328
|
+
(0, common_1.Injectable)(),
|
|
329
|
+
__metadata("design:paramtypes", [Function])
|
|
330
|
+
], BigCommerceCompaniesService);
|
|
331
|
+
//# sourceMappingURL=companies.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.service.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/companies/companies.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uDAA6C;AAE7C,+CAA2C;AAE3C,uCAAgD;AAChD,yDAAsD;AACtD,6CAA8C;AAC9C,uCAmBmB;AAEnB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACT;IAA7B,YAA6B,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;IAAG,CAAC;IAEnE;;;;;;;;;;;;;;;;;OAiBG;IACH,yBAAyB,CAAC,KAA6C;QACrE,OAAO,IAAA,yBAAiB,EAAC,gCAAsB,EAAE,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,cAAc,EAAE,EAAE,CACtF,IAAA,yBAAW,EAAC;YACV,KAAK,EAA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IAAI;YACX,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,aAAa,SAAS,WAAW;YACvC,YAAY,EAAE,gDAAsC;YACpD,OAAO,EAAE,IAAI;SACd,EACD,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CACJ,CAAC;IACJ,CAAC;IACO,8BAA8B,CAAC,IAA6C;QAClF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB;YACE,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,gBAAgB,IAAI,CAAC,YAAY,EAAE;YACzC,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,IAAI,CAAC,WAAW;YACtB,YAAY,EAAE,wCAA8B;SAC7C,EACD,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;IACJ,CAAC;CACF,CAAA;AAxVY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;;GACA,2BAA2B,CAwVvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/companies/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./companies.service"), exports);
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,4CAA0B"}
|