@deepintel-ltd/farmpro-contracts 1.22.3 → 1.22.4
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/routes/livestock-groups.routes.d.ts +308 -0
- package/dist/routes/livestock-groups.routes.d.ts.map +1 -1
- package/dist/routes/staff.routes.d.ts +84 -0
- package/dist/routes/staff.routes.d.ts.map +1 -1
- package/dist/schemas/livestock-groups.schemas.d.ts +302 -0
- package/dist/schemas/livestock-groups.schemas.d.ts.map +1 -1
- package/dist/schemas/livestock-groups.schemas.js +22 -0
- package/dist/schemas/staff.schemas.d.ts +76 -0
- package/dist/schemas/staff.schemas.d.ts.map +1 -1
- package/dist/schemas/staff.schemas.js +6 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"livestock-groups.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/livestock-groups.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;;;GAOG;AAGH,eAAO,MAAM,wBAAwB,4HAUnC,CAAC;AAGH,eAAO,MAAM,kBAAkB,8CAI7B,CAAC;AAGH,eAAO,MAAM,iBAAiB,sEAM5B,CAAC;AAGH,eAAO,MAAM,qBAAqB,gKAYhC,CAAC;AAGH,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"livestock-groups.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/livestock-groups.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;;;GAOG;AAGH,eAAO,MAAM,wBAAwB,4HAUnC,CAAC;AAGH,eAAO,MAAM,kBAAkB,8CAI7B,CAAC;AAGH,eAAO,MAAM,iBAAiB,sEAM5B,CAAC;AAGH,eAAO,MAAM,qBAAqB,gKAYhC,CAAC;AAGH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;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MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -75,6 +75,10 @@ export const livestockGroupAttributesSchema = z
|
|
|
75
75
|
averageDailyGain: z.number().positive().nullable(),
|
|
76
76
|
// Poultry-specific
|
|
77
77
|
eggProductionRate: z.number().min(0).max(100).nullable(),
|
|
78
|
+
houseCode: z.string().nullable().optional(),
|
|
79
|
+
stockType: z.string().nullable().optional(),
|
|
80
|
+
placementDate: z.string().datetime().nullable().optional(),
|
|
81
|
+
breedStandard: z.string().nullable().optional(),
|
|
78
82
|
// Fish-specific
|
|
79
83
|
pondSize: z.number().positive().nullable(),
|
|
80
84
|
stockingDensity: z.number().positive().nullable(),
|
|
@@ -108,6 +112,10 @@ export const createLivestockGroupAttributesSchema = z.object({
|
|
|
108
112
|
mortalityRate: z.number().min(0).max(100).optional(),
|
|
109
113
|
averageDailyGain: z.number().positive().optional(),
|
|
110
114
|
eggProductionRate: z.number().min(0).max(100).optional(),
|
|
115
|
+
houseCode: z.string().max(50).optional(),
|
|
116
|
+
stockType: z.enum(['DOC', 'POL']).optional(),
|
|
117
|
+
placementDate: z.string().datetime().optional(),
|
|
118
|
+
breedStandard: z.string().max(50).optional(),
|
|
111
119
|
pondSize: z.number().positive().optional(),
|
|
112
120
|
stockingDensity: z.number().positive().optional(),
|
|
113
121
|
status: groupStatusSchema.default('ACTIVE'),
|
|
@@ -135,6 +143,10 @@ export const updateLivestockGroupAttributesSchema = z.object({
|
|
|
135
143
|
mortalityRate: z.number().min(0).max(100).nullable().optional(),
|
|
136
144
|
averageDailyGain: z.number().positive().nullable().optional(),
|
|
137
145
|
eggProductionRate: z.number().min(0).max(100).nullable().optional(),
|
|
146
|
+
houseCode: z.string().max(50).nullable().optional(),
|
|
147
|
+
stockType: z.enum(['DOC', 'POL']).nullable().optional(),
|
|
148
|
+
placementDate: z.string().datetime().nullable().optional(),
|
|
149
|
+
breedStandard: z.string().max(50).nullable().optional(),
|
|
138
150
|
pondSize: z.number().positive().nullable().optional(),
|
|
139
151
|
stockingDensity: z.number().positive().nullable().optional(),
|
|
140
152
|
status: groupStatusSchema.optional(),
|
|
@@ -153,9 +165,14 @@ export const batchRecordAttributesSchema = z
|
|
|
153
165
|
sampleCount: z.number().int().positive().nullable(),
|
|
154
166
|
eggCount: z.number().int().nonnegative().nullable(),
|
|
155
167
|
brokenEggs: z.number().int().nonnegative().nullable(),
|
|
168
|
+
crackedEggs: z.number().int().nonnegative().nullable().optional(),
|
|
169
|
+
wastedEggs: z.number().int().nonnegative().nullable().optional(),
|
|
170
|
+
mortalityReason: z.string().nullable().optional(),
|
|
156
171
|
feedType: z.string().nullable(),
|
|
157
172
|
feedQuantity: z.number().positive().nullable(),
|
|
158
173
|
feedUnit: z.string().nullable(),
|
|
174
|
+
waterQuantity: z.number().positive().nullable().optional(),
|
|
175
|
+
waterUnit: z.string().nullable().optional(),
|
|
159
176
|
medication: z.string().nullable(),
|
|
160
177
|
vaccineName: z.string().nullable(),
|
|
161
178
|
dosage: z.string().nullable(),
|
|
@@ -177,9 +194,14 @@ export const createBatchRecordAttributesSchema = z.object({
|
|
|
177
194
|
sampleCount: z.number().int().positive().optional(),
|
|
178
195
|
eggCount: z.number().int().nonnegative().optional(),
|
|
179
196
|
brokenEggs: z.number().int().nonnegative().optional(),
|
|
197
|
+
crackedEggs: z.number().int().nonnegative().optional(),
|
|
198
|
+
wastedEggs: z.number().int().nonnegative().optional(),
|
|
199
|
+
mortalityReason: z.enum(['natural', 'cull']).optional(),
|
|
180
200
|
feedType: z.string().max(100).optional(),
|
|
181
201
|
feedQuantity: z.number().positive().optional(),
|
|
182
202
|
feedUnit: z.string().max(10).default('kg'),
|
|
203
|
+
waterQuantity: z.number().positive().optional(),
|
|
204
|
+
waterUnit: z.string().max(10).optional(),
|
|
183
205
|
medication: z.string().max(200).optional(),
|
|
184
206
|
vaccineName: z.string().max(200).optional(),
|
|
185
207
|
dosage: z.string().max(100).optional(),
|
|
@@ -12,6 +12,8 @@ export declare const staffMemberAttributesSchema: z.ZodObject<{
|
|
|
12
12
|
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
13
13
|
isActive: z.ZodBoolean;
|
|
14
14
|
teamMemberId: z.ZodNullable<z.ZodString>;
|
|
15
|
+
assignedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
pieceUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["crate", "bird", "day"]>>>;
|
|
15
17
|
notes: z.ZodNullable<z.ZodString>;
|
|
16
18
|
} & {
|
|
17
19
|
createdAt: z.ZodString;
|
|
@@ -27,6 +29,8 @@ export declare const staffMemberAttributesSchema: z.ZodObject<{
|
|
|
27
29
|
payType: "monthly" | "daily" | "piece";
|
|
28
30
|
defaultAmount: number | null;
|
|
29
31
|
teamMemberId: string | null;
|
|
32
|
+
assignedGroupId?: string | null | undefined;
|
|
33
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
30
34
|
}, {
|
|
31
35
|
title: string | null;
|
|
32
36
|
createdAt: string;
|
|
@@ -38,6 +42,8 @@ export declare const staffMemberAttributesSchema: z.ZodObject<{
|
|
|
38
42
|
payType: "monthly" | "daily" | "piece";
|
|
39
43
|
defaultAmount: number | null;
|
|
40
44
|
teamMemberId: string | null;
|
|
45
|
+
assignedGroupId?: string | null | undefined;
|
|
46
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
41
47
|
}>;
|
|
42
48
|
export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
43
49
|
name: z.ZodString;
|
|
@@ -47,6 +53,8 @@ export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
47
53
|
currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
|
|
48
54
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
49
55
|
teamMemberId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
assignedGroupId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
pieceUnit: z.ZodOptional<z.ZodEnum<["crate", "bird", "day"]>>;
|
|
50
58
|
notes: z.ZodOptional<z.ZodString>;
|
|
51
59
|
}, "strip", z.ZodTypeAny, {
|
|
52
60
|
name: string;
|
|
@@ -57,6 +65,8 @@ export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
57
65
|
notes?: string | undefined;
|
|
58
66
|
defaultAmount?: number | undefined;
|
|
59
67
|
teamMemberId?: string | undefined;
|
|
68
|
+
assignedGroupId?: string | undefined;
|
|
69
|
+
pieceUnit?: "day" | "crate" | "bird" | undefined;
|
|
60
70
|
}, {
|
|
61
71
|
name: string;
|
|
62
72
|
title?: string | undefined;
|
|
@@ -66,6 +76,8 @@ export declare const createStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
66
76
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
67
77
|
defaultAmount?: number | undefined;
|
|
68
78
|
teamMemberId?: string | undefined;
|
|
79
|
+
assignedGroupId?: string | undefined;
|
|
80
|
+
pieceUnit?: "day" | "crate" | "bird" | undefined;
|
|
69
81
|
}>;
|
|
70
82
|
export declare const updateStaffMemberAttributesSchema: z.ZodObject<{
|
|
71
83
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -75,6 +87,8 @@ export declare const updateStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
75
87
|
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD"]>>;
|
|
76
88
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
77
89
|
teamMemberId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
assignedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
pieceUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["crate", "bird", "day"]>>>;
|
|
78
92
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
93
|
}, "strip", z.ZodTypeAny, {
|
|
80
94
|
title?: string | null | undefined;
|
|
@@ -85,6 +99,8 @@ export declare const updateStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
85
99
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
86
100
|
defaultAmount?: number | null | undefined;
|
|
87
101
|
teamMemberId?: string | null | undefined;
|
|
102
|
+
assignedGroupId?: string | null | undefined;
|
|
103
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
88
104
|
}, {
|
|
89
105
|
title?: string | null | undefined;
|
|
90
106
|
name?: string | undefined;
|
|
@@ -94,6 +110,8 @@ export declare const updateStaffMemberAttributesSchema: z.ZodObject<{
|
|
|
94
110
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
95
111
|
defaultAmount?: number | null | undefined;
|
|
96
112
|
teamMemberId?: string | null | undefined;
|
|
113
|
+
assignedGroupId?: string | null | undefined;
|
|
114
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
97
115
|
}>;
|
|
98
116
|
export declare const createStaffMemberSchema: z.ZodObject<{
|
|
99
117
|
type: z.ZodLiteral<"staff-members">;
|
|
@@ -105,6 +123,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
105
123
|
currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
|
|
106
124
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
107
125
|
teamMemberId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
assignedGroupId: z.ZodOptional<z.ZodString>;
|
|
127
|
+
pieceUnit: z.ZodOptional<z.ZodEnum<["crate", "bird", "day"]>>;
|
|
108
128
|
notes: z.ZodOptional<z.ZodString>;
|
|
109
129
|
}, "strip", z.ZodTypeAny, {
|
|
110
130
|
name: string;
|
|
@@ -115,6 +135,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
115
135
|
notes?: string | undefined;
|
|
116
136
|
defaultAmount?: number | undefined;
|
|
117
137
|
teamMemberId?: string | undefined;
|
|
138
|
+
assignedGroupId?: string | undefined;
|
|
139
|
+
pieceUnit?: "day" | "crate" | "bird" | undefined;
|
|
118
140
|
}, {
|
|
119
141
|
name: string;
|
|
120
142
|
title?: string | undefined;
|
|
@@ -124,6 +146,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
124
146
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
125
147
|
defaultAmount?: number | undefined;
|
|
126
148
|
teamMemberId?: string | undefined;
|
|
149
|
+
assignedGroupId?: string | undefined;
|
|
150
|
+
pieceUnit?: "day" | "crate" | "bird" | undefined;
|
|
127
151
|
}>;
|
|
128
152
|
}, "strip", z.ZodTypeAny, {
|
|
129
153
|
type: "staff-members";
|
|
@@ -136,6 +160,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
136
160
|
notes?: string | undefined;
|
|
137
161
|
defaultAmount?: number | undefined;
|
|
138
162
|
teamMemberId?: string | undefined;
|
|
163
|
+
assignedGroupId?: string | undefined;
|
|
164
|
+
pieceUnit?: "day" | "crate" | "bird" | undefined;
|
|
139
165
|
};
|
|
140
166
|
}, {
|
|
141
167
|
type: "staff-members";
|
|
@@ -148,6 +174,8 @@ export declare const createStaffMemberSchema: z.ZodObject<{
|
|
|
148
174
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
149
175
|
defaultAmount?: number | undefined;
|
|
150
176
|
teamMemberId?: string | undefined;
|
|
177
|
+
assignedGroupId?: string | undefined;
|
|
178
|
+
pieceUnit?: "day" | "crate" | "bird" | undefined;
|
|
151
179
|
};
|
|
152
180
|
}>;
|
|
153
181
|
export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
@@ -161,6 +189,8 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
161
189
|
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD"]>>;
|
|
162
190
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
163
191
|
teamMemberId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
assignedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
pieceUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["crate", "bird", "day"]>>>;
|
|
164
194
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
195
|
}, "strip", z.ZodTypeAny, {
|
|
166
196
|
title?: string | null | undefined;
|
|
@@ -171,6 +201,8 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
171
201
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
172
202
|
defaultAmount?: number | null | undefined;
|
|
173
203
|
teamMemberId?: string | null | undefined;
|
|
204
|
+
assignedGroupId?: string | null | undefined;
|
|
205
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
174
206
|
}, {
|
|
175
207
|
title?: string | null | undefined;
|
|
176
208
|
name?: string | undefined;
|
|
@@ -180,6 +212,8 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
180
212
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
181
213
|
defaultAmount?: number | null | undefined;
|
|
182
214
|
teamMemberId?: string | null | undefined;
|
|
215
|
+
assignedGroupId?: string | null | undefined;
|
|
216
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
183
217
|
}>;
|
|
184
218
|
}, "strip", z.ZodTypeAny, {
|
|
185
219
|
type: "staff-members";
|
|
@@ -193,6 +227,8 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
193
227
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
194
228
|
defaultAmount?: number | null | undefined;
|
|
195
229
|
teamMemberId?: string | null | undefined;
|
|
230
|
+
assignedGroupId?: string | null | undefined;
|
|
231
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
196
232
|
};
|
|
197
233
|
}, {
|
|
198
234
|
type: "staff-members";
|
|
@@ -206,6 +242,8 @@ export declare const updateStaffMemberSchema: z.ZodObject<{
|
|
|
206
242
|
payType?: "monthly" | "daily" | "piece" | undefined;
|
|
207
243
|
defaultAmount?: number | null | undefined;
|
|
208
244
|
teamMemberId?: string | null | undefined;
|
|
245
|
+
assignedGroupId?: string | null | undefined;
|
|
246
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
209
247
|
};
|
|
210
248
|
}>;
|
|
211
249
|
export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
@@ -219,6 +257,8 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
219
257
|
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
220
258
|
isActive: z.ZodBoolean;
|
|
221
259
|
teamMemberId: z.ZodNullable<z.ZodString>;
|
|
260
|
+
assignedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
|
+
pieceUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["crate", "bird", "day"]>>>;
|
|
222
262
|
notes: z.ZodNullable<z.ZodString>;
|
|
223
263
|
} & {
|
|
224
264
|
createdAt: z.ZodString;
|
|
@@ -234,6 +274,8 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
234
274
|
payType: "monthly" | "daily" | "piece";
|
|
235
275
|
defaultAmount: number | null;
|
|
236
276
|
teamMemberId: string | null;
|
|
277
|
+
assignedGroupId?: string | null | undefined;
|
|
278
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
237
279
|
}, {
|
|
238
280
|
title: string | null;
|
|
239
281
|
createdAt: string;
|
|
@@ -245,6 +287,8 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
245
287
|
payType: "monthly" | "daily" | "piece";
|
|
246
288
|
defaultAmount: number | null;
|
|
247
289
|
teamMemberId: string | null;
|
|
290
|
+
assignedGroupId?: string | null | undefined;
|
|
291
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
248
292
|
}>;
|
|
249
293
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
250
294
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -263,6 +307,8 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
263
307
|
payType: "monthly" | "daily" | "piece";
|
|
264
308
|
defaultAmount: number | null;
|
|
265
309
|
teamMemberId: string | null;
|
|
310
|
+
assignedGroupId?: string | null | undefined;
|
|
311
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
266
312
|
};
|
|
267
313
|
relationships?: Record<string, unknown> | undefined;
|
|
268
314
|
links?: Record<string, string> | undefined;
|
|
@@ -281,6 +327,8 @@ export declare const staffMemberResourceSchema: z.ZodObject<{
|
|
|
281
327
|
payType: "monthly" | "daily" | "piece";
|
|
282
328
|
defaultAmount: number | null;
|
|
283
329
|
teamMemberId: string | null;
|
|
330
|
+
assignedGroupId?: string | null | undefined;
|
|
331
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
284
332
|
};
|
|
285
333
|
relationships?: Record<string, unknown> | undefined;
|
|
286
334
|
links?: Record<string, string> | undefined;
|
|
@@ -298,6 +346,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
298
346
|
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
299
347
|
isActive: z.ZodBoolean;
|
|
300
348
|
teamMemberId: z.ZodNullable<z.ZodString>;
|
|
349
|
+
assignedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
pieceUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["crate", "bird", "day"]>>>;
|
|
301
351
|
notes: z.ZodNullable<z.ZodString>;
|
|
302
352
|
} & {
|
|
303
353
|
createdAt: z.ZodString;
|
|
@@ -313,6 +363,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
313
363
|
payType: "monthly" | "daily" | "piece";
|
|
314
364
|
defaultAmount: number | null;
|
|
315
365
|
teamMemberId: string | null;
|
|
366
|
+
assignedGroupId?: string | null | undefined;
|
|
367
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
316
368
|
}, {
|
|
317
369
|
title: string | null;
|
|
318
370
|
createdAt: string;
|
|
@@ -324,6 +376,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
324
376
|
payType: "monthly" | "daily" | "piece";
|
|
325
377
|
defaultAmount: number | null;
|
|
326
378
|
teamMemberId: string | null;
|
|
379
|
+
assignedGroupId?: string | null | undefined;
|
|
380
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
327
381
|
}>;
|
|
328
382
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
329
383
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -342,6 +396,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
342
396
|
payType: "monthly" | "daily" | "piece";
|
|
343
397
|
defaultAmount: number | null;
|
|
344
398
|
teamMemberId: string | null;
|
|
399
|
+
assignedGroupId?: string | null | undefined;
|
|
400
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
345
401
|
};
|
|
346
402
|
relationships?: Record<string, unknown> | undefined;
|
|
347
403
|
links?: Record<string, string> | undefined;
|
|
@@ -360,6 +416,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
360
416
|
payType: "monthly" | "daily" | "piece";
|
|
361
417
|
defaultAmount: number | null;
|
|
362
418
|
teamMemberId: string | null;
|
|
419
|
+
assignedGroupId?: string | null | undefined;
|
|
420
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
363
421
|
};
|
|
364
422
|
relationships?: Record<string, unknown> | undefined;
|
|
365
423
|
links?: Record<string, string> | undefined;
|
|
@@ -404,6 +462,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
404
462
|
payType: "monthly" | "daily" | "piece";
|
|
405
463
|
defaultAmount: number | null;
|
|
406
464
|
teamMemberId: string | null;
|
|
465
|
+
assignedGroupId?: string | null | undefined;
|
|
466
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
407
467
|
};
|
|
408
468
|
relationships?: Record<string, unknown> | undefined;
|
|
409
469
|
links?: Record<string, string> | undefined;
|
|
@@ -434,6 +494,8 @@ export declare const staffMemberResponseSchema: z.ZodObject<{
|
|
|
434
494
|
payType: "monthly" | "daily" | "piece";
|
|
435
495
|
defaultAmount: number | null;
|
|
436
496
|
teamMemberId: string | null;
|
|
497
|
+
assignedGroupId?: string | null | undefined;
|
|
498
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
437
499
|
};
|
|
438
500
|
relationships?: Record<string, unknown> | undefined;
|
|
439
501
|
links?: Record<string, string> | undefined;
|
|
@@ -462,6 +524,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
462
524
|
currency: z.ZodEnum<["NGN", "USD"]>;
|
|
463
525
|
isActive: z.ZodBoolean;
|
|
464
526
|
teamMemberId: z.ZodNullable<z.ZodString>;
|
|
527
|
+
assignedGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
pieceUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["crate", "bird", "day"]>>>;
|
|
465
529
|
notes: z.ZodNullable<z.ZodString>;
|
|
466
530
|
} & {
|
|
467
531
|
createdAt: z.ZodString;
|
|
@@ -477,6 +541,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
477
541
|
payType: "monthly" | "daily" | "piece";
|
|
478
542
|
defaultAmount: number | null;
|
|
479
543
|
teamMemberId: string | null;
|
|
544
|
+
assignedGroupId?: string | null | undefined;
|
|
545
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
480
546
|
}, {
|
|
481
547
|
title: string | null;
|
|
482
548
|
createdAt: string;
|
|
@@ -488,6 +554,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
488
554
|
payType: "monthly" | "daily" | "piece";
|
|
489
555
|
defaultAmount: number | null;
|
|
490
556
|
teamMemberId: string | null;
|
|
557
|
+
assignedGroupId?: string | null | undefined;
|
|
558
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
491
559
|
}>;
|
|
492
560
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
493
561
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -506,6 +574,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
506
574
|
payType: "monthly" | "daily" | "piece";
|
|
507
575
|
defaultAmount: number | null;
|
|
508
576
|
teamMemberId: string | null;
|
|
577
|
+
assignedGroupId?: string | null | undefined;
|
|
578
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
509
579
|
};
|
|
510
580
|
relationships?: Record<string, unknown> | undefined;
|
|
511
581
|
links?: Record<string, string> | undefined;
|
|
@@ -524,6 +594,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
524
594
|
payType: "monthly" | "daily" | "piece";
|
|
525
595
|
defaultAmount: number | null;
|
|
526
596
|
teamMemberId: string | null;
|
|
597
|
+
assignedGroupId?: string | null | undefined;
|
|
598
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
527
599
|
};
|
|
528
600
|
relationships?: Record<string, unknown> | undefined;
|
|
529
601
|
links?: Record<string, string> | undefined;
|
|
@@ -568,6 +640,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
568
640
|
payType: "monthly" | "daily" | "piece";
|
|
569
641
|
defaultAmount: number | null;
|
|
570
642
|
teamMemberId: string | null;
|
|
643
|
+
assignedGroupId?: string | null | undefined;
|
|
644
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
571
645
|
};
|
|
572
646
|
relationships?: Record<string, unknown> | undefined;
|
|
573
647
|
links?: Record<string, string> | undefined;
|
|
@@ -598,6 +672,8 @@ export declare const staffMemberListResponseSchema: z.ZodObject<{
|
|
|
598
672
|
payType: "monthly" | "daily" | "piece";
|
|
599
673
|
defaultAmount: number | null;
|
|
600
674
|
teamMemberId: string | null;
|
|
675
|
+
assignedGroupId?: string | null | undefined;
|
|
676
|
+
pieceUnit?: "day" | "crate" | "bird" | null | undefined;
|
|
601
677
|
};
|
|
602
678
|
relationships?: Record<string, unknown> | undefined;
|
|
603
679
|
links?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staff.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/staff.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAEH,eAAO,MAAM,kBAAkB,0CAAwC,CAAC;AACxE,eAAO,MAAM,mBAAmB,2BAAyB,CAAC;AAE1D,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"staff.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/staff.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAEH,eAAO,MAAM,kBAAkB,0CAAwC,CAAC;AACxE,eAAO,MAAM,mBAAmB,2BAAyB,CAAC;AAE1D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAad,CAAC;AAE3B,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;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AG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC/E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -14,6 +14,8 @@ export const staffMemberAttributesSchema = z
|
|
|
14
14
|
currency: staffCurrencySchema,
|
|
15
15
|
isActive: z.boolean(),
|
|
16
16
|
teamMemberId: z.string().uuid().nullable(),
|
|
17
|
+
assignedGroupId: z.string().uuid().nullable().optional(),
|
|
18
|
+
pieceUnit: z.enum(['crate', 'bird', 'day']).nullable().optional(),
|
|
17
19
|
notes: z.string().nullable(),
|
|
18
20
|
})
|
|
19
21
|
.merge(timestampsSchema);
|
|
@@ -25,6 +27,8 @@ export const createStaffMemberAttributesSchema = z.object({
|
|
|
25
27
|
currency: staffCurrencySchema.default('NGN'),
|
|
26
28
|
isActive: z.boolean().default(true),
|
|
27
29
|
teamMemberId: z.string().uuid().optional(),
|
|
30
|
+
assignedGroupId: z.string().uuid().optional(),
|
|
31
|
+
pieceUnit: z.enum(['crate', 'bird', 'day']).optional(),
|
|
28
32
|
notes: z.string().max(2000).optional(),
|
|
29
33
|
});
|
|
30
34
|
export const updateStaffMemberAttributesSchema = z.object({
|
|
@@ -35,6 +39,8 @@ export const updateStaffMemberAttributesSchema = z.object({
|
|
|
35
39
|
currency: staffCurrencySchema.optional(),
|
|
36
40
|
isActive: z.boolean().optional(),
|
|
37
41
|
teamMemberId: z.string().uuid().nullable().optional(),
|
|
42
|
+
assignedGroupId: z.string().uuid().nullable().optional(),
|
|
43
|
+
pieceUnit: z.enum(['crate', 'bird', 'day']).nullable().optional(),
|
|
38
44
|
notes: z.string().max(2000).nullable().optional(),
|
|
39
45
|
});
|
|
40
46
|
export const createStaffMemberSchema = z.object({
|