@asteby/storefront 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1273,6 +1273,23 @@ type InvoiceSummary = {
1273
1273
  * after the XML: a missing kind is "still being prepared", not an error. Absent/null = the server does not say.
1274
1274
  */
1275
1275
  available_files?: ('pdf' | 'xml')[] | null;
1276
+ /**
1277
+ * Plain-words reason the invoice could not be issued, ready to show (contract 1.18): "No pudimos emitir tu factura: el nombre o
1278
+ * razón social no coincide con el SAT. Revisa tus datos y vuelve a intentarlo." Never the provider's text.
1279
+ */
1280
+ reason_message?: string | null;
1281
+ /** Form field the authority refused (`tax_id`, `legal_name`, `tax_regime`, `postal_code`, `invoice_use`), to mark it. */
1282
+ reason_field?: 'tax_id' | 'legal_name' | 'tax_regime' | 'postal_code' | 'invoice_use' | (string & {}) | null;
1283
+ /** The data the buyer sent in the refused attempt, to prefill the form for the correction. */
1284
+ submitted?: {
1285
+ tax_id?: string;
1286
+ legal_name?: string;
1287
+ tax_regime?: string;
1288
+ postal_code?: string;
1289
+ invoice_use?: string;
1290
+ } | null;
1291
+ /** Attempts left today for this order (0: `needs_review` until tomorrow). */
1292
+ retries_left?: number | null;
1276
1293
  };
1277
1294
  /** The invoice request of a cart (`Cart.invoice`). The tax id is masked: the full value is never echoed back. */
1278
1295
  type CartInvoice = {
@@ -1273,6 +1273,23 @@ type InvoiceSummary = {
1273
1273
  * after the XML: a missing kind is "still being prepared", not an error. Absent/null = the server does not say.
1274
1274
  */
1275
1275
  available_files?: ('pdf' | 'xml')[] | null;
1276
+ /**
1277
+ * Plain-words reason the invoice could not be issued, ready to show (contract 1.18): "No pudimos emitir tu factura: el nombre o
1278
+ * razón social no coincide con el SAT. Revisa tus datos y vuelve a intentarlo." Never the provider's text.
1279
+ */
1280
+ reason_message?: string | null;
1281
+ /** Form field the authority refused (`tax_id`, `legal_name`, `tax_regime`, `postal_code`, `invoice_use`), to mark it. */
1282
+ reason_field?: 'tax_id' | 'legal_name' | 'tax_regime' | 'postal_code' | 'invoice_use' | (string & {}) | null;
1283
+ /** The data the buyer sent in the refused attempt, to prefill the form for the correction. */
1284
+ submitted?: {
1285
+ tax_id?: string;
1286
+ legal_name?: string;
1287
+ tax_regime?: string;
1288
+ postal_code?: string;
1289
+ invoice_use?: string;
1290
+ } | null;
1291
+ /** Attempts left today for this order (0: `needs_review` until tomorrow). */
1292
+ retries_left?: number | null;
1276
1293
  };
1277
1294
  /** The invoice request of a cart (`Cart.invoice`). The tax id is masked: the full value is never echoed back. */
1278
1295
  type CartInvoice = {
package/dist/cli.js CHANGED
@@ -645,7 +645,7 @@ function repairPath(connectionName) {
645
645
  import { chmodSync, closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, renameSync, statSync, unlinkSync, writeSync } from "fs";
646
646
  import { dirname, join, resolve } from "path";
647
647
  import { hostname } from "os";
648
- var SDK_VERSION = true ? "0.23.0" : "dev";
648
+ var SDK_VERSION = true ? "0.24.0" : "dev";
649
649
  function writeFileAtomic(file, content, mode = 384) {
650
650
  const dir = dirname(file);
651
651
  mkdirSync(dir, { recursive: true });
@@ -1,5 +1,5 @@
1
- import { a2 as FiscalDocumentSource, bn as RegionFiscalEntry, aa as IdentityDocumentSpec, a1 as FiscalDocumentEvidence, bo as RegionFiscalId, ac as IdentityRulesV1 } from './account-settings-BdKj3jWb.cjs';
2
- export { a9 as IdentityCapture, ab as IdentityFieldRule, ad as IdentityStrategy } from './account-settings-BdKj3jWb.cjs';
1
+ import { a2 as FiscalDocumentSource, bn as RegionFiscalEntry, aa as IdentityDocumentSpec, a1 as FiscalDocumentEvidence, bo as RegionFiscalId, ac as IdentityRulesV1 } from './account-settings-BZKux56f.cjs';
2
+ export { a9 as IdentityCapture, ab as IdentityFieldRule, ad as IdentityStrategy } from './account-settings-BZKux56f.cjs';
3
3
  import './geo.cjs';
4
4
 
5
5
  /** A value read from a document: text, or the codes of a catalog (`multiple` fields). */
@@ -1,5 +1,5 @@
1
- import { a2 as FiscalDocumentSource, bn as RegionFiscalEntry, aa as IdentityDocumentSpec, a1 as FiscalDocumentEvidence, bo as RegionFiscalId, ac as IdentityRulesV1 } from './account-settings-DHg2RUOH.js';
2
- export { a9 as IdentityCapture, ab as IdentityFieldRule, ad as IdentityStrategy } from './account-settings-DHg2RUOH.js';
1
+ import { a2 as FiscalDocumentSource, bn as RegionFiscalEntry, aa as IdentityDocumentSpec, a1 as FiscalDocumentEvidence, bo as RegionFiscalId, ac as IdentityRulesV1 } from './account-settings-CrQV1rPU.js';
2
+ export { a9 as IdentityCapture, ab as IdentityFieldRule, ad as IdentityStrategy } from './account-settings-CrQV1rPU.js';
3
3
  import './geo.js';
4
4
 
5
5
  /** A value read from a document: text, or the codes of a catalog (`multiple` fields). */
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { bc as ProductSort, bY as TokenIntrospection, bF as Shop, bm as Region, bq as RegionPostalCode, d as AddressSuggestions, ba as ProductConnection, b7 as Product, D as Connection, B as Collection, au as LocationListParams, ar as Location, aA as NearestLocation, bJ as StockLevel, br as RestockSubscriptionInput, bs as RestockSubscriptionResult, p as CartLineInput, C as Cart, s as CartLineUpdateInput, i as CartBuyerInput, b as AddressInput, _ as DeliveryOptions, aZ as PaymentMethods, Y as DeliveryInput, am as InvoiceRequest, bk as RecommendationPlacement, v as CartRecommendations, x as CheckoutInput, z as CheckoutResult, bh as PromotionsList, aV as PaymentConfig, b2 as PaymentSubmitInput, aR as PaymentAttemptResult, K as CustomerIdentifier, S as CustomerSessionInput, Q as CustomerSession, F as CustomerCapabilities, N as CustomerRegisterInput, O as CustomerRegisterResult, V as CustomerVerifyRegistrationInput, L as CustomerPasswordLoginInput, T as CustomerSetPasswordInput, P as CustomerResetPasswordInput, E as Customer, U as CustomerUpdateInput, R as CustomerSessionInfo, bi as ReauthInput, bj as ReauthResult, J as CustomerEmailCodeInput, H as CustomerEmailChangeInput, I as CustomerEmailChangeRequested, G as CustomerEmailChangeConfirmInput, W as DataExportFile, A as AccountDeleteInput, aD as Order, bu as ReturnRequestInput, bt as ReturnRequest, an as InvoiceResult, b4 as PendingPayment, ak as InvoiceFileKind, aj as InvoiceFile, a5 as FiscalProfile, a6 as FiscalProfileInput, bO as Subject, bT as SubjectInput, bV as SubjectPatch, a as Address, bU as SubjectKind, bX as Theme, aO as Page, aw as Menu, e as Article, ay as Money, g as AvailabilityStatus, r as CartLineProblem, f as Availability, ag as InsufficientStockLine, bd as ProductVariant, X as DeclineCode, b3 as PaymentVoucher, a_ as PaymentNextStep, t as CartPromotions, bf as PromotionReward, ai as InvoiceDoc, by as Shipment, aB as NextAction, aH as OrderProgress, bC as ShipmentStatus, bz as ShipmentEvent, bQ as SubjectCatalogNode, bR as SubjectField, Z as DeliveryMethod, bZ as UnavailableRateProvider } from './account-settings-BdKj3jWb.cjs';
2
- export { c as AddressSuggestion, h as CartBuyer, j as CartCost, k as CartDelivery, l as CartDiscountCode, m as CartDiscountLine, n as CartInvoice, o as CartLine, q as CartLineMerchandise, u as CartRecommendation, w as CheckoutInfo, y as CheckoutPayment, M as CustomerPreferences, $ as Facet, a0 as FacetValue, a1 as FiscalDocumentEvidence, a2 as FiscalDocumentSource, a3 as FiscalIdentity, a4 as FiscalIdentityInput, a7 as FiscalVerification, a8 as GeoHint, a9 as IdentityCapture, aa as IdentityDocumentSpec, ab as IdentityFieldRule, ac as IdentityRulesV1, ad as IdentityStrategy, ae as Image, af as InsufficientStockDetails, ah as InvoiceAction, al as InvoiceReceiver, ao as InvoiceStage, ap as InvoiceSummary, aq as InvoicingCapabilities, as as LocationContacts, at as LocationKind, av as LocationPickup, ax as MenuItem, az as MoneyRange, aC as NextActionKind, aE as OrderLine, aF as OrderPickup, aG as OrderProblem, aI as OrderProgressStep, aJ as OrderSection, aK as OrderShippingService, aL as OrderStage, aM as OrderStepKey, aN as OrderStepState, aP as PageInfo, aQ as PaymentAction, aS as PaymentAttemptStatus, aT as PaymentClient, aU as PaymentClientCsp, aW as PaymentFlow, aX as PaymentInfo, aY as PaymentMethod, a$ as PaymentOption, b0 as PaymentOptionKey, b1 as PaymentPoint, b5 as PendingPaymentVoucher, b6 as PickupOption, b8 as ProductAttributeValue, b9 as ProductCategory, bb as ProductOption, be as PromotionAnnouncement, bg as PromotionTier, bl as Refund, bn as RegionFiscalEntry, bo as RegionFiscalId, bp as RegionPaymentMethod, bv as SEO, bw as Section, bx as SelectedOption, bA as ShipmentKind, bB as ShipmentMap, bD as ShipmentsSummary, bE as ShippingRate, bG as ShopBranch, bH as ShopContact, bI as ShopPolicies, bK as StorefrontError, bL as StorefrontErrorBody, bM as StorefrontErrorCode, bN as StorefrontErrorInit, bP as SubjectCatalog, bS as SubjectFieldType, bW as SubjectRef, b_ as dataExportBytes, b$ as isAccountDeleteBlocked, c0 as isReauthRequired, c1 as isStorefrontError, c2 as safeExportFilename } from './account-settings-BdKj3jWb.cjs';
1
+ import { bc as ProductSort, bY as TokenIntrospection, bF as Shop, bm as Region, bq as RegionPostalCode, d as AddressSuggestions, ba as ProductConnection, b7 as Product, D as Connection, B as Collection, au as LocationListParams, ar as Location, aA as NearestLocation, bJ as StockLevel, br as RestockSubscriptionInput, bs as RestockSubscriptionResult, p as CartLineInput, C as Cart, s as CartLineUpdateInput, i as CartBuyerInput, b as AddressInput, _ as DeliveryOptions, aZ as PaymentMethods, Y as DeliveryInput, am as InvoiceRequest, bk as RecommendationPlacement, v as CartRecommendations, x as CheckoutInput, z as CheckoutResult, bh as PromotionsList, aV as PaymentConfig, b2 as PaymentSubmitInput, aR as PaymentAttemptResult, K as CustomerIdentifier, S as CustomerSessionInput, Q as CustomerSession, F as CustomerCapabilities, N as CustomerRegisterInput, O as CustomerRegisterResult, V as CustomerVerifyRegistrationInput, L as CustomerPasswordLoginInput, T as CustomerSetPasswordInput, P as CustomerResetPasswordInput, E as Customer, U as CustomerUpdateInput, R as CustomerSessionInfo, bi as ReauthInput, bj as ReauthResult, J as CustomerEmailCodeInput, H as CustomerEmailChangeInput, I as CustomerEmailChangeRequested, G as CustomerEmailChangeConfirmInput, W as DataExportFile, A as AccountDeleteInput, aD as Order, bu as ReturnRequestInput, bt as ReturnRequest, an as InvoiceResult, b4 as PendingPayment, ak as InvoiceFileKind, aj as InvoiceFile, a5 as FiscalProfile, a6 as FiscalProfileInput, bO as Subject, bT as SubjectInput, bV as SubjectPatch, a as Address, bU as SubjectKind, bX as Theme, aO as Page, aw as Menu, e as Article, ay as Money, g as AvailabilityStatus, r as CartLineProblem, f as Availability, ag as InsufficientStockLine, bd as ProductVariant, X as DeclineCode, b3 as PaymentVoucher, a_ as PaymentNextStep, t as CartPromotions, bf as PromotionReward, ai as InvoiceDoc, by as Shipment, aB as NextAction, aH as OrderProgress, bC as ShipmentStatus, bz as ShipmentEvent, bQ as SubjectCatalogNode, bR as SubjectField, Z as DeliveryMethod, bZ as UnavailableRateProvider } from './account-settings-BZKux56f.cjs';
2
+ export { c as AddressSuggestion, h as CartBuyer, j as CartCost, k as CartDelivery, l as CartDiscountCode, m as CartDiscountLine, n as CartInvoice, o as CartLine, q as CartLineMerchandise, u as CartRecommendation, w as CheckoutInfo, y as CheckoutPayment, M as CustomerPreferences, $ as Facet, a0 as FacetValue, a1 as FiscalDocumentEvidence, a2 as FiscalDocumentSource, a3 as FiscalIdentity, a4 as FiscalIdentityInput, a7 as FiscalVerification, a8 as GeoHint, a9 as IdentityCapture, aa as IdentityDocumentSpec, ab as IdentityFieldRule, ac as IdentityRulesV1, ad as IdentityStrategy, ae as Image, af as InsufficientStockDetails, ah as InvoiceAction, al as InvoiceReceiver, ao as InvoiceStage, ap as InvoiceSummary, aq as InvoicingCapabilities, as as LocationContacts, at as LocationKind, av as LocationPickup, ax as MenuItem, az as MoneyRange, aC as NextActionKind, aE as OrderLine, aF as OrderPickup, aG as OrderProblem, aI as OrderProgressStep, aJ as OrderSection, aK as OrderShippingService, aL as OrderStage, aM as OrderStepKey, aN as OrderStepState, aP as PageInfo, aQ as PaymentAction, aS as PaymentAttemptStatus, aT as PaymentClient, aU as PaymentClientCsp, aW as PaymentFlow, aX as PaymentInfo, aY as PaymentMethod, a$ as PaymentOption, b0 as PaymentOptionKey, b1 as PaymentPoint, b5 as PendingPaymentVoucher, b6 as PickupOption, b8 as ProductAttributeValue, b9 as ProductCategory, bb as ProductOption, be as PromotionAnnouncement, bg as PromotionTier, bl as Refund, bn as RegionFiscalEntry, bo as RegionFiscalId, bp as RegionPaymentMethod, bv as SEO, bw as Section, bx as SelectedOption, bA as ShipmentKind, bB as ShipmentMap, bD as ShipmentsSummary, bE as ShippingRate, bG as ShopBranch, bH as ShopContact, bI as ShopPolicies, bK as StorefrontError, bL as StorefrontErrorBody, bM as StorefrontErrorCode, bN as StorefrontErrorInit, bP as SubjectCatalog, bS as SubjectFieldType, bW as SubjectRef, b_ as dataExportBytes, b$ as isAccountDeleteBlocked, c0 as isReauthRequired, c1 as isStorefrontError, c2 as safeExportFilename } from './account-settings-BZKux56f.cjs';
3
3
  import { GeoPoint } from './geo.cjs';
4
4
  export { OpenStatus, OpeningHours } from './geo.cjs';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { bc as ProductSort, bY as TokenIntrospection, bF as Shop, bm as Region, bq as RegionPostalCode, d as AddressSuggestions, ba as ProductConnection, b7 as Product, D as Connection, B as Collection, au as LocationListParams, ar as Location, aA as NearestLocation, bJ as StockLevel, br as RestockSubscriptionInput, bs as RestockSubscriptionResult, p as CartLineInput, C as Cart, s as CartLineUpdateInput, i as CartBuyerInput, b as AddressInput, _ as DeliveryOptions, aZ as PaymentMethods, Y as DeliveryInput, am as InvoiceRequest, bk as RecommendationPlacement, v as CartRecommendations, x as CheckoutInput, z as CheckoutResult, bh as PromotionsList, aV as PaymentConfig, b2 as PaymentSubmitInput, aR as PaymentAttemptResult, K as CustomerIdentifier, S as CustomerSessionInput, Q as CustomerSession, F as CustomerCapabilities, N as CustomerRegisterInput, O as CustomerRegisterResult, V as CustomerVerifyRegistrationInput, L as CustomerPasswordLoginInput, T as CustomerSetPasswordInput, P as CustomerResetPasswordInput, E as Customer, U as CustomerUpdateInput, R as CustomerSessionInfo, bi as ReauthInput, bj as ReauthResult, J as CustomerEmailCodeInput, H as CustomerEmailChangeInput, I as CustomerEmailChangeRequested, G as CustomerEmailChangeConfirmInput, W as DataExportFile, A as AccountDeleteInput, aD as Order, bu as ReturnRequestInput, bt as ReturnRequest, an as InvoiceResult, b4 as PendingPayment, ak as InvoiceFileKind, aj as InvoiceFile, a5 as FiscalProfile, a6 as FiscalProfileInput, bO as Subject, bT as SubjectInput, bV as SubjectPatch, a as Address, bU as SubjectKind, bX as Theme, aO as Page, aw as Menu, e as Article, ay as Money, g as AvailabilityStatus, r as CartLineProblem, f as Availability, ag as InsufficientStockLine, bd as ProductVariant, X as DeclineCode, b3 as PaymentVoucher, a_ as PaymentNextStep, t as CartPromotions, bf as PromotionReward, ai as InvoiceDoc, by as Shipment, aB as NextAction, aH as OrderProgress, bC as ShipmentStatus, bz as ShipmentEvent, bQ as SubjectCatalogNode, bR as SubjectField, Z as DeliveryMethod, bZ as UnavailableRateProvider } from './account-settings-DHg2RUOH.js';
2
- export { c as AddressSuggestion, h as CartBuyer, j as CartCost, k as CartDelivery, l as CartDiscountCode, m as CartDiscountLine, n as CartInvoice, o as CartLine, q as CartLineMerchandise, u as CartRecommendation, w as CheckoutInfo, y as CheckoutPayment, M as CustomerPreferences, $ as Facet, a0 as FacetValue, a1 as FiscalDocumentEvidence, a2 as FiscalDocumentSource, a3 as FiscalIdentity, a4 as FiscalIdentityInput, a7 as FiscalVerification, a8 as GeoHint, a9 as IdentityCapture, aa as IdentityDocumentSpec, ab as IdentityFieldRule, ac as IdentityRulesV1, ad as IdentityStrategy, ae as Image, af as InsufficientStockDetails, ah as InvoiceAction, al as InvoiceReceiver, ao as InvoiceStage, ap as InvoiceSummary, aq as InvoicingCapabilities, as as LocationContacts, at as LocationKind, av as LocationPickup, ax as MenuItem, az as MoneyRange, aC as NextActionKind, aE as OrderLine, aF as OrderPickup, aG as OrderProblem, aI as OrderProgressStep, aJ as OrderSection, aK as OrderShippingService, aL as OrderStage, aM as OrderStepKey, aN as OrderStepState, aP as PageInfo, aQ as PaymentAction, aS as PaymentAttemptStatus, aT as PaymentClient, aU as PaymentClientCsp, aW as PaymentFlow, aX as PaymentInfo, aY as PaymentMethod, a$ as PaymentOption, b0 as PaymentOptionKey, b1 as PaymentPoint, b5 as PendingPaymentVoucher, b6 as PickupOption, b8 as ProductAttributeValue, b9 as ProductCategory, bb as ProductOption, be as PromotionAnnouncement, bg as PromotionTier, bl as Refund, bn as RegionFiscalEntry, bo as RegionFiscalId, bp as RegionPaymentMethod, bv as SEO, bw as Section, bx as SelectedOption, bA as ShipmentKind, bB as ShipmentMap, bD as ShipmentsSummary, bE as ShippingRate, bG as ShopBranch, bH as ShopContact, bI as ShopPolicies, bK as StorefrontError, bL as StorefrontErrorBody, bM as StorefrontErrorCode, bN as StorefrontErrorInit, bP as SubjectCatalog, bS as SubjectFieldType, bW as SubjectRef, b_ as dataExportBytes, b$ as isAccountDeleteBlocked, c0 as isReauthRequired, c1 as isStorefrontError, c2 as safeExportFilename } from './account-settings-DHg2RUOH.js';
1
+ import { bc as ProductSort, bY as TokenIntrospection, bF as Shop, bm as Region, bq as RegionPostalCode, d as AddressSuggestions, ba as ProductConnection, b7 as Product, D as Connection, B as Collection, au as LocationListParams, ar as Location, aA as NearestLocation, bJ as StockLevel, br as RestockSubscriptionInput, bs as RestockSubscriptionResult, p as CartLineInput, C as Cart, s as CartLineUpdateInput, i as CartBuyerInput, b as AddressInput, _ as DeliveryOptions, aZ as PaymentMethods, Y as DeliveryInput, am as InvoiceRequest, bk as RecommendationPlacement, v as CartRecommendations, x as CheckoutInput, z as CheckoutResult, bh as PromotionsList, aV as PaymentConfig, b2 as PaymentSubmitInput, aR as PaymentAttemptResult, K as CustomerIdentifier, S as CustomerSessionInput, Q as CustomerSession, F as CustomerCapabilities, N as CustomerRegisterInput, O as CustomerRegisterResult, V as CustomerVerifyRegistrationInput, L as CustomerPasswordLoginInput, T as CustomerSetPasswordInput, P as CustomerResetPasswordInput, E as Customer, U as CustomerUpdateInput, R as CustomerSessionInfo, bi as ReauthInput, bj as ReauthResult, J as CustomerEmailCodeInput, H as CustomerEmailChangeInput, I as CustomerEmailChangeRequested, G as CustomerEmailChangeConfirmInput, W as DataExportFile, A as AccountDeleteInput, aD as Order, bu as ReturnRequestInput, bt as ReturnRequest, an as InvoiceResult, b4 as PendingPayment, ak as InvoiceFileKind, aj as InvoiceFile, a5 as FiscalProfile, a6 as FiscalProfileInput, bO as Subject, bT as SubjectInput, bV as SubjectPatch, a as Address, bU as SubjectKind, bX as Theme, aO as Page, aw as Menu, e as Article, ay as Money, g as AvailabilityStatus, r as CartLineProblem, f as Availability, ag as InsufficientStockLine, bd as ProductVariant, X as DeclineCode, b3 as PaymentVoucher, a_ as PaymentNextStep, t as CartPromotions, bf as PromotionReward, ai as InvoiceDoc, by as Shipment, aB as NextAction, aH as OrderProgress, bC as ShipmentStatus, bz as ShipmentEvent, bQ as SubjectCatalogNode, bR as SubjectField, Z as DeliveryMethod, bZ as UnavailableRateProvider } from './account-settings-CrQV1rPU.js';
2
+ export { c as AddressSuggestion, h as CartBuyer, j as CartCost, k as CartDelivery, l as CartDiscountCode, m as CartDiscountLine, n as CartInvoice, o as CartLine, q as CartLineMerchandise, u as CartRecommendation, w as CheckoutInfo, y as CheckoutPayment, M as CustomerPreferences, $ as Facet, a0 as FacetValue, a1 as FiscalDocumentEvidence, a2 as FiscalDocumentSource, a3 as FiscalIdentity, a4 as FiscalIdentityInput, a7 as FiscalVerification, a8 as GeoHint, a9 as IdentityCapture, aa as IdentityDocumentSpec, ab as IdentityFieldRule, ac as IdentityRulesV1, ad as IdentityStrategy, ae as Image, af as InsufficientStockDetails, ah as InvoiceAction, al as InvoiceReceiver, ao as InvoiceStage, ap as InvoiceSummary, aq as InvoicingCapabilities, as as LocationContacts, at as LocationKind, av as LocationPickup, ax as MenuItem, az as MoneyRange, aC as NextActionKind, aE as OrderLine, aF as OrderPickup, aG as OrderProblem, aI as OrderProgressStep, aJ as OrderSection, aK as OrderShippingService, aL as OrderStage, aM as OrderStepKey, aN as OrderStepState, aP as PageInfo, aQ as PaymentAction, aS as PaymentAttemptStatus, aT as PaymentClient, aU as PaymentClientCsp, aW as PaymentFlow, aX as PaymentInfo, aY as PaymentMethod, a$ as PaymentOption, b0 as PaymentOptionKey, b1 as PaymentPoint, b5 as PendingPaymentVoucher, b6 as PickupOption, b8 as ProductAttributeValue, b9 as ProductCategory, bb as ProductOption, be as PromotionAnnouncement, bg as PromotionTier, bl as Refund, bn as RegionFiscalEntry, bo as RegionFiscalId, bp as RegionPaymentMethod, bv as SEO, bw as Section, bx as SelectedOption, bA as ShipmentKind, bB as ShipmentMap, bD as ShipmentsSummary, bE as ShippingRate, bG as ShopBranch, bH as ShopContact, bI as ShopPolicies, bK as StorefrontError, bL as StorefrontErrorBody, bM as StorefrontErrorCode, bN as StorefrontErrorInit, bP as SubjectCatalog, bS as SubjectFieldType, bW as SubjectRef, b_ as dataExportBytes, b$ as isAccountDeleteBlocked, c0 as isReauthRequired, c1 as isStorefrontError, c2 as safeExportFilename } from './account-settings-CrQV1rPU.js';
3
3
  import { GeoPoint } from './geo.js';
4
4
  export { OpenStatus, OpeningHours } from './geo.js';
5
5
 
package/dist/mock.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { bU as SubjectKind, ac as IdentityRulesV1, bo as RegionFiscalId, aa as IdentityDocumentSpec, bm as Region, bF as Shop, b7 as Product, B as Collection, bX as Theme, aO as Page, aw as Menu, e as Article, C as Cart, a as Address, am as InvoiceRequest, E as Customer, a5 as FiscalProfile, bO as Subject, aD as Order, aR as PaymentAttemptResult, b4 as PendingPayment, ao as InvoiceStage, F as CustomerCapabilities, be as PromotionAnnouncement, bE as ShippingRate, aY as PaymentMethod, c as AddressSuggestion } from './account-settings-BdKj3jWb.cjs';
1
+ import { bU as SubjectKind, ac as IdentityRulesV1, bo as RegionFiscalId, aa as IdentityDocumentSpec, bm as Region, bF as Shop, b7 as Product, B as Collection, bX as Theme, aO as Page, aw as Menu, e as Article, C as Cart, a as Address, am as InvoiceRequest, E as Customer, a5 as FiscalProfile, bO as Subject, aD as Order, aR as PaymentAttemptResult, b4 as PendingPayment, ao as InvoiceStage, F as CustomerCapabilities, be as PromotionAnnouncement, bE as ShippingRate, aY as PaymentMethod, c as AddressSuggestion } from './account-settings-BZKux56f.cjs';
2
2
  import './geo.cjs';
3
3
 
4
4
  /**
package/dist/mock.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bU as SubjectKind, ac as IdentityRulesV1, bo as RegionFiscalId, aa as IdentityDocumentSpec, bm as Region, bF as Shop, b7 as Product, B as Collection, bX as Theme, aO as Page, aw as Menu, e as Article, C as Cart, a as Address, am as InvoiceRequest, E as Customer, a5 as FiscalProfile, bO as Subject, aD as Order, aR as PaymentAttemptResult, b4 as PendingPayment, ao as InvoiceStage, F as CustomerCapabilities, be as PromotionAnnouncement, bE as ShippingRate, aY as PaymentMethod, c as AddressSuggestion } from './account-settings-DHg2RUOH.js';
1
+ import { bU as SubjectKind, ac as IdentityRulesV1, bo as RegionFiscalId, aa as IdentityDocumentSpec, bm as Region, bF as Shop, b7 as Product, B as Collection, bX as Theme, aO as Page, aw as Menu, e as Article, C as Cart, a as Address, am as InvoiceRequest, E as Customer, a5 as FiscalProfile, bO as Subject, aD as Order, aR as PaymentAttemptResult, b4 as PendingPayment, ao as InvoiceStage, F as CustomerCapabilities, be as PromotionAnnouncement, bE as ShippingRate, aY as PaymentMethod, c as AddressSuggestion } from './account-settings-CrQV1rPU.js';
2
2
  import './geo.js';
3
3
 
4
4
  /**
package/dist/mockup.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { b7 as Product, bd as ProductVariant } from './account-settings-BdKj3jWb.cjs';
1
+ import { b7 as Product, bd as ProductVariant } from './account-settings-BZKux56f.cjs';
2
2
  import './geo.cjs';
3
3
 
4
4
  /**
package/dist/mockup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { b7 as Product, bd as ProductVariant } from './account-settings-DHg2RUOH.js';
1
+ import { b7 as Product, bd as ProductVariant } from './account-settings-CrQV1rPU.js';
2
2
  import './geo.js';
3
3
 
4
4
  /**
package/dist/node.cjs CHANGED
@@ -47,7 +47,7 @@ function maskToken(token) {
47
47
  }
48
48
 
49
49
  // src/node.ts
50
- var SDK_VERSION = true ? "0.23.0" : "dev";
50
+ var SDK_VERSION = true ? "0.24.0" : "dev";
51
51
  function createFileTokenSource(file, options = {}) {
52
52
  const ttl = options.ttlMs ?? 3e4;
53
53
  const now = options.now ?? Date.now;
package/dist/node.js CHANGED
@@ -11,7 +11,7 @@ function maskToken(token) {
11
11
  }
12
12
 
13
13
  // src/node.ts
14
- var SDK_VERSION = true ? "0.23.0" : "dev";
14
+ var SDK_VERSION = true ? "0.24.0" : "dev";
15
15
  function createFileTokenSource(file, options = {}) {
16
16
  const ttl = options.ttlMs ?? 3e4;
17
17
  const now = options.now ?? Date.now;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteby/storefront",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Typed client for the Storefront API v1 (catalog, cart, checkout, customer, content) using only global fetch — Node 20+, edge runtimes and browsers — plus an in-memory mock of the whole contract and, in `@asteby/storefront/fiscal-document`, a country-agnostic engine that reads a buyer's fiscal document (PDF) in the browser or Node.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {