@commercelayer/sdk
Version:
Commerce Layer Javascript SDK
570 lines (568 loc) • 18.9 kB
JavaScript
import './chunk-NEZXHBGE.js';
import { transactions_default } from './chunk-6ZJMVQ7T.js';
import { versions_default } from './chunk-BQ4VRKE7.js';
import { vertex_accounts_default } from './chunk-MHCLPVOI.js';
import { voids_default } from './chunk-LLYWUA5S.js';
import { webhooks_default } from './chunk-5BIP4OLZ.js';
import { wire_transfers_default } from './chunk-G74VYKRY.js';
import { stripe_tax_accounts_default } from './chunk-IQVSM3MS.js';
import { subscription_models_default } from './chunk-R5NSJSKB.js';
import { tags_default } from './chunk-N4COQM5Q.js';
import { talon_one_accounts_default } from './chunk-P7E2LQ6Q.js';
import { tax_calculators_default } from './chunk-T2VDBKD4.js';
import { tax_categories_default } from './chunk-SXPZRQBF.js';
import { tax_rules_default } from './chunk-NRZBSJPM.js';
import { taxjar_accounts_default } from './chunk-YIABS6K6.js';
import { stock_items_default } from './chunk-N35FM5P4.js';
import { stock_line_items_default } from './chunk-AWV5Y4SH.js';
import { stock_locations_default } from './chunk-ZYAGX4RM.js';
import { stock_reservations_default } from './chunk-43SLAYP5.js';
import { stock_transfers_default } from './chunk-HBDXHKBE.js';
import { stores_default } from './chunk-UWM5SGDS.js';
import { stripe_gateways_default } from './chunk-3SD7QN5M.js';
import { stripe_payments_default } from './chunk-VGMMPMUL.js';
import { shipping_methods_default } from './chunk-ZVS24BIO.js';
import { shipping_weight_tiers_default } from './chunk-LESXALEZ.js';
import { shipping_zones_default } from './chunk-F3UMNXXH.js';
import { sku_list_items_default } from './chunk-LF3CZYGK.js';
import { sku_list_promotion_rules_default } from './chunk-FUDBWYKD.js';
import { sku_lists_default } from './chunk-YZZQ7GVQ.js';
import { sku_options_default } from './chunk-FI7BWBCX.js';
import { skus_default } from './chunk-AT27CIRM.js';
import { resource_errors_default } from './chunk-U25QRMJY.js';
import { return_line_items_default } from './chunk-6PKJDHVC.js';
import { returns_default } from './chunk-62EOOGD4.js';
import { satispay_gateways_default } from './chunk-YPRABQMP.js';
import { satispay_payments_default } from './chunk-ZXEE43XR.js';
import { shipments_default } from './chunk-ZZ5BND4W.js';
import { shipping_categories_default } from './chunk-TWL4WEOL.js';
import { shipping_method_tiers_default } from './chunk-KVRZZTDE.js';
import { price_tiers_default } from './chunk-VRJJX4JV.js';
import { price_volume_tiers_default } from './chunk-JDFDWBXQ.js';
import { prices_default } from './chunk-E6MQFGEF.js';
import { promotion_rules_default } from './chunk-GKUFMSZL.js';
import { promotions_default } from './chunk-5ENDZCMK.js';
import { recurring_order_copies_default } from './chunk-MOKBZVUU.js';
import { refunds_default } from './chunk-ME2ZNNMA.js';
import { reserved_stocks_default } from './chunk-I2NZB6KN.js';
import { payment_options_default } from './chunk-65LSQZTV.js';
import { paypal_gateways_default } from './chunk-KDQRA5YH.js';
import { paypal_payments_default } from './chunk-UEDVN7C4.js';
import { percentage_discount_promotions_default } from './chunk-EZQ3QHF2.js';
import { pickups_default } from './chunk-TE3N57V6.js';
import { price_frequency_tiers_default } from './chunk-6SGYQRO6.js';
import { price_list_schedulers_default } from './chunk-4XQNILDJ.js';
import { price_lists_default } from './chunk-QD2VBPJU.js';
import { order_subscriptions_default } from './chunk-KAZKQXUO.js';
import { orders_default } from './chunk-HZQRIP3G.js';
import { organizations_default } from './chunk-JVQVN3JM.js';
import { packages_default } from './chunk-H5CKBXQS.js';
import { parcel_line_items_default } from './chunk-OA7RZ24N.js';
import { parcels_default } from './chunk-JAOFRM22.js';
import { payment_gateways_default } from './chunk-7AHYBTEX.js';
import { payment_methods_default } from './chunk-33CXJXIW.js';
import { manual_tax_calculators_default } from './chunk-4MCWJ5GT.js';
import { markets_default } from './chunk-6MVBC553.js';
import { merchants_default } from './chunk-WO4S2ZUQ.js';
import { notifications_default } from './chunk-F6TOLEEF.js';
import { order_amount_promotion_rules_default } from './chunk-CETB5FAI.js';
import { order_copies_default } from './chunk-A4MUL4NB.js';
import { order_factories_default } from './chunk-W2EFIUTW.js';
import { order_subscription_items_default } from './chunk-RJJQU44M.js';
import { inventory_return_locations_default } from './chunk-OL6PRNU5.js';
import { inventory_stock_locations_default } from './chunk-5TL34ZY6.js';
import { klarna_gateways_default } from './chunk-DEYOBMM5.js';
import { klarna_payments_default } from './chunk-I3ZMOPMJ.js';
import { line_item_options_default } from './chunk-JPKZBEAY.js';
import { line_items_default } from './chunk-CRPD5Q5Y.js';
import { links_default } from './chunk-67TJ6ALR.js';
import { manual_gateways_default } from './chunk-TWQ4THAG.js';
import { free_shipping_promotions_default } from './chunk-ZDTIKZYR.js';
import { geocoders_default } from './chunk-IHPFHOEJ.js';
import { gift_card_recipients_default } from './chunk-6EIS4TN3.js';
import { gift_cards_default } from './chunk-JWLNUOL5.js';
import { google_geocoders_default } from './chunk-2QBP2WHJ.js';
import { imports_default } from './chunk-7LH7NNTW.js';
import { in_stock_subscriptions_default } from './chunk-FI2PWG6C.js';
import { inventory_models_default } from './chunk-LE4I5AHS.js';
import { external_gateways_default } from './chunk-PENOPHMW.js';
import { external_payments_default } from './chunk-G5IOYKFS.js';
import { external_promotions_default } from './chunk-CYEVBUIW.js';
import { external_tax_calculators_default } from './chunk-EFU44R7O.js';
import { fixed_amount_promotions_default } from './chunk-NODJ4LG6.js';
import { fixed_price_promotions_default } from './chunk-HXAWT7GZ.js';
import { flex_promotions_default } from './chunk-G2Y67WFX.js';
import { free_gift_promotions_default } from './chunk-VDMJ7RC4.js';
import { delivery_lead_times_default } from './chunk-NEVN2SMR.js';
import { discount_engine_items_default } from './chunk-BT72RZCE.js';
import { discount_engines_default } from './chunk-FTYGJZZM.js';
import { easypost_pickups_default } from './chunk-QB7GGVK7.js';
import { event_callbacks_default } from './chunk-E2G3K7H4.js';
import { event_stores_default } from './chunk-QXYNFQDJ.js';
import { events_default } from './chunk-DPJDEC6A.js';
import { exports_default } from './chunk-C6ACTKJH.js';
import { coupons_default } from './chunk-XFHMLWZM.js';
import { custom_promotion_rules_default } from './chunk-PLIS7EYD.js';
import { customer_addresses_default } from './chunk-3FQU4LWE.js';
import { customer_groups_default } from './chunk-VEBN2D2K.js';
import { customer_password_resets_default } from './chunk-C47UWH7R.js';
import { customer_payment_sources_default } from './chunk-VKNNJ5CS.js';
import { customer_subscriptions_default } from './chunk-SDGSOWXI.js';
import { customers_default } from './chunk-DIE5NWNX.js';
import { buy_x_pay_y_promotions_default } from './chunk-UIPKMXES.js';
import { captures_default } from './chunk-P5GRTTMC.js';
import { carrier_accounts_default } from './chunk-VUVL5VPT.js';
import { checkout_com_gateways_default } from './chunk-HH3NIT7B.js';
import { checkout_com_payments_default } from './chunk-G2ZCHH4W.js';
import { cleanups_default } from './chunk-E2EVY45K.js';
import { coupon_codes_promotion_rules_default } from './chunk-MXT6VH7V.js';
import { coupon_recipients_default } from './chunk-BTLPF6RH.js';
import { authorizations_default } from './chunk-N5DBVBID.js';
import { avalara_accounts_default } from './chunk-MUMTGXL2.js';
import { axerve_gateways_default } from './chunk-4ATZM33H.js';
import { axerve_payments_default } from './chunk-LGOJTWKL.js';
import { bing_geocoders_default } from './chunk-VT5HP44I.js';
import { braintree_gateways_default } from './chunk-OS5DXUBX.js';
import { braintree_payments_default } from './chunk-Y3NZRCF4.js';
import { bundles_default } from './chunk-H6AQZ5TP.js';
import { addresses_default } from './chunk-3ZOHHEJR.js';
import { adjustments_default } from './chunk-WK3SIZUG.js';
import { adyen_gateways_default } from './chunk-PIYKFPYB.js';
import { adyen_payments_default } from './chunk-GRBPCPJQ.js';
import { applications_default } from './chunk-YTXFX5LA.js';
import { attachments_default } from './chunk-KIB4XYWP.js';
import { CommerceLayerClient } from './chunk-N54ON7TD.js';
import './chunk-XKERR6OR.js';
import './chunk-CHYP5F26.js';
import './chunk-UUY77JM3.js';
import './chunk-R2LRLUUY.js';
import './chunk-Z4LKTHPE.js';
import './chunk-4MDMKEMH.js';
import './chunk-ZU7GFVQ6.js';
import { debug_default } from './chunk-XD7GS4QW.js';
import './chunk-DGUM43GV.js';
// src/bundle.ts
var debug = debug_default("bundle");
var CommerceLayerBundle = class _CommerceLayerBundle extends CommerceLayerClient {
// ##__CL_RESOURCES_DEF_START__##
// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##
// ##__CL_RESOURCES_DEF_STOP__##
constructor(config) {
super(config);
debug("new commercelayer bundle instance %O", config);
}
static get(config) {
if (config) return _CommerceLayerBundle.cl = new _CommerceLayerBundle(config);
else if (!_CommerceLayerBundle.cl) throw new Error("CommerceLayer bundle client not initialized");
return _CommerceLayerBundle.cl;
}
// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }
// ##__CL_RESOURCES_LEAZY_LOADING_START__##
// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = api.##__RESOURCE_TYPE__##) }
// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##
// ##__CL_RESOURCES_ACCESSORS_ONLY_START__##
// ##__CL_RESOURCES_ACCESSORS_ONLY_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return api.##__RESOURCE_TYPE__## }
get addresses() {
return addresses_default;
}
get adjustments() {
return adjustments_default;
}
get adyen_gateways() {
return adyen_gateways_default;
}
get adyen_payments() {
return adyen_payments_default;
}
get application() {
return applications_default;
}
get attachments() {
return attachments_default;
}
get authorizations() {
return authorizations_default;
}
get avalara_accounts() {
return avalara_accounts_default;
}
get axerve_gateways() {
return axerve_gateways_default;
}
get axerve_payments() {
return axerve_payments_default;
}
get bing_geocoders() {
return bing_geocoders_default;
}
get braintree_gateways() {
return braintree_gateways_default;
}
get braintree_payments() {
return braintree_payments_default;
}
get bundles() {
return bundles_default;
}
get buy_x_pay_y_promotions() {
return buy_x_pay_y_promotions_default;
}
get captures() {
return captures_default;
}
get carrier_accounts() {
return carrier_accounts_default;
}
get checkout_com_gateways() {
return checkout_com_gateways_default;
}
get checkout_com_payments() {
return checkout_com_payments_default;
}
get cleanups() {
return cleanups_default;
}
get coupon_codes_promotion_rules() {
return coupon_codes_promotion_rules_default;
}
get coupon_recipients() {
return coupon_recipients_default;
}
get coupons() {
return coupons_default;
}
get custom_promotion_rules() {
return custom_promotion_rules_default;
}
get customer_addresses() {
return customer_addresses_default;
}
get customer_groups() {
return customer_groups_default;
}
get customer_password_resets() {
return customer_password_resets_default;
}
get customer_payment_sources() {
return customer_payment_sources_default;
}
get customer_subscriptions() {
return customer_subscriptions_default;
}
get customers() {
return customers_default;
}
get delivery_lead_times() {
return delivery_lead_times_default;
}
get discount_engine_items() {
return discount_engine_items_default;
}
get discount_engines() {
return discount_engines_default;
}
get easypost_pickups() {
return easypost_pickups_default;
}
get event_callbacks() {
return event_callbacks_default;
}
get event_stores() {
return event_stores_default;
}
get events() {
return events_default;
}
get exports() {
return exports_default;
}
get external_gateways() {
return external_gateways_default;
}
get external_payments() {
return external_payments_default;
}
get external_promotions() {
return external_promotions_default;
}
get external_tax_calculators() {
return external_tax_calculators_default;
}
get fixed_amount_promotions() {
return fixed_amount_promotions_default;
}
get fixed_price_promotions() {
return fixed_price_promotions_default;
}
get flex_promotions() {
return flex_promotions_default;
}
get free_gift_promotions() {
return free_gift_promotions_default;
}
get free_shipping_promotions() {
return free_shipping_promotions_default;
}
get geocoders() {
return geocoders_default;
}
get gift_card_recipients() {
return gift_card_recipients_default;
}
get gift_cards() {
return gift_cards_default;
}
get google_geocoders() {
return google_geocoders_default;
}
get imports() {
return imports_default;
}
get in_stock_subscriptions() {
return in_stock_subscriptions_default;
}
get inventory_models() {
return inventory_models_default;
}
get inventory_return_locations() {
return inventory_return_locations_default;
}
get inventory_stock_locations() {
return inventory_stock_locations_default;
}
get klarna_gateways() {
return klarna_gateways_default;
}
get klarna_payments() {
return klarna_payments_default;
}
get line_item_options() {
return line_item_options_default;
}
get line_items() {
return line_items_default;
}
get links() {
return links_default;
}
get manual_gateways() {
return manual_gateways_default;
}
get manual_tax_calculators() {
return manual_tax_calculators_default;
}
get markets() {
return markets_default;
}
get merchants() {
return merchants_default;
}
get notifications() {
return notifications_default;
}
get order_amount_promotion_rules() {
return order_amount_promotion_rules_default;
}
get order_copies() {
return order_copies_default;
}
get order_factories() {
return order_factories_default;
}
get order_subscription_items() {
return order_subscription_items_default;
}
get order_subscriptions() {
return order_subscriptions_default;
}
get orders() {
return orders_default;
}
get organization() {
return organizations_default;
}
get packages() {
return packages_default;
}
get parcel_line_items() {
return parcel_line_items_default;
}
get parcels() {
return parcels_default;
}
get payment_gateways() {
return payment_gateways_default;
}
get payment_methods() {
return payment_methods_default;
}
get payment_options() {
return payment_options_default;
}
get paypal_gateways() {
return paypal_gateways_default;
}
get paypal_payments() {
return paypal_payments_default;
}
get percentage_discount_promotions() {
return percentage_discount_promotions_default;
}
get pickups() {
return pickups_default;
}
get price_frequency_tiers() {
return price_frequency_tiers_default;
}
get price_list_schedulers() {
return price_list_schedulers_default;
}
get price_lists() {
return price_lists_default;
}
get price_tiers() {
return price_tiers_default;
}
get price_volume_tiers() {
return price_volume_tiers_default;
}
get prices() {
return prices_default;
}
get promotion_rules() {
return promotion_rules_default;
}
get promotions() {
return promotions_default;
}
get recurring_order_copies() {
return recurring_order_copies_default;
}
get refunds() {
return refunds_default;
}
get reserved_stocks() {
return reserved_stocks_default;
}
get resource_errors() {
return resource_errors_default;
}
get return_line_items() {
return return_line_items_default;
}
get returns() {
return returns_default;
}
get satispay_gateways() {
return satispay_gateways_default;
}
get satispay_payments() {
return satispay_payments_default;
}
get shipments() {
return shipments_default;
}
get shipping_categories() {
return shipping_categories_default;
}
get shipping_method_tiers() {
return shipping_method_tiers_default;
}
get shipping_methods() {
return shipping_methods_default;
}
get shipping_weight_tiers() {
return shipping_weight_tiers_default;
}
get shipping_zones() {
return shipping_zones_default;
}
get sku_list_items() {
return sku_list_items_default;
}
get sku_list_promotion_rules() {
return sku_list_promotion_rules_default;
}
get sku_lists() {
return sku_lists_default;
}
get sku_options() {
return sku_options_default;
}
get skus() {
return skus_default;
}
get stock_items() {
return stock_items_default;
}
get stock_line_items() {
return stock_line_items_default;
}
get stock_locations() {
return stock_locations_default;
}
get stock_reservations() {
return stock_reservations_default;
}
get stock_transfers() {
return stock_transfers_default;
}
get stores() {
return stores_default;
}
get stripe_gateways() {
return stripe_gateways_default;
}
get stripe_payments() {
return stripe_payments_default;
}
get stripe_tax_accounts() {
return stripe_tax_accounts_default;
}
get subscription_models() {
return subscription_models_default;
}
get tags() {
return tags_default;
}
get talon_one_accounts() {
return talon_one_accounts_default;
}
get tax_calculators() {
return tax_calculators_default;
}
get tax_categories() {
return tax_categories_default;
}
get tax_rules() {
return tax_rules_default;
}
get taxjar_accounts() {
return taxjar_accounts_default;
}
get transactions() {
return transactions_default;
}
get versions() {
return versions_default;
}
get vertex_accounts() {
return vertex_accounts_default;
}
get voids() {
return voids_default;
}
get webhooks() {
return webhooks_default;
}
get wire_transfers() {
return wire_transfers_default;
}
// ##__CL_RESOURCES_ACCESSORS_ONLY_STOP__##
};
function CommerceLayer(config) {
return CommerceLayerBundle.get(config);
}
export { CommerceLayer };
//# sourceMappingURL=bundle.js.map
//# sourceMappingURL=bundle.js.map