@taiger-common/model 1.0.55 → 1.0.57

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.
@@ -75,7 +75,7 @@ exports.GetProgramResponseSchema = zod_1.z.object({
75
75
  success: zod_1.z.boolean(),
76
76
  data: serialized_1.ProgramWithIdSchema,
77
77
  students: zod_1.z.array(serialized_1.StudentResponseSchema).optional(),
78
- vc: zod_1.z.union([zod_1.z.record(zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown())]).optional()
78
+ vc: zod_1.z.union([zod_1.z.record(zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown()), zod_1.z.null()]).optional()
79
79
  });
80
80
  exports.CreateProgramResponseSchema = (0, common_1.createApiResponseSchema)(serialized_1.ProgramWithIdSchema);
81
81
  exports.UpdateProgramResponseSchema = zod_1.z.object({
@@ -320,10 +320,15 @@ exports.BasedocumentationslinkSchema = zod_1.z.object({
320
320
  });
321
321
  // =========== AllCourse Schema ===========
322
322
  exports.AllCourseSchema = zod_1.z.object({
323
- updatedBy: zod_1.z.string(),
323
+ updatedBy: zod_1.z
324
+ .union([
325
+ zod_1.z.string(),
326
+ zod_1.z.object({ _id: zod_1.z.string().optional() }).passthrough()
327
+ ])
328
+ .optional(),
324
329
  all_course_chinese: zod_1.z.string(),
325
330
  all_course_english: zod_1.z.string(),
326
- description: zod_1.z.string()
331
+ description: zod_1.z.string().optional()
327
332
  });
328
333
  // =========== Permission Schema ===========
329
334
  exports.PermissionSchema = zod_1.z.object({
@@ -72,7 +72,7 @@ export var GetProgramResponseSchema = z.object({
72
72
  success: z.boolean(),
73
73
  data: ProgramWithIdSchema,
74
74
  students: z.array(StudentResponseSchema).optional(),
75
- vc: z.union([z.record(z.unknown()), z.array(z.unknown())]).optional()
75
+ vc: z.union([z.record(z.unknown()), z.array(z.unknown()), z.null()]).optional()
76
76
  });
77
77
  export var CreateProgramResponseSchema = createApiResponseSchema(ProgramWithIdSchema);
78
78
  export var UpdateProgramResponseSchema = z.object({
@@ -317,10 +317,15 @@ export var BasedocumentationslinkSchema = z.object({
317
317
  });
318
318
  // =========== AllCourse Schema ===========
319
319
  export var AllCourseSchema = z.object({
320
- updatedBy: z.string(),
320
+ updatedBy: z
321
+ .union([
322
+ z.string(),
323
+ z.object({ _id: z.string().optional() }).passthrough()
324
+ ])
325
+ .optional(),
321
326
  all_course_chinese: z.string(),
322
327
  all_course_english: z.string(),
323
- description: z.string()
328
+ description: z.string().optional()
324
329
  });
325
330
  // =========== Permission Schema ===========
326
331
  export var PermissionSchema = z.object({
@@ -4,44 +4,58 @@ export declare const GetAllCoursesResponseSchema: z.ZodObject<{
4
4
  message: z.ZodOptional<z.ZodString>;
5
5
  } & {
6
6
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
- updatedBy: z.ZodString;
7
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
8
+ _id: z.ZodOptional<z.ZodString>;
9
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10
+ _id: z.ZodOptional<z.ZodString>;
11
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12
+ _id: z.ZodOptional<z.ZodString>;
13
+ }, z.ZodTypeAny, "passthrough">>]>>;
8
14
  all_course_chinese: z.ZodString;
9
15
  all_course_english: z.ZodString;
10
- description: z.ZodString;
16
+ description: z.ZodOptional<z.ZodString>;
11
17
  } & {
12
18
  _id: z.ZodString;
13
19
  }, "strip", z.ZodTypeAny, {
14
20
  _id: string;
15
- description: string;
16
- updatedBy: string;
17
21
  all_course_chinese: string;
18
22
  all_course_english: string;
23
+ description?: string | undefined;
24
+ updatedBy?: string | z.objectOutputType<{
25
+ _id: z.ZodOptional<z.ZodString>;
26
+ }, z.ZodTypeAny, "passthrough"> | undefined;
19
27
  }, {
20
28
  _id: string;
21
- description: string;
22
- updatedBy: string;
23
29
  all_course_chinese: string;
24
30
  all_course_english: string;
31
+ description?: string | undefined;
32
+ updatedBy?: string | z.objectInputType<{
33
+ _id: z.ZodOptional<z.ZodString>;
34
+ }, z.ZodTypeAny, "passthrough"> | undefined;
25
35
  }>, "many">>;
26
36
  }, "strip", z.ZodTypeAny, {
27
37
  success: boolean;
28
38
  message?: string | undefined;
29
39
  data?: {
30
40
  _id: string;
31
- description: string;
32
- updatedBy: string;
33
41
  all_course_chinese: string;
34
42
  all_course_english: string;
43
+ description?: string | undefined;
44
+ updatedBy?: string | z.objectOutputType<{
45
+ _id: z.ZodOptional<z.ZodString>;
46
+ }, z.ZodTypeAny, "passthrough"> | undefined;
35
47
  }[] | undefined;
36
48
  }, {
37
49
  success: boolean;
38
50
  message?: string | undefined;
39
51
  data?: {
40
52
  _id: string;
41
- description: string;
42
- updatedBy: string;
43
53
  all_course_chinese: string;
44
54
  all_course_english: string;
55
+ description?: string | undefined;
56
+ updatedBy?: string | z.objectInputType<{
57
+ _id: z.ZodOptional<z.ZodString>;
58
+ }, z.ZodTypeAny, "passthrough"> | undefined;
45
59
  }[] | undefined;
46
60
  }>;
47
61
  export declare const GetAllCourseResponseSchema: z.ZodObject<{
@@ -49,44 +63,58 @@ export declare const GetAllCourseResponseSchema: z.ZodObject<{
49
63
  message: z.ZodOptional<z.ZodString>;
50
64
  } & {
51
65
  data: z.ZodOptional<z.ZodObject<{
52
- updatedBy: z.ZodString;
66
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
67
+ _id: z.ZodOptional<z.ZodString>;
68
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
69
+ _id: z.ZodOptional<z.ZodString>;
70
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
71
+ _id: z.ZodOptional<z.ZodString>;
72
+ }, z.ZodTypeAny, "passthrough">>]>>;
53
73
  all_course_chinese: z.ZodString;
54
74
  all_course_english: z.ZodString;
55
- description: z.ZodString;
75
+ description: z.ZodOptional<z.ZodString>;
56
76
  } & {
57
77
  _id: z.ZodString;
58
78
  }, "strip", z.ZodTypeAny, {
59
79
  _id: string;
60
- description: string;
61
- updatedBy: string;
62
80
  all_course_chinese: string;
63
81
  all_course_english: string;
82
+ description?: string | undefined;
83
+ updatedBy?: string | z.objectOutputType<{
84
+ _id: z.ZodOptional<z.ZodString>;
85
+ }, z.ZodTypeAny, "passthrough"> | undefined;
64
86
  }, {
65
87
  _id: string;
66
- description: string;
67
- updatedBy: string;
68
88
  all_course_chinese: string;
69
89
  all_course_english: string;
90
+ description?: string | undefined;
91
+ updatedBy?: string | z.objectInputType<{
92
+ _id: z.ZodOptional<z.ZodString>;
93
+ }, z.ZodTypeAny, "passthrough"> | undefined;
70
94
  }>>;
71
95
  }, "strip", z.ZodTypeAny, {
72
96
  success: boolean;
73
97
  message?: string | undefined;
74
98
  data?: {
75
99
  _id: string;
76
- description: string;
77
- updatedBy: string;
78
100
  all_course_chinese: string;
79
101
  all_course_english: string;
102
+ description?: string | undefined;
103
+ updatedBy?: string | z.objectOutputType<{
104
+ _id: z.ZodOptional<z.ZodString>;
105
+ }, z.ZodTypeAny, "passthrough"> | undefined;
80
106
  } | undefined;
81
107
  }, {
82
108
  success: boolean;
83
109
  message?: string | undefined;
84
110
  data?: {
85
111
  _id: string;
86
- description: string;
87
- updatedBy: string;
88
112
  all_course_chinese: string;
89
113
  all_course_english: string;
114
+ description?: string | undefined;
115
+ updatedBy?: string | z.objectInputType<{
116
+ _id: z.ZodOptional<z.ZodString>;
117
+ }, z.ZodTypeAny, "passthrough"> | undefined;
90
118
  } | undefined;
91
119
  }>;
92
120
  export declare const CreateAllCourseResponseSchema: z.ZodObject<{
@@ -94,44 +122,58 @@ export declare const CreateAllCourseResponseSchema: z.ZodObject<{
94
122
  message: z.ZodOptional<z.ZodString>;
95
123
  } & {
96
124
  data: z.ZodOptional<z.ZodObject<{
97
- updatedBy: z.ZodString;
125
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
126
+ _id: z.ZodOptional<z.ZodString>;
127
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
128
+ _id: z.ZodOptional<z.ZodString>;
129
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
130
+ _id: z.ZodOptional<z.ZodString>;
131
+ }, z.ZodTypeAny, "passthrough">>]>>;
98
132
  all_course_chinese: z.ZodString;
99
133
  all_course_english: z.ZodString;
100
- description: z.ZodString;
134
+ description: z.ZodOptional<z.ZodString>;
101
135
  } & {
102
136
  _id: z.ZodString;
103
137
  }, "strip", z.ZodTypeAny, {
104
138
  _id: string;
105
- description: string;
106
- updatedBy: string;
107
139
  all_course_chinese: string;
108
140
  all_course_english: string;
141
+ description?: string | undefined;
142
+ updatedBy?: string | z.objectOutputType<{
143
+ _id: z.ZodOptional<z.ZodString>;
144
+ }, z.ZodTypeAny, "passthrough"> | undefined;
109
145
  }, {
110
146
  _id: string;
111
- description: string;
112
- updatedBy: string;
113
147
  all_course_chinese: string;
114
148
  all_course_english: string;
149
+ description?: string | undefined;
150
+ updatedBy?: string | z.objectInputType<{
151
+ _id: z.ZodOptional<z.ZodString>;
152
+ }, z.ZodTypeAny, "passthrough"> | undefined;
115
153
  }>>;
116
154
  }, "strip", z.ZodTypeAny, {
117
155
  success: boolean;
118
156
  message?: string | undefined;
119
157
  data?: {
120
158
  _id: string;
121
- description: string;
122
- updatedBy: string;
123
159
  all_course_chinese: string;
124
160
  all_course_english: string;
161
+ description?: string | undefined;
162
+ updatedBy?: string | z.objectOutputType<{
163
+ _id: z.ZodOptional<z.ZodString>;
164
+ }, z.ZodTypeAny, "passthrough"> | undefined;
125
165
  } | undefined;
126
166
  }, {
127
167
  success: boolean;
128
168
  message?: string | undefined;
129
169
  data?: {
130
170
  _id: string;
131
- description: string;
132
- updatedBy: string;
133
171
  all_course_chinese: string;
134
172
  all_course_english: string;
173
+ description?: string | undefined;
174
+ updatedBy?: string | z.objectInputType<{
175
+ _id: z.ZodOptional<z.ZodString>;
176
+ }, z.ZodTypeAny, "passthrough"> | undefined;
135
177
  } | undefined;
136
178
  }>;
137
179
  export declare const UpdateAllCourseResponseSchema: z.ZodObject<{
@@ -139,44 +181,58 @@ export declare const UpdateAllCourseResponseSchema: z.ZodObject<{
139
181
  message: z.ZodOptional<z.ZodString>;
140
182
  } & {
141
183
  data: z.ZodOptional<z.ZodObject<{
142
- updatedBy: z.ZodString;
184
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
185
+ _id: z.ZodOptional<z.ZodString>;
186
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
187
+ _id: z.ZodOptional<z.ZodString>;
188
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
189
+ _id: z.ZodOptional<z.ZodString>;
190
+ }, z.ZodTypeAny, "passthrough">>]>>;
143
191
  all_course_chinese: z.ZodString;
144
192
  all_course_english: z.ZodString;
145
- description: z.ZodString;
193
+ description: z.ZodOptional<z.ZodString>;
146
194
  } & {
147
195
  _id: z.ZodString;
148
196
  }, "strip", z.ZodTypeAny, {
149
197
  _id: string;
150
- description: string;
151
- updatedBy: string;
152
198
  all_course_chinese: string;
153
199
  all_course_english: string;
200
+ description?: string | undefined;
201
+ updatedBy?: string | z.objectOutputType<{
202
+ _id: z.ZodOptional<z.ZodString>;
203
+ }, z.ZodTypeAny, "passthrough"> | undefined;
154
204
  }, {
155
205
  _id: string;
156
- description: string;
157
- updatedBy: string;
158
206
  all_course_chinese: string;
159
207
  all_course_english: string;
208
+ description?: string | undefined;
209
+ updatedBy?: string | z.objectInputType<{
210
+ _id: z.ZodOptional<z.ZodString>;
211
+ }, z.ZodTypeAny, "passthrough"> | undefined;
160
212
  }>>;
161
213
  }, "strip", z.ZodTypeAny, {
162
214
  success: boolean;
163
215
  message?: string | undefined;
164
216
  data?: {
165
217
  _id: string;
166
- description: string;
167
- updatedBy: string;
168
218
  all_course_chinese: string;
169
219
  all_course_english: string;
220
+ description?: string | undefined;
221
+ updatedBy?: string | z.objectOutputType<{
222
+ _id: z.ZodOptional<z.ZodString>;
223
+ }, z.ZodTypeAny, "passthrough"> | undefined;
170
224
  } | undefined;
171
225
  }, {
172
226
  success: boolean;
173
227
  message?: string | undefined;
174
228
  data?: {
175
229
  _id: string;
176
- description: string;
177
- updatedBy: string;
178
230
  all_course_chinese: string;
179
231
  all_course_english: string;
232
+ description?: string | undefined;
233
+ updatedBy?: string | z.objectInputType<{
234
+ _id: z.ZodOptional<z.ZodString>;
235
+ }, z.ZodTypeAny, "passthrough"> | undefined;
180
236
  } | undefined;
181
237
  }>;
182
238
  export declare const DeleteAllCourseResponseSchema: z.ZodObject<{
@@ -1433,7 +1433,7 @@ export declare const GetProgramResponseSchema: z.ZodObject<{
1433
1433
  vcId?: string | undefined;
1434
1434
  }>;
1435
1435
  students: z.ZodOptional<z.ZodArray<z.ZodType<import("..").IStudentResponseDef, z.ZodTypeDef, import("..").IStudentResponseDef>, "many">>;
1436
- vc: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>>;
1436
+ vc: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">, z.ZodNull]>>;
1437
1437
  }, "strip", z.ZodTypeAny, {
1438
1438
  data: {
1439
1439
  school: string;
@@ -1518,7 +1518,7 @@ export declare const GetProgramResponseSchema: z.ZodObject<{
1518
1518
  };
1519
1519
  success: boolean;
1520
1520
  students?: import("..").IStudentResponseDef[] | undefined;
1521
- vc?: unknown[] | Record<string, unknown> | undefined;
1521
+ vc?: unknown[] | Record<string, unknown> | null | undefined;
1522
1522
  }, {
1523
1523
  data: {
1524
1524
  school: string;
@@ -1603,7 +1603,7 @@ export declare const GetProgramResponseSchema: z.ZodObject<{
1603
1603
  };
1604
1604
  success: boolean;
1605
1605
  students?: import("..").IStudentResponseDef[] | undefined;
1606
- vc?: unknown[] | Record<string, unknown> | undefined;
1606
+ vc?: unknown[] | Record<string, unknown> | null | undefined;
1607
1607
  }>;
1608
1608
  export declare const CreateProgramResponseSchema: z.ZodObject<{
1609
1609
  success: z.ZodBoolean;
@@ -1299,20 +1299,30 @@ export declare const BasedocumentationslinkSchema: z.ZodObject<{
1299
1299
  }>;
1300
1300
  export type IBasedocumentationslinkSchema = z.infer<typeof BasedocumentationslinkSchema>;
1301
1301
  export declare const AllCourseSchema: z.ZodObject<{
1302
- updatedBy: z.ZodString;
1302
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1303
+ _id: z.ZodOptional<z.ZodString>;
1304
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1305
+ _id: z.ZodOptional<z.ZodString>;
1306
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1307
+ _id: z.ZodOptional<z.ZodString>;
1308
+ }, z.ZodTypeAny, "passthrough">>]>>;
1303
1309
  all_course_chinese: z.ZodString;
1304
1310
  all_course_english: z.ZodString;
1305
- description: z.ZodString;
1311
+ description: z.ZodOptional<z.ZodString>;
1306
1312
  }, "strip", z.ZodTypeAny, {
1307
- description: string;
1308
- updatedBy: string;
1309
1313
  all_course_chinese: string;
1310
1314
  all_course_english: string;
1315
+ description?: string | undefined;
1316
+ updatedBy?: string | z.objectOutputType<{
1317
+ _id: z.ZodOptional<z.ZodString>;
1318
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1311
1319
  }, {
1312
- description: string;
1313
- updatedBy: string;
1314
1320
  all_course_chinese: string;
1315
1321
  all_course_english: string;
1322
+ description?: string | undefined;
1323
+ updatedBy?: string | z.objectInputType<{
1324
+ _id: z.ZodOptional<z.ZodString>;
1325
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1316
1326
  }>;
1317
1327
  export type IAllCourseSchema = z.infer<typeof AllCourseSchema>;
1318
1328
  export declare const PermissionSchema: z.ZodObject<{
@@ -8635,24 +8635,34 @@ export declare const ProgramrequirementWithIdSchema: z.ZodObject<{
8635
8635
  }>;
8636
8636
  export type IProgramrequirementWithId = z.infer<typeof ProgramrequirementWithIdSchema>;
8637
8637
  export declare const AllCourseWithIdSchema: z.ZodObject<{
8638
- updatedBy: z.ZodString;
8638
+ updatedBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
8639
+ _id: z.ZodOptional<z.ZodString>;
8640
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8641
+ _id: z.ZodOptional<z.ZodString>;
8642
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8643
+ _id: z.ZodOptional<z.ZodString>;
8644
+ }, z.ZodTypeAny, "passthrough">>]>>;
8639
8645
  all_course_chinese: z.ZodString;
8640
8646
  all_course_english: z.ZodString;
8641
- description: z.ZodString;
8647
+ description: z.ZodOptional<z.ZodString>;
8642
8648
  } & {
8643
8649
  _id: z.ZodString;
8644
8650
  }, "strip", z.ZodTypeAny, {
8645
8651
  _id: string;
8646
- description: string;
8647
- updatedBy: string;
8648
8652
  all_course_chinese: string;
8649
8653
  all_course_english: string;
8654
+ description?: string | undefined;
8655
+ updatedBy?: string | z.objectOutputType<{
8656
+ _id: z.ZodOptional<z.ZodString>;
8657
+ }, z.ZodTypeAny, "passthrough"> | undefined;
8650
8658
  }, {
8651
8659
  _id: string;
8652
- description: string;
8653
- updatedBy: string;
8654
8660
  all_course_chinese: string;
8655
8661
  all_course_english: string;
8662
+ description?: string | undefined;
8663
+ updatedBy?: string | z.objectInputType<{
8664
+ _id: z.ZodOptional<z.ZodString>;
8665
+ }, z.ZodTypeAny, "passthrough"> | undefined;
8656
8666
  }>;
8657
8667
  export type IAllCourseWithId = z.infer<typeof AllCourseWithIdSchema>;
8658
8668
  export declare const KeywordsetWithIdSchema: z.ZodObject<{