@happyvertical/smrt-manufacturing 0.57.34 → 0.57.36

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RoutingStep.d.ts","sourceRoot":"","sources":["../../src/models/RoutingStep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAGL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAKlC;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBASa,WAAY,SAAQ,UAAU;IACzC,8DAA8D;IAE9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;;OAGG;IAEH,KAAK,EAAE,MAAM,CAAM;IAEnB,6FAA6F;IAE7F,WAAW,EAAE,MAAM,CAAM;IAEzB,+DAA+D;IAE/D,QAAQ,EAAE,MAAM,CAAK;IAErB;;;OAGG;IAEH,gBAAgB,EAAE,MAAM,CAAO;IAE/B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAM;gBAEP,OAAO,GAAE,kBAAuB;CAW7C"}
1
+ {"version":3,"file":"RoutingStep.d.ts","sourceRoot":"","sources":["../../src/models/RoutingStep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAGL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAKlC;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBASa,WAAY,SAAQ,UAAU;IACzC,8DAA8D;IAE9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;;OAGG;IAGH,KAAK,EAAE,MAAM,CAAM;IAEnB,6FAA6F;IAG7F,WAAW,EAAE,MAAM,CAAM;IAEzB,+DAA+D;IAK/D,QAAQ,EAAE,MAAM,CAAK;IAErB;;;OAGG;IAKH,gBAAgB,EAAE,MAAM,CAAO;IAE/B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAM;gBAEP,OAAO,GAAE,kBAAuB;CAW7C"}
@@ -0,0 +1,279 @@
1
+ /**
2
+ * Declared recipes for smrt-manufacturing (#4437): user-facing units of
3
+ * functionality an app or agent can pick instead of the whole package.
4
+ * The scanner reads these statics into the `recipes` array of `manifest.json`
5
+ * and `smrt-knowledge.json`; nothing here runs at that point.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ import { SmrtRecipe } from '@happyvertical/smrt-core';
10
+ import { Assembly } from './models/Assembly.js';
11
+ import { BillOfMaterials } from './models/BillOfMaterials.js';
12
+ import { BomLine } from './models/BomLine.js';
13
+ import { Operation } from './models/Operation.js';
14
+ import { ProductionRun } from './models/ProductionRun.js';
15
+ import { ProductionRunCompletion } from './models/ProductionRunCompletion.js';
16
+ import { RoutingStep } from './models/RoutingStep.js';
17
+ /** Assemblies: Define what you make, what goes into it and the steps to make it. */
18
+ export declare class AssembliesRecipe extends SmrtRecipe {
19
+ static id: string;
20
+ static help: string;
21
+ static label: string;
22
+ static summary: string;
23
+ static synonyms: string[];
24
+ static section: {
25
+ id: string;
26
+ label: string;
27
+ icon: string;
28
+ description: string;
29
+ };
30
+ static models: (typeof Operation | typeof Assembly | typeof BomLine | typeof BillOfMaterials | typeof RoutingStep)[];
31
+ static nav: ({
32
+ label: string;
33
+ model: typeof Assembly;
34
+ icon: string;
35
+ description: string;
36
+ noun: string;
37
+ } | {
38
+ label: string;
39
+ model: typeof BillOfMaterials;
40
+ icon: string;
41
+ description: string;
42
+ noun: string;
43
+ } | {
44
+ label: string;
45
+ model: typeof Operation;
46
+ icon: string;
47
+ description: string;
48
+ noun?: undefined;
49
+ })[];
50
+ static requiresAny: string[][];
51
+ static options: {
52
+ readonly Assembly: {
53
+ readonly fields: {
54
+ readonly name: {
55
+ readonly order: 1;
56
+ };
57
+ readonly partReference: {
58
+ readonly order: 2;
59
+ };
60
+ readonly description: {
61
+ readonly order: 3;
62
+ };
63
+ readonly price: {
64
+ readonly order: 4;
65
+ };
66
+ readonly estimatedLabourMinutes: {
67
+ readonly label: "Minutes to make one";
68
+ readonly order: 5;
69
+ };
70
+ readonly defaultOperationId: {
71
+ readonly label: "Usual operation";
72
+ readonly order: 6;
73
+ };
74
+ readonly tenantId: {
75
+ readonly visibility: "hidden";
76
+ };
77
+ readonly productType: {
78
+ readonly visibility: "hidden";
79
+ };
80
+ readonly category: {
81
+ readonly visibility: "advanced";
82
+ };
83
+ readonly manufacturer: {
84
+ readonly visibility: "hidden";
85
+ };
86
+ readonly model: {
87
+ readonly visibility: "hidden";
88
+ };
89
+ readonly inStock: {
90
+ readonly visibility: "hidden";
91
+ readonly default: true;
92
+ };
93
+ readonly specifications: {
94
+ readonly visibility: "hidden";
95
+ };
96
+ readonly tags: {
97
+ readonly visibility: "advanced";
98
+ };
99
+ readonly defaultSalesTaxCodeId: {
100
+ readonly visibility: "hidden";
101
+ };
102
+ readonly defaultPurchaseTaxCodeId: {
103
+ readonly visibility: "hidden";
104
+ };
105
+ };
106
+ };
107
+ readonly BillOfMaterials: {
108
+ readonly fields: {
109
+ readonly productId: {
110
+ readonly label: "Assembly";
111
+ readonly order: 1;
112
+ };
113
+ readonly version: {
114
+ readonly order: 2;
115
+ };
116
+ readonly status: {
117
+ readonly order: 3;
118
+ };
119
+ readonly effectiveDate: {
120
+ readonly order: 4;
121
+ };
122
+ readonly notes: {
123
+ readonly order: 5;
124
+ };
125
+ readonly tenantId: {
126
+ readonly visibility: "hidden";
127
+ };
128
+ readonly currency: {
129
+ readonly visibility: "advanced";
130
+ };
131
+ };
132
+ };
133
+ readonly BomLine: {
134
+ readonly fields: {
135
+ readonly bomId: {
136
+ readonly label: "Bill of materials";
137
+ readonly order: 1;
138
+ };
139
+ readonly componentSkuId: {
140
+ readonly label: "Part";
141
+ readonly order: 2;
142
+ };
143
+ readonly qtyPerUnit: {
144
+ readonly label: "Amount per unit";
145
+ readonly order: 3;
146
+ };
147
+ readonly uom: {
148
+ readonly label: "Unit of measure";
149
+ readonly order: 4;
150
+ };
151
+ readonly wastePercent: {
152
+ readonly visibility: "advanced";
153
+ };
154
+ readonly notes: {
155
+ readonly visibility: "advanced";
156
+ };
157
+ readonly tenantId: {
158
+ readonly visibility: "hidden";
159
+ };
160
+ };
161
+ };
162
+ readonly Operation: {
163
+ readonly fields: {
164
+ readonly name: {
165
+ readonly order: 1;
166
+ };
167
+ readonly code: {
168
+ readonly order: 2;
169
+ };
170
+ readonly category: {
171
+ readonly order: 3;
172
+ };
173
+ readonly isActive: {
174
+ readonly visibility: "advanced";
175
+ };
176
+ readonly requiredQualificationId: {
177
+ readonly visibility: "advanced";
178
+ };
179
+ readonly tenantId: {
180
+ readonly visibility: "hidden";
181
+ };
182
+ };
183
+ };
184
+ readonly RoutingStep: {
185
+ readonly fields: {
186
+ readonly bomId: {
187
+ readonly label: "Bill of materials";
188
+ readonly order: 1;
189
+ };
190
+ readonly operationId: {
191
+ readonly label: "Operation";
192
+ readonly order: 2;
193
+ };
194
+ readonly sequence: {
195
+ readonly label: "Step number";
196
+ readonly order: 3;
197
+ };
198
+ readonly estimatedMinutes: {
199
+ readonly order: 4;
200
+ };
201
+ readonly notes: {
202
+ readonly visibility: "advanced";
203
+ };
204
+ readonly tenantId: {
205
+ readonly visibility: "hidden";
206
+ };
207
+ };
208
+ };
209
+ };
210
+ }
211
+ /** Production: Plan how many to make, record what came out and see each run through to done. */
212
+ export declare class ProductionRecipe extends SmrtRecipe {
213
+ static id: string;
214
+ static help: string;
215
+ static label: string;
216
+ static summary: string;
217
+ static synonyms: string[];
218
+ static section: {
219
+ id: string;
220
+ label: string;
221
+ icon: string;
222
+ description: string;
223
+ };
224
+ static models: (typeof ProductionRun | typeof ProductionRunCompletion)[];
225
+ static nav: {
226
+ label: string;
227
+ model: typeof ProductionRun;
228
+ icon: string;
229
+ description: string;
230
+ noun: string;
231
+ }[];
232
+ static requires: string[];
233
+ static options: {
234
+ readonly ProductionRun: {
235
+ readonly fields: {
236
+ readonly bomId: {
237
+ readonly label: "Bill of materials";
238
+ readonly order: 1;
239
+ };
240
+ readonly targetQty: {
241
+ readonly label: "How many to make";
242
+ readonly order: 2;
243
+ };
244
+ readonly completedQty: {
245
+ readonly label: "How many made so far";
246
+ readonly locked: true;
247
+ readonly order: 3;
248
+ };
249
+ readonly status: {
250
+ readonly locked: true;
251
+ readonly order: 4;
252
+ };
253
+ readonly tenantId: {
254
+ readonly visibility: "hidden";
255
+ };
256
+ };
257
+ };
258
+ readonly ProductionRunCompletion: {
259
+ readonly fields: {
260
+ readonly runId: {
261
+ readonly label: "Production run";
262
+ readonly order: 1;
263
+ };
264
+ readonly qty: {
265
+ readonly label: "How many finished";
266
+ readonly order: 2;
267
+ };
268
+ readonly completedAt: {
269
+ readonly label: "Finished on";
270
+ readonly order: 3;
271
+ };
272
+ readonly tenantId: {
273
+ readonly visibility: "hidden";
274
+ };
275
+ };
276
+ };
277
+ };
278
+ }
279
+ //# sourceMappingURL=recipes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE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