@commercelayer/sdk 2.3.3-beta.1 → 2.3.3-beta.2
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/lib/{api.d.ts → cjs/api.d.ts} +101 -101
- package/lib/cjs/api.js +406 -0
- package/lib/{client.d.ts → cjs/client.d.ts} +30 -30
- package/lib/cjs/client.js +101 -0
- package/lib/{commercelayer.d.ts → cjs/commercelayer.d.ts} +118 -118
- package/lib/cjs/commercelayer.js +201 -0
- package/lib/{common.d.ts → cjs/common.d.ts} +4 -4
- package/lib/cjs/common.js +13 -0
- package/lib/{config.d.ts → cjs/config.d.ts} +7 -7
- package/lib/cjs/config.js +9 -0
- package/lib/{error.d.ts → cjs/error.d.ts} +26 -26
- package/lib/cjs/error.js +40 -0
- package/lib/{index.d.ts → cjs/index.d.ts} +6 -6
- package/lib/cjs/index.js +24 -0
- package/lib/{interceptor.d.ts → cjs/interceptor.d.ts} +19 -19
- package/lib/cjs/interceptor.js +2 -0
- package/lib/{jsonapi.d.ts → cjs/jsonapi.d.ts} +7 -7
- package/lib/cjs/jsonapi.js +63 -0
- package/lib/{model.d.ts → cjs/model.d.ts} +99 -99
- package/lib/cjs/model.js +3 -0
- package/lib/{query.d.ts → cjs/query.d.ts} +57 -57
- package/lib/cjs/query.js +172 -0
- package/lib/{resource.d.ts → cjs/resource.d.ts} +69 -69
- package/lib/cjs/resource.js +114 -0
- package/lib/{resources → cjs/resources}/addresses.d.ts +91 -91
- package/lib/cjs/resources/addresses.js +47 -0
- package/lib/{resources → cjs/resources}/adjustments.d.ts +39 -39
- package/lib/cjs/resources/adjustments.js +47 -0
- package/lib/{resources → cjs/resources}/adyen_gateways.d.ts +49 -49
- package/lib/cjs/resources/adyen_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/adyen_payments.d.ts +47 -47
- package/lib/cjs/resources/adyen_payments.js +47 -0
- package/lib/{resources → cjs/resources}/application.d.ts +25 -25
- package/lib/cjs/resources/application.js +35 -0
- package/lib/{resources → cjs/resources}/attachments.d.ts +160 -160
- package/lib/cjs/resources/attachments.js +47 -0
- package/lib/{resources → cjs/resources}/authorizations.d.ts +58 -58
- package/lib/cjs/resources/authorizations.js +41 -0
- package/lib/{resources → cjs/resources}/avalara_accounts.d.ts +53 -53
- package/lib/cjs/resources/avalara_accounts.js +47 -0
- package/lib/{resources → cjs/resources}/billing_info_validation_rules.d.ts +35 -35
- package/lib/cjs/resources/billing_info_validation_rules.js +47 -0
- package/lib/{resources → cjs/resources}/bing_geocoders.d.ts +37 -37
- package/lib/cjs/resources/bing_geocoders.js +47 -0
- package/lib/{resources → cjs/resources}/braintree_gateways.d.ts +58 -58
- package/lib/cjs/resources/braintree_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/braintree_payments.d.ts +49 -49
- package/lib/cjs/resources/braintree_payments.js +47 -0
- package/lib/{resources → cjs/resources}/bundles.d.ts +69 -69
- package/lib/cjs/resources/bundles.js +47 -0
- package/lib/{resources → cjs/resources}/captures.d.ts +49 -49
- package/lib/cjs/resources/captures.js +41 -0
- package/lib/{resources → cjs/resources}/carrier_accounts.d.ts +28 -28
- package/lib/cjs/resources/carrier_accounts.js +38 -0
- package/lib/{resources → cjs/resources}/checkout_com_gateways.d.ts +47 -47
- package/lib/cjs/resources/checkout_com_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/checkout_com_payments.d.ts +53 -53
- package/lib/cjs/resources/checkout_com_payments.js +47 -0
- package/lib/{resources → cjs/resources}/coupon_codes_promotion_rules.d.ts +62 -62
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +47 -0
- package/lib/{resources → cjs/resources}/coupon_recipients.d.ts +46 -46
- package/lib/cjs/resources/coupon_recipients.js +47 -0
- package/lib/{resources → cjs/resources}/coupons.d.ts +45 -45
- package/lib/cjs/resources/coupons.js +47 -0
- package/lib/{resources → cjs/resources}/customer_addresses.d.ts +43 -43
- package/lib/cjs/resources/customer_addresses.js +47 -0
- package/lib/{resources → cjs/resources}/customer_groups.d.ts +37 -37
- package/lib/cjs/resources/customer_groups.js +47 -0
- package/lib/{resources → cjs/resources}/customer_password_resets.d.ts +36 -36
- package/lib/cjs/resources/customer_password_resets.js +47 -0
- package/lib/{resources → cjs/resources}/customer_payment_sources.d.ts +69 -69
- package/lib/cjs/resources/customer_payment_sources.js +47 -0
- package/lib/{resources → cjs/resources}/customer_subscriptions.d.ts +31 -31
- package/lib/cjs/resources/customer_subscriptions.js +47 -0
- package/lib/{resources → cjs/resources}/customers.d.ts +56 -56
- package/lib/cjs/resources/customers.js +47 -0
- package/lib/{resources → cjs/resources}/delivery_lead_times.d.ts +52 -52
- package/lib/cjs/resources/delivery_lead_times.js +47 -0
- package/lib/{resources → cjs/resources}/event_callbacks.d.ts +27 -27
- package/lib/cjs/resources/event_callbacks.js +38 -0
- package/lib/{resources → cjs/resources}/external_gateways.d.ts +48 -48
- package/lib/cjs/resources/external_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/external_payments.d.ts +42 -42
- package/lib/cjs/resources/external_payments.js +47 -0
- package/lib/{resources → cjs/resources}/external_promotions.d.ts +82 -82
- package/lib/cjs/resources/external_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/external_tax_calculators.d.ts +45 -45
- package/lib/cjs/resources/external_tax_calculators.js +47 -0
- package/lib/{resources → cjs/resources}/fixed_amount_promotions.d.ts +84 -84
- package/lib/cjs/resources/fixed_amount_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/fixed_price_promotions.d.ts +93 -93
- package/lib/cjs/resources/fixed_price_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/free_gift_promotions.d.ts +91 -91
- package/lib/cjs/resources/free_gift_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/free_shipping_promotions.d.ts +79 -79
- package/lib/cjs/resources/free_shipping_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/geocoders.d.ts +25 -25
- package/lib/cjs/resources/geocoders.js +35 -0
- package/lib/{resources → cjs/resources}/gift_card_recipients.d.ts +46 -46
- package/lib/cjs/resources/gift_card_recipients.js +47 -0
- package/lib/{resources → cjs/resources}/gift_cards.d.ts +84 -84
- package/lib/cjs/resources/gift_cards.js +47 -0
- package/lib/{resources → cjs/resources}/google_geocoders.d.ts +37 -37
- package/lib/cjs/resources/google_geocoders.js +47 -0
- package/lib/{resources → cjs/resources}/imports.d.ts +44 -44
- package/lib/cjs/resources/imports.js +44 -0
- package/lib/{resources → cjs/resources}/in_stock_subscriptions.d.ts +60 -60
- package/lib/cjs/resources/in_stock_subscriptions.js +47 -0
- package/lib/{resources → cjs/resources}/inventory_models.d.ts +43 -43
- package/lib/cjs/resources/inventory_models.js +47 -0
- package/lib/{resources → cjs/resources}/inventory_return_locations.d.ts +45 -45
- package/lib/cjs/resources/inventory_return_locations.js +47 -0
- package/lib/{resources → cjs/resources}/inventory_stock_locations.d.ts +48 -48
- package/lib/cjs/resources/inventory_stock_locations.js +47 -0
- package/lib/{resources → cjs/resources}/line_item_options.d.ts +59 -59
- package/lib/cjs/resources/line_item_options.js +47 -0
- package/lib/{resources → cjs/resources}/line_items.d.ts +125 -125
- package/lib/cjs/resources/line_items.js +47 -0
- package/lib/{resources → cjs/resources}/manual_gateways.d.ts +36 -36
- package/lib/cjs/resources/manual_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/manual_tax_calculators.d.ts +49 -49
- package/lib/cjs/resources/manual_tax_calculators.js +47 -0
- package/lib/{resources → cjs/resources}/markets.d.ts +79 -79
- package/lib/cjs/resources/markets.js +47 -0
- package/lib/{resources → cjs/resources}/merchants.d.ts +40 -40
- package/lib/cjs/resources/merchants.js +47 -0
- package/lib/{resources → cjs/resources}/order_amount_promotion_rules.d.ts +60 -60
- package/lib/cjs/resources/order_amount_promotion_rules.js +47 -0
- package/lib/{resources → cjs/resources}/order_copies.d.ts +46 -46
- package/lib/cjs/resources/order_copies.js +44 -0
- package/lib/{resources → cjs/resources}/order_subscriptions.d.ts +66 -66
- package/lib/cjs/resources/order_subscriptions.js +47 -0
- package/lib/{resources → cjs/resources}/order_validation_rules.d.ts +22 -22
- package/lib/cjs/resources/order_validation_rules.js +35 -0
- package/lib/{resources → cjs/resources}/orders.d.ts +255 -255
- package/lib/cjs/resources/orders.js +47 -0
- package/lib/{resources → cjs/resources}/organization.d.ts +34 -34
- package/lib/cjs/resources/organization.js +35 -0
- package/lib/{resources → cjs/resources}/packages.d.ts +57 -57
- package/lib/cjs/resources/packages.js +47 -0
- package/lib/{resources → cjs/resources}/parcel_line_items.d.ts +51 -51
- package/lib/cjs/resources/parcel_line_items.js +47 -0
- package/lib/{resources → cjs/resources}/parcels.d.ts +108 -108
- package/lib/cjs/resources/parcels.js +47 -0
- package/lib/{resources → cjs/resources}/payment_gateways.d.ts +33 -33
- package/lib/cjs/resources/payment_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/payment_methods.d.ts +54 -54
- package/lib/cjs/resources/payment_methods.js +47 -0
- package/lib/{resources → cjs/resources}/paypal_gateways.d.ts +41 -41
- package/lib/cjs/resources/paypal_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/paypal_payments.d.ts +49 -49
- package/lib/cjs/resources/paypal_payments.js +47 -0
- package/lib/{resources → cjs/resources}/percentage_discount_promotions.d.ts +91 -91
- package/lib/cjs/resources/percentage_discount_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/price_lists.d.ts +41 -41
- package/lib/cjs/resources/price_lists.js +47 -0
- package/lib/{resources → cjs/resources}/prices.d.ts +58 -58
- package/lib/cjs/resources/prices.js +47 -0
- package/lib/{resources → cjs/resources}/promotion_rules.d.ts +27 -27
- package/lib/cjs/resources/promotion_rules.js +35 -0
- package/lib/{resources → cjs/resources}/promotions.d.ts +38 -38
- package/lib/cjs/resources/promotions.js +35 -0
- package/lib/{resources → cjs/resources}/refunds.d.ts +36 -36
- package/lib/cjs/resources/refunds.js +38 -0
- package/lib/{resources → cjs/resources}/return_line_items.d.ts +51 -51
- package/lib/cjs/resources/return_line_items.js +47 -0
- package/lib/{resources → cjs/resources}/returns.d.ts +69 -69
- package/lib/cjs/resources/returns.js +47 -0
- package/lib/{resources → cjs/resources}/shipments.d.ts +80 -80
- package/lib/cjs/resources/shipments.js +41 -0
- package/lib/{resources → cjs/resources}/shipping_categories.d.ts +35 -35
- package/lib/cjs/resources/shipping_categories.js +47 -0
- package/lib/{resources → cjs/resources}/shipping_methods.d.ts +71 -71
- package/lib/cjs/resources/shipping_methods.js +47 -0
- package/lib/{resources → cjs/resources}/shipping_zones.d.ts +51 -51
- package/lib/cjs/resources/shipping_zones.js +47 -0
- package/lib/{resources → cjs/resources}/sku_list_items.d.ts +46 -46
- package/lib/cjs/resources/sku_list_items.js +47 -0
- package/lib/{resources → cjs/resources}/sku_list_promotion_rules.d.ts +70 -70
- package/lib/cjs/resources/sku_list_promotion_rules.js +47 -0
- package/lib/{resources → cjs/resources}/sku_lists.d.ts +50 -50
- package/lib/cjs/resources/sku_lists.js +47 -0
- package/lib/{resources → cjs/resources}/sku_options.d.ts +55 -55
- package/lib/cjs/resources/sku_options.js +47 -0
- package/lib/{resources → cjs/resources}/skus.d.ts +76 -76
- package/lib/cjs/resources/skus.js +47 -0
- package/lib/{resources → cjs/resources}/stock_items.d.ts +50 -50
- package/lib/cjs/resources/stock_items.js +47 -0
- package/lib/{resources → cjs/resources}/stock_line_items.d.ts +30 -30
- package/lib/cjs/resources/stock_line_items.js +38 -0
- package/lib/{resources → cjs/resources}/stock_locations.d.ts +55 -55
- package/lib/cjs/resources/stock_locations.js +47 -0
- package/lib/{resources → cjs/resources}/stock_transfers.d.ts +70 -70
- package/lib/cjs/resources/stock_transfers.js +47 -0
- package/lib/{resources → cjs/resources}/stripe_gateways.d.ts +40 -40
- package/lib/cjs/resources/stripe_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/stripe_payments.d.ts +44 -44
- package/lib/cjs/resources/stripe_payments.js +47 -0
- package/lib/{resources → cjs/resources}/tax_calculators.d.ts +27 -27
- package/lib/cjs/resources/tax_calculators.js +35 -0
- package/lib/{resources → cjs/resources}/tax_categories.d.ts +61 -61
- package/lib/cjs/resources/tax_categories.js +47 -0
- package/lib/{resources → cjs/resources}/tax_rules.d.ts +72 -72
- package/lib/cjs/resources/tax_rules.js +47 -0
- package/lib/{resources → cjs/resources}/taxjar_accounts.d.ts +44 -44
- package/lib/cjs/resources/taxjar_accounts.js +47 -0
- package/lib/{resources → cjs/resources}/transactions.d.ts +33 -33
- package/lib/cjs/resources/transactions.js +35 -0
- package/lib/{resources → cjs/resources}/voids.d.ts +36 -36
- package/lib/cjs/resources/voids.js +38 -0
- package/lib/{resources → cjs/resources}/webhooks.d.ts +45 -45
- package/lib/cjs/resources/webhooks.js +47 -0
- package/lib/{resources → cjs/resources}/wire_transfers.d.ts +35 -35
- package/lib/cjs/resources/wire_transfers.js +47 -0
- package/lib/{static.d.ts → cjs/static.d.ts} +6 -6
- package/lib/cjs/static.js +36 -0
- package/lib/{util.d.ts → cjs/util.d.ts} +3 -3
- package/lib/cjs/util.js +7 -0
- package/lib/esm/api.d.ts +101 -0
- package/lib/esm/api.js +304 -0
- package/lib/esm/client.d.ts +30 -0
- package/lib/esm/client.js +96 -0
- package/lib/esm/commercelayer.d.ts +118 -0
- package/lib/esm/commercelayer.js +177 -0
- package/lib/esm/common.d.ts +4 -0
- package/lib/esm/common.js +9 -0
- package/lib/esm/config.d.ts +7 -0
- package/lib/esm/config.js +7 -0
- package/lib/esm/error.d.ts +26 -0
- package/lib/esm/error.js +35 -0
- package/lib/esm/index.d.ts +6 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/interceptor.d.ts +19 -0
- package/lib/esm/interceptor.js +1 -0
- package/lib/esm/jsonapi.d.ts +7 -0
- package/lib/esm/jsonapi.js +59 -0
- package/lib/esm/model.d.ts +99 -0
- package/lib/esm/model.js +2 -0
- package/lib/esm/query.d.ts +57 -0
- package/lib/esm/query.js +168 -0
- package/lib/esm/resource.d.ts +69 -0
- package/lib/esm/resource.js +108 -0
- package/lib/esm/resources/addresses.d.ts +91 -0
- package/lib/esm/resources/addresses.js +45 -0
- package/lib/esm/resources/adjustments.d.ts +39 -0
- package/lib/esm/resources/adjustments.js +45 -0
- package/lib/esm/resources/adyen_gateways.d.ts +49 -0
- package/lib/esm/resources/adyen_gateways.js +45 -0
- package/lib/esm/resources/adyen_payments.d.ts +47 -0
- package/lib/esm/resources/adyen_payments.js +45 -0
- package/lib/esm/resources/application.d.ts +25 -0
- package/lib/esm/resources/application.js +33 -0
- package/lib/esm/resources/attachments.d.ts +160 -0
- package/lib/esm/resources/attachments.js +45 -0
- package/lib/esm/resources/authorizations.d.ts +58 -0
- package/lib/esm/resources/authorizations.js +39 -0
- package/lib/esm/resources/avalara_accounts.d.ts +53 -0
- package/lib/esm/resources/avalara_accounts.js +45 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +35 -0
- package/lib/esm/resources/billing_info_validation_rules.js +45 -0
- package/lib/esm/resources/bing_geocoders.d.ts +37 -0
- package/lib/esm/resources/bing_geocoders.js +45 -0
- package/lib/esm/resources/braintree_gateways.d.ts +58 -0
- package/lib/esm/resources/braintree_gateways.js +45 -0
- package/lib/esm/resources/braintree_payments.d.ts +49 -0
- package/lib/esm/resources/braintree_payments.js +45 -0
- package/lib/esm/resources/bundles.d.ts +69 -0
- package/lib/esm/resources/bundles.js +45 -0
- package/lib/esm/resources/captures.d.ts +49 -0
- package/lib/esm/resources/captures.js +39 -0
- package/lib/esm/resources/carrier_accounts.d.ts +28 -0
- package/lib/esm/resources/carrier_accounts.js +36 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +47 -0
- package/lib/esm/resources/checkout_com_gateways.js +45 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +53 -0
- package/lib/esm/resources/checkout_com_payments.js +45 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +62 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +45 -0
- package/lib/esm/resources/coupon_recipients.d.ts +46 -0
- package/lib/esm/resources/coupon_recipients.js +45 -0
- package/lib/esm/resources/coupons.d.ts +45 -0
- package/lib/esm/resources/coupons.js +45 -0
- package/lib/esm/resources/customer_addresses.d.ts +43 -0
- package/lib/esm/resources/customer_addresses.js +45 -0
- package/lib/esm/resources/customer_groups.d.ts +37 -0
- package/lib/esm/resources/customer_groups.js +45 -0
- package/lib/esm/resources/customer_password_resets.d.ts +36 -0
- package/lib/esm/resources/customer_password_resets.js +45 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +69 -0
- package/lib/esm/resources/customer_payment_sources.js +45 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +31 -0
- package/lib/esm/resources/customer_subscriptions.js +45 -0
- package/lib/esm/resources/customers.d.ts +56 -0
- package/lib/esm/resources/customers.js +45 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +52 -0
- package/lib/esm/resources/delivery_lead_times.js +45 -0
- package/lib/esm/resources/event_callbacks.d.ts +27 -0
- package/lib/esm/resources/event_callbacks.js +36 -0
- package/lib/esm/resources/external_gateways.d.ts +48 -0
- package/lib/esm/resources/external_gateways.js +45 -0
- package/lib/esm/resources/external_payments.d.ts +42 -0
- package/lib/esm/resources/external_payments.js +45 -0
- package/lib/esm/resources/external_promotions.d.ts +82 -0
- package/lib/esm/resources/external_promotions.js +45 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +45 -0
- package/lib/esm/resources/external_tax_calculators.js +45 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +84 -0
- package/lib/esm/resources/fixed_amount_promotions.js +45 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +93 -0
- package/lib/esm/resources/fixed_price_promotions.js +45 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +91 -0
- package/lib/esm/resources/free_gift_promotions.js +45 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +79 -0
- package/lib/esm/resources/free_shipping_promotions.js +45 -0
- package/lib/esm/resources/geocoders.d.ts +25 -0
- package/lib/esm/resources/geocoders.js +33 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +46 -0
- package/lib/esm/resources/gift_card_recipients.js +45 -0
- package/lib/esm/resources/gift_cards.d.ts +84 -0
- package/lib/esm/resources/gift_cards.js +45 -0
- package/lib/esm/resources/google_geocoders.d.ts +37 -0
- package/lib/esm/resources/google_geocoders.js +45 -0
- package/lib/esm/resources/imports.d.ts +44 -0
- package/lib/esm/resources/imports.js +42 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +60 -0
- package/lib/esm/resources/in_stock_subscriptions.js +45 -0
- package/lib/esm/resources/inventory_models.d.ts +43 -0
- package/lib/esm/resources/inventory_models.js +45 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +45 -0
- package/lib/esm/resources/inventory_return_locations.js +45 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +48 -0
- package/lib/esm/resources/inventory_stock_locations.js +45 -0
- package/lib/esm/resources/line_item_options.d.ts +59 -0
- package/lib/esm/resources/line_item_options.js +45 -0
- package/lib/esm/resources/line_items.d.ts +125 -0
- package/lib/esm/resources/line_items.js +45 -0
- package/lib/esm/resources/manual_gateways.d.ts +36 -0
- package/lib/esm/resources/manual_gateways.js +45 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +49 -0
- package/lib/esm/resources/manual_tax_calculators.js +45 -0
- package/lib/esm/resources/markets.d.ts +79 -0
- package/lib/esm/resources/markets.js +45 -0
- package/lib/esm/resources/merchants.d.ts +40 -0
- package/lib/esm/resources/merchants.js +45 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +60 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +45 -0
- package/lib/esm/resources/order_copies.d.ts +46 -0
- package/lib/esm/resources/order_copies.js +42 -0
- package/lib/esm/resources/order_subscriptions.d.ts +66 -0
- package/lib/esm/resources/order_subscriptions.js +45 -0
- package/lib/esm/resources/order_validation_rules.d.ts +22 -0
- package/lib/esm/resources/order_validation_rules.js +33 -0
- package/lib/esm/resources/orders.d.ts +255 -0
- package/lib/esm/resources/orders.js +45 -0
- package/lib/esm/resources/organization.d.ts +34 -0
- package/lib/esm/resources/organization.js +33 -0
- package/lib/esm/resources/packages.d.ts +57 -0
- package/lib/esm/resources/packages.js +45 -0
- package/lib/esm/resources/parcel_line_items.d.ts +51 -0
- package/lib/esm/resources/parcel_line_items.js +45 -0
- package/lib/esm/resources/parcels.d.ts +108 -0
- package/lib/esm/resources/parcels.js +45 -0
- package/lib/esm/resources/payment_gateways.d.ts +33 -0
- package/lib/esm/resources/payment_gateways.js +45 -0
- package/lib/esm/resources/payment_methods.d.ts +54 -0
- package/lib/esm/resources/payment_methods.js +45 -0
- package/lib/esm/resources/paypal_gateways.d.ts +41 -0
- package/lib/esm/resources/paypal_gateways.js +45 -0
- package/lib/esm/resources/paypal_payments.d.ts +49 -0
- package/lib/esm/resources/paypal_payments.js +45 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +91 -0
- package/lib/esm/resources/percentage_discount_promotions.js +45 -0
- package/lib/esm/resources/price_lists.d.ts +41 -0
- package/lib/esm/resources/price_lists.js +45 -0
- package/lib/esm/resources/prices.d.ts +58 -0
- package/lib/esm/resources/prices.js +45 -0
- package/lib/esm/resources/promotion_rules.d.ts +27 -0
- package/lib/esm/resources/promotion_rules.js +33 -0
- package/lib/esm/resources/promotions.d.ts +38 -0
- package/lib/esm/resources/promotions.js +33 -0
- package/lib/esm/resources/refunds.d.ts +36 -0
- package/lib/esm/resources/refunds.js +36 -0
- package/lib/esm/resources/return_line_items.d.ts +51 -0
- package/lib/esm/resources/return_line_items.js +45 -0
- package/lib/esm/resources/returns.d.ts +69 -0
- package/lib/esm/resources/returns.js +45 -0
- package/lib/esm/resources/shipments.d.ts +80 -0
- package/lib/esm/resources/shipments.js +39 -0
- package/lib/esm/resources/shipping_categories.d.ts +35 -0
- package/lib/esm/resources/shipping_categories.js +45 -0
- package/lib/esm/resources/shipping_methods.d.ts +71 -0
- package/lib/esm/resources/shipping_methods.js +45 -0
- package/lib/esm/resources/shipping_zones.d.ts +51 -0
- package/lib/esm/resources/shipping_zones.js +45 -0
- package/lib/esm/resources/sku_list_items.d.ts +46 -0
- package/lib/esm/resources/sku_list_items.js +45 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +70 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +45 -0
- package/lib/esm/resources/sku_lists.d.ts +50 -0
- package/lib/esm/resources/sku_lists.js +45 -0
- package/lib/esm/resources/sku_options.d.ts +55 -0
- package/lib/esm/resources/sku_options.js +45 -0
- package/lib/esm/resources/skus.d.ts +76 -0
- package/lib/esm/resources/skus.js +45 -0
- package/lib/esm/resources/stock_items.d.ts +50 -0
- package/lib/esm/resources/stock_items.js +45 -0
- package/lib/esm/resources/stock_line_items.d.ts +30 -0
- package/lib/esm/resources/stock_line_items.js +36 -0
- package/lib/esm/resources/stock_locations.d.ts +55 -0
- package/lib/esm/resources/stock_locations.js +45 -0
- package/lib/esm/resources/stock_transfers.d.ts +70 -0
- package/lib/esm/resources/stock_transfers.js +45 -0
- package/lib/esm/resources/stripe_gateways.d.ts +40 -0
- package/lib/esm/resources/stripe_gateways.js +45 -0
- package/lib/esm/resources/stripe_payments.d.ts +44 -0
- package/lib/esm/resources/stripe_payments.js +45 -0
- package/lib/esm/resources/tax_calculators.d.ts +27 -0
- package/lib/esm/resources/tax_calculators.js +33 -0
- package/lib/esm/resources/tax_categories.d.ts +61 -0
- package/lib/esm/resources/tax_categories.js +45 -0
- package/lib/esm/resources/tax_rules.d.ts +72 -0
- package/lib/esm/resources/tax_rules.js +45 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +44 -0
- package/lib/esm/resources/taxjar_accounts.js +45 -0
- package/lib/esm/resources/transactions.d.ts +33 -0
- package/lib/esm/resources/transactions.js +33 -0
- package/lib/esm/resources/voids.d.ts +36 -0
- package/lib/esm/resources/voids.js +36 -0
- package/lib/esm/resources/webhooks.d.ts +45 -0
- package/lib/esm/resources/webhooks.js +45 -0
- package/lib/esm/resources/wire_transfers.d.ts +35 -0
- package/lib/esm/resources/wire_transfers.js +45 -0
- package/lib/esm/static.d.ts +6 -0
- package/lib/esm/static.js +14 -0
- package/lib/esm/util.d.ts +3 -0
- package/lib/esm/util.js +4 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +70 -57
- package/lib/index.js +0 -8
- package/lib/sdk.cjs.development.js +0 -17158
- package/lib/sdk.cjs.development.js.map +0 -1
- package/lib/sdk.cjs.production.min.js +0 -2
- package/lib/sdk.cjs.production.min.js.map +0 -1
- package/lib/sdk.esm.js +0 -17152
- package/lib/sdk.esm.js.map +0 -1
@@ -1,118 +1,118 @@
|
|
1
|
-
import * as api from './api';
|
2
|
-
import { ApiError } from './error';
|
3
|
-
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
|
-
import { ResourcesConfig, ResourcesInitConfig } from './resource';
|
5
|
-
declare type SdkConfig = {};
|
6
|
-
declare type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
7
|
-
declare type CommerceLayerConfig = SdkConfig & ResourcesConfig;
|
8
|
-
declare class CommerceLayerClient {
|
9
|
-
#private;
|
10
|
-
addresses: api.Addresses;
|
11
|
-
adjustments: api.Adjustments;
|
12
|
-
adyen_gateways: api.AdyenGateways;
|
13
|
-
adyen_payments: api.AdyenPayments;
|
14
|
-
application: api.Applications;
|
15
|
-
attachments: api.Attachments;
|
16
|
-
authorizations: api.Authorizations;
|
17
|
-
avalara_accounts: api.AvalaraAccounts;
|
18
|
-
billing_info_validation_rules: api.BillingInfoValidationRules;
|
19
|
-
bing_geocoders: api.BingGeocoders;
|
20
|
-
braintree_gateways: api.BraintreeGateways;
|
21
|
-
braintree_payments: api.BraintreePayments;
|
22
|
-
bundles: api.Bundles;
|
23
|
-
captures: api.Captures;
|
24
|
-
carrier_accounts: api.CarrierAccounts;
|
25
|
-
checkout_com_gateways: api.CheckoutComGateways;
|
26
|
-
checkout_com_payments: api.CheckoutComPayments;
|
27
|
-
coupon_codes_promotion_rules: api.CouponCodesPromotionRules;
|
28
|
-
coupon_recipients: api.CouponRecipients;
|
29
|
-
coupons: api.Coupons;
|
30
|
-
customer_addresses: api.CustomerAddresses;
|
31
|
-
customer_groups: api.CustomerGroups;
|
32
|
-
customer_password_resets: api.CustomerPasswordResets;
|
33
|
-
customer_payment_sources: api.CustomerPaymentSources;
|
34
|
-
customer_subscriptions: api.CustomerSubscriptions;
|
35
|
-
customers: api.Customers;
|
36
|
-
delivery_lead_times: api.DeliveryLeadTimes;
|
37
|
-
event_callbacks: api.EventCallbacks;
|
38
|
-
external_gateways: api.ExternalGateways;
|
39
|
-
external_payments: api.ExternalPayments;
|
40
|
-
external_promotions: api.ExternalPromotions;
|
41
|
-
external_tax_calculators: api.ExternalTaxCalculators;
|
42
|
-
fixed_amount_promotions: api.FixedAmountPromotions;
|
43
|
-
fixed_price_promotions: api.FixedPricePromotions;
|
44
|
-
free_gift_promotions: api.FreeGiftPromotions;
|
45
|
-
free_shipping_promotions: api.FreeShippingPromotions;
|
46
|
-
geocoders: api.Geocoders;
|
47
|
-
gift_card_recipients: api.GiftCardRecipients;
|
48
|
-
gift_cards: api.GiftCards;
|
49
|
-
google_geocoders: api.GoogleGeocoders;
|
50
|
-
imports: api.Imports;
|
51
|
-
in_stock_subscriptions: api.InStockSubscriptions;
|
52
|
-
inventory_models: api.InventoryModels;
|
53
|
-
inventory_return_locations: api.InventoryReturnLocations;
|
54
|
-
inventory_stock_locations: api.InventoryStockLocations;
|
55
|
-
line_item_options: api.LineItemOptions;
|
56
|
-
line_items: api.LineItems;
|
57
|
-
manual_gateways: api.ManualGateways;
|
58
|
-
manual_tax_calculators: api.ManualTaxCalculators;
|
59
|
-
markets: api.Markets;
|
60
|
-
merchants: api.Merchants;
|
61
|
-
order_amount_promotion_rules: api.OrderAmountPromotionRules;
|
62
|
-
order_copies: api.OrderCopies;
|
63
|
-
order_subscriptions: api.OrderSubscriptions;
|
64
|
-
order_validation_rules: api.OrderValidationRules;
|
65
|
-
orders: api.Orders;
|
66
|
-
organization: api.Organizations;
|
67
|
-
packages: api.Packages;
|
68
|
-
parcel_line_items: api.ParcelLineItems;
|
69
|
-
parcels: api.Parcels;
|
70
|
-
payment_gateways: api.PaymentGateways;
|
71
|
-
payment_methods: api.PaymentMethods;
|
72
|
-
paypal_gateways: api.PaypalGateways;
|
73
|
-
paypal_payments: api.PaypalPayments;
|
74
|
-
percentage_discount_promotions: api.PercentageDiscountPromotions;
|
75
|
-
price_lists: api.PriceLists;
|
76
|
-
prices: api.Prices;
|
77
|
-
promotion_rules: api.PromotionRules;
|
78
|
-
promotions: api.Promotions;
|
79
|
-
refunds: api.Refunds;
|
80
|
-
return_line_items: api.ReturnLineItems;
|
81
|
-
returns: api.Returns;
|
82
|
-
shipments: api.Shipments;
|
83
|
-
shipping_categories: api.ShippingCategories;
|
84
|
-
shipping_methods: api.ShippingMethods;
|
85
|
-
shipping_zones: api.ShippingZones;
|
86
|
-
sku_list_items: api.SkuListItems;
|
87
|
-
sku_list_promotion_rules: api.SkuListPromotionRules;
|
88
|
-
sku_lists: api.SkuLists;
|
89
|
-
sku_options: api.SkuOptions;
|
90
|
-
skus: api.Skus;
|
91
|
-
stock_items: api.StockItems;
|
92
|
-
stock_line_items: api.StockLineItems;
|
93
|
-
stock_locations: api.StockLocations;
|
94
|
-
stock_transfers: api.StockTransfers;
|
95
|
-
stripe_gateways: api.StripeGateways;
|
96
|
-
stripe_payments: api.StripePayments;
|
97
|
-
tax_calculators: api.TaxCalculators;
|
98
|
-
tax_categories: api.TaxCategories;
|
99
|
-
tax_rules: api.TaxRules;
|
100
|
-
taxjar_accounts: api.TaxjarAccounts;
|
101
|
-
transactions: api.Transactions;
|
102
|
-
voids: api.Voids;
|
103
|
-
webhooks: api.Webhooks;
|
104
|
-
wire_transfers: api.WireTransfers;
|
105
|
-
constructor(config: CommerceLayerInitConfig);
|
106
|
-
get currentOrganization(): string;
|
107
|
-
config(config: CommerceLayerConfig): void;
|
108
|
-
resources(): readonly string[];
|
109
|
-
isApiError(error: any): error is ApiError;
|
110
|
-
addRequestInterceptor(onFulfilled?: RequestInterceptor, onRejected?: ErrorInterceptor): number;
|
111
|
-
addResponseInterceptor(onFulfilled?: ResponseInterceptor, onRejected?: ErrorInterceptor): number;
|
112
|
-
removeInterceptor(type: InterceptorType, id: number): void;
|
113
|
-
addRawResponseReader(): RawResponseReader;
|
114
|
-
removeRawResponseReader(reader: number | RawResponseReader): void;
|
115
|
-
}
|
116
|
-
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
117
|
-
export default CommerceLayer;
|
118
|
-
export type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig };
|
1
|
+
import * as api from './api';
|
2
|
+
import { ApiError } from './error';
|
3
|
+
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
|
+
import { ResourcesConfig, ResourcesInitConfig } from './resource';
|
5
|
+
declare type SdkConfig = {};
|
6
|
+
declare type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
7
|
+
declare type CommerceLayerConfig = SdkConfig & ResourcesConfig;
|
8
|
+
declare class CommerceLayerClient {
|
9
|
+
#private;
|
10
|
+
addresses: api.Addresses;
|
11
|
+
adjustments: api.Adjustments;
|
12
|
+
adyen_gateways: api.AdyenGateways;
|
13
|
+
adyen_payments: api.AdyenPayments;
|
14
|
+
application: api.Applications;
|
15
|
+
attachments: api.Attachments;
|
16
|
+
authorizations: api.Authorizations;
|
17
|
+
avalara_accounts: api.AvalaraAccounts;
|
18
|
+
billing_info_validation_rules: api.BillingInfoValidationRules;
|
19
|
+
bing_geocoders: api.BingGeocoders;
|
20
|
+
braintree_gateways: api.BraintreeGateways;
|
21
|
+
braintree_payments: api.BraintreePayments;
|
22
|
+
bundles: api.Bundles;
|
23
|
+
captures: api.Captures;
|
24
|
+
carrier_accounts: api.CarrierAccounts;
|
25
|
+
checkout_com_gateways: api.CheckoutComGateways;
|
26
|
+
checkout_com_payments: api.CheckoutComPayments;
|
27
|
+
coupon_codes_promotion_rules: api.CouponCodesPromotionRules;
|
28
|
+
coupon_recipients: api.CouponRecipients;
|
29
|
+
coupons: api.Coupons;
|
30
|
+
customer_addresses: api.CustomerAddresses;
|
31
|
+
customer_groups: api.CustomerGroups;
|
32
|
+
customer_password_resets: api.CustomerPasswordResets;
|
33
|
+
customer_payment_sources: api.CustomerPaymentSources;
|
34
|
+
customer_subscriptions: api.CustomerSubscriptions;
|
35
|
+
customers: api.Customers;
|
36
|
+
delivery_lead_times: api.DeliveryLeadTimes;
|
37
|
+
event_callbacks: api.EventCallbacks;
|
38
|
+
external_gateways: api.ExternalGateways;
|
39
|
+
external_payments: api.ExternalPayments;
|
40
|
+
external_promotions: api.ExternalPromotions;
|
41
|
+
external_tax_calculators: api.ExternalTaxCalculators;
|
42
|
+
fixed_amount_promotions: api.FixedAmountPromotions;
|
43
|
+
fixed_price_promotions: api.FixedPricePromotions;
|
44
|
+
free_gift_promotions: api.FreeGiftPromotions;
|
45
|
+
free_shipping_promotions: api.FreeShippingPromotions;
|
46
|
+
geocoders: api.Geocoders;
|
47
|
+
gift_card_recipients: api.GiftCardRecipients;
|
48
|
+
gift_cards: api.GiftCards;
|
49
|
+
google_geocoders: api.GoogleGeocoders;
|
50
|
+
imports: api.Imports;
|
51
|
+
in_stock_subscriptions: api.InStockSubscriptions;
|
52
|
+
inventory_models: api.InventoryModels;
|
53
|
+
inventory_return_locations: api.InventoryReturnLocations;
|
54
|
+
inventory_stock_locations: api.InventoryStockLocations;
|
55
|
+
line_item_options: api.LineItemOptions;
|
56
|
+
line_items: api.LineItems;
|
57
|
+
manual_gateways: api.ManualGateways;
|
58
|
+
manual_tax_calculators: api.ManualTaxCalculators;
|
59
|
+
markets: api.Markets;
|
60
|
+
merchants: api.Merchants;
|
61
|
+
order_amount_promotion_rules: api.OrderAmountPromotionRules;
|
62
|
+
order_copies: api.OrderCopies;
|
63
|
+
order_subscriptions: api.OrderSubscriptions;
|
64
|
+
order_validation_rules: api.OrderValidationRules;
|
65
|
+
orders: api.Orders;
|
66
|
+
organization: api.Organizations;
|
67
|
+
packages: api.Packages;
|
68
|
+
parcel_line_items: api.ParcelLineItems;
|
69
|
+
parcels: api.Parcels;
|
70
|
+
payment_gateways: api.PaymentGateways;
|
71
|
+
payment_methods: api.PaymentMethods;
|
72
|
+
paypal_gateways: api.PaypalGateways;
|
73
|
+
paypal_payments: api.PaypalPayments;
|
74
|
+
percentage_discount_promotions: api.PercentageDiscountPromotions;
|
75
|
+
price_lists: api.PriceLists;
|
76
|
+
prices: api.Prices;
|
77
|
+
promotion_rules: api.PromotionRules;
|
78
|
+
promotions: api.Promotions;
|
79
|
+
refunds: api.Refunds;
|
80
|
+
return_line_items: api.ReturnLineItems;
|
81
|
+
returns: api.Returns;
|
82
|
+
shipments: api.Shipments;
|
83
|
+
shipping_categories: api.ShippingCategories;
|
84
|
+
shipping_methods: api.ShippingMethods;
|
85
|
+
shipping_zones: api.ShippingZones;
|
86
|
+
sku_list_items: api.SkuListItems;
|
87
|
+
sku_list_promotion_rules: api.SkuListPromotionRules;
|
88
|
+
sku_lists: api.SkuLists;
|
89
|
+
sku_options: api.SkuOptions;
|
90
|
+
skus: api.Skus;
|
91
|
+
stock_items: api.StockItems;
|
92
|
+
stock_line_items: api.StockLineItems;
|
93
|
+
stock_locations: api.StockLocations;
|
94
|
+
stock_transfers: api.StockTransfers;
|
95
|
+
stripe_gateways: api.StripeGateways;
|
96
|
+
stripe_payments: api.StripePayments;
|
97
|
+
tax_calculators: api.TaxCalculators;
|
98
|
+
tax_categories: api.TaxCategories;
|
99
|
+
tax_rules: api.TaxRules;
|
100
|
+
taxjar_accounts: api.TaxjarAccounts;
|
101
|
+
transactions: api.Transactions;
|
102
|
+
voids: api.Voids;
|
103
|
+
webhooks: api.Webhooks;
|
104
|
+
wire_transfers: api.WireTransfers;
|
105
|
+
constructor(config: CommerceLayerInitConfig);
|
106
|
+
get currentOrganization(): string;
|
107
|
+
config(config: CommerceLayerConfig): void;
|
108
|
+
resources(): readonly string[];
|
109
|
+
isApiError(error: any): error is ApiError;
|
110
|
+
addRequestInterceptor(onFulfilled?: RequestInterceptor, onRejected?: ErrorInterceptor): number;
|
111
|
+
addResponseInterceptor(onFulfilled?: ResponseInterceptor, onRejected?: ErrorInterceptor): number;
|
112
|
+
removeInterceptor(type: InterceptorType, id: number): void;
|
113
|
+
addRawResponseReader(): RawResponseReader;
|
114
|
+
removeRawResponseReader(reader: number | RawResponseReader): void;
|
115
|
+
}
|
116
|
+
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
117
|
+
export default CommerceLayer;
|
118
|
+
export type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig };
|
@@ -0,0 +1,201 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
22
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
23
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
24
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
25
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
26
|
+
};
|
27
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
28
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
29
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
30
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
31
|
+
};
|
32
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
33
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
34
|
+
};
|
35
|
+
var _CommerceLayerClient_adapter, _CommerceLayerClient_organization;
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
37
|
+
const api = __importStar(require("./api"));
|
38
|
+
// import QueryBuilder, { QueryBuilderRetrieve, QueryBuilderList } from './query'
|
39
|
+
const static_1 = require("./static");
|
40
|
+
const resource_1 = __importDefault(require("./resource"));
|
41
|
+
class CommerceLayerClient {
|
42
|
+
// ##__CL_RESOURCES_DEF_STOP__##
|
43
|
+
constructor(config) {
|
44
|
+
_CommerceLayerClient_adapter.set(this, void 0);
|
45
|
+
_CommerceLayerClient_organization.set(this, void 0);
|
46
|
+
__classPrivateFieldSet(this, _CommerceLayerClient_adapter, new resource_1.default(config), "f");
|
47
|
+
__classPrivateFieldSet(this, _CommerceLayerClient_organization, config.organization, "f");
|
48
|
+
// ##__CL_RESOURCES_INIT_START__##
|
49
|
+
// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)
|
50
|
+
this.addresses = new api.Addresses(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
51
|
+
this.adjustments = new api.Adjustments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
52
|
+
this.adyen_gateways = new api.AdyenGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
53
|
+
this.adyen_payments = new api.AdyenPayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
54
|
+
this.application = new api.Applications(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
55
|
+
this.attachments = new api.Attachments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
56
|
+
this.authorizations = new api.Authorizations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
57
|
+
this.avalara_accounts = new api.AvalaraAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
58
|
+
this.billing_info_validation_rules = new api.BillingInfoValidationRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
59
|
+
this.bing_geocoders = new api.BingGeocoders(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
60
|
+
this.braintree_gateways = new api.BraintreeGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
61
|
+
this.braintree_payments = new api.BraintreePayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
62
|
+
this.bundles = new api.Bundles(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
63
|
+
this.captures = new api.Captures(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
64
|
+
this.carrier_accounts = new api.CarrierAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
65
|
+
this.checkout_com_gateways = new api.CheckoutComGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
66
|
+
this.checkout_com_payments = new api.CheckoutComPayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
67
|
+
this.coupon_codes_promotion_rules = new api.CouponCodesPromotionRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
68
|
+
this.coupon_recipients = new api.CouponRecipients(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
69
|
+
this.coupons = new api.Coupons(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
70
|
+
this.customer_addresses = new api.CustomerAddresses(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
71
|
+
this.customer_groups = new api.CustomerGroups(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
72
|
+
this.customer_password_resets = new api.CustomerPasswordResets(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
73
|
+
this.customer_payment_sources = new api.CustomerPaymentSources(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
74
|
+
this.customer_subscriptions = new api.CustomerSubscriptions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
75
|
+
this.customers = new api.Customers(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
76
|
+
this.delivery_lead_times = new api.DeliveryLeadTimes(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
77
|
+
this.event_callbacks = new api.EventCallbacks(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
78
|
+
this.external_gateways = new api.ExternalGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
79
|
+
this.external_payments = new api.ExternalPayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
80
|
+
this.external_promotions = new api.ExternalPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
81
|
+
this.external_tax_calculators = new api.ExternalTaxCalculators(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
82
|
+
this.fixed_amount_promotions = new api.FixedAmountPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
83
|
+
this.fixed_price_promotions = new api.FixedPricePromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
84
|
+
this.free_gift_promotions = new api.FreeGiftPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
85
|
+
this.free_shipping_promotions = new api.FreeShippingPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
86
|
+
this.geocoders = new api.Geocoders(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
87
|
+
this.gift_card_recipients = new api.GiftCardRecipients(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
88
|
+
this.gift_cards = new api.GiftCards(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
89
|
+
this.google_geocoders = new api.GoogleGeocoders(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
90
|
+
this.imports = new api.Imports(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
91
|
+
this.in_stock_subscriptions = new api.InStockSubscriptions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
92
|
+
this.inventory_models = new api.InventoryModels(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
93
|
+
this.inventory_return_locations = new api.InventoryReturnLocations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
94
|
+
this.inventory_stock_locations = new api.InventoryStockLocations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
95
|
+
this.line_item_options = new api.LineItemOptions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
96
|
+
this.line_items = new api.LineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
97
|
+
this.manual_gateways = new api.ManualGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
98
|
+
this.manual_tax_calculators = new api.ManualTaxCalculators(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
99
|
+
this.markets = new api.Markets(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
100
|
+
this.merchants = new api.Merchants(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
101
|
+
this.order_amount_promotion_rules = new api.OrderAmountPromotionRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
102
|
+
this.order_copies = new api.OrderCopies(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
103
|
+
this.order_subscriptions = new api.OrderSubscriptions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
104
|
+
this.order_validation_rules = new api.OrderValidationRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
105
|
+
this.orders = new api.Orders(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
106
|
+
this.organization = new api.Organizations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
107
|
+
this.packages = new api.Packages(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
108
|
+
this.parcel_line_items = new api.ParcelLineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
109
|
+
this.parcels = new api.Parcels(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
110
|
+
this.payment_gateways = new api.PaymentGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
111
|
+
this.payment_methods = new api.PaymentMethods(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
112
|
+
this.paypal_gateways = new api.PaypalGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
113
|
+
this.paypal_payments = new api.PaypalPayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
114
|
+
this.percentage_discount_promotions = new api.PercentageDiscountPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
115
|
+
this.price_lists = new api.PriceLists(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
116
|
+
this.prices = new api.Prices(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
117
|
+
this.promotion_rules = new api.PromotionRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
118
|
+
this.promotions = new api.Promotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
119
|
+
this.refunds = new api.Refunds(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
120
|
+
this.return_line_items = new api.ReturnLineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
121
|
+
this.returns = new api.Returns(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
122
|
+
this.shipments = new api.Shipments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
123
|
+
this.shipping_categories = new api.ShippingCategories(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
124
|
+
this.shipping_methods = new api.ShippingMethods(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
125
|
+
this.shipping_zones = new api.ShippingZones(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
126
|
+
this.sku_list_items = new api.SkuListItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
127
|
+
this.sku_list_promotion_rules = new api.SkuListPromotionRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
128
|
+
this.sku_lists = new api.SkuLists(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
129
|
+
this.sku_options = new api.SkuOptions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
130
|
+
this.skus = new api.Skus(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
131
|
+
this.stock_items = new api.StockItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
132
|
+
this.stock_line_items = new api.StockLineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
133
|
+
this.stock_locations = new api.StockLocations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
134
|
+
this.stock_transfers = new api.StockTransfers(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
135
|
+
this.stripe_gateways = new api.StripeGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
136
|
+
this.stripe_payments = new api.StripePayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
137
|
+
this.tax_calculators = new api.TaxCalculators(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
138
|
+
this.tax_categories = new api.TaxCategories(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
139
|
+
this.tax_rules = new api.TaxRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
140
|
+
this.taxjar_accounts = new api.TaxjarAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
141
|
+
this.transactions = new api.Transactions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
142
|
+
this.voids = new api.Voids(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
143
|
+
this.webhooks = new api.Webhooks(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
144
|
+
this.wire_transfers = new api.WireTransfers(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
145
|
+
// ##__CL_RESOURCES_INIT_STOP__##
|
146
|
+
}
|
147
|
+
get currentOrganization() { return __classPrivateFieldGet(this, _CommerceLayerClient_organization, "f"); }
|
148
|
+
config(config) {
|
149
|
+
if (!config)
|
150
|
+
return;
|
151
|
+
// CommerceLayer config
|
152
|
+
if (config.organization)
|
153
|
+
__classPrivateFieldSet(this, _CommerceLayerClient_organization, config.organization, "f");
|
154
|
+
// ResourceAdapter config
|
155
|
+
__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f").config(config);
|
156
|
+
}
|
157
|
+
/*
|
158
|
+
queryBuilder(resource: string): QueryBuilderRetrieve {
|
159
|
+
return new QueryBuilder(resource)
|
160
|
+
}
|
161
|
+
*/
|
162
|
+
resources() {
|
163
|
+
return static_1.CommerceLayerStatic.resources();
|
164
|
+
}
|
165
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
166
|
+
isApiError(error) {
|
167
|
+
return static_1.CommerceLayerStatic.isApiError(error);
|
168
|
+
}
|
169
|
+
addRequestInterceptor(onFulfilled, onRejected) {
|
170
|
+
return __classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f").interceptors.request.use(onFulfilled, onRejected);
|
171
|
+
}
|
172
|
+
addResponseInterceptor(onFulfilled, onRejected) {
|
173
|
+
return __classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f").interceptors.response.use(onFulfilled, onRejected);
|
174
|
+
}
|
175
|
+
removeInterceptor(type, id) {
|
176
|
+
return __classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f").interceptors[type].eject(id);
|
177
|
+
}
|
178
|
+
addRawResponseReader() {
|
179
|
+
const reader = {
|
180
|
+
id: undefined,
|
181
|
+
rawResponse: undefined,
|
182
|
+
};
|
183
|
+
function rawResponseInterceptor(response) {
|
184
|
+
reader.rawResponse = response === null || response === void 0 ? void 0 : response.data;
|
185
|
+
return response;
|
186
|
+
}
|
187
|
+
const interceptor = this.addResponseInterceptor(rawResponseInterceptor);
|
188
|
+
reader.id = interceptor;
|
189
|
+
return reader;
|
190
|
+
}
|
191
|
+
removeRawResponseReader(reader) {
|
192
|
+
const id = (typeof reader === 'number') ? reader : reader.id;
|
193
|
+
if (id)
|
194
|
+
return this.removeInterceptor('response', id);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
_CommerceLayerClient_adapter = new WeakMap(), _CommerceLayerClient_organization = new WeakMap();
|
198
|
+
const CommerceLayer = (config) => {
|
199
|
+
return new CommerceLayerClient(config);
|
200
|
+
};
|
201
|
+
exports.default = CommerceLayer;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ResourceId, ResourceType } from './resource';
|
2
|
-
declare const isResourceId: (resource: any) => resource is ResourceId;
|
3
|
-
declare const isResourceType: (resource: any) => resource is ResourceType;
|
4
|
-
export { isResourceId, isResourceType };
|
1
|
+
import type { ResourceId, ResourceType } from './resource';
|
2
|
+
declare const isResourceId: (resource: any) => resource is ResourceId;
|
3
|
+
declare const isResourceType: (resource: any) => resource is ResourceType;
|
4
|
+
export { isResourceId, isResourceType };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
|
+
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
+
exports.isResourceType = exports.isResourceId = void 0;
|
6
|
+
const isResourceId = (resource) => {
|
7
|
+
return (resource && resource.type && resource.id);
|
8
|
+
};
|
9
|
+
exports.isResourceId = isResourceId;
|
10
|
+
const isResourceType = (resource) => {
|
11
|
+
return resource && (typeof resource.type !== 'undefined') && resource.type;
|
12
|
+
};
|
13
|
+
exports.isResourceType = isResourceType;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
declare const config: {
|
2
|
-
default: {
|
3
|
-
pageNumber: number;
|
4
|
-
pageSize: number;
|
5
|
-
};
|
6
|
-
};
|
7
|
-
export default config;
|
1
|
+
declare const config: {
|
2
|
+
default: {
|
3
|
+
pageNumber: number;
|
4
|
+
pageSize: number;
|
5
|
+
};
|
6
|
+
};
|
7
|
+
export default config;
|
@@ -1,26 +1,26 @@
|
|
1
|
-
declare enum ErrorType {
|
2
|
-
CLIENT = "client",
|
3
|
-
REQUEST = "request",
|
4
|
-
RESPONSE = "response",
|
5
|
-
GENERIC = "generic",
|
6
|
-
CANCEL = "cancel"
|
7
|
-
}
|
8
|
-
declare class SdkError extends Error {
|
9
|
-
static isSdkError(error: any): error is ApiError;
|
10
|
-
type: string;
|
11
|
-
code?: string;
|
12
|
-
source?: Error;
|
13
|
-
request?: any;
|
14
|
-
constructor(error: {
|
15
|
-
message: string;
|
16
|
-
type?: ErrorType;
|
17
|
-
});
|
18
|
-
}
|
19
|
-
declare class ApiError extends SdkError {
|
20
|
-
static isApiError(error: any): error is ApiError;
|
21
|
-
errors: any[];
|
22
|
-
status?: number;
|
23
|
-
constructor(error: SdkError);
|
24
|
-
first(): any;
|
25
|
-
}
|
26
|
-
export { SdkError, ApiError, ErrorType };
|
1
|
+
declare enum ErrorType {
|
2
|
+
CLIENT = "client",
|
3
|
+
REQUEST = "request",
|
4
|
+
RESPONSE = "response",
|
5
|
+
GENERIC = "generic",
|
6
|
+
CANCEL = "cancel"
|
7
|
+
}
|
8
|
+
declare class SdkError extends Error {
|
9
|
+
static isSdkError(error: any): error is ApiError;
|
10
|
+
type: string;
|
11
|
+
code?: string;
|
12
|
+
source?: Error;
|
13
|
+
request?: any;
|
14
|
+
constructor(error: {
|
15
|
+
message: string;
|
16
|
+
type?: ErrorType;
|
17
|
+
});
|
18
|
+
}
|
19
|
+
declare class ApiError extends SdkError {
|
20
|
+
static isApiError(error: any): error is ApiError;
|
21
|
+
errors: any[];
|
22
|
+
status?: number;
|
23
|
+
constructor(error: SdkError);
|
24
|
+
first(): any;
|
25
|
+
}
|
26
|
+
export { SdkError, ApiError, ErrorType };
|
package/lib/cjs/error.js
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.ErrorType = exports.ApiError = exports.SdkError = void 0;
|
5
|
+
var ErrorType;
|
6
|
+
(function (ErrorType) {
|
7
|
+
ErrorType["CLIENT"] = "client";
|
8
|
+
ErrorType["REQUEST"] = "request";
|
9
|
+
ErrorType["RESPONSE"] = "response";
|
10
|
+
ErrorType["GENERIC"] = "generic";
|
11
|
+
ErrorType["CANCEL"] = "cancel";
|
12
|
+
})(ErrorType || (ErrorType = {}));
|
13
|
+
exports.ErrorType = ErrorType;
|
14
|
+
class SdkError extends Error {
|
15
|
+
constructor(error) {
|
16
|
+
super(error.message);
|
17
|
+
this.name = this.constructor.name;
|
18
|
+
this.type = error.type || ErrorType.GENERIC;
|
19
|
+
}
|
20
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
21
|
+
static isSdkError(error) {
|
22
|
+
return error && ['SdkError', 'ApiError'].includes(error.name) && Object.values(ErrorType).includes(error.type);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
exports.SdkError = SdkError;
|
26
|
+
class ApiError extends SdkError {
|
27
|
+
constructor(error) {
|
28
|
+
super(Object.assign(Object.assign({}, error), { type: ErrorType.RESPONSE }));
|
29
|
+
this.errors = [];
|
30
|
+
this.name = this.constructor.name;
|
31
|
+
}
|
32
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
33
|
+
static isApiError(error) {
|
34
|
+
return SdkError.isSdkError(error) && (error.name === 'ApiError') && (error.type === ErrorType.RESPONSE);
|
35
|
+
}
|
36
|
+
first() {
|
37
|
+
return (this.errors.length > 0) ? this.errors[0] : undefined;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
exports.ApiError = ApiError;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export { default } from './commercelayer';
|
2
|
-
export type { CommerceLayerClient } from './commercelayer';
|
3
|
-
export { CommerceLayerStatic } from './static';
|
4
|
-
export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query';
|
5
|
-
export * from './model';
|
6
|
-
export type { RequestObj, ResponseObj, ErrorObj } from './interceptor';
|
1
|
+
export { default } from './commercelayer';
|
2
|
+
export type { CommerceLayerClient } from './commercelayer';
|
3
|
+
export { CommerceLayerStatic } from './static';
|
4
|
+
export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query';
|
5
|
+
export * from './model';
|
6
|
+
export type { RequestObj, ResponseObj, ErrorObj } from './interceptor';
|
package/lib/cjs/index.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
+
};
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
14
|
+
};
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.CommerceLayerStatic = exports.default = void 0;
|
17
|
+
// SDK
|
18
|
+
var commercelayer_1 = require("./commercelayer");
|
19
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(commercelayer_1).default; } });
|
20
|
+
// Commerce Layer static functions
|
21
|
+
var static_1 = require("./static");
|
22
|
+
Object.defineProperty(exports, "CommerceLayerStatic", { enumerable: true, get: function () { return static_1.CommerceLayerStatic; } });
|
23
|
+
// Resource model types
|
24
|
+
__exportStar(require("./model"), exports);
|