@asteby/storefront 0.15.0 → 0.16.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/mockup.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { aV as Product, a$ as ProductVariant } from './types-cwXbVCwe.cjs';
1
+ import { aX as Product, b1 as ProductVariant } from './types-C5nEQicj.cjs';
2
2
  import './geo.cjs';
3
3
 
4
4
  /**
package/dist/mockup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { aV as Product, a$ as ProductVariant } from './types-CuamKhDe.js';
1
+ import { aX as Product, b1 as ProductVariant } from './types-DSHzYSHU.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.15.0" : "dev";
50
+ var SDK_VERSION = true ? "0.16.1" : "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.15.0" : "dev";
14
+ var SDK_VERSION = true ? "0.16.1" : "dev";
15
15
  function createFileTokenSource(file, options = {}) {
16
16
  const ttl = options.ttlMs ?? 3e4;
17
17
  const now = options.now ?? Date.now;
@@ -426,6 +426,8 @@ type InvoiceRequest = {
426
426
  invoice_use?: string;
427
427
  /** Also save the data to the buyer's account (needs a session). */
428
428
  save?: boolean;
429
+ /** Saved fiscal profile the data comes from (contract 1.9; needs a session; `404` when it is not the buyer's). */
430
+ profile_id?: string;
429
431
  [key: string]: unknown;
430
432
  };
431
433
  type CheckoutInput = {
@@ -525,6 +527,10 @@ type CustomerCapabilities = {
525
527
  unavailable_reason?: 'missing_scope' | (string & {});
526
528
  /** Scopes the token lacks (e.g. `customer:write`) when `unavailable_reason` is `missing_scope`. */
527
529
  missing_scopes?: string[];
530
+ /** Saved fiscal profiles (contract 1.9). Absent on older servers: the section does not exist. */
531
+ fiscal_profiles?: {
532
+ max: number;
533
+ };
528
534
  };
529
535
  /** `GET {gateway}/_token`: what the token in use is and what it can do. Needs no scope. */
530
536
  type TokenIntrospection = {
@@ -688,6 +694,10 @@ type PaymentInfo = {
688
694
  status: 'paid' | 'pending' | 'failed' | 'refunded' | 'partially_refunded' | (string & {});
689
695
  amount: Money;
690
696
  paid_at?: string | null;
697
+ /** Card brand (`visa`, `mastercard`...) when the server knows it. */
698
+ brand?: string | null;
699
+ /** Last four digits of the card when the server knows them. */
700
+ last4?: string | null;
691
701
  };
692
702
  type Refund = {
693
703
  id: string;
@@ -1184,6 +1194,8 @@ type InvoicingCapabilities = {
1184
1194
  identity_documents: string[];
1185
1195
  /** The store can check the data against the tax authority online (informative, never blocks). */
1186
1196
  online_verify: boolean;
1197
+ /** Invoicing runs against a test (sandbox) provider: invoices have no fiscal validity. Absent = production. */
1198
+ test_mode?: boolean;
1187
1199
  };
1188
1200
  /** One regime or invoice use of the region's fiscal catalog. */
1189
1201
  type RegionFiscalEntry = {
@@ -1196,6 +1208,11 @@ type RegionFiscalEntry = {
1196
1208
  allowed_regimes?: string[];
1197
1209
  /** Folded phrases that identify the entry in a document (`catalog_phrases`); without them the label is used. */
1198
1210
  match_phrases?: string[];
1211
+ /**
1212
+ * Invoice uses only (contract 1.9): the regimes this use is SUGGESTED for. Region data, never a rule: the buyer can
1213
+ * change it and `allowed_regimes` still validates.
1214
+ */
1215
+ suggested_for_regimes?: string[];
1199
1216
  };
1200
1217
  /**
1201
1218
  * A document the buyer can upload to prefill their fiscal data, with the rules to read it. Published by the
@@ -1212,6 +1229,11 @@ type IdentityDocumentSpec = {
1212
1229
  obtain_url?: string;
1213
1230
  /** MIME types the document comes in (the SDK reads PDFs). */
1214
1231
  accept: string[];
1232
+ /**
1233
+ * What can be read from a PHOTO of the document (contract 1.9): `qr_only` (the QR: tax id and document id) or
1234
+ * `full`. Absent or `none`: files only.
1235
+ */
1236
+ image_mode?: 'none' | 'qr_only' | 'full';
1215
1237
  max_bytes: number;
1216
1238
  max_pages?: number;
1217
1239
  /** `rules@1` runs the generic engine on `rules`; `plugin:<id>` runs an extractor from `registerIdentityExtractor`. */
@@ -1238,6 +1260,15 @@ type RegionFiscalId = {
1238
1260
  invoice_uses: RegionFiscalEntry[];
1239
1261
  /** Documents the buyer can upload; absent on older servers. */
1240
1262
  documents?: IdentityDocumentSpec[];
1263
+ /**
1264
+ * Person type -> pattern its tax ids follow (contract 1.9), so the SDK tells the type from DATA instead of a function
1265
+ * each store injects. Absent: not derived. See `personTypeFromPatterns` (`@asteby/storefront-react/fiscal`).
1266
+ */
1267
+ person_patterns?: Record<string, string>;
1268
+ /** Name of the pack's optional check algorithm (a warning at most, never a block). */
1269
+ checksum?: string | null;
1270
+ /** The invoice use the organization prefers by default; it wins over `suggested_for_regimes`. */
1271
+ default_invoice_use?: string | null;
1241
1272
  };
1242
1273
  type RegionPaymentMethod = {
1243
1274
  code: string;
@@ -1328,6 +1359,26 @@ type FiscalIdentity = {
1328
1359
  type FiscalIdentityInput = Omit<FiscalIdentity, 'verification' | 'country_code'> & {
1329
1360
  country_code?: string;
1330
1361
  };
1362
+ /**
1363
+ * A saved fiscal profile of the buyer (contract 1.9; up to `capabilities.fiscal_profiles.max`, one is the default).
1364
+ * Personal data: show the tax id masked in lists (`maskTaxId`), never log it.
1365
+ */
1366
+ type FiscalProfile = FiscalIdentity & {
1367
+ id: string;
1368
+ /** Name the buyer gave it ("Personal", "My company"). */
1369
+ label: string;
1370
+ /** Derived by the server from the region's data; `null` when the region defines none. */
1371
+ person_type?: string | null;
1372
+ is_default: boolean;
1373
+ last_used_at?: string | null;
1374
+ created_at: string;
1375
+ updated_at: string;
1376
+ };
1377
+ /** Create or edit a profile. The server derives `person_type` and sets `verification`; the client cannot. */
1378
+ type FiscalProfileInput = Partial<FiscalIdentityInput> & {
1379
+ label?: string;
1380
+ is_default?: boolean;
1381
+ };
1331
1382
  /** `PATCH /customer`. `fiscal: null` deletes the saved fiscal data (ARCO). */
1332
1383
  type CustomerUpdateInput = {
1333
1384
  first_name?: string | null;
@@ -1397,4 +1448,4 @@ type IdentityRulesV1 = {
1397
1448
  fields: IdentityFieldRule[];
1398
1449
  };
1399
1450
 
1400
- export type { IdentityFieldRule as $, Address as A, CustomerCapabilities as B, Cart as C, CustomerIdentifier as D, CustomerPasswordLoginInput as E, CustomerRegisterInput as F, CustomerRegisterResult as G, CustomerResetPasswordInput as H, CustomerSession as I, CustomerSessionInput as J, CustomerSetPasswordInput as K, CustomerUpdateInput as L, CustomerVerifyRegistrationInput as M, DeclineCode as N, DeliveryInput as O, DeliveryMethod as P, DeliveryOptions as Q, Facet as R, FacetValue as S, FiscalDocumentEvidence as T, FiscalDocumentSource as U, FiscalIdentity as V, FiscalIdentityInput as W, FiscalVerification as X, GeoHint as Y, IdentityCapture as Z, IdentityDocumentSpec as _, AddressInput as a, ProductVariant as a$, IdentityRulesV1 as a0, IdentityStrategy as a1, Image as a2, InsufficientStockDetails as a3, InsufficientStockLine as a4, InvoiceAction as a5, InvoiceDoc as a6, InvoiceFile as a7, InvoiceFileKind as a8, InvoiceRequest as a9, Page as aA, PageInfo as aB, PaymentAction as aC, PaymentAttemptResult as aD, PaymentAttemptStatus as aE, PaymentClient as aF, PaymentClientCsp as aG, PaymentConfig as aH, PaymentFlow as aI, PaymentInfo as aJ, PaymentMethod as aK, PaymentMethods as aL, PaymentNextStep as aM, PaymentOption as aN, PaymentOptionKey as aO, PaymentPoint as aP, PaymentSubmitInput as aQ, PaymentVoucher as aR, PendingPayment as aS, PendingPaymentVoucher as aT, PickupOption as aU, Product as aV, ProductAttributeValue as aW, ProductCategory as aX, ProductConnection as aY, ProductOption as aZ, ProductSort as a_, InvoiceResult as aa, InvoiceStage as ab, InvoiceSummary as ac, InvoicingCapabilities as ad, Location as ae, LocationContacts as af, LocationKind as ag, LocationListParams as ah, LocationPickup as ai, Menu as aj, MenuItem as ak, Money as al, MoneyRange as am, NearestLocation as an, NextAction as ao, NextActionKind as ap, Order as aq, OrderLine as ar, OrderPickup as as, OrderProblem as at, OrderProgress as au, OrderProgressStep as av, OrderSection as aw, OrderStage as ax, OrderStepKey as ay, OrderStepState as az, Article as b, PromotionAnnouncement as b0, PromotionReward as b1, PromotionTier as b2, PromotionsList as b3, RecommendationPlacement as b4, Refund as b5, Region as b6, RegionFiscalEntry as b7, RegionFiscalId as b8, RegionPaymentMethod as b9, RegionPostalCode as ba, RestockSubscriptionInput as bb, RestockSubscriptionResult as bc, ReturnRequest as bd, ReturnRequestInput as be, SEO as bf, Section as bg, SelectedOption as bh, Shipment as bi, ShipmentEvent as bj, ShipmentKind as bk, ShipmentMap as bl, ShipmentStatus as bm, ShipmentsSummary as bn, ShippingRate as bo, Shop as bp, ShopBranch as bq, ShopContact as br, ShopPolicies as bs, StockLevel as bt, StorefrontErrorBody as bu, StorefrontErrorCode as bv, Theme as bw, TokenIntrospection as bx, UnavailableRateProvider as by, Availability as c, AvailabilityStatus as d, CartBuyer as e, CartBuyerInput as f, CartCost as g, CartDelivery as h, CartDiscountCode as i, CartDiscountLine as j, CartInvoice as k, CartLine as l, CartLineInput as m, CartLineMerchandise as n, CartLineProblem as o, CartLineUpdateInput as p, CartPromotions as q, CartRecommendation as r, CartRecommendations as s, CheckoutInfo as t, CheckoutInput as u, CheckoutPayment as v, CheckoutResult as w, Collection as x, Connection as y, Customer as z };
1451
+ export type { IdentityCapture as $, Address as A, CustomerCapabilities as B, Cart as C, CustomerIdentifier as D, CustomerPasswordLoginInput as E, CustomerRegisterInput as F, CustomerRegisterResult as G, CustomerResetPasswordInput as H, CustomerSession as I, CustomerSessionInput as J, CustomerSetPasswordInput as K, CustomerUpdateInput as L, CustomerVerifyRegistrationInput as M, DeclineCode as N, DeliveryInput as O, DeliveryMethod as P, DeliveryOptions as Q, Facet as R, FacetValue as S, FiscalDocumentEvidence as T, FiscalDocumentSource as U, FiscalIdentity as V, FiscalIdentityInput as W, FiscalProfile as X, FiscalProfileInput as Y, FiscalVerification as Z, GeoHint as _, AddressInput as a, ProductOption as a$, IdentityDocumentSpec as a0, IdentityFieldRule as a1, IdentityRulesV1 as a2, IdentityStrategy as a3, Image as a4, InsufficientStockDetails as a5, InsufficientStockLine as a6, InvoiceAction as a7, InvoiceDoc as a8, InvoiceFile as a9, OrderStepKey as aA, OrderStepState as aB, Page as aC, PageInfo as aD, PaymentAction as aE, PaymentAttemptResult as aF, PaymentAttemptStatus as aG, PaymentClient as aH, PaymentClientCsp as aI, PaymentConfig as aJ, PaymentFlow as aK, PaymentInfo as aL, PaymentMethod as aM, PaymentMethods as aN, PaymentNextStep as aO, PaymentOption as aP, PaymentOptionKey as aQ, PaymentPoint as aR, PaymentSubmitInput as aS, PaymentVoucher as aT, PendingPayment as aU, PendingPaymentVoucher as aV, PickupOption as aW, Product as aX, ProductAttributeValue as aY, ProductCategory as aZ, ProductConnection as a_, InvoiceFileKind as aa, InvoiceRequest as ab, InvoiceResult as ac, InvoiceStage as ad, InvoiceSummary as ae, InvoicingCapabilities as af, Location as ag, LocationContacts as ah, LocationKind as ai, LocationListParams as aj, LocationPickup as ak, Menu as al, MenuItem as am, Money as an, MoneyRange as ao, NearestLocation as ap, NextAction as aq, NextActionKind as ar, Order as as, OrderLine as at, OrderPickup as au, OrderProblem as av, OrderProgress as aw, OrderProgressStep as ax, OrderSection as ay, OrderStage as az, Article as b, ProductSort as b0, ProductVariant as b1, PromotionAnnouncement as b2, PromotionReward as b3, PromotionTier as b4, PromotionsList as b5, RecommendationPlacement as b6, Refund as b7, Region as b8, RegionFiscalEntry as b9, UnavailableRateProvider as bA, RegionFiscalId as ba, RegionPaymentMethod as bb, RegionPostalCode as bc, RestockSubscriptionInput as bd, RestockSubscriptionResult as be, ReturnRequest as bf, ReturnRequestInput as bg, SEO as bh, Section as bi, SelectedOption as bj, Shipment as bk, ShipmentEvent as bl, ShipmentKind as bm, ShipmentMap as bn, ShipmentStatus as bo, ShipmentsSummary as bp, ShippingRate as bq, Shop as br, ShopBranch as bs, ShopContact as bt, ShopPolicies as bu, StockLevel as bv, StorefrontErrorBody as bw, StorefrontErrorCode as bx, Theme as by, TokenIntrospection as bz, Availability as c, AvailabilityStatus as d, CartBuyer as e, CartBuyerInput as f, CartCost as g, CartDelivery as h, CartDiscountCode as i, CartDiscountLine as j, CartInvoice as k, CartLine as l, CartLineInput as m, CartLineMerchandise as n, CartLineProblem as o, CartLineUpdateInput as p, CartPromotions as q, CartRecommendation as r, CartRecommendations as s, CheckoutInfo as t, CheckoutInput as u, CheckoutPayment as v, CheckoutResult as w, Collection as x, Connection as y, Customer as z };
@@ -426,6 +426,8 @@ type InvoiceRequest = {
426
426
  invoice_use?: string;
427
427
  /** Also save the data to the buyer's account (needs a session). */
428
428
  save?: boolean;
429
+ /** Saved fiscal profile the data comes from (contract 1.9; needs a session; `404` when it is not the buyer's). */
430
+ profile_id?: string;
429
431
  [key: string]: unknown;
430
432
  };
431
433
  type CheckoutInput = {
@@ -525,6 +527,10 @@ type CustomerCapabilities = {
525
527
  unavailable_reason?: 'missing_scope' | (string & {});
526
528
  /** Scopes the token lacks (e.g. `customer:write`) when `unavailable_reason` is `missing_scope`. */
527
529
  missing_scopes?: string[];
530
+ /** Saved fiscal profiles (contract 1.9). Absent on older servers: the section does not exist. */
531
+ fiscal_profiles?: {
532
+ max: number;
533
+ };
528
534
  };
529
535
  /** `GET {gateway}/_token`: what the token in use is and what it can do. Needs no scope. */
530
536
  type TokenIntrospection = {
@@ -688,6 +694,10 @@ type PaymentInfo = {
688
694
  status: 'paid' | 'pending' | 'failed' | 'refunded' | 'partially_refunded' | (string & {});
689
695
  amount: Money;
690
696
  paid_at?: string | null;
697
+ /** Card brand (`visa`, `mastercard`...) when the server knows it. */
698
+ brand?: string | null;
699
+ /** Last four digits of the card when the server knows them. */
700
+ last4?: string | null;
691
701
  };
692
702
  type Refund = {
693
703
  id: string;
@@ -1184,6 +1194,8 @@ type InvoicingCapabilities = {
1184
1194
  identity_documents: string[];
1185
1195
  /** The store can check the data against the tax authority online (informative, never blocks). */
1186
1196
  online_verify: boolean;
1197
+ /** Invoicing runs against a test (sandbox) provider: invoices have no fiscal validity. Absent = production. */
1198
+ test_mode?: boolean;
1187
1199
  };
1188
1200
  /** One regime or invoice use of the region's fiscal catalog. */
1189
1201
  type RegionFiscalEntry = {
@@ -1196,6 +1208,11 @@ type RegionFiscalEntry = {
1196
1208
  allowed_regimes?: string[];
1197
1209
  /** Folded phrases that identify the entry in a document (`catalog_phrases`); without them the label is used. */
1198
1210
  match_phrases?: string[];
1211
+ /**
1212
+ * Invoice uses only (contract 1.9): the regimes this use is SUGGESTED for. Region data, never a rule: the buyer can
1213
+ * change it and `allowed_regimes` still validates.
1214
+ */
1215
+ suggested_for_regimes?: string[];
1199
1216
  };
1200
1217
  /**
1201
1218
  * A document the buyer can upload to prefill their fiscal data, with the rules to read it. Published by the
@@ -1212,6 +1229,11 @@ type IdentityDocumentSpec = {
1212
1229
  obtain_url?: string;
1213
1230
  /** MIME types the document comes in (the SDK reads PDFs). */
1214
1231
  accept: string[];
1232
+ /**
1233
+ * What can be read from a PHOTO of the document (contract 1.9): `qr_only` (the QR: tax id and document id) or
1234
+ * `full`. Absent or `none`: files only.
1235
+ */
1236
+ image_mode?: 'none' | 'qr_only' | 'full';
1215
1237
  max_bytes: number;
1216
1238
  max_pages?: number;
1217
1239
  /** `rules@1` runs the generic engine on `rules`; `plugin:<id>` runs an extractor from `registerIdentityExtractor`. */
@@ -1238,6 +1260,15 @@ type RegionFiscalId = {
1238
1260
  invoice_uses: RegionFiscalEntry[];
1239
1261
  /** Documents the buyer can upload; absent on older servers. */
1240
1262
  documents?: IdentityDocumentSpec[];
1263
+ /**
1264
+ * Person type -> pattern its tax ids follow (contract 1.9), so the SDK tells the type from DATA instead of a function
1265
+ * each store injects. Absent: not derived. See `personTypeFromPatterns` (`@asteby/storefront-react/fiscal`).
1266
+ */
1267
+ person_patterns?: Record<string, string>;
1268
+ /** Name of the pack's optional check algorithm (a warning at most, never a block). */
1269
+ checksum?: string | null;
1270
+ /** The invoice use the organization prefers by default; it wins over `suggested_for_regimes`. */
1271
+ default_invoice_use?: string | null;
1241
1272
  };
1242
1273
  type RegionPaymentMethod = {
1243
1274
  code: string;
@@ -1328,6 +1359,26 @@ type FiscalIdentity = {
1328
1359
  type FiscalIdentityInput = Omit<FiscalIdentity, 'verification' | 'country_code'> & {
1329
1360
  country_code?: string;
1330
1361
  };
1362
+ /**
1363
+ * A saved fiscal profile of the buyer (contract 1.9; up to `capabilities.fiscal_profiles.max`, one is the default).
1364
+ * Personal data: show the tax id masked in lists (`maskTaxId`), never log it.
1365
+ */
1366
+ type FiscalProfile = FiscalIdentity & {
1367
+ id: string;
1368
+ /** Name the buyer gave it ("Personal", "My company"). */
1369
+ label: string;
1370
+ /** Derived by the server from the region's data; `null` when the region defines none. */
1371
+ person_type?: string | null;
1372
+ is_default: boolean;
1373
+ last_used_at?: string | null;
1374
+ created_at: string;
1375
+ updated_at: string;
1376
+ };
1377
+ /** Create or edit a profile. The server derives `person_type` and sets `verification`; the client cannot. */
1378
+ type FiscalProfileInput = Partial<FiscalIdentityInput> & {
1379
+ label?: string;
1380
+ is_default?: boolean;
1381
+ };
1331
1382
  /** `PATCH /customer`. `fiscal: null` deletes the saved fiscal data (ARCO). */
1332
1383
  type CustomerUpdateInput = {
1333
1384
  first_name?: string | null;
@@ -1397,4 +1448,4 @@ type IdentityRulesV1 = {
1397
1448
  fields: IdentityFieldRule[];
1398
1449
  };
1399
1450
 
1400
- export type { IdentityFieldRule as $, Address as A, CustomerCapabilities as B, Cart as C, CustomerIdentifier as D, CustomerPasswordLoginInput as E, CustomerRegisterInput as F, CustomerRegisterResult as G, CustomerResetPasswordInput as H, CustomerSession as I, CustomerSessionInput as J, CustomerSetPasswordInput as K, CustomerUpdateInput as L, CustomerVerifyRegistrationInput as M, DeclineCode as N, DeliveryInput as O, DeliveryMethod as P, DeliveryOptions as Q, Facet as R, FacetValue as S, FiscalDocumentEvidence as T, FiscalDocumentSource as U, FiscalIdentity as V, FiscalIdentityInput as W, FiscalVerification as X, GeoHint as Y, IdentityCapture as Z, IdentityDocumentSpec as _, AddressInput as a, ProductVariant as a$, IdentityRulesV1 as a0, IdentityStrategy as a1, Image as a2, InsufficientStockDetails as a3, InsufficientStockLine as a4, InvoiceAction as a5, InvoiceDoc as a6, InvoiceFile as a7, InvoiceFileKind as a8, InvoiceRequest as a9, Page as aA, PageInfo as aB, PaymentAction as aC, PaymentAttemptResult as aD, PaymentAttemptStatus as aE, PaymentClient as aF, PaymentClientCsp as aG, PaymentConfig as aH, PaymentFlow as aI, PaymentInfo as aJ, PaymentMethod as aK, PaymentMethods as aL, PaymentNextStep as aM, PaymentOption as aN, PaymentOptionKey as aO, PaymentPoint as aP, PaymentSubmitInput as aQ, PaymentVoucher as aR, PendingPayment as aS, PendingPaymentVoucher as aT, PickupOption as aU, Product as aV, ProductAttributeValue as aW, ProductCategory as aX, ProductConnection as aY, ProductOption as aZ, ProductSort as a_, InvoiceResult as aa, InvoiceStage as ab, InvoiceSummary as ac, InvoicingCapabilities as ad, Location as ae, LocationContacts as af, LocationKind as ag, LocationListParams as ah, LocationPickup as ai, Menu as aj, MenuItem as ak, Money as al, MoneyRange as am, NearestLocation as an, NextAction as ao, NextActionKind as ap, Order as aq, OrderLine as ar, OrderPickup as as, OrderProblem as at, OrderProgress as au, OrderProgressStep as av, OrderSection as aw, OrderStage as ax, OrderStepKey as ay, OrderStepState as az, Article as b, PromotionAnnouncement as b0, PromotionReward as b1, PromotionTier as b2, PromotionsList as b3, RecommendationPlacement as b4, Refund as b5, Region as b6, RegionFiscalEntry as b7, RegionFiscalId as b8, RegionPaymentMethod as b9, RegionPostalCode as ba, RestockSubscriptionInput as bb, RestockSubscriptionResult as bc, ReturnRequest as bd, ReturnRequestInput as be, SEO as bf, Section as bg, SelectedOption as bh, Shipment as bi, ShipmentEvent as bj, ShipmentKind as bk, ShipmentMap as bl, ShipmentStatus as bm, ShipmentsSummary as bn, ShippingRate as bo, Shop as bp, ShopBranch as bq, ShopContact as br, ShopPolicies as bs, StockLevel as bt, StorefrontErrorBody as bu, StorefrontErrorCode as bv, Theme as bw, TokenIntrospection as bx, UnavailableRateProvider as by, Availability as c, AvailabilityStatus as d, CartBuyer as e, CartBuyerInput as f, CartCost as g, CartDelivery as h, CartDiscountCode as i, CartDiscountLine as j, CartInvoice as k, CartLine as l, CartLineInput as m, CartLineMerchandise as n, CartLineProblem as o, CartLineUpdateInput as p, CartPromotions as q, CartRecommendation as r, CartRecommendations as s, CheckoutInfo as t, CheckoutInput as u, CheckoutPayment as v, CheckoutResult as w, Collection as x, Connection as y, Customer as z };
1451
+ export type { IdentityCapture as $, Address as A, CustomerCapabilities as B, Cart as C, CustomerIdentifier as D, CustomerPasswordLoginInput as E, CustomerRegisterInput as F, CustomerRegisterResult as G, CustomerResetPasswordInput as H, CustomerSession as I, CustomerSessionInput as J, CustomerSetPasswordInput as K, CustomerUpdateInput as L, CustomerVerifyRegistrationInput as M, DeclineCode as N, DeliveryInput as O, DeliveryMethod as P, DeliveryOptions as Q, Facet as R, FacetValue as S, FiscalDocumentEvidence as T, FiscalDocumentSource as U, FiscalIdentity as V, FiscalIdentityInput as W, FiscalProfile as X, FiscalProfileInput as Y, FiscalVerification as Z, GeoHint as _, AddressInput as a, ProductOption as a$, IdentityDocumentSpec as a0, IdentityFieldRule as a1, IdentityRulesV1 as a2, IdentityStrategy as a3, Image as a4, InsufficientStockDetails as a5, InsufficientStockLine as a6, InvoiceAction as a7, InvoiceDoc as a8, InvoiceFile as a9, OrderStepKey as aA, OrderStepState as aB, Page as aC, PageInfo as aD, PaymentAction as aE, PaymentAttemptResult as aF, PaymentAttemptStatus as aG, PaymentClient as aH, PaymentClientCsp as aI, PaymentConfig as aJ, PaymentFlow as aK, PaymentInfo as aL, PaymentMethod as aM, PaymentMethods as aN, PaymentNextStep as aO, PaymentOption as aP, PaymentOptionKey as aQ, PaymentPoint as aR, PaymentSubmitInput as aS, PaymentVoucher as aT, PendingPayment as aU, PendingPaymentVoucher as aV, PickupOption as aW, Product as aX, ProductAttributeValue as aY, ProductCategory as aZ, ProductConnection as a_, InvoiceFileKind as aa, InvoiceRequest as ab, InvoiceResult as ac, InvoiceStage as ad, InvoiceSummary as ae, InvoicingCapabilities as af, Location as ag, LocationContacts as ah, LocationKind as ai, LocationListParams as aj, LocationPickup as ak, Menu as al, MenuItem as am, Money as an, MoneyRange as ao, NearestLocation as ap, NextAction as aq, NextActionKind as ar, Order as as, OrderLine as at, OrderPickup as au, OrderProblem as av, OrderProgress as aw, OrderProgressStep as ax, OrderSection as ay, OrderStage as az, Article as b, ProductSort as b0, ProductVariant as b1, PromotionAnnouncement as b2, PromotionReward as b3, PromotionTier as b4, PromotionsList as b5, RecommendationPlacement as b6, Refund as b7, Region as b8, RegionFiscalEntry as b9, UnavailableRateProvider as bA, RegionFiscalId as ba, RegionPaymentMethod as bb, RegionPostalCode as bc, RestockSubscriptionInput as bd, RestockSubscriptionResult as be, ReturnRequest as bf, ReturnRequestInput as bg, SEO as bh, Section as bi, SelectedOption as bj, Shipment as bk, ShipmentEvent as bl, ShipmentKind as bm, ShipmentMap as bn, ShipmentStatus as bo, ShipmentsSummary as bp, ShippingRate as bq, Shop as br, ShopBranch as bs, ShopContact as bt, ShopPolicies as bu, StockLevel as bv, StorefrontErrorBody as bw, StorefrontErrorCode as bx, Theme as by, TokenIntrospection as bz, Availability as c, AvailabilityStatus as d, CartBuyer as e, CartBuyerInput as f, CartCost as g, CartDelivery as h, CartDiscountCode as i, CartDiscountLine as j, CartInvoice as k, CartLine as l, CartLineInput as m, CartLineMerchandise as n, CartLineProblem as o, CartLineUpdateInput as p, CartPromotions as q, CartRecommendation as r, CartRecommendations as s, CheckoutInfo as t, CheckoutInput as u, CheckoutPayment as v, CheckoutResult as w, Collection as x, Connection as y, Customer as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteby/storefront",
3
- "version": "0.15.0",
3
+ "version": "0.16.1",
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": {