@asteby/storefront 0.14.0 → 0.15.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.
- package/dist/cli.js +7 -1
- package/dist/fiscal-document.d.cts +2 -2
- package/dist/fiscal-document.d.ts +2 -2
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/mock.d.cts +1 -1
- package/dist/mock.d.ts +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/dist/{types-BeTemDg6.d.ts → types-CuamKhDe.d.ts} +10 -1
- package/dist/{types-BuKb-zbi.d.cts → types-cwXbVCwe.d.cts} +10 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -323,6 +323,12 @@ function createStorefrontClient(config) {
|
|
|
323
323
|
* has no region configured.
|
|
324
324
|
*/
|
|
325
325
|
region: (options) => getOrNull("/storefront/region", void 0, options),
|
|
326
|
+
/**
|
|
327
|
+
* State and municipality of a postal code from the region pack (`null` when the code is not in its catalog, or the
|
|
328
|
+
* organization has no region pack). The source of `AddressFields.lookupPostalCode`: the state it fills is the one
|
|
329
|
+
* the server checks the address against.
|
|
330
|
+
*/
|
|
331
|
+
postalCode: (zip, options) => getOrNull("/storefront/region/postal-code", { zip: zip.trim() }, options),
|
|
326
332
|
products: {
|
|
327
333
|
list: (params, options) => get("/storefront/products", productListQuery(params), options),
|
|
328
334
|
/** `null` when the product does not exist or is unpublished. */
|
|
@@ -526,7 +532,7 @@ function repairPath(connectionName) {
|
|
|
526
532
|
import { chmodSync, closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, renameSync, statSync, unlinkSync, writeSync } from "fs";
|
|
527
533
|
import { dirname, join, resolve } from "path";
|
|
528
534
|
import { hostname } from "os";
|
|
529
|
-
var SDK_VERSION = true ? "0.
|
|
535
|
+
var SDK_VERSION = true ? "0.15.0" : "dev";
|
|
530
536
|
function writeFileAtomic(file, content, mode = 384) {
|
|
531
537
|
const dir = dirname(file);
|
|
532
538
|
mkdirSync(dir, { recursive: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as FiscalDocumentSource, b7 as RegionFiscalEntry, _ as IdentityDocumentSpec, T as FiscalDocumentEvidence, b8 as RegionFiscalId, a0 as IdentityRulesV1 } from './types-
|
|
2
|
-
export { Z as IdentityCapture, $ as IdentityFieldRule, a1 as IdentityStrategy } from './types-
|
|
1
|
+
import { U as FiscalDocumentSource, b7 as RegionFiscalEntry, _ as IdentityDocumentSpec, T as FiscalDocumentEvidence, b8 as RegionFiscalId, a0 as IdentityRulesV1 } from './types-cwXbVCwe.cjs';
|
|
2
|
+
export { Z as IdentityCapture, $ as IdentityFieldRule, a1 as IdentityStrategy } from './types-cwXbVCwe.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 { U as FiscalDocumentSource, b7 as RegionFiscalEntry, _ as IdentityDocumentSpec, T as FiscalDocumentEvidence, b8 as RegionFiscalId, a0 as IdentityRulesV1 } from './types-
|
|
2
|
-
export { Z as IdentityCapture, $ as IdentityFieldRule, a1 as IdentityStrategy } from './types-
|
|
1
|
+
import { U as FiscalDocumentSource, b7 as RegionFiscalEntry, _ as IdentityDocumentSpec, T as FiscalDocumentEvidence, b8 as RegionFiscalId, a0 as IdentityRulesV1 } from './types-CuamKhDe.js';
|
|
2
|
+
export { Z as IdentityCapture, $ as IdentityFieldRule, a1 as IdentityStrategy } from './types-CuamKhDe.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.cjs
CHANGED
|
@@ -355,6 +355,12 @@ function createStorefrontClient(config) {
|
|
|
355
355
|
* has no region configured.
|
|
356
356
|
*/
|
|
357
357
|
region: (options) => getOrNull("/storefront/region", void 0, options),
|
|
358
|
+
/**
|
|
359
|
+
* State and municipality of a postal code from the region pack (`null` when the code is not in its catalog, or the
|
|
360
|
+
* organization has no region pack). The source of `AddressFields.lookupPostalCode`: the state it fills is the one
|
|
361
|
+
* the server checks the address against.
|
|
362
|
+
*/
|
|
363
|
+
postalCode: (zip, options) => getOrNull("/storefront/region/postal-code", { zip: zip.trim() }, options),
|
|
358
364
|
products: {
|
|
359
365
|
list: (params, options) => get("/storefront/products", productListQuery(params), options),
|
|
360
366
|
/** `null` when the product does not exist or is unpublished. */
|