sinfactura-types 1.6.85 → 1.7.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/cjs/index.js CHANGED
@@ -42,7 +42,6 @@ __exportStar(require("./pricing"), exports);
42
42
  __exportStar(require("./print"), exports);
43
43
  __exportStar(require("./product"), exports);
44
44
  __exportStar(require("./return"), exports);
45
- __exportStar(require("./seeder"), exports);
46
45
  __exportStar(require("./serviceOrder"), exports);
47
46
  __exportStar(require("./serviceTemplate"), exports);
48
47
  __exportStar(require("./stock"), exports);
package/dist/index.d.ts CHANGED
@@ -26,7 +26,6 @@ export * from "./pricing";
26
26
  export * from "./print";
27
27
  export * from "./product";
28
28
  export * from "./return";
29
- export * from "./seeder";
30
29
  export * from "./serviceOrder";
31
30
  export * from "./serviceTemplate";
32
31
  export * from "./stock";
package/dist/index.js CHANGED
@@ -26,7 +26,6 @@ export * from "./pricing";
26
26
  export * from "./print";
27
27
  export * from "./product";
28
28
  export * from "./return";
29
- export * from "./seeder";
30
29
  export * from "./serviceOrder";
31
30
  export * from "./serviceTemplate";
32
31
  export * from "./stock";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.85",
3
+ "version": "1.7.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -1,18 +0,0 @@
1
- "use strict";
2
- // AI Tenant Seeder types (sinfactura/app#1054; sinfactura/api#1073-#1082, #1758, #1759).
3
- //
4
- // `SeedProfile` / `SeedJobHandle` / `SeedSampleCard` / `SeedProgressEvent` / `SeedPhase`
5
- // mirror the ALREADY-SHIPPED FE contract verbatim — `app/src/features/seeder/validation/
6
- // seederSchema.ts`, `app/src/app/slices/seederProgress.ts`, `app/src/features/seeder/
7
- // constants.ts`. FE shipped first (scaffold PRs #1940/#1942/#1952/#1943), so these are the
8
- // frozen ground truth; the original research blueprint's shapes are superseded where they
9
- // differ. See the 2026-07-14 audit decision recorded on app#1054.
10
- //
11
- // Two distinct HTTP entry points share the pipeline (api#1079 start-job lib, imported by
12
- // both, not Lambda-to-Lambda invoke):
13
- // - `POST /seeder/run` (api#1758, tenant wizard, adminToken) sends `SeedJobStartRequest`.
14
- // - `POST /platform/operations` mode `seed-ai-tenant` (api#1079, MANAGER SuperOp,
15
- // app#1464) sends `SeedAiTenantOpRequest` — coarser params; the handler expands
16
- // `scale` into `SeedProfile.targetCounts` and constructs the rest of the profile
17
- // server-side (the SuperOp caller doesn't know the tenant's brands/categories/etc).
18
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/seeder.d.ts DELETED
@@ -1,101 +0,0 @@
1
- declare global {
2
- type SeedVertical = 'ferreteria' | 'kiosco' | 'libreria' | 'farmacia' | 'gastronomia' | 'textil' | 'tecnologia' | 'panaderia' | 'agropecuario' | 'repuestos';
3
- type SeedScale = 'demo' | 'full';
4
- interface SeedProfile {
5
- vertical: SeedVertical;
6
- storeName: string;
7
- brands: string[];
8
- categories: string[];
9
- suppliers: string[];
10
- productHints: string[];
11
- targetCounts: {
12
- products: number;
13
- customers: number;
14
- orders: number;
15
- invoices: number;
16
- };
17
- locale: string;
18
- }
19
- interface BusinessDescription {
20
- vertical: SeedVertical | null;
21
- rawText: string;
22
- location?: string;
23
- }
24
- interface SeedJobStartRequest {
25
- profile: SeedProfile;
26
- }
27
- interface SeedSummary {
28
- products: number;
29
- customers: number;
30
- orders: number;
31
- invoices: number;
32
- }
33
- interface SeedCommitResult {
34
- committed: number;
35
- }
36
- interface SeedAiTenantOpRequest {
37
- storeId: string;
38
- vertical: SeedVertical;
39
- scale: SeedScale;
40
- overwrite?: boolean;
41
- }
42
- interface SeedJobHandle {
43
- jobId: string;
44
- createdAt: string;
45
- status: 'queued' | 'running' | 'done' | 'cancelled' | 'error';
46
- }
47
- interface SeedJobState extends SeedJobHandle {
48
- phase: SeedPhase;
49
- completed: number;
50
- total: number;
51
- costUsd?: number;
52
- /**
53
- * `true` once the drafts have actually been copied into the live partitions.
54
- *
55
- * `status: 'done'` alone CANNOT tell you this — it means "generation finished",
56
- * and it keeps saying that after the commit too. Without this flag the FE can't
57
- * tell a job that is READY to commit from one already committed, so the wizard
58
- * offers "Confirmar" a second time and the tenant earns a 409.
59
- *
60
- * Derived server-side from an internal marker; the timestamp itself never ships.
61
- */
62
- committed?: boolean;
63
- /** Preview cards streamed so far. EMPTY until the stage workers write `SEED_DRAFT#` rows (api#1080). */
64
- samples?: SeedSampleCard[];
65
- }
66
- interface SeederJob {
67
- storeId: string;
68
- jobId: string;
69
- profile: SeedProfile;
70
- status: SeedJobHandle['status'];
71
- executionArn?: string;
72
- phase?: SeedPhase;
73
- completed?: number;
74
- total?: number;
75
- costUsd?: number;
76
- createdAt: number;
77
- updatedAt: number;
78
- ttl: number;
79
- }
80
- type SeedPhase = 'extracting' | 'planning' | 'generating' | 'streaming' | 'committing' | 'done' | 'error';
81
- interface SeedSampleCard {
82
- kind: 'product' | 'customer' | 'order' | 'invoice' | 'brand' | 'category' | 'supplier';
83
- id: string;
84
- title: string;
85
- subtitle?: string;
86
- imageUrl?: string;
87
- priceArs?: number;
88
- }
89
- interface SeedProgressEvent {
90
- jobId: string;
91
- phase: SeedPhase;
92
- currentLabel?: string;
93
- completed: number;
94
- total: number;
95
- etaMs?: number;
96
- sample?: SeedSampleCard;
97
- error?: string;
98
- summary?: SeedSummary;
99
- }
100
- }
101
- export {};
package/dist/seeder.js DELETED
@@ -1,17 +0,0 @@
1
- // AI Tenant Seeder types (sinfactura/app#1054; sinfactura/api#1073-#1082, #1758, #1759).
2
- //
3
- // `SeedProfile` / `SeedJobHandle` / `SeedSampleCard` / `SeedProgressEvent` / `SeedPhase`
4
- // mirror the ALREADY-SHIPPED FE contract verbatim — `app/src/features/seeder/validation/
5
- // seederSchema.ts`, `app/src/app/slices/seederProgress.ts`, `app/src/features/seeder/
6
- // constants.ts`. FE shipped first (scaffold PRs #1940/#1942/#1952/#1943), so these are the
7
- // frozen ground truth; the original research blueprint's shapes are superseded where they
8
- // differ. See the 2026-07-14 audit decision recorded on app#1054.
9
- //
10
- // Two distinct HTTP entry points share the pipeline (api#1079 start-job lib, imported by
11
- // both, not Lambda-to-Lambda invoke):
12
- // - `POST /seeder/run` (api#1758, tenant wizard, adminToken) sends `SeedJobStartRequest`.
13
- // - `POST /platform/operations` mode `seed-ai-tenant` (api#1079, MANAGER SuperOp,
14
- // app#1464) sends `SeedAiTenantOpRequest` — coarser params; the handler expands
15
- // `scale` into `SeedProfile.targetCounts` and constructs the rest of the profile
16
- // server-side (the SuperOp caller doesn't know the tenant's brands/categories/etc).
17
- export {};