@fiado/type-kit 3.588.0 → 3.589.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.
|
@@ -118,6 +118,22 @@ describe('respuestas de la revisión', () => {
|
|
|
118
118
|
expect(org.counts.seen).toBe(10);
|
|
119
119
|
expect(catalog.storesPending).toBe(0);
|
|
120
120
|
});
|
|
121
|
+
|
|
122
|
+
it('GetCatalogReconciliationResponse admite MOVEMENTS con su ventana', () => {
|
|
123
|
+
const movements: GetCatalogReconciliationResponse = {
|
|
124
|
+
runId: 'run-m',
|
|
125
|
+
retailerId: 'r-1',
|
|
126
|
+
entity: ReconciliationEntityEnum.MOVEMENTS,
|
|
127
|
+
status: ReconciliationRunStatusEnum.RUNNING,
|
|
128
|
+
trigger: ReconciliationTriggerEnum.DAILY,
|
|
129
|
+
startedAt: '2026-10-25T10:00:00.000Z',
|
|
130
|
+
pagesProcessed: 1,
|
|
131
|
+
movementsFrom: '2026-10-24T00:00:00.000Z',
|
|
132
|
+
movementsTo: '2026-10-25T00:00:00.000Z',
|
|
133
|
+
counts: { seen: 0, created: 0, updated: 0, deactivated: 0, reactivated: 0, skipped: 0 },
|
|
134
|
+
};
|
|
135
|
+
expect(movements.movementsTo).toBe('2026-10-25T00:00:00.000Z');
|
|
136
|
+
});
|
|
121
137
|
});
|
|
122
138
|
|
|
123
139
|
describe('revisión con excludeExtraneousValues', () => {
|
|
@@ -20,7 +20,7 @@ export interface GetOrgReconciliationResponse {
|
|
|
20
20
|
export interface GetCatalogReconciliationResponse {
|
|
21
21
|
runId: string;
|
|
22
22
|
retailerId: string;
|
|
23
|
-
entity: ReconciliationEntityEnum.CATALOG | ReconciliationEntityEnum.INVENTORY;
|
|
23
|
+
entity: ReconciliationEntityEnum.CATALOG | ReconciliationEntityEnum.INVENTORY | ReconciliationEntityEnum.MOVEMENTS;
|
|
24
24
|
status: ReconciliationRunStatusEnum;
|
|
25
25
|
trigger: ReconciliationTriggerEnum;
|
|
26
26
|
triggeredBy?: string;
|
|
@@ -31,5 +31,9 @@ export interface GetCatalogReconciliationResponse {
|
|
|
31
31
|
storeId?: string;
|
|
32
32
|
/** Tiendas de inventario que faltan por cerrar. */
|
|
33
33
|
storesPending?: number;
|
|
34
|
+
/** Inicio ISO de la ventana revisada en movimientos. */
|
|
35
|
+
movementsFrom?: string;
|
|
36
|
+
/** Fin ISO de la ventana revisada en movimientos. */
|
|
37
|
+
movementsTo?: string;
|
|
34
38
|
counts: ReconciliationRunCounts;
|
|
35
39
|
}
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export interface GetOrgReconciliationResponse {
|
|
|
22
22
|
export interface GetCatalogReconciliationResponse {
|
|
23
23
|
runId: string;
|
|
24
24
|
retailerId: string;
|
|
25
|
-
entity: ReconciliationEntityEnum.CATALOG | ReconciliationEntityEnum.INVENTORY;
|
|
25
|
+
entity: ReconciliationEntityEnum.CATALOG | ReconciliationEntityEnum.INVENTORY | ReconciliationEntityEnum.MOVEMENTS;
|
|
26
26
|
status: ReconciliationRunStatusEnum;
|
|
27
27
|
trigger: ReconciliationTriggerEnum;
|
|
28
28
|
triggeredBy?: string;
|
|
@@ -33,5 +33,9 @@ export interface GetCatalogReconciliationResponse {
|
|
|
33
33
|
storeId?: string;
|
|
34
34
|
/** Tiendas de inventario que faltan por cerrar. */
|
|
35
35
|
storesPending?: number;
|
|
36
|
+
/** Inicio ISO de la ventana revisada en movimientos. */
|
|
37
|
+
movementsFrom?: string;
|
|
38
|
+
/** Fin ISO de la ventana revisada en movimientos. */
|
|
39
|
+
movementsTo?: string;
|
|
36
40
|
counts: ReconciliationRunCounts;
|
|
37
41
|
}
|