sinfactura-types 1.5.6 → 1.6.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.
@@ -15,12 +15,6 @@ declare global {
15
15
  catalogId: string;
16
16
  value: number;
17
17
  order?: number;
18
- autoUpdate?: {
19
- sourceId: string;
20
- strategy: "overwrite" | "overwrite-if-stale" | "notify-only";
21
- lastUpdatedAt?: number;
22
- lastValue?: number;
23
- };
24
18
  }
25
19
  interface StoreCurrencySubscriptionView extends StoreCurrencySubscription {
26
20
  isoCode: string;
package/dist/store.d.ts CHANGED
@@ -148,19 +148,8 @@ declare global {
148
148
  products?: number;
149
149
  users?: number;
150
150
  };
151
- /**
152
- * @deprecated api#890 — use `store.integrations.mercadopago`. This
153
- * top-level field is dual-written for one release window and removed
154
- * in the api#890 cleanup PR.
155
- */
156
- mercadopago?: Mercadopago;
157
- /**
158
- * @deprecated api#890 — use `store.integrations.afip`. This top-level
159
- * field is dual-written for one release window and removed in the
160
- * api#890 cleanup PR.
161
- */
162
- afip: Afip;
163
151
  integrations?: StoreIntegrations;
152
+ fxAutoUpdate?: StoreFxAutoUpdate;
164
153
  appVersion: number;
165
154
  fiscalConditions: FiscalCondition[];
166
155
  ivaTypes: Method[];
@@ -173,6 +162,18 @@ declare global {
173
162
  afip?: Afip;
174
163
  mercadopago?: Mercadopago;
175
164
  }
165
+ type FxAutoUpdateStrategy = "overwrite" | "overwrite-if-stale" | "notify-only";
166
+ interface FxAutoUpdateBinding {
167
+ catalogId: string;
168
+ sourceId: string;
169
+ strategy: FxAutoUpdateStrategy;
170
+ lastUpdatedAt?: number;
171
+ lastValue?: number;
172
+ }
173
+ interface StoreFxAutoUpdate {
174
+ enabled: boolean;
175
+ bindings: FxAutoUpdateBinding[];
176
+ }
176
177
  interface Mercadopago {
177
178
  userId?: string;
178
179
  accessToken?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.5.6",
3
+ "version": "1.6.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",