@asteby/storefront 0.18.0 → 0.19.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.
@@ -467,6 +467,17 @@ type CheckoutPayment = {
467
467
  client?: PaymentClient;
468
468
  /** Pending action of the last attempt (voucher, 3DS challenge). */
469
469
  action?: PaymentAction | null;
470
+ /**
471
+ * Only on `GET checkouts/:id` when the LATEST attempt was rejected (e.g. the bank failed the 3DS challenge): the checkout
472
+ * stays `pending` (a new attempt is allowed) but `outcome` is `rejected`, with the typed reason and next step.
473
+ */
474
+ outcome?: string | null;
475
+ decline_code?: DeclineCode | null;
476
+ next_step?: PaymentNextStep | null;
477
+ retryable?: boolean | null;
478
+ message?: string | null;
479
+ message_en?: string | null;
480
+ attempts_left?: number | null;
470
481
  };
471
482
  type CheckoutInfo = {
472
483
  /** Checkout session id; use it with `payment.instructions`. */
@@ -743,6 +754,21 @@ type OrderPickup = {
743
754
  ready_at?: string | null;
744
755
  delivered_at?: string | null;
745
756
  };
757
+ /**
758
+ * The delivery the buyer chose at checkout, as they saw it (contract 1.11). It comes from the order's frozen quote, not
759
+ * from a shipment: it exists before any guide or tracking does, and for a sandbox shipment too. Never a cost or a
760
+ * provider id. Open text: `carrier` is whatever the shipping addon stored (`paquetexpress`, `DHL Express`).
761
+ */
762
+ type OrderShippingService = {
763
+ /** Service name the buyer picked («Envío Paquetexpress»). */
764
+ title?: string | null;
765
+ carrier?: string | null;
766
+ /** Key of the carrier logo in the SDK brand set (`dhl`, `estafeta`...); unknown keys fall back to the name. */
767
+ carrier_logo_key?: string | null;
768
+ /** Estimated business days when the buyer chose (whole numbers, `min <= max`). */
769
+ eta_days_min?: number | null;
770
+ eta_days_max?: number | null;
771
+ };
746
772
  type Order = {
747
773
  id: string;
748
774
  number: string;
@@ -762,6 +788,8 @@ type Order = {
762
788
  discount?: Money;
763
789
  tax_included?: boolean;
764
790
  shipping_method?: string | null;
791
+ /** Detail only, contract 1.11: the carrier, service and estimated days the buyer chose; absent on older servers (use `shipping_method`). */
792
+ shipping_service?: OrderShippingService | null;
765
793
  /** Detail only: the address as the checkout captured it (the buyer's own). */
766
794
  shipping_address?: Record<string, unknown> | null;
767
795
  /** @deprecated Use `shipments[0].tracking_number`: it does not say if it is a sandbox guide. */
@@ -1688,4 +1716,4 @@ declare function dataExportBytes(file: Pick<DataExportFile, 'content_base64'>):
1688
1716
  /** A download filename that is safe in a `Content-Disposition` header: no path, quotes, control characters or spaces. */
1689
1717
  declare function safeExportFilename(name: unknown, fallback?: string): string;
1690
1718
 
1691
- 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 Product 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 OrderProgress as aA, type OrderProgressStep as aB, type OrderSection as aC, type OrderStage as aD, type OrderStepKey as aE, type OrderStepState as aF, type Page as aG, type PageInfo as aH, type PaymentAction as aI, type PaymentAttemptResult as aJ, type PaymentAttemptStatus as aK, type PaymentClient as aL, type PaymentClientCsp as aM, type PaymentConfig as aN, type PaymentFlow as aO, type PaymentInfo as aP, type PaymentMethod as aQ, type PaymentMethods as aR, type PaymentNextStep as aS, type PaymentOption as aT, type PaymentOptionKey as aU, type PaymentPoint as aV, type PaymentSubmitInput as aW, type PaymentVoucher as aX, type PendingPayment as aY, type PendingPaymentVoucher as aZ, type PickupOption as a_, type InsufficientStockLine as aa, type InvoiceAction as ab, type InvoiceDoc as ac, type InvoiceFile as ad, type InvoiceFileKind as ae, type InvoiceRequest as af, type InvoiceResult as ag, type InvoiceStage as ah, type InvoiceSummary as ai, type InvoicingCapabilities as aj, type Location as ak, type LocationContacts as al, type LocationKind as am, type LocationListParams as an, type LocationPickup as ao, type Menu as ap, type MenuItem as aq, type Money as ar, type MoneyRange as as, type NearestLocation as at, type NextAction as au, type NextActionKind as av, type Order as aw, type OrderLine as ax, type OrderPickup as ay, type OrderProblem as az, type AddressInput as b, type ProductAttributeValue as b0, type ProductCategory as b1, type ProductConnection as b2, type ProductOption as b3, type ProductSort as b4, type ProductVariant as b5, type PromotionAnnouncement as b6, type PromotionReward as b7, type PromotionTier as b8, type PromotionsList as b9, type ShopPolicies as bA, type StockLevel as bB, StorefrontError as bC, type StorefrontErrorBody as bD, type StorefrontErrorCode as bE, type StorefrontErrorInit as bF, type Subject as bG, type SubjectCatalog as bH, type SubjectCatalogNode as bI, type SubjectField as bJ, type SubjectFieldType as bK, type SubjectInput as bL, type SubjectKind as bM, type SubjectPatch as bN, type SubjectRef as bO, type Theme as bP, type TokenIntrospection as bQ, type UnavailableRateProvider as bR, dataExportBytes as bS, isAccountDeleteBlocked as bT, isReauthRequired as bU, isStorefrontError as bV, safeExportFilename as bW, type ReauthInput as ba, type ReauthResult as bb, type RecommendationPlacement as bc, type Refund as bd, type Region as be, type RegionFiscalEntry as bf, type RegionFiscalId as bg, type RegionPaymentMethod as bh, type RegionPostalCode as bi, type RestockSubscriptionInput as bj, type RestockSubscriptionResult as bk, type ReturnRequest as bl, type ReturnRequestInput as bm, type SEO as bn, type Section as bo, type SelectedOption as bp, type Shipment as bq, type ShipmentEvent as br, type ShipmentKind as bs, type ShipmentMap as bt, type ShipmentStatus as bu, type ShipmentsSummary as bv, type ShippingRate as bw, type Shop as bx, type ShopBranch as by, type ShopContact 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 };
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 PickupOption 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 OrderProgress as aA, type OrderProgressStep as aB, type OrderSection as aC, type OrderShippingService as aD, type OrderStage as aE, type OrderStepKey as aF, type OrderStepState as aG, type Page as aH, type PageInfo as aI, type PaymentAction as aJ, type PaymentAttemptResult as aK, type PaymentAttemptStatus as aL, type PaymentClient as aM, type PaymentClientCsp as aN, type PaymentConfig as aO, type PaymentFlow as aP, type PaymentInfo as aQ, type PaymentMethod as aR, type PaymentMethods as aS, type PaymentNextStep as aT, type PaymentOption as aU, type PaymentOptionKey as aV, type PaymentPoint as aW, type PaymentSubmitInput as aX, type PaymentVoucher as aY, type PendingPayment as aZ, type PendingPaymentVoucher as a_, type InsufficientStockLine as aa, type InvoiceAction as ab, type InvoiceDoc as ac, type InvoiceFile as ad, type InvoiceFileKind as ae, type InvoiceRequest as af, type InvoiceResult as ag, type InvoiceStage as ah, type InvoiceSummary as ai, type InvoicingCapabilities as aj, type Location as ak, type LocationContacts as al, type LocationKind as am, type LocationListParams as an, type LocationPickup as ao, type Menu as ap, type MenuItem as aq, type Money as ar, type MoneyRange as as, type NearestLocation as at, type NextAction as au, type NextActionKind as av, type Order as aw, type OrderLine as ax, type OrderPickup as ay, type OrderProblem as az, type AddressInput as b, type Product as b0, type ProductAttributeValue as b1, type ProductCategory as b2, type ProductConnection as b3, type ProductOption as b4, type ProductSort as b5, type ProductVariant as b6, type PromotionAnnouncement as b7, type PromotionReward as b8, type PromotionTier as b9, type ShopContact as bA, type ShopPolicies as bB, type StockLevel as bC, StorefrontError as bD, type StorefrontErrorBody as bE, type StorefrontErrorCode as bF, type StorefrontErrorInit as bG, type Subject as bH, type SubjectCatalog as bI, type SubjectCatalogNode as bJ, type SubjectField as bK, type SubjectFieldType as bL, type SubjectInput as bM, type SubjectKind as bN, type SubjectPatch as bO, type SubjectRef as bP, type Theme as bQ, type TokenIntrospection as bR, type UnavailableRateProvider as bS, dataExportBytes as bT, isAccountDeleteBlocked as bU, isReauthRequired as bV, isStorefrontError as bW, safeExportFilename as bX, type PromotionsList as ba, type ReauthInput as bb, type ReauthResult as bc, type RecommendationPlacement as bd, type Refund as be, type Region as bf, type RegionFiscalEntry as bg, type RegionFiscalId as bh, type RegionPaymentMethod as bi, type RegionPostalCode as bj, type RestockSubscriptionInput as bk, type RestockSubscriptionResult as bl, type ReturnRequest as bm, type ReturnRequestInput as bn, type SEO as bo, type Section as bp, type SelectedOption as bq, type Shipment as br, type ShipmentEvent as bs, type ShipmentKind as bt, type ShipmentMap as bu, type ShipmentStatus as bv, type ShipmentsSummary as bw, type ShippingRate as bx, type Shop as by, type ShopBranch 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 };
@@ -467,6 +467,17 @@ type CheckoutPayment = {
467
467
  client?: PaymentClient;
468
468
  /** Pending action of the last attempt (voucher, 3DS challenge). */
469
469
  action?: PaymentAction | null;
470
+ /**
471
+ * Only on `GET checkouts/:id` when the LATEST attempt was rejected (e.g. the bank failed the 3DS challenge): the checkout
472
+ * stays `pending` (a new attempt is allowed) but `outcome` is `rejected`, with the typed reason and next step.
473
+ */
474
+ outcome?: string | null;
475
+ decline_code?: DeclineCode | null;
476
+ next_step?: PaymentNextStep | null;
477
+ retryable?: boolean | null;
478
+ message?: string | null;
479
+ message_en?: string | null;
480
+ attempts_left?: number | null;
470
481
  };
471
482
  type CheckoutInfo = {
472
483
  /** Checkout session id; use it with `payment.instructions`. */
@@ -743,6 +754,21 @@ type OrderPickup = {
743
754
  ready_at?: string | null;
744
755
  delivered_at?: string | null;
745
756
  };
757
+ /**
758
+ * The delivery the buyer chose at checkout, as they saw it (contract 1.11). It comes from the order's frozen quote, not
759
+ * from a shipment: it exists before any guide or tracking does, and for a sandbox shipment too. Never a cost or a
760
+ * provider id. Open text: `carrier` is whatever the shipping addon stored (`paquetexpress`, `DHL Express`).
761
+ */
762
+ type OrderShippingService = {
763
+ /** Service name the buyer picked («Envío Paquetexpress»). */
764
+ title?: string | null;
765
+ carrier?: string | null;
766
+ /** Key of the carrier logo in the SDK brand set (`dhl`, `estafeta`...); unknown keys fall back to the name. */
767
+ carrier_logo_key?: string | null;
768
+ /** Estimated business days when the buyer chose (whole numbers, `min <= max`). */
769
+ eta_days_min?: number | null;
770
+ eta_days_max?: number | null;
771
+ };
746
772
  type Order = {
747
773
  id: string;
748
774
  number: string;
@@ -762,6 +788,8 @@ type Order = {
762
788
  discount?: Money;
763
789
  tax_included?: boolean;
764
790
  shipping_method?: string | null;
791
+ /** Detail only, contract 1.11: the carrier, service and estimated days the buyer chose; absent on older servers (use `shipping_method`). */
792
+ shipping_service?: OrderShippingService | null;
765
793
  /** Detail only: the address as the checkout captured it (the buyer's own). */
766
794
  shipping_address?: Record<string, unknown> | null;
767
795
  /** @deprecated Use `shipments[0].tracking_number`: it does not say if it is a sandbox guide. */
@@ -1688,4 +1716,4 @@ declare function dataExportBytes(file: Pick<DataExportFile, 'content_base64'>):
1688
1716
  /** A download filename that is safe in a `Content-Disposition` header: no path, quotes, control characters or spaces. */
1689
1717
  declare function safeExportFilename(name: unknown, fallback?: string): string;
1690
1718
 
1691
- 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 Product 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 OrderProgress as aA, type OrderProgressStep as aB, type OrderSection as aC, type OrderStage as aD, type OrderStepKey as aE, type OrderStepState as aF, type Page as aG, type PageInfo as aH, type PaymentAction as aI, type PaymentAttemptResult as aJ, type PaymentAttemptStatus as aK, type PaymentClient as aL, type PaymentClientCsp as aM, type PaymentConfig as aN, type PaymentFlow as aO, type PaymentInfo as aP, type PaymentMethod as aQ, type PaymentMethods as aR, type PaymentNextStep as aS, type PaymentOption as aT, type PaymentOptionKey as aU, type PaymentPoint as aV, type PaymentSubmitInput as aW, type PaymentVoucher as aX, type PendingPayment as aY, type PendingPaymentVoucher as aZ, type PickupOption as a_, type InsufficientStockLine as aa, type InvoiceAction as ab, type InvoiceDoc as ac, type InvoiceFile as ad, type InvoiceFileKind as ae, type InvoiceRequest as af, type InvoiceResult as ag, type InvoiceStage as ah, type InvoiceSummary as ai, type InvoicingCapabilities as aj, type Location as ak, type LocationContacts as al, type LocationKind as am, type LocationListParams as an, type LocationPickup as ao, type Menu as ap, type MenuItem as aq, type Money as ar, type MoneyRange as as, type NearestLocation as at, type NextAction as au, type NextActionKind as av, type Order as aw, type OrderLine as ax, type OrderPickup as ay, type OrderProblem as az, type AddressInput as b, type ProductAttributeValue as b0, type ProductCategory as b1, type ProductConnection as b2, type ProductOption as b3, type ProductSort as b4, type ProductVariant as b5, type PromotionAnnouncement as b6, type PromotionReward as b7, type PromotionTier as b8, type PromotionsList as b9, type ShopPolicies as bA, type StockLevel as bB, StorefrontError as bC, type StorefrontErrorBody as bD, type StorefrontErrorCode as bE, type StorefrontErrorInit as bF, type Subject as bG, type SubjectCatalog as bH, type SubjectCatalogNode as bI, type SubjectField as bJ, type SubjectFieldType as bK, type SubjectInput as bL, type SubjectKind as bM, type SubjectPatch as bN, type SubjectRef as bO, type Theme as bP, type TokenIntrospection as bQ, type UnavailableRateProvider as bR, dataExportBytes as bS, isAccountDeleteBlocked as bT, isReauthRequired as bU, isStorefrontError as bV, safeExportFilename as bW, type ReauthInput as ba, type ReauthResult as bb, type RecommendationPlacement as bc, type Refund as bd, type Region as be, type RegionFiscalEntry as bf, type RegionFiscalId as bg, type RegionPaymentMethod as bh, type RegionPostalCode as bi, type RestockSubscriptionInput as bj, type RestockSubscriptionResult as bk, type ReturnRequest as bl, type ReturnRequestInput as bm, type SEO as bn, type Section as bo, type SelectedOption as bp, type Shipment as bq, type ShipmentEvent as br, type ShipmentKind as bs, type ShipmentMap as bt, type ShipmentStatus as bu, type ShipmentsSummary as bv, type ShippingRate as bw, type Shop as bx, type ShopBranch as by, type ShopContact 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 };
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 PickupOption 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 OrderProgress as aA, type OrderProgressStep as aB, type OrderSection as aC, type OrderShippingService as aD, type OrderStage as aE, type OrderStepKey as aF, type OrderStepState as aG, type Page as aH, type PageInfo as aI, type PaymentAction as aJ, type PaymentAttemptResult as aK, type PaymentAttemptStatus as aL, type PaymentClient as aM, type PaymentClientCsp as aN, type PaymentConfig as aO, type PaymentFlow as aP, type PaymentInfo as aQ, type PaymentMethod as aR, type PaymentMethods as aS, type PaymentNextStep as aT, type PaymentOption as aU, type PaymentOptionKey as aV, type PaymentPoint as aW, type PaymentSubmitInput as aX, type PaymentVoucher as aY, type PendingPayment as aZ, type PendingPaymentVoucher as a_, type InsufficientStockLine as aa, type InvoiceAction as ab, type InvoiceDoc as ac, type InvoiceFile as ad, type InvoiceFileKind as ae, type InvoiceRequest as af, type InvoiceResult as ag, type InvoiceStage as ah, type InvoiceSummary as ai, type InvoicingCapabilities as aj, type Location as ak, type LocationContacts as al, type LocationKind as am, type LocationListParams as an, type LocationPickup as ao, type Menu as ap, type MenuItem as aq, type Money as ar, type MoneyRange as as, type NearestLocation as at, type NextAction as au, type NextActionKind as av, type Order as aw, type OrderLine as ax, type OrderPickup as ay, type OrderProblem as az, type AddressInput as b, type Product as b0, type ProductAttributeValue as b1, type ProductCategory as b2, type ProductConnection as b3, type ProductOption as b4, type ProductSort as b5, type ProductVariant as b6, type PromotionAnnouncement as b7, type PromotionReward as b8, type PromotionTier as b9, type ShopContact as bA, type ShopPolicies as bB, type StockLevel as bC, StorefrontError as bD, type StorefrontErrorBody as bE, type StorefrontErrorCode as bF, type StorefrontErrorInit as bG, type Subject as bH, type SubjectCatalog as bI, type SubjectCatalogNode as bJ, type SubjectField as bK, type SubjectFieldType as bL, type SubjectInput as bM, type SubjectKind as bN, type SubjectPatch as bO, type SubjectRef as bP, type Theme as bQ, type TokenIntrospection as bR, type UnavailableRateProvider as bS, dataExportBytes as bT, isAccountDeleteBlocked as bU, isReauthRequired as bV, isStorefrontError as bW, safeExportFilename as bX, type PromotionsList as ba, type ReauthInput as bb, type ReauthResult as bc, type RecommendationPlacement as bd, type Refund as be, type Region as bf, type RegionFiscalEntry as bg, type RegionFiscalId as bh, type RegionPaymentMethod as bi, type RegionPostalCode as bj, type RestockSubscriptionInput as bk, type RestockSubscriptionResult as bl, type ReturnRequest as bm, type ReturnRequestInput as bn, type SEO as bo, type Section as bp, type SelectedOption as bq, type Shipment as br, type ShipmentEvent as bs, type ShipmentKind as bt, type ShipmentMap as bu, type ShipmentStatus as bv, type ShipmentsSummary as bw, type ShippingRate as bx, type Shop as by, type ShopBranch 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.18.0" : "dev";
607
+ var SDK_VERSION = true ? "0.19.0" : "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, bf as RegionFiscalEntry, a4 as IdentityDocumentSpec, X as FiscalDocumentEvidence, bg as RegionFiscalId, a6 as IdentityRulesV1 } from './account-settings-DAzmXHIn.cjs';
2
- export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-DAzmXHIn.cjs';
1
+ import { Y as FiscalDocumentSource, bg as RegionFiscalEntry, a4 as IdentityDocumentSpec, X as FiscalDocumentEvidence, bh as RegionFiscalId, a6 as IdentityRulesV1 } from './account-settings-ZtgZOuiG.cjs';
2
+ export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-ZtgZOuiG.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, bf as RegionFiscalEntry, a4 as IdentityDocumentSpec, X as FiscalDocumentEvidence, bg as RegionFiscalId, a6 as IdentityRulesV1 } from './account-settings-Cw3PamUA.js';
2
- export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-Cw3PamUA.js';
1
+ import { Y as FiscalDocumentSource, bg as RegionFiscalEntry, a4 as IdentityDocumentSpec, X as FiscalDocumentEvidence, bh as RegionFiscalId, a6 as IdentityRulesV1 } from './account-settings-C3VXJ7wi.js';
2
+ export { a3 as IdentityCapture, a5 as IdentityFieldRule, a7 as IdentityStrategy } from './account-settings-C3VXJ7wi.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 { b4 as ProductSort, bQ as TokenIntrospection, bx as Shop, be as Region, bi as RegionPostalCode, b2 as ProductConnection, a$ as Product, z as Connection, y as Collection, an as LocationListParams, ak as Location, at as NearestLocation, bB as StockLevel, bj as RestockSubscriptionInput, bk as RestockSubscriptionResult, n as CartLineInput, C as Cart, q as CartLineUpdateInput, g as CartBuyerInput, b as AddressInput, U as DeliveryOptions, aR as PaymentMethods, S as DeliveryInput, af as InvoiceRequest, bc as RecommendationPlacement, t as CartRecommendations, v as CheckoutInput, x as CheckoutResult, b9 as PromotionsList, aN as PaymentConfig, aW as PaymentSubmitInput, aJ 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, ba as ReauthInput, bb as ReauthResult, Q as DataExportFile, A as AccountDeleteInput, aw as Order, bm as ReturnRequestInput, bl as ReturnRequest, ag as InvoiceResult, aY as PendingPayment, ae as InvoiceFileKind, ad as InvoiceFile, $ as FiscalProfile, a0 as FiscalProfileInput, bG as Subject, bL as SubjectInput, bN as SubjectPatch, a as Address, bM as SubjectKind, bP as Theme, aG as Page, ap as Menu, c as Article, ar as Money, e as AvailabilityStatus, p as CartLineProblem, d as Availability, aa as InsufficientStockLine, b5 as ProductVariant, R as DeclineCode, aX as PaymentVoucher, aS as PaymentNextStep, r as CartPromotions, b7 as PromotionReward, ac as InvoiceDoc, bq as Shipment, au as NextAction, aA as OrderProgress, bu as ShipmentStatus, br as ShipmentEvent, bI as SubjectCatalogNode, bJ as SubjectField, T as DeliveryMethod, bR as UnavailableRateProvider } from './account-settings-DAzmXHIn.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, ah as InvoiceStage, ai as InvoiceSummary, aj as InvoicingCapabilities, al as LocationContacts, am as LocationKind, ao as LocationPickup, aq as MenuItem, as as MoneyRange, av as NextActionKind, ax as OrderLine, ay as OrderPickup, az as OrderProblem, aB as OrderProgressStep, aC as OrderSection, aD as OrderStage, aE as OrderStepKey, aF as OrderStepState, aH as PageInfo, aI as PaymentAction, aK as PaymentAttemptStatus, aL as PaymentClient, aM as PaymentClientCsp, aO as PaymentFlow, aP as PaymentInfo, aQ as PaymentMethod, aT as PaymentOption, aU as PaymentOptionKey, aV as PaymentPoint, aZ as PendingPaymentVoucher, a_ as PickupOption, b0 as ProductAttributeValue, b1 as ProductCategory, b3 as ProductOption, b6 as PromotionAnnouncement, b8 as PromotionTier, bd as Refund, bf as RegionFiscalEntry, bg as RegionFiscalId, bh as RegionPaymentMethod, bn as SEO, bo as Section, bp as SelectedOption, bs as ShipmentKind, bt as ShipmentMap, bv as ShipmentsSummary, bw as ShippingRate, by as ShopBranch, bz as ShopContact, bA as ShopPolicies, bC as StorefrontError, bD as StorefrontErrorBody, bE as StorefrontErrorCode, bF as StorefrontErrorInit, bH as SubjectCatalog, bK as SubjectFieldType, bO as SubjectRef, bS as dataExportBytes, bT as isAccountDeleteBlocked, bU as isReauthRequired, bV as isStorefrontError, bW as safeExportFilename } from './account-settings-DAzmXHIn.cjs';
1
+ import { b5 as ProductSort, bR as TokenIntrospection, by as Shop, bf as Region, bj as RegionPostalCode, b3 as ProductConnection, b0 as Product, z as Connection, y as Collection, an as LocationListParams, ak as Location, at as NearestLocation, bC as StockLevel, bk as RestockSubscriptionInput, bl as RestockSubscriptionResult, n as CartLineInput, C as Cart, q as CartLineUpdateInput, g as CartBuyerInput, b as AddressInput, U as DeliveryOptions, aS as PaymentMethods, S as DeliveryInput, af as InvoiceRequest, bd as RecommendationPlacement, t as CartRecommendations, v as CheckoutInput, x as CheckoutResult, ba as PromotionsList, aO as PaymentConfig, aX as PaymentSubmitInput, aK 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, bb as ReauthInput, bc as ReauthResult, Q as DataExportFile, A as AccountDeleteInput, aw as Order, bn as ReturnRequestInput, bm as ReturnRequest, ag as InvoiceResult, aZ as PendingPayment, ae as InvoiceFileKind, ad as InvoiceFile, $ as FiscalProfile, a0 as FiscalProfileInput, bH as Subject, bM as SubjectInput, bO as SubjectPatch, a as Address, bN as SubjectKind, bQ as Theme, aH as Page, ap as Menu, c as Article, ar as Money, e as AvailabilityStatus, p as CartLineProblem, d as Availability, aa as InsufficientStockLine, b6 as ProductVariant, R as DeclineCode, aY as PaymentVoucher, aT as PaymentNextStep, r as CartPromotions, b8 as PromotionReward, ac as InvoiceDoc, br as Shipment, au as NextAction, aA as OrderProgress, bv as ShipmentStatus, bs as ShipmentEvent, bJ as SubjectCatalogNode, bK as SubjectField, T as DeliveryMethod, bS as UnavailableRateProvider } from './account-settings-ZtgZOuiG.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, ah as InvoiceStage, ai as InvoiceSummary, aj as InvoicingCapabilities, al as LocationContacts, am as LocationKind, ao as LocationPickup, aq as MenuItem, as as MoneyRange, av as NextActionKind, ax as OrderLine, ay as OrderPickup, az as OrderProblem, aB as OrderProgressStep, aC as OrderSection, aD as OrderShippingService, aE as OrderStage, aF as OrderStepKey, aG as OrderStepState, aI as PageInfo, aJ as PaymentAction, aL as PaymentAttemptStatus, aM as PaymentClient, aN as PaymentClientCsp, aP as PaymentFlow, aQ as PaymentInfo, aR as PaymentMethod, aU as PaymentOption, aV as PaymentOptionKey, aW as PaymentPoint, a_ as PendingPaymentVoucher, a$ as PickupOption, b1 as ProductAttributeValue, b2 as ProductCategory, b4 as ProductOption, b7 as PromotionAnnouncement, b9 as PromotionTier, be as Refund, bg as RegionFiscalEntry, bh as RegionFiscalId, bi as RegionPaymentMethod, bo as SEO, bp as Section, bq as SelectedOption, bt as ShipmentKind, bu as ShipmentMap, bw as ShipmentsSummary, bx as ShippingRate, bz as ShopBranch, bA as ShopContact, bB as ShopPolicies, bD as StorefrontError, bE as StorefrontErrorBody, bF as StorefrontErrorCode, bG as StorefrontErrorInit, bI as SubjectCatalog, bL as SubjectFieldType, bP as SubjectRef, bT as dataExportBytes, bU as isAccountDeleteBlocked, bV as isReauthRequired, bW as isStorefrontError, bX as safeExportFilename } from './account-settings-ZtgZOuiG.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 { b4 as ProductSort, bQ as TokenIntrospection, bx as Shop, be as Region, bi as RegionPostalCode, b2 as ProductConnection, a$ as Product, z as Connection, y as Collection, an as LocationListParams, ak as Location, at as NearestLocation, bB as StockLevel, bj as RestockSubscriptionInput, bk as RestockSubscriptionResult, n as CartLineInput, C as Cart, q as CartLineUpdateInput, g as CartBuyerInput, b as AddressInput, U as DeliveryOptions, aR as PaymentMethods, S as DeliveryInput, af as InvoiceRequest, bc as RecommendationPlacement, t as CartRecommendations, v as CheckoutInput, x as CheckoutResult, b9 as PromotionsList, aN as PaymentConfig, aW as PaymentSubmitInput, aJ 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, ba as ReauthInput, bb as ReauthResult, Q as DataExportFile, A as AccountDeleteInput, aw as Order, bm as ReturnRequestInput, bl as ReturnRequest, ag as InvoiceResult, aY as PendingPayment, ae as InvoiceFileKind, ad as InvoiceFile, $ as FiscalProfile, a0 as FiscalProfileInput, bG as Subject, bL as SubjectInput, bN as SubjectPatch, a as Address, bM as SubjectKind, bP as Theme, aG as Page, ap as Menu, c as Article, ar as Money, e as AvailabilityStatus, p as CartLineProblem, d as Availability, aa as InsufficientStockLine, b5 as ProductVariant, R as DeclineCode, aX as PaymentVoucher, aS as PaymentNextStep, r as CartPromotions, b7 as PromotionReward, ac as InvoiceDoc, bq as Shipment, au as NextAction, aA as OrderProgress, bu as ShipmentStatus, br as ShipmentEvent, bI as SubjectCatalogNode, bJ as SubjectField, T as DeliveryMethod, bR as UnavailableRateProvider } from './account-settings-Cw3PamUA.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, ah as InvoiceStage, ai as InvoiceSummary, aj as InvoicingCapabilities, al as LocationContacts, am as LocationKind, ao as LocationPickup, aq as MenuItem, as as MoneyRange, av as NextActionKind, ax as OrderLine, ay as OrderPickup, az as OrderProblem, aB as OrderProgressStep, aC as OrderSection, aD as OrderStage, aE as OrderStepKey, aF as OrderStepState, aH as PageInfo, aI as PaymentAction, aK as PaymentAttemptStatus, aL as PaymentClient, aM as PaymentClientCsp, aO as PaymentFlow, aP as PaymentInfo, aQ as PaymentMethod, aT as PaymentOption, aU as PaymentOptionKey, aV as PaymentPoint, aZ as PendingPaymentVoucher, a_ as PickupOption, b0 as ProductAttributeValue, b1 as ProductCategory, b3 as ProductOption, b6 as PromotionAnnouncement, b8 as PromotionTier, bd as Refund, bf as RegionFiscalEntry, bg as RegionFiscalId, bh as RegionPaymentMethod, bn as SEO, bo as Section, bp as SelectedOption, bs as ShipmentKind, bt as ShipmentMap, bv as ShipmentsSummary, bw as ShippingRate, by as ShopBranch, bz as ShopContact, bA as ShopPolicies, bC as StorefrontError, bD as StorefrontErrorBody, bE as StorefrontErrorCode, bF as StorefrontErrorInit, bH as SubjectCatalog, bK as SubjectFieldType, bO as SubjectRef, bS as dataExportBytes, bT as isAccountDeleteBlocked, bU as isReauthRequired, bV as isStorefrontError, bW as safeExportFilename } from './account-settings-Cw3PamUA.js';
1
+ import { b5 as ProductSort, bR as TokenIntrospection, by as Shop, bf as Region, bj as RegionPostalCode, b3 as ProductConnection, b0 as Product, z as Connection, y as Collection, an as LocationListParams, ak as Location, at as NearestLocation, bC as StockLevel, bk as RestockSubscriptionInput, bl as RestockSubscriptionResult, n as CartLineInput, C as Cart, q as CartLineUpdateInput, g as CartBuyerInput, b as AddressInput, U as DeliveryOptions, aS as PaymentMethods, S as DeliveryInput, af as InvoiceRequest, bd as RecommendationPlacement, t as CartRecommendations, v as CheckoutInput, x as CheckoutResult, ba as PromotionsList, aO as PaymentConfig, aX as PaymentSubmitInput, aK 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, bb as ReauthInput, bc as ReauthResult, Q as DataExportFile, A as AccountDeleteInput, aw as Order, bn as ReturnRequestInput, bm as ReturnRequest, ag as InvoiceResult, aZ as PendingPayment, ae as InvoiceFileKind, ad as InvoiceFile, $ as FiscalProfile, a0 as FiscalProfileInput, bH as Subject, bM as SubjectInput, bO as SubjectPatch, a as Address, bN as SubjectKind, bQ as Theme, aH as Page, ap as Menu, c as Article, ar as Money, e as AvailabilityStatus, p as CartLineProblem, d as Availability, aa as InsufficientStockLine, b6 as ProductVariant, R as DeclineCode, aY as PaymentVoucher, aT as PaymentNextStep, r as CartPromotions, b8 as PromotionReward, ac as InvoiceDoc, br as Shipment, au as NextAction, aA as OrderProgress, bv as ShipmentStatus, bs as ShipmentEvent, bJ as SubjectCatalogNode, bK as SubjectField, T as DeliveryMethod, bS as UnavailableRateProvider } from './account-settings-C3VXJ7wi.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, ah as InvoiceStage, ai as InvoiceSummary, aj as InvoicingCapabilities, al as LocationContacts, am as LocationKind, ao as LocationPickup, aq as MenuItem, as as MoneyRange, av as NextActionKind, ax as OrderLine, ay as OrderPickup, az as OrderProblem, aB as OrderProgressStep, aC as OrderSection, aD as OrderShippingService, aE as OrderStage, aF as OrderStepKey, aG as OrderStepState, aI as PageInfo, aJ as PaymentAction, aL as PaymentAttemptStatus, aM as PaymentClient, aN as PaymentClientCsp, aP as PaymentFlow, aQ as PaymentInfo, aR as PaymentMethod, aU as PaymentOption, aV as PaymentOptionKey, aW as PaymentPoint, a_ as PendingPaymentVoucher, a$ as PickupOption, b1 as ProductAttributeValue, b2 as ProductCategory, b4 as ProductOption, b7 as PromotionAnnouncement, b9 as PromotionTier, be as Refund, bg as RegionFiscalEntry, bh as RegionFiscalId, bi as RegionPaymentMethod, bo as SEO, bp as Section, bq as SelectedOption, bt as ShipmentKind, bu as ShipmentMap, bw as ShipmentsSummary, bx as ShippingRate, bz as ShopBranch, bA as ShopContact, bB as ShopPolicies, bD as StorefrontError, bE as StorefrontErrorBody, bF as StorefrontErrorCode, bG as StorefrontErrorInit, bI as SubjectCatalog, bL as SubjectFieldType, bP as SubjectRef, bT as dataExportBytes, bU as isAccountDeleteBlocked, bV as isReauthRequired, bW as isStorefrontError, bX as safeExportFilename } from './account-settings-C3VXJ7wi.js';
3
3
  import { GeoPoint } from './geo.js';
4
4
  export { OpenStatus, OpeningHours } from './geo.js';
5
5
 
package/dist/mock.cjs CHANGED
@@ -278,6 +278,8 @@ function buildAccountOrders(currency) {
278
278
  lines: [line("Filtro de aceite", null, 3, 18300, currency)],
279
279
  delivery_method: "shipping",
280
280
  payment_status: "paid",
281
+ shipping_method: "shipping:Env\xEDo Estafeta",
282
+ shipping_service: { title: "Env\xEDo Estafeta", carrier: "estafeta", carrier_logo_key: "estafeta", eta_days_min: 1, eta_days_max: 3 },
281
283
  shipping_address: address,
282
284
  shipments: [],
283
285
  invoices: [],