@commercelayer/sdk 7.0.0-rc.7 → 7.0.0-rc.8
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/bundle.cjs +11 -4
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +1 -0
- package/lib/bundle.d.ts +1 -0
- package/lib/bundle.js +11 -4
- package/lib/bundle.js.map +1 -1
- package/lib/{chunk-WDDKB6AW.cjs → chunk-6EDJTG3X.cjs} +4 -4
- package/lib/{chunk-WDDKB6AW.cjs.map → chunk-6EDJTG3X.cjs.map} +1 -1
- package/lib/{chunk-H2JICBVP.js → chunk-BYRFMGBQ.js} +2 -2
- package/lib/chunk-BYRFMGBQ.js.map +1 -0
- package/lib/{chunk-TW3FNRPC.js → chunk-UB4WKBUO.js} +3 -3
- package/lib/{chunk-TW3FNRPC.js.map → chunk-UB4WKBUO.js.map} +1 -1
- package/lib/{chunk-ZUVEU45V.cjs → chunk-ZLHZGR5I.cjs} +2 -2
- package/lib/chunk-ZLHZGR5I.cjs.map +1 -0
- package/lib/commercelayer.cjs +5 -5
- package/lib/commercelayer.d.cts +1 -1
- package/lib/commercelayer.d.ts +1 -1
- package/lib/commercelayer.js +1 -1
- package/lib/index.cjs +5 -5
- package/lib/index.js +2 -2
- package/lib/static.cjs +3 -3
- package/lib/static.js +2 -2
- package/package.json +1 -1
- package/lib/chunk-H2JICBVP.js.map +0 -1
- package/lib/chunk-ZUVEU45V.cjs.map +0 -1
package/lib/bundle.cjs
CHANGED
@@ -132,7 +132,7 @@ var chunkH4PUXGNI_cjs = require('./chunk-H4PUXGNI.cjs');
|
|
132
132
|
var chunkLCLXLB2R_cjs = require('./chunk-LCLXLB2R.cjs');
|
133
133
|
var chunkP3NADEGE_cjs = require('./chunk-P3NADEGE.cjs');
|
134
134
|
var chunkSGWRNEJB_cjs = require('./chunk-SGWRNEJB.cjs');
|
135
|
-
var
|
135
|
+
var chunkZLHZGR5I_cjs = require('./chunk-ZLHZGR5I.cjs');
|
136
136
|
require('./chunk-QYDOENWU.cjs');
|
137
137
|
require('./chunk-YY5ENJSH.cjs');
|
138
138
|
require('./chunk-WAL76UPE.cjs');
|
@@ -140,11 +140,12 @@ require('./chunk-SRW7OWVS.cjs');
|
|
140
140
|
require('./chunk-N753UD4K.cjs');
|
141
141
|
require('./chunk-X6PHZA6P.cjs');
|
142
142
|
require('./chunk-IKHD5UQP.cjs');
|
143
|
-
require('./chunk-JVF5KY2J.cjs');
|
143
|
+
var chunkJVF5KY2J_cjs = require('./chunk-JVF5KY2J.cjs');
|
144
144
|
require('./chunk-JEQ2X3Z6.cjs');
|
145
145
|
|
146
146
|
// src/bundle.ts
|
147
|
-
var
|
147
|
+
var debug = chunkJVF5KY2J_cjs.debug_default("bundle");
|
148
|
+
var CommerceLayerBundle = class _CommerceLayerBundle extends chunkZLHZGR5I_cjs.CommerceLayerClient {
|
148
149
|
// ##__CL_RESOURCES_DEF_START__##
|
149
150
|
// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##
|
150
151
|
#addresses;
|
@@ -281,6 +282,12 @@ var CommerceLayerBundle = class extends chunkZUVEU45V_cjs.CommerceLayerClient {
|
|
281
282
|
// ##__CL_RESOURCES_DEF_STOP__##
|
282
283
|
constructor(config) {
|
283
284
|
super(config);
|
285
|
+
debug("new commercelayer bundle instance %O", config);
|
286
|
+
}
|
287
|
+
static get(config) {
|
288
|
+
if (config) return _CommerceLayerBundle.cl = new _CommerceLayerBundle(config);
|
289
|
+
else if (!_CommerceLayerBundle.cl) throw new Error("CommerceLayer bundle client not initialized");
|
290
|
+
return _CommerceLayerBundle.cl;
|
284
291
|
}
|
285
292
|
// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }
|
286
293
|
// ##__CL_RESOURCES_LEAZY_LOADING_START__##
|
@@ -681,7 +688,7 @@ var CommerceLayerBundle = class extends chunkZUVEU45V_cjs.CommerceLayerClient {
|
|
681
688
|
// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##
|
682
689
|
};
|
683
690
|
function CommerceLayer(config) {
|
684
|
-
return
|
691
|
+
return CommerceLayerBundle.get(config);
|
685
692
|
}
|
686
693
|
|
687
694
|
exports.CommerceLayer = CommerceLayer;
|
package/lib/bundle.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/bundle.ts"],"names":["CommerceLayerClient","addresses_default","adjustments_default","adyen_gateways_default","adyen_payments_default","applications_default","attachments_default","authorizations_default","avalara_accounts_default","axerve_gateways_default","axerve_payments_default","bing_geocoders_default","braintree_gateways_default","braintree_payments_default","bundles_default","buy_x_pay_y_promotions_default","captures_default","carrier_accounts_default","checkout_com_gateways_default","checkout_com_payments_default","cleanups_default","coupon_codes_promotion_rules_default","coupon_recipients_default","coupons_default","custom_promotion_rules_default","customer_addresses_default","customer_groups_default","customer_password_resets_default","customer_payment_sources_default","customer_subscriptions_default","customers_default","delivery_lead_times_default","discount_engine_items_default","discount_engines_default","easypost_pickups_default","event_callbacks_default","events_default","exports_default","external_gateways_default","external_payments_default","external_promotions_default","external_tax_calculators_default","fixed_amount_promotions_default","fixed_price_promotions_default","flex_promotions_default","free_gift_promotions_default","free_shipping_promotions_default","geocoders_default","gift_card_recipients_default","gift_cards_default","google_geocoders_default","imports_default","in_stock_subscriptions_default","inventory_models_default","inventory_return_locations_default","inventory_stock_locations_default","klarna_gateways_default","klarna_payments_default","line_item_options_default","line_items_default","links_default","manual_gateways_default","manual_tax_calculators_default","markets_default","merchants_default","notifications_default","order_amount_promotion_rules_default","order_copies_default","order_factories_default","order_subscription_items_default","order_subscriptions_default","orders_default","organizations_default","packages_default","parcel_line_items_default","parcels_default","payment_gateways_default","payment_methods_default","payment_options_default","paypal_gateways_default","paypal_payments_default","percentage_discount_promotions_default","pickups_default","price_frequency_tiers_default","price_list_schedulers_default","price_lists_default","price_tiers_default","price_volume_tiers_default","prices_default","promotion_rules_default","promotions_default","recurring_order_copies_default","refunds_default","reserved_stocks_default","resource_errors_default","return_line_items_default","returns_default","satispay_gateways_default","satispay_payments_default","shipments_default","shipping_categories_default","shipping_method_tiers_default","shipping_methods_default","shipping_weight_tiers_default","shipping_zones_default","sku_list_items_default","sku_list_promotion_rules_default","sku_lists_default","sku_options_default","skus_default","stock_items_default","stock_line_items_default","stock_locations_default","stock_reservations_default","stock_transfers_default","stores_default","stripe_gateways_default","stripe_payments_default","stripe_tax_accounts_default","subscription_models_default","tags_default","talon_one_accounts_default","tax_calculators_default","tax_categories_default","tax_rules_default","taxjar_accounts_default","transactions_default","versions_default","vertex_accounts_default","voids_default","webhooks_default","wire_transfers_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,mBAAA,GAAN,cAAkCA,qCAAoB,CAAA;AAAA;AAAA;AAAA,EAIrD,UAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,eAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,eAAA;AAAA,EACA,mBAAA;AAAA,EACA,mBAAA;AAAA,EACA,QAAA;AAAA,EACA,uBAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,sBAAA;AAAA,EACA,sBAAA;AAAA,EACA,SAAA;AAAA,EACA,6BAAA;AAAA,EACA,kBAAA;AAAA,EACA,QAAA;AAAA,EACA,uBAAA;AAAA,EACA,mBAAA;AAAA,EACA,gBAAA;AAAA,EACA,yBAAA;AAAA,EACA,yBAAA;AAAA,EACA,uBAAA;AAAA,EACA,UAAA;AAAA,EACA,oBAAA;AAAA,EAC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,gBAAuB,GAAAC,yCAAA,CAAA;AAAA;AAAiB,EAC1H,IAAI,YAAiC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,aAAkB,KAAA,IAAA,CAAK,aAAoB,GAAAC,sCAAA,CAAA;AAAA;AAAc,EAC5G,IAAI,QAAyB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,SAAc,KAAA,IAAA,CAAK,SAAgB,GAAAC,kCAAA,CAAA;AAAA;AAAU,EACxF,IAAI,eAAsC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,gBAAqB,KAAA,IAAA,CAAK,gBAAuB,GAAAC,yCAAA,CAAA;AAAA;AAAiB,EAC1H,IAAI,KAAmB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,MAAW,KAAA,IAAA,CAAK,MAAa,GAAAC,+BAAA,CAAA;AAAA;AAAO,EACzE,IAAI,QAAyB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,SAAc,KAAA,IAAA,CAAK,SAAgB,GAAAC,kCAAA,CAAA;AAAA;AAAU,EACxF,IAAI,cAAoC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,eAAoB,KAAA,IAAA,CAAK,eAAsB,GAAAC,wCAAA,CAAA;AAAA;AAAgB;AAGtH,CAAA;AAIA,SAAS,cAAc,MAAsD,EAAA;AAC5E,EAAO,OAAA,IAAI,oBAAoB,MAAM,CAAA;AACtC","file":"bundle.cjs","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t#addresses?: api.Addresses\n\t#adjustments?: api.Adjustments\n\t#adyen_gateways?: api.AdyenGateways\n\t#adyen_payments?: api.AdyenPayments\n\t#application?: api.Applications\n\t#attachments?: api.Attachments\n\t#authorizations?: api.Authorizations\n\t#avalara_accounts?: api.AvalaraAccounts\n\t#axerve_gateways?: api.AxerveGateways\n\t#axerve_payments?: api.AxervePayments\n\t#bing_geocoders?: api.BingGeocoders\n\t#braintree_gateways?: api.BraintreeGateways\n\t#braintree_payments?: api.BraintreePayments\n\t#bundles?: api.Bundles\n\t#buy_x_pay_y_promotions?: api.BuyXPayYPromotions\n\t#captures?: api.Captures\n\t#carrier_accounts?: api.CarrierAccounts\n\t#checkout_com_gateways?: api.CheckoutComGateways\n\t#checkout_com_payments?: api.CheckoutComPayments\n\t#cleanups?: api.Cleanups\n\t#coupon_codes_promotion_rules?: api.CouponCodesPromotionRules\n\t#coupon_recipients?: api.CouponRecipients\n\t#coupons?: api.Coupons\n\t#custom_promotion_rules?: api.CustomPromotionRules\n\t#customer_addresses?: api.CustomerAddresses\n\t#customer_groups?: api.CustomerGroups\n\t#customer_password_resets?: api.CustomerPasswordResets\n\t#customer_payment_sources?: api.CustomerPaymentSources\n\t#customer_subscriptions?: api.CustomerSubscriptions\n\t#customers?: api.Customers\n\t#delivery_lead_times?: api.DeliveryLeadTimes\n\t#discount_engine_items?: api.DiscountEngineItems\n\t#discount_engines?: api.DiscountEngines\n\t#easypost_pickups?: api.EasypostPickups\n\t#event_callbacks?: api.EventCallbacks\n\t#events?: api.Events\n\t#exports?: api.Exports\n\t#external_gateways?: api.ExternalGateways\n\t#external_payments?: api.ExternalPayments\n\t#external_promotions?: api.ExternalPromotions\n\t#external_tax_calculators?: api.ExternalTaxCalculators\n\t#fixed_amount_promotions?: api.FixedAmountPromotions\n\t#fixed_price_promotions?: api.FixedPricePromotions\n\t#flex_promotions?: api.FlexPromotions\n\t#free_gift_promotions?: api.FreeGiftPromotions\n\t#free_shipping_promotions?: api.FreeShippingPromotions\n\t#geocoders?: api.Geocoders\n\t#gift_card_recipients?: api.GiftCardRecipients\n\t#gift_cards?: api.GiftCards\n\t#google_geocoders?: api.GoogleGeocoders\n\t#imports?: api.Imports\n\t#in_stock_subscriptions?: api.InStockSubscriptions\n\t#inventory_models?: api.InventoryModels\n\t#inventory_return_locations?: api.InventoryReturnLocations\n\t#inventory_stock_locations?: api.InventoryStockLocations\n\t#klarna_gateways?: api.KlarnaGateways\n\t#klarna_payments?: api.KlarnaPayments\n\t#line_item_options?: api.LineItemOptions\n\t#line_items?: api.LineItems\n\t#links?: api.Links\n\t#manual_gateways?: api.ManualGateways\n\t#manual_tax_calculators?: api.ManualTaxCalculators\n\t#markets?: api.Markets\n\t#merchants?: api.Merchants\n\t#notifications?: api.Notifications\n\t#order_amount_promotion_rules?: api.OrderAmountPromotionRules\n\t#order_copies?: api.OrderCopies\n\t#order_factories?: api.OrderFactories\n\t#order_subscription_items?: api.OrderSubscriptionItems\n\t#order_subscriptions?: api.OrderSubscriptions\n\t#orders?: api.Orders\n\t#organization?: api.Organizations\n\t#packages?: api.Packages\n\t#parcel_line_items?: api.ParcelLineItems\n\t#parcels?: api.Parcels\n\t#payment_gateways?: api.PaymentGateways\n\t#payment_methods?: api.PaymentMethods\n\t#payment_options?: api.PaymentOptions\n\t#paypal_gateways?: api.PaypalGateways\n\t#paypal_payments?: api.PaypalPayments\n\t#percentage_discount_promotions?: api.PercentageDiscountPromotions\n\t#pickups?: api.Pickups\n\t#price_frequency_tiers?: api.PriceFrequencyTiers\n\t#price_list_schedulers?: api.PriceListSchedulers\n\t#price_lists?: api.PriceLists\n\t#price_tiers?: api.PriceTiers\n\t#price_volume_tiers?: api.PriceVolumeTiers\n\t#prices?: api.Prices\n\t#promotion_rules?: api.PromotionRules\n\t#promotions?: api.Promotions\n\t#recurring_order_copies?: api.RecurringOrderCopies\n\t#refunds?: api.Refunds\n\t#reserved_stocks?: api.ReservedStocks\n\t#resource_errors?: api.ResourceErrors\n\t#return_line_items?: api.ReturnLineItems\n\t#returns?: api.Returns\n\t#satispay_gateways?: api.SatispayGateways\n\t#satispay_payments?: api.SatispayPayments\n\t#shipments?: api.Shipments\n\t#shipping_categories?: api.ShippingCategories\n\t#shipping_method_tiers?: api.ShippingMethodTiers\n\t#shipping_methods?: api.ShippingMethods\n\t#shipping_weight_tiers?: api.ShippingWeightTiers\n\t#shipping_zones?: api.ShippingZones\n\t#sku_list_items?: api.SkuListItems\n\t#sku_list_promotion_rules?: api.SkuListPromotionRules\n\t#sku_lists?: api.SkuLists\n\t#sku_options?: api.SkuOptions\n\t#skus?: api.Skus\n\t#stock_items?: api.StockItems\n\t#stock_line_items?: api.StockLineItems\n\t#stock_locations?: api.StockLocations\n\t#stock_reservations?: api.StockReservations\n\t#stock_transfers?: api.StockTransfers\n\t#stores?: api.Stores\n\t#stripe_gateways?: api.StripeGateways\n\t#stripe_payments?: api.StripePayments\n\t#stripe_tax_accounts?: api.StripeTaxAccounts\n\t#subscription_models?: api.SubscriptionModels\n\t#tags?: api.Tags\n\t#talon_one_accounts?: api.TalonOneAccounts\n\t#tax_calculators?: api.TaxCalculators\n\t#tax_categories?: api.TaxCategories\n\t#tax_rules?: api.TaxRules\n\t#taxjar_accounts?: api.TaxjarAccounts\n\t#transactions?: api.Transactions\n\t#versions?: api.Versions\n\t#vertex_accounts?: api.VertexAccounts\n\t#voids?: api.Voids\n\t#webhooks?: api.Webhooks\n\t#wire_transfers?: api.WireTransfers\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(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// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__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__## = api.##__RESOURCE_TYPE__##) }\n\tget addresses(): api.Addresses { return this.#addresses || (this.#addresses = api.addresses) }\n\tget adjustments(): api.Adjustments { return this.#adjustments || (this.#adjustments = api.adjustments) }\n\tget adyen_gateways(): api.AdyenGateways { return this.#adyen_gateways || (this.#adyen_gateways = api.adyen_gateways) }\n\tget adyen_payments(): api.AdyenPayments { return this.#adyen_payments || (this.#adyen_payments = api.adyen_payments) }\n\tget application(): api.Applications { return this.#application || (this.#application = api.application) }\n\tget attachments(): api.Attachments { return this.#attachments || (this.#attachments = api.attachments) }\n\tget authorizations(): api.Authorizations { return this.#authorizations || (this.#authorizations = api.authorizations) }\n\tget avalara_accounts(): api.AvalaraAccounts { return this.#avalara_accounts || (this.#avalara_accounts = api.avalara_accounts) }\n\tget axerve_gateways(): api.AxerveGateways { return this.#axerve_gateways || (this.#axerve_gateways = api.axerve_gateways) }\n\tget axerve_payments(): api.AxervePayments { return this.#axerve_payments || (this.#axerve_payments = api.axerve_payments) }\n\tget bing_geocoders(): api.BingGeocoders { return this.#bing_geocoders || (this.#bing_geocoders = api.bing_geocoders) }\n\tget braintree_gateways(): api.BraintreeGateways { return this.#braintree_gateways || (this.#braintree_gateways = api.braintree_gateways) }\n\tget braintree_payments(): api.BraintreePayments { return this.#braintree_payments || (this.#braintree_payments = api.braintree_payments) }\n\tget bundles(): api.Bundles { return this.#bundles || (this.#bundles = api.bundles) }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return this.#buy_x_pay_y_promotions || (this.#buy_x_pay_y_promotions = api.buy_x_pay_y_promotions) }\n\tget captures(): api.Captures { return this.#captures || (this.#captures = api.captures) }\n\tget carrier_accounts(): api.CarrierAccounts { return this.#carrier_accounts || (this.#carrier_accounts = api.carrier_accounts) }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return this.#checkout_com_gateways || (this.#checkout_com_gateways = api.checkout_com_gateways) }\n\tget checkout_com_payments(): api.CheckoutComPayments { return this.#checkout_com_payments || (this.#checkout_com_payments = api.checkout_com_payments) }\n\tget cleanups(): api.Cleanups { return this.#cleanups || (this.#cleanups = api.cleanups) }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return this.#coupon_codes_promotion_rules || (this.#coupon_codes_promotion_rules = api.coupon_codes_promotion_rules) }\n\tget coupon_recipients(): api.CouponRecipients { return this.#coupon_recipients || (this.#coupon_recipients = api.coupon_recipients) }\n\tget coupons(): api.Coupons { return this.#coupons || (this.#coupons = api.coupons) }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return this.#custom_promotion_rules || (this.#custom_promotion_rules = api.custom_promotion_rules) }\n\tget customer_addresses(): api.CustomerAddresses { return this.#customer_addresses || (this.#customer_addresses = api.customer_addresses) }\n\tget customer_groups(): api.CustomerGroups { return this.#customer_groups || (this.#customer_groups = api.customer_groups) }\n\tget customer_password_resets(): api.CustomerPasswordResets { return this.#customer_password_resets || (this.#customer_password_resets = api.customer_password_resets) }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return this.#customer_payment_sources || (this.#customer_payment_sources = api.customer_payment_sources) }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return this.#customer_subscriptions || (this.#customer_subscriptions = api.customer_subscriptions) }\n\tget customers(): api.Customers { return this.#customers || (this.#customers = api.customers) }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return this.#delivery_lead_times || (this.#delivery_lead_times = api.delivery_lead_times) }\n\tget discount_engine_items(): api.DiscountEngineItems { return this.#discount_engine_items || (this.#discount_engine_items = api.discount_engine_items) }\n\tget discount_engines(): api.DiscountEngines { return this.#discount_engines || (this.#discount_engines = api.discount_engines) }\n\tget easypost_pickups(): api.EasypostPickups { return this.#easypost_pickups || (this.#easypost_pickups = api.easypost_pickups) }\n\tget event_callbacks(): api.EventCallbacks { return this.#event_callbacks || (this.#event_callbacks = api.event_callbacks) }\n\tget events(): api.Events { return this.#events || (this.#events = api.events) }\n\tget exports(): api.Exports { return this.#exports || (this.#exports = api.exports) }\n\tget external_gateways(): api.ExternalGateways { return this.#external_gateways || (this.#external_gateways = api.external_gateways) }\n\tget external_payments(): api.ExternalPayments { return this.#external_payments || (this.#external_payments = api.external_payments) }\n\tget external_promotions(): api.ExternalPromotions { return this.#external_promotions || (this.#external_promotions = api.external_promotions) }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return this.#external_tax_calculators || (this.#external_tax_calculators = api.external_tax_calculators) }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return this.#fixed_amount_promotions || (this.#fixed_amount_promotions = api.fixed_amount_promotions) }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return this.#fixed_price_promotions || (this.#fixed_price_promotions = api.fixed_price_promotions) }\n\tget flex_promotions(): api.FlexPromotions { return this.#flex_promotions || (this.#flex_promotions = api.flex_promotions) }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return this.#free_gift_promotions || (this.#free_gift_promotions = api.free_gift_promotions) }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return this.#free_shipping_promotions || (this.#free_shipping_promotions = api.free_shipping_promotions) }\n\tget geocoders(): api.Geocoders { return this.#geocoders || (this.#geocoders = api.geocoders) }\n\tget gift_card_recipients(): api.GiftCardRecipients { return this.#gift_card_recipients || (this.#gift_card_recipients = api.gift_card_recipients) }\n\tget gift_cards(): api.GiftCards { return this.#gift_cards || (this.#gift_cards = api.gift_cards) }\n\tget google_geocoders(): api.GoogleGeocoders { return this.#google_geocoders || (this.#google_geocoders = api.google_geocoders) }\n\tget imports(): api.Imports { return this.#imports || (this.#imports = api.imports) }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return this.#in_stock_subscriptions || (this.#in_stock_subscriptions = api.in_stock_subscriptions) }\n\tget inventory_models(): api.InventoryModels { return this.#inventory_models || (this.#inventory_models = api.inventory_models) }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return this.#inventory_return_locations || (this.#inventory_return_locations = api.inventory_return_locations) }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return this.#inventory_stock_locations || (this.#inventory_stock_locations = api.inventory_stock_locations) }\n\tget klarna_gateways(): api.KlarnaGateways { return this.#klarna_gateways || (this.#klarna_gateways = api.klarna_gateways) }\n\tget klarna_payments(): api.KlarnaPayments { return this.#klarna_payments || (this.#klarna_payments = api.klarna_payments) }\n\tget line_item_options(): api.LineItemOptions { return this.#line_item_options || (this.#line_item_options = api.line_item_options) }\n\tget line_items(): api.LineItems { return this.#line_items || (this.#line_items = api.line_items) }\n\tget links(): api.Links { return this.#links || (this.#links = api.links) }\n\tget manual_gateways(): api.ManualGateways { return this.#manual_gateways || (this.#manual_gateways = api.manual_gateways) }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return this.#manual_tax_calculators || (this.#manual_tax_calculators = api.manual_tax_calculators) }\n\tget markets(): api.Markets { return this.#markets || (this.#markets = api.markets) }\n\tget merchants(): api.Merchants { return this.#merchants || (this.#merchants = api.merchants) }\n\tget notifications(): api.Notifications { return this.#notifications || (this.#notifications = api.notifications) }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return this.#order_amount_promotion_rules || (this.#order_amount_promotion_rules = api.order_amount_promotion_rules) }\n\tget order_copies(): api.OrderCopies { return this.#order_copies || (this.#order_copies = api.order_copies) }\n\tget order_factories(): api.OrderFactories { return this.#order_factories || (this.#order_factories = api.order_factories) }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return this.#order_subscription_items || (this.#order_subscription_items = api.order_subscription_items) }\n\tget order_subscriptions(): api.OrderSubscriptions { return this.#order_subscriptions || (this.#order_subscriptions = api.order_subscriptions) }\n\tget orders(): api.Orders { return this.#orders || (this.#orders = api.orders) }\n\tget organization(): api.Organizations { return this.#organization || (this.#organization = api.organization) }\n\tget packages(): api.Packages { return this.#packages || (this.#packages = api.packages) }\n\tget parcel_line_items(): api.ParcelLineItems { return this.#parcel_line_items || (this.#parcel_line_items = api.parcel_line_items) }\n\tget parcels(): api.Parcels { return this.#parcels || (this.#parcels = api.parcels) }\n\tget payment_gateways(): api.PaymentGateways { return this.#payment_gateways || (this.#payment_gateways = api.payment_gateways) }\n\tget payment_methods(): api.PaymentMethods { return this.#payment_methods || (this.#payment_methods = api.payment_methods) }\n\tget payment_options(): api.PaymentOptions { return this.#payment_options || (this.#payment_options = api.payment_options) }\n\tget paypal_gateways(): api.PaypalGateways { return this.#paypal_gateways || (this.#paypal_gateways = api.paypal_gateways) }\n\tget paypal_payments(): api.PaypalPayments { return this.#paypal_payments || (this.#paypal_payments = api.paypal_payments) }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return this.#percentage_discount_promotions || (this.#percentage_discount_promotions = api.percentage_discount_promotions) }\n\tget pickups(): api.Pickups { return this.#pickups || (this.#pickups = api.pickups) }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return this.#price_frequency_tiers || (this.#price_frequency_tiers = api.price_frequency_tiers) }\n\tget price_list_schedulers(): api.PriceListSchedulers { return this.#price_list_schedulers || (this.#price_list_schedulers = api.price_list_schedulers) }\n\tget price_lists(): api.PriceLists { return this.#price_lists || (this.#price_lists = api.price_lists) }\n\tget price_tiers(): api.PriceTiers { return this.#price_tiers || (this.#price_tiers = api.price_tiers) }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return this.#price_volume_tiers || (this.#price_volume_tiers = api.price_volume_tiers) }\n\tget prices(): api.Prices { return this.#prices || (this.#prices = api.prices) }\n\tget promotion_rules(): api.PromotionRules { return this.#promotion_rules || (this.#promotion_rules = api.promotion_rules) }\n\tget promotions(): api.Promotions { return this.#promotions || (this.#promotions = api.promotions) }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return this.#recurring_order_copies || (this.#recurring_order_copies = api.recurring_order_copies) }\n\tget refunds(): api.Refunds { return this.#refunds || (this.#refunds = api.refunds) }\n\tget reserved_stocks(): api.ReservedStocks { return this.#reserved_stocks || (this.#reserved_stocks = api.reserved_stocks) }\n\tget resource_errors(): api.ResourceErrors { return this.#resource_errors || (this.#resource_errors = api.resource_errors) }\n\tget return_line_items(): api.ReturnLineItems { return this.#return_line_items || (this.#return_line_items = api.return_line_items) }\n\tget returns(): api.Returns { return this.#returns || (this.#returns = api.returns) }\n\tget satispay_gateways(): api.SatispayGateways { return this.#satispay_gateways || (this.#satispay_gateways = api.satispay_gateways) }\n\tget satispay_payments(): api.SatispayPayments { return this.#satispay_payments || (this.#satispay_payments = api.satispay_payments) }\n\tget shipments(): api.Shipments { return this.#shipments || (this.#shipments = api.shipments) }\n\tget shipping_categories(): api.ShippingCategories { return this.#shipping_categories || (this.#shipping_categories = api.shipping_categories) }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return this.#shipping_method_tiers || (this.#shipping_method_tiers = api.shipping_method_tiers) }\n\tget shipping_methods(): api.ShippingMethods { return this.#shipping_methods || (this.#shipping_methods = api.shipping_methods) }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return this.#shipping_weight_tiers || (this.#shipping_weight_tiers = api.shipping_weight_tiers) }\n\tget shipping_zones(): api.ShippingZones { return this.#shipping_zones || (this.#shipping_zones = api.shipping_zones) }\n\tget sku_list_items(): api.SkuListItems { return this.#sku_list_items || (this.#sku_list_items = api.sku_list_items) }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return this.#sku_list_promotion_rules || (this.#sku_list_promotion_rules = api.sku_list_promotion_rules) }\n\tget sku_lists(): api.SkuLists { return this.#sku_lists || (this.#sku_lists = api.sku_lists) }\n\tget sku_options(): api.SkuOptions { return this.#sku_options || (this.#sku_options = api.sku_options) }\n\tget skus(): api.Skus { return this.#skus || (this.#skus = api.skus) }\n\tget stock_items(): api.StockItems { return this.#stock_items || (this.#stock_items = api.stock_items) }\n\tget stock_line_items(): api.StockLineItems { return this.#stock_line_items || (this.#stock_line_items = api.stock_line_items) }\n\tget stock_locations(): api.StockLocations { return this.#stock_locations || (this.#stock_locations = api.stock_locations) }\n\tget stock_reservations(): api.StockReservations { return this.#stock_reservations || (this.#stock_reservations = api.stock_reservations) }\n\tget stock_transfers(): api.StockTransfers { return this.#stock_transfers || (this.#stock_transfers = api.stock_transfers) }\n\tget stores(): api.Stores { return this.#stores || (this.#stores = api.stores) }\n\tget stripe_gateways(): api.StripeGateways { return this.#stripe_gateways || (this.#stripe_gateways = api.stripe_gateways) }\n\tget stripe_payments(): api.StripePayments { return this.#stripe_payments || (this.#stripe_payments = api.stripe_payments) }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return this.#stripe_tax_accounts || (this.#stripe_tax_accounts = api.stripe_tax_accounts) }\n\tget subscription_models(): api.SubscriptionModels { return this.#subscription_models || (this.#subscription_models = api.subscription_models) }\n\tget tags(): api.Tags { return this.#tags || (this.#tags = api.tags) }\n\tget talon_one_accounts(): api.TalonOneAccounts { return this.#talon_one_accounts || (this.#talon_one_accounts = api.talon_one_accounts) }\n\tget tax_calculators(): api.TaxCalculators { return this.#tax_calculators || (this.#tax_calculators = api.tax_calculators) }\n\tget tax_categories(): api.TaxCategories { return this.#tax_categories || (this.#tax_categories = api.tax_categories) }\n\tget tax_rules(): api.TaxRules { return this.#tax_rules || (this.#tax_rules = api.tax_rules) }\n\tget taxjar_accounts(): api.TaxjarAccounts { return this.#taxjar_accounts || (this.#taxjar_accounts = api.taxjar_accounts) }\n\tget transactions(): api.Transactions { return this.#transactions || (this.#transactions = api.transactions) }\n\tget versions(): api.Versions { return this.#versions || (this.#versions = api.versions) }\n\tget vertex_accounts(): api.VertexAccounts { return this.#vertex_accounts || (this.#vertex_accounts = api.vertex_accounts) }\n\tget voids(): api.Voids { return this.#voids || (this.#voids = api.voids) }\n\tget webhooks(): api.Webhooks { return this.#webhooks || (this.#webhooks = api.webhooks) }\n\tget wire_transfers(): api.WireTransfers { return this.#wire_transfers || (this.#wire_transfers = api.wire_transfers) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn new CommerceLayerBundle(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
|
1
|
+
{"version":3,"sources":["../src/bundle.ts"],"names":["debug_default","CommerceLayerClient","addresses_default","adjustments_default","adyen_gateways_default","adyen_payments_default","applications_default","attachments_default","authorizations_default","avalara_accounts_default","axerve_gateways_default","axerve_payments_default","bing_geocoders_default","braintree_gateways_default","braintree_payments_default","bundles_default","buy_x_pay_y_promotions_default","captures_default","carrier_accounts_default","checkout_com_gateways_default","checkout_com_payments_default","cleanups_default","coupon_codes_promotion_rules_default","coupon_recipients_default","coupons_default","custom_promotion_rules_default","customer_addresses_default","customer_groups_default","customer_password_resets_default","customer_payment_sources_default","customer_subscriptions_default","customers_default","delivery_lead_times_default","discount_engine_items_default","discount_engines_default","easypost_pickups_default","event_callbacks_default","events_default","exports_default","external_gateways_default","external_payments_default","external_promotions_default","external_tax_calculators_default","fixed_amount_promotions_default","fixed_price_promotions_default","flex_promotions_default","free_gift_promotions_default","free_shipping_promotions_default","geocoders_default","gift_card_recipients_default","gift_cards_default","google_geocoders_default","imports_default","in_stock_subscriptions_default","inventory_models_default","inventory_return_locations_default","inventory_stock_locations_default","klarna_gateways_default","klarna_payments_default","line_item_options_default","line_items_default","links_default","manual_gateways_default","manual_tax_calculators_default","markets_default","merchants_default","notifications_default","order_amount_promotion_rules_default","order_copies_default","order_factories_default","order_subscription_items_default","order_subscriptions_default","orders_default","organizations_default","packages_default","parcel_line_items_default","parcels_default","payment_gateways_default","payment_methods_default","payment_options_default","paypal_gateways_default","paypal_payments_default","percentage_discount_promotions_default","pickups_default","price_frequency_tiers_default","price_list_schedulers_default","price_lists_default","price_tiers_default","price_volume_tiers_default","prices_default","promotion_rules_default","promotions_default","recurring_order_copies_default","refunds_default","reserved_stocks_default","resource_errors_default","return_line_items_default","returns_default","satispay_gateways_default","satispay_payments_default","shipments_default","shipping_categories_default","shipping_method_tiers_default","shipping_methods_default","shipping_weight_tiers_default","shipping_zones_default","sku_list_items_default","sku_list_promotion_rules_default","sku_lists_default","sku_options_default","skus_default","stock_items_default","stock_line_items_default","stock_locations_default","stock_reservations_default","stock_transfers_default","stores_default","stripe_gateways_default","stripe_payments_default","stripe_tax_accounts_default","subscription_models_default","tags_default","talon_one_accounts_default","tax_calculators_default","tax_categories_default","tax_rules_default","taxjar_accounts_default","transactions_default","versions_default","vertex_accounts_default","voids_default","webhooks_default","wire_transfers_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,KAAA,GAAQA,gCAAM,QAAQ,CAAA;AAG5B,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4BC,qCAAoB,CAAA;AAAA;AAAA;AAAA,EAIrD,UAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,eAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,eAAA;AAAA,EACA,mBAAA;AAAA,EACA,mBAAA;AAAA,EACA,QAAA;AAAA,EACA,uBAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,sBAAA;AAAA,EACA,sBAAA;AAAA,EACA,SAAA;AAAA,EACA,6BAAA;AAAA,EACA,kBAAA;AAAA,EACA,QAAA;AAAA,EACA,uBAAA;AAAA,EACA,mBAAA;AAAA,EACA,gBAAA;AAAA,EACA,yBAAA;AAAA,EACA,yBAAA;AAAA,EACA,uBAAA;AAAA,EACA,UAAA;AAAA,EACA,oBAAA;AAAA,EACA,sBAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,oBAA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AK,UAAe,KAAA,IAAA,CAAK,UAAiB,GAAAC,mCAAA,CAAA;AAAA;AAAW,EAC5F,IAAI,eAAsC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,gBAAqB,KAAA,IAAA,CAAK,gBAAuB,GAAAC,yCAAA,CAAA;AAAA;AAAiB,EAC1H,IAAI,YAAiC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,aAAkB,KAAA,IAAA,CAAK,aAAoB,GAAAC,sCAAA,CAAA;AAAA;AAAc,EAC5G,IAAI,QAAyB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,SAAc,KAAA,IAAA,CAAK,SAAgB,GAAAC,kCAAA,CAAA;AAAA;AAAU,EACxF,IAAI,eAAsC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,gBAAqB,KAAA,IAAA,CAAK,gBAAuB,GAAAC,yCAAA,CAAA;AAAA;AAAiB,EAC1H,IAAI,KAAmB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,MAAW,KAAA,IAAA,CAAK,MAAa,GAAAC,+BAAA,CAAA;AAAA;AAAO,EACzE,IAAI,QAAyB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,SAAc,KAAA,IAAA,CAAK,SAAgB,GAAAC,kCAAA,CAAA;AAAA;AAAU,EACxF,IAAI,cAAoC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,eAAoB,KAAA,IAAA,CAAK,eAAsB,GAAAC,wCAAA,CAAA;AAAA;AAAgB;AAGtH,CAAA;AAIA,SAAS,cAAc,MAAsD,EAAA;AAC5E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC","file":"bundle.cjs","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\nimport Debug from './debug'\nconst debug = Debug('bundle')\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t#addresses?: api.Addresses\n\t#adjustments?: api.Adjustments\n\t#adyen_gateways?: api.AdyenGateways\n\t#adyen_payments?: api.AdyenPayments\n\t#application?: api.Applications\n\t#attachments?: api.Attachments\n\t#authorizations?: api.Authorizations\n\t#avalara_accounts?: api.AvalaraAccounts\n\t#axerve_gateways?: api.AxerveGateways\n\t#axerve_payments?: api.AxervePayments\n\t#bing_geocoders?: api.BingGeocoders\n\t#braintree_gateways?: api.BraintreeGateways\n\t#braintree_payments?: api.BraintreePayments\n\t#bundles?: api.Bundles\n\t#buy_x_pay_y_promotions?: api.BuyXPayYPromotions\n\t#captures?: api.Captures\n\t#carrier_accounts?: api.CarrierAccounts\n\t#checkout_com_gateways?: api.CheckoutComGateways\n\t#checkout_com_payments?: api.CheckoutComPayments\n\t#cleanups?: api.Cleanups\n\t#coupon_codes_promotion_rules?: api.CouponCodesPromotionRules\n\t#coupon_recipients?: api.CouponRecipients\n\t#coupons?: api.Coupons\n\t#custom_promotion_rules?: api.CustomPromotionRules\n\t#customer_addresses?: api.CustomerAddresses\n\t#customer_groups?: api.CustomerGroups\n\t#customer_password_resets?: api.CustomerPasswordResets\n\t#customer_payment_sources?: api.CustomerPaymentSources\n\t#customer_subscriptions?: api.CustomerSubscriptions\n\t#customers?: api.Customers\n\t#delivery_lead_times?: api.DeliveryLeadTimes\n\t#discount_engine_items?: api.DiscountEngineItems\n\t#discount_engines?: api.DiscountEngines\n\t#easypost_pickups?: api.EasypostPickups\n\t#event_callbacks?: api.EventCallbacks\n\t#events?: api.Events\n\t#exports?: api.Exports\n\t#external_gateways?: api.ExternalGateways\n\t#external_payments?: api.ExternalPayments\n\t#external_promotions?: api.ExternalPromotions\n\t#external_tax_calculators?: api.ExternalTaxCalculators\n\t#fixed_amount_promotions?: api.FixedAmountPromotions\n\t#fixed_price_promotions?: api.FixedPricePromotions\n\t#flex_promotions?: api.FlexPromotions\n\t#free_gift_promotions?: api.FreeGiftPromotions\n\t#free_shipping_promotions?: api.FreeShippingPromotions\n\t#geocoders?: api.Geocoders\n\t#gift_card_recipients?: api.GiftCardRecipients\n\t#gift_cards?: api.GiftCards\n\t#google_geocoders?: api.GoogleGeocoders\n\t#imports?: api.Imports\n\t#in_stock_subscriptions?: api.InStockSubscriptions\n\t#inventory_models?: api.InventoryModels\n\t#inventory_return_locations?: api.InventoryReturnLocations\n\t#inventory_stock_locations?: api.InventoryStockLocations\n\t#klarna_gateways?: api.KlarnaGateways\n\t#klarna_payments?: api.KlarnaPayments\n\t#line_item_options?: api.LineItemOptions\n\t#line_items?: api.LineItems\n\t#links?: api.Links\n\t#manual_gateways?: api.ManualGateways\n\t#manual_tax_calculators?: api.ManualTaxCalculators\n\t#markets?: api.Markets\n\t#merchants?: api.Merchants\n\t#notifications?: api.Notifications\n\t#order_amount_promotion_rules?: api.OrderAmountPromotionRules\n\t#order_copies?: api.OrderCopies\n\t#order_factories?: api.OrderFactories\n\t#order_subscription_items?: api.OrderSubscriptionItems\n\t#order_subscriptions?: api.OrderSubscriptions\n\t#orders?: api.Orders\n\t#organization?: api.Organizations\n\t#packages?: api.Packages\n\t#parcel_line_items?: api.ParcelLineItems\n\t#parcels?: api.Parcels\n\t#payment_gateways?: api.PaymentGateways\n\t#payment_methods?: api.PaymentMethods\n\t#payment_options?: api.PaymentOptions\n\t#paypal_gateways?: api.PaypalGateways\n\t#paypal_payments?: api.PaypalPayments\n\t#percentage_discount_promotions?: api.PercentageDiscountPromotions\n\t#pickups?: api.Pickups\n\t#price_frequency_tiers?: api.PriceFrequencyTiers\n\t#price_list_schedulers?: api.PriceListSchedulers\n\t#price_lists?: api.PriceLists\n\t#price_tiers?: api.PriceTiers\n\t#price_volume_tiers?: api.PriceVolumeTiers\n\t#prices?: api.Prices\n\t#promotion_rules?: api.PromotionRules\n\t#promotions?: api.Promotions\n\t#recurring_order_copies?: api.RecurringOrderCopies\n\t#refunds?: api.Refunds\n\t#reserved_stocks?: api.ReservedStocks\n\t#resource_errors?: api.ResourceErrors\n\t#return_line_items?: api.ReturnLineItems\n\t#returns?: api.Returns\n\t#satispay_gateways?: api.SatispayGateways\n\t#satispay_payments?: api.SatispayPayments\n\t#shipments?: api.Shipments\n\t#shipping_categories?: api.ShippingCategories\n\t#shipping_method_tiers?: api.ShippingMethodTiers\n\t#shipping_methods?: api.ShippingMethods\n\t#shipping_weight_tiers?: api.ShippingWeightTiers\n\t#shipping_zones?: api.ShippingZones\n\t#sku_list_items?: api.SkuListItems\n\t#sku_list_promotion_rules?: api.SkuListPromotionRules\n\t#sku_lists?: api.SkuLists\n\t#sku_options?: api.SkuOptions\n\t#skus?: api.Skus\n\t#stock_items?: api.StockItems\n\t#stock_line_items?: api.StockLineItems\n\t#stock_locations?: api.StockLocations\n\t#stock_reservations?: api.StockReservations\n\t#stock_transfers?: api.StockTransfers\n\t#stores?: api.Stores\n\t#stripe_gateways?: api.StripeGateways\n\t#stripe_payments?: api.StripePayments\n\t#stripe_tax_accounts?: api.StripeTaxAccounts\n\t#subscription_models?: api.SubscriptionModels\n\t#tags?: api.Tags\n\t#talon_one_accounts?: api.TalonOneAccounts\n\t#tax_calculators?: api.TaxCalculators\n\t#tax_categories?: api.TaxCategories\n\t#tax_rules?: api.TaxRules\n\t#taxjar_accounts?: api.TaxjarAccounts\n\t#transactions?: api.Transactions\n\t#versions?: api.Versions\n\t#vertex_accounts?: api.VertexAccounts\n\t#voids?: api.Voids\n\t#webhooks?: api.Webhooks\n\t#wire_transfers?: api.WireTransfers\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(config)\n\t\tdebug('new commercelayer bundle instance %O', 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\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerBundle {\n\t\tif (config) return (CommerceLayerBundle.cl = new CommerceLayerBundle(config))\n\t\telse\n\t\tif (!CommerceLayerBundle.cl) throw new Error('CommerceLayer bundle client not initialized')\n\t\treturn CommerceLayerBundle.cl as CommerceLayerBundle\n\t}\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__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__## = api.##__RESOURCE_TYPE__##) }\n\tget addresses(): api.Addresses { return this.#addresses || (this.#addresses = api.addresses) }\n\tget adjustments(): api.Adjustments { return this.#adjustments || (this.#adjustments = api.adjustments) }\n\tget adyen_gateways(): api.AdyenGateways { return this.#adyen_gateways || (this.#adyen_gateways = api.adyen_gateways) }\n\tget adyen_payments(): api.AdyenPayments { return this.#adyen_payments || (this.#adyen_payments = api.adyen_payments) }\n\tget application(): api.Applications { return this.#application || (this.#application = api.application) }\n\tget attachments(): api.Attachments { return this.#attachments || (this.#attachments = api.attachments) }\n\tget authorizations(): api.Authorizations { return this.#authorizations || (this.#authorizations = api.authorizations) }\n\tget avalara_accounts(): api.AvalaraAccounts { return this.#avalara_accounts || (this.#avalara_accounts = api.avalara_accounts) }\n\tget axerve_gateways(): api.AxerveGateways { return this.#axerve_gateways || (this.#axerve_gateways = api.axerve_gateways) }\n\tget axerve_payments(): api.AxervePayments { return this.#axerve_payments || (this.#axerve_payments = api.axerve_payments) }\n\tget bing_geocoders(): api.BingGeocoders { return this.#bing_geocoders || (this.#bing_geocoders = api.bing_geocoders) }\n\tget braintree_gateways(): api.BraintreeGateways { return this.#braintree_gateways || (this.#braintree_gateways = api.braintree_gateways) }\n\tget braintree_payments(): api.BraintreePayments { return this.#braintree_payments || (this.#braintree_payments = api.braintree_payments) }\n\tget bundles(): api.Bundles { return this.#bundles || (this.#bundles = api.bundles) }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return this.#buy_x_pay_y_promotions || (this.#buy_x_pay_y_promotions = api.buy_x_pay_y_promotions) }\n\tget captures(): api.Captures { return this.#captures || (this.#captures = api.captures) }\n\tget carrier_accounts(): api.CarrierAccounts { return this.#carrier_accounts || (this.#carrier_accounts = api.carrier_accounts) }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return this.#checkout_com_gateways || (this.#checkout_com_gateways = api.checkout_com_gateways) }\n\tget checkout_com_payments(): api.CheckoutComPayments { return this.#checkout_com_payments || (this.#checkout_com_payments = api.checkout_com_payments) }\n\tget cleanups(): api.Cleanups { return this.#cleanups || (this.#cleanups = api.cleanups) }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return this.#coupon_codes_promotion_rules || (this.#coupon_codes_promotion_rules = api.coupon_codes_promotion_rules) }\n\tget coupon_recipients(): api.CouponRecipients { return this.#coupon_recipients || (this.#coupon_recipients = api.coupon_recipients) }\n\tget coupons(): api.Coupons { return this.#coupons || (this.#coupons = api.coupons) }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return this.#custom_promotion_rules || (this.#custom_promotion_rules = api.custom_promotion_rules) }\n\tget customer_addresses(): api.CustomerAddresses { return this.#customer_addresses || (this.#customer_addresses = api.customer_addresses) }\n\tget customer_groups(): api.CustomerGroups { return this.#customer_groups || (this.#customer_groups = api.customer_groups) }\n\tget customer_password_resets(): api.CustomerPasswordResets { return this.#customer_password_resets || (this.#customer_password_resets = api.customer_password_resets) }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return this.#customer_payment_sources || (this.#customer_payment_sources = api.customer_payment_sources) }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return this.#customer_subscriptions || (this.#customer_subscriptions = api.customer_subscriptions) }\n\tget customers(): api.Customers { return this.#customers || (this.#customers = api.customers) }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return this.#delivery_lead_times || (this.#delivery_lead_times = api.delivery_lead_times) }\n\tget discount_engine_items(): api.DiscountEngineItems { return this.#discount_engine_items || (this.#discount_engine_items = api.discount_engine_items) }\n\tget discount_engines(): api.DiscountEngines { return this.#discount_engines || (this.#discount_engines = api.discount_engines) }\n\tget easypost_pickups(): api.EasypostPickups { return this.#easypost_pickups || (this.#easypost_pickups = api.easypost_pickups) }\n\tget event_callbacks(): api.EventCallbacks { return this.#event_callbacks || (this.#event_callbacks = api.event_callbacks) }\n\tget events(): api.Events { return this.#events || (this.#events = api.events) }\n\tget exports(): api.Exports { return this.#exports || (this.#exports = api.exports) }\n\tget external_gateways(): api.ExternalGateways { return this.#external_gateways || (this.#external_gateways = api.external_gateways) }\n\tget external_payments(): api.ExternalPayments { return this.#external_payments || (this.#external_payments = api.external_payments) }\n\tget external_promotions(): api.ExternalPromotions { return this.#external_promotions || (this.#external_promotions = api.external_promotions) }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return this.#external_tax_calculators || (this.#external_tax_calculators = api.external_tax_calculators) }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return this.#fixed_amount_promotions || (this.#fixed_amount_promotions = api.fixed_amount_promotions) }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return this.#fixed_price_promotions || (this.#fixed_price_promotions = api.fixed_price_promotions) }\n\tget flex_promotions(): api.FlexPromotions { return this.#flex_promotions || (this.#flex_promotions = api.flex_promotions) }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return this.#free_gift_promotions || (this.#free_gift_promotions = api.free_gift_promotions) }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return this.#free_shipping_promotions || (this.#free_shipping_promotions = api.free_shipping_promotions) }\n\tget geocoders(): api.Geocoders { return this.#geocoders || (this.#geocoders = api.geocoders) }\n\tget gift_card_recipients(): api.GiftCardRecipients { return this.#gift_card_recipients || (this.#gift_card_recipients = api.gift_card_recipients) }\n\tget gift_cards(): api.GiftCards { return this.#gift_cards || (this.#gift_cards = api.gift_cards) }\n\tget google_geocoders(): api.GoogleGeocoders { return this.#google_geocoders || (this.#google_geocoders = api.google_geocoders) }\n\tget imports(): api.Imports { return this.#imports || (this.#imports = api.imports) }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return this.#in_stock_subscriptions || (this.#in_stock_subscriptions = api.in_stock_subscriptions) }\n\tget inventory_models(): api.InventoryModels { return this.#inventory_models || (this.#inventory_models = api.inventory_models) }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return this.#inventory_return_locations || (this.#inventory_return_locations = api.inventory_return_locations) }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return this.#inventory_stock_locations || (this.#inventory_stock_locations = api.inventory_stock_locations) }\n\tget klarna_gateways(): api.KlarnaGateways { return this.#klarna_gateways || (this.#klarna_gateways = api.klarna_gateways) }\n\tget klarna_payments(): api.KlarnaPayments { return this.#klarna_payments || (this.#klarna_payments = api.klarna_payments) }\n\tget line_item_options(): api.LineItemOptions { return this.#line_item_options || (this.#line_item_options = api.line_item_options) }\n\tget line_items(): api.LineItems { return this.#line_items || (this.#line_items = api.line_items) }\n\tget links(): api.Links { return this.#links || (this.#links = api.links) }\n\tget manual_gateways(): api.ManualGateways { return this.#manual_gateways || (this.#manual_gateways = api.manual_gateways) }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return this.#manual_tax_calculators || (this.#manual_tax_calculators = api.manual_tax_calculators) }\n\tget markets(): api.Markets { return this.#markets || (this.#markets = api.markets) }\n\tget merchants(): api.Merchants { return this.#merchants || (this.#merchants = api.merchants) }\n\tget notifications(): api.Notifications { return this.#notifications || (this.#notifications = api.notifications) }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return this.#order_amount_promotion_rules || (this.#order_amount_promotion_rules = api.order_amount_promotion_rules) }\n\tget order_copies(): api.OrderCopies { return this.#order_copies || (this.#order_copies = api.order_copies) }\n\tget order_factories(): api.OrderFactories { return this.#order_factories || (this.#order_factories = api.order_factories) }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return this.#order_subscription_items || (this.#order_subscription_items = api.order_subscription_items) }\n\tget order_subscriptions(): api.OrderSubscriptions { return this.#order_subscriptions || (this.#order_subscriptions = api.order_subscriptions) }\n\tget orders(): api.Orders { return this.#orders || (this.#orders = api.orders) }\n\tget organization(): api.Organizations { return this.#organization || (this.#organization = api.organization) }\n\tget packages(): api.Packages { return this.#packages || (this.#packages = api.packages) }\n\tget parcel_line_items(): api.ParcelLineItems { return this.#parcel_line_items || (this.#parcel_line_items = api.parcel_line_items) }\n\tget parcels(): api.Parcels { return this.#parcels || (this.#parcels = api.parcels) }\n\tget payment_gateways(): api.PaymentGateways { return this.#payment_gateways || (this.#payment_gateways = api.payment_gateways) }\n\tget payment_methods(): api.PaymentMethods { return this.#payment_methods || (this.#payment_methods = api.payment_methods) }\n\tget payment_options(): api.PaymentOptions { return this.#payment_options || (this.#payment_options = api.payment_options) }\n\tget paypal_gateways(): api.PaypalGateways { return this.#paypal_gateways || (this.#paypal_gateways = api.paypal_gateways) }\n\tget paypal_payments(): api.PaypalPayments { return this.#paypal_payments || (this.#paypal_payments = api.paypal_payments) }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return this.#percentage_discount_promotions || (this.#percentage_discount_promotions = api.percentage_discount_promotions) }\n\tget pickups(): api.Pickups { return this.#pickups || (this.#pickups = api.pickups) }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return this.#price_frequency_tiers || (this.#price_frequency_tiers = api.price_frequency_tiers) }\n\tget price_list_schedulers(): api.PriceListSchedulers { return this.#price_list_schedulers || (this.#price_list_schedulers = api.price_list_schedulers) }\n\tget price_lists(): api.PriceLists { return this.#price_lists || (this.#price_lists = api.price_lists) }\n\tget price_tiers(): api.PriceTiers { return this.#price_tiers || (this.#price_tiers = api.price_tiers) }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return this.#price_volume_tiers || (this.#price_volume_tiers = api.price_volume_tiers) }\n\tget prices(): api.Prices { return this.#prices || (this.#prices = api.prices) }\n\tget promotion_rules(): api.PromotionRules { return this.#promotion_rules || (this.#promotion_rules = api.promotion_rules) }\n\tget promotions(): api.Promotions { return this.#promotions || (this.#promotions = api.promotions) }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return this.#recurring_order_copies || (this.#recurring_order_copies = api.recurring_order_copies) }\n\tget refunds(): api.Refunds { return this.#refunds || (this.#refunds = api.refunds) }\n\tget reserved_stocks(): api.ReservedStocks { return this.#reserved_stocks || (this.#reserved_stocks = api.reserved_stocks) }\n\tget resource_errors(): api.ResourceErrors { return this.#resource_errors || (this.#resource_errors = api.resource_errors) }\n\tget return_line_items(): api.ReturnLineItems { return this.#return_line_items || (this.#return_line_items = api.return_line_items) }\n\tget returns(): api.Returns { return this.#returns || (this.#returns = api.returns) }\n\tget satispay_gateways(): api.SatispayGateways { return this.#satispay_gateways || (this.#satispay_gateways = api.satispay_gateways) }\n\tget satispay_payments(): api.SatispayPayments { return this.#satispay_payments || (this.#satispay_payments = api.satispay_payments) }\n\tget shipments(): api.Shipments { return this.#shipments || (this.#shipments = api.shipments) }\n\tget shipping_categories(): api.ShippingCategories { return this.#shipping_categories || (this.#shipping_categories = api.shipping_categories) }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return this.#shipping_method_tiers || (this.#shipping_method_tiers = api.shipping_method_tiers) }\n\tget shipping_methods(): api.ShippingMethods { return this.#shipping_methods || (this.#shipping_methods = api.shipping_methods) }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return this.#shipping_weight_tiers || (this.#shipping_weight_tiers = api.shipping_weight_tiers) }\n\tget shipping_zones(): api.ShippingZones { return this.#shipping_zones || (this.#shipping_zones = api.shipping_zones) }\n\tget sku_list_items(): api.SkuListItems { return this.#sku_list_items || (this.#sku_list_items = api.sku_list_items) }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return this.#sku_list_promotion_rules || (this.#sku_list_promotion_rules = api.sku_list_promotion_rules) }\n\tget sku_lists(): api.SkuLists { return this.#sku_lists || (this.#sku_lists = api.sku_lists) }\n\tget sku_options(): api.SkuOptions { return this.#sku_options || (this.#sku_options = api.sku_options) }\n\tget skus(): api.Skus { return this.#skus || (this.#skus = api.skus) }\n\tget stock_items(): api.StockItems { return this.#stock_items || (this.#stock_items = api.stock_items) }\n\tget stock_line_items(): api.StockLineItems { return this.#stock_line_items || (this.#stock_line_items = api.stock_line_items) }\n\tget stock_locations(): api.StockLocations { return this.#stock_locations || (this.#stock_locations = api.stock_locations) }\n\tget stock_reservations(): api.StockReservations { return this.#stock_reservations || (this.#stock_reservations = api.stock_reservations) }\n\tget stock_transfers(): api.StockTransfers { return this.#stock_transfers || (this.#stock_transfers = api.stock_transfers) }\n\tget stores(): api.Stores { return this.#stores || (this.#stores = api.stores) }\n\tget stripe_gateways(): api.StripeGateways { return this.#stripe_gateways || (this.#stripe_gateways = api.stripe_gateways) }\n\tget stripe_payments(): api.StripePayments { return this.#stripe_payments || (this.#stripe_payments = api.stripe_payments) }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return this.#stripe_tax_accounts || (this.#stripe_tax_accounts = api.stripe_tax_accounts) }\n\tget subscription_models(): api.SubscriptionModels { return this.#subscription_models || (this.#subscription_models = api.subscription_models) }\n\tget tags(): api.Tags { return this.#tags || (this.#tags = api.tags) }\n\tget talon_one_accounts(): api.TalonOneAccounts { return this.#talon_one_accounts || (this.#talon_one_accounts = api.talon_one_accounts) }\n\tget tax_calculators(): api.TaxCalculators { return this.#tax_calculators || (this.#tax_calculators = api.tax_calculators) }\n\tget tax_categories(): api.TaxCategories { return this.#tax_categories || (this.#tax_categories = api.tax_categories) }\n\tget tax_rules(): api.TaxRules { return this.#tax_rules || (this.#tax_rules = api.tax_rules) }\n\tget taxjar_accounts(): api.TaxjarAccounts { return this.#taxjar_accounts || (this.#taxjar_accounts = api.taxjar_accounts) }\n\tget transactions(): api.Transactions { return this.#transactions || (this.#transactions = api.transactions) }\n\tget versions(): api.Versions { return this.#versions || (this.#versions = api.versions) }\n\tget vertex_accounts(): api.VertexAccounts { return this.#vertex_accounts || (this.#vertex_accounts = api.vertex_accounts) }\n\tget voids(): api.Voids { return this.#voids || (this.#voids = api.voids) }\n\tget webhooks(): api.Webhooks { return this.#webhooks || (this.#webhooks = api.webhooks) }\n\tget wire_transfers(): api.WireTransfers { return this.#wire_transfers || (this.#wire_transfers = api.wire_transfers) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn CommerceLayerBundle.get(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
|
package/lib/bundle.d.cts
CHANGED
@@ -8,6 +8,7 @@ import './types.cjs';
|
|
8
8
|
declare class CommerceLayerBundle extends CommerceLayerClient {
|
9
9
|
#private;
|
10
10
|
constructor(config: CommerceLayerInitConfig);
|
11
|
+
static get(config?: CommerceLayerInitConfig): CommerceLayerBundle;
|
11
12
|
get addresses(): Addresses;
|
12
13
|
get adjustments(): Adjustments;
|
13
14
|
get adyen_gateways(): AdyenGateways;
|
package/lib/bundle.d.ts
CHANGED
@@ -8,6 +8,7 @@ import './types.js';
|
|
8
8
|
declare class CommerceLayerBundle extends CommerceLayerClient {
|
9
9
|
#private;
|
10
10
|
constructor(config: CommerceLayerInitConfig);
|
11
|
+
static get(config?: CommerceLayerInitConfig): CommerceLayerBundle;
|
11
12
|
get addresses(): Addresses;
|
12
13
|
get adjustments(): Adjustments;
|
13
14
|
get adyen_gateways(): AdyenGateways;
|
package/lib/bundle.js
CHANGED
@@ -130,7 +130,7 @@ import { adyen_gateways_default } from './chunk-NDPDO54G.js';
|
|
130
130
|
import { adyen_payments_default } from './chunk-JENLN6VJ.js';
|
131
131
|
import { applications_default } from './chunk-7X36B7N6.js';
|
132
132
|
import { attachments_default } from './chunk-DYZGWPZ6.js';
|
133
|
-
import { CommerceLayerClient } from './chunk-
|
133
|
+
import { CommerceLayerClient } from './chunk-BYRFMGBQ.js';
|
134
134
|
import './chunk-NAWKHFBZ.js';
|
135
135
|
import './chunk-CHYP5F26.js';
|
136
136
|
import './chunk-H4SVEI6E.js';
|
@@ -138,11 +138,12 @@ import './chunk-R2LRLUUY.js';
|
|
138
138
|
import './chunk-AYTBSAHY.js';
|
139
139
|
import './chunk-GD4WRDF2.js';
|
140
140
|
import './chunk-ZU7GFVQ6.js';
|
141
|
-
import './chunk-XD7GS4QW.js';
|
141
|
+
import { debug_default } from './chunk-XD7GS4QW.js';
|
142
142
|
import './chunk-DGUM43GV.js';
|
143
143
|
|
144
144
|
// src/bundle.ts
|
145
|
-
var
|
145
|
+
var debug = debug_default("bundle");
|
146
|
+
var CommerceLayerBundle = class _CommerceLayerBundle extends CommerceLayerClient {
|
146
147
|
// ##__CL_RESOURCES_DEF_START__##
|
147
148
|
// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##
|
148
149
|
#addresses;
|
@@ -279,6 +280,12 @@ var CommerceLayerBundle = class extends CommerceLayerClient {
|
|
279
280
|
// ##__CL_RESOURCES_DEF_STOP__##
|
280
281
|
constructor(config) {
|
281
282
|
super(config);
|
283
|
+
debug("new commercelayer bundle instance %O", config);
|
284
|
+
}
|
285
|
+
static get(config) {
|
286
|
+
if (config) return _CommerceLayerBundle.cl = new _CommerceLayerBundle(config);
|
287
|
+
else if (!_CommerceLayerBundle.cl) throw new Error("CommerceLayer bundle client not initialized");
|
288
|
+
return _CommerceLayerBundle.cl;
|
282
289
|
}
|
283
290
|
// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }
|
284
291
|
// ##__CL_RESOURCES_LEAZY_LOADING_START__##
|
@@ -679,7 +686,7 @@ var CommerceLayerBundle = class extends CommerceLayerClient {
|
|
679
686
|
// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##
|
680
687
|
};
|
681
688
|
function CommerceLayer(config) {
|
682
|
-
return
|
689
|
+
return CommerceLayerBundle.get(config);
|
683
690
|
}
|
684
691
|
|
685
692
|
export { CommerceLayer };
|
package/lib/bundle.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/bundle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,mBAAA,GAAN,cAAkC,mBAAoB,CAAA;AAAA;AAAA;AAAA,EAIrD,UAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,eAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,eAAA;AAAA,EACA,mBAAA;AAAA,EACA,mBAAA;AAAA,EACA,QAAA;AAAA,EACA,uBAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,sBAAA;AAAA,EACA,sBAAA;AAAA,EACA,SAAA;AAAA,EACA,6BAAA;AAAA,EACA,kBAAA;AAAA,EACA,QAAA;AAAA,EACA,uBAAA;AAAA,EACA,mBAAA;AAAA,EACA,gBAAA;AAAA,EACA,yBAAA;AAAA,EACA,yBAAA;AAAA,EACA,uBAAA;AAAA,EACA,UAAA;AAAA,EACA,oBAAA;AAAA,EACA,sBAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,oBAAA;AAAA,EACA,yBAAA;AAAA,EACA,wBAAA;AAAA,EACA,uBAAA;AAAA,EACA,gBAAA;AAAA,EACA,qBAAA;AAAA,EACA,y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B,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,MAAW,KAAA,IAAA,CAAK,MAAa,GAAA,aAAA,CAAA;AAAA;AAAO,EACzE,IAAI,QAAyB,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,SAAc,KAAA,IAAA,CAAK,SAAgB,GAAA,gBAAA,CAAA;AAAA;AAAU,EACxF,IAAI,cAAoC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,eAAoB,KAAA,IAAA,CAAK,eAAsB,GAAA,sBAAA,CAAA;AAAA;AAAgB;AAGtH,CAAA;AAIA,SAAS,cAAc,MAAsD,EAAA;AAC5E,EAAO,OAAA,IAAI,oBAAoB,MAAM,CAAA;AACtC","file":"bundle.js","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t#addresses?: api.Addresses\n\t#adjustments?: api.Adjustments\n\t#adyen_gateways?: api.AdyenGateways\n\t#adyen_payments?: api.AdyenPayments\n\t#application?: api.Applications\n\t#attachments?: api.Attachments\n\t#authorizations?: api.Authorizations\n\t#avalara_accounts?: api.AvalaraAccounts\n\t#axerve_gateways?: api.AxerveGateways\n\t#axerve_payments?: api.AxervePayments\n\t#bing_geocoders?: api.BingGeocoders\n\t#braintree_gateways?: api.BraintreeGateways\n\t#braintree_payments?: api.BraintreePayments\n\t#bundles?: api.Bundles\n\t#buy_x_pay_y_promotions?: api.BuyXPayYPromotions\n\t#captures?: api.Captures\n\t#carrier_accounts?: api.CarrierAccounts\n\t#checkout_com_gateways?: api.CheckoutComGateways\n\t#checkout_com_payments?: api.CheckoutComPayments\n\t#cleanups?: api.Cleanups\n\t#coupon_codes_promotion_rules?: api.CouponCodesPromotionRules\n\t#coupon_recipients?: api.CouponRecipients\n\t#coupons?: api.Coupons\n\t#custom_promotion_rules?: api.CustomPromotionRules\n\t#customer_addresses?: api.CustomerAddresses\n\t#customer_groups?: api.CustomerGroups\n\t#customer_password_resets?: api.CustomerPasswordResets\n\t#customer_payment_sources?: api.CustomerPaymentSources\n\t#customer_subscriptions?: api.CustomerSubscriptions\n\t#customers?: api.Customers\n\t#delivery_lead_times?: api.DeliveryLeadTimes\n\t#discount_engine_items?: api.DiscountEngineItems\n\t#discount_engines?: api.DiscountEngines\n\t#easypost_pickups?: api.EasypostPickups\n\t#event_callbacks?: api.EventCallbacks\n\t#events?: api.Events\n\t#exports?: api.Exports\n\t#external_gateways?: api.ExternalGateways\n\t#external_payments?: api.ExternalPayments\n\t#external_promotions?: api.ExternalPromotions\n\t#external_tax_calculators?: api.ExternalTaxCalculators\n\t#fixed_amount_promotions?: api.FixedAmountPromotions\n\t#fixed_price_promotions?: api.FixedPricePromotions\n\t#flex_promotions?: api.FlexPromotions\n\t#free_gift_promotions?: api.FreeGiftPromotions\n\t#free_shipping_promotions?: api.FreeShippingPromotions\n\t#geocoders?: api.Geocoders\n\t#gift_card_recipients?: api.GiftCardRecipients\n\t#gift_cards?: api.GiftCards\n\t#google_geocoders?: api.GoogleGeocoders\n\t#imports?: api.Imports\n\t#in_stock_subscriptions?: api.InStockSubscriptions\n\t#inventory_models?: api.InventoryModels\n\t#inventory_return_locations?: api.InventoryReturnLocations\n\t#inventory_stock_locations?: api.InventoryStockLocations\n\t#klarna_gateways?: api.KlarnaGateways\n\t#klarna_payments?: api.KlarnaPayments\n\t#line_item_options?: api.LineItemOptions\n\t#line_items?: api.LineItems\n\t#links?: api.Links\n\t#manual_gateways?: api.ManualGateways\n\t#manual_tax_calculators?: api.ManualTaxCalculators\n\t#markets?: api.Markets\n\t#merchants?: api.Merchants\n\t#notifications?: api.Notifications\n\t#order_amount_promotion_rules?: api.OrderAmountPromotionRules\n\t#order_copies?: api.OrderCopies\n\t#order_factories?: api.OrderFactories\n\t#order_subscription_items?: api.OrderSubscriptionItems\n\t#order_subscriptions?: api.OrderSubscriptions\n\t#orders?: api.Orders\n\t#organization?: api.Organizations\n\t#packages?: api.Packages\n\t#parcel_line_items?: api.ParcelLineItems\n\t#parcels?: api.Parcels\n\t#payment_gateways?: api.PaymentGateways\n\t#payment_methods?: api.PaymentMethods\n\t#payment_options?: api.PaymentOptions\n\t#paypal_gateways?: api.PaypalGateways\n\t#paypal_payments?: api.PaypalPayments\n\t#percentage_discount_promotions?: api.PercentageDiscountPromotions\n\t#pickups?: api.Pickups\n\t#price_frequency_tiers?: api.PriceFrequencyTiers\n\t#price_list_schedulers?: api.PriceListSchedulers\n\t#price_lists?: api.PriceLists\n\t#price_tiers?: api.PriceTiers\n\t#price_volume_tiers?: api.PriceVolumeTiers\n\t#prices?: api.Prices\n\t#promotion_rules?: api.PromotionRules\n\t#promotions?: api.Promotions\n\t#recurring_order_copies?: api.RecurringOrderCopies\n\t#refunds?: api.Refunds\n\t#reserved_stocks?: api.ReservedStocks\n\t#resource_errors?: api.ResourceErrors\n\t#return_line_items?: api.ReturnLineItems\n\t#returns?: api.Returns\n\t#satispay_gateways?: api.SatispayGateways\n\t#satispay_payments?: api.SatispayPayments\n\t#shipments?: api.Shipments\n\t#shipping_categories?: api.ShippingCategories\n\t#shipping_method_tiers?: api.ShippingMethodTiers\n\t#shipping_methods?: api.ShippingMethods\n\t#shipping_weight_tiers?: api.ShippingWeightTiers\n\t#shipping_zones?: api.ShippingZones\n\t#sku_list_items?: api.SkuListItems\n\t#sku_list_promotion_rules?: api.SkuListPromotionRules\n\t#sku_lists?: api.SkuLists\n\t#sku_options?: api.SkuOptions\n\t#skus?: api.Skus\n\t#stock_items?: api.StockItems\n\t#stock_line_items?: api.StockLineItems\n\t#stock_locations?: api.StockLocations\n\t#stock_reservations?: api.StockReservations\n\t#stock_transfers?: api.StockTransfers\n\t#stores?: api.Stores\n\t#stripe_gateways?: api.StripeGateways\n\t#stripe_payments?: api.StripePayments\n\t#stripe_tax_accounts?: api.StripeTaxAccounts\n\t#subscription_models?: api.SubscriptionModels\n\t#tags?: api.Tags\n\t#talon_one_accounts?: api.TalonOneAccounts\n\t#tax_calculators?: api.TaxCalculators\n\t#tax_categories?: api.TaxCategories\n\t#tax_rules?: api.TaxRules\n\t#taxjar_accounts?: api.TaxjarAccounts\n\t#transactions?: api.Transactions\n\t#versions?: api.Versions\n\t#vertex_accounts?: api.VertexAccounts\n\t#voids?: api.Voids\n\t#webhooks?: api.Webhooks\n\t#wire_transfers?: api.WireTransfers\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(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// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__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__## = api.##__RESOURCE_TYPE__##) }\n\tget addresses(): api.Addresses { return this.#addresses || (this.#addresses = api.addresses) }\n\tget adjustments(): api.Adjustments { return this.#adjustments || (this.#adjustments = api.adjustments) }\n\tget adyen_gateways(): api.AdyenGateways { return this.#adyen_gateways || (this.#adyen_gateways = api.adyen_gateways) }\n\tget adyen_payments(): api.AdyenPayments { return this.#adyen_payments || (this.#adyen_payments = api.adyen_payments) }\n\tget application(): api.Applications { return this.#application || (this.#application = api.application) }\n\tget attachments(): api.Attachments { return this.#attachments || (this.#attachments = api.attachments) }\n\tget authorizations(): api.Authorizations { return this.#authorizations || (this.#authorizations = api.authorizations) }\n\tget avalara_accounts(): api.AvalaraAccounts { return this.#avalara_accounts || (this.#avalara_accounts = api.avalara_accounts) }\n\tget axerve_gateways(): api.AxerveGateways { return this.#axerve_gateways || (this.#axerve_gateways = api.axerve_gateways) }\n\tget axerve_payments(): api.AxervePayments { return this.#axerve_payments || (this.#axerve_payments = api.axerve_payments) }\n\tget bing_geocoders(): api.BingGeocoders { return this.#bing_geocoders || (this.#bing_geocoders = api.bing_geocoders) }\n\tget braintree_gateways(): api.BraintreeGateways { return this.#braintree_gateways || (this.#braintree_gateways = api.braintree_gateways) }\n\tget braintree_payments(): api.BraintreePayments { return this.#braintree_payments || (this.#braintree_payments = api.braintree_payments) }\n\tget bundles(): api.Bundles { return this.#bundles || (this.#bundles = api.bundles) }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return this.#buy_x_pay_y_promotions || (this.#buy_x_pay_y_promotions = api.buy_x_pay_y_promotions) }\n\tget captures(): api.Captures { return this.#captures || (this.#captures = api.captures) }\n\tget carrier_accounts(): api.CarrierAccounts { return this.#carrier_accounts || (this.#carrier_accounts = api.carrier_accounts) }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return this.#checkout_com_gateways || (this.#checkout_com_gateways = api.checkout_com_gateways) }\n\tget checkout_com_payments(): api.CheckoutComPayments { return this.#checkout_com_payments || (this.#checkout_com_payments = api.checkout_com_payments) }\n\tget cleanups(): api.Cleanups { return this.#cleanups || (this.#cleanups = api.cleanups) }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return this.#coupon_codes_promotion_rules || (this.#coupon_codes_promotion_rules = api.coupon_codes_promotion_rules) }\n\tget coupon_recipients(): api.CouponRecipients { return this.#coupon_recipients || (this.#coupon_recipients = api.coupon_recipients) }\n\tget coupons(): api.Coupons { return this.#coupons || (this.#coupons = api.coupons) }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return this.#custom_promotion_rules || (this.#custom_promotion_rules = api.custom_promotion_rules) }\n\tget customer_addresses(): api.CustomerAddresses { return this.#customer_addresses || (this.#customer_addresses = api.customer_addresses) }\n\tget customer_groups(): api.CustomerGroups { return this.#customer_groups || (this.#customer_groups = api.customer_groups) }\n\tget customer_password_resets(): api.CustomerPasswordResets { return this.#customer_password_resets || (this.#customer_password_resets = api.customer_password_resets) }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return this.#customer_payment_sources || (this.#customer_payment_sources = api.customer_payment_sources) }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return this.#customer_subscriptions || (this.#customer_subscriptions = api.customer_subscriptions) }\n\tget customers(): api.Customers { return this.#customers || (this.#customers = api.customers) }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return this.#delivery_lead_times || (this.#delivery_lead_times = api.delivery_lead_times) }\n\tget discount_engine_items(): api.DiscountEngineItems { return this.#discount_engine_items || (this.#discount_engine_items = api.discount_engine_items) }\n\tget discount_engines(): api.DiscountEngines { return this.#discount_engines || (this.#discount_engines = api.discount_engines) }\n\tget easypost_pickups(): api.EasypostPickups { return this.#easypost_pickups || (this.#easypost_pickups = api.easypost_pickups) }\n\tget event_callbacks(): api.EventCallbacks { return this.#event_callbacks || (this.#event_callbacks = api.event_callbacks) }\n\tget events(): api.Events { return this.#events || (this.#events = api.events) }\n\tget exports(): api.Exports { return this.#exports || (this.#exports = api.exports) }\n\tget external_gateways(): api.ExternalGateways { return this.#external_gateways || (this.#external_gateways = api.external_gateways) }\n\tget external_payments(): api.ExternalPayments { return this.#external_payments || (this.#external_payments = api.external_payments) }\n\tget external_promotions(): api.ExternalPromotions { return this.#external_promotions || (this.#external_promotions = api.external_promotions) }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return this.#external_tax_calculators || (this.#external_tax_calculators = api.external_tax_calculators) }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return this.#fixed_amount_promotions || (this.#fixed_amount_promotions = api.fixed_amount_promotions) }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return this.#fixed_price_promotions || (this.#fixed_price_promotions = api.fixed_price_promotions) }\n\tget flex_promotions(): api.FlexPromotions { return this.#flex_promotions || (this.#flex_promotions = api.flex_promotions) }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return this.#free_gift_promotions || (this.#free_gift_promotions = api.free_gift_promotions) }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return this.#free_shipping_promotions || (this.#free_shipping_promotions = api.free_shipping_promotions) }\n\tget geocoders(): api.Geocoders { return this.#geocoders || (this.#geocoders = api.geocoders) }\n\tget gift_card_recipients(): api.GiftCardRecipients { return this.#gift_card_recipients || (this.#gift_card_recipients = api.gift_card_recipients) }\n\tget gift_cards(): api.GiftCards { return this.#gift_cards || (this.#gift_cards = api.gift_cards) }\n\tget google_geocoders(): api.GoogleGeocoders { return this.#google_geocoders || (this.#google_geocoders = api.google_geocoders) }\n\tget imports(): api.Imports { return this.#imports || (this.#imports = api.imports) }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return this.#in_stock_subscriptions || (this.#in_stock_subscriptions = api.in_stock_subscriptions) }\n\tget inventory_models(): api.InventoryModels { return this.#inventory_models || (this.#inventory_models = api.inventory_models) }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return this.#inventory_return_locations || (this.#inventory_return_locations = api.inventory_return_locations) }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return this.#inventory_stock_locations || (this.#inventory_stock_locations = api.inventory_stock_locations) }\n\tget klarna_gateways(): api.KlarnaGateways { return this.#klarna_gateways || (this.#klarna_gateways = api.klarna_gateways) }\n\tget klarna_payments(): api.KlarnaPayments { return this.#klarna_payments || (this.#klarna_payments = api.klarna_payments) }\n\tget line_item_options(): api.LineItemOptions { return this.#line_item_options || (this.#line_item_options = api.line_item_options) }\n\tget line_items(): api.LineItems { return this.#line_items || (this.#line_items = api.line_items) }\n\tget links(): api.Links { return this.#links || (this.#links = api.links) }\n\tget manual_gateways(): api.ManualGateways { return this.#manual_gateways || (this.#manual_gateways = api.manual_gateways) }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return this.#manual_tax_calculators || (this.#manual_tax_calculators = api.manual_tax_calculators) }\n\tget markets(): api.Markets { return this.#markets || (this.#markets = api.markets) }\n\tget merchants(): api.Merchants { return this.#merchants || (this.#merchants = api.merchants) }\n\tget notifications(): api.Notifications { return this.#notifications || (this.#notifications = api.notifications) }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return this.#order_amount_promotion_rules || (this.#order_amount_promotion_rules = api.order_amount_promotion_rules) }\n\tget order_copies(): api.OrderCopies { return this.#order_copies || (this.#order_copies = api.order_copies) }\n\tget order_factories(): api.OrderFactories { return this.#order_factories || (this.#order_factories = api.order_factories) }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return this.#order_subscription_items || (this.#order_subscription_items = api.order_subscription_items) }\n\tget order_subscriptions(): api.OrderSubscriptions { return this.#order_subscriptions || (this.#order_subscriptions = api.order_subscriptions) }\n\tget orders(): api.Orders { return this.#orders || (this.#orders = api.orders) }\n\tget organization(): api.Organizations { return this.#organization || (this.#organization = api.organization) }\n\tget packages(): api.Packages { return this.#packages || (this.#packages = api.packages) }\n\tget parcel_line_items(): api.ParcelLineItems { return this.#parcel_line_items || (this.#parcel_line_items = api.parcel_line_items) }\n\tget parcels(): api.Parcels { return this.#parcels || (this.#parcels = api.parcels) }\n\tget payment_gateways(): api.PaymentGateways { return this.#payment_gateways || (this.#payment_gateways = api.payment_gateways) }\n\tget payment_methods(): api.PaymentMethods { return this.#payment_methods || (this.#payment_methods = api.payment_methods) }\n\tget payment_options(): api.PaymentOptions { return this.#payment_options || (this.#payment_options = api.payment_options) }\n\tget paypal_gateways(): api.PaypalGateways { return this.#paypal_gateways || (this.#paypal_gateways = api.paypal_gateways) }\n\tget paypal_payments(): api.PaypalPayments { return this.#paypal_payments || (this.#paypal_payments = api.paypal_payments) }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return this.#percentage_discount_promotions || (this.#percentage_discount_promotions = api.percentage_discount_promotions) }\n\tget pickups(): api.Pickups { return this.#pickups || (this.#pickups = api.pickups) }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return this.#price_frequency_tiers || (this.#price_frequency_tiers = api.price_frequency_tiers) }\n\tget price_list_schedulers(): api.PriceListSchedulers { return this.#price_list_schedulers || (this.#price_list_schedulers = api.price_list_schedulers) }\n\tget price_lists(): api.PriceLists { return this.#price_lists || (this.#price_lists = api.price_lists) }\n\tget price_tiers(): api.PriceTiers { return this.#price_tiers || (this.#price_tiers = api.price_tiers) }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return this.#price_volume_tiers || (this.#price_volume_tiers = api.price_volume_tiers) }\n\tget prices(): api.Prices { return this.#prices || (this.#prices = api.prices) }\n\tget promotion_rules(): api.PromotionRules { return this.#promotion_rules || (this.#promotion_rules = api.promotion_rules) }\n\tget promotions(): api.Promotions { return this.#promotions || (this.#promotions = api.promotions) }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return this.#recurring_order_copies || (this.#recurring_order_copies = api.recurring_order_copies) }\n\tget refunds(): api.Refunds { return this.#refunds || (this.#refunds = api.refunds) }\n\tget reserved_stocks(): api.ReservedStocks { return this.#reserved_stocks || (this.#reserved_stocks = api.reserved_stocks) }\n\tget resource_errors(): api.ResourceErrors { return this.#resource_errors || (this.#resource_errors = api.resource_errors) }\n\tget return_line_items(): api.ReturnLineItems { return this.#return_line_items || (this.#return_line_items = api.return_line_items) }\n\tget returns(): api.Returns { return this.#returns || (this.#returns = api.returns) }\n\tget satispay_gateways(): api.SatispayGateways { return this.#satispay_gateways || (this.#satispay_gateways = api.satispay_gateways) }\n\tget satispay_payments(): api.SatispayPayments { return this.#satispay_payments || (this.#satispay_payments = api.satispay_payments) }\n\tget shipments(): api.Shipments { return this.#shipments || (this.#shipments = api.shipments) }\n\tget shipping_categories(): api.ShippingCategories { return this.#shipping_categories || (this.#shipping_categories = api.shipping_categories) }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return this.#shipping_method_tiers || (this.#shipping_method_tiers = api.shipping_method_tiers) }\n\tget shipping_methods(): api.ShippingMethods { return this.#shipping_methods || (this.#shipping_methods = api.shipping_methods) }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return this.#shipping_weight_tiers || (this.#shipping_weight_tiers = api.shipping_weight_tiers) }\n\tget shipping_zones(): api.ShippingZones { return this.#shipping_zones || (this.#shipping_zones = api.shipping_zones) }\n\tget sku_list_items(): api.SkuListItems { return this.#sku_list_items || (this.#sku_list_items = api.sku_list_items) }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return this.#sku_list_promotion_rules || (this.#sku_list_promotion_rules = api.sku_list_promotion_rules) }\n\tget sku_lists(): api.SkuLists { return this.#sku_lists || (this.#sku_lists = api.sku_lists) }\n\tget sku_options(): api.SkuOptions { return this.#sku_options || (this.#sku_options = api.sku_options) }\n\tget skus(): api.Skus { return this.#skus || (this.#skus = api.skus) }\n\tget stock_items(): api.StockItems { return this.#stock_items || (this.#stock_items = api.stock_items) }\n\tget stock_line_items(): api.StockLineItems { return this.#stock_line_items || (this.#stock_line_items = api.stock_line_items) }\n\tget stock_locations(): api.StockLocations { return this.#stock_locations || (this.#stock_locations = api.stock_locations) }\n\tget stock_reservations(): api.StockReservations { return this.#stock_reservations || (this.#stock_reservations = api.stock_reservations) }\n\tget stock_transfers(): api.StockTransfers { return this.#stock_transfers || (this.#stock_transfers = api.stock_transfers) }\n\tget stores(): api.Stores { return this.#stores || (this.#stores = api.stores) }\n\tget stripe_gateways(): api.StripeGateways { return this.#stripe_gateways || (this.#stripe_gateways = api.stripe_gateways) }\n\tget stripe_payments(): api.StripePayments { return this.#stripe_payments || (this.#stripe_payments = api.stripe_payments) }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return this.#stripe_tax_accounts || (this.#stripe_tax_accounts = api.stripe_tax_accounts) }\n\tget subscription_models(): api.SubscriptionModels { return this.#subscription_models || (this.#subscription_models = api.subscription_models) }\n\tget tags(): api.Tags { return this.#tags || (this.#tags = api.tags) }\n\tget talon_one_accounts(): api.TalonOneAccounts { return this.#talon_one_accounts || (this.#talon_one_accounts = api.talon_one_accounts) }\n\tget tax_calculators(): api.TaxCalculators { return this.#tax_calculators || (this.#tax_calculators = api.tax_calculators) }\n\tget tax_categories(): api.TaxCategories { return this.#tax_categories || (this.#tax_categories = api.tax_categories) }\n\tget tax_rules(): api.TaxRules { return this.#tax_rules || (this.#tax_rules = api.tax_rules) }\n\tget taxjar_accounts(): api.TaxjarAccounts { return this.#taxjar_accounts || (this.#taxjar_accounts = api.taxjar_accounts) }\n\tget transactions(): api.Transactions { return this.#transactions || (this.#transactions = api.transactions) }\n\tget versions(): api.Versions { return this.#versions || (this.#versions = api.versions) }\n\tget vertex_accounts(): api.VertexAccounts { return this.#vertex_accounts || (this.#vertex_accounts = api.vertex_accounts) }\n\tget voids(): api.Voids { return this.#voids || (this.#voids = api.voids) }\n\tget webhooks(): api.Webhooks { return this.#webhooks || (this.#webhooks = api.webhooks) }\n\tget wire_transfers(): api.WireTransfers { return this.#wire_transfers || (this.#wire_transfers = api.wire_transfers) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn new CommerceLayerBundle(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
|
1
|
+
{"version":3,"sources":["../src/bundle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,KAAA,GAAQ,cAAM,QAAQ,CAAA;AAG5B,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,mBAAoB,CAAA;AAAA;AAAA;AAAA,EAIrD,UAAA;AAAA,EACA,YAAA;AAAA,EACA,eAAA;AAAA,EACA,eAAA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AAA,CAAA;AAAA;AAAU,EACxF,IAAI,cAAoC,GAAA;AAAE,IAAO,OAAA,IAAA,CAAK,eAAoB,KAAA,IAAA,CAAK,eAAsB,GAAA,sBAAA,CAAA;AAAA;AAAgB;AAGtH,CAAA;AAIA,SAAS,cAAc,MAAsD,EAAA;AAC5E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC","file":"bundle.js","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\nimport Debug from './debug'\nconst debug = Debug('bundle')\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t#addresses?: api.Addresses\n\t#adjustments?: api.Adjustments\n\t#adyen_gateways?: api.AdyenGateways\n\t#adyen_payments?: api.AdyenPayments\n\t#application?: api.Applications\n\t#attachments?: api.Attachments\n\t#authorizations?: api.Authorizations\n\t#avalara_accounts?: api.AvalaraAccounts\n\t#axerve_gateways?: api.AxerveGateways\n\t#axerve_payments?: api.AxervePayments\n\t#bing_geocoders?: api.BingGeocoders\n\t#braintree_gateways?: api.BraintreeGateways\n\t#braintree_payments?: api.BraintreePayments\n\t#bundles?: api.Bundles\n\t#buy_x_pay_y_promotions?: api.BuyXPayYPromotions\n\t#captures?: api.Captures\n\t#carrier_accounts?: api.CarrierAccounts\n\t#checkout_com_gateways?: api.CheckoutComGateways\n\t#checkout_com_payments?: api.CheckoutComPayments\n\t#cleanups?: api.Cleanups\n\t#coupon_codes_promotion_rules?: api.CouponCodesPromotionRules\n\t#coupon_recipients?: api.CouponRecipients\n\t#coupons?: api.Coupons\n\t#custom_promotion_rules?: api.CustomPromotionRules\n\t#customer_addresses?: api.CustomerAddresses\n\t#customer_groups?: api.CustomerGroups\n\t#customer_password_resets?: api.CustomerPasswordResets\n\t#customer_payment_sources?: api.CustomerPaymentSources\n\t#customer_subscriptions?: api.CustomerSubscriptions\n\t#customers?: api.Customers\n\t#delivery_lead_times?: api.DeliveryLeadTimes\n\t#discount_engine_items?: api.DiscountEngineItems\n\t#discount_engines?: api.DiscountEngines\n\t#easypost_pickups?: api.EasypostPickups\n\t#event_callbacks?: api.EventCallbacks\n\t#events?: api.Events\n\t#exports?: api.Exports\n\t#external_gateways?: api.ExternalGateways\n\t#external_payments?: api.ExternalPayments\n\t#external_promotions?: api.ExternalPromotions\n\t#external_tax_calculators?: api.ExternalTaxCalculators\n\t#fixed_amount_promotions?: api.FixedAmountPromotions\n\t#fixed_price_promotions?: api.FixedPricePromotions\n\t#flex_promotions?: api.FlexPromotions\n\t#free_gift_promotions?: api.FreeGiftPromotions\n\t#free_shipping_promotions?: api.FreeShippingPromotions\n\t#geocoders?: api.Geocoders\n\t#gift_card_recipients?: api.GiftCardRecipients\n\t#gift_cards?: api.GiftCards\n\t#google_geocoders?: api.GoogleGeocoders\n\t#imports?: api.Imports\n\t#in_stock_subscriptions?: api.InStockSubscriptions\n\t#inventory_models?: api.InventoryModels\n\t#inventory_return_locations?: api.InventoryReturnLocations\n\t#inventory_stock_locations?: api.InventoryStockLocations\n\t#klarna_gateways?: api.KlarnaGateways\n\t#klarna_payments?: api.KlarnaPayments\n\t#line_item_options?: api.LineItemOptions\n\t#line_items?: api.LineItems\n\t#links?: api.Links\n\t#manual_gateways?: api.ManualGateways\n\t#manual_tax_calculators?: api.ManualTaxCalculators\n\t#markets?: api.Markets\n\t#merchants?: api.Merchants\n\t#notifications?: api.Notifications\n\t#order_amount_promotion_rules?: api.OrderAmountPromotionRules\n\t#order_copies?: api.OrderCopies\n\t#order_factories?: api.OrderFactories\n\t#order_subscription_items?: api.OrderSubscriptionItems\n\t#order_subscriptions?: api.OrderSubscriptions\n\t#orders?: api.Orders\n\t#organization?: api.Organizations\n\t#packages?: api.Packages\n\t#parcel_line_items?: api.ParcelLineItems\n\t#parcels?: api.Parcels\n\t#payment_gateways?: api.PaymentGateways\n\t#payment_methods?: api.PaymentMethods\n\t#payment_options?: api.PaymentOptions\n\t#paypal_gateways?: api.PaypalGateways\n\t#paypal_payments?: api.PaypalPayments\n\t#percentage_discount_promotions?: api.PercentageDiscountPromotions\n\t#pickups?: api.Pickups\n\t#price_frequency_tiers?: api.PriceFrequencyTiers\n\t#price_list_schedulers?: api.PriceListSchedulers\n\t#price_lists?: api.PriceLists\n\t#price_tiers?: api.PriceTiers\n\t#price_volume_tiers?: api.PriceVolumeTiers\n\t#prices?: api.Prices\n\t#promotion_rules?: api.PromotionRules\n\t#promotions?: api.Promotions\n\t#recurring_order_copies?: api.RecurringOrderCopies\n\t#refunds?: api.Refunds\n\t#reserved_stocks?: api.ReservedStocks\n\t#resource_errors?: api.ResourceErrors\n\t#return_line_items?: api.ReturnLineItems\n\t#returns?: api.Returns\n\t#satispay_gateways?: api.SatispayGateways\n\t#satispay_payments?: api.SatispayPayments\n\t#shipments?: api.Shipments\n\t#shipping_categories?: api.ShippingCategories\n\t#shipping_method_tiers?: api.ShippingMethodTiers\n\t#shipping_methods?: api.ShippingMethods\n\t#shipping_weight_tiers?: api.ShippingWeightTiers\n\t#shipping_zones?: api.ShippingZones\n\t#sku_list_items?: api.SkuListItems\n\t#sku_list_promotion_rules?: api.SkuListPromotionRules\n\t#sku_lists?: api.SkuLists\n\t#sku_options?: api.SkuOptions\n\t#skus?: api.Skus\n\t#stock_items?: api.StockItems\n\t#stock_line_items?: api.StockLineItems\n\t#stock_locations?: api.StockLocations\n\t#stock_reservations?: api.StockReservations\n\t#stock_transfers?: api.StockTransfers\n\t#stores?: api.Stores\n\t#stripe_gateways?: api.StripeGateways\n\t#stripe_payments?: api.StripePayments\n\t#stripe_tax_accounts?: api.StripeTaxAccounts\n\t#subscription_models?: api.SubscriptionModels\n\t#tags?: api.Tags\n\t#talon_one_accounts?: api.TalonOneAccounts\n\t#tax_calculators?: api.TaxCalculators\n\t#tax_categories?: api.TaxCategories\n\t#tax_rules?: api.TaxRules\n\t#taxjar_accounts?: api.TaxjarAccounts\n\t#transactions?: api.Transactions\n\t#versions?: api.Versions\n\t#vertex_accounts?: api.VertexAccounts\n\t#voids?: api.Voids\n\t#webhooks?: api.Webhooks\n\t#wire_transfers?: api.WireTransfers\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(config)\n\t\tdebug('new commercelayer bundle instance %O', 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\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerBundle {\n\t\tif (config) return (CommerceLayerBundle.cl = new CommerceLayerBundle(config))\n\t\telse\n\t\tif (!CommerceLayerBundle.cl) throw new Error('CommerceLayer bundle client not initialized')\n\t\treturn CommerceLayerBundle.cl as CommerceLayerBundle\n\t}\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__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__## = api.##__RESOURCE_TYPE__##) }\n\tget addresses(): api.Addresses { return this.#addresses || (this.#addresses = api.addresses) }\n\tget adjustments(): api.Adjustments { return this.#adjustments || (this.#adjustments = api.adjustments) }\n\tget adyen_gateways(): api.AdyenGateways { return this.#adyen_gateways || (this.#adyen_gateways = api.adyen_gateways) }\n\tget adyen_payments(): api.AdyenPayments { return this.#adyen_payments || (this.#adyen_payments = api.adyen_payments) }\n\tget application(): api.Applications { return this.#application || (this.#application = api.application) }\n\tget attachments(): api.Attachments { return this.#attachments || (this.#attachments = api.attachments) }\n\tget authorizations(): api.Authorizations { return this.#authorizations || (this.#authorizations = api.authorizations) }\n\tget avalara_accounts(): api.AvalaraAccounts { return this.#avalara_accounts || (this.#avalara_accounts = api.avalara_accounts) }\n\tget axerve_gateways(): api.AxerveGateways { return this.#axerve_gateways || (this.#axerve_gateways = api.axerve_gateways) }\n\tget axerve_payments(): api.AxervePayments { return this.#axerve_payments || (this.#axerve_payments = api.axerve_payments) }\n\tget bing_geocoders(): api.BingGeocoders { return this.#bing_geocoders || (this.#bing_geocoders = api.bing_geocoders) }\n\tget braintree_gateways(): api.BraintreeGateways { return this.#braintree_gateways || (this.#braintree_gateways = api.braintree_gateways) }\n\tget braintree_payments(): api.BraintreePayments { return this.#braintree_payments || (this.#braintree_payments = api.braintree_payments) }\n\tget bundles(): api.Bundles { return this.#bundles || (this.#bundles = api.bundles) }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return this.#buy_x_pay_y_promotions || (this.#buy_x_pay_y_promotions = api.buy_x_pay_y_promotions) }\n\tget captures(): api.Captures { return this.#captures || (this.#captures = api.captures) }\n\tget carrier_accounts(): api.CarrierAccounts { return this.#carrier_accounts || (this.#carrier_accounts = api.carrier_accounts) }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return this.#checkout_com_gateways || (this.#checkout_com_gateways = api.checkout_com_gateways) }\n\tget checkout_com_payments(): api.CheckoutComPayments { return this.#checkout_com_payments || (this.#checkout_com_payments = api.checkout_com_payments) }\n\tget cleanups(): api.Cleanups { return this.#cleanups || (this.#cleanups = api.cleanups) }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return this.#coupon_codes_promotion_rules || (this.#coupon_codes_promotion_rules = api.coupon_codes_promotion_rules) }\n\tget coupon_recipients(): api.CouponRecipients { return this.#coupon_recipients || (this.#coupon_recipients = api.coupon_recipients) }\n\tget coupons(): api.Coupons { return this.#coupons || (this.#coupons = api.coupons) }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return this.#custom_promotion_rules || (this.#custom_promotion_rules = api.custom_promotion_rules) }\n\tget customer_addresses(): api.CustomerAddresses { return this.#customer_addresses || (this.#customer_addresses = api.customer_addresses) }\n\tget customer_groups(): api.CustomerGroups { return this.#customer_groups || (this.#customer_groups = api.customer_groups) }\n\tget customer_password_resets(): api.CustomerPasswordResets { return this.#customer_password_resets || (this.#customer_password_resets = api.customer_password_resets) }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return this.#customer_payment_sources || (this.#customer_payment_sources = api.customer_payment_sources) }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return this.#customer_subscriptions || (this.#customer_subscriptions = api.customer_subscriptions) }\n\tget customers(): api.Customers { return this.#customers || (this.#customers = api.customers) }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return this.#delivery_lead_times || (this.#delivery_lead_times = api.delivery_lead_times) }\n\tget discount_engine_items(): api.DiscountEngineItems { return this.#discount_engine_items || (this.#discount_engine_items = api.discount_engine_items) }\n\tget discount_engines(): api.DiscountEngines { return this.#discount_engines || (this.#discount_engines = api.discount_engines) }\n\tget easypost_pickups(): api.EasypostPickups { return this.#easypost_pickups || (this.#easypost_pickups = api.easypost_pickups) }\n\tget event_callbacks(): api.EventCallbacks { return this.#event_callbacks || (this.#event_callbacks = api.event_callbacks) }\n\tget events(): api.Events { return this.#events || (this.#events = api.events) }\n\tget exports(): api.Exports { return this.#exports || (this.#exports = api.exports) }\n\tget external_gateways(): api.ExternalGateways { return this.#external_gateways || (this.#external_gateways = api.external_gateways) }\n\tget external_payments(): api.ExternalPayments { return this.#external_payments || (this.#external_payments = api.external_payments) }\n\tget external_promotions(): api.ExternalPromotions { return this.#external_promotions || (this.#external_promotions = api.external_promotions) }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return this.#external_tax_calculators || (this.#external_tax_calculators = api.external_tax_calculators) }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return this.#fixed_amount_promotions || (this.#fixed_amount_promotions = api.fixed_amount_promotions) }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return this.#fixed_price_promotions || (this.#fixed_price_promotions = api.fixed_price_promotions) }\n\tget flex_promotions(): api.FlexPromotions { return this.#flex_promotions || (this.#flex_promotions = api.flex_promotions) }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return this.#free_gift_promotions || (this.#free_gift_promotions = api.free_gift_promotions) }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return this.#free_shipping_promotions || (this.#free_shipping_promotions = api.free_shipping_promotions) }\n\tget geocoders(): api.Geocoders { return this.#geocoders || (this.#geocoders = api.geocoders) }\n\tget gift_card_recipients(): api.GiftCardRecipients { return this.#gift_card_recipients || (this.#gift_card_recipients = api.gift_card_recipients) }\n\tget gift_cards(): api.GiftCards { return this.#gift_cards || (this.#gift_cards = api.gift_cards) }\n\tget google_geocoders(): api.GoogleGeocoders { return this.#google_geocoders || (this.#google_geocoders = api.google_geocoders) }\n\tget imports(): api.Imports { return this.#imports || (this.#imports = api.imports) }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return this.#in_stock_subscriptions || (this.#in_stock_subscriptions = api.in_stock_subscriptions) }\n\tget inventory_models(): api.InventoryModels { return this.#inventory_models || (this.#inventory_models = api.inventory_models) }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return this.#inventory_return_locations || (this.#inventory_return_locations = api.inventory_return_locations) }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return this.#inventory_stock_locations || (this.#inventory_stock_locations = api.inventory_stock_locations) }\n\tget klarna_gateways(): api.KlarnaGateways { return this.#klarna_gateways || (this.#klarna_gateways = api.klarna_gateways) }\n\tget klarna_payments(): api.KlarnaPayments { return this.#klarna_payments || (this.#klarna_payments = api.klarna_payments) }\n\tget line_item_options(): api.LineItemOptions { return this.#line_item_options || (this.#line_item_options = api.line_item_options) }\n\tget line_items(): api.LineItems { return this.#line_items || (this.#line_items = api.line_items) }\n\tget links(): api.Links { return this.#links || (this.#links = api.links) }\n\tget manual_gateways(): api.ManualGateways { return this.#manual_gateways || (this.#manual_gateways = api.manual_gateways) }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return this.#manual_tax_calculators || (this.#manual_tax_calculators = api.manual_tax_calculators) }\n\tget markets(): api.Markets { return this.#markets || (this.#markets = api.markets) }\n\tget merchants(): api.Merchants { return this.#merchants || (this.#merchants = api.merchants) }\n\tget notifications(): api.Notifications { return this.#notifications || (this.#notifications = api.notifications) }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return this.#order_amount_promotion_rules || (this.#order_amount_promotion_rules = api.order_amount_promotion_rules) }\n\tget order_copies(): api.OrderCopies { return this.#order_copies || (this.#order_copies = api.order_copies) }\n\tget order_factories(): api.OrderFactories { return this.#order_factories || (this.#order_factories = api.order_factories) }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return this.#order_subscription_items || (this.#order_subscription_items = api.order_subscription_items) }\n\tget order_subscriptions(): api.OrderSubscriptions { return this.#order_subscriptions || (this.#order_subscriptions = api.order_subscriptions) }\n\tget orders(): api.Orders { return this.#orders || (this.#orders = api.orders) }\n\tget organization(): api.Organizations { return this.#organization || (this.#organization = api.organization) }\n\tget packages(): api.Packages { return this.#packages || (this.#packages = api.packages) }\n\tget parcel_line_items(): api.ParcelLineItems { return this.#parcel_line_items || (this.#parcel_line_items = api.parcel_line_items) }\n\tget parcels(): api.Parcels { return this.#parcels || (this.#parcels = api.parcels) }\n\tget payment_gateways(): api.PaymentGateways { return this.#payment_gateways || (this.#payment_gateways = api.payment_gateways) }\n\tget payment_methods(): api.PaymentMethods { return this.#payment_methods || (this.#payment_methods = api.payment_methods) }\n\tget payment_options(): api.PaymentOptions { return this.#payment_options || (this.#payment_options = api.payment_options) }\n\tget paypal_gateways(): api.PaypalGateways { return this.#paypal_gateways || (this.#paypal_gateways = api.paypal_gateways) }\n\tget paypal_payments(): api.PaypalPayments { return this.#paypal_payments || (this.#paypal_payments = api.paypal_payments) }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return this.#percentage_discount_promotions || (this.#percentage_discount_promotions = api.percentage_discount_promotions) }\n\tget pickups(): api.Pickups { return this.#pickups || (this.#pickups = api.pickups) }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return this.#price_frequency_tiers || (this.#price_frequency_tiers = api.price_frequency_tiers) }\n\tget price_list_schedulers(): api.PriceListSchedulers { return this.#price_list_schedulers || (this.#price_list_schedulers = api.price_list_schedulers) }\n\tget price_lists(): api.PriceLists { return this.#price_lists || (this.#price_lists = api.price_lists) }\n\tget price_tiers(): api.PriceTiers { return this.#price_tiers || (this.#price_tiers = api.price_tiers) }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return this.#price_volume_tiers || (this.#price_volume_tiers = api.price_volume_tiers) }\n\tget prices(): api.Prices { return this.#prices || (this.#prices = api.prices) }\n\tget promotion_rules(): api.PromotionRules { return this.#promotion_rules || (this.#promotion_rules = api.promotion_rules) }\n\tget promotions(): api.Promotions { return this.#promotions || (this.#promotions = api.promotions) }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return this.#recurring_order_copies || (this.#recurring_order_copies = api.recurring_order_copies) }\n\tget refunds(): api.Refunds { return this.#refunds || (this.#refunds = api.refunds) }\n\tget reserved_stocks(): api.ReservedStocks { return this.#reserved_stocks || (this.#reserved_stocks = api.reserved_stocks) }\n\tget resource_errors(): api.ResourceErrors { return this.#resource_errors || (this.#resource_errors = api.resource_errors) }\n\tget return_line_items(): api.ReturnLineItems { return this.#return_line_items || (this.#return_line_items = api.return_line_items) }\n\tget returns(): api.Returns { return this.#returns || (this.#returns = api.returns) }\n\tget satispay_gateways(): api.SatispayGateways { return this.#satispay_gateways || (this.#satispay_gateways = api.satispay_gateways) }\n\tget satispay_payments(): api.SatispayPayments { return this.#satispay_payments || (this.#satispay_payments = api.satispay_payments) }\n\tget shipments(): api.Shipments { return this.#shipments || (this.#shipments = api.shipments) }\n\tget shipping_categories(): api.ShippingCategories { return this.#shipping_categories || (this.#shipping_categories = api.shipping_categories) }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return this.#shipping_method_tiers || (this.#shipping_method_tiers = api.shipping_method_tiers) }\n\tget shipping_methods(): api.ShippingMethods { return this.#shipping_methods || (this.#shipping_methods = api.shipping_methods) }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return this.#shipping_weight_tiers || (this.#shipping_weight_tiers = api.shipping_weight_tiers) }\n\tget shipping_zones(): api.ShippingZones { return this.#shipping_zones || (this.#shipping_zones = api.shipping_zones) }\n\tget sku_list_items(): api.SkuListItems { return this.#sku_list_items || (this.#sku_list_items = api.sku_list_items) }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return this.#sku_list_promotion_rules || (this.#sku_list_promotion_rules = api.sku_list_promotion_rules) }\n\tget sku_lists(): api.SkuLists { return this.#sku_lists || (this.#sku_lists = api.sku_lists) }\n\tget sku_options(): api.SkuOptions { return this.#sku_options || (this.#sku_options = api.sku_options) }\n\tget skus(): api.Skus { return this.#skus || (this.#skus = api.skus) }\n\tget stock_items(): api.StockItems { return this.#stock_items || (this.#stock_items = api.stock_items) }\n\tget stock_line_items(): api.StockLineItems { return this.#stock_line_items || (this.#stock_line_items = api.stock_line_items) }\n\tget stock_locations(): api.StockLocations { return this.#stock_locations || (this.#stock_locations = api.stock_locations) }\n\tget stock_reservations(): api.StockReservations { return this.#stock_reservations || (this.#stock_reservations = api.stock_reservations) }\n\tget stock_transfers(): api.StockTransfers { return this.#stock_transfers || (this.#stock_transfers = api.stock_transfers) }\n\tget stores(): api.Stores { return this.#stores || (this.#stores = api.stores) }\n\tget stripe_gateways(): api.StripeGateways { return this.#stripe_gateways || (this.#stripe_gateways = api.stripe_gateways) }\n\tget stripe_payments(): api.StripePayments { return this.#stripe_payments || (this.#stripe_payments = api.stripe_payments) }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return this.#stripe_tax_accounts || (this.#stripe_tax_accounts = api.stripe_tax_accounts) }\n\tget subscription_models(): api.SubscriptionModels { return this.#subscription_models || (this.#subscription_models = api.subscription_models) }\n\tget tags(): api.Tags { return this.#tags || (this.#tags = api.tags) }\n\tget talon_one_accounts(): api.TalonOneAccounts { return this.#talon_one_accounts || (this.#talon_one_accounts = api.talon_one_accounts) }\n\tget tax_calculators(): api.TaxCalculators { return this.#tax_calculators || (this.#tax_calculators = api.tax_calculators) }\n\tget tax_categories(): api.TaxCategories { return this.#tax_categories || (this.#tax_categories = api.tax_categories) }\n\tget tax_rules(): api.TaxRules { return this.#tax_rules || (this.#tax_rules = api.tax_rules) }\n\tget taxjar_accounts(): api.TaxjarAccounts { return this.#taxjar_accounts || (this.#taxjar_accounts = api.taxjar_accounts) }\n\tget transactions(): api.Transactions { return this.#transactions || (this.#transactions = api.transactions) }\n\tget versions(): api.Versions { return this.#versions || (this.#versions = api.versions) }\n\tget vertex_accounts(): api.VertexAccounts { return this.#vertex_accounts || (this.#vertex_accounts = api.vertex_accounts) }\n\tget voids(): api.Voids { return this.#voids || (this.#voids = api.voids) }\n\tget webhooks(): api.Webhooks { return this.#webhooks || (this.#webhooks = api.webhooks) }\n\tget wire_transfers(): api.WireTransfers { return this.#wire_transfers || (this.#wire_transfers = api.wire_transfers) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn CommerceLayerBundle.get(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var
|
3
|
+
var chunkZLHZGR5I_cjs = require('./chunk-ZLHZGR5I.cjs');
|
4
4
|
var chunkSRW7OWVS_cjs = require('./chunk-SRW7OWVS.cjs');
|
5
5
|
var chunkX6PHZA6P_cjs = require('./chunk-X6PHZA6P.cjs');
|
6
6
|
var chunkIKHD5UQP_cjs = require('./chunk-IKHD5UQP.cjs');
|
@@ -41,10 +41,10 @@ var CommerceLayerStatic = {
|
|
41
41
|
return chunkSRW7OWVS_cjs.isTokenExpired(token);
|
42
42
|
},
|
43
43
|
get schemaVersion() {
|
44
|
-
return
|
44
|
+
return chunkZLHZGR5I_cjs.OPEN_API_SCHEMA_VERSION;
|
45
45
|
}
|
46
46
|
};
|
47
47
|
|
48
48
|
exports.CommerceLayerStatic = CommerceLayerStatic;
|
49
|
-
//# sourceMappingURL=chunk-
|
50
|
-
//# sourceMappingURL=chunk-
|
49
|
+
//# sourceMappingURL=chunk-6EDJTG3X.cjs.map
|
50
|
+
//# sourceMappingURL=chunk-6EDJTG3X.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAsB,GAAA;AAAA,EAElC,SAAA,EAAW,CAAC,IAAsC,KAAA;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,GACzB;AAAA,EAEA,UAAA,EAAY,CAAC,IAAsC,KAAA;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,GAC1B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,UAAA,EAAY,CAAC,QAAwC,KAAA;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,GAC3B;AAAA,EAEA,aAAA,EAAe,CAAC,QAAwC,KAAA;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,GAC9B;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,cAAA,EAAgB,CAAC,KAA2B,KAAA;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,GAC5B;AAAA,EAEA,IAAI,aAAwB,GAAA;AAAE,IAAO,OAAAC,yCAAA;AAAA;AAEtC","file":"chunk-
|
1
|
+
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAsB,GAAA;AAAA,EAElC,SAAA,EAAW,CAAC,IAAsC,KAAA;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,GACzB;AAAA,EAEA,UAAA,EAAY,CAAC,IAAsC,KAAA;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,GAC1B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,UAAA,EAAY,CAAC,QAAwC,KAAA;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,GAC3B;AAAA,EAEA,aAAA,EAAe,CAAC,QAAwC,KAAA;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,GAC9B;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,cAAA,EAAgB,CAAC,KAA2B,KAAA;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,GAC5B;AAAA,EAEA,IAAI,aAAwB,GAAA;AAAE,IAAO,OAAAC,yCAAA;AAAA;AAEtC","file":"chunk-6EDJTG3X.cjs","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 { SdkError, 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"]}
|
@@ -101,5 +101,5 @@ var CommerceLayer = (config) => {
|
|
101
101
|
var commercelayer_default = CommerceLayer;
|
102
102
|
|
103
103
|
export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default };
|
104
|
-
//# sourceMappingURL=chunk-
|
105
|
-
//# sourceMappingURL=chunk-
|
104
|
+
//# sourceMappingURL=chunk-BYRFMGBQ.js.map
|
105
|
+
//# sourceMappingURL=chunk-BYRFMGBQ.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/commercelayer.ts"],"names":[],"mappings":";;;;;;AASA,IAAM,KAAA,GAAQ,cAAM,eAAe,CAAA;AAI5B,IAAM,uBAA0B,GAAA;AAajC,IAAA,mBAAA,GAAN,MAAM,oBAAoB,CAAA;AAAA,EAEzB,WAAW,oBAA+B,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAAwB,EAClE,oBAAuB,GAAA,uBAAA;AAAA,EAEhC,OAAiB,EAAA;AAAA;AAAA;AAAA;AAAA,EAOjB,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,oBAAA,CAAoB,EAAK,GAAA,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,OAAO,oBAAoB,CAAA,EAAA;AAAA;AAC5B,EAGU,YAAY,MAAiC,EAAA;AAEtD,IAAA,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AA;AACtC;AAGA,IAAO,qBAAQ,GAAA","file":"chunk-BYRFMGBQ.js","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 schema version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.8.5'\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\tstatic get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\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\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\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"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OPEN_API_SCHEMA_VERSION } from './chunk-
|
1
|
+
import { OPEN_API_SCHEMA_VERSION } from './chunk-BYRFMGBQ.js';
|
2
2
|
import { isTokenExpired } from './chunk-R2LRLUUY.js';
|
3
3
|
import { isVersionable, isTaggable, isDeletable, isUpdatable, isCreatable, isSingleton, getSingletons, getResources } from './chunk-GD4WRDF2.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-UB4WKBUO.js.map
|
48
|
+
//# sourceMappingURL=chunk-UB4WKBUO.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/static.ts"],"names":[],"mappings":";;;;;;AASO,IAAM,mBAAsB,GAAA;AAAA,EAElC,SAAA,EAAW,CAAC,IAAsC,KAAA;AACjD,IAAA,OAAO,aAAa,IAAI,CAAA;AAAA,GACzB;AAAA,EAEA,UAAA,EAAY,CAAC,IAAsC,KAAA;AAClD,IAAA,OAAO,cAAc,IAAI,CAAA;AAAA,GAC1B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,UAAA,EAAY,CAAC,QAAwC,KAAA;AACpD,IAAA,OAAO,WAAW,QAAQ,CAAA;AAAA,GAC3B;AAAA,EAEA,aAAA,EAAe,CAAC,QAAwC,KAAA;AACvD,IAAA,OAAO,cAAc,QAAQ,CAAA;AAAA,GAC9B;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,cAAA,EAAgB,CAAC,KAA2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A,GAC5B;AAAA,EAEA,IAAI,aAAwB,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAEtC","file":"chunk-UB4WKBUO.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 { SdkError, 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"]}
|
@@ -106,5 +106,5 @@ exports.CommerceLayer = CommerceLayer;
|
|
106
106
|
exports.CommerceLayerClient = CommerceLayerClient;
|
107
107
|
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION;
|
108
108
|
exports.commercelayer_default = commercelayer_default;
|
109
|
-
//# sourceMappingURL=chunk-
|
110
|
-
//# sourceMappingURL=chunk-
|
109
|
+
//# sourceMappingURL=chunk-ZLHZGR5I.cjs.map
|
110
|
+
//# sourceMappingURL=chunk-ZLHZGR5I.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;;AASA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAI5B,IAAM,uBAA0B,GAAA;AAajC,IAAA,mBAAA,GAAN,MAAM,oBAAoB,CAAA;AAAA,EAEzB,WAAW,oBAA+B,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAAwB,EAClE,oBAAuB,GAAA,uBAAA;AAAA,EAEhC,OAAiB,EAAA;AAAA;AAAA;AAAA;AAAA,EAOjB,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,oBAAA,CAAoB,EAAK,GAAA,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,OAAO,oBAAoB,CAAA,EAAA;AAAA;AAC5B,EAGU,YAAY,MAAiC,EAAA;AAEtD,IAAA,KAAA,CAAM,iCAAiC,MAAM,CAAA;AAE7C,IAAAC,oCAAA,CAAmB,KAAK,MAAM,CAAA;AAAA;AAM/B;AAAA;AAAA;AAAA;AAAA,EAOA,IAAI,mBAA8B,GAAA;AAAE,IAAO,OAAAA,oCAAA,CAAmB,GAAI,EAAA,CAAE,MAAQ,EAAA,mBAAA;AAAA;AAAoB,EAChG,IAAI,kBAA6B,GAAA;AAAE,IAAO,OAAAA,oCAAA,CAAmB,GAAI,EAAA,CAAE,MAAQ,EAAA,kBAAA;AAAA;AAAmB,EAC9F,IAAY,YAAmC,GAAA;AAAE,IAAO,OAAAA,oCAAA,CAAm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,IAAA,eAAe,uBAAuB,QAA6C,EAAA;AAClF,MAAO,MAAA,CAAA,WAAA,GAAc,MAAM,QAAU,EAAA,KAAA,GAAQ,IAAK,EAAA,CAAE,MAAM,MAAM;AAAA,OAAE,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAS,CAAA,EAAA;AACrB,MAAA,IAAI,SAAS,OAAS,EAAA;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAQ,CAAA,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAQ,KAAA;AAAE,UAAA,EAAA,CAAG,GAAG,CAAI,GAAA,KAAA;AAAA,SAAO,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAU,GAAA,EAAA;AAAA;AAElB,MAAO,OAAA,QAAA;AAAA;AAGiB,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,EAAE,SAAW,EAAA,sBAAA,EAAwB,WAAW,sBAAuB,EAAA;AAC9H,IAAA,MAAA,CAAO,EAAK,GAAA,CAAA;AAEZ,IAAO,OAAA,MAAA;AAAA;AAER,EAEA,uBAAwE,GAAA;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,MAAA;AAAA;AAGhC;AAIM,IAAA,aAAA,GAAgB,CAAC,MAAyD,KAAA;AAC/E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAQ,GAAA","file":"chunk-ZLHZGR5I.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 schema version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.8.5'\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\tstatic get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\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\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\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"]}
|
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 chunkZLHZGR5I_cjs = require('./chunk-ZLHZGR5I.cjs');
|
6
6
|
require('./chunk-QYDOENWU.cjs');
|
7
7
|
require('./chunk-YY5ENJSH.cjs');
|
8
8
|
require('./chunk-WAL76UPE.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 chunkZLHZGR5I_cjs.CommerceLayer; }
|
21
21
|
});
|
22
22
|
Object.defineProperty(exports, "CommerceLayerClient", {
|
23
23
|
enumerable: true,
|
24
|
-
get: function () { return
|
24
|
+
get: function () { return chunkZLHZGR5I_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 chunkZLHZGR5I_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 chunkZLHZGR5I_cjs.commercelayer_default; }
|
33
33
|
});
|
34
34
|
//# sourceMappingURL=commercelayer.cjs.map
|
35
35
|
//# sourceMappingURL=commercelayer.cjs.map
|
package/lib/commercelayer.d.cts
CHANGED
@@ -11,7 +11,7 @@ type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
11
11
|
declare class CommerceLayerClient {
|
12
12
|
static get openApiSchemaVersion(): string;
|
13
13
|
readonly openApiSchemaVersion = "7.8.5";
|
14
|
-
|
14
|
+
protected static cl: CommerceLayerClient;
|
15
15
|
static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
|
16
16
|
protected constructor(config: CommerceLayerInitConfig);
|
17
17
|
get currentOrganization(): string;
|
package/lib/commercelayer.d.ts
CHANGED
@@ -11,7 +11,7 @@ type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
11
11
|
declare class CommerceLayerClient {
|
12
12
|
static get openApiSchemaVersion(): string;
|
13
13
|
readonly openApiSchemaVersion = "7.8.5";
|
14
|
-
|
14
|
+
protected static cl: CommerceLayerClient;
|
15
15
|
static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
|
16
16
|
protected constructor(config: CommerceLayerInitConfig);
|
17
17
|
get currentOrganization(): string;
|
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-BYRFMGBQ.js';
|
2
2
|
import './chunk-NAWKHFBZ.js';
|
3
3
|
import './chunk-CHYP5F26.js';
|
4
4
|
import './chunk-H4SVEI6E.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 chunk6EDJTG3X_cjs = require('./chunk-6EDJTG3X.cjs');
|
6
6
|
require('./chunk-5YMHXTJG.cjs');
|
7
7
|
var chunkTIJIXGNJ_cjs = require('./chunk-TIJIXGNJ.cjs');
|
8
8
|
var chunkHNHF6T2I_cjs = require('./chunk-HNHF6T2I.cjs');
|
@@ -135,7 +135,7 @@ var chunkH4PUXGNI_cjs = require('./chunk-H4PUXGNI.cjs');
|
|
135
135
|
var chunkLCLXLB2R_cjs = require('./chunk-LCLXLB2R.cjs');
|
136
136
|
var chunkP3NADEGE_cjs = require('./chunk-P3NADEGE.cjs');
|
137
137
|
var chunkSGWRNEJB_cjs = require('./chunk-SGWRNEJB.cjs');
|
138
|
-
var
|
138
|
+
var chunkZLHZGR5I_cjs = require('./chunk-ZLHZGR5I.cjs');
|
139
139
|
require('./chunk-QYDOENWU.cjs');
|
140
140
|
require('./chunk-YY5ENJSH.cjs');
|
141
141
|
require('./chunk-WAL76UPE.cjs');
|
@@ -150,7 +150,7 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
150
150
|
|
151
151
|
Object.defineProperty(exports, "CommerceLayerStatic", {
|
152
152
|
enumerable: true,
|
153
|
-
get: function () { return
|
153
|
+
get: function () { return chunk6EDJTG3X_cjs.CommerceLayerStatic; }
|
154
154
|
});
|
155
155
|
Object.defineProperty(exports, "versions", {
|
156
156
|
enumerable: true,
|
@@ -678,11 +678,11 @@ Object.defineProperty(exports, "attachments", {
|
|
678
678
|
});
|
679
679
|
Object.defineProperty(exports, "CommerceLayer", {
|
680
680
|
enumerable: true,
|
681
|
-
get: function () { return
|
681
|
+
get: function () { return chunkZLHZGR5I_cjs.CommerceLayer; }
|
682
682
|
});
|
683
683
|
Object.defineProperty(exports, "default", {
|
684
684
|
enumerable: true,
|
685
|
-
get: function () { return
|
685
|
+
get: function () { return chunkZLHZGR5I_cjs.commercelayer_default; }
|
686
686
|
});
|
687
687
|
//# sourceMappingURL=index.cjs.map
|
688
688
|
//# sourceMappingURL=index.cjs.map
|
package/lib/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { CommerceLayerStatic } from './chunk-
|
1
|
+
export { CommerceLayerStatic } from './chunk-UB4WKBUO.js';
|
2
2
|
import './chunk-3EX76AZW.js';
|
3
3
|
export { versions_default as versions } from './chunk-7JLRB7QH.js';
|
4
4
|
export { vertex_accounts_default as vertex_accounts } from './chunk-PEU5GGGE.js';
|
@@ -131,7 +131,7 @@ export { adyen_gateways_default as adyen_gateways } from './chunk-NDPDO54G.js';
|
|
131
131
|
export { adyen_payments_default as adyen_payments } from './chunk-JENLN6VJ.js';
|
132
132
|
export { applications_default as application } from './chunk-7X36B7N6.js';
|
133
133
|
export { attachments_default as attachments } from './chunk-DYZGWPZ6.js';
|
134
|
-
export { CommerceLayer, commercelayer_default as default } from './chunk-
|
134
|
+
export { CommerceLayer, commercelayer_default as default } from './chunk-BYRFMGBQ.js';
|
135
135
|
import './chunk-NAWKHFBZ.js';
|
136
136
|
import './chunk-CHYP5F26.js';
|
137
137
|
import './chunk-H4SVEI6E.js';
|
package/lib/static.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var
|
4
|
-
require('./chunk-
|
3
|
+
var chunk6EDJTG3X_cjs = require('./chunk-6EDJTG3X.cjs');
|
4
|
+
require('./chunk-ZLHZGR5I.cjs');
|
5
5
|
require('./chunk-QYDOENWU.cjs');
|
6
6
|
require('./chunk-YY5ENJSH.cjs');
|
7
7
|
require('./chunk-WAL76UPE.cjs');
|
@@ -16,7 +16,7 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
16
16
|
|
17
17
|
Object.defineProperty(exports, "CommerceLayerStatic", {
|
18
18
|
enumerable: true,
|
19
|
-
get: function () { return
|
19
|
+
get: function () { return chunk6EDJTG3X_cjs.CommerceLayerStatic; }
|
20
20
|
});
|
21
21
|
//# sourceMappingURL=static.cjs.map
|
22
22
|
//# sourceMappingURL=static.cjs.map
|
package/lib/static.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { CommerceLayerStatic } from './chunk-
|
2
|
-
import './chunk-
|
1
|
+
export { CommerceLayerStatic } from './chunk-UB4WKBUO.js';
|
2
|
+
import './chunk-BYRFMGBQ.js';
|
3
3
|
import './chunk-NAWKHFBZ.js';
|
4
4
|
import './chunk-CHYP5F26.js';
|
5
5
|
import './chunk-H4SVEI6E.js';
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../src/commercelayer.ts"],"names":[],"mappings":";;;;;;AASA,IAAM,KAAA,GAAQ,cAAM,eAAe,CAAA;AAI5B,IAAM,uBAA0B,GAAA;AAajC,IAAA,mBAAA,GAAN,MAAM,oBAAoB,CAAA;AAAA,EAEzB,WAAW,oBAA+B,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAAwB,EAClE,oBAAuB,GAAA,uBAAA;AAAA,EAEhC,OAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAOf,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,oBAAA,CAAoB,EAAK,GAAA,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,OAAO,oBAAoB,CAAA,EAAA;AAAA;AAC5B,EAGU,YAAY,MAAiC,EAAA;AAEtD,IAAA,KAAA,CAAM,iCAAiC,MAAM,CAAA;AAE7C,IAAA,kBAAA,CAAmB,KAAK,MAAM,CAAA;AAAA;AAM/B;AAAA;AAAA;AAAA;AAAA,EAOA,IAAI,mBAA8B,GAAA;AAAE,IAAO,OAAA,kBAAA,CAAmB,GAAI,EAAA,CAAE,MAAQ,EAAA,mBAAA;AAAA;AAAoB,EAChG,IAAI,kBAA6B,GAAA;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,GAAA;AAAA,MACjC,EAAI,EAAA,CAAA;AAAA,MACJ,WAAa,EAAA,MAAA;AAAA,MACb,OAAS,EAAA,MAAA;AAAA,MACT,EAAI,EAAA;AAAA,KACL;AAEA,IAAA,eAAe,uBAAuB,QAA6C,EAAA;AAClF,MAAO,MAAA,CAAA,WAAA,GAAc,MAAM,QAAU,EAAA,KAAA,GAAQ,IAAK,EAAA,CAAE,MAAM,MAAM;AAAA,OAAE,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAS,CAAA,EAAA;AACrB,MAAA,IAAI,SAAS,OAAS,EAAA;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAQ,CAAA,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAQ,KAAA;AAAE,UAAA,EAAA,CAAG,GAAG,CAAI,GAAA,KAAA;AAAA,SAAO,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAU,GAAA,EAAA;AAAA;AAElB,MAAO,OAAA,QAAA;AAAA;AAGiB,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,EAAE,SAAW,EAAA,sBAAA,EAAwB,WAAW,sBAAuB,EAAA;AAC9H,IAAA,MAAA,CAAO,EAAK,GAAA,CAAA;AAEZ,IAAO,OAAA,MAAA;AAAA;AAER,EAEA,uBAAwE,GAAA;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAY,GAAA,MAAA;AAAA;AAGhC;AAIM,IAAA,aAAA,GAAgB,CAAC,MAAyD,KAAA;AAC/E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAQ,GAAA","file":"chunk-H2JICBVP.js","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 schema version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.8.5'\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\tstatic get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprivate static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\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\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"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;;AASA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAI5B,IAAM,uBAA0B,GAAA;AAajC,IAAA,mBAAA,GAAN,MAAM,oBAAoB,CAAA;AAAA,EAEzB,WAAW,oBAA+B,GAAA;AAAE,IAAO,OAAA,uBAAA;AAAA;AAAwB,EAClE,oBAAuB,GAAA,uBAAA;AAAA,EAEhC,OAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAOf,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,oBAAA,CAAoB,EAAK,GAAA,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,OAAO,oBAAoB,CAAA,EAAA;AAAA;AAC5B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A;AAC/E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAQ,GAAA","file":"chunk-ZUVEU45V.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 schema version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.8.5'\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\tstatic get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprivate static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\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\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"]}
|