platform-types 1.10.806 → 1.10.807

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/cjs/store.js CHANGED
@@ -187,6 +187,8 @@ exports.STORE_PATCH_ERROR_CODES = [
187
187
  'PRICE_LIST_NOT_FOUND',
188
188
  'DELIVERY_FEE_INVALID',
189
189
  'WHOLESALE_LIST_REQUIRED',
190
+ 'DATA_FISCAL_URL_INVALID',
191
+ 'STORE_PUBLIC_HOST_MISSING',
190
192
  'FORBIDDEN',
191
193
  'STORE_NOT_FOUND',
192
194
  ];
package/dist/store.d.ts CHANGED
@@ -528,8 +528,8 @@ declare global {
528
528
  /** Unix ms — when the retired label's redirect ends (its reservation end). */
529
529
  redirectUntil?: number;
530
530
  }
531
- /** An identity or withdrawal fact {@link StorePublicLegal} could not resolve; the storefront warns or degrades on it. */
532
- type StorePublicLegalMissing = 'razonSocial' | 'fiscalAddress' | 'email' | 'phone' | 'withdrawalChannel';
531
+ /** An identity, withdrawal or Data Fiscal fact {@link StorePublicLegal} could not resolve; the storefront warns or degrades on it. */
532
+ type StorePublicLegalMissing = 'razonSocial' | 'fiscalAddress' | 'email' | 'phone' | 'withdrawalChannel' | 'dataFiscal';
533
533
  /**
534
534
  * The consumer-law facts a storefront renders: the merchant identity disclosure, the
535
535
  * Botón de Arrepentimiento and the privacy-text variants. Built by the api at read time
@@ -572,6 +572,16 @@ declare global {
572
572
  /** `['mercadopago']` while any `paymentMethods` row is `storefront: 'mp-checkout-pro'`, whatever its audience rule; else `[]`. */
573
573
  onlinePayment: Array<'mercadopago'>;
574
574
  };
575
+ /**
576
+ * The shop's Formulario 960/D (Data Fiscal) link, from `integrations.afip.dataFiscal`.
577
+ * Absent when none is recorded, and `missing` then names `dataFiscal`.
578
+ * `matchesCurrentDomain` is `false` once the shop's public host is no longer the one the
579
+ * link was recorded for (RG 1415 art. 25 asks for a new form after a domain change).
580
+ */
581
+ dataFiscal?: {
582
+ url: string;
583
+ matchesCurrentDomain: boolean;
584
+ };
575
585
  missing: StorePublicLegalMissing[];
576
586
  }
577
587
  interface Store {
@@ -1780,6 +1790,21 @@ declare global {
1780
1790
  * clears it back to the default.
1781
1791
  */
1782
1792
  freight?: AfipFreightFiscal;
1793
+ /**
1794
+ * The shop's Formulario 960/D (Data Fiscal) link (RG 1415 art. 25). ADMIN-tier on
1795
+ * `PATCH /store`, which takes `{ url }` only: `url` is `https:` on an ARCA host
1796
+ * (`afip.gob.ar` or `arca.gob.ar`, subdomains included), and `domain` is STAMPED by the
1797
+ * api with the shop's public host at write time, never taken from the body. `null`
1798
+ * clears it. Published as `StorePublicLegal.dataFiscal`.
1799
+ */
1800
+ dataFiscal?: AfipDataFiscal;
1801
+ }
1802
+ /** {@link Afip.dataFiscal}: the link as recorded and the public host it was recorded for. */
1803
+ interface AfipDataFiscal {
1804
+ /** `https:` on `afip.gob.ar` / `arca.gob.ar` or a subdomain, normalised by the URL parser. */
1805
+ url: string;
1806
+ /** The shop's canonical public host when the link was written — bare host, no scheme. */
1807
+ domain: string;
1783
1808
  }
1784
1809
  /**
1785
1810
  * Write shape for the `afip` key of `PATCH /store`'s body. The wire accepts an
@@ -1795,6 +1820,10 @@ declare global {
1795
1820
  iibbJurisdictions?: IibbJurisdictionConfig[] | null;
1796
1821
  actividades?: number[] | null;
1797
1822
  freight?: AfipFreightFiscal | null;
1823
+ /** The link alone — the api stamps `domain` with the shop's public host and refuses one sent. */
1824
+ dataFiscal?: {
1825
+ url: string;
1826
+ } | null;
1798
1827
  }
1799
1828
  /**
1800
1829
  * Write shape for the `config` key of `PATCH /store`'s body. Two things the
@@ -2591,5 +2620,5 @@ export type StoreModuleRefusalBody = {
2591
2620
  * checks, the display-currency lock, the storefront fence) are not listed
2592
2621
  * either. Cross-cutting refusals: check `GATING_ERROR_CODES` as well.
2593
2622
  */
2594
- export declare const STORE_PATCH_ERROR_CODES: readonly ["STORE_CONFIG_FORBIDDEN", "STORE_ECOMMERCE_FORBIDDEN", "STORE_FISCAL_FIELD_FORBIDDEN", "STORE_JURISDICTION_FORBIDDEN", "AFIP_RELACION_FLAG_FORBIDDEN", "FX_TABLE_FORBIDDEN", "FX_AUTO_UPDATE_FORBIDDEN", "FIELD_NOT_WRITABLE_HERE", "AFIP_POINT_OF_SALE_NOT_CLEARABLE", "CURRENCY_CATALOG_ID_UNKNOWN", "ARS_RATE_MUST_BE_ONE", "CURRENCY_RATE_ABOVE_CEILING", "FX_CATALOG_ID_UNKNOWN", "FX_SOURCE_ID_UNKNOWN", "DISPLAY_CURRENCY_NOT_INVOICEABLE", "PRODUCT_CURRENCY_NOT_INVOICEABLE", "PRICE_LIST_NOT_FOUND", "DELIVERY_FEE_INVALID", "WHOLESALE_LIST_REQUIRED", "FORBIDDEN", "STORE_NOT_FOUND"];
2623
+ export declare const STORE_PATCH_ERROR_CODES: readonly ["STORE_CONFIG_FORBIDDEN", "STORE_ECOMMERCE_FORBIDDEN", "STORE_FISCAL_FIELD_FORBIDDEN", "STORE_JURISDICTION_FORBIDDEN", "AFIP_RELACION_FLAG_FORBIDDEN", "FX_TABLE_FORBIDDEN", "FX_AUTO_UPDATE_FORBIDDEN", "FIELD_NOT_WRITABLE_HERE", "AFIP_POINT_OF_SALE_NOT_CLEARABLE", "CURRENCY_CATALOG_ID_UNKNOWN", "ARS_RATE_MUST_BE_ONE", "CURRENCY_RATE_ABOVE_CEILING", "FX_CATALOG_ID_UNKNOWN", "FX_SOURCE_ID_UNKNOWN", "DISPLAY_CURRENCY_NOT_INVOICEABLE", "PRODUCT_CURRENCY_NOT_INVOICEABLE", "PRICE_LIST_NOT_FOUND", "DELIVERY_FEE_INVALID", "WHOLESALE_LIST_REQUIRED", "DATA_FISCAL_URL_INVALID", "STORE_PUBLIC_HOST_MISSING", "FORBIDDEN", "STORE_NOT_FOUND"];
2595
2624
  export type StorePatchErrorCode = (typeof STORE_PATCH_ERROR_CODES)[number];
package/dist/store.js CHANGED
@@ -182,6 +182,8 @@ export const STORE_PATCH_ERROR_CODES = [
182
182
  'PRICE_LIST_NOT_FOUND',
183
183
  'DELIVERY_FEE_INVALID',
184
184
  'WHOLESALE_LIST_REQUIRED',
185
+ 'DATA_FISCAL_URL_INVALID',
186
+ 'STORE_PUBLIC_HOST_MISSING',
185
187
  'FORBIDDEN',
186
188
  'STORE_NOT_FOUND',
187
189
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.806",
3
+ "version": "1.10.807",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",