@aimee.shop/sdk 0.17.0 → 0.18.0-dev.121
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/dist/core/events/event-names.d.ts +142 -146
- package/dist/core/events/event-names.d.ts.map +1 -1
- package/dist/core/events/event-names.js +141 -145
- package/dist/core/events/event-names.js.map +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/core/assets.client.d.ts +2 -8
- package/dist/services/core/assets.client.d.ts.map +1 -1
- package/dist/services/core/assets.client.js.map +1 -1
- package/dist/services/core/base-resource.d.ts +7 -2
- package/dist/services/core/base-resource.d.ts.map +1 -1
- package/dist/services/core/base-resource.js +27 -20
- package/dist/services/core/base-resource.js.map +1 -1
- package/dist/services/core/cart-messages/cart-messages.client.d.ts +14 -4
- package/dist/services/core/cart-messages/cart-messages.client.d.ts.map +1 -1
- package/dist/services/core/cart-messages/cart-messages.client.js +37 -4
- package/dist/services/core/cart-messages/cart-messages.client.js.map +1 -1
- package/dist/services/core/cart-messages/index.d.ts +1 -1
- package/dist/services/core/cart-messages/index.d.ts.map +1 -1
- package/dist/services/core/cart-messages/types.d.ts +19 -2
- package/dist/services/core/cart-messages/types.d.ts.map +1 -1
- package/dist/services/core/carts.client.d.ts +46 -8
- package/dist/services/core/carts.client.d.ts.map +1 -1
- package/dist/services/core/carts.client.js +18 -0
- package/dist/services/core/carts.client.js.map +1 -1
- package/dist/services/core/categories.client.d.ts +14 -7
- package/dist/services/core/categories.client.d.ts.map +1 -1
- package/dist/services/core/categories.client.js.map +1 -1
- package/dist/services/core/checkout.client.d.ts +74 -35
- package/dist/services/core/checkout.client.d.ts.map +1 -1
- package/dist/services/core/checkout.client.js +3 -2
- package/dist/services/core/checkout.client.js.map +1 -1
- package/dist/services/core/cms/cms.client.d.ts +1 -1
- package/dist/services/core/cms/cms.client.js +1 -1
- package/dist/services/core/cms/entries.client.d.ts +4 -2
- package/dist/services/core/cms/entries.client.d.ts.map +1 -1
- package/dist/services/core/cms/entries.client.js +8 -2
- package/dist/services/core/cms/entries.client.js.map +1 -1
- package/dist/services/core/cms/types.d.ts +95 -53
- package/dist/services/core/cms/types.d.ts.map +1 -1
- package/dist/services/core/cms/types.js.map +1 -1
- package/dist/services/core/customers.client.d.ts +70 -61
- package/dist/services/core/customers.client.d.ts.map +1 -1
- package/dist/services/core/customers.client.js +15 -13
- package/dist/services/core/customers.client.js.map +1 -1
- package/dist/services/core/discounts.client.d.ts +98 -46
- package/dist/services/core/discounts.client.d.ts.map +1 -1
- package/dist/services/core/discounts.client.js +17 -17
- package/dist/services/core/discounts.client.js.map +1 -1
- package/dist/services/core/facets.client.d.ts +27 -10
- package/dist/services/core/facets.client.d.ts.map +1 -1
- package/dist/services/core/facets.client.js +18 -7
- package/dist/services/core/facets.client.js.map +1 -1
- package/dist/services/core/fulfillments.client.d.ts +51 -27
- package/dist/services/core/fulfillments.client.d.ts.map +1 -1
- package/dist/services/core/fulfillments.client.js +30 -18
- package/dist/services/core/fulfillments.client.js.map +1 -1
- package/dist/services/core/inventory/adjustments.client.d.ts +12 -2
- package/dist/services/core/inventory/adjustments.client.d.ts.map +1 -1
- package/dist/services/core/inventory/adjustments.client.js.map +1 -1
- package/dist/services/core/inventory/index.d.ts +1 -1
- package/dist/services/core/inventory/index.d.ts.map +1 -1
- package/dist/services/core/inventory/reservations.client.d.ts +3 -3
- package/dist/services/core/inventory/reservations.client.d.ts.map +1 -1
- package/dist/services/core/inventory/reservations.client.js +2 -2
- package/dist/services/core/inventory/reservations.client.js.map +1 -1
- package/dist/services/core/inventory/types.d.ts +29 -6
- package/dist/services/core/inventory/types.d.ts.map +1 -1
- package/dist/services/core/inventory/types.js +1 -0
- package/dist/services/core/inventory/types.js.map +1 -1
- package/dist/services/core/invoices.client.d.ts +4 -7
- package/dist/services/core/invoices.client.d.ts.map +1 -1
- package/dist/services/core/invoices.client.js +1 -1
- package/dist/services/core/invoices.client.js.map +1 -1
- package/dist/services/core/openai-feed.client.d.ts +34 -3
- package/dist/services/core/openai-feed.client.d.ts.map +1 -1
- package/dist/services/core/openai-feed.client.js.map +1 -1
- package/dist/services/core/option-types.client.d.ts +6 -7
- package/dist/services/core/option-types.client.d.ts.map +1 -1
- package/dist/services/core/option-types.client.js +7 -8
- package/dist/services/core/option-types.client.js.map +1 -1
- package/dist/services/core/option-values.client.d.ts +2 -1
- package/dist/services/core/option-values.client.d.ts.map +1 -1
- package/dist/services/core/option-values.client.js +2 -1
- package/dist/services/core/option-values.client.js.map +1 -1
- package/dist/services/core/order-edits.client.d.ts +20 -14
- package/dist/services/core/order-edits.client.d.ts.map +1 -1
- package/dist/services/core/order-edits.client.js +1 -1
- package/dist/services/core/order-edits.client.js.map +1 -1
- package/dist/services/core/orders.client.d.ts +139 -49
- package/dist/services/core/orders.client.d.ts.map +1 -1
- package/dist/services/core/orders.client.js +40 -9
- package/dist/services/core/orders.client.js.map +1 -1
- package/dist/services/core/pricing/currencies.client.d.ts +9 -23
- package/dist/services/core/pricing/currencies.client.d.ts.map +1 -1
- package/dist/services/core/pricing/currencies.client.js +12 -30
- package/dist/services/core/pricing/currencies.client.js.map +1 -1
- package/dist/services/core/pricing/pricing.client.d.ts +5 -5
- package/dist/services/core/pricing/pricing.client.d.ts.map +1 -1
- package/dist/services/core/pricing/pricing.client.js +4 -4
- package/dist/services/core/pricing/pricing.client.js.map +1 -1
- package/dist/services/core/pricing/store-markets.client.d.ts +2 -5
- package/dist/services/core/pricing/store-markets.client.d.ts.map +1 -1
- package/dist/services/core/pricing/store-markets.client.js +1 -7
- package/dist/services/core/pricing/store-markets.client.js.map +1 -1
- package/dist/services/core/pricing/tiers.client.d.ts +4 -4
- package/dist/services/core/pricing/tiers.client.js +4 -4
- package/dist/services/core/pricing/types.d.ts +67 -60
- package/dist/services/core/pricing/types.d.ts.map +1 -1
- package/dist/services/core/pricing/variant-prices.client.d.ts +14 -14
- package/dist/services/core/pricing/variant-prices.client.d.ts.map +1 -1
- package/dist/services/core/pricing/variant-prices.client.js +14 -18
- package/dist/services/core/pricing/variant-prices.client.js.map +1 -1
- package/dist/services/core/products.client.d.ts +73 -13
- package/dist/services/core/products.client.d.ts.map +1 -1
- package/dist/services/core/products.client.js.map +1 -1
- package/dist/services/core/returns.client.d.ts +21 -6
- package/dist/services/core/returns.client.d.ts.map +1 -1
- package/dist/services/core/returns.client.js +12 -6
- package/dist/services/core/returns.client.js.map +1 -1
- package/dist/services/core/reviews.client.d.ts +17 -15
- package/dist/services/core/reviews.client.d.ts.map +1 -1
- package/dist/services/core/reviews.client.js.map +1 -1
- package/dist/services/core/search.client.d.ts +26 -11
- package/dist/services/core/search.client.d.ts.map +1 -1
- package/dist/services/core/search.client.js.map +1 -1
- package/dist/services/core/shipping/classes.client.d.ts +2 -5
- package/dist/services/core/shipping/classes.client.d.ts.map +1 -1
- package/dist/services/core/shipping/classes.client.js +4 -0
- package/dist/services/core/shipping/classes.client.js.map +1 -1
- package/dist/services/core/shipping/labels.client.d.ts +3 -6
- package/dist/services/core/shipping/labels.client.d.ts.map +1 -1
- package/dist/services/core/shipping/labels.client.js +5 -1
- package/dist/services/core/shipping/labels.client.js.map +1 -1
- package/dist/services/core/shipping/providers.client.d.ts +2 -5
- package/dist/services/core/shipping/providers.client.d.ts.map +1 -1
- package/dist/services/core/shipping/providers.client.js +6 -2
- package/dist/services/core/shipping/providers.client.js.map +1 -1
- package/dist/services/core/shipping/rules.client.d.ts +2 -5
- package/dist/services/core/shipping/rules.client.d.ts.map +1 -1
- package/dist/services/core/shipping/rules.client.js +4 -2
- package/dist/services/core/shipping/rules.client.js.map +1 -1
- package/dist/services/core/shipping/shipping.client.d.ts +4 -4
- package/dist/services/core/shipping/shipping.client.d.ts.map +1 -1
- package/dist/services/core/shipping/shipping.client.js +7 -5
- package/dist/services/core/shipping/shipping.client.js.map +1 -1
- package/dist/services/core/shipping/store-providers.client.d.ts +5 -5
- package/dist/services/core/shipping/store-providers.client.d.ts.map +1 -1
- package/dist/services/core/shipping/store-providers.client.js +1 -1
- package/dist/services/core/shipping/store-providers.client.js.map +1 -1
- package/dist/services/core/shipping/types.d.ts +196 -67
- package/dist/services/core/shipping/types.d.ts.map +1 -1
- package/dist/services/core/shipping/zones.client.d.ts +2 -5
- package/dist/services/core/shipping/zones.client.d.ts.map +1 -1
- package/dist/services/core/shipping/zones.client.js +4 -0
- package/dist/services/core/shipping/zones.client.js.map +1 -1
- package/dist/services/core/storefront/index.d.ts +1 -1
- package/dist/services/core/storefront/index.d.ts.map +1 -1
- package/dist/services/core/storefront/index.js.map +1 -1
- package/dist/services/core/storefront/storefront-auth.client.d.ts +9 -4
- package/dist/services/core/storefront/storefront-auth.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-auth.client.js +7 -2
- package/dist/services/core/storefront/storefront-auth.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-plans.client.d.ts +5 -4
- package/dist/services/core/storefront/storefront-plans.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-plans.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-subscriptions.client.d.ts +19 -12
- package/dist/services/core/storefront/storefront-subscriptions.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-subscriptions.client.js.map +1 -1
- package/dist/services/core/storefront/storefront.client.d.ts +4 -1
- package/dist/services/core/storefront/storefront.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront.client.js +4 -1
- package/dist/services/core/storefront/storefront.client.js.map +1 -1
- package/dist/services/core/storefront/types.d.ts +10 -0
- package/dist/services/core/storefront/types.d.ts.map +1 -1
- package/dist/services/core/stores/configuration.client.d.ts +21 -18
- package/dist/services/core/stores/configuration.client.d.ts.map +1 -1
- package/dist/services/core/stores/configuration.client.js.map +1 -1
- package/dist/services/core/stores/index.d.ts +1 -1
- package/dist/services/core/stores/index.d.ts.map +1 -1
- package/dist/services/core/stores/index.js.map +1 -1
- package/dist/services/core/stores/stores.client.d.ts +44 -15
- package/dist/services/core/stores/stores.client.d.ts.map +1 -1
- package/dist/services/core/stores/stores.client.js +10 -5
- package/dist/services/core/stores/stores.client.js.map +1 -1
- package/dist/services/core/taxes/jurisdictions.client.d.ts +4 -4
- package/dist/services/core/taxes/jurisdictions.client.d.ts.map +1 -1
- package/dist/services/core/taxes/jurisdictions.client.js +7 -4
- package/dist/services/core/taxes/jurisdictions.client.js.map +1 -1
- package/dist/services/core/taxes/providers.client.d.ts +1 -1
- package/dist/services/core/taxes/providers.client.d.ts.map +1 -1
- package/dist/services/core/taxes/providers.client.js.map +1 -1
- package/dist/services/core/taxes/rates.client.d.ts +2 -1
- package/dist/services/core/taxes/rates.client.d.ts.map +1 -1
- package/dist/services/core/taxes/rates.client.js +2 -1
- package/dist/services/core/taxes/rates.client.js.map +1 -1
- package/dist/services/core/taxes/store-providers.client.d.ts +5 -5
- package/dist/services/core/taxes/store-providers.client.d.ts.map +1 -1
- package/dist/services/core/taxes/store-providers.client.js +1 -1
- package/dist/services/core/taxes/store-providers.client.js.map +1 -1
- package/dist/services/core/taxes/taxes.client.d.ts +6 -3
- package/dist/services/core/taxes/taxes.client.d.ts.map +1 -1
- package/dist/services/core/taxes/taxes.client.js +5 -2
- package/dist/services/core/taxes/taxes.client.js.map +1 -1
- package/dist/services/core/taxes/types.d.ts +251 -128
- package/dist/services/core/taxes/types.d.ts.map +1 -1
- package/dist/services/core/variants.client.d.ts +80 -11
- package/dist/services/core/variants.client.d.ts.map +1 -1
- package/dist/services/core/variants.client.js +2 -2
- package/dist/services/core/variants.client.js.map +1 -1
- package/dist/services/core/wishlists.client.d.ts +31 -25
- package/dist/services/core/wishlists.client.d.ts.map +1 -1
- package/dist/services/core/wishlists.client.js +4 -2
- package/dist/services/core/wishlists.client.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/configuration.client.ts"],"names":[],"mappings":"A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WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,0EAA0E;IAC1E,OAAO,EAAE,eAAe,CAAC;IACzB,kFAAkF;IAClF,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAID,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"configuration.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/configuration.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yEAAyE;IACzE,WAAW,EAAE,WAAW,CAAC;IACzB,qEAAqE;IACrE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oCAAoC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,4CAA4C;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,4DAA4D;IAC5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CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,aAAa,EAAE,aAAa,CAAC;CAC9B;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,wBAAwB;IAEjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIvD;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAO7F;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAO7F;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5C;;;OAGG;IACG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAK1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/configuration.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configuration.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/configuration.client.ts"],"names":[],"mappings":"AAyMA,mDAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,OAAO,wBAAwB;IAEhB;IACA;IAFnB,YACmB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,OAAe;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,OAAO,cAAc,OAAO,gBAAgB,CAAC,CAAC;IACjG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,IAAiC;QAC7D,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,OAAO,cAAc,OAAO,gBAAgB,EACpD,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,IAAiC;QAC7D,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CACpB,GAAG,IAAI,CAAC,OAAO,cAAc,OAAO,gBAAgB,EACpD,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,OAAe;QAC1B,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,cAAc,OAAO,gBAAgB,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,OAAe;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,GAAG,IAAI,CAAC,OAAO,cAAc,OAAO,uBAAuB,CAC5D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { StoresClient } from './stores.client.js';
|
|
2
|
-
export type { Store, PriceDisplayMode, CreateStoreDto, UpdateStoreDto, StoreFilters, UpdateStoreDomainsDto, } from './stores.client.js';
|
|
2
|
+
export type { Store, StorePublicProfile, CreatedStore, StoreListResponse, PriceDisplayMode, CreateStoreDto, UpdateStoreDto, StoreFilters, UpdateStoreDomainsDto, } from './stores.client.js';
|
|
3
3
|
export { StoreAiDiscoveryClient } from './ai-discovery.client.js';
|
|
4
4
|
export type { AiDiscoveryFileType, AiDiscoveryFileSummary, AiDiscoveryStatusResponse, AiDiscoveryFileResponse, AiDiscoveryFileWithGenerated, UpdateAiDiscoveryFileDto, PublishAiDiscoveryDto, } from './ai-discovery.client.js';
|
|
5
5
|
export { StoreConfigurationClient } from './configuration.client.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EACV,KAAK,EACL,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,YAAY,EAEV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAEhB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EAErB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EACV,KAAK,EACL,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,YAAY,EAEV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAEhB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EAErB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAalD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAWlE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAyCrE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -7,7 +7,7 @@ export interface Store {
|
|
|
7
7
|
tenantId: string;
|
|
8
8
|
name: string;
|
|
9
9
|
code: string;
|
|
10
|
-
description?: string;
|
|
10
|
+
description?: string | null;
|
|
11
11
|
primaryDomain: string;
|
|
12
12
|
domains: string[];
|
|
13
13
|
defaultLanguage: string;
|
|
@@ -24,11 +24,35 @@ export interface Store {
|
|
|
24
24
|
isSandbox: boolean;
|
|
25
25
|
/** When the store was promoted to live (null while sandbox). */
|
|
26
26
|
promotedAt: string | null;
|
|
27
|
-
maintenanceMessage?: string;
|
|
28
|
-
metadata?: Record<string, unknown
|
|
27
|
+
maintenanceMessage?: string | null;
|
|
28
|
+
metadata?: Record<string, unknown> | null;
|
|
29
29
|
createdAt: string;
|
|
30
30
|
updatedAt: string;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Storefront-safe store profile. core-api returns this instead of the full `Store`
|
|
34
|
+
* on reads made with a store-scoped API key (for example a publishable key).
|
|
35
|
+
*/
|
|
36
|
+
export interface StorePublicProfile {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
code: string;
|
|
40
|
+
defaultLanguage: string;
|
|
41
|
+
supportedLanguages: string[];
|
|
42
|
+
defaultCurrency: string;
|
|
43
|
+
allowedCurrencies: string[];
|
|
44
|
+
timezone: string;
|
|
45
|
+
}
|
|
46
|
+
/** `POST /v1/stores` response. */
|
|
47
|
+
export interface CreatedStore extends Store {
|
|
48
|
+
/** Set when the store was created but default setup failed; retry via `POST /v1/stores/{id}/bootstrap`. */
|
|
49
|
+
bootstrapWarning?: string;
|
|
50
|
+
}
|
|
51
|
+
/** `GET /v1/stores` response. */
|
|
52
|
+
export interface StoreListResponse<TStore extends StorePublicProfile = Store | StorePublicProfile> {
|
|
53
|
+
stores: TStore[];
|
|
54
|
+
total: number;
|
|
55
|
+
}
|
|
32
56
|
export interface CreateStoreDto {
|
|
33
57
|
name: string;
|
|
34
58
|
code: string;
|
|
@@ -81,7 +105,7 @@ export interface UpdateStoreDomainsDto {
|
|
|
81
105
|
* @example
|
|
82
106
|
* ```typescript
|
|
83
107
|
* // List all stores
|
|
84
|
-
* const stores = await sdk.stores.list();
|
|
108
|
+
* const { stores, total } = await sdk.stores.list();
|
|
85
109
|
*
|
|
86
110
|
* // Create a new store
|
|
87
111
|
* const store = await sdk.stores.create({
|
|
@@ -105,8 +129,12 @@ export interface UpdateStoreDomainsDto {
|
|
|
105
129
|
* // Get merged settings (store → tenant → defaults)
|
|
106
130
|
* const merged = await sdk.stores.configuration.getMerged(store.id);
|
|
107
131
|
* ```
|
|
132
|
+
*
|
|
133
|
+
* Reads (`list`, `get`, `getActive`, `getDefault`, `getByCode`) return a
|
|
134
|
+
* `StorePublicProfile` when the caller uses a store-scoped API key, so `TStore`
|
|
135
|
+
* defaults to `Store | StorePublicProfile`. The JWT-only platform client narrows it to `Store`.
|
|
108
136
|
*/
|
|
109
|
-
export declare class StoresClient {
|
|
137
|
+
export declare class StoresClient<TStore extends StorePublicProfile = Store | StorePublicProfile> {
|
|
110
138
|
protected readonly http: HttpClient;
|
|
111
139
|
protected readonly baseUrl: string;
|
|
112
140
|
private _aiDiscovery?;
|
|
@@ -123,15 +151,15 @@ export declare class StoresClient {
|
|
|
123
151
|
/**
|
|
124
152
|
* List all stores for the tenant
|
|
125
153
|
*/
|
|
126
|
-
list(filters?: StoreFilters): Promise<
|
|
154
|
+
list(filters?: StoreFilters): Promise<StoreListResponse<TStore>>;
|
|
127
155
|
/**
|
|
128
156
|
* Get a specific store by ID
|
|
129
157
|
*/
|
|
130
|
-
get(id: string): Promise<
|
|
158
|
+
get(id: string): Promise<TStore>;
|
|
131
159
|
/**
|
|
132
160
|
* Create a new store
|
|
133
161
|
*/
|
|
134
|
-
create(data: CreateStoreDto): Promise<
|
|
162
|
+
create(data: CreateStoreDto): Promise<CreatedStore>;
|
|
135
163
|
/**
|
|
136
164
|
* Update a store
|
|
137
165
|
*/
|
|
@@ -143,19 +171,20 @@ export declare class StoresClient {
|
|
|
143
171
|
/**
|
|
144
172
|
* Get all active stores
|
|
145
173
|
*/
|
|
146
|
-
getActive(): Promise<
|
|
174
|
+
getActive(): Promise<TStore[]>;
|
|
147
175
|
/**
|
|
148
176
|
* Get the default store for the tenant
|
|
149
177
|
*/
|
|
150
|
-
getDefault(): Promise<
|
|
178
|
+
getDefault(): Promise<TStore>;
|
|
151
179
|
/**
|
|
152
|
-
* Find a store by domain
|
|
180
|
+
* Find a store of the caller's tenant by domain (needs `stores:read`). Another
|
|
181
|
+
* tenant's domain throws `NotFoundError`.
|
|
153
182
|
*/
|
|
154
|
-
getByDomain(domain: string): Promise<
|
|
183
|
+
getByDomain(domain: string): Promise<TStore>;
|
|
155
184
|
/**
|
|
156
185
|
* Find a store by code
|
|
157
186
|
*/
|
|
158
|
-
getByCode(code: string): Promise<
|
|
187
|
+
getByCode(code: string): Promise<TStore>;
|
|
159
188
|
/**
|
|
160
189
|
* Activate a store
|
|
161
190
|
*/
|
|
@@ -165,9 +194,9 @@ export declare class StoresClient {
|
|
|
165
194
|
*/
|
|
166
195
|
deactivate(id: string): Promise<Store>;
|
|
167
196
|
/**
|
|
168
|
-
* Enable maintenance mode
|
|
197
|
+
* Enable maintenance mode. The server defaults the message to 'Maintenance mode enabled'.
|
|
169
198
|
*/
|
|
170
|
-
enableMaintenance(id: string): Promise<Store>;
|
|
199
|
+
enableMaintenance(id: string, maintenanceMessage?: string): Promise<Store>;
|
|
171
200
|
/**
|
|
172
201
|
* Disable maintenance mode
|
|
173
202
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/stores.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,YAAY,CAAC;AAExD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"stores.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/stores.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,YAAY,CAAC;AAExD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aA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I9D;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIpC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAInC;;;OAGG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAMlD;;OAEG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9C;;OAEG;IACG,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAI1C;;OAEG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAI5C;;OAEG;IACG,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAOhF;;OAEG;IACG,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAIpD;;OAEG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;IAI/D;;OAEG;IACG,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;CAKnE"}
|
|
@@ -7,7 +7,7 @@ import { StoreConfigurationClient } from './configuration.client.js';
|
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
9
|
* // List all stores
|
|
10
|
-
* const stores = await sdk.stores.list();
|
|
10
|
+
* const { stores, total } = await sdk.stores.list();
|
|
11
11
|
*
|
|
12
12
|
* // Create a new store
|
|
13
13
|
* const store = await sdk.stores.create({
|
|
@@ -31,6 +31,10 @@ import { StoreConfigurationClient } from './configuration.client.js';
|
|
|
31
31
|
* // Get merged settings (store → tenant → defaults)
|
|
32
32
|
* const merged = await sdk.stores.configuration.getMerged(store.id);
|
|
33
33
|
* ```
|
|
34
|
+
*
|
|
35
|
+
* Reads (`list`, `get`, `getActive`, `getDefault`, `getByCode`) return a
|
|
36
|
+
* `StorePublicProfile` when the caller uses a store-scoped API key, so `TStore`
|
|
37
|
+
* defaults to `Store | StorePublicProfile`. The JWT-only platform client narrows it to `Store`.
|
|
34
38
|
*/
|
|
35
39
|
export class StoresClient {
|
|
36
40
|
http;
|
|
@@ -111,7 +115,8 @@ export class StoresClient {
|
|
|
111
115
|
return this.http.get(`${this.baseUrl}/v1/stores/default`);
|
|
112
116
|
}
|
|
113
117
|
/**
|
|
114
|
-
* Find a store by domain
|
|
118
|
+
* Find a store of the caller's tenant by domain (needs `stores:read`). Another
|
|
119
|
+
* tenant's domain throws `NotFoundError`.
|
|
115
120
|
*/
|
|
116
121
|
async getByDomain(domain) {
|
|
117
122
|
return this.http.get(`${this.baseUrl}/v1/stores/by-domain/${encodeURIComponent(domain)}`);
|
|
@@ -135,10 +140,10 @@ export class StoresClient {
|
|
|
135
140
|
return this.http.post(`${this.baseUrl}/v1/stores/${id}/deactivate`, {});
|
|
136
141
|
}
|
|
137
142
|
/**
|
|
138
|
-
* Enable maintenance mode
|
|
143
|
+
* Enable maintenance mode. The server defaults the message to 'Maintenance mode enabled'.
|
|
139
144
|
*/
|
|
140
|
-
async enableMaintenance(id) {
|
|
141
|
-
return this.http.post(`${this.baseUrl}/v1/stores/${id}/maintenance/enable`, {});
|
|
145
|
+
async enableMaintenance(id, maintenanceMessage) {
|
|
146
|
+
return this.http.post(`${this.baseUrl}/v1/stores/${id}/maintenance/enable`, maintenanceMessage === undefined ? {} : { maintenanceMessage });
|
|
142
147
|
}
|
|
143
148
|
/**
|
|
144
149
|
* Disable maintenance mode
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/stores.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"stores.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/stores.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AA+GrE,mDAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,OAAO,YAAY;IAKF;IACA;IALb,YAAY,CAA0B;IACtC,cAAc,CAA4B;IAElD,YACqB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IACjC,CAAC;IAEJ,wDAAwD;IAExD;;OAEG;IACH,IAAI,WAAW;QACb,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACvB,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YACzB,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED,6DAA6D;IAE7D;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,UAAwB,EAAE;QACnC,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,IAAI,OAAO,CAAC,QAAQ,KAAK,SA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CAAC,IAAI,CAAQ,GAAG,IAAI,CAAC,OAAO,cAAc,EAAE,sBAAsB,EAAE,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,EAAU,EAAE,OAAiB;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAQ,GAAG,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,EAAU,EAAE,OAAiB;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAQ,GAAG,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE;YACxE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClientTransport as HttpClient } from '../../../core/http-client.js';
|
|
2
|
-
import type { TaxJurisdiction, CreateTaxJurisdictionDto, UpdateTaxJurisdictionDto, TaxJurisdictionFilters, JurisdictionHierarchy, JurisdictionLookupResult,
|
|
2
|
+
import type { TaxJurisdiction, CreateTaxJurisdictionDto, UpdateTaxJurisdictionDto, TaxJurisdictionFilters, JurisdictionHierarchy, JurisdictionLookupResult, JurisdictionLookupAddress } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* TaxJurisdictionsClient manages tax jurisdictions
|
|
5
5
|
* (countries, states, counties, cities, districts).
|
|
@@ -16,9 +16,9 @@ import type { TaxJurisdiction, CreateTaxJurisdictionDto, UpdateTaxJurisdictionDt
|
|
|
16
16
|
* const hierarchy = await sdk.taxes.jurisdictions.getHierarchy(jurisdictionId);
|
|
17
17
|
*
|
|
18
18
|
* // Find jurisdictions by address
|
|
19
|
-
* const
|
|
19
|
+
* const matches = await sdk.taxes.jurisdictions.findByAddress(
|
|
20
|
+
* { city: 'Los Angeles', state: 'CA', zip: '90210', country: 'US' },
|
|
20
21
|
* providerId,
|
|
21
|
-
* { city: 'Los Angeles', state: 'CA', zip: '90210', country: 'US' }
|
|
22
22
|
* );
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
@@ -56,6 +56,6 @@ export declare class TaxJurisdictionsClient {
|
|
|
56
56
|
/**
|
|
57
57
|
* Find jurisdictions by address
|
|
58
58
|
*/
|
|
59
|
-
findByAddress(
|
|
59
|
+
findByAddress(address: JurisdictionLookupAddress, providerId?: string): Promise<JurisdictionLookupResult[]>;
|
|
60
60
|
}
|
|
61
61
|
//# sourceMappingURL=jurisdictions.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jurisdictions.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/jurisdictions.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,
|
|
1
|
+
{"version":3,"file":"jurisdictions.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/jurisdictions.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,IAAI,CACR,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC;QAAE,aAAa,EAAE,eAAe,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAa/D;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,UAAQ,GAAG,OAAO,CAAC,eAAe,CAAC;IAQzE;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,eAAe,CAAC;IAItE;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIlF;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;OAEG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAM9D;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,yBAAyB,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,wBAAwB,EAAE,CAAC;CASvC"}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* const hierarchy = await sdk.taxes.jurisdictions.getHierarchy(jurisdictionId);
|
|
15
15
|
*
|
|
16
16
|
* // Find jurisdictions by address
|
|
17
|
-
* const
|
|
17
|
+
* const matches = await sdk.taxes.jurisdictions.findByAddress(
|
|
18
|
+
* { city: 'Los Angeles', state: 'CA', zip: '90210', country: 'US' },
|
|
18
19
|
* providerId,
|
|
19
|
-
* { city: 'Los Angeles', state: 'CA', zip: '90210', country: 'US' }
|
|
20
20
|
* );
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
@@ -86,8 +86,11 @@ export class TaxJurisdictionsClient {
|
|
|
86
86
|
/**
|
|
87
87
|
* Find jurisdictions by address
|
|
88
88
|
*/
|
|
89
|
-
async findByAddress(
|
|
90
|
-
|
|
89
|
+
async findByAddress(address, providerId) {
|
|
90
|
+
const params = {};
|
|
91
|
+
if (providerId)
|
|
92
|
+
params.providerId = providerId;
|
|
93
|
+
return this.http.post(`${this.baseUrl}/v1/taxes/jurisdictions/lookup`, address, { params });
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
//# sourceMappingURL=jurisdictions.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jurisdictions.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/jurisdictions.client.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,sBAAsB;IAEd;IACA;IAFnB,YACmB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,UAAkC,EAAE;QAEpC,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;YAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;YAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,OAAO,CAAC,UAAU;YAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QAC/D,IAAI,OAAO,CAAC,gBAAgB;YAAE,MAAM,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;QACjF,IAAI,OAAO,CAAC,QAAQ;YAAE,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACzD,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS;YAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC/E,IAAI,OAA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AI,CAAC,IAAI,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,OAAO,gCAAgC,EAC/C,OAAO,EACP,EAAE,MAAM,EAAE,CACX,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/providers.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,KAAK,EACV,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,IAAI,CACR,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC;QAAE,SAAS,EAAE,WAAW,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAUvD;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;IAMjE;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI9D;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI1E;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,WAAW,CAAC;IAIjD;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"providers.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/providers.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,KAAK,EACV,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,IAAI,CACR,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC;QAAE,SAAS,EAAE,WAAW,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAUvD;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;IAMjE;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI9D;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI1E;;OAEG;IACG,M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AK;QACxC,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,IAAI,YAAY;YAAE,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAc,GAAG,IAAI,CAAC,OAAO,uBAAuB,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,IAA0B;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAc,GAAG,IAAI,CAAC,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,IAA0B;QACjD,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAc,GAAG,IAAI,CAAC,OAAO,uBAAuB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB;QACvB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAc,GAAG,IAAI,CAAC,OAAO,8BAA8B,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"providers.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/providers.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAoBnE,+DAA+D;AAC/D,MAAM,cAAc,GAAG,OAAO,CAAC;AAC/B,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAEjD;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CAAC,GAAG,CAClB,GAAG,IAAI,CAAC,OAAO,mCAAmC,KAAK,SAAS,CACjE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,OAAO,kCAAkC,EACjD,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -20,8 +20,9 @@ import type { TaxRate, CreateTaxRateDto, UpdateTaxRateDto, TaxRateFilters, Effec
|
|
|
20
20
|
* // Calculate combined rate
|
|
21
21
|
* const combined = await sdk.taxes.rates.calculateCombinedRate({
|
|
22
22
|
* jurisdictionIds: ['state-id', 'county-id'],
|
|
23
|
-
* amount:
|
|
23
|
+
* amount: 10000, // cents
|
|
24
24
|
* });
|
|
25
|
+
* combined.taxAmount; // cents string, e.g. '825'
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class TaxRatesClient {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rates.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/rates.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"rates.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/rates.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,IAAI,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAetF;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,mBAAmB,UAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAMpE;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAItD;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlE;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAOtF;;OAEG;IACG,qBAAqB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAGvF"}
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
* // Calculate combined rate
|
|
19
19
|
* const combined = await sdk.taxes.rates.calculateCombinedRate({
|
|
20
20
|
* jurisdictionIds: ['state-id', 'county-id'],
|
|
21
|
-
* amount:
|
|
21
|
+
* amount: 10000, // cents
|
|
22
22
|
* });
|
|
23
|
+
* combined.taxAmount; // cents string, e.g. '825'
|
|
23
24
|
* ```
|
|
24
25
|
*/
|
|
25
26
|
export class TaxRatesClient {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rates.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/rates.client.ts"],"names":[],"mappings":"AAYA
|
|
1
|
+
{"version":3,"file":"rates.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/rates.client.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,OAAO,cAAc;IAEN;IACA;IAFnB,YACmB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,UAA0B,EAAE;QACrC,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;YAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;YAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,OAAO,CAAC,UAAU;YAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QAC/D,IAAI,OAAO,CAAC,cAAc;YAAE,MAAM,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC3E,IAAI,OAAO,CAAC,OAAO;YAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACtD,IAAI,OAAO,CAAC,eAAe;YAAE,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC9E,IAAI,OAAO,CAAC,YAAY;YAAE,MAAM,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;QACrE,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS;YAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC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CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,OAA4B;QACtD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAqB,GAAG,IAAI,CAAC,OAAO,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClientTransport as HttpClient } from '../../../core/http-client.js';
|
|
2
|
-
import type { StoreTaxProviderList, StoreTaxProviderWithProvider, EnableStoreTaxProviderDto, UpdateStoreTaxProviderDto } from './types.js';
|
|
2
|
+
import type { StoreTaxProvider, StoreTaxProviderList, StoreTaxProviderWithProvider, EnableStoreTaxProviderDto, UpdateStoreTaxProviderDto } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Manages per-store enablement of tenant-level tax providers.
|
|
5
5
|
*
|
|
@@ -17,7 +17,7 @@ import type { StoreTaxProviderList, StoreTaxProviderWithProvider, EnableStoreTax
|
|
|
17
17
|
* await sdk.taxes.storeProviders.enable(providerId, { sortOrder: 0 });
|
|
18
18
|
*
|
|
19
19
|
* // List only enabled providers
|
|
20
|
-
* const
|
|
20
|
+
* const enabled = await sdk.taxes.storeProviders.listEnabled();
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
export declare class StoreTaxProvidersClient {
|
|
@@ -31,11 +31,11 @@ export declare class StoreTaxProvidersClient {
|
|
|
31
31
|
/**
|
|
32
32
|
* List only enabled providers for this store
|
|
33
33
|
*/
|
|
34
|
-
listEnabled(): Promise<
|
|
34
|
+
listEnabled(): Promise<StoreTaxProviderWithProvider[]>;
|
|
35
35
|
/**
|
|
36
36
|
* Enable a tenant-level provider for this store
|
|
37
37
|
*/
|
|
38
|
-
enable(providerId: string, data?: EnableStoreTaxProviderDto): Promise<
|
|
38
|
+
enable(providerId: string, data?: EnableStoreTaxProviderDto): Promise<StoreTaxProvider>;
|
|
39
39
|
/**
|
|
40
40
|
* Disable a provider for this store
|
|
41
41
|
*/
|
|
@@ -43,6 +43,6 @@ export declare class StoreTaxProvidersClient {
|
|
|
43
43
|
/**
|
|
44
44
|
* Update store-provider settings (sort order, enabled flag)
|
|
45
45
|
*/
|
|
46
|
-
updateSettings(providerId: string, data: UpdateStoreTaxProviderDto): Promise<
|
|
46
|
+
updateSettings(providerId: string, data: UpdateStoreTaxProviderDto): Promise<StoreTaxProvider>;
|
|
47
47
|
}
|
|
48
48
|
//# sourceMappingURL=store-providers.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-providers.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/store-providers.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAI3C;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"store-providers.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/store-providers.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAI3C;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC;IAM5D;;OAEG;IACG,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAO7F;;OAEG;IACG,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD;;OAEG;IACG,cAAc,CAClB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,gBAAgB,CAAC;CAM7B"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* await sdk.taxes.storeProviders.enable(providerId, { sortOrder: 0 });
|
|
16
16
|
*
|
|
17
17
|
* // List only enabled providers
|
|
18
|
-
* const
|
|
18
|
+
* const enabled = await sdk.taxes.storeProviders.listEnabled();
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
export class StoreTaxProvidersClient {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-providers.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/store-providers.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store-providers.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/store-providers.client.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,uBAAuB;IAEf;IACA;IAFnB,YACmB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAuB,GAAG,IAAI,CAAC,OAAO,2BAA2B,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,GAAG,IAAI,CAAC,OAAO,mCAAmC,CACnD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAE,IAAgC;QAC/D,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,OAAO,6BAA6B,UAAU,SAAS,EAC/D,IAAI,IAAI,EAAE,CACX,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,UAAkB;QAC9B,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,6BAA6B,UAAU,UAAU,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAClB,UAAkB,EAClB,IAA+B;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CACpB,GAAG,IAAI,CAAC,OAAO,6BAA6B,UAAU,WAAW,EACjE,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -3,7 +3,7 @@ import { TaxProvidersClient } from './providers.client.js';
|
|
|
3
3
|
import { TaxJurisdictionsClient } from './jurisdictions.client.js';
|
|
4
4
|
import { TaxRatesClient } from './rates.client.js';
|
|
5
5
|
import { StoreTaxProvidersClient } from './store-providers.client.js';
|
|
6
|
-
import type { CalculateTaxDto, TaxCalculationResult, BulkCalculateTaxDto, BulkTaxCalculationResult, TaxAddress, TaxAddressValidationResult, VerifyExemptionDto, ExemptionVerificationResult, TaxProviderHealthStatus } from './types.js';
|
|
6
|
+
import type { CalculateTaxDto, TaxCalculationResult, BulkCalculateTaxDto, BulkTaxCalculationResult, TaxAddress, TaxAddressValidationResult, VerifyExemptionDto, ExemptionVerificationResult, TaxProviderHealthStatus, TaxProviderHealthRefreshResult } from './types.js';
|
|
7
7
|
/**
|
|
8
8
|
* TaxesClient provides access to all tax functionality
|
|
9
9
|
* via nested sub-clients.
|
|
@@ -13,9 +13,12 @@ import type { CalculateTaxDto, TaxCalculationResult, BulkCalculateTaxDto, BulkTa
|
|
|
13
13
|
* // Calculate tax for a transaction
|
|
14
14
|
* const result = await sdk.taxes.calculate({
|
|
15
15
|
* transactionId: 'txn-123',
|
|
16
|
+
* date: '2026-01-01T00:00:00.000Z',
|
|
17
|
+
* currency: 'USD',
|
|
18
|
+
* customerType: 'b2c',
|
|
16
19
|
* originAddress: { address1: '100 Main St', city: 'SF', state: 'CA', zip: '94105', country: 'US' },
|
|
17
20
|
* destinationAddress: { address1: '123 Oak Ave', city: 'LA', state: 'CA', zip: '90210', country: 'US' },
|
|
18
|
-
* lineItems: [{ lineNumber: '1', quantity: 2, amount:
|
|
21
|
+
* lineItems: [{ lineNumber: '1', description: 'Widget', quantity: 2, amount: 10000 }],
|
|
19
22
|
* });
|
|
20
23
|
*
|
|
21
24
|
* // Manage tax providers
|
|
@@ -76,6 +79,6 @@ export declare class TaxesClient {
|
|
|
76
79
|
/**
|
|
77
80
|
* Manually trigger health checks for all tax providers
|
|
78
81
|
*/
|
|
79
|
-
refreshProviderHealth(): Promise<
|
|
82
|
+
refreshProviderHealth(): Promise<TaxProviderHealthRefreshResult>;
|
|
80
83
|
}
|
|
81
84
|
//# sourceMappingURL=taxes.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taxes.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/taxes.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,UAAU,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,
|
|
1
|
+
{"version":3,"file":"taxes.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/taxes.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,UAAU,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC/B,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IAGjC,OAAO,CAAC,UAAU,CAAC,CAAqB;IACxC,OAAO,CAAC,cAAc,CAAC,CAAyB;IAChD,OAAO,CAAC,MAAM,CAAC,CAAiB;IAChC,OAAO,CAAC,eAAe,CAAC,CAA0B;gBAEtC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAOnD;;OAEG;IACH,IAAI,SAAS,IAAI,kBAAkB,CAKlC;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,sBAAsB,CAK1C;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,cAAc,CAK1B;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,uBAAuB,CAK5C;IAID;;OAEG;IACG,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIrE;;OAEG;IACG,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAOjF;;OAEG;IACG,eAAe,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAO/E;;OAEG;IACG,eAAe,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAOrF;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAI7D;;OAEG;IACG,qBAAqB,IAAI,OAAO,CAAC,8BAA8B,CAAC;CAMvE"}
|
|
@@ -11,9 +11,12 @@ import { StoreTaxProvidersClient } from './store-providers.client.js';
|
|
|
11
11
|
* // Calculate tax for a transaction
|
|
12
12
|
* const result = await sdk.taxes.calculate({
|
|
13
13
|
* transactionId: 'txn-123',
|
|
14
|
+
* date: '2026-01-01T00:00:00.000Z',
|
|
15
|
+
* currency: 'USD',
|
|
16
|
+
* customerType: 'b2c',
|
|
14
17
|
* originAddress: { address1: '100 Main St', city: 'SF', state: 'CA', zip: '94105', country: 'US' },
|
|
15
18
|
* destinationAddress: { address1: '123 Oak Ave', city: 'LA', state: 'CA', zip: '90210', country: 'US' },
|
|
16
|
-
* lineItems: [{ lineNumber: '1', quantity: 2, amount:
|
|
19
|
+
* lineItems: [{ lineNumber: '1', description: 'Widget', quantity: 2, amount: 10000 }],
|
|
17
20
|
* });
|
|
18
21
|
*
|
|
19
22
|
* // Manage tax providers
|
|
@@ -111,7 +114,7 @@ export class TaxesClient {
|
|
|
111
114
|
* Manually trigger health checks for all tax providers
|
|
112
115
|
*/
|
|
113
116
|
async refreshProviderHealth() {
|
|
114
|
-
|
|
117
|
+
return this.http.post(`${this.baseUrl}/v1/taxes/providers/refresh-health`, {});
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
120
|
//# sourceMappingURL=taxes.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taxes.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/taxes.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"taxes.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/taxes.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AActE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,OAAO,WAAW;IACL,IAAI,CAAa;IACjB,OAAO,CAAS;IAEjC,0BAA0B;IAClB,UAAU,CAAsB;IAChC,cAAc,CAA0B;IACxC,MAAM,CAAkB;IACxB,eAAe,CAA2B;IAElD,YAAY,UAAsB,EAAE,OAAe;QACjD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,wDAAwD;IAExD;;OAEG;IACH,IAAI,SAAS;QACX,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,IAAI,CAAC,U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