@edgebound/bigcommerce 0.3.1 → 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 -364
- 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 +21 -65
- 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-PAXNZ36X.mjs +0 -326
- package/dist/chunk-PAXNZ36X.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 -232
- package/dist/companies.d.ts +0 -232
- package/dist/companies.js +0 -725
- package/dist/companies.js.map +0 -1
- package/dist/companies.mjs +0 -368
- 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 -157
- package/dist/customers.d.ts +0 -157
- package/dist/customers.js +0 -581
- package/dist/customers.js.map +0 -1
- package/dist/customers.mjs +0 -233
- 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 -716
- 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 -365
- 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 -458
- 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 -463
- 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 -419
- 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 -107
- package/dist/webhooks.d.ts +0 -107
- package/dist/webhooks.js +0 -155
- package/dist/webhooks.js.map +0 -1
- package/dist/webhooks.mjs +0 -77
- package/dist/webhooks.mjs.map +0 -1
package/dist/customers.mjs
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validateInput
|
|
3
|
-
} from "./chunk-CERZFSUE.mjs";
|
|
4
|
-
import {
|
|
5
|
-
BigCommerceFetcher,
|
|
6
|
-
DEFAULTS
|
|
7
|
-
} from "./chunk-PAXNZ36X.mjs";
|
|
8
|
-
|
|
9
|
-
// src/bigcommerce-entities/customers/create-customer-group.ts
|
|
10
|
-
import { Effect } from "effect";
|
|
11
|
-
|
|
12
|
-
// src/bigcommerce-entities/customers/schemas/customer-group.schema.ts
|
|
13
|
-
import * as z from "zod";
|
|
14
|
-
var CreateCustomerGroupSchema = z.object({
|
|
15
|
-
name: z.string(),
|
|
16
|
-
discount_rules: z.array(
|
|
17
|
-
z.object({
|
|
18
|
-
type: z.literal("price_list"),
|
|
19
|
-
price_list_id: z.int()
|
|
20
|
-
})
|
|
21
|
-
)
|
|
22
|
-
});
|
|
23
|
-
var CreateCustomerGroupResponseSchema = z.object({
|
|
24
|
-
id: z.int()
|
|
25
|
-
});
|
|
26
|
-
var CustomerGroupSchema = z.object({
|
|
27
|
-
id: z.int(),
|
|
28
|
-
name: z.string(),
|
|
29
|
-
is_default: z.boolean(),
|
|
30
|
-
is_group_for_guests: z.boolean()
|
|
31
|
-
});
|
|
32
|
-
var FindCustomerGroupsCriteriaSchema = z.object({
|
|
33
|
-
limit: z.int().max(DEFAULTS.customers.getBatchSize).optional(),
|
|
34
|
-
page: z.int().positive().optional()
|
|
35
|
-
});
|
|
36
|
-
var SetCustomerGroupPriceListSchema = z.object({
|
|
37
|
-
data: z.object({
|
|
38
|
-
discount_rules: z.object({
|
|
39
|
-
type: z.literal("price_list"),
|
|
40
|
-
price_list_id: z.int()
|
|
41
|
-
}).array()
|
|
42
|
-
}),
|
|
43
|
-
customerGroupId: z.int()
|
|
44
|
-
});
|
|
45
|
-
var SetCustomerGroupPriceListResponseSchema = z.object({
|
|
46
|
-
id: z.int(),
|
|
47
|
-
name: z.string()
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
// src/bigcommerce-entities/customers/create-customer-group.ts
|
|
51
|
-
var createCustomerGroup = (data) => Effect.gen(function* () {
|
|
52
|
-
const fetcher = yield* BigCommerceFetcher;
|
|
53
|
-
const validatedBody = yield* validateInput(CreateCustomerGroupSchema, data);
|
|
54
|
-
return yield* Effect.retry(
|
|
55
|
-
fetcher.fetch({
|
|
56
|
-
body: validatedBody,
|
|
57
|
-
isB2B: false,
|
|
58
|
-
method: "POST",
|
|
59
|
-
path: "customer_groups",
|
|
60
|
-
resultSchema: CreateCustomerGroupResponseSchema,
|
|
61
|
-
version: "v2"
|
|
62
|
-
}),
|
|
63
|
-
DEFAULTS.retry.policy
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// src/bigcommerce-entities/customers/find-customers.ts
|
|
68
|
-
import { Effect as Effect2 } from "effect";
|
|
69
|
-
import { stringify } from "querystring";
|
|
70
|
-
|
|
71
|
-
// src/bigcommerce-entities/customers/schemas/customer.schema.ts
|
|
72
|
-
import * as z2 from "zod";
|
|
73
|
-
var CustomerSchema = z2.object({
|
|
74
|
-
email: z2.email(),
|
|
75
|
-
first_name: z2.string(),
|
|
76
|
-
last_name: z2.string(),
|
|
77
|
-
company: z2.string().optional(),
|
|
78
|
-
phone: z2.string(),
|
|
79
|
-
customer_group_id: z2.int(),
|
|
80
|
-
id: z2.int(),
|
|
81
|
-
channel_ids: z2.array(z2.int())
|
|
82
|
-
});
|
|
83
|
-
var FindCustomerResponse = z2.object({
|
|
84
|
-
data: z2.array(CustomerSchema),
|
|
85
|
-
meta: z2.object({
|
|
86
|
-
pagination: z2.object({
|
|
87
|
-
total: z2.int(),
|
|
88
|
-
count: z2.int(),
|
|
89
|
-
per_page: z2.int(),
|
|
90
|
-
current_page: z2.int(),
|
|
91
|
-
total_pages: z2.int(),
|
|
92
|
-
links: z2.object({
|
|
93
|
-
previous: z2.string().optional().nullable(),
|
|
94
|
-
current: z2.string(),
|
|
95
|
-
next: z2.string().optional().nullable()
|
|
96
|
-
})
|
|
97
|
-
})
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
// src/bigcommerce-entities/customers/schemas/find-customer.criteria.ts
|
|
102
|
-
import * as z3 from "zod";
|
|
103
|
-
var FindCustomersCriteriaSchema = z3.object({
|
|
104
|
-
"id:in": z3.array(z3.int()).transform((ids) => ids.join(",")).optional(),
|
|
105
|
-
page: z3.int().optional(),
|
|
106
|
-
limit: z3.int().optional(),
|
|
107
|
-
"company:in": z3.array(z3.string()).transform((companies) => companies.join(",")).optional(),
|
|
108
|
-
"customer_group_id:in": z3.array(z3.int()).transform((ids) => ids.join(",")).optional()
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
// src/bigcommerce-entities/customers/find-customers.ts
|
|
112
|
-
var findCustomers = (criteria) => {
|
|
113
|
-
return Effect2.gen(function* () {
|
|
114
|
-
const fetcher = yield* BigCommerceFetcher;
|
|
115
|
-
const validatedQuery = yield* validateInput(FindCustomersCriteriaSchema, criteria ?? {});
|
|
116
|
-
return yield* fetcher.fetch({
|
|
117
|
-
method: "GET",
|
|
118
|
-
path: `customers`,
|
|
119
|
-
isB2B: false,
|
|
120
|
-
version: "v3",
|
|
121
|
-
resultSchema: FindCustomerResponse,
|
|
122
|
-
query: stringify(validatedQuery)
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
var getAllCustomersBy = (criteria) => {
|
|
127
|
-
return Effect2.gen(function* () {
|
|
128
|
-
const allCustomers = [];
|
|
129
|
-
let page = 1;
|
|
130
|
-
let hasMoreCustomers = true;
|
|
131
|
-
while (hasMoreCustomers) {
|
|
132
|
-
const customers = yield* findCustomers({
|
|
133
|
-
...criteria,
|
|
134
|
-
page,
|
|
135
|
-
limit: DEFAULTS.customers.getBatchSize
|
|
136
|
-
});
|
|
137
|
-
if (customers.meta.pagination.links.next) {
|
|
138
|
-
allCustomers.push(...customers.data);
|
|
139
|
-
page++;
|
|
140
|
-
} else {
|
|
141
|
-
hasMoreCustomers = false;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return allCustomers;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
// src/bigcommerce-entities/customers/get-all-customer-groups.ts
|
|
149
|
-
import { Effect as Effect3 } from "effect";
|
|
150
|
-
import { stringify as stringify2 } from "querystring";
|
|
151
|
-
import * as z4 from "zod";
|
|
152
|
-
var FindCustomerResponse2 = z4.union([
|
|
153
|
-
z4.array(CustomerGroupSchema),
|
|
154
|
-
z4.literal(""),
|
|
155
|
-
z4.literal(null)
|
|
156
|
-
]);
|
|
157
|
-
var findCustomersGroups = (criteria) => Effect3.gen(function* () {
|
|
158
|
-
const fetcher = yield* BigCommerceFetcher;
|
|
159
|
-
const validatedQuery = yield* validateInput(FindCustomerGroupsCriteriaSchema, criteria ?? {});
|
|
160
|
-
const response = yield* fetcher.fetch({
|
|
161
|
-
method: "GET",
|
|
162
|
-
path: `customers`,
|
|
163
|
-
isB2B: false,
|
|
164
|
-
version: "v3",
|
|
165
|
-
resultSchema: FindCustomerResponse2,
|
|
166
|
-
query: stringify2(validatedQuery)
|
|
167
|
-
});
|
|
168
|
-
return response || [];
|
|
169
|
-
});
|
|
170
|
-
var getAllCustomerGroupsBy = (criteria) => Effect3.gen(function* () {
|
|
171
|
-
const all = [];
|
|
172
|
-
let page = 1;
|
|
173
|
-
let hasMore = true;
|
|
174
|
-
while (hasMore) {
|
|
175
|
-
const groups = yield* findCustomersGroups({
|
|
176
|
-
...criteria,
|
|
177
|
-
page,
|
|
178
|
-
limit: DEFAULTS.customers.getBatchSize
|
|
179
|
-
});
|
|
180
|
-
if (groups.length) {
|
|
181
|
-
all.push(...groups);
|
|
182
|
-
page++;
|
|
183
|
-
} else {
|
|
184
|
-
hasMore = false;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return all;
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
// src/bigcommerce-entities/customers/get-customer.ts
|
|
191
|
-
import { Effect as Effect4 } from "effect";
|
|
192
|
-
var getCustomer = (customerId) => {
|
|
193
|
-
return findCustomers({
|
|
194
|
-
"id:in": [customerId]
|
|
195
|
-
}).pipe(Effect4.map((response) => response.data[0]));
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
// src/bigcommerce-entities/customers/set-customer-group-price-list.ts
|
|
199
|
-
import { Effect as Effect5 } from "effect";
|
|
200
|
-
var setCustomerGroupPriceList = (input) => Effect5.gen(function* () {
|
|
201
|
-
const { customerGroupId, data } = yield* validateInput(SetCustomerGroupPriceListSchema, input);
|
|
202
|
-
const fetcher = yield* BigCommerceFetcher;
|
|
203
|
-
return yield* Effect5.retry(
|
|
204
|
-
fetcher.fetch({
|
|
205
|
-
body: data,
|
|
206
|
-
isB2B: false,
|
|
207
|
-
method: "PUT",
|
|
208
|
-
path: `customer_groups/${customerGroupId}`,
|
|
209
|
-
resultSchema: SetCustomerGroupPriceListResponseSchema,
|
|
210
|
-
version: "v2"
|
|
211
|
-
}),
|
|
212
|
-
DEFAULTS.retry.policy
|
|
213
|
-
);
|
|
214
|
-
});
|
|
215
|
-
export {
|
|
216
|
-
CreateCustomerGroupResponseSchema,
|
|
217
|
-
CreateCustomerGroupSchema,
|
|
218
|
-
CustomerGroupSchema,
|
|
219
|
-
CustomerSchema,
|
|
220
|
-
FindCustomerGroupsCriteriaSchema,
|
|
221
|
-
FindCustomerResponse,
|
|
222
|
-
FindCustomersCriteriaSchema,
|
|
223
|
-
SetCustomerGroupPriceListResponseSchema,
|
|
224
|
-
SetCustomerGroupPriceListSchema,
|
|
225
|
-
createCustomerGroup,
|
|
226
|
-
findCustomers,
|
|
227
|
-
findCustomersGroups,
|
|
228
|
-
getAllCustomerGroupsBy,
|
|
229
|
-
getAllCustomersBy,
|
|
230
|
-
getCustomer,
|
|
231
|
-
setCustomerGroupPriceList
|
|
232
|
-
};
|
|
233
|
-
//# sourceMappingURL=customers.mjs.map
|
package/dist/customers.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/bigcommerce-entities/customers/create-customer-group.ts","../src/bigcommerce-entities/customers/schemas/customer-group.schema.ts","../src/bigcommerce-entities/customers/find-customers.ts","../src/bigcommerce-entities/customers/schemas/customer.schema.ts","../src/bigcommerce-entities/customers/schemas/find-customer.criteria.ts","../src/bigcommerce-entities/customers/get-all-customer-groups.ts","../src/bigcommerce-entities/customers/get-customer.ts","../src/bigcommerce-entities/customers/set-customer-group-price-list.ts"],"sourcesContent":["import { Effect } from 'effect';\nimport * as z from 'zod';\nimport { DEFAULTS } from '../../constants';\nimport { BigCommerceFetcher } from '../../core';\nimport { validateInput } from '../../validation';\nimport {\n CreateCustomerGroupResponseSchema,\n CreateCustomerGroupSchema,\n} from './schemas/customer-group.schema';\nexport const createCustomerGroup = (data: z.input<typeof CreateCustomerGroupSchema>) =>\n Effect.gen(function* () {\n const fetcher = yield* BigCommerceFetcher;\n const validatedBody = yield* validateInput(CreateCustomerGroupSchema, data);\n return yield* Effect.retry(\n fetcher.fetch({\n body: validatedBody,\n isB2B: false,\n method: 'POST',\n path: 'customer_groups',\n resultSchema: CreateCustomerGroupResponseSchema,\n version: 'v2',\n }),\n DEFAULTS.retry.policy,\n );\n });\n","import * as z from 'zod';\nimport { DEFAULTS } from '../../../constants';\nexport const CreateCustomerGroupSchema = z.object({\n name: z.string(),\n discount_rules: z.array(\n z.object({\n type: z.literal('price_list'),\n price_list_id: z.int(),\n }),\n ),\n});\n\nexport const CreateCustomerGroupResponseSchema = z.object({\n id: z.int(),\n});\n\nexport const CustomerGroupSchema = z.object({\n id: z.int(),\n name: z.string(),\n is_default: z.boolean(),\n is_group_for_guests: z.boolean(),\n});\n\nexport const FindCustomerGroupsCriteriaSchema = z.object({\n limit: z.int().max(DEFAULTS.customers.getBatchSize).optional(),\n page: z.int().positive().optional(),\n});\n\nexport const SetCustomerGroupPriceListSchema = z.object({\n data: z.object({\n discount_rules: z\n .object({\n type: z.literal('price_list'),\n price_list_id: z.int(),\n })\n .array(),\n }),\n customerGroupId: z.int(),\n});\n\nexport const SetCustomerGroupPriceListResponseSchema = z.object({\n id: z.int(),\n name: z.string(),\n});\n","import { Effect } from 'effect';\nimport { stringify } from 'node:querystring';\nimport * as z from 'zod';\nimport { DEFAULTS } from '../../constants';\nimport { BigCommerceFetcher } from '../../core';\nimport { validateInput } from '../../validation';\nimport { FindCustomerResponse, type CustomerSchema } from './schemas/customer.schema';\nimport { FindCustomersCriteriaSchema } from './schemas/find-customer.criteria';\nexport const findCustomers = (criteria?: z.input<typeof FindCustomersCriteriaSchema>) => {\n return Effect.gen(function* () {\n const fetcher = yield* BigCommerceFetcher;\n const validatedQuery = yield* validateInput(FindCustomersCriteriaSchema, criteria ?? {});\n return yield* fetcher.fetch({\n method: 'GET',\n path: `customers`,\n isB2B: false,\n version: 'v3',\n resultSchema: FindCustomerResponse,\n query: stringify(validatedQuery),\n });\n });\n};\n\nexport const getAllCustomersBy = (\n criteria: Omit<z.input<typeof FindCustomersCriteriaSchema>, 'page' | 'limit'>,\n) => {\n return Effect.gen(function* () {\n const allCustomers: z.infer<typeof CustomerSchema>[] = [];\n let page = 1;\n let hasMoreCustomers = true;\n\n while (hasMoreCustomers) {\n const customers = yield* findCustomers({\n ...criteria,\n page,\n limit: DEFAULTS.customers.getBatchSize,\n });\n\n if (customers.meta.pagination.links.next) {\n allCustomers.push(...customers.data);\n page++;\n } else {\n hasMoreCustomers = false;\n }\n }\n\n return allCustomers;\n });\n};\n","import * as z from 'zod';\n\nexport const CustomerSchema = z.object({\n email: z.email(),\n first_name: z.string(),\n last_name: z.string(),\n company: z.string().optional(),\n phone: z.string(),\n customer_group_id: z.int(),\n id: z.int(),\n channel_ids: z.array(z.int()),\n});\n\nexport const FindCustomerResponse = z.object({\n data: z.array(CustomerSchema),\n meta: z.object({\n pagination: z.object({\n total: z.int(),\n count: z.int(),\n per_page: z.int(),\n current_page: z.int(),\n total_pages: z.int(),\n links: z.object({\n previous: z.string().optional().nullable(),\n current: z.string(),\n next: z.string().optional().nullable(),\n }),\n }),\n }),\n});\n","import * as z from 'zod';\nexport const FindCustomersCriteriaSchema = z.object({\n 'id:in': z\n .array(z.int())\n .transform((ids) => ids.join(','))\n .optional(),\n page: z.int().optional(),\n limit: z.int().optional(),\n 'company:in': z\n .array(z.string())\n .transform((companies) => companies.join(','))\n .optional(),\n 'customer_group_id:in': z\n .array(z.int())\n .transform((ids) => ids.join(','))\n .optional(),\n});\n","import { Effect } from 'effect';\nimport { stringify } from 'node:querystring';\nimport * as z from 'zod';\nimport { DEFAULTS } from '../../constants';\nimport { BigCommerceFetcher } from '../../core';\nimport { validateInput } from '../../validation';\nimport {\n CustomerGroupSchema,\n FindCustomerGroupsCriteriaSchema,\n} from './schemas/customer-group.schema';\nconst FindCustomerResponse = z.union([\n z.array(CustomerGroupSchema),\n z.literal(''),\n z.literal(null),\n]);\nexport const findCustomersGroups = (criteria?: z.input<typeof FindCustomerGroupsCriteriaSchema>) =>\n Effect.gen(function* () {\n const fetcher = yield* BigCommerceFetcher;\n const validatedQuery = yield* validateInput(FindCustomerGroupsCriteriaSchema, criteria ?? {});\n const response = yield* fetcher.fetch({\n method: 'GET',\n path: `customers`,\n isB2B: false,\n version: 'v3',\n resultSchema: FindCustomerResponse,\n query: stringify(validatedQuery),\n });\n return response || [];\n });\n\nexport const getAllCustomerGroupsBy = (\n criteria?: Omit<z.input<typeof FindCustomerGroupsCriteriaSchema>, 'page' | 'limit'>,\n) =>\n Effect.gen(function* () {\n const all: z.infer<typeof CustomerGroupSchema>[] = [];\n let page = 1;\n let hasMore = true;\n\n while (hasMore) {\n const groups = yield* findCustomersGroups({\n ...criteria,\n page,\n limit: DEFAULTS.customers.getBatchSize,\n });\n\n if (groups.length) {\n all.push(...groups);\n page++;\n } else {\n hasMore = false;\n }\n }\n\n return all;\n });\n","import { Effect } from 'effect';\nimport { findCustomers } from './find-customers';\n\nexport const getCustomer = (customerId: number) => {\n return findCustomers({\n 'id:in': [customerId],\n }).pipe(Effect.map((response) => response.data[0]));\n};\n","import { Effect } from 'effect';\nimport * as z from 'zod';\nimport { DEFAULTS } from '../../constants';\nimport { BigCommerceFetcher } from '../../core';\nimport { validateInput } from '../../validation';\nimport {\n SetCustomerGroupPriceListResponseSchema,\n SetCustomerGroupPriceListSchema,\n} from './schemas/customer-group.schema';\nexport const setCustomerGroupPriceList = (input: z.input<typeof SetCustomerGroupPriceListSchema>) =>\n Effect.gen(function* () {\n const { customerGroupId, data } = yield* validateInput(SetCustomerGroupPriceListSchema, input);\n const fetcher = yield* BigCommerceFetcher;\n\n return yield* Effect.retry(\n fetcher.fetch({\n body: data,\n isB2B: false,\n method: 'PUT',\n path: `customer_groups/${customerGroupId}`,\n resultSchema: SetCustomerGroupPriceListResponseSchema,\n version: 'v2',\n }),\n DEFAULTS.retry.policy,\n );\n });\n"],"mappings":";;;;;;;;;AAAA,SAAS,cAAc;;;ACAvB,YAAY,OAAO;AAEZ,IAAM,4BAA8B,SAAO;AAAA,EAChD,MAAQ,SAAO;AAAA,EACf,gBAAkB;AAAA,IACd,SAAO;AAAA,MACP,MAAQ,UAAQ,YAAY;AAAA,MAC5B,eAAiB,MAAI;AAAA,IACvB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,IAAM,oCAAsC,SAAO;AAAA,EACxD,IAAM,MAAI;AACZ,CAAC;AAEM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,IAAM,MAAI;AAAA,EACV,MAAQ,SAAO;AAAA,EACf,YAAc,UAAQ;AAAA,EACtB,qBAAuB,UAAQ;AACjC,CAAC;AAEM,IAAM,mCAAqC,SAAO;AAAA,EACvD,OAAS,MAAI,EAAE,IAAI,SAAS,UAAU,YAAY,EAAE,SAAS;AAAA,EAC7D,MAAQ,MAAI,EAAE,SAAS,EAAE,SAAS;AACpC,CAAC;AAEM,IAAM,kCAAoC,SAAO;AAAA,EACtD,MAAQ,SAAO;AAAA,IACb,gBACG,SAAO;AAAA,MACN,MAAQ,UAAQ,YAAY;AAAA,MAC5B,eAAiB,MAAI;AAAA,IACvB,CAAC,EACA,MAAM;AAAA,EACX,CAAC;AAAA,EACD,iBAAmB,MAAI;AACzB,CAAC;AAEM,IAAM,0CAA4C,SAAO;AAAA,EAC9D,IAAM,MAAI;AAAA,EACV,MAAQ,SAAO;AACjB,CAAC;;;ADlCM,IAAM,sBAAsB,CAAC,SAClC,OAAO,IAAI,aAAa;AACtB,QAAM,UAAU,OAAO;AACvB,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,MAAM;AAAA,EACjB;AACF,CAAC;","names":["Effect","z","z","Effect","Effect","stringify","z","FindCustomerResponse","Effect","stringify","Effect","Effect","Effect","Effect"]}
|
package/dist/index.d.mts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { B as BigCommerceFetcher } from './bigcommerce.fetcher-Ujztbs8P.mjs';
|
|
2
|
-
export { e as BigCommerceConflictError, f as BigCommerceConnectionError, k as BigCommerceFetchMethods, l as BigCommerceFetchParams, c as BigCommerceForbiddenError, i as BigCommerceInvalidRequestError, h as BigCommerceInvalidResponseError, d as BigCommerceNotFoundError, j as BigCommerceParseResponseError, b as BigCommerceUnauthorizedError, g as BigCommerceUnknownError, a as BigCommerceUnprocessableEntityError, S as SomeBigCommerceError } from './bigcommerce.fetcher-Ujztbs8P.mjs';
|
|
3
|
-
import { Context, Effect, Layer } from 'effect';
|
|
4
|
-
import * as effect_Cause from 'effect/Cause';
|
|
5
|
-
import * as effect_Types from 'effect/Types';
|
|
6
|
-
import 'zod';
|
|
7
|
-
|
|
8
|
-
declare const NoBigCommerceConfigError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
9
|
-
readonly _tag: "NoBigCommerceConfigError";
|
|
10
|
-
} & Readonly<A>;
|
|
11
|
-
declare class NoBigCommerceConfigError extends NoBigCommerceConfigError_base<{
|
|
12
|
-
readonly key: string;
|
|
13
|
-
}> {
|
|
14
|
-
}
|
|
15
|
-
declare const BigCommerceConfig_base: Context.TagClass<BigCommerceConfig, "BigCommerceConfig", {
|
|
16
|
-
readonly getStoreHash: Effect.Effect<string, NoBigCommerceConfigError>;
|
|
17
|
-
readonly getClientId: Effect.Effect<string, NoBigCommerceConfigError>;
|
|
18
|
-
readonly getClientSecret: Effect.Effect<string, NoBigCommerceConfigError>;
|
|
19
|
-
readonly getAccessToken: Effect.Effect<string, NoBigCommerceConfigError>;
|
|
20
|
-
readonly getTimeout: Effect.Effect<number, NoBigCommerceConfigError>;
|
|
21
|
-
}>;
|
|
22
|
-
declare class BigCommerceConfig extends BigCommerceConfig_base {
|
|
23
|
-
}
|
|
24
|
-
declare const BigCommerceConfigLive: Layer.Layer<BigCommerceConfig, NoBigCommerceConfigError, never>;
|
|
25
|
-
declare const BigCommerceConfigTest: Layer.Layer<BigCommerceConfig, never, never>;
|
|
26
|
-
declare const validateBigCommerceConfig: () => Effect.Effect<{
|
|
27
|
-
storeHash: string;
|
|
28
|
-
clientId: string;
|
|
29
|
-
clientSecret: string;
|
|
30
|
-
accessToken: string;
|
|
31
|
-
timeout: number;
|
|
32
|
-
}, NoBigCommerceConfigError, BigCommerceConfig>;
|
|
33
|
-
|
|
34
|
-
declare const BigCommerceFetcherLive: Layer.Layer<BigCommerceFetcher, NoBigCommerceConfigError, BigCommerceConfig>;
|
|
35
|
-
|
|
36
|
-
export { BigCommerceConfig, BigCommerceConfigLive, BigCommerceConfigTest, BigCommerceFetcher, BigCommerceFetcherLive, NoBigCommerceConfigError, validateBigCommerceConfig };
|
package/dist/index.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BigCommerceConfig,
|
|
3
|
-
BigCommerceConfigLive,
|
|
4
|
-
BigCommerceConfigTest,
|
|
5
|
-
BigCommerceConflictError,
|
|
6
|
-
BigCommerceConnectionError,
|
|
7
|
-
BigCommerceFetcher,
|
|
8
|
-
BigCommerceFetcherLive,
|
|
9
|
-
BigCommerceForbiddenError,
|
|
10
|
-
BigCommerceInvalidRequestError,
|
|
11
|
-
BigCommerceInvalidResponseError,
|
|
12
|
-
BigCommerceNotFoundError,
|
|
13
|
-
BigCommerceParseResponseError,
|
|
14
|
-
BigCommerceUnauthorizedError,
|
|
15
|
-
BigCommerceUnknownError,
|
|
16
|
-
BigCommerceUnprocessableEntityError,
|
|
17
|
-
NoBigCommerceConfigError,
|
|
18
|
-
validateBigCommerceConfig
|
|
19
|
-
} from "./chunk-PAXNZ36X.mjs";
|
|
20
|
-
export {
|
|
21
|
-
BigCommerceConfig,
|
|
22
|
-
BigCommerceConfigLive,
|
|
23
|
-
BigCommerceConfigTest,
|
|
24
|
-
BigCommerceConflictError,
|
|
25
|
-
BigCommerceConnectionError,
|
|
26
|
-
BigCommerceFetcher,
|
|
27
|
-
BigCommerceFetcherLive,
|
|
28
|
-
BigCommerceForbiddenError,
|
|
29
|
-
BigCommerceInvalidRequestError,
|
|
30
|
-
BigCommerceInvalidResponseError,
|
|
31
|
-
BigCommerceNotFoundError,
|
|
32
|
-
BigCommerceParseResponseError,
|
|
33
|
-
BigCommerceUnauthorizedError,
|
|
34
|
-
BigCommerceUnknownError,
|
|
35
|
-
BigCommerceUnprocessableEntityError,
|
|
36
|
-
NoBigCommerceConfigError,
|
|
37
|
-
validateBigCommerceConfig
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|