@commercelayer/sdk 7.1.0 → 7.2.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/lib/{api-DIJqRuGh.d.ts → api-LDVr5RYG.d.ts} +25 -0
- package/lib/{api-BljuENr-.d.cts → api-egU4nY4x.d.cts} +25 -0
- package/lib/api.cjs +4 -4
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +2 -2
- package/lib/bundle.cjs +6 -6
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +3 -3
- package/lib/{chunk-G2OYFKP2.cjs → chunk-4IOIA2JQ.cjs} +5 -2
- package/lib/chunk-4IOIA2JQ.cjs.map +1 -0
- package/lib/{chunk-MT3V3H5R.cjs → chunk-7NKYU3IT.cjs} +4 -4
- package/lib/{chunk-MT3V3H5R.cjs.map → chunk-7NKYU3IT.cjs.map} +1 -1
- package/lib/{chunk-D7A27LT5.js → chunk-CB4HWBPX.js} +3 -3
- package/lib/{chunk-D7A27LT5.js.map → chunk-CB4HWBPX.js.map} +1 -1
- package/lib/{chunk-JVQVN3JM.js → chunk-NQHQV4PY.js} +2 -2
- package/lib/chunk-NQHQV4PY.js.map +1 -0
- package/lib/{chunk-CRPD5Q5Y.js → chunk-NTAREPLJ.js} +5 -2
- package/lib/chunk-NTAREPLJ.js.map +1 -0
- package/lib/{chunk-L2QR7VHD.js → chunk-PXJFGL6U.js} +3 -3
- package/lib/{chunk-L2QR7VHD.js.map → chunk-PXJFGL6U.js.map} +1 -1
- package/lib/{chunk-RVECNXMX.cjs → chunk-TN2MXFJV.cjs} +3 -3
- package/lib/{chunk-RVECNXMX.cjs.map → chunk-TN2MXFJV.cjs.map} +1 -1
- package/lib/{chunk-AB7QWMMM.cjs → chunk-YPGYBULL.cjs} +2 -2
- package/lib/chunk-YPGYBULL.cjs.map +1 -0
- package/lib/commercelayer.cjs +5 -5
- package/lib/commercelayer.d.cts +3 -3
- package/lib/commercelayer.d.ts +3 -3
- package/lib/commercelayer.js +1 -1
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +9 -9
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -4
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_items.cjs +2 -2
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +1 -1
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/organizations.cjs +2 -2
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +1 -1
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/static.cjs +3 -3
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +2 -2
- package/package.json +5 -6
- package/lib/chunk-AB7QWMMM.cjs.map +0 -1
- package/lib/chunk-CRPD5Q5Y.js.map +0 -1
- package/lib/chunk-G2OYFKP2.cjs.map +0 -1
- package/lib/chunk-JVQVN3JM.js.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/organizations.ts"],"names":[],"mappings":";;;AAmSA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,YAAA,CAA2B;AAAA,EAEtD,OAAgB,IAAA,GAAyB,eAAA;AAAA,EAEzC,MAAM,YAAA,CAAa,cAAA,EAAuC,MAAA,EAAsC,OAAA,EAA8D;AAC7J,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAM,cAAA;AAC/D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,aAAA,EAAgB,eAAe,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClI;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,cAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,qBAAA,GAAQ","file":"chunk-NQHQV4PY.js","sourcesContent":["import { ApiSingleton } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { EventStore } from './event_stores'\n\n\ntype OrganizationType = 'organizations'\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\n\n\nexport type OrganizationSort = Pick<Organization, 'id'> & ResourceSort\n// export type OrganizationFilter = Pick<Organization, 'id'> & ResourceFilter\n\n\ninterface Organization extends Resource {\n\t\n\treadonly type: OrganizationType\n\n\t/** \n\t * The organization's internal name.\n\t * @example ```\"The Blue Brand\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The organization's slug name.\n\t * @example ```\"the-blue-brand\"```\n\t */\n\tslug?: string | null\n\t/** \n\t * The organization's domain.\n\t * @example ```\"the-blue-brand.commercelayer.io\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The organization's support phone.\n\t * @example ```\"+01 30800857\"```\n\t */\n\tsupport_phone?: string | null\n\t/** \n\t * The organization's support email.\n\t * @example ```\"support@bluebrand.com\"```\n\t */\n\tsupport_email?: string | null\n\t/** \n\t * The URL to the organization's logo.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tlogo_url?: string | null\n\t/** \n\t * The URL to the organization's favicon.\n\t * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n\t */\n\tfavicon_url?: string | null\n\t/** \n\t * The organization's primary color.\n\t * @example ```\"#C8984E\"```\n\t */\n\tprimary_color?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID.\n\t * @example ```\"GTM-5FJXX6\"```\n\t */\n\tgtm_id?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID for test.\n\t * @example ```\"GTM-5FJXX7\"```\n\t */\n\tgtm_id_test?: string | null\n\t/** \n\t * The organization's configuration.\n\t * @example ```{\"mfe\":{\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:accessToken\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:lang/:orderId\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}}}```\n\t */\n\tconfig?: Record<string, any> | null\n\t/** \n\t * Enables the redirect on the new Auth API.\n\t * @example ```true```\n\t */\n\tapi_auth_redirect?: boolean | null\n\t/** \n\t * Enables the rules engine for flex promotions and price list rules.\n\t */\n\tapi_rules_engine?: boolean | null\n\t/** \n\t * The fallback maximum number of conditions within a rules payload on a ruleable object, default is 150.\n\t * @example ```150```\n\t */\n\tapi_rules_engine_max_conditions_size?: number | null\n\t/** \n\t * The fallback maximum number of rules within a rules payload on a ruleable object, default is 15.\n\t * @example ```15```\n\t */\n\tapi_rules_engine_max_rules_size?: number | null\n\t/** \n\t * Forces the usage of the new Authentication API.\n\t * @example ```true```\n\t */\n\tapi_new_auth?: boolean | null\n\t/** \n\t * Enables the purge of cached single resources when list is purged.\n\t */\n\tapi_purge_single_resource?: boolean | null\n\t/** \n\t * The maximum length for the regular expressions, default is 5000.\n\t * @example ```5000```\n\t */\n\tapi_max_regex_length?: number | null\n\t/** \n\t * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is true.\n\t * @example ```true```\n\t */\n\taddresses_avs_check?: boolean | null\n\t/** \n\t * Indicates if the phone attribute is required for addresses, default is true.\n\t * @example ```true```\n\t */\n\taddresses_phone_required?: boolean | null\n\t/** \n\t * Indicates if a sales channel application without customer can read and update just guest orders.\n\t * @example ```true```\n\t */\n\torders_sales_channel_guest_only?: boolean | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done.\n\t */\n\torders_min_rebuild_shipments_lapse?: number | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done.\n\t */\n\torders_min_refresh_lapse?: number | null\n\t/** \n\t * The maximum number line items allowed for a test order before disabling the autorefresh option.\n\t * @example ```50```\n\t */\n\torders_autorefresh_cutoff_test?: number | null\n\t/** \n\t * The maximum number line items allowed for a live order before disabling the autorefresh option.\n\t * @example ```500```\n\t */\n\torders_autorefresh_cutoff_live?: number | null\n\t/** \n\t * Enables orders number editing as a string in test (for enterprise plans only).\n\t */\n\torders_number_editable_test?: boolean | null\n\t/** \n\t * Enables orders number editing as a string in live (for enterprise plans only).\n\t */\n\torders_number_editable_live?: boolean | null\n\t/** \n\t * Enables to use the order number as payment reference on supported gateways.\n\t * @example ```true```\n\t */\n\torders_number_as_reference?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided coupon code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_coupon_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided gift card code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_gift_card_errors?: boolean | null\n\t/** \n\t * Enables the validation of the generated stock line items and stock transfers before placing the order, default is false.\n\t */\n\torders_validate_shipping_stock?: boolean | null\n\t/** \n\t * The maximum number of SKUs allowed for bundles, default is 10.\n\t * @example ```10```\n\t */\n\tbundles_max_items_count?: number | null\n\t/** \n\t * The minimum length for coupon code, default is 8.\n\t * @example ```8```\n\t */\n\tcoupons_min_code_length?: number | null\n\t/** \n\t * The maximum length for coupon code, default is 40.\n\t * @example ```40```\n\t */\n\tcoupons_max_code_length?: number | null\n\t/** \n\t * Enables matching the gift card code by its exact value, instead of by its first charachters, default is false.\n\t */\n\tgift_cards_exact_code_matching?: boolean | null\n\t/** \n\t * The minimum length for gift card code, default is 8.\n\t * @example ```8```\n\t */\n\tgift_cards_min_code_length?: number | null\n\t/** \n\t * The maximum length for gift card code, default is 40.\n\t * @example ```40```\n\t */\n\tgift_cards_max_code_length?: number | null\n\t/** \n\t * The maximum number of concurrent cleanups allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tcleanups_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent exports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\texports_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent imports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\timports_max_concurrent_count?: number | null\n\t/** \n\t * Enables purging of cached resources upon succeeded imports.\n\t * @example ```true```\n\t */\n\timports_purge_cache?: boolean | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.\n\t */\n\timports_skip_errors?: boolean | null\n\t/** \n\t * The maximum number for stock locations cutoff, default is 10.\n\t * @example ```10```\n\t */\n\tinventory_models_max_stock_locations_cutoff?: number | null\n\t/** \n\t * The maximum number of active concurrent promotions allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tpromotions_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a promotion object, default is 150.\n\t * @example ```150```\n\t */\n\tpromotions_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a promotion object, default is 15.\n\t * @example ```15```\n\t */\n\tpromotions_max_rules_size?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a price list object, default is 150.\n\t * @example ```150```\n\t */\n\tprice_lists_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a price list object, default is 15.\n\t * @example ```15```\n\t */\n\tprice_lists_max_rules_size?: number | null\n\t/** \n\t * Enables triggering of webhooks during imports, default is false.\n\t */\n\timports_trigger_webhooks?: number | null\n\t/** \n\t * Enables the use of an external discount engine in place of the standard one, default is false.\n\t */\n\tdiscount_engines_enabled?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of discount engine failure, default is false.\n\t */\n\tdiscount_engines_errors?: boolean | null\n\t/** \n\t * The maximum length for the tag name, default is 25.\n\t * @example ```25```\n\t */\n\ttags_max_name_length?: number | null\n\t/** \n\t * The maximum allowed number of tags for each resource, default is 10.\n\t * @example ```10```\n\t */\n\ttags_max_allowed_number?: number | null\n\t/** \n\t * Enables raising of API errors in case of tax calculation failure, default is false.\n\t */\n\ttax_calculators_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external promotion failure, default is false.\n\t */\n\texternal_promotions_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external price failure, default is true.\n\t * @example ```true```\n\t */\n\texternal_prices_errors?: boolean | null\n\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Organizations extends ApiSingleton<Organization> {\n\n\tstatic readonly TYPE: OrganizationType = 'organizations' as const\n\n\tasync event_stores(organizationId: string | Organization, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _organizationId = (organizationId as Organization).id || organizationId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `organization/${_organizationId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrganization(resource: any): resource is Organization {\n\t\treturn resource.type && (resource.type === Organizations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrganizationRel {\n\t\treturn super.relationshipOneToOne<OrganizationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrganizationRel[] {\n\t\treturn super.relationshipOneToMany<OrganizationRel>(...ids)\n\t}\n\n\n\ttype(): OrganizationType {\n\t\treturn Organizations.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'organization'\n\t}\n\n}\n\n\nconst instance = new Organizations()\nexport default instance\n\nexport type { Organizations, Organization, OrganizationType }\n"]}
|
@@ -58,6 +58,9 @@ var LineItems = class _LineItems extends ApiResource {
|
|
58
58
|
async _reserve_stock(id, params, options) {
|
59
59
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reserve_stock: true }, params, options);
|
60
60
|
}
|
61
|
+
async _reset_restocked_quantity(id, params, options) {
|
62
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_restocked_quantity: true }, params, options);
|
63
|
+
}
|
61
64
|
async _reset_circuit(id, params, options) {
|
62
65
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_circuit: true }, params, options);
|
63
66
|
}
|
@@ -84,5 +87,5 @@ var instance = new LineItems();
|
|
84
87
|
var line_items_default = instance;
|
85
88
|
|
86
89
|
export { line_items_default };
|
87
|
-
//# sourceMappingURL=chunk-
|
88
|
-
//# sourceMappingURL=chunk-
|
90
|
+
//# sourceMappingURL=chunk-NTAREPLJ.js.map
|
91
|
+
//# sourceMappingURL=chunk-NTAREPLJ.js.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unk-NTAREPLJ.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order, OrderType } from './orders'\nimport type { LineItemOption } from './line_item_options'\nimport type { ReturnLineItem } from './return_line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Notification } from './notifications'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { EventStore } from './event_stores'\nimport type { Sku, SkuType } from './skus'\nimport type { Bundle, BundleType } from './bundles'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { Adjustment, AdjustmentType } from './adjustments'\nimport type { DiscountEngineItem, DiscountEngineItemType } from './discount_engine_items'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\n\n\ntype LineItemType = 'line_items'\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\ntype DiscountEngineItemRel = ResourceRel & { type: DiscountEngineItemType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemSort = Pick<LineItem, 'id' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type LineItemFilter = Pick<LineItem, 'id' | 'sku_code' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'image_url' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface LineItem extends Resource {\n\t\n\treadonly type: LineItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```100```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The compared price amount, float.\n\t * @example ```130```\n\t */\n\tcompare_at_amount_float?: number | null\n\t/** \n\t * The compared price amount, formatted.\n\t * @example ```\"€130,00\"```\n\t */\n\tformatted_compare_at_amount?: string | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, float.\n\t * @example ```10```\n\t */\n\toptions_amount_float?: number | null\n\t/** \n\t * The options amount of the line item, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_options_amount?: string | null\n\t/** \n\t * The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```-1000```\n\t */\n\tdiscount_cents?: number | null\n\t/** \n\t * The discount applied to the line item, float. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```10```\n\t */\n\tdiscount_float?: number | null\n\t/** \n\t * The discount applied to the line item, fromatted. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_discount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity + options amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, in cents.\n\t * @example ```1880```\n\t */\n\ttax_amount_cents?: number | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, float.\n\t * @example ```18.8```\n\t */\n\ttax_amount_float: number\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, formatted.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_tax_amount?: string | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The discount breakdown for this line item (if calculated).\n\t * @example ```{\"41\":{\"name\":\"10% ALL\",\"cents\":-900,\"weight\":0.416,\"coupon_code\":\"XXXXXXXX\"}}```\n\t */\n\tdiscount_breakdown?: Record<string, any> | null\n\t/** \n\t * The tax rate for this line item (if calculated).\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * The tax breakdown for this line item (if calculated).\n\t * @example ```{\"id\":\"1234\",\"city_amount\":\"0.0\",\"state_amount\":6.6,\"city_tax_rate\":0,\"county_amount\":2.78,\"taxable_amount\":139,\"county_tax_rate\":0.02,\"tax_collectable\":10.08,\"special_tax_rate\":0.005,\"combined_tax_rate\":0.0725,\"city_taxable_amount\":0,\"state_sales_tax_rate\":0.0475,\"state_taxable_amount\":139,\"county_taxable_amount\":139,\"special_district_amount\":0.7,\"special_district_taxable_amount\":139}```\n\t */\n\ttax_breakdown?: Record<string, any> | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The rule outcomes.\n\t * @example ```[]```\n\t */\n\trule_outcomes?: Record<string, any> | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\n\torder?: Order | null\n\titem?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | DiscountEngineItem | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tgift_card?: GiftCard | null\n\tshipment?: Shipment | null\n\tpayment_method?: PaymentMethod | null\n\tline_item_options?: LineItemOption[] | null\n\treturn_line_items?: ReturnLineItem[] | null\n\tstock_reservations?: StockReservation[] | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tnotifications?: Notification[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LineItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU.\n\t * @example ```true```\n\t */\n\t_update_quantity?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_restocked_quantity?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\n\torder: OrderRel\n\titem?: SkuRel | BundleRel | GiftCardRel | ShipmentRel | PaymentMethodRel | AdjustmentRel | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_restocked_quantity?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItems extends ApiResource<LineItem> {\n\n\tstatic readonly TYPE: LineItemType = 'line_items' as const\n\n\tasync create(resource: LineItemCreate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.create<LineItemCreate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemUpdate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: LineItems.TYPE } : id, options)\n\t}\n\n\tasync order(lineItemId: string | LineItem, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `line_items/${_lineItemId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync line_item_options(lineItemId: string | LineItem, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<LineItemOption>({ type: 'line_item_options' }, `line_items/${_lineItemId}/line_item_options`, params, options) as unknown as ListResponse<LineItemOption>\n\t}\n\n\tasync return_line_items(lineItemId: string | LineItem, params?: QueryParamsList<ReturnLineItem>, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<ReturnLineItem>({ type: 'return_line_items' }, `line_items/${_lineItemId}/return_line_items`, params, options) as unknown as ListResponse<ReturnLineItem>\n\t}\n\n\tasync stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `line_items/${_lineItemId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `line_items/${_lineItemId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `line_items/${_lineItemId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync notifications(lineItemId: string | LineItem, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `line_items/${_lineItemId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync events(lineItemId: string | LineItem, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_items/${_lineItemId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemId: string | LineItem, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_items/${_lineItemId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(lineItemId: string | LineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `line_items/${_lineItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _external_price: true }, params, options)\n\t}\n\n\tasync _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _reset_restocked_quantity(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_restocked_quantity: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItem(resource: any): resource is LineItem {\n\t\treturn resource.type && (resource.type === LineItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemRel {\n\t\treturn super.relationshipOneToOne<LineItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemRel[] {\n\t\treturn super.relationshipOneToMany<LineItemRel>(...ids)\n\t}\n\n\n\ttype(): LineItemType {\n\t\treturn LineItems.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItems()\nexport default instance\n\nexport type { LineItems, LineItem, LineItemCreate, LineItemUpdate, LineItemType }\n"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OPEN_API_SCHEMA_VERSION } from './chunk-
|
1
|
+
import { OPEN_API_SCHEMA_VERSION } from './chunk-CB4HWBPX.js';
|
2
2
|
import { isTokenExpired } from './chunk-R2LRLUUY.js';
|
3
3
|
import { isVersionable, isTaggable, isDeletable, isUpdatable, isCreatable, isSingleton, getSingletons, getResources } from './chunk-4MDMKEMH.js';
|
4
4
|
import { isApiError, isSdkError } from './chunk-ZU7GFVQ6.js';
|
@@ -44,5 +44,5 @@ var CommerceLayerStatic = {
|
|
44
44
|
};
|
45
45
|
|
46
46
|
export { CommerceLayerStatic };
|
47
|
-
//# sourceMappingURL=chunk-
|
48
|
-
//# sourceMappingURL=chunk-
|
47
|
+
//# sourceMappingURL=chunk-PXJFGL6U.js.map
|
48
|
+
//# sourceMappingURL=chunk-PXJFGL6U.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/static.ts"],"names":[],"mappings":";;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAO,aAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAO,cAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAO,WAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,aAAA,EAAe,CAAC,QAAA,KAAwC;AACvD,IAAA,OAAO,cAAc,QAAQ,CAAA;AAAA,EAC9B,CAAA;AAAA,EAEA,UAAA,E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AAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAO,eAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAO,uBAAA;AAAA,EAAwB;AAE9D","file":"chunk-PXJFGL6U.js","sourcesContent":["\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable } from './enum'\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport { type SdkError, type ApiError, isSdkError, isApiError} from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisVersionable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isVersionable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
|
@@ -7,7 +7,7 @@ var chunkJVF5KY2J_cjs = require('./chunk-JVF5KY2J.cjs');
|
|
7
7
|
|
8
8
|
// src/commercelayer.ts
|
9
9
|
var debug = chunkJVF5KY2J_cjs.debug_default("commercelayer");
|
10
|
-
var OPEN_API_SCHEMA_VERSION = "7.9.
|
10
|
+
var OPEN_API_SCHEMA_VERSION = "7.9.8";
|
11
11
|
var CommerceLayerClient = class _CommerceLayerClient {
|
12
12
|
openApiSchemaVersion = OPEN_API_SCHEMA_VERSION;
|
13
13
|
static cl;
|
@@ -103,5 +103,5 @@ exports.CommerceLayer = CommerceLayer;
|
|
103
103
|
exports.CommerceLayerClient = CommerceLayerClient;
|
104
104
|
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION;
|
105
105
|
exports.commercelayer_default = commercelayer_default;
|
106
|
-
//# sourceMappingURL=chunk-
|
107
|
-
//# sourceMappingURL=chunk-
|
106
|
+
//# sourceMappingURL=chunk-TN2MXFJV.cjs.map
|
107
|
+
//# sourceMappingURL=chunk-TN2MXFJV.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;;AASA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAI5B,IAAM,uBAAA,GAA0B;AAavC,IAAM,mBAAA,GAAN,MAAM,oBAAA,CAAoB;AAAA,EAEhB,oBAAA,GAAuB,uBAAA;AAAA,EAEhC,OAAiB,EAAA;AAAA;AAAA;AAAA;AAAA,EAQjB,OAAO,IAAK,MAAA,EAAuD;AAClE,IAAA,IAAI,QAAQ,OAAQ,oBAAA,CAAoB,EAAA,GAAK,IAAI,qBAAoB,MAAM,CAAA;AAA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EAAmD;AAEvE,IAAA,MAAM,MAAA,GAA4B;AAAA,MACjC,EAAA,EAAI,CAAA;AAAA,MACJ,WAAA,EAAa,MAAA;AAAA,MACb,OAAA,EAAS,MAAA;AAAA,MACT,EAAA,EAAI;AAAA,KACL;AAEA,IAAA,eAAe,uBAAuB,QAAA,EAA6C;AAClF,MAAA,MAAA,CAAO,WAAA,GAAc,MAAM,QAAA,EAAU,KAAA,GAAQ,IAAA,EAAK,CAAE,MAAM,MAAM;AAAA,MAAC,CAAC,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAA,CAAS,EAAA;AACrB,MAAA,IAAI,SAAS,OAAA,EAAS;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAA,CAAQ,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAA,KAAQ;AAAE,UAAA,EAAA,CAAG,GAAG,CAAA,GAAI,KAAA;AAAA,QAAM,CAAC,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAA,GAAU,EAAA;AAAA,MAClB;AACA,MAAA,OAAO,QAAA;AAAA,IACR;AAEyB,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,EAAE,SAAA,EAAW,sBAAA,EAAwB,WAAW,sBAAA,EAAuB;AAC9H,IAAA,MAAA,CAAO,EAAA,GAAK,CAAA;AAEZ,IAAA,OAAO,MAAA;AAAA,EAER;AAAA,EAEA,uBAAA,GAAwE;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,MAAA;AAAA,EAC/B;AAED;AAIA,IAAM,aAAA,GAAgB,CAAC,MAAA,KAAyD;AAC/E,EAAA,OAAO,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAA,GAAQ","file":"chunk-TN2MXFJV.cjs","sourcesContent":["\n// import * as api from './api'\nimport { getResources } from './enum'\nimport { isApiError, type ApiError } from './error'\nimport type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor, ResponseObj, HeadersObj, InterceptorManager } from './interceptor'\nimport { ApiResourceAdapter, type ResourcesInitConfig } from './resource'\n\n\nimport Debug from './debug'\nconst debug = Debug('commercelayer')\n\n\n// Autogenerated version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.9.8'\n\n\n// SDK local configuration\ntype SdkConfig = {\n\t// abc?: string\n}\n\ntype CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\n\n\nclass CommerceLayerClient {\n\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprotected static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerClient {\n\t\tif (config) return (CommerceLayerClient.cl = new CommerceLayerClient(config))\n\t\telse\n\t\tif (!CommerceLayerClient.cl) throw new Error('CommerceLayer client not initialized')\n\t\treturn CommerceLayerClient.cl\n\t}\n\n\n\tprotected constructor(config: CommerceLayerInitConfig) {\n\n\t\tdebug('new commercelayer instance %O', config)\n\n\t\tApiResourceAdapter.init(config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\tget currentOrganization(): string { return ApiResourceAdapter.get().client?.currentOrganization }\n\tget currentAccessToken(): string { return ApiResourceAdapter.get().client?.currentAccessToken }\n\tprivate get interceptors(): InterceptorManager { return ApiResourceAdapter.get().client?.interceptors }\n\n\n\tprivate localConfig(config: Partial<SdkConfig>): void {\n\t\t// if (config.abc) this.abc = config.abc\n\t}\n\n\n\tconfig(config: CommerceLayerConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\t// CommerceLayer config\n\t\tthis.localConfig(config)\n\t\t// ResourceAdapter config\n\t\tApiResourceAdapter.config(config)\n\n\t\treturn this\n\n\t}\n\n\t\n\tresources(sort?: boolean): readonly string[] {\n\t\treturn getResources(sort)\n\t}\n\n\tisApiError(error: any): error is ApiError {\n\t\treturn isApiError(error)\n\t}\n\n\n\taddRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.request = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\taddResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.response = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\tremoveInterceptor(type: InterceptorType, id: number = 1): void {\n\t\tthis.interceptors[type] = undefined\n\t}\n\n\tremoveInterceptors(): void {\n\t\tthis.removeInterceptor('request')\n\t\tthis.removeInterceptor('response')\n\t\tthis.removeRawResponseReader()\n\t}\n\n\taddRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n\n\t\tconst reader: RawResponseReader = {\n\t\t\tid: 0,\n\t\t\trawResponse: undefined,\n\t\t\theaders: undefined,\n\t\t\tok: true\n\t\t}\n\n\t\tasync function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n\t\t\treader.rawResponse = await response?.clone().json().catch(() => {})\n\t\t\treader.ok = response.ok\n\t\t\tif (options?.headers) {\n\t\t\t\tconst ho: HeadersObj = {}\n\t\t\t\tresponse.headers.forEach((value, key) => { ho[key] = value })\n\t\t\t\treader.headers = ho\n\t\t\t}\n\t\t\treturn response\n\t\t}\n\t\t\n\t\t/* const interceptor = */this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor }\n\t\treader.id = 1 // interceptor\n\n\t\treturn reader\n\n\t}\n\n\tremoveRawResponseReader(/* reader: number | RawResponseReader */): void {\n\t\t/*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n\t\tthis.interceptors.rawReader = undefined\n\t}\n\n}\n\n\n\nconst CommerceLayer = (config: CommerceLayerInitConfig): CommerceLayerClient => {\n\treturn CommerceLayerClient.get(config)\n}\n\n\nexport default CommerceLayer\nexport { CommerceLayer }\n\nexport { CommerceLayerClient }\nexport type { CommerceLayerConfig, CommerceLayerInitConfig }\n"]}
|
@@ -29,5 +29,5 @@ var instance = new Organizations();
|
|
29
29
|
var organizations_default = instance;
|
30
30
|
|
31
31
|
exports.organizations_default = organizations_default;
|
32
|
-
//# sourceMappingURL=chunk-
|
33
|
-
//# sourceMappingURL=chunk-
|
32
|
+
//# sourceMappingURL=chunk-YPGYBULL.cjs.map
|
33
|
+
//# sourceMappingURL=chunk-YPGYBULL.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/organizations.ts"],"names":["ApiSingleton"],"mappings":";;;;;AAmSA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,8BAAA,CAA2B;AAAA,EAEtD,OAAgB,IAAA,GAAyB,eAAA;AAAA,EAEzC,MAAM,YAAA,CAAa,cAAA,EAAuC,MAAA,EAAsC,OAAA,EAA8D;AAC7J,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAM,cAAA;AAC/D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,aAAA,EAAgB,eAAe,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClI;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,cAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,qBAAA,GAAQ","file":"chunk-YPGYBULL.cjs","sourcesContent":["import { ApiSingleton } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { EventStore } from './event_stores'\n\n\ntype OrganizationType = 'organizations'\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\n\n\nexport type OrganizationSort = Pick<Organization, 'id'> & ResourceSort\n// export type OrganizationFilter = Pick<Organization, 'id'> & ResourceFilter\n\n\ninterface Organization extends Resource {\n\t\n\treadonly type: OrganizationType\n\n\t/** \n\t * The organization's internal name.\n\t * @example ```\"The Blue Brand\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The organization's slug name.\n\t * @example ```\"the-blue-brand\"```\n\t */\n\tslug?: string | null\n\t/** \n\t * The organization's domain.\n\t * @example ```\"the-blue-brand.commercelayer.io\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The organization's support phone.\n\t * @example ```\"+01 30800857\"```\n\t */\n\tsupport_phone?: string | null\n\t/** \n\t * The organization's support email.\n\t * @example ```\"support@bluebrand.com\"```\n\t */\n\tsupport_email?: string | null\n\t/** \n\t * The URL to the organization's logo.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tlogo_url?: string | null\n\t/** \n\t * The URL to the organization's favicon.\n\t * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n\t */\n\tfavicon_url?: string | null\n\t/** \n\t * The organization's primary color.\n\t * @example ```\"#C8984E\"```\n\t */\n\tprimary_color?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID.\n\t * @example ```\"GTM-5FJXX6\"```\n\t */\n\tgtm_id?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID for test.\n\t * @example ```\"GTM-5FJXX7\"```\n\t */\n\tgtm_id_test?: string | null\n\t/** \n\t * The organization's configuration.\n\t * @example ```{\"mfe\":{\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:accessToken\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:lang/:orderId\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}}}```\n\t */\n\tconfig?: Record<string, any> | null\n\t/** \n\t * Enables the redirect on the new Auth API.\n\t * @example ```true```\n\t */\n\tapi_auth_redirect?: boolean | null\n\t/** \n\t * Enables the rules engine for flex promotions and price list rules.\n\t */\n\tapi_rules_engine?: boolean | null\n\t/** \n\t * The fallback maximum number of conditions within a rules payload on a ruleable object, default is 150.\n\t * @example ```150```\n\t */\n\tapi_rules_engine_max_conditions_size?: number | null\n\t/** \n\t * The fallback maximum number of rules within a rules payload on a ruleable object, default is 15.\n\t * @example ```15```\n\t */\n\tapi_rules_engine_max_rules_size?: number | null\n\t/** \n\t * Forces the usage of the new Authentication API.\n\t * @example ```true```\n\t */\n\tapi_new_auth?: boolean | null\n\t/** \n\t * Enables the purge of cached single resources when list is purged.\n\t */\n\tapi_purge_single_resource?: boolean | null\n\t/** \n\t * The maximum length for the regular expressions, default is 5000.\n\t * @example ```5000```\n\t */\n\tapi_max_regex_length?: number | null\n\t/** \n\t * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is true.\n\t * @example ```true```\n\t */\n\taddresses_avs_check?: boolean | null\n\t/** \n\t * Indicates if the phone attribute is required for addresses, default is true.\n\t * @example ```true```\n\t */\n\taddresses_phone_required?: boolean | null\n\t/** \n\t * Indicates if a sales channel application without customer can read and update just guest orders.\n\t * @example ```true```\n\t */\n\torders_sales_channel_guest_only?: boolean | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done.\n\t */\n\torders_min_rebuild_shipments_lapse?: number | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done.\n\t */\n\torders_min_refresh_lapse?: number | null\n\t/** \n\t * The maximum number line items allowed for a test order before disabling the autorefresh option.\n\t * @example ```50```\n\t */\n\torders_autorefresh_cutoff_test?: number | null\n\t/** \n\t * The maximum number line items allowed for a live order before disabling the autorefresh option.\n\t * @example ```500```\n\t */\n\torders_autorefresh_cutoff_live?: number | null\n\t/** \n\t * Enables orders number editing as a string in test (for enterprise plans only).\n\t */\n\torders_number_editable_test?: boolean | null\n\t/** \n\t * Enables orders number editing as a string in live (for enterprise plans only).\n\t */\n\torders_number_editable_live?: boolean | null\n\t/** \n\t * Enables to use the order number as payment reference on supported gateways.\n\t * @example ```true```\n\t */\n\torders_number_as_reference?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided coupon code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_coupon_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided gift card code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_gift_card_errors?: boolean | null\n\t/** \n\t * Enables the validation of the generated stock line items and stock transfers before placing the order, default is false.\n\t */\n\torders_validate_shipping_stock?: boolean | null\n\t/** \n\t * The maximum number of SKUs allowed for bundles, default is 10.\n\t * @example ```10```\n\t */\n\tbundles_max_items_count?: number | null\n\t/** \n\t * The minimum length for coupon code, default is 8.\n\t * @example ```8```\n\t */\n\tcoupons_min_code_length?: number | null\n\t/** \n\t * The maximum length for coupon code, default is 40.\n\t * @example ```40```\n\t */\n\tcoupons_max_code_length?: number | null\n\t/** \n\t * Enables matching the gift card code by its exact value, instead of by its first charachters, default is false.\n\t */\n\tgift_cards_exact_code_matching?: boolean | null\n\t/** \n\t * The minimum length for gift card code, default is 8.\n\t * @example ```8```\n\t */\n\tgift_cards_min_code_length?: number | null\n\t/** \n\t * The maximum length for gift card code, default is 40.\n\t * @example ```40```\n\t */\n\tgift_cards_max_code_length?: number | null\n\t/** \n\t * The maximum number of concurrent cleanups allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tcleanups_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent exports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\texports_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent imports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\timports_max_concurrent_count?: number | null\n\t/** \n\t * Enables purging of cached resources upon succeeded imports.\n\t * @example ```true```\n\t */\n\timports_purge_cache?: boolean | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.\n\t */\n\timports_skip_errors?: boolean | null\n\t/** \n\t * The maximum number for stock locations cutoff, default is 10.\n\t * @example ```10```\n\t */\n\tinventory_models_max_stock_locations_cutoff?: number | null\n\t/** \n\t * The maximum number of active concurrent promotions allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tpromotions_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a promotion object, default is 150.\n\t * @example ```150```\n\t */\n\tpromotions_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a promotion object, default is 15.\n\t * @example ```15```\n\t */\n\tpromotions_max_rules_size?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a price list object, default is 150.\n\t * @example ```150```\n\t */\n\tprice_lists_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a price list object, default is 15.\n\t * @example ```15```\n\t */\n\tprice_lists_max_rules_size?: number | null\n\t/** \n\t * Enables triggering of webhooks during imports, default is false.\n\t */\n\timports_trigger_webhooks?: number | null\n\t/** \n\t * Enables the use of an external discount engine in place of the standard one, default is false.\n\t */\n\tdiscount_engines_enabled?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of discount engine failure, default is false.\n\t */\n\tdiscount_engines_errors?: boolean | null\n\t/** \n\t * The maximum length for the tag name, default is 25.\n\t * @example ```25```\n\t */\n\ttags_max_name_length?: number | null\n\t/** \n\t * The maximum allowed number of tags for each resource, default is 10.\n\t * @example ```10```\n\t */\n\ttags_max_allowed_number?: number | null\n\t/** \n\t * Enables raising of API errors in case of tax calculation failure, default is false.\n\t */\n\ttax_calculators_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external promotion failure, default is false.\n\t */\n\texternal_promotions_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external price failure, default is true.\n\t * @example ```true```\n\t */\n\texternal_prices_errors?: boolean | null\n\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Organizations extends ApiSingleton<Organization> {\n\n\tstatic readonly TYPE: OrganizationType = 'organizations' as const\n\n\tasync event_stores(organizationId: string | Organization, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _organizationId = (organizationId as Organization).id || organizationId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `organization/${_organizationId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrganization(resource: any): resource is Organization {\n\t\treturn resource.type && (resource.type === Organizations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrganizationRel {\n\t\treturn super.relationshipOneToOne<OrganizationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrganizationRel[] {\n\t\treturn super.relationshipOneToMany<OrganizationRel>(...ids)\n\t}\n\n\n\ttype(): OrganizationType {\n\t\treturn Organizations.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'organization'\n\t}\n\n}\n\n\nconst instance = new Organizations()\nexport default instance\n\nexport type { Organizations, Organization, OrganizationType }\n"]}
|
package/lib/commercelayer.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var chunkTN2MXFJV_cjs = require('./chunk-TN2MXFJV.cjs');
|
6
6
|
require('./chunk-U22VLCMN.cjs');
|
7
7
|
require('./chunk-YY5ENJSH.cjs');
|
8
8
|
require('./chunk-ZWVME7CU.cjs');
|
@@ -17,19 +17,19 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
17
17
|
|
18
18
|
Object.defineProperty(exports, "CommerceLayer", {
|
19
19
|
enumerable: true,
|
20
|
-
get: function () { return
|
20
|
+
get: function () { return chunkTN2MXFJV_cjs.CommerceLayer; }
|
21
21
|
});
|
22
22
|
Object.defineProperty(exports, "CommerceLayerClient", {
|
23
23
|
enumerable: true,
|
24
|
-
get: function () { return
|
24
|
+
get: function () { return chunkTN2MXFJV_cjs.CommerceLayerClient; }
|
25
25
|
});
|
26
26
|
Object.defineProperty(exports, "OPEN_API_SCHEMA_VERSION", {
|
27
27
|
enumerable: true,
|
28
|
-
get: function () { return
|
28
|
+
get: function () { return chunkTN2MXFJV_cjs.OPEN_API_SCHEMA_VERSION; }
|
29
29
|
});
|
30
30
|
Object.defineProperty(exports, "default", {
|
31
31
|
enumerable: true,
|
32
|
-
get: function () { return
|
32
|
+
get: function () { return chunkTN2MXFJV_cjs.commercelayer_default; }
|
33
33
|
});
|
34
34
|
//# sourceMappingURL=commercelayer.cjs.map
|
35
35
|
//# sourceMappingURL=commercelayer.cjs.map
|
package/lib/commercelayer.d.cts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { ApiError } from './error.cjs';
|
2
2
|
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-k15jXzf0.cjs';
|
3
|
-
import { s as ResourcesInitConfig } from './api-
|
3
|
+
import { s as ResourcesInitConfig } from './api-egU4nY4x.cjs';
|
4
4
|
import './client.cjs';
|
5
5
|
import './types.cjs';
|
6
6
|
|
7
|
-
declare const OPEN_API_SCHEMA_VERSION = "7.9.
|
7
|
+
declare const OPEN_API_SCHEMA_VERSION = "7.9.8";
|
8
8
|
type SdkConfig = {};
|
9
9
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
10
10
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
11
11
|
declare class CommerceLayerClient {
|
12
|
-
readonly openApiSchemaVersion = "7.9.
|
12
|
+
readonly openApiSchemaVersion = "7.9.8";
|
13
13
|
protected static cl: CommerceLayerClient;
|
14
14
|
static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
|
15
15
|
protected constructor(config: CommerceLayerInitConfig);
|
package/lib/commercelayer.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { ApiError } from './error.js';
|
2
2
|
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-k15jXzf0.js';
|
3
|
-
import { s as ResourcesInitConfig } from './api-
|
3
|
+
import { s as ResourcesInitConfig } from './api-LDVr5RYG.js';
|
4
4
|
import './client.js';
|
5
5
|
import './types.js';
|
6
6
|
|
7
|
-
declare const OPEN_API_SCHEMA_VERSION = "7.9.
|
7
|
+
declare const OPEN_API_SCHEMA_VERSION = "7.9.8";
|
8
8
|
type SdkConfig = {};
|
9
9
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
10
10
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
11
11
|
declare class CommerceLayerClient {
|
12
|
-
readonly openApiSchemaVersion = "7.9.
|
12
|
+
readonly openApiSchemaVersion = "7.9.8";
|
13
13
|
protected static cl: CommerceLayerClient;
|
14
14
|
static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
|
15
15
|
protected constructor(config: CommerceLayerInitConfig);
|
package/lib/commercelayer.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default as default } from './chunk-
|
1
|
+
export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default as default } from './chunk-CB4HWBPX.js';
|
2
2
|
import './chunk-XKERR6OR.js';
|
3
3
|
import './chunk-CHYP5F26.js';
|
4
4
|
import './chunk-UUY77JM3.js';
|
package/lib/enum.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { y as CreatableResource, C as CreatableResourceType, B as DeletableResource, D as DeletableResourceType, x as ListableResource, w as ListableResourceType, nP as ResourceFields, nQ as ResourceSortFields, t as ResourceTypeLock, v as RetrievableResource, u as RetrievableResourceType, E as TaggableResource, T as TaggableResourceType, z as UpdatableResource, U as UpdatableResourceType, F as VersionableResource, V as VersionableResourceType, nC as creatableResources, nE as deletableResources, nH as getResources, nI as getSingletons, nK as isCreatable, nM as isDeletable, nJ as isSingleton, nN as isTaggable, nL as isUpdatable, nO as isVersionable, nA as resourceList, nB as singletonList, nF as taggableResources, nD as updatableResources, nG as versionableResources } from './api-
|
1
|
+
export { y as CreatableResource, C as CreatableResourceType, B as DeletableResource, D as DeletableResourceType, x as ListableResource, w as ListableResourceType, nP as ResourceFields, nQ as ResourceSortFields, t as ResourceTypeLock, v as RetrievableResource, u as RetrievableResourceType, E as TaggableResource, T as TaggableResourceType, z as UpdatableResource, U as UpdatableResourceType, F as VersionableResource, V as VersionableResourceType, nC as creatableResources, nE as deletableResources, nH as getResources, nI as getSingletons, nK as isCreatable, nM as isDeletable, nJ as isSingleton, nN as isTaggable, nL as isUpdatable, nO as isVersionable, nA as resourceList, nB as singletonList, nF as taggableResources, nD as updatableResources, nG as versionableResources } from './api-egU4nY4x.cjs';
|
2
2
|
import './client.cjs';
|
3
3
|
import './interceptor-k15jXzf0.cjs';
|
4
4
|
import './types.cjs';
|
package/lib/enum.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { y as CreatableResource, C as CreatableResourceType, B as DeletableResource, D as DeletableResourceType, x as ListableResource, w as ListableResourceType, nP as ResourceFields, nQ as ResourceSortFields, t as ResourceTypeLock, v as RetrievableResource, u as RetrievableResourceType, E as TaggableResource, T as TaggableResourceType, z as UpdatableResource, U as UpdatableResourceType, F as VersionableResource, V as VersionableResourceType, nC as creatableResources, nE as deletableResources, nH as getResources, nI as getSingletons, nK as isCreatable, nM as isDeletable, nJ as isSingleton, nN as isTaggable, nL as isUpdatable, nO as isVersionable, nA as resourceList, nB as singletonList, nF as taggableResources, nD as updatableResources, nG as versionableResources } from './api-
|
1
|
+
export { y as CreatableResource, C as CreatableResourceType, B as DeletableResource, D as DeletableResourceType, x as ListableResource, w as ListableResourceType, nP as ResourceFields, nQ as ResourceSortFields, t as ResourceTypeLock, v as RetrievableResource, u as RetrievableResourceType, E as TaggableResource, T as TaggableResourceType, z as UpdatableResource, U as UpdatableResourceType, F as VersionableResource, V as VersionableResourceType, nC as creatableResources, nE as deletableResources, nH as getResources, nI as getSingletons, nK as isCreatable, nM as isDeletable, nJ as isSingleton, nN as isTaggable, nL as isUpdatable, nO as isVersionable, nA as resourceList, nB as singletonList, nF as taggableResources, nD as updatableResources, nG as versionableResources } from './api-LDVr5RYG.js';
|
2
2
|
import './client.js';
|
3
3
|
import './interceptor-k15jXzf0.js';
|
4
4
|
import './types.js';
|
package/lib/index.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var chunk7NKYU3IT_cjs = require('./chunk-7NKYU3IT.cjs');
|
6
6
|
require('./chunk-SRYEFARJ.cjs');
|
7
7
|
var chunkWEWTTMPS_cjs = require('./chunk-WEWTTMPS.cjs');
|
8
8
|
var chunkXYBXDS3Z_cjs = require('./chunk-XYBXDS3Z.cjs');
|
@@ -60,7 +60,7 @@ var chunkRK3E3UJ2_cjs = require('./chunk-RK3E3UJ2.cjs');
|
|
60
60
|
var chunkZPEK2ZCL_cjs = require('./chunk-ZPEK2ZCL.cjs');
|
61
61
|
var chunkF6WABN7F_cjs = require('./chunk-F6WABN7F.cjs');
|
62
62
|
var chunkLIIFLHEH_cjs = require('./chunk-LIIFLHEH.cjs');
|
63
|
-
var
|
63
|
+
var chunkYPGYBULL_cjs = require('./chunk-YPGYBULL.cjs');
|
64
64
|
var chunkO3NWYOPV_cjs = require('./chunk-O3NWYOPV.cjs');
|
65
65
|
var chunkFMGDNZQ6_cjs = require('./chunk-FMGDNZQ6.cjs');
|
66
66
|
var chunk6STKOQR7_cjs = require('./chunk-6STKOQR7.cjs');
|
@@ -79,7 +79,7 @@ var chunkQYVJGMYT_cjs = require('./chunk-QYVJGMYT.cjs');
|
|
79
79
|
var chunkA76SFMAB_cjs = require('./chunk-A76SFMAB.cjs');
|
80
80
|
var chunkJYSIXEKG_cjs = require('./chunk-JYSIXEKG.cjs');
|
81
81
|
var chunkTZAGUXNS_cjs = require('./chunk-TZAGUXNS.cjs');
|
82
|
-
var
|
82
|
+
var chunk4IOIA2JQ_cjs = require('./chunk-4IOIA2JQ.cjs');
|
83
83
|
var chunkT5AO4445_cjs = require('./chunk-T5AO4445.cjs');
|
84
84
|
var chunk6ZUGJHNV_cjs = require('./chunk-6ZUGJHNV.cjs');
|
85
85
|
var chunkUHKV2XBV_cjs = require('./chunk-UHKV2XBV.cjs');
|
@@ -136,7 +136,7 @@ var chunkFCGKL7AI_cjs = require('./chunk-FCGKL7AI.cjs');
|
|
136
136
|
var chunkFNTJOIQB_cjs = require('./chunk-FNTJOIQB.cjs');
|
137
137
|
var chunkD7SALAS2_cjs = require('./chunk-D7SALAS2.cjs');
|
138
138
|
var chunkUTFSZHUD_cjs = require('./chunk-UTFSZHUD.cjs');
|
139
|
-
var
|
139
|
+
var chunkTN2MXFJV_cjs = require('./chunk-TN2MXFJV.cjs');
|
140
140
|
require('./chunk-U22VLCMN.cjs');
|
141
141
|
require('./chunk-YY5ENJSH.cjs');
|
142
142
|
require('./chunk-ZWVME7CU.cjs');
|
@@ -151,7 +151,7 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
151
151
|
|
152
152
|
Object.defineProperty(exports, "CommerceLayerStatic", {
|
153
153
|
enumerable: true,
|
154
|
-
get: function () { return
|
154
|
+
get: function () { return chunk7NKYU3IT_cjs.CommerceLayerStatic; }
|
155
155
|
});
|
156
156
|
Object.defineProperty(exports, "transactions", {
|
157
157
|
enumerable: true,
|
@@ -379,7 +379,7 @@ Object.defineProperty(exports, "orders", {
|
|
379
379
|
});
|
380
380
|
Object.defineProperty(exports, "organization", {
|
381
381
|
enumerable: true,
|
382
|
-
get: function () { return
|
382
|
+
get: function () { return chunkYPGYBULL_cjs.organizations_default; }
|
383
383
|
});
|
384
384
|
Object.defineProperty(exports, "packages", {
|
385
385
|
enumerable: true,
|
@@ -455,7 +455,7 @@ Object.defineProperty(exports, "line_item_options", {
|
|
455
455
|
});
|
456
456
|
Object.defineProperty(exports, "line_items", {
|
457
457
|
enumerable: true,
|
458
|
-
get: function () { return
|
458
|
+
get: function () { return chunk4IOIA2JQ_cjs.line_items_default; }
|
459
459
|
});
|
460
460
|
Object.defineProperty(exports, "links", {
|
461
461
|
enumerable: true,
|
@@ -683,11 +683,11 @@ Object.defineProperty(exports, "attachments", {
|
|
683
683
|
});
|
684
684
|
Object.defineProperty(exports, "CommerceLayer", {
|
685
685
|
enumerable: true,
|
686
|
-
get: function () { return
|
686
|
+
get: function () { return chunkTN2MXFJV_cjs.CommerceLayer; }
|
687
687
|
});
|
688
688
|
Object.defineProperty(exports, "default", {
|
689
689
|
enumerable: true,
|
690
|
-
get: function () { return
|
690
|
+
get: function () { return chunkTN2MXFJV_cjs.commercelayer_default; }
|
691
691
|
});
|
692
692
|
//# sourceMappingURL=index.cjs.map
|
693
693
|
//# sourceMappingURL=index.cjs.map
|
package/lib/index.d.cts
CHANGED
@@ -2,7 +2,7 @@ import _default from './commercelayer.cjs';
|
|
2
2
|
// @ts-ignore
|
3
3
|
export = _default;
|
4
4
|
export { default as CommerceLayer, CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig } from './commercelayer.cjs';
|
5
|
-
export { dW as Address, dX as AddressCreate, dZ as AddressSort, dY as AddressUpdate, H as Addresses, d_ as Adjustment, d$ as AdjustmentCreate, e1 as AdjustmentSort, e0 as AdjustmentUpdate, J as Adjustments, e2 as AdyenGateway, e3 as AdyenGatewayCreate, e5 as AdyenGatewaySort, e4 as AdyenGatewayUpdate, N as AdyenGateways, e6 as AdyenPayment, e7 as AdyenPaymentCreate, e9 as AdyenPaymentSort, e8 as AdyenPaymentUpdate, P as AdyenPayments, A as ApiResource, i as ApiSingleton, ea as Application, eb as ApplicationSort, W as Applications, ec as Attachment, ed as AttachmentCreate, ef as AttachmentSort, ee as AttachmentUpdate, Y as Attachments, eg as Authorization, ei as AuthorizationSort, eh as AuthorizationUpdate, _ as Authorizations, ej as AvalaraAccount, ek as AvalaraAccountCreate, em as AvalaraAccountSort, el as AvalaraAccountUpdate, a0 as AvalaraAccounts, en as AxerveGateway, eo as AxerveGatewayCreate, eq as AxerveGatewaySort, ep as AxerveGatewayUpdate, a2 as AxerveGateways, er as AxervePayment, es as AxervePaymentCreate, eu as AxervePaymentSort, et as AxervePaymentUpdate, a4 as AxervePayments, ev as BingGeocoder, ew as BingGeocoderCreate, ey as BingGeocoderSort, ex as BingGeocoderUpdate, a6 as BingGeocoders, ez as BraintreeGateway, eA as BraintreeGatewayCreate, eC as BraintreeGatewaySort, eB as BraintreeGatewayUpdate, a8 as BraintreeGateways, eD as BraintreePayment, eE as BraintreePaymentCreate, eG as BraintreePaymentSort, eF as BraintreePaymentUpdate, aa as BraintreePayments, eH as Bundle, eI as BundleCreate, eK as BundleSort, eJ as BundleUpdate, ac as Bundles, eL as BuyXPayYPromotion, eM as BuyXPayYPromotionCreate, eO as BuyXPayYPromotionSort, eN as BuyXPayYPromotionUpdate, ae as BuyXPayYPromotions, eP as Capture, eR as CaptureSort, eQ as CaptureUpdate, ag as Captures, eS as CarrierAccount, eT as CarrierAccountCreate, eV as CarrierAccountSort, eU as CarrierAccountUpdate, ai as CarrierAccounts, eW as CheckoutComGateway, eX as CheckoutComGatewayCreate, eZ as CheckoutComGatewaySort, eY as CheckoutComGatewayUpdate, ak as CheckoutComGateways, e_ as CheckoutComPayment, e$ as CheckoutComPaymentCreate, f1 as CheckoutComPaymentSort, f0 as CheckoutComPaymentUpdate, am as CheckoutComPayments, f2 as Cleanup, f3 as CleanupCreate, f5 as CleanupSort, f4 as CleanupUpdate, ao as Cleanups, fe as Coupon, f6 as CouponCodesPromotionRule, f7 as CouponCodesPromotionRuleCreate, f9 as CouponCodesPromotionRuleSort, f8 as CouponCodesPromotionRuleUpdate, aq as CouponCodesPromotionRules, ff as CouponCreate, fa as CouponRecipient, fb as CouponRecipientCreate, fd as CouponRecipientSort, fc as CouponRecipientUpdate, as as CouponRecipients, fh as CouponSort, fg as CouponUpdate, au as Coupons, y as CreatableResource, C as CreatableResourceType, fi as CustomPromotionRule, fj as CustomPromotionRuleCreate, fl as CustomPromotionRuleSort, fk as CustomPromotionRuleUpdate, aw as CustomPromotionRules, fG as Customer, fm as CustomerAddress, fn as CustomerAddressCreate, fp as CustomerAddressSort, fo as CustomerAddressUpdate, ay as CustomerAddresses, fH as CustomerCreate, fq as CustomerGroup, fr as CustomerGroupCreate, ft as CustomerGroupSort, fs as CustomerGroupUpdate, aA as CustomerGroups, fu as CustomerPasswordReset, fv as CustomerPasswordResetCreate, fx as CustomerPasswordResetSort, fw as CustomerPasswordResetUpdate, aC as CustomerPasswordResets, fy as CustomerPaymentSource, fz as CustomerPaymentSourceCreate, fB as CustomerPaymentSourceSort, fA as CustomerPaymentSourceUpdate, aE as CustomerPaymentSources, fJ as CustomerSort, fC as CustomerSubscription, fD as CustomerSubscriptionCreate, fF as CustomerSubscriptionSort, fE as CustomerSubscriptionUpdate, aG as CustomerSubscriptions, fI as CustomerUpdate, aI as Customers, B as DeletableResource, D as DeletableResourceType, fK as DeliveryLeadTime, fL as DeliveryLeadTimeCreate, fN as DeliveryLeadTimeSort, fM as DeliveryLeadTimeUpdate, aK as DeliveryLeadTimes, fQ as DiscountEngine, fO as DiscountEngineItem, fP as DiscountEngineItemSort, aM as DiscountEngineItems, fR as DiscountEngineSort, aO as DiscountEngines, fS as EasypostPickup, fT as EasypostPickupCreate, fV as EasypostPickupSort, fU as EasypostPickupUpdate, aQ as EasypostPickups, f_ as Event, fW as EventCallback, fX as EventCallbackSort, aS as EventCallbacks, g0 as EventSort, fY as EventStore, fZ as EventStoreSort, aU as EventStores, f$ as EventUpdate, aW as Events, g1 as Export, g2 as ExportCreate, g4 as ExportSort, g3 as ExportUpdate, aY as Exports, g5 as ExternalGateway, g6 as ExternalGatewayCreate, g8 as ExternalGatewaySort, g7 as ExternalGatewayUpdate, a_ as ExternalGateways, g9 as ExternalPayment, ga as ExternalPaymentCreate, gc as ExternalPaymentSort, gb as ExternalPaymentUpdate, b0 as ExternalPayments, gd as ExternalPromotion, ge as ExternalPromotionCreate, gg as ExternalPromotionSort, gf as ExternalPromotionUpdate, b2 as ExternalPromotions, gh as ExternalTaxCalculator, gi as ExternalTaxCalculatorCreate, gk as ExternalTaxCalculatorSort, gj as ExternalTaxCalculatorUpdate, b4 as ExternalTaxCalculators, gl as FixedAmountPromotion, gm as FixedAmountPromotionCreate, go as FixedAmountPromotionSort, gn as FixedAmountPromotionUpdate, b6 as FixedAmountPromotions, gp as FixedPricePromotion, gq as FixedPricePromotionCreate, gs as FixedPricePromotionSort, gr as FixedPricePromotionUpdate, b8 as FixedPricePromotions, gt as FlexPromotion, gu as FlexPromotionCreate, gw as FlexPromotionSort, gv as FlexPromotionUpdate, ba as FlexPromotions, gx as FreeGiftPromotion, gy as FreeGiftPromotionCreate, gA as FreeGiftPromotionSort, gz as FreeGiftPromotionUpdate, bc as FreeGiftPromotions, gB as FreeShippingPromotion, gC as FreeShippingPromotionCreate, gE as FreeShippingPromotionSort, gD as FreeShippingPromotionUpdate, be as FreeShippingPromotions, gF as Geocoder, gG as GeocoderSort, bg as Geocoders, gL as GiftCard, gM as GiftCardCreate, gH as GiftCardRecipient, gI as GiftCardRecipientCreate, gK as GiftCardRecipientSort, gJ as GiftCardRecipientUpdate, bi as GiftCardRecipients, gO as GiftCardSort, gN as GiftCardUpdate, bk as GiftCards, gP as GoogleGeocoder, gQ as GoogleGeocoderCreate, gS as GoogleGeocoderSort, gR as GoogleGeocoderUpdate, bm as GoogleGeocoders, gT as Import, gU as ImportCreate, gW as ImportSort, gV as ImportUpdate, bo as Imports, gX as InStockSubscription, gY as InStockSubscriptionCreate, g_ as InStockSubscriptionSort, gZ as InStockSubscriptionUpdate, bq as InStockSubscriptions, g$ as InventoryModel, h0 as InventoryModelCreate, h2 as InventoryModelSort, h1 as InventoryModelUpdate, bs as InventoryModels, h3 as InventoryReturnLocation, h4 as InventoryReturnLocationCreate, h6 as InventoryReturnLocationSort, h5 as InventoryReturnLocationUpdate, bu as InventoryReturnLocations, h7 as InventoryStockLocation, h8 as InventoryStockLocationCreate, ha as InventoryStockLocationSort, h9 as InventoryStockLocationUpdate, bw as InventoryStockLocations, hb as KlarnaGateway, hc as KlarnaGatewayCreate, he as KlarnaGatewaySort, hd as KlarnaGatewayUpdate, by as KlarnaGateways, hf as KlarnaPayment, hg as KlarnaPaymentCreate, hi as KlarnaPaymentSort, hh as KlarnaPaymentUpdate, bA as KlarnaPayments, hn as LineItem, ho as LineItemCreate, hj as LineItemOption, hk as LineItemOptionCreate, hm as LineItemOptionSort, hl as LineItemOptionUpdate, bC as LineItemOptions, hq as LineItemSort, hp as LineItemUpdate, bE as LineItems, hr as Link, hs as LinkCreate, hu as LinkSort, ht as LinkUpdate, bG as Links, n as ListMeta, L as ListResponse, x as ListableResource, w as ListableResourceType, hv as ManualGateway, hw as ManualGatewayCreate, hy as ManualGatewaySort, hx as ManualGatewayUpdate, bI as ManualGateways, hz as ManualTaxCalculator, hA as ManualTaxCalculatorCreate, hC as ManualTaxCalculatorSort, hB as ManualTaxCalculatorUpdate, bK as ManualTaxCalculators, hD as Market, hE as MarketCreate, hG as MarketSort, hF as MarketUpdate, bM as Markets, hH as Merchant, hI as MerchantCreate, hK as MerchantSort, hJ as MerchantUpdate, bO as Merchants, M as Metadata, hL as Notification, hM as NotificationCreate, hO as NotificationSort, hN as NotificationUpdate, bQ as Notifications, i5 as Order, hP as OrderAmountPromotionRule, hQ as OrderAmountPromotionRuleCreate, hS as OrderAmountPromotionRuleSort, hR as OrderAmountPromotionRuleUpdate, bS as OrderAmountPromotionRules, bU as OrderCopies, hT as OrderCopy, hU as OrderCopyCreate, hW as OrderCopySort, hV as OrderCopyUpdate, i6 as OrderCreate, bW as OrderFactories, hX as OrderFactory, hY as OrderFactorySort, i8 as OrderSort, i1 as OrderSubscription, i2 as OrderSubscriptionCreate, hZ as OrderSubscriptionItem, h_ as OrderSubscriptionItemCreate, i0 as OrderSubscriptionItemSort, h$ as OrderSubscriptionItemUpdate, bY as OrderSubscriptionItems, i4 as OrderSubscriptionSort, i3 as OrderSubscriptionUpdate, b_ as OrderSubscriptions, i7 as OrderUpdate, c0 as Orders, i9 as Organization, ia as OrganizationSort, c2 as Organizations, ib as Package, ic as PackageCreate, ie as PackageSort, id as PackageUpdate, c4 as Packages, ik as Parcel, il as ParcelCreate, ig as ParcelLineItem, ih as ParcelLineItemCreate, ij as ParcelLineItemSort, ii as ParcelLineItemUpdate, c6 as ParcelLineItems, io as ParcelSort, im as ParcelUpdate, c8 as Parcels, ip as PaymentGateway, iq as PaymentGatewaySort, ca as PaymentGateways, ir as PaymentMethod, is as PaymentMethodCreate, iu as PaymentMethodSort, it as PaymentMethodUpdate, cc as PaymentMethods, iv as PaymentOption, iw as PaymentOptionCreate, iy as PaymentOptionSort, ix as PaymentOptionUpdate, ce as PaymentOptions, iz as PaypalGateway, iA as PaypalGatewayCreate, iC as PaypalGatewaySort, iB as PaypalGatewayUpdate, cg as PaypalGateways, iD as PaypalPayment, iE as PaypalPaymentCreate, iG as PaypalPaymentSort, iF as PaypalPaymentUpdate, ci as PaypalPayments, iH as PercentageDiscountPromotion, iI as PercentageDiscountPromotionCreate, iK as PercentageDiscountPromotionSort, iJ as PercentageDiscountPromotionUpdate, ck as PercentageDiscountPromotions, iL as Pickup, iM as PickupSort, cm as Pickups, j3 as Price, j4 as PriceCreate, iN as PriceFrequencyTier, iO as PriceFrequencyTierCreate, iQ as PriceFrequencyTierSort, iP as PriceFrequencyTierUpdate, co as PriceFrequencyTiers, iV as PriceList, iW as PriceListCreate, iR as PriceListScheduler, iS as PriceListSchedulerCreate, iU as PriceListSchedulerSort, iT as PriceListSchedulerUpdate, cq as PriceListSchedulers, iY as PriceListSort, iX as PriceListUpdate, cs as PriceLists, j6 as PriceSort, iZ as PriceTier, i_ as PriceTierSort, cu as PriceTiers, j5 as PriceUpdate, i$ as PriceVolumeTier, j0 as PriceVolumeTierCreate, j2 as PriceVolumeTierSort, j1 as PriceVolumeTierUpdate, cw as PriceVolumeTiers, cy as Prices, j9 as Promotion, j7 as PromotionRule, j8 as PromotionRuleSort, cA as PromotionRules, ja as PromotionSort, cC as Promotions, a as QueryFields, h as QueryFilter, Q as QueryInclude, e as QueryPageNumber, f as QueryPageSize, d as QueryParams, c as QueryParamsList, b as QueryParamsRetrieve, g as QuerySort, cE as RecurringOrderCopies, jb as RecurringOrderCopy, jc as RecurringOrderCopyCreate, je as RecurringOrderCopySort, jd as RecurringOrderCopyUpdate, jf as Refund, jh as RefundSort, jg as RefundUpdate, cG as Refunds, ji as ReservedStock, jj as ReservedStockSort, cI as ReservedStocks, k as Resource, l as ResourceCreate, jk as ResourceError, jl as ResourceErrorSort, cK as ResourceErrors, q as ResourceFilter, j as ResourceId, o as ResourceRel, p as ResourceSort, R as ResourceType, t as ResourceTypeLock, m as ResourceUpdate, r as ResourcesConfig, s as ResourcesInitConfig, v as RetrievableResource, u as RetrievableResourceType, jq as Return, jr as ReturnCreate, jm as ReturnLineItem, jn as ReturnLineItemCreate, jp as ReturnLineItemSort, jo as ReturnLineItemUpdate, cM as ReturnLineItems, jt as ReturnSort, js as ReturnUpdate, cO as Returns, ju as SatispayGateway, jv as SatispayGatewayCreate, jx as SatispayGatewaySort, jw as SatispayGatewayUpdate, cQ as SatispayGateways, jy as SatispayPayment, jz as SatispayPaymentCreate, jB as SatispayPaymentSort, jA as SatispayPaymentUpdate, cS as SatispayPayments, jC as Shipment, jD as ShipmentCreate, jF as ShipmentSort, jE as ShipmentUpdate, cU as Shipments, cW as ShippingCategories, jG as ShippingCategory, jH as ShippingCategoryCreate, jJ as ShippingCategorySort, jI as ShippingCategoryUpdate, jM as ShippingMethod, jN as ShippingMethodCreate, jP as ShippingMethodSort, jK as ShippingMethodTier, jL as ShippingMethodTierSort, cY as ShippingMethodTiers, jO as ShippingMethodUpdate, c_ as ShippingMethods, jQ as ShippingWeightTier, jR as ShippingWeightTierCreate, jT as ShippingWeightTierSort, jS as ShippingWeightTierUpdate, d0 as ShippingWeightTiers, jU as ShippingZone, jV as ShippingZoneCreate, jX as ShippingZoneSort, jW as ShippingZoneUpdate, d2 as ShippingZones, kc as Sku, kd as SkuCreate, k4 as SkuList, k5 as SkuListCreate, jY as SkuListItem, jZ as SkuListItemCreate, j$ as SkuListItemSort, j_ as SkuListItemUpdate, d4 as SkuListItems, k0 as SkuListPromotionRule, k1 as SkuListPromotionRuleCreate, k3 as SkuListPromotionRuleSort, k2 as SkuListPromotionRuleUpdate, d6 as SkuListPromotionRules, k7 as SkuListSort, k6 as SkuListUpdate, d8 as SkuLists, k8 as SkuOption, k9 as SkuOptionCreate, kb as SkuOptionSort, ka as SkuOptionUpdate, da as SkuOptions, kf as SkuSort, ke as SkuUpdate, dc as Skus, kg as StockItem, kh as StockItemCreate, kj as StockItemSort, ki as StockItemUpdate, de as StockItems, kk as StockLineItem, kl as StockLineItemCreate, kn as StockLineItemSort, km as StockLineItemUpdate, dg as StockLineItems, ko as StockLocation, kp as StockLocationCreate, kr as StockLocationSort, kq as StockLocationUpdate, di as StockLocations, ks as StockReservation, kt as StockReservationCreate, kv as StockReservationSort, ku as StockReservationUpdate, dk as StockReservations, kw as StockTransfer, kx as StockTransferCreate, kz as StockTransferSort, ky as StockTransferUpdate, dm as StockTransfers, kA as Store, kB as StoreCreate, kD as StoreSort, kC as StoreUpdate, dp as Stores, kE as StripeGateway, kF as StripeGatewayCreate, kH as StripeGatewaySort, kG as StripeGatewayUpdate, dr as StripeGateways, kI as StripePayment, kJ as StripePaymentCreate, kL as StripePaymentSort, kK as StripePaymentUpdate, dt as StripePayments, kM as StripeTaxAccount, kN as StripeTaxAccountCreate, kP as StripeTaxAccountSort, kO as StripeTaxAccountUpdate, dv as StripeTaxAccounts, kQ as SubscriptionModel, kR as SubscriptionModelCreate, kT as SubscriptionModelSort, kS as SubscriptionModelUpdate, dx as SubscriptionModels, kU as Tag, kV as TagCreate, kX as TagSort, kW as TagUpdate, E as TaggableResource, T as TaggableResourceType, dz as Tags, kY as TalonOneAccount, kZ as TalonOneAccountCreate, k$ as TalonOneAccountSort, k_ as TalonOneAccountUpdate, dB as TalonOneAccounts, l0 as TaxCalculator, l1 as TaxCalculatorSort, dD as TaxCalculators, dF as TaxCategories, l2 as TaxCategory, l3 as TaxCategoryCreate, l5 as TaxCategorySort, l4 as TaxCategoryUpdate, l6 as TaxRule, l7 as TaxRuleCreate, l9 as TaxRuleSort, l8 as TaxRuleUpdate, dH as TaxRules, la as TaxjarAccount, lb as TaxjarAccountCreate, ld as TaxjarAccountSort, lc as TaxjarAccountUpdate, dJ as TaxjarAccounts, le as Transaction, lf as TransactionSort, dL as Transactions, z as UpdatableResource, U as UpdatableResourceType, lg as Version, lh as VersionSort, F as VersionableResource, V as VersionableResourceType, dN as Versions, li as VertexAccount, lj as VertexAccountCreate, ll as VertexAccountSort, lk as VertexAccountUpdate, dP as VertexAccounts, lm as Void, lo as VoidSort, ln as VoidUpdate, dR as Voids, lp as Webhook, lq as WebhookCreate, ls as WebhookSort, lr as WebhookUpdate, dT as Webhooks, lt as WireTransfer, lu as WireTransferCreate, lw as WireTransferSort, lv as WireTransferUpdate, dV as WireTransfers, G as addresses, I as adjustments, K as adyen_gateways, O as adyen_payments, S as application, X as attachments, Z as authorizations, $ as avalara_accounts, a1 as axerve_gateways, a3 as axerve_payments, a5 as bing_geocoders, a7 as braintree_gateways, a9 as braintree_payments, ab as bundles, ad as buy_x_pay_y_promotions, af as captures, ah as carrier_accounts, aj as checkout_com_gateways, al as checkout_com_payments, an as cleanups, ap as coupon_codes_promotion_rules, ar as coupon_recipients, at as coupons, av as custom_promotion_rules, ax as customer_addresses, az as customer_groups, aB as customer_password_resets, aD as customer_payment_sources, aF as customer_subscriptions, aH as customers, aJ as delivery_lead_times, aL as discount_engine_items, aN as discount_engines, aP as easypost_pickups, aR as event_callbacks, aT as event_stores, aV as events, aX as exports, aZ as external_gateways, a$ as external_payments, b1 as external_promotions, b3 as external_tax_calculators, b5 as fixed_amount_promotions, b7 as fixed_price_promotions, b9 as flex_promotions, bb as free_gift_promotions, bd as free_shipping_promotions, bf as geocoders, bh as gift_card_recipients, bj as gift_cards, bl as google_geocoders, bn as imports, bp as in_stock_subscriptions, br as inventory_models, bt as inventory_return_locations, bv as inventory_stock_locations, bx as klarna_gateways, bz as klarna_payments, bB as line_item_options, bD as line_items, bF as links, bH as manual_gateways, bJ as manual_tax_calculators, bL as markets, bN as merchants, bP as notifications, bR as order_amount_promotion_rules, bT as order_copies, bV as order_factories, bX as order_subscription_items, bZ as order_subscriptions, b$ as orders, c1 as organization, c3 as packages, c5 as parcel_line_items, c7 as parcels, c9 as payment_gateways, cb as payment_methods, cd as payment_options, cf as paypal_gateways, ch as paypal_payments, cj as percentage_discount_promotions, cl as pickups, cn as price_frequency_tiers, cp as price_list_schedulers, cr as price_lists, ct as price_tiers, cv as price_volume_tiers, cx as prices, cz as promotion_rules, cB as promotions, cD as recurring_order_copies, cF as refunds, cH as reserved_stocks, cJ as resource_errors, cL as return_line_items, cN as returns, cP as satispay_gateways, cR as satispay_payments, cT as shipments, cV as shipping_categories, cX as shipping_method_tiers, cZ as shipping_methods, c$ as shipping_weight_tiers, d1 as shipping_zones, d3 as sku_list_items, d5 as sku_list_promotion_rules, d7 as sku_lists, d9 as sku_options, db as skus, dd as stock_items, df as stock_line_items, dh as stock_locations, dj as stock_reservations, dl as stock_transfers, dn as stores, dq as stripe_gateways, ds as stripe_payments, du as stripe_tax_accounts, dw as subscription_models, dy as tags, dA as talon_one_accounts, dC as tax_calculators, dE as tax_categories, dG as tax_rules, dI as taxjar_accounts, dK as transactions, dM as versions, dO as vertex_accounts, dQ as voids, dS as webhooks, dU as wire_transfers } from './api-BljuENr-.cjs';
|
5
|
+
export { dW as Address, dX as AddressCreate, dZ as AddressSort, dY as AddressUpdate, H as Addresses, d_ as Adjustment, d$ as AdjustmentCreate, e1 as AdjustmentSort, e0 as AdjustmentUpdate, J as Adjustments, e2 as AdyenGateway, e3 as AdyenGatewayCreate, e5 as AdyenGatewaySort, e4 as AdyenGatewayUpdate, N as AdyenGateways, e6 as AdyenPayment, e7 as AdyenPaymentCreate, e9 as AdyenPaymentSort, e8 as AdyenPaymentUpdate, P as AdyenPayments, A as ApiResource, i as ApiSingleton, ea as Application, eb as ApplicationSort, W as Applications, ec as Attachment, ed as AttachmentCreate, ef as AttachmentSort, ee as AttachmentUpdate, Y as Attachments, eg as Authorization, ei as AuthorizationSort, eh as AuthorizationUpdate, _ as Authorizations, ej as AvalaraAccount, ek as AvalaraAccountCreate, em as AvalaraAccountSort, el as AvalaraAccountUpdate, a0 as AvalaraAccounts, en as AxerveGateway, eo as AxerveGatewayCreate, eq as AxerveGatewaySort, ep as AxerveGatewayUpdate, a2 as AxerveGateways, er as AxervePayment, es as AxervePaymentCreate, eu as AxervePaymentSort, et as AxervePaymentUpdate, a4 as AxervePayments, ev as BingGeocoder, ew as BingGeocoderCreate, ey as BingGeocoderSort, ex as BingGeocoderUpdate, a6 as BingGeocoders, ez as BraintreeGateway, eA as BraintreeGatewayCreate, eC as BraintreeGatewaySort, eB as BraintreeGatewayUpdate, a8 as BraintreeGateways, eD as BraintreePayment, eE as BraintreePaymentCreate, eG as BraintreePaymentSort, eF as BraintreePaymentUpdate, aa as BraintreePayments, eH as Bundle, eI as BundleCreate, eK as BundleSort, eJ as BundleUpdate, ac as Bundles, eL as BuyXPayYPromotion, eM as BuyXPayYPromotionCreate, eO as BuyXPayYPromotionSort, eN as BuyXPayYPromotionUpdate, ae as BuyXPayYPromotions, eP as Capture, eR as CaptureSort, eQ as CaptureUpdate, ag as Captures, eS as CarrierAccount, eT as CarrierAccountCreate, eV as CarrierAccountSort, eU as CarrierAccountUpdate, ai as CarrierAccounts, eW as CheckoutComGateway, eX as CheckoutComGatewayCreate, eZ as CheckoutComGatewaySort, eY as CheckoutComGatewayUpdate, ak as CheckoutComGateways, e_ as CheckoutComPayment, e$ as CheckoutComPaymentCreate, f1 as CheckoutComPaymentSort, f0 as CheckoutComPaymentUpdate, am as CheckoutComPayments, f2 as Cleanup, f3 as CleanupCreate, f5 as CleanupSort, f4 as CleanupUpdate, ao as Cleanups, fe as Coupon, f6 as CouponCodesPromotionRule, f7 as CouponCodesPromotionRuleCreate, f9 as CouponCodesPromotionRuleSort, f8 as CouponCodesPromotionRuleUpdate, aq as CouponCodesPromotionRules, ff as CouponCreate, fa as CouponRecipient, fb as CouponRecipientCreate, fd as CouponRecipientSort, fc as CouponRecipientUpdate, as as CouponRecipients, fh as CouponSort, fg as CouponUpdate, au as Coupons, y as CreatableResource, C as CreatableResourceType, fi as CustomPromotionRule, fj as CustomPromotionRuleCreate, fl as CustomPromotionRuleSort, fk as CustomPromotionRuleUpdate, aw as CustomPromotionRules, fG as Customer, fm as CustomerAddress, fn as CustomerAddressCreate, fp as CustomerAddressSort, fo as CustomerAddressUpdate, ay as CustomerAddresses, fH as CustomerCreate, fq as CustomerGroup, fr as CustomerGroupCreate, ft as CustomerGroupSort, fs as CustomerGroupUpdate, aA as CustomerGroups, fu as CustomerPasswordReset, fv as CustomerPasswordResetCreate, fx as CustomerPasswordResetSort, fw as CustomerPasswordResetUpdate, aC as CustomerPasswordResets, fy as CustomerPaymentSource, fz as CustomerPaymentSourceCreate, fB as CustomerPaymentSourceSort, fA as CustomerPaymentSourceUpdate, aE as CustomerPaymentSources, fJ as CustomerSort, fC as CustomerSubscription, fD as CustomerSubscriptionCreate, fF as CustomerSubscriptionSort, fE as CustomerSubscriptionUpdate, aG as CustomerSubscriptions, fI as CustomerUpdate, aI as Customers, B as DeletableResource, D as DeletableResourceType, fK as DeliveryLeadTime, fL as DeliveryLeadTimeCreate, fN as DeliveryLeadTimeSort, fM as DeliveryLeadTimeUpdate, aK as DeliveryLeadTimes, fQ as DiscountEngine, fO as DiscountEngineItem, fP as DiscountEngineItemSort, aM as DiscountEngineItems, fR as DiscountEngineSort, aO as DiscountEngines, fS as EasypostPickup, fT as EasypostPickupCreate, fV as EasypostPickupSort, fU as EasypostPickupUpdate, aQ as EasypostPickups, f_ as Event, fW as EventCallback, fX as EventCallbackSort, aS as EventCallbacks, g0 as EventSort, fY as EventStore, fZ as EventStoreSort, aU as EventStores, f$ as EventUpdate, aW as Events, g1 as Export, g2 as ExportCreate, g4 as ExportSort, g3 as ExportUpdate, aY as Exports, g5 as ExternalGateway, g6 as ExternalGatewayCreate, g8 as ExternalGatewaySort, g7 as ExternalGatewayUpdate, a_ as ExternalGateways, g9 as ExternalPayment, ga as ExternalPaymentCreate, gc as ExternalPaymentSort, gb as ExternalPaymentUpdate, b0 as ExternalPayments, gd as ExternalPromotion, ge as ExternalPromotionCreate, gg as ExternalPromotionSort, gf as ExternalPromotionUpdate, b2 as ExternalPromotions, gh as ExternalTaxCalculator, gi as ExternalTaxCalculatorCreate, gk as ExternalTaxCalculatorSort, gj as ExternalTaxCalculatorUpdate, b4 as ExternalTaxCalculators, gl as FixedAmountPromotion, gm as FixedAmountPromotionCreate, go as FixedAmountPromotionSort, gn as FixedAmountPromotionUpdate, b6 as FixedAmountPromotions, gp as FixedPricePromotion, gq as FixedPricePromotionCreate, gs as FixedPricePromotionSort, gr as FixedPricePromotionUpdate, b8 as FixedPricePromotions, gt as FlexPromotion, gu as FlexPromotionCreate, gw as FlexPromotionSort, gv as FlexPromotionUpdate, ba as FlexPromotions, gx as FreeGiftPromotion, gy as FreeGiftPromotionCreate, gA as FreeGiftPromotionSort, gz as FreeGiftPromotionUpdate, bc as FreeGiftPromotions, gB as FreeShippingPromotion, gC as FreeShippingPromotionCreate, gE as FreeShippingPromotionSort, gD as FreeShippingPromotionUpdate, be as FreeShippingPromotions, gF as Geocoder, gG as GeocoderSort, bg as Geocoders, gL as GiftCard, gM as GiftCardCreate, gH as GiftCardRecipient, gI as GiftCardRecipientCreate, gK as GiftCardRecipientSort, gJ as GiftCardRecipientUpdate, bi as GiftCardRecipients, gO as GiftCardSort, gN as GiftCardUpdate, bk as GiftCards, gP as GoogleGeocoder, gQ as GoogleGeocoderCreate, gS as GoogleGeocoderSort, gR as GoogleGeocoderUpdate, bm as GoogleGeocoders, gT as Import, gU as ImportCreate, gW as ImportSort, gV as ImportUpdate, bo as Imports, gX as InStockSubscription, gY as InStockSubscriptionCreate, g_ as InStockSubscriptionSort, gZ as InStockSubscriptionUpdate, bq as InStockSubscriptions, g$ as InventoryModel, h0 as InventoryModelCreate, h2 as InventoryModelSort, h1 as InventoryModelUpdate, bs as InventoryModels, h3 as InventoryReturnLocation, h4 as InventoryReturnLocationCreate, h6 as InventoryReturnLocationSort, h5 as InventoryReturnLocationUpdate, bu as InventoryReturnLocations, h7 as InventoryStockLocation, h8 as InventoryStockLocationCreate, ha as InventoryStockLocationSort, h9 as InventoryStockLocationUpdate, bw as InventoryStockLocations, hb as KlarnaGateway, hc as KlarnaGatewayCreate, he as KlarnaGatewaySort, hd as KlarnaGatewayUpdate, by as KlarnaGateways, hf as KlarnaPayment, hg as KlarnaPaymentCreate, hi as KlarnaPaymentSort, hh as KlarnaPaymentUpdate, bA as KlarnaPayments, hn as LineItem, ho as LineItemCreate, hj as LineItemOption, hk as LineItemOptionCreate, hm as LineItemOptionSort, hl as LineItemOptionUpdate, bC as LineItemOptions, hq as LineItemSort, hp as LineItemUpdate, bE as LineItems, hr as Link, hs as LinkCreate, hu as LinkSort, ht as LinkUpdate, bG as Links, n as ListMeta, L as ListResponse, x as ListableResource, w as ListableResourceType, hv as ManualGateway, hw as ManualGatewayCreate, hy as ManualGatewaySort, hx as ManualGatewayUpdate, bI as ManualGateways, hz as ManualTaxCalculator, hA as ManualTaxCalculatorCreate, hC as ManualTaxCalculatorSort, hB as ManualTaxCalculatorUpdate, bK as ManualTaxCalculators, hD as Market, hE as MarketCreate, hG as MarketSort, hF as MarketUpdate, bM as Markets, hH as Merchant, hI as MerchantCreate, hK as MerchantSort, hJ as MerchantUpdate, bO as Merchants, M as Metadata, hL as Notification, hM as NotificationCreate, hO as NotificationSort, hN as NotificationUpdate, bQ as Notifications, i5 as Order, hP as OrderAmountPromotionRule, hQ as OrderAmountPromotionRuleCreate, hS as OrderAmountPromotionRuleSort, hR as OrderAmountPromotionRuleUpdate, bS as OrderAmountPromotionRules, bU as OrderCopies, hT as OrderCopy, hU as OrderCopyCreate, hW as OrderCopySort, hV as OrderCopyUpdate, i6 as OrderCreate, bW as OrderFactories, hX as OrderFactory, hY as OrderFactorySort, i8 as OrderSort, i1 as OrderSubscription, i2 as OrderSubscriptionCreate, hZ as OrderSubscriptionItem, h_ as OrderSubscriptionItemCreate, i0 as OrderSubscriptionItemSort, h$ as OrderSubscriptionItemUpdate, bY as OrderSubscriptionItems, i4 as OrderSubscriptionSort, i3 as OrderSubscriptionUpdate, b_ as OrderSubscriptions, i7 as OrderUpdate, c0 as Orders, i9 as Organization, ia as OrganizationSort, c2 as Organizations, ib as Package, ic as PackageCreate, ie as PackageSort, id as PackageUpdate, c4 as Packages, ik as Parcel, il as ParcelCreate, ig as ParcelLineItem, ih as ParcelLineItemCreate, ij as ParcelLineItemSort, ii as ParcelLineItemUpdate, c6 as ParcelLineItems, io as ParcelSort, im as ParcelUpdate, c8 as Parcels, ip as PaymentGateway, iq as PaymentGatewaySort, ca as PaymentGateways, ir as PaymentMethod, is as PaymentMethodCreate, iu as PaymentMethodSort, it as PaymentMethodUpdate, cc as PaymentMethods, iv as PaymentOption, iw as PaymentOptionCreate, iy as PaymentOptionSort, ix as PaymentOptionUpdate, ce as PaymentOptions, iz as PaypalGateway, iA as PaypalGatewayCreate, iC as PaypalGatewaySort, iB as PaypalGatewayUpdate, cg as PaypalGateways, iD as PaypalPayment, iE as PaypalPaymentCreate, iG as PaypalPaymentSort, iF as PaypalPaymentUpdate, ci as PaypalPayments, iH as PercentageDiscountPromotion, iI as PercentageDiscountPromotionCreate, iK as PercentageDiscountPromotionSort, iJ as PercentageDiscountPromotionUpdate, ck as PercentageDiscountPromotions, iL as Pickup, iM as PickupSort, cm as Pickups, j3 as Price, j4 as PriceCreate, iN as PriceFrequencyTier, iO as PriceFrequencyTierCreate, iQ as PriceFrequencyTierSort, iP as PriceFrequencyTierUpdate, co as PriceFrequencyTiers, iV as PriceList, iW as PriceListCreate, iR as PriceListScheduler, iS as PriceListSchedulerCreate, iU as PriceListSchedulerSort, iT as PriceListSchedulerUpdate, cq as PriceListSchedulers, iY as PriceListSort, iX as PriceListUpdate, cs as PriceLists, j6 as PriceSort, iZ as PriceTier, i_ as PriceTierSort, cu as PriceTiers, j5 as PriceUpdate, i$ as PriceVolumeTier, j0 as PriceVolumeTierCreate, j2 as PriceVolumeTierSort, j1 as PriceVolumeTierUpdate, cw as PriceVolumeTiers, cy as Prices, j9 as Promotion, j7 as PromotionRule, j8 as PromotionRuleSort, cA as PromotionRules, ja as PromotionSort, cC as Promotions, a as QueryFields, h as QueryFilter, Q as QueryInclude, e as QueryPageNumber, f as QueryPageSize, d as QueryParams, c as QueryParamsList, b as QueryParamsRetrieve, g as QuerySort, cE as RecurringOrderCopies, jb as RecurringOrderCopy, jc as RecurringOrderCopyCreate, je as RecurringOrderCopySort, jd as RecurringOrderCopyUpdate, jf as Refund, jh as RefundSort, jg as RefundUpdate, cG as Refunds, ji as ReservedStock, jj as ReservedStockSort, cI as ReservedStocks, k as Resource, l as ResourceCreate, jk as ResourceError, jl as ResourceErrorSort, cK as ResourceErrors, q as ResourceFilter, j as ResourceId, o as ResourceRel, p as ResourceSort, R as ResourceType, t as ResourceTypeLock, m as ResourceUpdate, r as ResourcesConfig, s as ResourcesInitConfig, v as RetrievableResource, u as RetrievableResourceType, jq as Return, jr as ReturnCreate, jm as ReturnLineItem, jn as ReturnLineItemCreate, jp as ReturnLineItemSort, jo as ReturnLineItemUpdate, cM as ReturnLineItems, jt as ReturnSort, js as ReturnUpdate, cO as Returns, ju as SatispayGateway, jv as SatispayGatewayCreate, jx as SatispayGatewaySort, jw as SatispayGatewayUpdate, cQ as SatispayGateways, jy as SatispayPayment, jz as SatispayPaymentCreate, jB as SatispayPaymentSort, jA as SatispayPaymentUpdate, cS as SatispayPayments, jC as Shipment, jD as ShipmentCreate, jF as ShipmentSort, jE as ShipmentUpdate, cU as Shipments, cW as ShippingCategories, jG as ShippingCategory, jH as ShippingCategoryCreate, jJ as ShippingCategorySort, jI as ShippingCategoryUpdate, jM as ShippingMethod, jN as ShippingMethodCreate, jP as ShippingMethodSort, jK as ShippingMethodTier, jL as ShippingMethodTierSort, cY as ShippingMethodTiers, jO as ShippingMethodUpdate, c_ as ShippingMethods, jQ as ShippingWeightTier, jR as ShippingWeightTierCreate, jT as ShippingWeightTierSort, jS as ShippingWeightTierUpdate, d0 as ShippingWeightTiers, jU as ShippingZone, jV as ShippingZoneCreate, jX as ShippingZoneSort, jW as ShippingZoneUpdate, d2 as ShippingZones, kc as Sku, kd as SkuCreate, k4 as SkuList, k5 as SkuListCreate, jY as SkuListItem, jZ as SkuListItemCreate, j$ as SkuListItemSort, j_ as SkuListItemUpdate, d4 as SkuListItems, k0 as SkuListPromotionRule, k1 as SkuListPromotionRuleCreate, k3 as SkuListPromotionRuleSort, k2 as SkuListPromotionRuleUpdate, d6 as SkuListPromotionRules, k7 as SkuListSort, k6 as SkuListUpdate, d8 as SkuLists, k8 as SkuOption, k9 as SkuOptionCreate, kb as SkuOptionSort, ka as SkuOptionUpdate, da as SkuOptions, kf as SkuSort, ke as SkuUpdate, dc as Skus, kg as StockItem, kh as StockItemCreate, kj as StockItemSort, ki as StockItemUpdate, de as StockItems, kk as StockLineItem, kl as StockLineItemCreate, kn as StockLineItemSort, km as StockLineItemUpdate, dg as StockLineItems, ko as StockLocation, kp as StockLocationCreate, kr as StockLocationSort, kq as StockLocationUpdate, di as StockLocations, ks as StockReservation, kt as StockReservationCreate, kv as StockReservationSort, ku as StockReservationUpdate, dk as StockReservations, kw as StockTransfer, kx as StockTransferCreate, kz as StockTransferSort, ky as StockTransferUpdate, dm as StockTransfers, kA as Store, kB as StoreCreate, kD as StoreSort, kC as StoreUpdate, dp as Stores, kE as StripeGateway, kF as StripeGatewayCreate, kH as StripeGatewaySort, kG as StripeGatewayUpdate, dr as StripeGateways, kI as StripePayment, kJ as StripePaymentCreate, kL as StripePaymentSort, kK as StripePaymentUpdate, dt as StripePayments, kM as StripeTaxAccount, kN as StripeTaxAccountCreate, kP as StripeTaxAccountSort, kO as StripeTaxAccountUpdate, dv as StripeTaxAccounts, kQ as SubscriptionModel, kR as SubscriptionModelCreate, kT as SubscriptionModelSort, kS as SubscriptionModelUpdate, dx as SubscriptionModels, kU as Tag, kV as TagCreate, kX as TagSort, kW as TagUpdate, E as TaggableResource, T as TaggableResourceType, dz as Tags, kY as TalonOneAccount, kZ as TalonOneAccountCreate, k$ as TalonOneAccountSort, k_ as TalonOneAccountUpdate, dB as TalonOneAccounts, l0 as TaxCalculator, l1 as TaxCalculatorSort, dD as TaxCalculators, dF as TaxCategories, l2 as TaxCategory, l3 as TaxCategoryCreate, l5 as TaxCategorySort, l4 as TaxCategoryUpdate, l6 as TaxRule, l7 as TaxRuleCreate, l9 as TaxRuleSort, l8 as TaxRuleUpdate, dH as TaxRules, la as TaxjarAccount, lb as TaxjarAccountCreate, ld as TaxjarAccountSort, lc as TaxjarAccountUpdate, dJ as TaxjarAccounts, le as Transaction, lf as TransactionSort, dL as Transactions, z as UpdatableResource, U as UpdatableResourceType, lg as Version, lh as VersionSort, F as VersionableResource, V as VersionableResourceType, dN as Versions, li as VertexAccount, lj as VertexAccountCreate, ll as VertexAccountSort, lk as VertexAccountUpdate, dP as VertexAccounts, lm as Void, lo as VoidSort, ln as VoidUpdate, dR as Voids, lp as Webhook, lq as WebhookCreate, ls as WebhookSort, lr as WebhookUpdate, dT as Webhooks, lt as WireTransfer, lu as WireTransferCreate, lw as WireTransferSort, lv as WireTransferUpdate, dV as WireTransfers, G as addresses, I as adjustments, K as adyen_gateways, O as adyen_payments, S as application, X as attachments, Z as authorizations, $ as avalara_accounts, a1 as axerve_gateways, a3 as axerve_payments, a5 as bing_geocoders, a7 as braintree_gateways, a9 as braintree_payments, ab as bundles, ad as buy_x_pay_y_promotions, af as captures, ah as carrier_accounts, aj as checkout_com_gateways, al as checkout_com_payments, an as cleanups, ap as coupon_codes_promotion_rules, ar as coupon_recipients, at as coupons, av as custom_promotion_rules, ax as customer_addresses, az as customer_groups, aB as customer_password_resets, aD as customer_payment_sources, aF as customer_subscriptions, aH as customers, aJ as delivery_lead_times, aL as discount_engine_items, aN as discount_engines, aP as easypost_pickups, aR as event_callbacks, aT as event_stores, aV as events, aX as exports, aZ as external_gateways, a$ as external_payments, b1 as external_promotions, b3 as external_tax_calculators, b5 as fixed_amount_promotions, b7 as fixed_price_promotions, b9 as flex_promotions, bb as free_gift_promotions, bd as free_shipping_promotions, bf as geocoders, bh as gift_card_recipients, bj as gift_cards, bl as google_geocoders, bn as imports, bp as in_stock_subscriptions, br as inventory_models, bt as inventory_return_locations, bv as inventory_stock_locations, bx as klarna_gateways, bz as klarna_payments, bB as line_item_options, bD as line_items, bF as links, bH as manual_gateways, bJ as manual_tax_calculators, bL as markets, bN as merchants, bP as notifications, bR as order_amount_promotion_rules, bT as order_copies, bV as order_factories, bX as order_subscription_items, bZ as order_subscriptions, b$ as orders, c1 as organization, c3 as packages, c5 as parcel_line_items, c7 as parcels, c9 as payment_gateways, cb as payment_methods, cd as payment_options, cf as paypal_gateways, ch as paypal_payments, cj as percentage_discount_promotions, cl as pickups, cn as price_frequency_tiers, cp as price_list_schedulers, cr as price_lists, ct as price_tiers, cv as price_volume_tiers, cx as prices, cz as promotion_rules, cB as promotions, cD as recurring_order_copies, cF as refunds, cH as reserved_stocks, cJ as resource_errors, cL as return_line_items, cN as returns, cP as satispay_gateways, cR as satispay_payments, cT as shipments, cV as shipping_categories, cX as shipping_method_tiers, cZ as shipping_methods, c$ as shipping_weight_tiers, d1 as shipping_zones, d3 as sku_list_items, d5 as sku_list_promotion_rules, d7 as sku_lists, d9 as sku_options, db as skus, dd as stock_items, df as stock_line_items, dh as stock_locations, dj as stock_reservations, dl as stock_transfers, dn as stores, dq as stripe_gateways, ds as stripe_payments, du as stripe_tax_accounts, dw as subscription_models, dy as tags, dA as talon_one_accounts, dC as tax_calculators, dE as tax_categories, dG as tax_rules, dI as taxjar_accounts, dK as transactions, dM as versions, dO as vertex_accounts, dQ as voids, dS as webhooks, dU as wire_transfers } from './api-egU4nY4x.cjs';
|
6
6
|
export { CommerceLayerStatic } from './static.cjs';
|
7
7
|
export { E as ErrorObj, H as HeadersObj, R as RequestObj, a as ResponseObj } from './interceptor-k15jXzf0.cjs';
|
8
8
|
export { ApiError, SdkError } from './error.cjs';
|