@asteby/storefront 0.19.0 → 0.21.1
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/{account-settings-ZtgZOuiG.d.cts → account-settings-BkShqX2k.d.cts} +25 -1
- package/dist/{account-settings-C3VXJ7wi.d.ts → account-settings-quulZwuF.d.ts} +25 -1
- package/dist/cli.js +1 -1
- package/dist/fiscal-document.d.cts +2 -2
- package/dist/fiscal-document.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/mock.cjs +4 -1
- package/dist/mock.cjs.map +1 -1
- package/dist/mock.d.cts +1 -1
- package/dist/mock.d.ts +1 -1
- package/dist/mock.js +4 -1
- package/dist/mock.js.map +1 -1
- package/dist/mockup.d.cts +1 -1
- package/dist/mockup.d.ts +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
|
@@ -705,6 +705,19 @@ type ShipmentsSummary = {
|
|
|
705
705
|
carrier?: string | null;
|
|
706
706
|
tracking_url?: string | null;
|
|
707
707
|
};
|
|
708
|
+
/** Receiver of an issued invoice (contract 1.14): the fiscal data the buyer themselves gave. Never the issuer's. */
|
|
709
|
+
type InvoiceReceiver = {
|
|
710
|
+
/** Tax id of the receiver (MX: RFC). */
|
|
711
|
+
rfc?: string | null;
|
|
712
|
+
/** Legal name. */
|
|
713
|
+
name?: string | null;
|
|
714
|
+
/** Tax regime (MX: SAT code). */
|
|
715
|
+
tax_regime?: string | null;
|
|
716
|
+
/** Use of the invoice (MX: UsoCFDI). */
|
|
717
|
+
cfdi_use?: string | null;
|
|
718
|
+
/** Postal code of the fiscal address. */
|
|
719
|
+
postal_code?: string | null;
|
|
720
|
+
};
|
|
708
721
|
/** An invoice or credit note of an order (extends `InvoiceSummary`). Links, when present, are short-lived and never the PAC's. */
|
|
709
722
|
type InvoiceDoc = InvoiceSummary & {
|
|
710
723
|
id: string;
|
|
@@ -719,6 +732,12 @@ type InvoiceDoc = InvoiceSummary & {
|
|
|
719
732
|
/** Id of the invoice a credit note corrects. */
|
|
720
733
|
related_to?: string | null;
|
|
721
734
|
links_expire_at?: string | null;
|
|
735
|
+
/** Contract 1.14, issued invoices: payment method (MX: `PUE` | `PPD`). Absent = the server does not say. */
|
|
736
|
+
payment_method?: string | null;
|
|
737
|
+
/** Contract 1.14: payment form (MX: SAT code such as `04`). */
|
|
738
|
+
payment_form?: string | null;
|
|
739
|
+
/** Contract 1.14: who the invoice was issued to. */
|
|
740
|
+
receiver?: InvoiceReceiver | null;
|
|
722
741
|
/** Invoice from a sandbox PAC: hide it or mark it "test, no fiscal validity". */
|
|
723
742
|
test_mode?: boolean;
|
|
724
743
|
environment?: 'production' | 'sandbox' | (string & {});
|
|
@@ -1222,6 +1241,11 @@ type InvoiceSummary = {
|
|
|
1222
1241
|
/** Signed, short-lived download links. */
|
|
1223
1242
|
url?: string | null;
|
|
1224
1243
|
xml_url?: string | null;
|
|
1244
|
+
/**
|
|
1245
|
+
* Files the server can deliver NOW through the authenticated invoice file route (contract 1.13). The PDF can arrive
|
|
1246
|
+
* after the XML: a missing kind is "still being prepared", not an error. Absent/null = the server does not say.
|
|
1247
|
+
*/
|
|
1248
|
+
available_files?: ('pdf' | 'xml')[] | null;
|
|
1225
1249
|
};
|
|
1226
1250
|
/** The invoice request of a cart (`Cart.invoice`). The tax id is masked: the full value is never echoed back. */
|
|
1227
1251
|
type CartInvoice = {
|
|
@@ -1716,4 +1740,4 @@ declare function dataExportBytes(file: Pick<DataExportFile, 'content_base64'>):
|
|
|
1716
1740
|
/** A download filename that is safe in a `Content-Disposition` header: no path, quotes, control characters or spaces. */
|
|
1717
1741
|
declare function safeExportFilename(name: unknown, fallback?: string): string;
|
|
1718
1742
|
|
|
1719
|
-
export { type FiscalProfile as $, type AccountDeleteInput as A, type Customer as B, type Cart as C, type CustomerCapabilities as D, type CustomerIdentifier as E, type CustomerPasswordLoginInput as F, type CustomerPreferences as G, type CustomerRegisterInput as H, type CustomerRegisterResult as I, type CustomerResetPasswordInput as J, type CustomerSession as K, type CustomerSessionInfo as L, type CustomerSessionInput as M, type CustomerSetPasswordInput as N, type CustomerUpdateInput as O, type CustomerVerifyRegistrationInput as P, type DataExportFile as Q, type DeclineCode as R, type DeliveryInput as S, type DeliveryMethod as T, type DeliveryOptions as U, type Facet as V, type FacetValue as W, type FiscalDocumentEvidence as X, type FiscalDocumentSource as Y, type FiscalIdentity as Z, type FiscalIdentityInput as _, type Address as a, type
|
|
1743
|
+
export { type FiscalProfile as $, type AccountDeleteInput as A, type Customer as B, type Cart as C, type CustomerCapabilities as D, type CustomerIdentifier as E, type CustomerPasswordLoginInput as F, type CustomerPreferences as G, type CustomerRegisterInput as H, type CustomerRegisterResult as I, type CustomerResetPasswordInput as J, type CustomerSession as K, type CustomerSessionInfo as L, type CustomerSessionInput as M, type CustomerSetPasswordInput as N, type CustomerUpdateInput as O, type CustomerVerifyRegistrationInput as P, type DataExportFile as Q, type DeclineCode as R, type DeliveryInput as S, type DeliveryMethod as T, type DeliveryOptions as U, type Facet as V, type FacetValue as W, type FiscalDocumentEvidence as X, type FiscalDocumentSource as Y, type FiscalIdentity as Z, type FiscalIdentityInput as _, type Address as a, type PendingPaymentVoucher as a$, type FiscalProfileInput as a0, type FiscalVerification as a1, type GeoHint as a2, type IdentityCapture as a3, type IdentityDocumentSpec as a4, type IdentityFieldRule as a5, type IdentityRulesV1 as a6, type IdentityStrategy as a7, type Image as a8, type InsufficientStockDetails as a9, type OrderProblem as aA, type OrderProgress as aB, type OrderProgressStep as aC, type OrderSection as aD, type OrderShippingService as aE, type OrderStage as aF, type OrderStepKey as aG, type OrderStepState as aH, type Page as aI, type PageInfo as aJ, type PaymentAction as aK, type PaymentAttemptResult as aL, type PaymentAttemptStatus as aM, type PaymentClient as aN, type PaymentClientCsp as aO, type PaymentConfig as aP, type PaymentFlow as aQ, type PaymentInfo as aR, type PaymentMethod as aS, type PaymentMethods as aT, type PaymentNextStep as aU, type PaymentOption as aV, type PaymentOptionKey as aW, type PaymentPoint as aX, type PaymentSubmitInput as aY, type PaymentVoucher as aZ, type PendingPayment as a_, type InsufficientStockLine as aa, type InvoiceAction as ab, type InvoiceDoc as ac, type InvoiceFile as ad, type InvoiceFileKind as ae, type InvoiceReceiver as af, type InvoiceRequest as ag, type InvoiceResult as ah, type InvoiceStage as ai, type InvoiceSummary as aj, type InvoicingCapabilities as ak, type Location as al, type LocationContacts as am, type LocationKind as an, type LocationListParams as ao, type LocationPickup as ap, type Menu as aq, type MenuItem as ar, type Money as as, type MoneyRange as at, type NearestLocation as au, type NextAction as av, type NextActionKind as aw, type Order as ax, type OrderLine as ay, type OrderPickup as az, type AddressInput as b, type PickupOption as b0, type Product as b1, type ProductAttributeValue as b2, type ProductCategory as b3, type ProductConnection as b4, type ProductOption as b5, type ProductSort as b6, type ProductVariant as b7, type PromotionAnnouncement as b8, type PromotionReward as b9, type ShopBranch as bA, type ShopContact as bB, type ShopPolicies as bC, type StockLevel as bD, StorefrontError as bE, type StorefrontErrorBody as bF, type StorefrontErrorCode as bG, type StorefrontErrorInit as bH, type Subject as bI, type SubjectCatalog as bJ, type SubjectCatalogNode as bK, type SubjectField as bL, type SubjectFieldType as bM, type SubjectInput as bN, type SubjectKind as bO, type SubjectPatch as bP, type SubjectRef as bQ, type Theme as bR, type TokenIntrospection as bS, type UnavailableRateProvider as bT, dataExportBytes as bU, isAccountDeleteBlocked as bV, isReauthRequired as bW, isStorefrontError as bX, safeExportFilename as bY, type PromotionTier as ba, type PromotionsList as bb, type ReauthInput as bc, type ReauthResult as bd, type RecommendationPlacement as be, type Refund as bf, type Region as bg, type RegionFiscalEntry as bh, type RegionFiscalId as bi, type RegionPaymentMethod as bj, type RegionPostalCode as bk, type RestockSubscriptionInput as bl, type RestockSubscriptionResult as bm, type ReturnRequest as bn, type ReturnRequestInput as bo, type SEO as bp, type Section as bq, type SelectedOption as br, type Shipment as bs, type ShipmentEvent as bt, type ShipmentKind as bu, type ShipmentMap as bv, type ShipmentStatus as bw, type ShipmentsSummary as bx, type ShippingRate as by, type Shop as bz, type Article as c, type Availability as d, type AvailabilityStatus as e, type CartBuyer as f, type CartBuyerInput as g, type CartCost as h, type CartDelivery as i, type CartDiscountCode as j, type CartDiscountLine as k, type CartInvoice as l, type CartLine as m, type CartLineInput as n, type CartLineMerchandise as o, type CartLineProblem as p, type CartLineUpdateInput as q, type CartPromotions as r, type CartRecommendation as s, type CartRecommendations as t, type CheckoutInfo as u, type CheckoutInput as v, type CheckoutPayment as w, type CheckoutResult as x, type Collection as y, type Connection as z };
|
|
@@ -705,6 +705,19 @@ type ShipmentsSummary = {
|
|
|
705
705
|
carrier?: string | null;
|
|
706
706
|
tracking_url?: string | null;
|
|
707
707
|
};
|
|
708
|
+
/** Receiver of an issued invoice (contract 1.14): the fiscal data the buyer themselves gave. Never the issuer's. */
|
|
709
|
+
type InvoiceReceiver = {
|
|
710
|
+
/** Tax id of the receiver (MX: RFC). */
|
|
711
|
+
rfc?: string | null;
|
|
712
|
+
/** Legal name. */
|
|
713
|
+
name?: string | null;
|
|
714
|
+
/** Tax regime (MX: SAT code). */
|
|
715
|
+
tax_regime?: string | null;
|
|
716
|
+
/** Use of the invoice (MX: UsoCFDI). */
|
|
717
|
+
cfdi_use?: string | null;
|
|
718
|
+
/** Postal code of the fiscal address. */
|
|
719
|
+
postal_code?: string | null;
|
|
720
|
+
};
|
|
708
721
|
/** An invoice or credit note of an order (extends `InvoiceSummary`). Links, when present, are short-lived and never the PAC's. */
|
|
709
722
|
type InvoiceDoc = InvoiceSummary & {
|
|
710
723
|
id: string;
|
|
@@ -719,6 +732,12 @@ type InvoiceDoc = InvoiceSummary & {
|
|
|
719
732
|
/** Id of the invoice a credit note corrects. */
|
|
720
733
|
related_to?: string | null;
|
|
721
734
|
links_expire_at?: string | null;
|
|
735
|
+
/** Contract 1.14, issued invoices: payment method (MX: `PUE` | `PPD`). Absent = the server does not say. */
|
|
736
|
+
payment_method?: string | null;
|
|
737
|
+
/** Contract 1.14: payment form (MX: SAT code such as `04`). */
|
|
738
|
+
payment_form?: string | null;
|
|
739
|
+
/** Contract 1.14: who the invoice was issued to. */
|
|
740
|
+
receiver?: InvoiceReceiver | null;
|
|
722
741
|
/** Invoice from a sandbox PAC: hide it or mark it "test, no fiscal validity". */
|
|
723
742
|
test_mode?: boolean;
|
|
724
743
|
environment?: 'production' | 'sandbox' | (string & {});
|
|
@@ -1222,6 +1241,11 @@ type InvoiceSummary = {
|
|
|
1222
1241
|
/** Signed, short-lived download links. */
|
|
1223
1242
|
url?: string | null;
|
|
1224
1243
|
xml_url?: string | null;
|
|
1244
|
+
/**
|
|
1245
|
+
* Files the server can deliver NOW through the authenticated invoice file route (contract 1.13). The PDF can arrive
|
|
1246
|
+
* after the XML: a missing kind is "still being prepared", not an error. Absent/null = the server does not say.
|
|
1247
|
+
*/
|
|
1248
|
+
available_files?: ('pdf' | 'xml')[] | null;
|
|
1225
1249
|
};
|
|
1226
1250
|
/** The invoice request of a cart (`Cart.invoice`). The tax id is masked: the full value is never echoed back. */
|
|
1227
1251
|
type CartInvoice = {
|
|
@@ -1716,4 +1740,4 @@ declare function dataExportBytes(file: Pick<DataExportFile, 'content_base64'>):
|
|
|
1716
1740
|
/** A download filename that is safe in a `Content-Disposition` header: no path, quotes, control characters or spaces. */
|
|
1717
1741
|
declare function safeExportFilename(name: unknown, fallback?: string): string;
|
|
1718
1742
|
|
|
1719
|
-
export { type FiscalProfile as $, type AccountDeleteInput as A, type Customer as B, type Cart as C, type CustomerCapabilities as D, type CustomerIdentifier as E, type CustomerPasswordLoginInput as F, type CustomerPreferences as G, type CustomerRegisterInput as H, type CustomerRegisterResult as I, type CustomerResetPasswordInput as J, type CustomerSession as K, type CustomerSessionInfo as L, type CustomerSessionInput as M, type CustomerSetPasswordInput as N, type CustomerUpdateInput as O, type CustomerVerifyRegistrationInput as P, type DataExportFile as Q, type DeclineCode as R, type DeliveryInput as S, type DeliveryMethod as T, type DeliveryOptions as U, type Facet as V, type FacetValue as W, type FiscalDocumentEvidence as X, type FiscalDocumentSource as Y, type FiscalIdentity as Z, type FiscalIdentityInput as _, type Address as a, type
|
|
1743
|
+
export { type FiscalProfile as $, type AccountDeleteInput as A, type Customer as B, type Cart as C, type CustomerCapabilities as D, type CustomerIdentifier as E, type CustomerPasswordLoginInput as F, type CustomerPreferences as G, type CustomerRegisterInput as H, type CustomerRegisterResult as I, type CustomerResetPasswordInput as J, type CustomerSession as K, type CustomerSessionInfo as L, type CustomerSessionInput as M, type CustomerSetPasswordInput as N, type CustomerUpdateInput as O, type CustomerVerifyRegistrationInput as P, type DataExportFile as Q, type DeclineCode as R, type DeliveryInput as S, type DeliveryMethod as T, type DeliveryOptions as U, type Facet as V, type FacetValue as W, type FiscalDocumentEvidence as X, type FiscalDocumentSource as Y, type FiscalIdentity as Z, type FiscalIdentityInput as _, type Address as a, type PendingPaymentVoucher as a$, type FiscalProfileInput as a0, type FiscalVerification as a1, type GeoHint as a2, type IdentityCapture as a3, type IdentityDocumentSpec as a4, type IdentityFieldRule as a5, type IdentityRulesV1 as a6, type IdentityStrategy as a7, type Image as a8, type InsufficientStockDetails as a9, type OrderProblem as aA, type OrderProgress as aB, type OrderProgressStep as aC, type OrderSection as aD, type OrderShippingService as aE, type OrderStage as aF, type OrderStepKey as aG, type OrderStepState as aH, type Page as aI, type PageInfo as aJ, type PaymentAction as aK, type PaymentAttemptResult as aL, type PaymentAttemptStatus as aM, type PaymentClient as aN, type PaymentClientCsp as aO, type PaymentConfig as aP, type PaymentFlow as aQ, type PaymentInfo as aR, type PaymentMethod as aS, type PaymentMethods as aT, type PaymentNextStep as aU, type PaymentOption as aV, type PaymentOptionKey as aW, type PaymentPoint as aX, type PaymentSubmitInput as aY, type PaymentVoucher as aZ, type PendingPayment as a_, type InsufficientStockLine as aa, type InvoiceAction as ab, type InvoiceDoc as ac, type InvoiceFile as ad, type InvoiceFileKind as ae, type InvoiceReceiver as af, type InvoiceRequest as ag, type InvoiceResult as ah, type InvoiceStage as ai, type InvoiceSummary as aj, type InvoicingCapabilities as ak, type Location as al, type LocationContacts as am, type LocationKind as an, type LocationListParams as ao, type LocationPickup as ap, type Menu as aq, type MenuItem as ar, type Money as as, type MoneyRange as at, type NearestLocation as au, type NextAction as av, type NextActionKind as aw, type Order as ax, type OrderLine as ay, type OrderPickup as az, type AddressInput as b, type PickupOption as b0, type Product as b1, type ProductAttributeValue as b2, type ProductCategory as b3, type ProductConnection as b4, type ProductOption as b5, type ProductSort as b6, type ProductVariant as b7, type PromotionAnnouncement as b8, type PromotionReward as b9, type ShopBranch as bA, type ShopContact as bB, type ShopPolicies as bC, type StockLevel as bD, StorefrontError as bE, type StorefrontErrorBody as bF, type StorefrontErrorCode as bG, type StorefrontErrorInit as bH, type Subject as bI, type SubjectCatalog as bJ, type SubjectCatalogNode as bK, type SubjectField as bL, type SubjectFieldType as bM, type SubjectInput as bN, type SubjectKind as bO, type SubjectPatch as bP, type SubjectRef as bQ, type Theme as bR, type TokenIntrospection as bS, type UnavailableRateProvider as bT, dataExportBytes as bU, isAccountDeleteBlocked as bV, isReauthRequired as bW, isStorefrontError as bX, safeExportFilename as bY, type PromotionTier as ba, type PromotionsList as bb, type ReauthInput as bc, type ReauthResult as bd, type RecommendationPlacement as be, type Refund as bf, type Region as bg, type RegionFiscalEntry as bh, type RegionFiscalId as bi, type RegionPaymentMethod as bj, type RegionPostalCode as bk, type RestockSubscriptionInput as bl, type RestockSubscriptionResult as bm, type ReturnRequest as bn, type ReturnRequestInput as bo, type SEO as bp, type Section as bq, type SelectedOption as br, type Shipment as bs, type ShipmentEvent as bt, type ShipmentKind as bu, type ShipmentMap as bv, type ShipmentStatus as bw, type ShipmentsSummary as bx, type ShippingRate as by, type Shop as bz, type Article as c, type Availability as d, type AvailabilityStatus as e, type CartBuyer as f, type CartBuyerInput as g, type CartCost as h, type CartDelivery as i, type CartDiscountCode as j, type CartDiscountLine as k, type CartInvoice as l, type CartLine as m, type CartLineInput as n, type CartLineMerchandise as o, type CartLineProblem as p, type CartLineUpdateInput as q, type CartPromotions as r, type CartRecommendation as s, type CartRecommendations as t, type CheckoutInfo as u, type CheckoutInput as v, type CheckoutPayment as w, type CheckoutResult as x, type Collection as y, type Connection as z };
|
package/dist/cli.js
CHANGED
|
@@ -604,7 +604,7 @@ function repairPath(connectionName) {
|
|
|
604
604
|
import { chmodSync, closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, renameSync, statSync, unlinkSync, writeSync } from "fs";
|
|
605
605
|
import { dirname, join, resolve } from "path";
|
|
606
606
|
import { hostname } from "os";
|
|
607
|
-
var SDK_VERSION = true ? "0.
|
|
607
|
+
var SDK_VERSION = true ? "0.21.1" : "dev";
|
|
608
608
|
function writeFileAtomic(file, content, mode = 384) {
|
|
609
609
|
const dir = dirname(file);
|
|
610
610
|
mkdirSync(dir, { recursive: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Y as FiscalDocumentSource,
|
|
2
|
-
export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-
|
|
1
|
+
import { Y as FiscalDocumentSource, bh as RegionFiscalEntry, a4 as IdentityDocumentSpec, X as FiscalDocumentEvidence, bi as RegionFiscalId, a6 as IdentityRulesV1 } from './account-settings-BkShqX2k.cjs';
|
|
2
|
+
export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-BkShqX2k.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 { Y as FiscalDocumentSource,
|
|
2
|
-
export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-
|
|
1
|
+
import { Y as FiscalDocumentSource, bh as RegionFiscalEntry, a4 as IdentityDocumentSpec, X as FiscalDocumentEvidence, bi as RegionFiscalId, a6 as IdentityRulesV1 } from './account-settings-quulZwuF.js';
|
|
2
|
+
export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-quulZwuF.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 {
|
|
2
|
-
export { f as CartBuyer, h as CartCost, i as CartDelivery, j as CartDiscountCode, k as CartDiscountLine, l as CartInvoice, m as CartLine, o as CartLineMerchandise, s as CartRecommendation, u as CheckoutInfo, w as CheckoutPayment, G as CustomerPreferences, V as Facet, W as FacetValue, X as FiscalDocumentEvidence, Y as FiscalDocumentSource, Z as FiscalIdentity, _ as FiscalIdentityInput, a1 as FiscalVerification, a2 as GeoHint, a3 as IdentityCapture, a4 as IdentityDocumentSpec, a5 as IdentityFieldRule, a6 as IdentityRulesV1, a7 as IdentityStrategy, a8 as Image, a9 as InsufficientStockDetails, ab as InvoiceAction,
|
|
1
|
+
import { b6 as ProductSort, bS as TokenIntrospection, bz as Shop, bg as Region, bk as RegionPostalCode, b4 as ProductConnection, b1 as Product, z as Connection, y as Collection, ao as LocationListParams, al as Location, au as NearestLocation, bD as StockLevel, bl as RestockSubscriptionInput, bm as RestockSubscriptionResult, n as CartLineInput, C as Cart, q as CartLineUpdateInput, g as CartBuyerInput, b as AddressInput, U as DeliveryOptions, aT as PaymentMethods, S as DeliveryInput, ag as InvoiceRequest, be as RecommendationPlacement, t as CartRecommendations, v as CheckoutInput, x as CheckoutResult, bb as PromotionsList, aP as PaymentConfig, aY as PaymentSubmitInput, aL as PaymentAttemptResult, E as CustomerIdentifier, M as CustomerSessionInput, K as CustomerSession, D as CustomerCapabilities, H as CustomerRegisterInput, I as CustomerRegisterResult, P as CustomerVerifyRegistrationInput, F as CustomerPasswordLoginInput, N as CustomerSetPasswordInput, J as CustomerResetPasswordInput, B as Customer, O as CustomerUpdateInput, L as CustomerSessionInfo, bc as ReauthInput, bd as ReauthResult, Q as DataExportFile, A as AccountDeleteInput, ax as Order, bo as ReturnRequestInput, bn as ReturnRequest, ah as InvoiceResult, a_ as PendingPayment, ae as InvoiceFileKind, ad as InvoiceFile, $ as FiscalProfile, a0 as FiscalProfileInput, bI as Subject, bN as SubjectInput, bP as SubjectPatch, a as Address, bO as SubjectKind, bR as Theme, aI as Page, aq as Menu, c as Article, as as Money, e as AvailabilityStatus, p as CartLineProblem, d as Availability, aa as InsufficientStockLine, b7 as ProductVariant, R as DeclineCode, aZ as PaymentVoucher, aU as PaymentNextStep, r as CartPromotions, b9 as PromotionReward, ac as InvoiceDoc, bs as Shipment, av as NextAction, aB as OrderProgress, bw as ShipmentStatus, bt as ShipmentEvent, bK as SubjectCatalogNode, bL as SubjectField, T as DeliveryMethod, bT as UnavailableRateProvider } from './account-settings-BkShqX2k.cjs';
|
|
2
|
+
export { f as CartBuyer, h as CartCost, i as CartDelivery, j as CartDiscountCode, k as CartDiscountLine, l as CartInvoice, m as CartLine, o as CartLineMerchandise, s as CartRecommendation, u as CheckoutInfo, w as CheckoutPayment, G as CustomerPreferences, V as Facet, W as FacetValue, X as FiscalDocumentEvidence, Y as FiscalDocumentSource, Z as FiscalIdentity, _ as FiscalIdentityInput, a1 as FiscalVerification, a2 as GeoHint, a3 as IdentityCapture, a4 as IdentityDocumentSpec, a5 as IdentityFieldRule, a6 as IdentityRulesV1, a7 as IdentityStrategy, a8 as Image, a9 as InsufficientStockDetails, ab as InvoiceAction, af as InvoiceReceiver, ai as InvoiceStage, aj as InvoiceSummary, ak as InvoicingCapabilities, am as LocationContacts, an as LocationKind, ap as LocationPickup, ar as MenuItem, at as MoneyRange, aw as NextActionKind, ay as OrderLine, az as OrderPickup, aA as OrderProblem, aC as OrderProgressStep, aD as OrderSection, aE as OrderShippingService, aF as OrderStage, aG as OrderStepKey, aH as OrderStepState, aJ as PageInfo, aK as PaymentAction, aM as PaymentAttemptStatus, aN as PaymentClient, aO as PaymentClientCsp, aQ as PaymentFlow, aR as PaymentInfo, aS as PaymentMethod, aV as PaymentOption, aW as PaymentOptionKey, aX as PaymentPoint, a$ as PendingPaymentVoucher, b0 as PickupOption, b2 as ProductAttributeValue, b3 as ProductCategory, b5 as ProductOption, b8 as PromotionAnnouncement, ba as PromotionTier, bf as Refund, bh as RegionFiscalEntry, bi as RegionFiscalId, bj as RegionPaymentMethod, bp as SEO, bq as Section, br as SelectedOption, bu as ShipmentKind, bv as ShipmentMap, bx as ShipmentsSummary, by as ShippingRate, bA as ShopBranch, bB as ShopContact, bC as ShopPolicies, bE as StorefrontError, bF as StorefrontErrorBody, bG as StorefrontErrorCode, bH as StorefrontErrorInit, bJ as SubjectCatalog, bM as SubjectFieldType, bQ as SubjectRef, bU as dataExportBytes, bV as isAccountDeleteBlocked, bW as isReauthRequired, bX as isStorefrontError, bY as safeExportFilename } from './account-settings-BkShqX2k.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 {
|
|
2
|
-
export { f as CartBuyer, h as CartCost, i as CartDelivery, j as CartDiscountCode, k as CartDiscountLine, l as CartInvoice, m as CartLine, o as CartLineMerchandise, s as CartRecommendation, u as CheckoutInfo, w as CheckoutPayment, G as CustomerPreferences, V as Facet, W as FacetValue, X as FiscalDocumentEvidence, Y as FiscalDocumentSource, Z as FiscalIdentity, _ as FiscalIdentityInput, a1 as FiscalVerification, a2 as GeoHint, a3 as IdentityCapture, a4 as IdentityDocumentSpec, a5 as IdentityFieldRule, a6 as IdentityRulesV1, a7 as IdentityStrategy, a8 as Image, a9 as InsufficientStockDetails, ab as InvoiceAction,
|
|
1
|
+
import { b6 as ProductSort, bS as TokenIntrospection, bz as Shop, bg as Region, bk as RegionPostalCode, b4 as ProductConnection, b1 as Product, z as Connection, y as Collection, ao as LocationListParams, al as Location, au as NearestLocation, bD as StockLevel, bl as RestockSubscriptionInput, bm as RestockSubscriptionResult, n as CartLineInput, C as Cart, q as CartLineUpdateInput, g as CartBuyerInput, b as AddressInput, U as DeliveryOptions, aT as PaymentMethods, S as DeliveryInput, ag as InvoiceRequest, be as RecommendationPlacement, t as CartRecommendations, v as CheckoutInput, x as CheckoutResult, bb as PromotionsList, aP as PaymentConfig, aY as PaymentSubmitInput, aL as PaymentAttemptResult, E as CustomerIdentifier, M as CustomerSessionInput, K as CustomerSession, D as CustomerCapabilities, H as CustomerRegisterInput, I as CustomerRegisterResult, P as CustomerVerifyRegistrationInput, F as CustomerPasswordLoginInput, N as CustomerSetPasswordInput, J as CustomerResetPasswordInput, B as Customer, O as CustomerUpdateInput, L as CustomerSessionInfo, bc as ReauthInput, bd as ReauthResult, Q as DataExportFile, A as AccountDeleteInput, ax as Order, bo as ReturnRequestInput, bn as ReturnRequest, ah as InvoiceResult, a_ as PendingPayment, ae as InvoiceFileKind, ad as InvoiceFile, $ as FiscalProfile, a0 as FiscalProfileInput, bI as Subject, bN as SubjectInput, bP as SubjectPatch, a as Address, bO as SubjectKind, bR as Theme, aI as Page, aq as Menu, c as Article, as as Money, e as AvailabilityStatus, p as CartLineProblem, d as Availability, aa as InsufficientStockLine, b7 as ProductVariant, R as DeclineCode, aZ as PaymentVoucher, aU as PaymentNextStep, r as CartPromotions, b9 as PromotionReward, ac as InvoiceDoc, bs as Shipment, av as NextAction, aB as OrderProgress, bw as ShipmentStatus, bt as ShipmentEvent, bK as SubjectCatalogNode, bL as SubjectField, T as DeliveryMethod, bT as UnavailableRateProvider } from './account-settings-quulZwuF.js';
|
|
2
|
+
export { f as CartBuyer, h as CartCost, i as CartDelivery, j as CartDiscountCode, k as CartDiscountLine, l as CartInvoice, m as CartLine, o as CartLineMerchandise, s as CartRecommendation, u as CheckoutInfo, w as CheckoutPayment, G as CustomerPreferences, V as Facet, W as FacetValue, X as FiscalDocumentEvidence, Y as FiscalDocumentSource, Z as FiscalIdentity, _ as FiscalIdentityInput, a1 as FiscalVerification, a2 as GeoHint, a3 as IdentityCapture, a4 as IdentityDocumentSpec, a5 as IdentityFieldRule, a6 as IdentityRulesV1, a7 as IdentityStrategy, a8 as Image, a9 as InsufficientStockDetails, ab as InvoiceAction, af as InvoiceReceiver, ai as InvoiceStage, aj as InvoiceSummary, ak as InvoicingCapabilities, am as LocationContacts, an as LocationKind, ap as LocationPickup, ar as MenuItem, at as MoneyRange, aw as NextActionKind, ay as OrderLine, az as OrderPickup, aA as OrderProblem, aC as OrderProgressStep, aD as OrderSection, aE as OrderShippingService, aF as OrderStage, aG as OrderStepKey, aH as OrderStepState, aJ as PageInfo, aK as PaymentAction, aM as PaymentAttemptStatus, aN as PaymentClient, aO as PaymentClientCsp, aQ as PaymentFlow, aR as PaymentInfo, aS as PaymentMethod, aV as PaymentOption, aW as PaymentOptionKey, aX as PaymentPoint, a$ as PendingPaymentVoucher, b0 as PickupOption, b2 as ProductAttributeValue, b3 as ProductCategory, b5 as ProductOption, b8 as PromotionAnnouncement, ba as PromotionTier, bf as Refund, bh as RegionFiscalEntry, bi as RegionFiscalId, bj as RegionPaymentMethod, bp as SEO, bq as Section, br as SelectedOption, bu as ShipmentKind, bv as ShipmentMap, bx as ShipmentsSummary, by as ShippingRate, bA as ShopBranch, bB as ShopContact, bC as ShopPolicies, bE as StorefrontError, bF as StorefrontErrorBody, bG as StorefrontErrorCode, bH as StorefrontErrorInit, bJ as SubjectCatalog, bM as SubjectFieldType, bQ as SubjectRef, bU as dataExportBytes, bV as isAccountDeleteBlocked, bW as isReauthRequired, bX as isStorefrontError, bY as safeExportFilename } from './account-settings-quulZwuF.js';
|
|
3
3
|
import { GeoPoint } from './geo.js';
|
|
4
4
|
export { OpenStatus, OpeningHours } from './geo.js';
|
|
5
5
|
|
package/dist/mock.cjs
CHANGED
|
@@ -225,6 +225,9 @@ function buildAccountOrders(currency) {
|
|
|
225
225
|
folio_number: "1042",
|
|
226
226
|
total: money(129900, currency),
|
|
227
227
|
issued_at: "2026-08-13T10:00:00.000Z",
|
|
228
|
+
payment_method: "PUE",
|
|
229
|
+
payment_form: "04",
|
|
230
|
+
receiver: { rfc: "XAXX010101000", name: "P\xFAblico en general", tax_regime: "616", cfdi_use: "S01", postal_code: "76000" },
|
|
228
231
|
test_mode: false,
|
|
229
232
|
environment: "production"
|
|
230
233
|
};
|
|
@@ -2778,12 +2781,12 @@ function createMockStorefront(options = {}) {
|
|
|
2778
2781
|
const text = (v) => typeof v === "string" && v.trim() ? v.trim() : null;
|
|
2779
2782
|
const first_name = text(body.first_name);
|
|
2780
2783
|
const last_name = text(body.last_name);
|
|
2781
|
-
if (state.passwords.has(email)) throw new HttpError(409, "conflict", "An account with this email already exists", "email");
|
|
2782
2784
|
if (capabilities.email_verification) {
|
|
2783
2785
|
state.pendingRegistrations.set(email, { password, first_name, last_name });
|
|
2784
2786
|
state.otps.set(`email:${email}`, otpCode);
|
|
2785
2787
|
return { status: 202, body: { status: "verification_required" }, cache: "private" };
|
|
2786
2788
|
}
|
|
2789
|
+
if (state.passwords.has(email)) throw new HttpError(409, "conflict", "An account with this email already exists", "email");
|
|
2787
2790
|
state.passwords.set(email, password);
|
|
2788
2791
|
return { status: 201, body: sessionFor(email, { first_name, last_name }), cache: "private" };
|
|
2789
2792
|
});
|