@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,51 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const CreateCompanyUserSchema: z.ZodObject<{
|
|
3
|
+
acceptWelcomeEmail: z.ZodBoolean;
|
|
4
|
+
companyId: z.ZodInt;
|
|
5
|
+
companyRoleId: z.ZodInt;
|
|
6
|
+
email: z.ZodEmail;
|
|
7
|
+
firstName: z.ZodString;
|
|
8
|
+
lastName: z.ZodString;
|
|
9
|
+
phoneNumber: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const CreateCompanyUserResponseSchema: z.ZodObject<{
|
|
12
|
+
code: z.ZodNumber;
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
bcId: z.ZodNumber;
|
|
15
|
+
userId: z.ZodInt;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
meta: z.ZodObject<{
|
|
18
|
+
message: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const GetUserDetailsByCustomerIdResponseSchema: z.ZodObject<{
|
|
22
|
+
code: z.ZodInt;
|
|
23
|
+
data: z.ZodObject<{
|
|
24
|
+
firstName: z.ZodString;
|
|
25
|
+
lastName: z.ZodString;
|
|
26
|
+
email: z.ZodEmail;
|
|
27
|
+
phoneNumber: z.ZodString;
|
|
28
|
+
role: z.ZodInt;
|
|
29
|
+
companyRoleId: z.ZodInt;
|
|
30
|
+
uuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
extraFields: z.ZodArray<z.ZodObject<{
|
|
32
|
+
fieldName: z.ZodString;
|
|
33
|
+
fieldValue: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
companyId: z.ZodInt;
|
|
36
|
+
customerId: z.ZodInt;
|
|
37
|
+
companyRoleName: z.ZodString;
|
|
38
|
+
channelList: z.ZodArray<z.ZodObject<{
|
|
39
|
+
channelId: z.ZodInt;
|
|
40
|
+
channelName: z.ZodString;
|
|
41
|
+
iconUrl: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
meta: z.ZodObject<{
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const GetUserDetailsByCustomerIdInputSchema: z.ZodObject<{
|
|
49
|
+
customerId: z.ZodInt;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
//# sourceMappingURL=user.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/companies/schemas/user.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,uBAAuB;;;;;;;;iBAQlC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;iBAS1C,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BnD,CAAC;AAEH,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.GetUserDetailsByCustomerIdInputSchema = exports.GetUserDetailsByCustomerIdResponseSchema = exports.CreateCompanyUserResponseSchema = exports.CreateCompanyUserSchema = void 0;
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
38
|
+
exports.CreateCompanyUserSchema = z.object({
|
|
39
|
+
acceptWelcomeEmail: z.boolean(),
|
|
40
|
+
companyId: z.int(),
|
|
41
|
+
companyRoleId: z.int(),
|
|
42
|
+
email: z.email(),
|
|
43
|
+
firstName: z.string(),
|
|
44
|
+
lastName: z.string(),
|
|
45
|
+
phoneNumber: z.string(),
|
|
46
|
+
});
|
|
47
|
+
exports.CreateCompanyUserResponseSchema = z.object({
|
|
48
|
+
code: z.number(),
|
|
49
|
+
data: z.object({
|
|
50
|
+
bcId: z.number(),
|
|
51
|
+
userId: z.int(),
|
|
52
|
+
}),
|
|
53
|
+
meta: z.object({
|
|
54
|
+
message: z.string(),
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
57
|
+
exports.GetUserDetailsByCustomerIdResponseSchema = z.object({
|
|
58
|
+
code: z.int(),
|
|
59
|
+
data: z.object({
|
|
60
|
+
firstName: z.string(),
|
|
61
|
+
lastName: z.string(),
|
|
62
|
+
email: z.email(),
|
|
63
|
+
phoneNumber: z.string(),
|
|
64
|
+
role: z.int(),
|
|
65
|
+
companyRoleId: z.int(),
|
|
66
|
+
uuid: z.string().optional().nullable(),
|
|
67
|
+
extraFields: z
|
|
68
|
+
.object({
|
|
69
|
+
fieldName: z.string(),
|
|
70
|
+
fieldValue: z.string(),
|
|
71
|
+
})
|
|
72
|
+
.array(),
|
|
73
|
+
companyId: z.int(),
|
|
74
|
+
customerId: z.int(),
|
|
75
|
+
companyRoleName: z.string(),
|
|
76
|
+
channelList: z
|
|
77
|
+
.object({
|
|
78
|
+
channelId: z.int(),
|
|
79
|
+
channelName: z.string(),
|
|
80
|
+
iconUrl: z.string(),
|
|
81
|
+
})
|
|
82
|
+
.array(),
|
|
83
|
+
}),
|
|
84
|
+
meta: z.object({
|
|
85
|
+
message: z.string(),
|
|
86
|
+
}),
|
|
87
|
+
});
|
|
88
|
+
exports.GetUserDetailsByCustomerIdInputSchema = z.object({
|
|
89
|
+
customerId: z.int(),
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=user.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/companies/schemas/user.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACZ,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE;IAClB,aAAa,EAAE,CAAC,CAAC,GAAG,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEU,QAAA,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;KAChB,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE;IACb,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;QAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE;QACb,aAAa,EAAE,CAAC,CAAC,GAAG,EAAE;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,WAAW,EAAE,CAAC;aACX,MAAM,CAAC;YACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;YACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;SACvB,CAAC;aACD,KAAK,EAAE;QACV,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE;QAClB,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE;QACnB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,WAAW,EAAE,CAAC;aACX,MAAM,CAAC;YACN,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE;YAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;YACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACpB,CAAC;aACD,KAAK,EAAE;KACX,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE;CACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/currencies/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/currencies/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import type { BigCommerceFetcherService } from '../../core';
|
|
3
|
+
import { CreateCustomerGroupSchema, FindCustomerAddressesCriteriaSchema, FindCustomerGroupsCriteriaSchema, FindCustomersCriteriaSchema, SetCustomerGroupPriceListSchema } from './schemas';
|
|
4
|
+
/**
|
|
5
|
+
* Service for managing BigCommerce customers, customer groups, and addresses.
|
|
6
|
+
*
|
|
7
|
+
* Provides methods for creating customer groups, finding customers and addresses,
|
|
8
|
+
* and managing customer group price lists.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* @Injectable()
|
|
13
|
+
* export class MyService {
|
|
14
|
+
* constructor(private readonly customersService: BigCommerceCustomersService) {}
|
|
15
|
+
*
|
|
16
|
+
* async createGroup() {
|
|
17
|
+
* const result = await this.customersService.createCustomerGroup({
|
|
18
|
+
* name: 'VIP Customers',
|
|
19
|
+
* discount_rules: [{ type: 'price_list', price_list_id: 1 }]
|
|
20
|
+
* });
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class BigCommerceCustomersService {
|
|
26
|
+
private readonly fetcher;
|
|
27
|
+
constructor(fetcher: BigCommerceFetcherService);
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new customer group.
|
|
30
|
+
*
|
|
31
|
+
* @param data - Customer group details including name and discount rules
|
|
32
|
+
* @returns ResultAsync with the created customer group
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const result = await customersService.createCustomerGroup({
|
|
37
|
+
* name: 'VIP Customers',
|
|
38
|
+
* discount_rules: [{ type: 'price_list', price_list_id: 1 }]
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
createCustomerGroup(data: z.input<typeof CreateCustomerGroupSchema>): import("neverthrow").ResultAsync<{
|
|
43
|
+
id: number;
|
|
44
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
45
|
+
/**
|
|
46
|
+
* Finds customer addresses with pagination.
|
|
47
|
+
*
|
|
48
|
+
* @param criteria - Search criteria including customer IDs and pagination
|
|
49
|
+
* @returns ResultAsync with paginated customer addresses
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* const result = await customersService.findCustomerAddresses({
|
|
54
|
+
* 'customer_id:in': [1, 2, 3],
|
|
55
|
+
* page: 1,
|
|
56
|
+
* limit: 50
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
findCustomerAddresses(criteria?: z.input<typeof FindCustomerAddressesCriteriaSchema>): import("neverthrow").ResultAsync<{
|
|
61
|
+
data: {
|
|
62
|
+
address1: string;
|
|
63
|
+
address2: string;
|
|
64
|
+
address_type: string;
|
|
65
|
+
city: string;
|
|
66
|
+
company: string;
|
|
67
|
+
country: string;
|
|
68
|
+
country_code: string;
|
|
69
|
+
customer_id: number;
|
|
70
|
+
first_name: string;
|
|
71
|
+
id: number;
|
|
72
|
+
last_name: string;
|
|
73
|
+
phone: string;
|
|
74
|
+
postal_code: string;
|
|
75
|
+
state_or_province: string;
|
|
76
|
+
}[];
|
|
77
|
+
meta: {
|
|
78
|
+
pagination: {
|
|
79
|
+
total: number;
|
|
80
|
+
count: number;
|
|
81
|
+
per_page: number;
|
|
82
|
+
current_page: number;
|
|
83
|
+
total_pages: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves all customer addresses by automatically handling pagination.
|
|
89
|
+
*
|
|
90
|
+
* @param criteria - Search criteria (excluding pagination params)
|
|
91
|
+
* @returns ResultAsync with all customer addresses
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const result = await customersService.getAllCustomerAddressesBy({
|
|
96
|
+
* 'customer_id:in': [1, 2, 3]
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
getAllCustomerAddressesBy(criteria: Omit<z.input<typeof FindCustomerAddressesCriteriaSchema>, 'page' | 'limit'>): import("neverthrow").ResultAsync<{
|
|
101
|
+
address1: string;
|
|
102
|
+
address2: string;
|
|
103
|
+
address_type: string;
|
|
104
|
+
city: string;
|
|
105
|
+
company: string;
|
|
106
|
+
country: string;
|
|
107
|
+
country_code: string;
|
|
108
|
+
customer_id: number;
|
|
109
|
+
first_name: string;
|
|
110
|
+
id: number;
|
|
111
|
+
last_name: string;
|
|
112
|
+
phone: string;
|
|
113
|
+
postal_code: string;
|
|
114
|
+
state_or_province: string;
|
|
115
|
+
}[], import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
116
|
+
/**
|
|
117
|
+
* Finds customers with pagination.
|
|
118
|
+
*
|
|
119
|
+
* @param criteria - Search criteria including filters and pagination
|
|
120
|
+
* @returns ResultAsync with paginated customers
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```typescript
|
|
124
|
+
* const result = await customersService.findCustomers({
|
|
125
|
+
* 'email:in': ['john@example.com'],
|
|
126
|
+
* page: 1,
|
|
127
|
+
* limit: 50
|
|
128
|
+
* });
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
findCustomers(criteria?: z.input<typeof FindCustomersCriteriaSchema>): import("neverthrow").ResultAsync<{
|
|
132
|
+
data: {
|
|
133
|
+
email: string;
|
|
134
|
+
first_name: string;
|
|
135
|
+
last_name: string;
|
|
136
|
+
phone: string;
|
|
137
|
+
customer_group_id: number;
|
|
138
|
+
id: number;
|
|
139
|
+
channel_ids: number[];
|
|
140
|
+
company?: string | undefined;
|
|
141
|
+
}[];
|
|
142
|
+
meta: {
|
|
143
|
+
pagination: {
|
|
144
|
+
total: number;
|
|
145
|
+
count: number;
|
|
146
|
+
per_page: number;
|
|
147
|
+
current_page: number;
|
|
148
|
+
total_pages: number;
|
|
149
|
+
links: {
|
|
150
|
+
current: string;
|
|
151
|
+
previous?: string | null | undefined;
|
|
152
|
+
next?: string | null | undefined;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
157
|
+
/**
|
|
158
|
+
* Retrieves all customers by automatically handling pagination.
|
|
159
|
+
*
|
|
160
|
+
* @param criteria - Search criteria (excluding pagination params)
|
|
161
|
+
* @returns ResultAsync with all customers
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* const result = await customersService.getAllCustomersBy({
|
|
166
|
+
* 'company:in': ['Acme Corp']
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
getAllCustomersBy(criteria: Omit<z.input<typeof FindCustomersCriteriaSchema>, 'page' | 'limit'>): import("neverthrow").ResultAsync<{
|
|
171
|
+
email: string;
|
|
172
|
+
first_name: string;
|
|
173
|
+
last_name: string;
|
|
174
|
+
phone: string;
|
|
175
|
+
customer_group_id: number;
|
|
176
|
+
id: number;
|
|
177
|
+
channel_ids: number[];
|
|
178
|
+
company?: string | undefined;
|
|
179
|
+
}[], import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
180
|
+
/**
|
|
181
|
+
* Finds customer groups with pagination.
|
|
182
|
+
*
|
|
183
|
+
* @param criteria - Search criteria including pagination
|
|
184
|
+
* @returns ResultAsync with paginated customer groups
|
|
185
|
+
*/
|
|
186
|
+
findCustomersGroups(criteria?: z.input<typeof FindCustomerGroupsCriteriaSchema>): import("neverthrow").ResultAsync<{
|
|
187
|
+
data: {
|
|
188
|
+
email: string;
|
|
189
|
+
first_name: string;
|
|
190
|
+
last_name: string;
|
|
191
|
+
phone: string;
|
|
192
|
+
customer_group_id: number;
|
|
193
|
+
id: number;
|
|
194
|
+
channel_ids: number[];
|
|
195
|
+
company?: string | undefined;
|
|
196
|
+
}[];
|
|
197
|
+
meta: {
|
|
198
|
+
pagination: {
|
|
199
|
+
total: number;
|
|
200
|
+
count: number;
|
|
201
|
+
per_page: number;
|
|
202
|
+
current_page: number;
|
|
203
|
+
total_pages: number;
|
|
204
|
+
links: {
|
|
205
|
+
current: string;
|
|
206
|
+
previous?: string | null | undefined;
|
|
207
|
+
next?: string | null | undefined;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
212
|
+
/**
|
|
213
|
+
* Retrieves all customer groups by automatically handling pagination.
|
|
214
|
+
*
|
|
215
|
+
* @param criteria - Optional search criteria (excluding pagination params)
|
|
216
|
+
* @returns ResultAsync with all customer groups
|
|
217
|
+
*/
|
|
218
|
+
getAllCustomerGroupsBy: (criteria?: Omit<z.input<typeof FindCustomerGroupsCriteriaSchema>, "page" | "limit">) => import("neverthrow").ResultAsync<{
|
|
219
|
+
email: string;
|
|
220
|
+
first_name: string;
|
|
221
|
+
last_name: string;
|
|
222
|
+
phone: string;
|
|
223
|
+
customer_group_id: number;
|
|
224
|
+
id: number;
|
|
225
|
+
channel_ids: number[];
|
|
226
|
+
company?: string | undefined;
|
|
227
|
+
}[], import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
228
|
+
/**
|
|
229
|
+
* Retrieves a specific customer by ID.
|
|
230
|
+
*
|
|
231
|
+
* @param customerId - The customer ID
|
|
232
|
+
* @returns ResultAsync with customer details
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* ```typescript
|
|
236
|
+
* const result = await customersService.getCustomer(123);
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
getCustomer(customerId: number): import("neverthrow").ResultAsync<{
|
|
240
|
+
email: string;
|
|
241
|
+
first_name: string;
|
|
242
|
+
last_name: string;
|
|
243
|
+
phone: string;
|
|
244
|
+
customer_group_id: number;
|
|
245
|
+
id: number;
|
|
246
|
+
channel_ids: number[];
|
|
247
|
+
company?: string | undefined;
|
|
248
|
+
} | undefined, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
249
|
+
/**
|
|
250
|
+
* Sets or updates the price list for a customer group.
|
|
251
|
+
*
|
|
252
|
+
* @param input - Customer group ID and price list configuration
|
|
253
|
+
* @returns ResultAsync with updated customer group
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* const result = await customersService.setCustomerGroupPriceList({
|
|
258
|
+
* customerGroupId: 1,
|
|
259
|
+
* data: {
|
|
260
|
+
* discount_rules: [{ type: 'price_list', price_list_id: 2 }]
|
|
261
|
+
* }
|
|
262
|
+
* });
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
setCustomerGroupPriceList(input: z.input<typeof SetCustomerGroupPriceListSchema>): import("neverthrow").ResultAsync<{
|
|
266
|
+
id: number;
|
|
267
|
+
name: string;
|
|
268
|
+
}, import("../../core").SomeBigCommerceError | import("../../utils/validation.error").InputDataValidationError>;
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=customers.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.service.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/customers/customers.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAG5D,OAAO,EAEL,yBAAyB,EACzB,mCAAmC,EAEnC,gCAAgC,EAEhC,2BAA2B,EAE3B,+BAA+B,EAChC,MAAM,WAAW,CAAC;AACnB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBACa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,yBAAyB;IAE/D;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC;;;IAgBnE;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBpF;;;;;;;;;;;;OAYG;IACH,yBAAyB,CACvB,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;IAoBvF;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBpE;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;;;;;;;;;;IAY/F;;;;;OAKG;IACH,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAa/E;;;;;OAKG;IACH,sBAAsB,GACpB,WAAW,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;;;;;;;;;sHAYnF;IAEF;;;;;;;;;;OAUG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;IAM9B;;;;;;;;;;;;;;;OAeG;IACH,yBAAyB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC;;;;CAgBjF"}
|