UNPKG

@commercelayer/sdk

Version:
566 lines (564 loc) 18.8 kB
import './chunk-3EX76AZW.js'; import { transactions_default } from './chunk-SYSNGHEG.js'; import { vertex_accounts_default } from './chunk-OAYIA3K5.js'; import { voids_default } from './chunk-ZCDDPJN5.js'; import { webhooks_default } from './chunk-LL2RPBAA.js'; import { wire_transfers_default } from './chunk-3IMSCYIC.js'; import { stripe_tax_accounts_default } from './chunk-GQWPXVMQ.js'; import { subscription_models_default } from './chunk-DX4A53QM.js'; import { tags_default } from './chunk-BW5ZHHDZ.js'; import { talon_one_accounts_default } from './chunk-XVHODDX7.js'; import { tax_calculators_default } from './chunk-RAXA7MPX.js'; import { tax_categories_default } from './chunk-ZJ5UZTQT.js'; import { tax_rules_default } from './chunk-2V4MFNM5.js'; import { taxjar_accounts_default } from './chunk-5ZBTQIMD.js'; import { stock_items_default } from './chunk-2RW3IPYK.js'; import { stock_line_items_default } from './chunk-2MSMUHNG.js'; import { stock_locations_default } from './chunk-WYHH5QI4.js'; import { stock_reservations_default } from './chunk-7XI2G4AH.js'; import { stock_transfers_default } from './chunk-Y6QGYCKB.js'; import { stores_default } from './chunk-BZB7R6N6.js'; import { stripe_gateways_default } from './chunk-V2SVBB32.js'; import { stripe_payments_default } from './chunk-E3UAM5IG.js'; import { shipping_methods_default } from './chunk-FRB2QR5J.js'; import { shipping_weight_tiers_default } from './chunk-FHQSNPMZ.js'; import { shipping_zones_default } from './chunk-2GZROWFO.js'; import { sku_list_items_default } from './chunk-AHVQFILB.js'; import { sku_list_promotion_rules_default } from './chunk-7QTFNA3O.js'; import { sku_lists_default } from './chunk-6ZH7H3BJ.js'; import { sku_options_default } from './chunk-CXKK7PCG.js'; import { skus_default } from './chunk-HWDD4SMM.js'; import { resource_errors_default } from './chunk-PF2U2L6L.js'; import { return_line_items_default } from './chunk-7TDUZM36.js'; import { returns_default } from './chunk-3JVNXYTI.js'; import { satispay_gateways_default } from './chunk-W4M3OCH3.js'; import { satispay_payments_default } from './chunk-VBECGZ7Y.js'; import { shipments_default } from './chunk-HL6MEEU5.js'; import { shipping_categories_default } from './chunk-GJ2M5XUU.js'; import { shipping_method_tiers_default } from './chunk-RX3HJ7IR.js'; import { price_tiers_default } from './chunk-PNUZIK2G.js'; import { price_volume_tiers_default } from './chunk-NZVKSLMS.js'; import { prices_default } from './chunk-KXU3VOOJ.js'; import { promotion_rules_default } from './chunk-4RHF7JN2.js'; import { promotions_default } from './chunk-5SPLJRDY.js'; import { recurring_order_copies_default } from './chunk-W5RMMV5S.js'; import { refunds_default } from './chunk-D3IOT5UK.js'; import { reserved_stocks_default } from './chunk-VNX3YIZW.js'; import { payment_options_default } from './chunk-XMSZHD4G.js'; import { paypal_gateways_default } from './chunk-RZGKZSXT.js'; import { paypal_payments_default } from './chunk-67DYVCOK.js'; import { percentage_discount_promotions_default } from './chunk-F2S3T7C7.js'; import { pickups_default } from './chunk-DJXJIVYA.js'; import { price_frequency_tiers_default } from './chunk-CW5BKX63.js'; import { price_list_schedulers_default } from './chunk-2LZNXUFY.js'; import { price_lists_default } from './chunk-6RISOLQJ.js'; import { order_subscriptions_default } from './chunk-VZWZ2NTW.js'; import { orders_default } from './chunk-5W4UAUXC.js'; import { organizations_default } from './chunk-PUTFLUDX.js'; import { packages_default } from './chunk-3W33J36Z.js'; import { parcel_line_items_default } from './chunk-ZRZ4KAEU.js'; import { parcels_default } from './chunk-D72VXGOI.js'; import { payment_gateways_default } from './chunk-LGIROVQI.js'; import { payment_methods_default } from './chunk-7XCMIHK2.js'; import { manual_tax_calculators_default } from './chunk-V2O6SHTJ.js'; import { markets_default } from './chunk-5UWLI25I.js'; import { merchants_default } from './chunk-HZLPTAKA.js'; import { notifications_default } from './chunk-E4UQRXQX.js'; import { order_amount_promotion_rules_default } from './chunk-DKUADGYA.js'; import { order_copies_default } from './chunk-YMEGKTEP.js'; import { order_factories_default } from './chunk-AFTJ3CBC.js'; import { order_subscription_items_default } from './chunk-MIYTWFUU.js'; import { inventory_return_locations_default } from './chunk-ADVFX6Q4.js'; import { inventory_stock_locations_default } from './chunk-62N4SFGW.js'; import { klarna_gateways_default } from './chunk-IHYX6NQH.js'; import { klarna_payments_default } from './chunk-WISHL4PL.js'; import { line_item_options_default } from './chunk-JCI5Z3SY.js'; import { line_items_default } from './chunk-6OJKY6R2.js'; import { links_default } from './chunk-W2T4MBV4.js'; import { manual_gateways_default } from './chunk-CXLQBCS4.js'; import { free_shipping_promotions_default } from './chunk-AYUBT6TU.js'; import { geocoders_default } from './chunk-WIM4ZWWT.js'; import { gift_card_recipients_default } from './chunk-K6QROUP2.js'; import { gift_cards_default } from './chunk-JF6PN4CF.js'; import { google_geocoders_default } from './chunk-6A63W6IB.js'; import { imports_default } from './chunk-DYSUBTJJ.js'; import { in_stock_subscriptions_default } from './chunk-GZGQSKLF.js'; import { inventory_models_default } from './chunk-AWMC6AUP.js'; import { external_gateways_default } from './chunk-TIA53DAH.js'; import { external_payments_default } from './chunk-LA43RTZ4.js'; import { external_promotions_default } from './chunk-WYMOOVYG.js'; import { external_tax_calculators_default } from './chunk-YDOTSBF3.js'; import { fixed_amount_promotions_default } from './chunk-ATVY532N.js'; import { fixed_price_promotions_default } from './chunk-CCBBYTAJ.js'; import { flex_promotions_default } from './chunk-3WTTRPSK.js'; import { free_gift_promotions_default } from './chunk-BPMSXN65.js'; import { delivery_lead_times_default } from './chunk-ATLMNH6A.js'; import { discount_engine_items_default } from './chunk-UZGOFUD6.js'; import { discount_engines_default } from './chunk-YJXFSO4R.js'; import { easypost_pickups_default } from './chunk-WL6XIY5R.js'; import { event_callbacks_default } from './chunk-RYNUHEGX.js'; import { event_stores_default } from './chunk-AEUJD27H.js'; import { events_default } from './chunk-ZRAHMGDW.js'; import { exports_default } from './chunk-C5C3LBW5.js'; import { coupons_default } from './chunk-U3UQ2KCY.js'; import { custom_promotion_rules_default } from './chunk-IRFX6LWG.js'; import { customer_addresses_default } from './chunk-AIRHVW6S.js'; import { customer_groups_default } from './chunk-3NOES4EX.js'; import { customer_password_resets_default } from './chunk-XBFVGK3J.js'; import { customer_payment_sources_default } from './chunk-I4A63K2Q.js'; import { customer_subscriptions_default } from './chunk-5RQOHU5P.js'; import { customers_default } from './chunk-6Q3CIOEF.js'; import { buy_x_pay_y_promotions_default } from './chunk-55TQRLLK.js'; import { captures_default } from './chunk-UFTGYB2P.js'; import { carrier_accounts_default } from './chunk-P45FTR27.js'; import { checkout_com_gateways_default } from './chunk-ODMNRKW7.js'; import { checkout_com_payments_default } from './chunk-FNQRYCRE.js'; import { cleanups_default } from './chunk-PCTX2ZF3.js'; import { coupon_codes_promotion_rules_default } from './chunk-S4TPKIG5.js'; import { coupon_recipients_default } from './chunk-LAYXKEVY.js'; import { authorizations_default } from './chunk-LXLCAD45.js'; import { avalara_accounts_default } from './chunk-WIVDPOV2.js'; import { axerve_gateways_default } from './chunk-QSSLQRDU.js'; import { axerve_payments_default } from './chunk-U2QBVG5P.js'; import { bing_geocoders_default } from './chunk-CK4H22TM.js'; import { braintree_gateways_default } from './chunk-HJFTJL3E.js'; import { braintree_payments_default } from './chunk-Z2XON3QS.js'; import { bundles_default } from './chunk-3BDF64VW.js'; import { addresses_default } from './chunk-4IFBXO5W.js'; import { adjustments_default } from './chunk-6PB2M2MP.js'; import { adyen_gateways_default } from './chunk-KX2TRARQ.js'; import { adyen_payments_default } from './chunk-U7NPDLRU.js'; import { applications_default } from './chunk-SWSX4KRR.js'; import { attachments_default } from './chunk-4DUH2RXG.js'; import { CommerceLayerClient } from './chunk-O35AP4HQ.js'; import './chunk-XDRKC6JM.js'; import './chunk-2D7XHAVQ.js'; import './chunk-IKCYKGYL.js'; import './chunk-4MV6VICV.js'; import './chunk-Z4LKTHPE.js'; import './chunk-S4AILUR7.js'; import './chunk-PIHQS6OG.js'; import { debug_default } from './chunk-22RVT2J2.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 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