@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

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.
Files changed (100) hide show
  1. package/dist/index.d.ts +41 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +81 -0
  4. package/dist/routes/analytics.routes.d.ts +754 -0
  5. package/dist/routes/analytics.routes.d.ts.map +1 -0
  6. package/dist/routes/analytics.routes.js +24 -0
  7. package/dist/routes/auth.routes.d.ts +3836 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -0
  9. package/dist/routes/auth.routes.js +158 -0
  10. package/dist/routes/documents.routes.d.ts +2476 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -0
  12. package/dist/routes/documents.routes.js +100 -0
  13. package/dist/routes/equipment.routes.d.ts +3617 -0
  14. package/dist/routes/equipment.routes.d.ts.map +1 -0
  15. package/dist/routes/equipment.routes.js +118 -0
  16. package/dist/routes/farms.routes.d.ts +2202 -0
  17. package/dist/routes/farms.routes.d.ts.map +1 -0
  18. package/dist/routes/farms.routes.js +111 -0
  19. package/dist/routes/fields.routes.d.ts +3389 -0
  20. package/dist/routes/fields.routes.d.ts.map +1 -0
  21. package/dist/routes/fields.routes.js +95 -0
  22. package/dist/routes/finance.routes.d.ts +6855 -0
  23. package/dist/routes/finance.routes.d.ts.map +1 -0
  24. package/dist/routes/finance.routes.js +259 -0
  25. package/dist/routes/harvest.routes.d.ts +2337 -0
  26. package/dist/routes/harvest.routes.d.ts.map +1 -0
  27. package/dist/routes/harvest.routes.js +99 -0
  28. package/dist/routes/index.d.ts +68 -0
  29. package/dist/routes/index.d.ts.map +1 -0
  30. package/dist/routes/index.js +43 -0
  31. package/dist/routes/inventory.routes.d.ts +2853 -0
  32. package/dist/routes/inventory.routes.d.ts.map +1 -0
  33. package/dist/routes/inventory.routes.js +121 -0
  34. package/dist/routes/soil-tests.routes.d.ts +3005 -0
  35. package/dist/routes/soil-tests.routes.d.ts.map +1 -0
  36. package/dist/routes/soil-tests.routes.js +98 -0
  37. package/dist/routes/suppliers.routes.d.ts +4190 -0
  38. package/dist/routes/suppliers.routes.d.ts.map +1 -0
  39. package/dist/routes/suppliers.routes.js +146 -0
  40. package/dist/routes/tasks.routes.d.ts +4192 -0
  41. package/dist/routes/tasks.routes.d.ts.map +1 -0
  42. package/dist/routes/tasks.routes.js +138 -0
  43. package/dist/routes/team.routes.d.ts +2210 -0
  44. package/dist/routes/team.routes.d.ts.map +1 -0
  45. package/dist/routes/team.routes.js +98 -0
  46. package/dist/routes/users.routes.d.ts +721 -0
  47. package/dist/routes/users.routes.d.ts.map +1 -0
  48. package/dist/routes/users.routes.js +35 -0
  49. package/dist/routes/weather.routes.d.ts +500 -0
  50. package/dist/routes/weather.routes.d.ts.map +1 -0
  51. package/dist/routes/weather.routes.js +23 -0
  52. package/dist/schemas/analytics.schemas.d.ts +1344 -0
  53. package/dist/schemas/analytics.schemas.d.ts.map +1 -0
  54. package/dist/schemas/analytics.schemas.js +73 -0
  55. package/dist/schemas/auth.schemas.d.ts +1093 -0
  56. package/dist/schemas/auth.schemas.d.ts.map +1 -0
  57. package/dist/schemas/auth.schemas.js +159 -0
  58. package/dist/schemas/common.schemas.d.ts +562 -0
  59. package/dist/schemas/common.schemas.d.ts.map +1 -0
  60. package/dist/schemas/common.schemas.js +122 -0
  61. package/dist/schemas/documents.schemas.d.ts +850 -0
  62. package/dist/schemas/documents.schemas.d.ts.map +1 -0
  63. package/dist/schemas/documents.schemas.js +75 -0
  64. package/dist/schemas/equipment.schemas.d.ts +1618 -0
  65. package/dist/schemas/equipment.schemas.d.ts.map +1 -0
  66. package/dist/schemas/equipment.schemas.js +125 -0
  67. package/dist/schemas/farms.schemas.d.ts +1171 -0
  68. package/dist/schemas/farms.schemas.d.ts.map +1 -0
  69. package/dist/schemas/farms.schemas.js +62 -0
  70. package/dist/schemas/fields.schemas.d.ts +2508 -0
  71. package/dist/schemas/fields.schemas.d.ts.map +1 -0
  72. package/dist/schemas/fields.schemas.js +125 -0
  73. package/dist/schemas/finance.schemas.d.ts +2869 -0
  74. package/dist/schemas/finance.schemas.d.ts.map +1 -0
  75. package/dist/schemas/finance.schemas.js +196 -0
  76. package/dist/schemas/harvest.schemas.d.ts +1051 -0
  77. package/dist/schemas/harvest.schemas.d.ts.map +1 -0
  78. package/dist/schemas/harvest.schemas.js +71 -0
  79. package/dist/schemas/inventory.schemas.d.ts +1138 -0
  80. package/dist/schemas/inventory.schemas.d.ts.map +1 -0
  81. package/dist/schemas/inventory.schemas.js +89 -0
  82. package/dist/schemas/soil-tests.schemas.d.ts +1885 -0
  83. package/dist/schemas/soil-tests.schemas.d.ts.map +1 -0
  84. package/dist/schemas/soil-tests.schemas.js +102 -0
  85. package/dist/schemas/suppliers.schemas.d.ts +1774 -0
  86. package/dist/schemas/suppliers.schemas.d.ts.map +1 -0
  87. package/dist/schemas/suppliers.schemas.js +121 -0
  88. package/dist/schemas/tasks.schemas.d.ts +1761 -0
  89. package/dist/schemas/tasks.schemas.d.ts.map +1 -0
  90. package/dist/schemas/tasks.schemas.js +121 -0
  91. package/dist/schemas/team.schemas.d.ts +583 -0
  92. package/dist/schemas/team.schemas.d.ts.map +1 -0
  93. package/dist/schemas/team.schemas.js +60 -0
  94. package/dist/schemas/users.schemas.d.ts +288 -0
  95. package/dist/schemas/users.schemas.d.ts.map +1 -0
  96. package/dist/schemas/users.schemas.js +32 -0
  97. package/dist/schemas/weather.schemas.d.ts +682 -0
  98. package/dist/schemas/weather.schemas.d.ts.map +1 -0
  99. package/dist/schemas/weather.schemas.js +49 -0
  100. package/package.json +1 -1
@@ -0,0 +1,1138 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Inventory schemas - JSON:API compliant
4
+ */
5
+ export declare const inventoryItemAttributesSchema: z.ZodObject<{
6
+ name: z.ZodString;
7
+ category: z.ZodString;
8
+ stock: z.ZodNumber;
9
+ unit: z.ZodString;
10
+ avgCost: z.ZodNumber;
11
+ totalValue: z.ZodOptional<z.ZodNumber>;
12
+ } & {
13
+ createdAt: z.ZodString;
14
+ updatedAt: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ name: string;
19
+ category: string;
20
+ stock: number;
21
+ unit: string;
22
+ avgCost: number;
23
+ totalValue?: number | undefined;
24
+ }, {
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ name: string;
28
+ category: string;
29
+ stock: number;
30
+ unit: string;
31
+ avgCost: number;
32
+ totalValue?: number | undefined;
33
+ }>;
34
+ export declare const createInventoryItemAttributesSchema: z.ZodObject<{
35
+ name: z.ZodString;
36
+ category: z.ZodString;
37
+ unit: z.ZodString;
38
+ initialStock: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
39
+ initialCost: z.ZodOptional<z.ZodNumber>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ name: string;
42
+ category: string;
43
+ unit: string;
44
+ initialStock?: number | undefined;
45
+ initialCost?: number | undefined;
46
+ }, {
47
+ name: string;
48
+ category: string;
49
+ unit: string;
50
+ initialStock?: number | undefined;
51
+ initialCost?: number | undefined;
52
+ }>;
53
+ export declare const updateInventoryItemAttributesSchema: z.ZodObject<{
54
+ name: z.ZodOptional<z.ZodString>;
55
+ category: z.ZodOptional<z.ZodString>;
56
+ unit: z.ZodOptional<z.ZodString>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ name?: string | undefined;
59
+ category?: string | undefined;
60
+ unit?: string | undefined;
61
+ }, {
62
+ name?: string | undefined;
63
+ category?: string | undefined;
64
+ unit?: string | undefined;
65
+ }>;
66
+ export declare const logPurchaseAttributesSchema: z.ZodObject<{
67
+ itemId: z.ZodOptional<z.ZodString>;
68
+ name: z.ZodOptional<z.ZodString>;
69
+ category: z.ZodOptional<z.ZodString>;
70
+ quantity: z.ZodNumber;
71
+ unit: z.ZodString;
72
+ unitCost: z.ZodNumber;
73
+ totalCost: z.ZodNumber;
74
+ date: z.ZodString;
75
+ supplier: z.ZodOptional<z.ZodString>;
76
+ fieldId: z.ZodOptional<z.ZodString>;
77
+ cropId: z.ZodOptional<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ date: string;
80
+ unit: string;
81
+ quantity: number;
82
+ unitCost: number;
83
+ totalCost: number;
84
+ name?: string | undefined;
85
+ fieldId?: string | undefined;
86
+ category?: string | undefined;
87
+ itemId?: string | undefined;
88
+ supplier?: string | undefined;
89
+ cropId?: string | undefined;
90
+ }, {
91
+ date: string;
92
+ unit: string;
93
+ quantity: number;
94
+ unitCost: number;
95
+ totalCost: number;
96
+ name?: string | undefined;
97
+ fieldId?: string | undefined;
98
+ category?: string | undefined;
99
+ itemId?: string | undefined;
100
+ supplier?: string | undefined;
101
+ cropId?: string | undefined;
102
+ }>;
103
+ export declare const createInventoryItemSchema: z.ZodObject<{
104
+ type: z.ZodLiteral<"inventory-items">;
105
+ attributes: z.ZodObject<{
106
+ name: z.ZodString;
107
+ category: z.ZodString;
108
+ unit: z.ZodString;
109
+ initialStock: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
110
+ initialCost: z.ZodOptional<z.ZodNumber>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ name: string;
113
+ category: string;
114
+ unit: string;
115
+ initialStock?: number | undefined;
116
+ initialCost?: number | undefined;
117
+ }, {
118
+ name: string;
119
+ category: string;
120
+ unit: string;
121
+ initialStock?: number | undefined;
122
+ initialCost?: number | undefined;
123
+ }>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: "inventory-items";
126
+ attributes: {
127
+ name: string;
128
+ category: string;
129
+ unit: string;
130
+ initialStock?: number | undefined;
131
+ initialCost?: number | undefined;
132
+ };
133
+ }, {
134
+ type: "inventory-items";
135
+ attributes: {
136
+ name: string;
137
+ category: string;
138
+ unit: string;
139
+ initialStock?: number | undefined;
140
+ initialCost?: number | undefined;
141
+ };
142
+ }>;
143
+ export declare const updateInventoryItemSchema: z.ZodObject<{
144
+ type: z.ZodLiteral<"inventory-items">;
145
+ id: z.ZodString;
146
+ attributes: z.ZodObject<{
147
+ name: z.ZodOptional<z.ZodString>;
148
+ category: z.ZodOptional<z.ZodString>;
149
+ unit: z.ZodOptional<z.ZodString>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ name?: string | undefined;
152
+ category?: string | undefined;
153
+ unit?: string | undefined;
154
+ }, {
155
+ name?: string | undefined;
156
+ category?: string | undefined;
157
+ unit?: string | undefined;
158
+ }>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: "inventory-items";
161
+ id: string;
162
+ attributes: {
163
+ name?: string | undefined;
164
+ category?: string | undefined;
165
+ unit?: string | undefined;
166
+ };
167
+ }, {
168
+ type: "inventory-items";
169
+ id: string;
170
+ attributes: {
171
+ name?: string | undefined;
172
+ category?: string | undefined;
173
+ unit?: string | undefined;
174
+ };
175
+ }>;
176
+ export declare const logPurchaseSchema: z.ZodObject<{
177
+ type: z.ZodLiteral<"purchases">;
178
+ attributes: z.ZodObject<{
179
+ itemId: z.ZodOptional<z.ZodString>;
180
+ name: z.ZodOptional<z.ZodString>;
181
+ category: z.ZodOptional<z.ZodString>;
182
+ quantity: z.ZodNumber;
183
+ unit: z.ZodString;
184
+ unitCost: z.ZodNumber;
185
+ totalCost: z.ZodNumber;
186
+ date: z.ZodString;
187
+ supplier: z.ZodOptional<z.ZodString>;
188
+ fieldId: z.ZodOptional<z.ZodString>;
189
+ cropId: z.ZodOptional<z.ZodString>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ date: string;
192
+ unit: string;
193
+ quantity: number;
194
+ unitCost: number;
195
+ totalCost: number;
196
+ name?: string | undefined;
197
+ fieldId?: string | undefined;
198
+ category?: string | undefined;
199
+ itemId?: string | undefined;
200
+ supplier?: string | undefined;
201
+ cropId?: string | undefined;
202
+ }, {
203
+ date: string;
204
+ unit: string;
205
+ quantity: number;
206
+ unitCost: number;
207
+ totalCost: number;
208
+ name?: string | undefined;
209
+ fieldId?: string | undefined;
210
+ category?: string | undefined;
211
+ itemId?: string | undefined;
212
+ supplier?: string | undefined;
213
+ cropId?: string | undefined;
214
+ }>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "purchases";
217
+ attributes: {
218
+ date: string;
219
+ unit: string;
220
+ quantity: number;
221
+ unitCost: number;
222
+ totalCost: number;
223
+ name?: string | undefined;
224
+ fieldId?: string | undefined;
225
+ category?: string | undefined;
226
+ itemId?: string | undefined;
227
+ supplier?: string | undefined;
228
+ cropId?: string | undefined;
229
+ };
230
+ }, {
231
+ type: "purchases";
232
+ attributes: {
233
+ date: string;
234
+ unit: string;
235
+ quantity: number;
236
+ unitCost: number;
237
+ totalCost: number;
238
+ name?: string | undefined;
239
+ fieldId?: string | undefined;
240
+ category?: string | undefined;
241
+ itemId?: string | undefined;
242
+ supplier?: string | undefined;
243
+ cropId?: string | undefined;
244
+ };
245
+ }>;
246
+ export declare const inventoryItemResourceSchema: z.ZodObject<{
247
+ type: z.ZodLiteral<string>;
248
+ id: z.ZodString;
249
+ attributes: z.ZodObject<{
250
+ name: z.ZodString;
251
+ category: z.ZodString;
252
+ stock: z.ZodNumber;
253
+ unit: z.ZodString;
254
+ avgCost: z.ZodNumber;
255
+ totalValue: z.ZodOptional<z.ZodNumber>;
256
+ } & {
257
+ createdAt: z.ZodString;
258
+ updatedAt: z.ZodString;
259
+ }, "strip", z.ZodTypeAny, {
260
+ createdAt: string;
261
+ updatedAt: string;
262
+ name: string;
263
+ category: string;
264
+ stock: number;
265
+ unit: string;
266
+ avgCost: number;
267
+ totalValue?: number | undefined;
268
+ }, {
269
+ createdAt: string;
270
+ updatedAt: string;
271
+ name: string;
272
+ category: string;
273
+ stock: number;
274
+ unit: string;
275
+ avgCost: number;
276
+ totalValue?: number | undefined;
277
+ }>;
278
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
279
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
280
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ type: string;
283
+ id: string;
284
+ attributes: {
285
+ createdAt: string;
286
+ updatedAt: string;
287
+ name: string;
288
+ category: string;
289
+ stock: number;
290
+ unit: string;
291
+ avgCost: number;
292
+ totalValue?: number | undefined;
293
+ };
294
+ relationships?: Record<string, unknown> | undefined;
295
+ links?: Record<string, string> | undefined;
296
+ meta?: Record<string, unknown> | undefined;
297
+ }, {
298
+ type: string;
299
+ id: string;
300
+ attributes: {
301
+ createdAt: string;
302
+ updatedAt: string;
303
+ name: string;
304
+ category: string;
305
+ stock: number;
306
+ unit: string;
307
+ avgCost: number;
308
+ totalValue?: number | undefined;
309
+ };
310
+ relationships?: Record<string, unknown> | undefined;
311
+ links?: Record<string, string> | undefined;
312
+ meta?: Record<string, unknown> | undefined;
313
+ }>;
314
+ export declare const inventoryItemDetailResourceSchema: z.ZodObject<{
315
+ type: z.ZodLiteral<string>;
316
+ id: z.ZodString;
317
+ attributes: z.ZodObject<{
318
+ name: z.ZodString;
319
+ category: z.ZodString;
320
+ stock: z.ZodNumber;
321
+ unit: z.ZodString;
322
+ avgCost: z.ZodNumber;
323
+ totalValue: z.ZodOptional<z.ZodNumber>;
324
+ } & {
325
+ createdAt: z.ZodString;
326
+ updatedAt: z.ZodString;
327
+ }, "strip", z.ZodTypeAny, {
328
+ createdAt: string;
329
+ updatedAt: string;
330
+ name: string;
331
+ category: string;
332
+ stock: number;
333
+ unit: string;
334
+ avgCost: number;
335
+ totalValue?: number | undefined;
336
+ }, {
337
+ createdAt: string;
338
+ updatedAt: string;
339
+ name: string;
340
+ category: string;
341
+ stock: number;
342
+ unit: string;
343
+ avgCost: number;
344
+ totalValue?: number | undefined;
345
+ }>;
346
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
347
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
348
+ } & {
349
+ relationships: z.ZodOptional<z.ZodObject<{
350
+ tasks: z.ZodOptional<z.ZodObject<{
351
+ meta: z.ZodObject<{
352
+ count: z.ZodNumber;
353
+ }, "strip", z.ZodTypeAny, {
354
+ count: number;
355
+ }, {
356
+ count: number;
357
+ }>;
358
+ links: z.ZodObject<{
359
+ related: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ related: string;
362
+ }, {
363
+ related: string;
364
+ }>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ links: {
367
+ related: string;
368
+ };
369
+ meta: {
370
+ count: number;
371
+ };
372
+ }, {
373
+ links: {
374
+ related: string;
375
+ };
376
+ meta: {
377
+ count: number;
378
+ };
379
+ }>>;
380
+ transactions: z.ZodOptional<z.ZodObject<{
381
+ meta: z.ZodObject<{
382
+ count: z.ZodNumber;
383
+ }, "strip", z.ZodTypeAny, {
384
+ count: number;
385
+ }, {
386
+ count: number;
387
+ }>;
388
+ links: z.ZodObject<{
389
+ related: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ related: string;
392
+ }, {
393
+ related: string;
394
+ }>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ links: {
397
+ related: string;
398
+ };
399
+ meta: {
400
+ count: number;
401
+ };
402
+ }, {
403
+ links: {
404
+ related: string;
405
+ };
406
+ meta: {
407
+ count: number;
408
+ };
409
+ }>>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ tasks?: {
412
+ links: {
413
+ related: string;
414
+ };
415
+ meta: {
416
+ count: number;
417
+ };
418
+ } | undefined;
419
+ transactions?: {
420
+ links: {
421
+ related: string;
422
+ };
423
+ meta: {
424
+ count: number;
425
+ };
426
+ } | undefined;
427
+ }, {
428
+ tasks?: {
429
+ links: {
430
+ related: string;
431
+ };
432
+ meta: {
433
+ count: number;
434
+ };
435
+ } | undefined;
436
+ transactions?: {
437
+ links: {
438
+ related: string;
439
+ };
440
+ meta: {
441
+ count: number;
442
+ };
443
+ } | undefined;
444
+ }>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ type: string;
447
+ id: string;
448
+ attributes: {
449
+ createdAt: string;
450
+ updatedAt: string;
451
+ name: string;
452
+ category: string;
453
+ stock: number;
454
+ unit: string;
455
+ avgCost: number;
456
+ totalValue?: number | undefined;
457
+ };
458
+ relationships?: {
459
+ tasks?: {
460
+ links: {
461
+ related: string;
462
+ };
463
+ meta: {
464
+ count: number;
465
+ };
466
+ } | undefined;
467
+ transactions?: {
468
+ links: {
469
+ related: string;
470
+ };
471
+ meta: {
472
+ count: number;
473
+ };
474
+ } | undefined;
475
+ } | undefined;
476
+ links?: Record<string, string> | undefined;
477
+ meta?: Record<string, unknown> | undefined;
478
+ }, {
479
+ type: string;
480
+ id: string;
481
+ attributes: {
482
+ createdAt: string;
483
+ updatedAt: string;
484
+ name: string;
485
+ category: string;
486
+ stock: number;
487
+ unit: string;
488
+ avgCost: number;
489
+ totalValue?: number | undefined;
490
+ };
491
+ relationships?: {
492
+ tasks?: {
493
+ links: {
494
+ related: string;
495
+ };
496
+ meta: {
497
+ count: number;
498
+ };
499
+ } | undefined;
500
+ transactions?: {
501
+ links: {
502
+ related: string;
503
+ };
504
+ meta: {
505
+ count: number;
506
+ };
507
+ } | undefined;
508
+ } | undefined;
509
+ links?: Record<string, string> | undefined;
510
+ meta?: Record<string, unknown> | undefined;
511
+ }>;
512
+ export declare const inventoryItemResponseSchema: z.ZodObject<{
513
+ data: z.ZodObject<{
514
+ type: z.ZodLiteral<string>;
515
+ id: z.ZodString;
516
+ attributes: z.ZodObject<{
517
+ name: z.ZodString;
518
+ category: z.ZodString;
519
+ stock: z.ZodNumber;
520
+ unit: z.ZodString;
521
+ avgCost: z.ZodNumber;
522
+ totalValue: z.ZodOptional<z.ZodNumber>;
523
+ } & {
524
+ createdAt: z.ZodString;
525
+ updatedAt: z.ZodString;
526
+ }, "strip", z.ZodTypeAny, {
527
+ createdAt: string;
528
+ updatedAt: string;
529
+ name: string;
530
+ category: string;
531
+ stock: number;
532
+ unit: string;
533
+ avgCost: number;
534
+ totalValue?: number | undefined;
535
+ }, {
536
+ createdAt: string;
537
+ updatedAt: string;
538
+ name: string;
539
+ category: string;
540
+ stock: number;
541
+ unit: string;
542
+ avgCost: number;
543
+ totalValue?: number | undefined;
544
+ }>;
545
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
546
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
547
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: string;
550
+ id: string;
551
+ attributes: {
552
+ createdAt: string;
553
+ updatedAt: string;
554
+ name: string;
555
+ category: string;
556
+ stock: number;
557
+ unit: string;
558
+ avgCost: number;
559
+ totalValue?: number | undefined;
560
+ };
561
+ relationships?: Record<string, unknown> | undefined;
562
+ links?: Record<string, string> | undefined;
563
+ meta?: Record<string, unknown> | undefined;
564
+ }, {
565
+ type: string;
566
+ id: string;
567
+ attributes: {
568
+ createdAt: string;
569
+ updatedAt: string;
570
+ name: string;
571
+ category: string;
572
+ stock: number;
573
+ unit: string;
574
+ avgCost: number;
575
+ totalValue?: number | undefined;
576
+ };
577
+ relationships?: Record<string, unknown> | undefined;
578
+ links?: Record<string, string> | undefined;
579
+ meta?: Record<string, unknown> | undefined;
580
+ }>;
581
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
582
+ type: z.ZodString;
583
+ id: z.ZodString;
584
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
585
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
586
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
587
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: string;
590
+ id: string;
591
+ attributes?: Record<string, unknown> | undefined;
592
+ relationships?: Record<string, unknown> | undefined;
593
+ links?: Record<string, string> | undefined;
594
+ meta?: Record<string, unknown> | undefined;
595
+ }, {
596
+ type: string;
597
+ id: string;
598
+ attributes?: Record<string, unknown> | undefined;
599
+ relationships?: Record<string, unknown> | undefined;
600
+ links?: Record<string, string> | undefined;
601
+ meta?: Record<string, unknown> | undefined;
602
+ }>, "many">>;
603
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
604
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ data: {
607
+ type: string;
608
+ id: string;
609
+ attributes: {
610
+ createdAt: string;
611
+ updatedAt: string;
612
+ name: string;
613
+ category: string;
614
+ stock: number;
615
+ unit: string;
616
+ avgCost: number;
617
+ totalValue?: number | undefined;
618
+ };
619
+ relationships?: Record<string, unknown> | undefined;
620
+ links?: Record<string, string> | undefined;
621
+ meta?: Record<string, unknown> | undefined;
622
+ };
623
+ links?: Record<string, string> | undefined;
624
+ meta?: Record<string, unknown> | undefined;
625
+ included?: {
626
+ type: string;
627
+ id: string;
628
+ attributes?: Record<string, unknown> | undefined;
629
+ relationships?: Record<string, unknown> | undefined;
630
+ links?: Record<string, string> | undefined;
631
+ meta?: Record<string, unknown> | undefined;
632
+ }[] | undefined;
633
+ }, {
634
+ data: {
635
+ type: string;
636
+ id: string;
637
+ attributes: {
638
+ createdAt: string;
639
+ updatedAt: string;
640
+ name: string;
641
+ category: string;
642
+ stock: number;
643
+ unit: string;
644
+ avgCost: number;
645
+ totalValue?: number | undefined;
646
+ };
647
+ relationships?: Record<string, unknown> | undefined;
648
+ links?: Record<string, string> | undefined;
649
+ meta?: Record<string, unknown> | undefined;
650
+ };
651
+ links?: Record<string, string> | undefined;
652
+ meta?: Record<string, unknown> | undefined;
653
+ included?: {
654
+ type: string;
655
+ id: string;
656
+ attributes?: Record<string, unknown> | undefined;
657
+ relationships?: Record<string, unknown> | undefined;
658
+ links?: Record<string, string> | undefined;
659
+ meta?: Record<string, unknown> | undefined;
660
+ }[] | undefined;
661
+ }>;
662
+ export declare const inventoryItemDetailResponseSchema: z.ZodObject<{
663
+ data: z.ZodObject<{
664
+ type: z.ZodLiteral<string>;
665
+ id: z.ZodString;
666
+ attributes: z.ZodObject<{
667
+ name: z.ZodString;
668
+ category: z.ZodString;
669
+ stock: z.ZodNumber;
670
+ unit: z.ZodString;
671
+ avgCost: z.ZodNumber;
672
+ totalValue: z.ZodOptional<z.ZodNumber>;
673
+ } & {
674
+ createdAt: z.ZodString;
675
+ updatedAt: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ createdAt: string;
678
+ updatedAt: string;
679
+ name: string;
680
+ category: string;
681
+ stock: number;
682
+ unit: string;
683
+ avgCost: number;
684
+ totalValue?: number | undefined;
685
+ }, {
686
+ createdAt: string;
687
+ updatedAt: string;
688
+ name: string;
689
+ category: string;
690
+ stock: number;
691
+ unit: string;
692
+ avgCost: number;
693
+ totalValue?: number | undefined;
694
+ }>;
695
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
696
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
+ } & {
698
+ relationships: z.ZodOptional<z.ZodObject<{
699
+ tasks: z.ZodOptional<z.ZodObject<{
700
+ meta: z.ZodObject<{
701
+ count: z.ZodNumber;
702
+ }, "strip", z.ZodTypeAny, {
703
+ count: number;
704
+ }, {
705
+ count: number;
706
+ }>;
707
+ links: z.ZodObject<{
708
+ related: z.ZodString;
709
+ }, "strip", z.ZodTypeAny, {
710
+ related: string;
711
+ }, {
712
+ related: string;
713
+ }>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ links: {
716
+ related: string;
717
+ };
718
+ meta: {
719
+ count: number;
720
+ };
721
+ }, {
722
+ links: {
723
+ related: string;
724
+ };
725
+ meta: {
726
+ count: number;
727
+ };
728
+ }>>;
729
+ transactions: z.ZodOptional<z.ZodObject<{
730
+ meta: z.ZodObject<{
731
+ count: z.ZodNumber;
732
+ }, "strip", z.ZodTypeAny, {
733
+ count: number;
734
+ }, {
735
+ count: number;
736
+ }>;
737
+ links: z.ZodObject<{
738
+ related: z.ZodString;
739
+ }, "strip", z.ZodTypeAny, {
740
+ related: string;
741
+ }, {
742
+ related: string;
743
+ }>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ links: {
746
+ related: string;
747
+ };
748
+ meta: {
749
+ count: number;
750
+ };
751
+ }, {
752
+ links: {
753
+ related: string;
754
+ };
755
+ meta: {
756
+ count: number;
757
+ };
758
+ }>>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ tasks?: {
761
+ links: {
762
+ related: string;
763
+ };
764
+ meta: {
765
+ count: number;
766
+ };
767
+ } | undefined;
768
+ transactions?: {
769
+ links: {
770
+ related: string;
771
+ };
772
+ meta: {
773
+ count: number;
774
+ };
775
+ } | undefined;
776
+ }, {
777
+ tasks?: {
778
+ links: {
779
+ related: string;
780
+ };
781
+ meta: {
782
+ count: number;
783
+ };
784
+ } | undefined;
785
+ transactions?: {
786
+ links: {
787
+ related: string;
788
+ };
789
+ meta: {
790
+ count: number;
791
+ };
792
+ } | undefined;
793
+ }>>;
794
+ }, "strip", z.ZodTypeAny, {
795
+ type: string;
796
+ id: string;
797
+ attributes: {
798
+ createdAt: string;
799
+ updatedAt: string;
800
+ name: string;
801
+ category: string;
802
+ stock: number;
803
+ unit: string;
804
+ avgCost: number;
805
+ totalValue?: number | undefined;
806
+ };
807
+ relationships?: {
808
+ tasks?: {
809
+ links: {
810
+ related: string;
811
+ };
812
+ meta: {
813
+ count: number;
814
+ };
815
+ } | undefined;
816
+ transactions?: {
817
+ links: {
818
+ related: string;
819
+ };
820
+ meta: {
821
+ count: number;
822
+ };
823
+ } | undefined;
824
+ } | undefined;
825
+ links?: Record<string, string> | undefined;
826
+ meta?: Record<string, unknown> | undefined;
827
+ }, {
828
+ type: string;
829
+ id: string;
830
+ attributes: {
831
+ createdAt: string;
832
+ updatedAt: string;
833
+ name: string;
834
+ category: string;
835
+ stock: number;
836
+ unit: string;
837
+ avgCost: number;
838
+ totalValue?: number | undefined;
839
+ };
840
+ relationships?: {
841
+ tasks?: {
842
+ links: {
843
+ related: string;
844
+ };
845
+ meta: {
846
+ count: number;
847
+ };
848
+ } | undefined;
849
+ transactions?: {
850
+ links: {
851
+ related: string;
852
+ };
853
+ meta: {
854
+ count: number;
855
+ };
856
+ } | undefined;
857
+ } | undefined;
858
+ links?: Record<string, string> | undefined;
859
+ meta?: Record<string, unknown> | undefined;
860
+ }>;
861
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
862
+ type: z.ZodString;
863
+ id: z.ZodString;
864
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
865
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
866
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
867
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ type: string;
870
+ id: string;
871
+ attributes?: Record<string, unknown> | undefined;
872
+ relationships?: Record<string, unknown> | undefined;
873
+ links?: Record<string, string> | undefined;
874
+ meta?: Record<string, unknown> | undefined;
875
+ }, {
876
+ type: string;
877
+ id: string;
878
+ attributes?: Record<string, unknown> | undefined;
879
+ relationships?: Record<string, unknown> | undefined;
880
+ links?: Record<string, string> | undefined;
881
+ meta?: Record<string, unknown> | undefined;
882
+ }>, "many">>;
883
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
885
+ }, "strip", z.ZodTypeAny, {
886
+ data: {
887
+ type: string;
888
+ id: string;
889
+ attributes: {
890
+ createdAt: string;
891
+ updatedAt: string;
892
+ name: string;
893
+ category: string;
894
+ stock: number;
895
+ unit: string;
896
+ avgCost: number;
897
+ totalValue?: number | undefined;
898
+ };
899
+ relationships?: {
900
+ tasks?: {
901
+ links: {
902
+ related: string;
903
+ };
904
+ meta: {
905
+ count: number;
906
+ };
907
+ } | undefined;
908
+ transactions?: {
909
+ links: {
910
+ related: string;
911
+ };
912
+ meta: {
913
+ count: number;
914
+ };
915
+ } | undefined;
916
+ } | undefined;
917
+ links?: Record<string, string> | undefined;
918
+ meta?: Record<string, unknown> | undefined;
919
+ };
920
+ links?: Record<string, string> | undefined;
921
+ meta?: Record<string, unknown> | undefined;
922
+ included?: {
923
+ type: string;
924
+ id: string;
925
+ attributes?: Record<string, unknown> | undefined;
926
+ relationships?: Record<string, unknown> | undefined;
927
+ links?: Record<string, string> | undefined;
928
+ meta?: Record<string, unknown> | undefined;
929
+ }[] | undefined;
930
+ }, {
931
+ data: {
932
+ type: string;
933
+ id: string;
934
+ attributes: {
935
+ createdAt: string;
936
+ updatedAt: string;
937
+ name: string;
938
+ category: string;
939
+ stock: number;
940
+ unit: string;
941
+ avgCost: number;
942
+ totalValue?: number | undefined;
943
+ };
944
+ relationships?: {
945
+ tasks?: {
946
+ links: {
947
+ related: string;
948
+ };
949
+ meta: {
950
+ count: number;
951
+ };
952
+ } | undefined;
953
+ transactions?: {
954
+ links: {
955
+ related: string;
956
+ };
957
+ meta: {
958
+ count: number;
959
+ };
960
+ } | undefined;
961
+ } | undefined;
962
+ links?: Record<string, string> | undefined;
963
+ meta?: Record<string, unknown> | undefined;
964
+ };
965
+ links?: Record<string, string> | undefined;
966
+ meta?: Record<string, unknown> | undefined;
967
+ included?: {
968
+ type: string;
969
+ id: string;
970
+ attributes?: Record<string, unknown> | undefined;
971
+ relationships?: Record<string, unknown> | undefined;
972
+ links?: Record<string, string> | undefined;
973
+ meta?: Record<string, unknown> | undefined;
974
+ }[] | undefined;
975
+ }>;
976
+ export declare const inventoryItemListResponseSchema: z.ZodObject<{
977
+ data: z.ZodArray<z.ZodObject<{
978
+ type: z.ZodLiteral<string>;
979
+ id: z.ZodString;
980
+ attributes: z.ZodObject<{
981
+ name: z.ZodString;
982
+ category: z.ZodString;
983
+ stock: z.ZodNumber;
984
+ unit: z.ZodString;
985
+ avgCost: z.ZodNumber;
986
+ totalValue: z.ZodOptional<z.ZodNumber>;
987
+ } & {
988
+ createdAt: z.ZodString;
989
+ updatedAt: z.ZodString;
990
+ }, "strip", z.ZodTypeAny, {
991
+ createdAt: string;
992
+ updatedAt: string;
993
+ name: string;
994
+ category: string;
995
+ stock: number;
996
+ unit: string;
997
+ avgCost: number;
998
+ totalValue?: number | undefined;
999
+ }, {
1000
+ createdAt: string;
1001
+ updatedAt: string;
1002
+ name: string;
1003
+ category: string;
1004
+ stock: number;
1005
+ unit: string;
1006
+ avgCost: number;
1007
+ totalValue?: number | undefined;
1008
+ }>;
1009
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1010
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1011
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ type: string;
1014
+ id: string;
1015
+ attributes: {
1016
+ createdAt: string;
1017
+ updatedAt: string;
1018
+ name: string;
1019
+ category: string;
1020
+ stock: number;
1021
+ unit: string;
1022
+ avgCost: number;
1023
+ totalValue?: number | undefined;
1024
+ };
1025
+ relationships?: Record<string, unknown> | undefined;
1026
+ links?: Record<string, string> | undefined;
1027
+ meta?: Record<string, unknown> | undefined;
1028
+ }, {
1029
+ type: string;
1030
+ id: string;
1031
+ attributes: {
1032
+ createdAt: string;
1033
+ updatedAt: string;
1034
+ name: string;
1035
+ category: string;
1036
+ stock: number;
1037
+ unit: string;
1038
+ avgCost: number;
1039
+ totalValue?: number | undefined;
1040
+ };
1041
+ relationships?: Record<string, unknown> | undefined;
1042
+ links?: Record<string, string> | undefined;
1043
+ meta?: Record<string, unknown> | undefined;
1044
+ }>, "many">;
1045
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1046
+ type: z.ZodString;
1047
+ id: z.ZodString;
1048
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1049
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1050
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1051
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ type: string;
1054
+ id: string;
1055
+ attributes?: Record<string, unknown> | undefined;
1056
+ relationships?: Record<string, unknown> | undefined;
1057
+ links?: Record<string, string> | undefined;
1058
+ meta?: Record<string, unknown> | undefined;
1059
+ }, {
1060
+ type: string;
1061
+ id: string;
1062
+ attributes?: Record<string, unknown> | undefined;
1063
+ relationships?: Record<string, unknown> | undefined;
1064
+ links?: Record<string, string> | undefined;
1065
+ meta?: Record<string, unknown> | undefined;
1066
+ }>, "many">>;
1067
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1068
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ data: {
1071
+ type: string;
1072
+ id: string;
1073
+ attributes: {
1074
+ createdAt: string;
1075
+ updatedAt: string;
1076
+ name: string;
1077
+ category: string;
1078
+ stock: number;
1079
+ unit: string;
1080
+ avgCost: number;
1081
+ totalValue?: number | undefined;
1082
+ };
1083
+ relationships?: Record<string, unknown> | undefined;
1084
+ links?: Record<string, string> | undefined;
1085
+ meta?: Record<string, unknown> | undefined;
1086
+ }[];
1087
+ links?: Record<string, string> | undefined;
1088
+ meta?: Record<string, unknown> | undefined;
1089
+ included?: {
1090
+ type: string;
1091
+ id: string;
1092
+ attributes?: Record<string, unknown> | undefined;
1093
+ relationships?: Record<string, unknown> | undefined;
1094
+ links?: Record<string, string> | undefined;
1095
+ meta?: Record<string, unknown> | undefined;
1096
+ }[] | undefined;
1097
+ }, {
1098
+ data: {
1099
+ type: string;
1100
+ id: string;
1101
+ attributes: {
1102
+ createdAt: string;
1103
+ updatedAt: string;
1104
+ name: string;
1105
+ category: string;
1106
+ stock: number;
1107
+ unit: string;
1108
+ avgCost: number;
1109
+ totalValue?: number | undefined;
1110
+ };
1111
+ relationships?: Record<string, unknown> | undefined;
1112
+ links?: Record<string, string> | undefined;
1113
+ meta?: Record<string, unknown> | undefined;
1114
+ }[];
1115
+ links?: Record<string, string> | undefined;
1116
+ meta?: Record<string, unknown> | undefined;
1117
+ included?: {
1118
+ type: string;
1119
+ id: string;
1120
+ attributes?: Record<string, unknown> | undefined;
1121
+ relationships?: Record<string, unknown> | undefined;
1122
+ links?: Record<string, string> | undefined;
1123
+ meta?: Record<string, unknown> | undefined;
1124
+ }[] | undefined;
1125
+ }>;
1126
+ export type CreateInventoryItemAttributes = z.infer<typeof createInventoryItemAttributesSchema>;
1127
+ export type UpdateInventoryItemAttributes = z.infer<typeof updateInventoryItemAttributesSchema>;
1128
+ export type LogPurchaseAttributes = z.infer<typeof logPurchaseAttributesSchema>;
1129
+ export type CreateInventoryItemInput = z.infer<typeof createInventoryItemSchema>;
1130
+ export type UpdateInventoryItemInput = z.infer<typeof updateInventoryItemSchema>;
1131
+ export type LogPurchaseInput = z.infer<typeof logPurchaseSchema>;
1132
+ export type InventoryItemAttributes = z.infer<typeof inventoryItemAttributesSchema>;
1133
+ export type InventoryItemResource = z.infer<typeof inventoryItemResourceSchema>;
1134
+ export type InventoryItemDetailResource = z.infer<typeof inventoryItemDetailResourceSchema>;
1135
+ export type InventoryItemResponse = z.infer<typeof inventoryItemResponseSchema>;
1136
+ export type InventoryItemDetailResponse = z.infer<typeof inventoryItemDetailResponseSchema>;
1137
+ export type InventoryItemListResponse = z.infer<typeof inventoryItemListResponseSchema>;
1138
+ //# sourceMappingURL=inventory.schemas.d.ts.map