@edgebound/bigcommerce 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +473 -0
- package/dist/bigcommerce-entities/addresses/index.d.ts +2 -0
- package/dist/bigcommerce-entities/addresses/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/index.js +18 -0
- package/dist/bigcommerce-entities/addresses/index.js.map +1 -0
- package/dist/{addresses.d.mts → bigcommerce-entities/addresses/schemas/address.schema.d.ts} +2 -9
- package/dist/bigcommerce-entities/addresses/schemas/address.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/address.schema.js +54 -0
- package/dist/bigcommerce-entities/addresses/schemas/address.schema.js.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.d.ts +6 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.js +42 -0
- package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.js.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/addresses/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/companies/companies.service.d.ts +309 -0
- package/dist/bigcommerce-entities/companies/companies.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/companies.service.js +331 -0
- package/dist/bigcommerce-entities/companies/companies.service.js.map +1 -0
- package/dist/bigcommerce-entities/companies/index.d.ts +3 -0
- package/dist/bigcommerce-entities/companies/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/index.js +19 -0
- package/dist/bigcommerce-entities/companies/index.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.d.ts +63 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.js +101 -0
- package/dist/bigcommerce-entities/companies/schemas/company.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.d.ts +15 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.js +49 -0
- package/dist/bigcommerce-entities/companies/schemas/credit.schemas.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.d.ts +28 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.js +60 -0
- package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/index.d.ts +8 -0
- package/dist/bigcommerce-entities/companies/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/index.js +24 -0
- package/dist/bigcommerce-entities/companies/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.d.ts +12 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.js +50 -0
- package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.d.ts +28 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.js +59 -0
- package/dist/bigcommerce-entities/companies/schemas/roles.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.d.ts +15 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.js +51 -0
- package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.js.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.d.ts +51 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.js +91 -0
- package/dist/bigcommerce-entities/companies/schemas/user.schema.js.map +1 -0
- package/dist/bigcommerce-entities/currencies/index.d.ts +2 -0
- package/dist/bigcommerce-entities/currencies/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/currencies/index.js +3 -0
- package/dist/bigcommerce-entities/currencies/index.js.map +1 -0
- package/dist/bigcommerce-entities/customers/customers.service.d.ts +270 -0
- package/dist/bigcommerce-entities/customers/customers.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/customers.service.js +254 -0
- package/dist/bigcommerce-entities/customers/customers.service.js.map +1 -0
- package/dist/bigcommerce-entities/customers/index.d.ts +3 -0
- package/dist/bigcommerce-entities/customers/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/index.js +19 -0
- package/dist/bigcommerce-entities/customers/index.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.d.ts +35 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.js +74 -0
- package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.d.ts +38 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.js +65 -0
- package/dist/bigcommerce-entities/customers/schemas/customer.schema.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.d.ts +35 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.js +81 -0
- package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.d.ts +9 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.js +54 -0
- package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.js.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/index.d.ts +5 -0
- package/dist/bigcommerce-entities/customers/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/customers/schemas/index.js +21 -0
- package/dist/bigcommerce-entities/customers/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/index.d.ts +11 -0
- package/dist/bigcommerce-entities/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/index.js +27 -0
- package/dist/bigcommerce-entities/index.js.map +1 -0
- package/dist/bigcommerce-entities/orders/index.d.ts +3 -0
- package/dist/bigcommerce-entities/orders/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/index.js +19 -0
- package/dist/bigcommerce-entities/orders/index.js.map +1 -0
- package/dist/bigcommerce-entities/orders/orders.service.d.ts +470 -0
- package/dist/bigcommerce-entities/orders/orders.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/orders.service.js +274 -0
- package/dist/bigcommerce-entities/orders/orders.service.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.d.ts +17 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.js +55 -0
- package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/index.d.ts +6 -0
- package/dist/bigcommerce-entities/orders/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/index.js +22 -0
- package/dist/bigcommerce-entities/orders/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.d.ts +31 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.js +64 -0
- package/dist/bigcommerce-entities/orders/schemas/order-product.schema.js.map +1 -0
- package/dist/{addresses.d.ts → bigcommerce-entities/orders/schemas/order-shipping-address.schema.d.ts} +5 -9
- package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.js +44 -0
- package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.js.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.d.ts +104 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.js +109 -0
- package/dist/bigcommerce-entities/orders/schemas/order.schema.js.map +1 -0
- package/dist/{status.schema-BgztUtGy.d.mts → bigcommerce-entities/orders/schemas/status.schema.d.ts} +4 -6
- package/dist/bigcommerce-entities/orders/schemas/status.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/orders/schemas/status.schema.js +74 -0
- package/dist/bigcommerce-entities/orders/schemas/status.schema.js.map +1 -0
- package/dist/bigcommerce-entities/payments/index.d.ts +3 -0
- package/dist/bigcommerce-entities/payments/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/index.js +19 -0
- package/dist/bigcommerce-entities/payments/index.js.map +1 -0
- package/dist/bigcommerce-entities/payments/payments.service.d.ts +40 -0
- package/dist/bigcommerce-entities/payments/payments.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/payments.service.js +66 -0
- package/dist/bigcommerce-entities/payments/payments.service.js.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/index.d.ts +2 -0
- package/dist/bigcommerce-entities/payments/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/index.js +18 -0
- package/dist/bigcommerce-entities/payments/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.d.ts +14 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.js +46 -0
- package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/index.d.ts +3 -0
- package/dist/bigcommerce-entities/price-lists/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/index.js +19 -0
- package/dist/bigcommerce-entities/price-lists/index.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.d.ts +97 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.js +126 -0
- package/dist/bigcommerce-entities/price-lists/price-lists.service.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.d.ts +11 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.js +47 -0
- package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.d.ts +32 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.js +66 -0
- package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.js.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/price-lists/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/products/index.d.ts +3 -0
- package/dist/bigcommerce-entities/products/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/index.js +19 -0
- package/dist/bigcommerce-entities/products/index.js.map +1 -0
- package/dist/bigcommerce-entities/products/products.service.d.ts +88 -0
- package/dist/bigcommerce-entities/products/products.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/products.service.js +165 -0
- package/dist/bigcommerce-entities/products/products.service.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/index.d.ts +3 -0
- package/dist/bigcommerce-entities/products/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/index.js +19 -0
- package/dist/bigcommerce-entities/products/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.d.ts +26 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.js +57 -0
- package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.js.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts +11 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.js +44 -0
- package/dist/bigcommerce-entities/products/schemas/update-products.schema.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/index.d.ts +3 -0
- package/dist/bigcommerce-entities/sales-staff/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/index.js +19 -0
- package/dist/bigcommerce-entities/sales-staff/index.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.d.ts +78 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.js +102 -0
- package/dist/bigcommerce-entities/sales-staff/sales-staff.service.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.d.ts +31 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.js +62 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.js.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.d.ts +2 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.js +18 -0
- package/dist/bigcommerce-entities/sales-staff/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/index.d.ts +2 -0
- package/dist/bigcommerce-entities/webhooks/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/index.js +18 -0
- package/dist/bigcommerce-entities/webhooks/index.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.d.ts +28 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.js +64 -0
- package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.d.ts +4 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.js +20 -0
- package/dist/bigcommerce-entities/webhooks/schemas/index.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.d.ts +26 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.js +57 -0
- package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.js.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.d.ts +54 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.d.ts.map +1 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.js +52 -0
- package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.js.map +1 -0
- package/dist/bigcommerce.module.d.ts +16 -0
- package/dist/bigcommerce.module.d.ts.map +1 -0
- package/dist/bigcommerce.module.js +83 -0
- package/dist/bigcommerce.module.js.map +1 -0
- package/dist/constants.d.ts +52 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +55 -0
- package/dist/constants.js.map +1 -0
- package/dist/core/bigcommerce-fetcher.service.d.ts +40 -0
- package/dist/core/bigcommerce-fetcher.service.d.ts.map +1 -0
- package/dist/core/bigcommerce-fetcher.service.js +133 -0
- package/dist/core/bigcommerce-fetcher.service.js.map +1 -0
- package/dist/core/bigcommerce.error.d.ts +51 -0
- package/dist/core/bigcommerce.error.d.ts.map +1 -0
- package/dist/core/bigcommerce.error.js +160 -0
- package/dist/core/bigcommerce.error.js.map +1 -0
- package/dist/core/config.module.d.ts +12 -0
- package/dist/core/config.module.d.ts.map +1 -0
- package/dist/core/config.module.js +75 -0
- package/dist/core/config.module.js.map +1 -0
- package/dist/core/config.schema.d.ts +20 -0
- package/dist/core/config.schema.d.ts.map +1 -0
- package/dist/core/config.schema.js +74 -0
- package/dist/core/config.schema.js.map +1 -0
- package/dist/core/config.service.d.ts +13 -0
- package/dist/core/config.service.d.ts.map +1 -0
- package/dist/core/config.service.js +30 -0
- package/dist/core/config.service.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +22 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +5 -36
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -371
- package/dist/index.js.map +1 -1
- package/dist/utils/chunk.d.ts +2 -0
- package/dist/utils/chunk.d.ts.map +1 -0
- package/dist/utils/chunk.js +12 -0
- package/dist/utils/chunk.js.map +1 -0
- package/dist/utils/concurrency.d.ts +11 -0
- package/dist/utils/concurrency.d.ts.map +1 -0
- package/dist/utils/concurrency.js +20 -0
- package/dist/utils/concurrency.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validation.error.d.ts +6 -0
- package/dist/utils/validation.error.d.ts.map +1 -0
- package/dist/utils/validation.error.js +50 -0
- package/dist/utils/validation.error.js.map +1 -0
- package/dist/utils/while.d.ts +8 -0
- package/dist/utils/while.d.ts.map +1 -0
- package/dist/utils/while.js +23 -0
- package/dist/utils/while.js.map +1 -0
- package/package.json +23 -67
- package/dist/addresses.js +0 -69
- package/dist/addresses.js.map +0 -1
- package/dist/addresses.mjs +0 -9
- package/dist/addresses.mjs.map +0 -1
- package/dist/bigcommerce.fetcher-Ujztbs8P.d.mts +0 -90
- package/dist/bigcommerce.fetcher-Ujztbs8P.d.ts +0 -90
- package/dist/chunk-BWLQCNNX.mjs +0 -30
- package/dist/chunk-BWLQCNNX.mjs.map +0 -1
- package/dist/chunk-CERZFSUE.mjs +0 -20
- package/dist/chunk-CERZFSUE.mjs.map +0 -1
- package/dist/chunk-V2WZ3SDN.mjs +0 -333
- package/dist/chunk-V2WZ3SDN.mjs.map +0 -1
- package/dist/chunk-XONZC4AG.mjs +0 -45
- package/dist/chunk-XONZC4AG.mjs.map +0 -1
- package/dist/companies.d.mts +0 -346
- package/dist/companies.d.ts +0 -346
- package/dist/companies.js +0 -837
- package/dist/companies.js.map +0 -1
- package/dist/companies.mjs +0 -467
- package/dist/companies.mjs.map +0 -1
- package/dist/currencies.d.mts +0 -2
- package/dist/currencies.d.ts +0 -2
- package/dist/currencies.js +0 -2
- package/dist/currencies.js.map +0 -1
- package/dist/currencies.mjs +0 -1
- package/dist/currencies.mjs.map +0 -1
- package/dist/customers.d.mts +0 -235
- package/dist/customers.d.ts +0 -235
- package/dist/customers.js +0 -679
- package/dist/customers.js.map +0 -1
- package/dist/customers.mjs +0 -320
- package/dist/customers.mjs.map +0 -1
- package/dist/index.d.mts +0 -36
- package/dist/index.mjs +0 -39
- package/dist/index.mjs.map +0 -1
- package/dist/orders.d.mts +0 -492
- package/dist/orders.d.ts +0 -492
- package/dist/orders.js +0 -723
- package/dist/orders.js.map +0 -1
- package/dist/orders.mjs +0 -312
- package/dist/orders.mjs.map +0 -1
- package/dist/payments.d.mts +0 -28
- package/dist/payments.d.ts +0 -28
- package/dist/payments.js +0 -372
- package/dist/payments.js.map +0 -1
- package/dist/payments.mjs +0 -43
- package/dist/payments.mjs.map +0 -1
- package/dist/priceLists.d.mts +0 -81
- package/dist/priceLists.d.ts +0 -81
- package/dist/priceLists.js +0 -465
- package/dist/priceLists.js.map +0 -1
- package/dist/priceLists.mjs +0 -118
- package/dist/priceLists.mjs.map +0 -1
- package/dist/products.d.mts +0 -52
- package/dist/products.d.ts +0 -52
- package/dist/products.js +0 -470
- package/dist/products.js.map +0 -1
- package/dist/products.mjs +0 -120
- package/dist/products.mjs.map +0 -1
- package/dist/salesStaff.d.mts +0 -64
- package/dist/salesStaff.d.ts +0 -64
- package/dist/salesStaff.js +0 -426
- package/dist/salesStaff.js.map +0 -1
- package/dist/salesStaff.mjs +0 -82
- package/dist/salesStaff.mjs.map +0 -1
- package/dist/status.schema-BgztUtGy.d.ts +0 -39
- package/dist/validation.error-CHLpPYC_.d.mts +0 -14
- package/dist/validation.error-CHLpPYC_.d.ts +0 -14
- package/dist/webhooks.d.mts +0 -109
- package/dist/webhooks.d.ts +0 -109
- package/dist/webhooks.js +0 -157
- package/dist/webhooks.js.map +0 -1
- package/dist/webhooks.mjs +0 -79
- package/dist/webhooks.mjs.map +0 -1
package/dist/companies.d.mts
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { I as InputValidationError } from './validation.error-CHLpPYC_.mjs';
|
|
2
|
-
import { S as SomeBigCommerceError, B as BigCommerceFetcher } from './bigcommerce.fetcher-Ujztbs8P.mjs';
|
|
3
|
-
import { Effect } from 'effect';
|
|
4
|
-
import * as z from 'zod';
|
|
5
|
-
import 'effect/Cause';
|
|
6
|
-
import 'effect/Types';
|
|
7
|
-
|
|
8
|
-
declare const CreateCompanySchema: z.ZodObject<{
|
|
9
|
-
companyName: z.ZodString;
|
|
10
|
-
companyPhone: z.ZodString;
|
|
11
|
-
companyEmail: z.ZodString;
|
|
12
|
-
addressLine1: z.ZodString;
|
|
13
|
-
addressLine2: z.ZodString;
|
|
14
|
-
city: z.ZodString;
|
|
15
|
-
state: z.ZodString;
|
|
16
|
-
country: z.ZodString;
|
|
17
|
-
zipCode: z.ZodString;
|
|
18
|
-
adminFirstName: z.ZodString;
|
|
19
|
-
adminLastName: z.ZodString;
|
|
20
|
-
adminEmail: z.ZodString;
|
|
21
|
-
adminPhoneNumber: z.ZodString;
|
|
22
|
-
acceptCreationEmail: z.ZodBoolean;
|
|
23
|
-
uuid: z.ZodString;
|
|
24
|
-
channelIds: z.ZodArray<z.ZodInt>;
|
|
25
|
-
originChannelId: z.ZodInt;
|
|
26
|
-
customerGroupId: z.ZodInt;
|
|
27
|
-
extraFields: z.ZodArray<z.ZodObject<{
|
|
28
|
-
fieldName: z.ZodString;
|
|
29
|
-
fieldValue: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
declare const CreateCompanyResponseSchema: z.ZodObject<{
|
|
33
|
-
data: z.ZodObject<{
|
|
34
|
-
companyId: z.ZodInt;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
meta: z.ZodObject<{
|
|
37
|
-
message: z.ZodString;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
declare const GetCompanyResponseSchema: z.ZodObject<{
|
|
41
|
-
data: z.ZodObject<{
|
|
42
|
-
companyId: z.ZodNumber;
|
|
43
|
-
companyName: z.ZodString;
|
|
44
|
-
bcGroupName: z.ZodString;
|
|
45
|
-
companyStatus: z.ZodNumber;
|
|
46
|
-
catalogId: z.ZodNumber;
|
|
47
|
-
catalogName: z.ZodString;
|
|
48
|
-
companyEmail: z.ZodString;
|
|
49
|
-
companyPhone: z.ZodString;
|
|
50
|
-
addressLine1: z.ZodString;
|
|
51
|
-
addressLine2: z.ZodString;
|
|
52
|
-
city: z.ZodString;
|
|
53
|
-
state: z.ZodString;
|
|
54
|
-
country: z.ZodString;
|
|
55
|
-
zipCode: z.ZodString;
|
|
56
|
-
createdAt: z.ZodNumber;
|
|
57
|
-
updatedAt: z.ZodNumber;
|
|
58
|
-
uuid: z.ZodString;
|
|
59
|
-
bcGroupId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
-
extraFields: z.ZodArray<z.ZodObject<{
|
|
61
|
-
fieldName: z.ZodString;
|
|
62
|
-
fieldValue: z.ZodString;
|
|
63
|
-
}, z.core.$strip>>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
declare const GetCompanyInputSchema: z.ZodObject<{
|
|
67
|
-
companyId: z.ZodNumber;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
|
|
70
|
-
declare const SetCompanyCreditSchema: z.ZodObject<{
|
|
71
|
-
data: z.ZodObject<{
|
|
72
|
-
creditEnabled: z.ZodBoolean;
|
|
73
|
-
creditCurrency: z.ZodEnum<{
|
|
74
|
-
MXN: "MXN";
|
|
75
|
-
}>;
|
|
76
|
-
availableCredit: z.ZodNumber;
|
|
77
|
-
limitPurchases: z.ZodBoolean;
|
|
78
|
-
creditHold: z.ZodBoolean;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
companyId: z.ZodInt;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
declare const SetCompanyCreditResponseSchema: z.ZodObject<{}, z.core.$strip>;
|
|
83
|
-
|
|
84
|
-
declare const GetCompanyExtraFieldsCriteriaSchema: z.ZodObject<{
|
|
85
|
-
limit: z.ZodOptional<z.ZodInt>;
|
|
86
|
-
offset: z.ZodOptional<z.ZodInt>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
declare const CompanyExtraFieldSchema: z.ZodObject<{
|
|
89
|
-
fieldName: z.ZodString;
|
|
90
|
-
labelName: z.ZodString;
|
|
91
|
-
listOfValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
-
maximumLength: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
declare const GetCompanyExtraFieldsResponseSchema: z.ZodObject<{
|
|
95
|
-
data: z.ZodArray<z.ZodObject<{
|
|
96
|
-
fieldName: z.ZodString;
|
|
97
|
-
labelName: z.ZodString;
|
|
98
|
-
listOfValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
|
-
maximumLength: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
meta: z.ZodObject<{
|
|
102
|
-
message: z.ZodString;
|
|
103
|
-
pagination: z.ZodObject<{
|
|
104
|
-
totalCount: z.ZodNumber;
|
|
105
|
-
offset: z.ZodNumber;
|
|
106
|
-
limit: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
|
|
111
|
-
declare const SetCompanyPaymentMethodsSchema: z.ZodObject<{
|
|
112
|
-
data: z.ZodObject<{
|
|
113
|
-
payments: z.ZodArray<z.ZodObject<{
|
|
114
|
-
code: z.ZodString;
|
|
115
|
-
isEnabled: z.ZodBoolean;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
|
-
companyId: z.ZodInt;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
declare const SetCompanyPaymentMethodsResponseSchema: z.ZodObject<{}, z.core.$strip>;
|
|
121
|
-
|
|
122
|
-
declare const CompanyRoleSchema: z.ZodObject<{
|
|
123
|
-
id: z.ZodInt;
|
|
124
|
-
name: z.ZodString;
|
|
125
|
-
roleLevel: z.ZodNumber;
|
|
126
|
-
roleType: z.ZodNumber;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
declare const GetCompanyRolesCriteriaSchema: z.ZodObject<{
|
|
129
|
-
limit: z.ZodOptional<z.ZodInt>;
|
|
130
|
-
offset: z.ZodOptional<z.ZodInt>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
declare const GetCompanyRolesResponseSchema: z.ZodObject<{
|
|
133
|
-
data: z.ZodArray<z.ZodObject<{
|
|
134
|
-
id: z.ZodInt;
|
|
135
|
-
name: z.ZodString;
|
|
136
|
-
roleLevel: z.ZodNumber;
|
|
137
|
-
roleType: z.ZodNumber;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
|
-
meta: z.ZodObject<{
|
|
140
|
-
message: z.ZodString;
|
|
141
|
-
pagination: z.ZodObject<{
|
|
142
|
-
limit: z.ZodNumber;
|
|
143
|
-
offset: z.ZodNumber;
|
|
144
|
-
totalCount: z.ZodNumber;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
|
-
type GetCompanyRolesResponse = z.output<typeof GetCompanyRolesResponseSchema>;
|
|
149
|
-
|
|
150
|
-
declare const AssignSalesStaffSchema: z.ZodObject<{
|
|
151
|
-
assignments: z.ZodArray<z.ZodObject<{
|
|
152
|
-
assignStatus: z.ZodBoolean;
|
|
153
|
-
companyId: z.ZodInt;
|
|
154
|
-
}, z.core.$strip>>;
|
|
155
|
-
salesStaffId: z.ZodPipe<z.ZodInt, z.ZodTransform<string, number>>;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
|
-
declare const AssignSalesStaffResponseSchema: z.ZodObject<{
|
|
158
|
-
code: z.ZodInt;
|
|
159
|
-
meta: z.ZodObject<{
|
|
160
|
-
message: z.ZodString;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
}, z.core.$strip>;
|
|
163
|
-
|
|
164
|
-
declare const CreateCompanyUserSchema: z.ZodObject<{
|
|
165
|
-
acceptWelcomeEmail: z.ZodBoolean;
|
|
166
|
-
companyId: z.ZodInt;
|
|
167
|
-
companyRoleId: z.ZodInt;
|
|
168
|
-
email: z.ZodEmail;
|
|
169
|
-
firstName: z.ZodString;
|
|
170
|
-
lastName: z.ZodString;
|
|
171
|
-
phoneNumber: z.ZodString;
|
|
172
|
-
}, z.core.$strip>;
|
|
173
|
-
declare const CreateCompanyUserResponseSchema: z.ZodObject<{
|
|
174
|
-
code: z.ZodNumber;
|
|
175
|
-
data: z.ZodObject<{
|
|
176
|
-
bcId: z.ZodNumber;
|
|
177
|
-
userId: z.ZodInt;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
meta: z.ZodObject<{
|
|
180
|
-
message: z.ZodString;
|
|
181
|
-
}, z.core.$strip>;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
declare const GetUserDetailsByCustomerIdResponseSchema: z.ZodObject<{
|
|
184
|
-
code: z.ZodInt;
|
|
185
|
-
data: z.ZodObject<{
|
|
186
|
-
firstName: z.ZodString;
|
|
187
|
-
lastName: z.ZodString;
|
|
188
|
-
email: z.ZodEmail;
|
|
189
|
-
phoneNumber: z.ZodString;
|
|
190
|
-
role: z.ZodInt;
|
|
191
|
-
companyRoleId: z.ZodInt;
|
|
192
|
-
uuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
193
|
-
extraFields: z.ZodArray<z.ZodObject<{
|
|
194
|
-
fieldName: z.ZodString;
|
|
195
|
-
fieldValue: z.ZodString;
|
|
196
|
-
}, z.core.$strip>>;
|
|
197
|
-
companyId: z.ZodInt;
|
|
198
|
-
customerId: z.ZodInt;
|
|
199
|
-
companyRoleName: z.ZodString;
|
|
200
|
-
channelList: z.ZodArray<z.ZodObject<{
|
|
201
|
-
channelId: z.ZodInt;
|
|
202
|
-
channelName: z.ZodString;
|
|
203
|
-
iconUrl: z.ZodString;
|
|
204
|
-
}, z.core.$strip>>;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
meta: z.ZodObject<{
|
|
207
|
-
message: z.ZodString;
|
|
208
|
-
}, z.core.$strip>;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
declare const GetUserDetailsByCustomerIdInputSchema: z.ZodObject<{
|
|
211
|
-
customerId: z.ZodInt;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
|
|
214
|
-
declare const assignSalesStaffToCompany: (input: z.input<typeof AssignSalesStaffSchema>) => Effect.Effect<{
|
|
215
|
-
code: number;
|
|
216
|
-
meta: {
|
|
217
|
-
message: string;
|
|
218
|
-
};
|
|
219
|
-
}[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
220
|
-
|
|
221
|
-
declare const createCompany: (data: z.input<typeof CreateCompanySchema>) => Effect.Effect<{
|
|
222
|
-
data: {
|
|
223
|
-
companyId: number;
|
|
224
|
-
};
|
|
225
|
-
meta: {
|
|
226
|
-
message: string;
|
|
227
|
-
};
|
|
228
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
229
|
-
|
|
230
|
-
declare const createCompanyUser: (data: z.input<typeof CreateCompanyUserSchema>) => Effect.Effect<{
|
|
231
|
-
code: number;
|
|
232
|
-
data: {
|
|
233
|
-
bcId: number;
|
|
234
|
-
userId: number;
|
|
235
|
-
};
|
|
236
|
-
meta: {
|
|
237
|
-
message: string;
|
|
238
|
-
};
|
|
239
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
240
|
-
|
|
241
|
-
declare const setCompanyCredit: (input: z.infer<typeof SetCompanyCreditSchema>) => Effect.Effect<Record<string, never>, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
242
|
-
|
|
243
|
-
declare const getCompanyDetails: (input: z.input<typeof GetCompanyInputSchema>) => Effect.Effect<{
|
|
244
|
-
data: {
|
|
245
|
-
companyId: number;
|
|
246
|
-
companyName: string;
|
|
247
|
-
bcGroupName: string;
|
|
248
|
-
companyStatus: number;
|
|
249
|
-
catalogId: number;
|
|
250
|
-
catalogName: string;
|
|
251
|
-
companyEmail: string;
|
|
252
|
-
companyPhone: string;
|
|
253
|
-
addressLine1: string;
|
|
254
|
-
addressLine2: string;
|
|
255
|
-
city: string;
|
|
256
|
-
state: string;
|
|
257
|
-
country: string;
|
|
258
|
-
zipCode: string;
|
|
259
|
-
createdAt: number;
|
|
260
|
-
updatedAt: number;
|
|
261
|
-
uuid: string;
|
|
262
|
-
extraFields: {
|
|
263
|
-
fieldName: string;
|
|
264
|
-
fieldValue: string;
|
|
265
|
-
}[];
|
|
266
|
-
bcGroupId?: number | null | undefined;
|
|
267
|
-
};
|
|
268
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
269
|
-
|
|
270
|
-
declare const findCompanyExtraFields: (criteria: z.input<typeof GetCompanyExtraFieldsCriteriaSchema>) => Effect.Effect<{
|
|
271
|
-
data: {
|
|
272
|
-
fieldName: string;
|
|
273
|
-
labelName: string;
|
|
274
|
-
listOfValue?: string[] | undefined;
|
|
275
|
-
maximumLength?: number | undefined;
|
|
276
|
-
}[];
|
|
277
|
-
meta: {
|
|
278
|
-
message: string;
|
|
279
|
-
pagination: {
|
|
280
|
-
totalCount: number;
|
|
281
|
-
offset: number;
|
|
282
|
-
limit: number;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
286
|
-
declare const getAllCompanyExtraFieldsBy: (criteria?: Omit<z.input<typeof GetCompanyExtraFieldsCriteriaSchema>, "limit" | "offset">) => Effect.Effect<{
|
|
287
|
-
fieldName: string;
|
|
288
|
-
labelName: string;
|
|
289
|
-
listOfValue?: string[] | undefined;
|
|
290
|
-
maximumLength?: number | undefined;
|
|
291
|
-
}[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
292
|
-
|
|
293
|
-
declare const findCompanyRoles: (criteria: z.infer<typeof GetCompanyRolesCriteriaSchema>) => Effect.Effect<{
|
|
294
|
-
data: {
|
|
295
|
-
id: number;
|
|
296
|
-
name: string;
|
|
297
|
-
roleLevel: number;
|
|
298
|
-
roleType: number;
|
|
299
|
-
}[];
|
|
300
|
-
meta: {
|
|
301
|
-
message: string;
|
|
302
|
-
pagination: {
|
|
303
|
-
limit: number;
|
|
304
|
-
offset: number;
|
|
305
|
-
totalCount: number;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
309
|
-
declare const getAllCompanyRolesBy: (criteria?: Omit<z.infer<typeof GetCompanyRolesCriteriaSchema>, "limit" | "offset">) => Effect.Effect<{
|
|
310
|
-
id: number;
|
|
311
|
-
name: string;
|
|
312
|
-
roleLevel: number;
|
|
313
|
-
roleType: number;
|
|
314
|
-
}[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
315
|
-
|
|
316
|
-
declare const getUserByCustomerId: (input: z.input<typeof GetUserDetailsByCustomerIdInputSchema>) => Effect.Effect<{
|
|
317
|
-
code: number;
|
|
318
|
-
data: {
|
|
319
|
-
firstName: string;
|
|
320
|
-
lastName: string;
|
|
321
|
-
email: string;
|
|
322
|
-
phoneNumber: string;
|
|
323
|
-
role: number;
|
|
324
|
-
companyRoleId: number;
|
|
325
|
-
extraFields: {
|
|
326
|
-
fieldName: string;
|
|
327
|
-
fieldValue: string;
|
|
328
|
-
}[];
|
|
329
|
-
companyId: number;
|
|
330
|
-
customerId: number;
|
|
331
|
-
companyRoleName: string;
|
|
332
|
-
channelList: {
|
|
333
|
-
channelId: number;
|
|
334
|
-
channelName: string;
|
|
335
|
-
iconUrl: string;
|
|
336
|
-
}[];
|
|
337
|
-
uuid?: string | null | undefined;
|
|
338
|
-
};
|
|
339
|
-
meta: {
|
|
340
|
-
message: string;
|
|
341
|
-
};
|
|
342
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
343
|
-
|
|
344
|
-
declare const setCompanyPaymentMethods: (input: z.infer<typeof SetCompanyPaymentMethodsSchema>) => Effect.Effect<Record<string, never>, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
345
|
-
|
|
346
|
-
export { AssignSalesStaffResponseSchema, AssignSalesStaffSchema, CompanyExtraFieldSchema, CompanyRoleSchema, CreateCompanyResponseSchema, CreateCompanySchema, CreateCompanyUserResponseSchema, CreateCompanyUserSchema, GetCompanyExtraFieldsCriteriaSchema, GetCompanyExtraFieldsResponseSchema, GetCompanyInputSchema, GetCompanyResponseSchema, GetCompanyRolesCriteriaSchema, type GetCompanyRolesResponse, GetCompanyRolesResponseSchema, GetUserDetailsByCustomerIdInputSchema, GetUserDetailsByCustomerIdResponseSchema, SetCompanyCreditResponseSchema, SetCompanyCreditSchema, SetCompanyPaymentMethodsResponseSchema, SetCompanyPaymentMethodsSchema, assignSalesStaffToCompany, createCompany, createCompanyUser, findCompanyExtraFields, findCompanyRoles, getAllCompanyExtraFieldsBy, getAllCompanyRolesBy, getCompanyDetails, getUserByCustomerId, setCompanyCredit, setCompanyPaymentMethods };
|
package/dist/companies.d.ts
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { I as InputValidationError } from './validation.error-CHLpPYC_.js';
|
|
2
|
-
import { S as SomeBigCommerceError, B as BigCommerceFetcher } from './bigcommerce.fetcher-Ujztbs8P.js';
|
|
3
|
-
import { Effect } from 'effect';
|
|
4
|
-
import * as z from 'zod';
|
|
5
|
-
import 'effect/Cause';
|
|
6
|
-
import 'effect/Types';
|
|
7
|
-
|
|
8
|
-
declare const CreateCompanySchema: z.ZodObject<{
|
|
9
|
-
companyName: z.ZodString;
|
|
10
|
-
companyPhone: z.ZodString;
|
|
11
|
-
companyEmail: z.ZodString;
|
|
12
|
-
addressLine1: z.ZodString;
|
|
13
|
-
addressLine2: z.ZodString;
|
|
14
|
-
city: z.ZodString;
|
|
15
|
-
state: z.ZodString;
|
|
16
|
-
country: z.ZodString;
|
|
17
|
-
zipCode: z.ZodString;
|
|
18
|
-
adminFirstName: z.ZodString;
|
|
19
|
-
adminLastName: z.ZodString;
|
|
20
|
-
adminEmail: z.ZodString;
|
|
21
|
-
adminPhoneNumber: z.ZodString;
|
|
22
|
-
acceptCreationEmail: z.ZodBoolean;
|
|
23
|
-
uuid: z.ZodString;
|
|
24
|
-
channelIds: z.ZodArray<z.ZodInt>;
|
|
25
|
-
originChannelId: z.ZodInt;
|
|
26
|
-
customerGroupId: z.ZodInt;
|
|
27
|
-
extraFields: z.ZodArray<z.ZodObject<{
|
|
28
|
-
fieldName: z.ZodString;
|
|
29
|
-
fieldValue: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
declare const CreateCompanyResponseSchema: z.ZodObject<{
|
|
33
|
-
data: z.ZodObject<{
|
|
34
|
-
companyId: z.ZodInt;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
meta: z.ZodObject<{
|
|
37
|
-
message: z.ZodString;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
declare const GetCompanyResponseSchema: z.ZodObject<{
|
|
41
|
-
data: z.ZodObject<{
|
|
42
|
-
companyId: z.ZodNumber;
|
|
43
|
-
companyName: z.ZodString;
|
|
44
|
-
bcGroupName: z.ZodString;
|
|
45
|
-
companyStatus: z.ZodNumber;
|
|
46
|
-
catalogId: z.ZodNumber;
|
|
47
|
-
catalogName: z.ZodString;
|
|
48
|
-
companyEmail: z.ZodString;
|
|
49
|
-
companyPhone: z.ZodString;
|
|
50
|
-
addressLine1: z.ZodString;
|
|
51
|
-
addressLine2: z.ZodString;
|
|
52
|
-
city: z.ZodString;
|
|
53
|
-
state: z.ZodString;
|
|
54
|
-
country: z.ZodString;
|
|
55
|
-
zipCode: z.ZodString;
|
|
56
|
-
createdAt: z.ZodNumber;
|
|
57
|
-
updatedAt: z.ZodNumber;
|
|
58
|
-
uuid: z.ZodString;
|
|
59
|
-
bcGroupId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
-
extraFields: z.ZodArray<z.ZodObject<{
|
|
61
|
-
fieldName: z.ZodString;
|
|
62
|
-
fieldValue: z.ZodString;
|
|
63
|
-
}, z.core.$strip>>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
declare const GetCompanyInputSchema: z.ZodObject<{
|
|
67
|
-
companyId: z.ZodNumber;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
|
|
70
|
-
declare const SetCompanyCreditSchema: z.ZodObject<{
|
|
71
|
-
data: z.ZodObject<{
|
|
72
|
-
creditEnabled: z.ZodBoolean;
|
|
73
|
-
creditCurrency: z.ZodEnum<{
|
|
74
|
-
MXN: "MXN";
|
|
75
|
-
}>;
|
|
76
|
-
availableCredit: z.ZodNumber;
|
|
77
|
-
limitPurchases: z.ZodBoolean;
|
|
78
|
-
creditHold: z.ZodBoolean;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
companyId: z.ZodInt;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
declare const SetCompanyCreditResponseSchema: z.ZodObject<{}, z.core.$strip>;
|
|
83
|
-
|
|
84
|
-
declare const GetCompanyExtraFieldsCriteriaSchema: z.ZodObject<{
|
|
85
|
-
limit: z.ZodOptional<z.ZodInt>;
|
|
86
|
-
offset: z.ZodOptional<z.ZodInt>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
declare const CompanyExtraFieldSchema: z.ZodObject<{
|
|
89
|
-
fieldName: z.ZodString;
|
|
90
|
-
labelName: z.ZodString;
|
|
91
|
-
listOfValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
-
maximumLength: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
declare const GetCompanyExtraFieldsResponseSchema: z.ZodObject<{
|
|
95
|
-
data: z.ZodArray<z.ZodObject<{
|
|
96
|
-
fieldName: z.ZodString;
|
|
97
|
-
labelName: z.ZodString;
|
|
98
|
-
listOfValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
|
-
maximumLength: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
meta: z.ZodObject<{
|
|
102
|
-
message: z.ZodString;
|
|
103
|
-
pagination: z.ZodObject<{
|
|
104
|
-
totalCount: z.ZodNumber;
|
|
105
|
-
offset: z.ZodNumber;
|
|
106
|
-
limit: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
|
|
111
|
-
declare const SetCompanyPaymentMethodsSchema: z.ZodObject<{
|
|
112
|
-
data: z.ZodObject<{
|
|
113
|
-
payments: z.ZodArray<z.ZodObject<{
|
|
114
|
-
code: z.ZodString;
|
|
115
|
-
isEnabled: z.ZodBoolean;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
|
-
companyId: z.ZodInt;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
declare const SetCompanyPaymentMethodsResponseSchema: z.ZodObject<{}, z.core.$strip>;
|
|
121
|
-
|
|
122
|
-
declare const CompanyRoleSchema: z.ZodObject<{
|
|
123
|
-
id: z.ZodInt;
|
|
124
|
-
name: z.ZodString;
|
|
125
|
-
roleLevel: z.ZodNumber;
|
|
126
|
-
roleType: z.ZodNumber;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
declare const GetCompanyRolesCriteriaSchema: z.ZodObject<{
|
|
129
|
-
limit: z.ZodOptional<z.ZodInt>;
|
|
130
|
-
offset: z.ZodOptional<z.ZodInt>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
declare const GetCompanyRolesResponseSchema: z.ZodObject<{
|
|
133
|
-
data: z.ZodArray<z.ZodObject<{
|
|
134
|
-
id: z.ZodInt;
|
|
135
|
-
name: z.ZodString;
|
|
136
|
-
roleLevel: z.ZodNumber;
|
|
137
|
-
roleType: z.ZodNumber;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
|
-
meta: z.ZodObject<{
|
|
140
|
-
message: z.ZodString;
|
|
141
|
-
pagination: z.ZodObject<{
|
|
142
|
-
limit: z.ZodNumber;
|
|
143
|
-
offset: z.ZodNumber;
|
|
144
|
-
totalCount: z.ZodNumber;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
|
-
type GetCompanyRolesResponse = z.output<typeof GetCompanyRolesResponseSchema>;
|
|
149
|
-
|
|
150
|
-
declare const AssignSalesStaffSchema: z.ZodObject<{
|
|
151
|
-
assignments: z.ZodArray<z.ZodObject<{
|
|
152
|
-
assignStatus: z.ZodBoolean;
|
|
153
|
-
companyId: z.ZodInt;
|
|
154
|
-
}, z.core.$strip>>;
|
|
155
|
-
salesStaffId: z.ZodPipe<z.ZodInt, z.ZodTransform<string, number>>;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
|
-
declare const AssignSalesStaffResponseSchema: z.ZodObject<{
|
|
158
|
-
code: z.ZodInt;
|
|
159
|
-
meta: z.ZodObject<{
|
|
160
|
-
message: z.ZodString;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
}, z.core.$strip>;
|
|
163
|
-
|
|
164
|
-
declare const CreateCompanyUserSchema: z.ZodObject<{
|
|
165
|
-
acceptWelcomeEmail: z.ZodBoolean;
|
|
166
|
-
companyId: z.ZodInt;
|
|
167
|
-
companyRoleId: z.ZodInt;
|
|
168
|
-
email: z.ZodEmail;
|
|
169
|
-
firstName: z.ZodString;
|
|
170
|
-
lastName: z.ZodString;
|
|
171
|
-
phoneNumber: z.ZodString;
|
|
172
|
-
}, z.core.$strip>;
|
|
173
|
-
declare const CreateCompanyUserResponseSchema: z.ZodObject<{
|
|
174
|
-
code: z.ZodNumber;
|
|
175
|
-
data: z.ZodObject<{
|
|
176
|
-
bcId: z.ZodNumber;
|
|
177
|
-
userId: z.ZodInt;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
meta: z.ZodObject<{
|
|
180
|
-
message: z.ZodString;
|
|
181
|
-
}, z.core.$strip>;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
declare const GetUserDetailsByCustomerIdResponseSchema: z.ZodObject<{
|
|
184
|
-
code: z.ZodInt;
|
|
185
|
-
data: z.ZodObject<{
|
|
186
|
-
firstName: z.ZodString;
|
|
187
|
-
lastName: z.ZodString;
|
|
188
|
-
email: z.ZodEmail;
|
|
189
|
-
phoneNumber: z.ZodString;
|
|
190
|
-
role: z.ZodInt;
|
|
191
|
-
companyRoleId: z.ZodInt;
|
|
192
|
-
uuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
193
|
-
extraFields: z.ZodArray<z.ZodObject<{
|
|
194
|
-
fieldName: z.ZodString;
|
|
195
|
-
fieldValue: z.ZodString;
|
|
196
|
-
}, z.core.$strip>>;
|
|
197
|
-
companyId: z.ZodInt;
|
|
198
|
-
customerId: z.ZodInt;
|
|
199
|
-
companyRoleName: z.ZodString;
|
|
200
|
-
channelList: z.ZodArray<z.ZodObject<{
|
|
201
|
-
channelId: z.ZodInt;
|
|
202
|
-
channelName: z.ZodString;
|
|
203
|
-
iconUrl: z.ZodString;
|
|
204
|
-
}, z.core.$strip>>;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
meta: z.ZodObject<{
|
|
207
|
-
message: z.ZodString;
|
|
208
|
-
}, z.core.$strip>;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
declare const GetUserDetailsByCustomerIdInputSchema: z.ZodObject<{
|
|
211
|
-
customerId: z.ZodInt;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
|
|
214
|
-
declare const assignSalesStaffToCompany: (input: z.input<typeof AssignSalesStaffSchema>) => Effect.Effect<{
|
|
215
|
-
code: number;
|
|
216
|
-
meta: {
|
|
217
|
-
message: string;
|
|
218
|
-
};
|
|
219
|
-
}[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
220
|
-
|
|
221
|
-
declare const createCompany: (data: z.input<typeof CreateCompanySchema>) => Effect.Effect<{
|
|
222
|
-
data: {
|
|
223
|
-
companyId: number;
|
|
224
|
-
};
|
|
225
|
-
meta: {
|
|
226
|
-
message: string;
|
|
227
|
-
};
|
|
228
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
229
|
-
|
|
230
|
-
declare const createCompanyUser: (data: z.input<typeof CreateCompanyUserSchema>) => Effect.Effect<{
|
|
231
|
-
code: number;
|
|
232
|
-
data: {
|
|
233
|
-
bcId: number;
|
|
234
|
-
userId: number;
|
|
235
|
-
};
|
|
236
|
-
meta: {
|
|
237
|
-
message: string;
|
|
238
|
-
};
|
|
239
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
240
|
-
|
|
241
|
-
declare const setCompanyCredit: (input: z.infer<typeof SetCompanyCreditSchema>) => Effect.Effect<Record<string, never>, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
242
|
-
|
|
243
|
-
declare const getCompanyDetails: (input: z.input<typeof GetCompanyInputSchema>) => Effect.Effect<{
|
|
244
|
-
data: {
|
|
245
|
-
companyId: number;
|
|
246
|
-
companyName: string;
|
|
247
|
-
bcGroupName: string;
|
|
248
|
-
companyStatus: number;
|
|
249
|
-
catalogId: number;
|
|
250
|
-
catalogName: string;
|
|
251
|
-
companyEmail: string;
|
|
252
|
-
companyPhone: string;
|
|
253
|
-
addressLine1: string;
|
|
254
|
-
addressLine2: string;
|
|
255
|
-
city: string;
|
|
256
|
-
state: string;
|
|
257
|
-
country: string;
|
|
258
|
-
zipCode: string;
|
|
259
|
-
createdAt: number;
|
|
260
|
-
updatedAt: number;
|
|
261
|
-
uuid: string;
|
|
262
|
-
extraFields: {
|
|
263
|
-
fieldName: string;
|
|
264
|
-
fieldValue: string;
|
|
265
|
-
}[];
|
|
266
|
-
bcGroupId?: number | null | undefined;
|
|
267
|
-
};
|
|
268
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
269
|
-
|
|
270
|
-
declare const findCompanyExtraFields: (criteria: z.input<typeof GetCompanyExtraFieldsCriteriaSchema>) => Effect.Effect<{
|
|
271
|
-
data: {
|
|
272
|
-
fieldName: string;
|
|
273
|
-
labelName: string;
|
|
274
|
-
listOfValue?: string[] | undefined;
|
|
275
|
-
maximumLength?: number | undefined;
|
|
276
|
-
}[];
|
|
277
|
-
meta: {
|
|
278
|
-
message: string;
|
|
279
|
-
pagination: {
|
|
280
|
-
totalCount: number;
|
|
281
|
-
offset: number;
|
|
282
|
-
limit: number;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
286
|
-
declare const getAllCompanyExtraFieldsBy: (criteria?: Omit<z.input<typeof GetCompanyExtraFieldsCriteriaSchema>, "limit" | "offset">) => Effect.Effect<{
|
|
287
|
-
fieldName: string;
|
|
288
|
-
labelName: string;
|
|
289
|
-
listOfValue?: string[] | undefined;
|
|
290
|
-
maximumLength?: number | undefined;
|
|
291
|
-
}[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
292
|
-
|
|
293
|
-
declare const findCompanyRoles: (criteria: z.infer<typeof GetCompanyRolesCriteriaSchema>) => Effect.Effect<{
|
|
294
|
-
data: {
|
|
295
|
-
id: number;
|
|
296
|
-
name: string;
|
|
297
|
-
roleLevel: number;
|
|
298
|
-
roleType: number;
|
|
299
|
-
}[];
|
|
300
|
-
meta: {
|
|
301
|
-
message: string;
|
|
302
|
-
pagination: {
|
|
303
|
-
limit: number;
|
|
304
|
-
offset: number;
|
|
305
|
-
totalCount: number;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
309
|
-
declare const getAllCompanyRolesBy: (criteria?: Omit<z.infer<typeof GetCompanyRolesCriteriaSchema>, "limit" | "offset">) => Effect.Effect<{
|
|
310
|
-
id: number;
|
|
311
|
-
name: string;
|
|
312
|
-
roleLevel: number;
|
|
313
|
-
roleType: number;
|
|
314
|
-
}[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
315
|
-
|
|
316
|
-
declare const getUserByCustomerId: (input: z.input<typeof GetUserDetailsByCustomerIdInputSchema>) => Effect.Effect<{
|
|
317
|
-
code: number;
|
|
318
|
-
data: {
|
|
319
|
-
firstName: string;
|
|
320
|
-
lastName: string;
|
|
321
|
-
email: string;
|
|
322
|
-
phoneNumber: string;
|
|
323
|
-
role: number;
|
|
324
|
-
companyRoleId: number;
|
|
325
|
-
extraFields: {
|
|
326
|
-
fieldName: string;
|
|
327
|
-
fieldValue: string;
|
|
328
|
-
}[];
|
|
329
|
-
companyId: number;
|
|
330
|
-
customerId: number;
|
|
331
|
-
companyRoleName: string;
|
|
332
|
-
channelList: {
|
|
333
|
-
channelId: number;
|
|
334
|
-
channelName: string;
|
|
335
|
-
iconUrl: string;
|
|
336
|
-
}[];
|
|
337
|
-
uuid?: string | null | undefined;
|
|
338
|
-
};
|
|
339
|
-
meta: {
|
|
340
|
-
message: string;
|
|
341
|
-
};
|
|
342
|
-
}, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
343
|
-
|
|
344
|
-
declare const setCompanyPaymentMethods: (input: z.infer<typeof SetCompanyPaymentMethodsSchema>) => Effect.Effect<Record<string, never>, SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
|
|
345
|
-
|
|
346
|
-
export { AssignSalesStaffResponseSchema, AssignSalesStaffSchema, CompanyExtraFieldSchema, CompanyRoleSchema, CreateCompanyResponseSchema, CreateCompanySchema, CreateCompanyUserResponseSchema, CreateCompanyUserSchema, GetCompanyExtraFieldsCriteriaSchema, GetCompanyExtraFieldsResponseSchema, GetCompanyInputSchema, GetCompanyResponseSchema, GetCompanyRolesCriteriaSchema, type GetCompanyRolesResponse, GetCompanyRolesResponseSchema, GetUserDetailsByCustomerIdInputSchema, GetUserDetailsByCustomerIdResponseSchema, SetCompanyCreditResponseSchema, SetCompanyCreditSchema, SetCompanyPaymentMethodsResponseSchema, SetCompanyPaymentMethodsSchema, assignSalesStaffToCompany, createCompany, createCompanyUser, findCompanyExtraFields, findCompanyRoles, getAllCompanyExtraFieldsBy, getAllCompanyRolesBy, getCompanyDetails, getUserByCustomerId, setCompanyCredit, setCompanyPaymentMethods };
|