@brite-future-schools-contracts/contracts 1.0.0 → 1.0.2
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/{chunk-TV57ZLZQ.mjs → chunk-X5COKFX4.mjs} +52 -2
- package/dist/chunk-X5COKFX4.mjs.map +1 -0
- package/dist/contracts/index.d.mts +444 -0
- package/dist/contracts/index.d.ts +444 -0
- package/dist/contracts/index.js +51 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/index.mjs +1 -1
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -2
- package/src/contracts/index.ts +68 -0
- package/dist/chunk-TV57ZLZQ.mjs.map +0 -1
|
@@ -1081,6 +1081,228 @@ declare const studentsContract: {
|
|
|
1081
1081
|
}, {
|
|
1082
1082
|
success: boolean;
|
|
1083
1083
|
}>, Record<never, never>, Record<never, never>>;
|
|
1084
|
+
listGuardians: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1085
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
}, "strip", z.ZodTypeAny, {
|
|
1088
|
+
branchId?: string | undefined;
|
|
1089
|
+
search?: string | undefined;
|
|
1090
|
+
}, {
|
|
1091
|
+
branchId?: string | undefined;
|
|
1092
|
+
search?: string | undefined;
|
|
1093
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
1094
|
+
id: z.ZodString;
|
|
1095
|
+
userId: z.ZodString;
|
|
1096
|
+
firstName: z.ZodString;
|
|
1097
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
1098
|
+
lastName: z.ZodString;
|
|
1099
|
+
relationship: z.ZodString;
|
|
1100
|
+
phone: z.ZodString;
|
|
1101
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1102
|
+
nationalId: z.ZodNullable<z.ZodString>;
|
|
1103
|
+
occupation: z.ZodNullable<z.ZodString>;
|
|
1104
|
+
address: z.ZodNullable<z.ZodString>;
|
|
1105
|
+
}, "strip", z.ZodTypeAny, {
|
|
1106
|
+
email: string | null;
|
|
1107
|
+
id: string;
|
|
1108
|
+
firstName: string;
|
|
1109
|
+
middleName: string | null;
|
|
1110
|
+
lastName: string;
|
|
1111
|
+
phone: string;
|
|
1112
|
+
address: string | null;
|
|
1113
|
+
userId: string;
|
|
1114
|
+
relationship: string;
|
|
1115
|
+
nationalId: string | null;
|
|
1116
|
+
occupation: string | null;
|
|
1117
|
+
}, {
|
|
1118
|
+
email: string | null;
|
|
1119
|
+
id: string;
|
|
1120
|
+
firstName: string;
|
|
1121
|
+
middleName: string | null;
|
|
1122
|
+
lastName: string;
|
|
1123
|
+
phone: string;
|
|
1124
|
+
address: string | null;
|
|
1125
|
+
userId: string;
|
|
1126
|
+
relationship: string;
|
|
1127
|
+
nationalId: string | null;
|
|
1128
|
+
occupation: string | null;
|
|
1129
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
1130
|
+
createGuardian: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1131
|
+
firstName: z.ZodString;
|
|
1132
|
+
middleName: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
lastName: z.ZodString;
|
|
1134
|
+
relationship: z.ZodString;
|
|
1135
|
+
phone: z.ZodString;
|
|
1136
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
nationalId: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
occupation: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1140
|
+
}, "strip", z.ZodTypeAny, {
|
|
1141
|
+
firstName: string;
|
|
1142
|
+
lastName: string;
|
|
1143
|
+
phone: string;
|
|
1144
|
+
relationship: string;
|
|
1145
|
+
email?: string | undefined;
|
|
1146
|
+
middleName?: string | undefined;
|
|
1147
|
+
address?: string | undefined;
|
|
1148
|
+
nationalId?: string | undefined;
|
|
1149
|
+
occupation?: string | undefined;
|
|
1150
|
+
}, {
|
|
1151
|
+
firstName: string;
|
|
1152
|
+
lastName: string;
|
|
1153
|
+
phone: string;
|
|
1154
|
+
relationship: string;
|
|
1155
|
+
email?: string | undefined;
|
|
1156
|
+
middleName?: string | undefined;
|
|
1157
|
+
address?: string | undefined;
|
|
1158
|
+
nationalId?: string | undefined;
|
|
1159
|
+
occupation?: string | undefined;
|
|
1160
|
+
}>, z.ZodObject<{
|
|
1161
|
+
id: z.ZodString;
|
|
1162
|
+
userId: z.ZodString;
|
|
1163
|
+
firstName: z.ZodString;
|
|
1164
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
1165
|
+
lastName: z.ZodString;
|
|
1166
|
+
relationship: z.ZodString;
|
|
1167
|
+
phone: z.ZodString;
|
|
1168
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1169
|
+
nationalId: z.ZodNullable<z.ZodString>;
|
|
1170
|
+
occupation: z.ZodNullable<z.ZodString>;
|
|
1171
|
+
address: z.ZodNullable<z.ZodString>;
|
|
1172
|
+
}, "strip", z.ZodTypeAny, {
|
|
1173
|
+
email: string | null;
|
|
1174
|
+
id: string;
|
|
1175
|
+
firstName: string;
|
|
1176
|
+
middleName: string | null;
|
|
1177
|
+
lastName: string;
|
|
1178
|
+
phone: string;
|
|
1179
|
+
address: string | null;
|
|
1180
|
+
userId: string;
|
|
1181
|
+
relationship: string;
|
|
1182
|
+
nationalId: string | null;
|
|
1183
|
+
occupation: string | null;
|
|
1184
|
+
}, {
|
|
1185
|
+
email: string | null;
|
|
1186
|
+
id: string;
|
|
1187
|
+
firstName: string;
|
|
1188
|
+
middleName: string | null;
|
|
1189
|
+
lastName: string;
|
|
1190
|
+
phone: string;
|
|
1191
|
+
address: string | null;
|
|
1192
|
+
userId: string;
|
|
1193
|
+
relationship: string;
|
|
1194
|
+
nationalId: string | null;
|
|
1195
|
+
occupation: string | null;
|
|
1196
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
1197
|
+
listClasses: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1198
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
}, "strip", z.ZodTypeAny, {
|
|
1200
|
+
branchId?: string | undefined;
|
|
1201
|
+
}, {
|
|
1202
|
+
branchId?: string | undefined;
|
|
1203
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
1204
|
+
id: z.ZodString;
|
|
1205
|
+
name: z.ZodString;
|
|
1206
|
+
grade: z.ZodString;
|
|
1207
|
+
level: z.ZodString;
|
|
1208
|
+
}, "strip", z.ZodTypeAny, {
|
|
1209
|
+
id: string;
|
|
1210
|
+
name: string;
|
|
1211
|
+
grade: string;
|
|
1212
|
+
level: string;
|
|
1213
|
+
}, {
|
|
1214
|
+
id: string;
|
|
1215
|
+
name: string;
|
|
1216
|
+
grade: string;
|
|
1217
|
+
level: string;
|
|
1218
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
1219
|
+
listGrades: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1220
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
}, "strip", z.ZodTypeAny, {
|
|
1222
|
+
branchId?: string | undefined;
|
|
1223
|
+
}, {
|
|
1224
|
+
branchId?: string | undefined;
|
|
1225
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
1226
|
+
id: z.ZodString;
|
|
1227
|
+
name: z.ZodString;
|
|
1228
|
+
level: z.ZodString;
|
|
1229
|
+
}, "strip", z.ZodTypeAny, {
|
|
1230
|
+
id: string;
|
|
1231
|
+
name: string;
|
|
1232
|
+
level: string;
|
|
1233
|
+
}, {
|
|
1234
|
+
id: string;
|
|
1235
|
+
name: string;
|
|
1236
|
+
level: string;
|
|
1237
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
1238
|
+
listTerms: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1239
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
}, "strip", z.ZodTypeAny, {
|
|
1241
|
+
branchId?: string | undefined;
|
|
1242
|
+
}, {
|
|
1243
|
+
branchId?: string | undefined;
|
|
1244
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
1245
|
+
id: z.ZodString;
|
|
1246
|
+
name: z.ZodString;
|
|
1247
|
+
isCurrent: z.ZodBoolean;
|
|
1248
|
+
startDate: z.ZodString;
|
|
1249
|
+
endDate: z.ZodString;
|
|
1250
|
+
}, "strip", z.ZodTypeAny, {
|
|
1251
|
+
id: string;
|
|
1252
|
+
name: string;
|
|
1253
|
+
startDate: string;
|
|
1254
|
+
endDate: string;
|
|
1255
|
+
isCurrent: boolean;
|
|
1256
|
+
}, {
|
|
1257
|
+
id: string;
|
|
1258
|
+
name: string;
|
|
1259
|
+
startDate: string;
|
|
1260
|
+
endDate: string;
|
|
1261
|
+
isCurrent: boolean;
|
|
1262
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
1263
|
+
listSponsors: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1264
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
}, "strip", z.ZodTypeAny, {
|
|
1266
|
+
branchId?: string | undefined;
|
|
1267
|
+
}, {
|
|
1268
|
+
branchId?: string | undefined;
|
|
1269
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
1270
|
+
id: z.ZodString;
|
|
1271
|
+
branchId: z.ZodString;
|
|
1272
|
+
type: z.ZodEnum<["organisation", "individual"]>;
|
|
1273
|
+
organisationName: z.ZodNullable<z.ZodString>;
|
|
1274
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1275
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
1276
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1277
|
+
contactUserId: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
phone: z.ZodString;
|
|
1279
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1280
|
+
address: z.ZodNullable<z.ZodString>;
|
|
1281
|
+
}, "strip", z.ZodTypeAny, {
|
|
1282
|
+
type: "organisation" | "individual";
|
|
1283
|
+
email: string | null;
|
|
1284
|
+
id: string;
|
|
1285
|
+
firstName: string | null;
|
|
1286
|
+
middleName: string | null;
|
|
1287
|
+
lastName: string | null;
|
|
1288
|
+
branchId: string;
|
|
1289
|
+
phone: string;
|
|
1290
|
+
address: string | null;
|
|
1291
|
+
organisationName: string | null;
|
|
1292
|
+
contactUserId: string | null;
|
|
1293
|
+
}, {
|
|
1294
|
+
type: "organisation" | "individual";
|
|
1295
|
+
email: string | null;
|
|
1296
|
+
id: string;
|
|
1297
|
+
firstName: string | null;
|
|
1298
|
+
middleName: string | null;
|
|
1299
|
+
lastName: string | null;
|
|
1300
|
+
branchId: string;
|
|
1301
|
+
phone: string;
|
|
1302
|
+
address: string | null;
|
|
1303
|
+
organisationName: string | null;
|
|
1304
|
+
contactUserId: string | null;
|
|
1305
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
1084
1306
|
};
|
|
1085
1307
|
declare const academicsContract: {
|
|
1086
1308
|
subjects: {
|
|
@@ -4287,6 +4509,228 @@ declare const appContract: {
|
|
|
4287
4509
|
}, {
|
|
4288
4510
|
success: boolean;
|
|
4289
4511
|
}>, Record<never, never>, Record<never, never>>;
|
|
4512
|
+
listGuardians: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4513
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
4514
|
+
search: z.ZodOptional<z.ZodString>;
|
|
4515
|
+
}, "strip", z.ZodTypeAny, {
|
|
4516
|
+
branchId?: string | undefined;
|
|
4517
|
+
search?: string | undefined;
|
|
4518
|
+
}, {
|
|
4519
|
+
branchId?: string | undefined;
|
|
4520
|
+
search?: string | undefined;
|
|
4521
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4522
|
+
id: z.ZodString;
|
|
4523
|
+
userId: z.ZodString;
|
|
4524
|
+
firstName: z.ZodString;
|
|
4525
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
4526
|
+
lastName: z.ZodString;
|
|
4527
|
+
relationship: z.ZodString;
|
|
4528
|
+
phone: z.ZodString;
|
|
4529
|
+
email: z.ZodNullable<z.ZodString>;
|
|
4530
|
+
nationalId: z.ZodNullable<z.ZodString>;
|
|
4531
|
+
occupation: z.ZodNullable<z.ZodString>;
|
|
4532
|
+
address: z.ZodNullable<z.ZodString>;
|
|
4533
|
+
}, "strip", z.ZodTypeAny, {
|
|
4534
|
+
email: string | null;
|
|
4535
|
+
id: string;
|
|
4536
|
+
firstName: string;
|
|
4537
|
+
middleName: string | null;
|
|
4538
|
+
lastName: string;
|
|
4539
|
+
phone: string;
|
|
4540
|
+
address: string | null;
|
|
4541
|
+
userId: string;
|
|
4542
|
+
relationship: string;
|
|
4543
|
+
nationalId: string | null;
|
|
4544
|
+
occupation: string | null;
|
|
4545
|
+
}, {
|
|
4546
|
+
email: string | null;
|
|
4547
|
+
id: string;
|
|
4548
|
+
firstName: string;
|
|
4549
|
+
middleName: string | null;
|
|
4550
|
+
lastName: string;
|
|
4551
|
+
phone: string;
|
|
4552
|
+
address: string | null;
|
|
4553
|
+
userId: string;
|
|
4554
|
+
relationship: string;
|
|
4555
|
+
nationalId: string | null;
|
|
4556
|
+
occupation: string | null;
|
|
4557
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4558
|
+
createGuardian: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4559
|
+
firstName: z.ZodString;
|
|
4560
|
+
middleName: z.ZodOptional<z.ZodString>;
|
|
4561
|
+
lastName: z.ZodString;
|
|
4562
|
+
relationship: z.ZodString;
|
|
4563
|
+
phone: z.ZodString;
|
|
4564
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4565
|
+
nationalId: z.ZodOptional<z.ZodString>;
|
|
4566
|
+
occupation: z.ZodOptional<z.ZodString>;
|
|
4567
|
+
address: z.ZodOptional<z.ZodString>;
|
|
4568
|
+
}, "strip", z.ZodTypeAny, {
|
|
4569
|
+
firstName: string;
|
|
4570
|
+
lastName: string;
|
|
4571
|
+
phone: string;
|
|
4572
|
+
relationship: string;
|
|
4573
|
+
email?: string | undefined;
|
|
4574
|
+
middleName?: string | undefined;
|
|
4575
|
+
address?: string | undefined;
|
|
4576
|
+
nationalId?: string | undefined;
|
|
4577
|
+
occupation?: string | undefined;
|
|
4578
|
+
}, {
|
|
4579
|
+
firstName: string;
|
|
4580
|
+
lastName: string;
|
|
4581
|
+
phone: string;
|
|
4582
|
+
relationship: string;
|
|
4583
|
+
email?: string | undefined;
|
|
4584
|
+
middleName?: string | undefined;
|
|
4585
|
+
address?: string | undefined;
|
|
4586
|
+
nationalId?: string | undefined;
|
|
4587
|
+
occupation?: string | undefined;
|
|
4588
|
+
}>, z.ZodObject<{
|
|
4589
|
+
id: z.ZodString;
|
|
4590
|
+
userId: z.ZodString;
|
|
4591
|
+
firstName: z.ZodString;
|
|
4592
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
4593
|
+
lastName: z.ZodString;
|
|
4594
|
+
relationship: z.ZodString;
|
|
4595
|
+
phone: z.ZodString;
|
|
4596
|
+
email: z.ZodNullable<z.ZodString>;
|
|
4597
|
+
nationalId: z.ZodNullable<z.ZodString>;
|
|
4598
|
+
occupation: z.ZodNullable<z.ZodString>;
|
|
4599
|
+
address: z.ZodNullable<z.ZodString>;
|
|
4600
|
+
}, "strip", z.ZodTypeAny, {
|
|
4601
|
+
email: string | null;
|
|
4602
|
+
id: string;
|
|
4603
|
+
firstName: string;
|
|
4604
|
+
middleName: string | null;
|
|
4605
|
+
lastName: string;
|
|
4606
|
+
phone: string;
|
|
4607
|
+
address: string | null;
|
|
4608
|
+
userId: string;
|
|
4609
|
+
relationship: string;
|
|
4610
|
+
nationalId: string | null;
|
|
4611
|
+
occupation: string | null;
|
|
4612
|
+
}, {
|
|
4613
|
+
email: string | null;
|
|
4614
|
+
id: string;
|
|
4615
|
+
firstName: string;
|
|
4616
|
+
middleName: string | null;
|
|
4617
|
+
lastName: string;
|
|
4618
|
+
phone: string;
|
|
4619
|
+
address: string | null;
|
|
4620
|
+
userId: string;
|
|
4621
|
+
relationship: string;
|
|
4622
|
+
nationalId: string | null;
|
|
4623
|
+
occupation: string | null;
|
|
4624
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
4625
|
+
listClasses: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4626
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
4627
|
+
}, "strip", z.ZodTypeAny, {
|
|
4628
|
+
branchId?: string | undefined;
|
|
4629
|
+
}, {
|
|
4630
|
+
branchId?: string | undefined;
|
|
4631
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4632
|
+
id: z.ZodString;
|
|
4633
|
+
name: z.ZodString;
|
|
4634
|
+
grade: z.ZodString;
|
|
4635
|
+
level: z.ZodString;
|
|
4636
|
+
}, "strip", z.ZodTypeAny, {
|
|
4637
|
+
id: string;
|
|
4638
|
+
name: string;
|
|
4639
|
+
grade: string;
|
|
4640
|
+
level: string;
|
|
4641
|
+
}, {
|
|
4642
|
+
id: string;
|
|
4643
|
+
name: string;
|
|
4644
|
+
grade: string;
|
|
4645
|
+
level: string;
|
|
4646
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4647
|
+
listGrades: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4648
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
4649
|
+
}, "strip", z.ZodTypeAny, {
|
|
4650
|
+
branchId?: string | undefined;
|
|
4651
|
+
}, {
|
|
4652
|
+
branchId?: string | undefined;
|
|
4653
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4654
|
+
id: z.ZodString;
|
|
4655
|
+
name: z.ZodString;
|
|
4656
|
+
level: z.ZodString;
|
|
4657
|
+
}, "strip", z.ZodTypeAny, {
|
|
4658
|
+
id: string;
|
|
4659
|
+
name: string;
|
|
4660
|
+
level: string;
|
|
4661
|
+
}, {
|
|
4662
|
+
id: string;
|
|
4663
|
+
name: string;
|
|
4664
|
+
level: string;
|
|
4665
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4666
|
+
listTerms: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4667
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
4668
|
+
}, "strip", z.ZodTypeAny, {
|
|
4669
|
+
branchId?: string | undefined;
|
|
4670
|
+
}, {
|
|
4671
|
+
branchId?: string | undefined;
|
|
4672
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4673
|
+
id: z.ZodString;
|
|
4674
|
+
name: z.ZodString;
|
|
4675
|
+
isCurrent: z.ZodBoolean;
|
|
4676
|
+
startDate: z.ZodString;
|
|
4677
|
+
endDate: z.ZodString;
|
|
4678
|
+
}, "strip", z.ZodTypeAny, {
|
|
4679
|
+
id: string;
|
|
4680
|
+
name: string;
|
|
4681
|
+
startDate: string;
|
|
4682
|
+
endDate: string;
|
|
4683
|
+
isCurrent: boolean;
|
|
4684
|
+
}, {
|
|
4685
|
+
id: string;
|
|
4686
|
+
name: string;
|
|
4687
|
+
startDate: string;
|
|
4688
|
+
endDate: string;
|
|
4689
|
+
isCurrent: boolean;
|
|
4690
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4691
|
+
listSponsors: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4692
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
4693
|
+
}, "strip", z.ZodTypeAny, {
|
|
4694
|
+
branchId?: string | undefined;
|
|
4695
|
+
}, {
|
|
4696
|
+
branchId?: string | undefined;
|
|
4697
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4698
|
+
id: z.ZodString;
|
|
4699
|
+
branchId: z.ZodString;
|
|
4700
|
+
type: z.ZodEnum<["organisation", "individual"]>;
|
|
4701
|
+
organisationName: z.ZodNullable<z.ZodString>;
|
|
4702
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
4703
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
4704
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
4705
|
+
contactUserId: z.ZodNullable<z.ZodString>;
|
|
4706
|
+
phone: z.ZodString;
|
|
4707
|
+
email: z.ZodNullable<z.ZodString>;
|
|
4708
|
+
address: z.ZodNullable<z.ZodString>;
|
|
4709
|
+
}, "strip", z.ZodTypeAny, {
|
|
4710
|
+
type: "organisation" | "individual";
|
|
4711
|
+
email: string | null;
|
|
4712
|
+
id: string;
|
|
4713
|
+
firstName: string | null;
|
|
4714
|
+
middleName: string | null;
|
|
4715
|
+
lastName: string | null;
|
|
4716
|
+
branchId: string;
|
|
4717
|
+
phone: string;
|
|
4718
|
+
address: string | null;
|
|
4719
|
+
organisationName: string | null;
|
|
4720
|
+
contactUserId: string | null;
|
|
4721
|
+
}, {
|
|
4722
|
+
type: "organisation" | "individual";
|
|
4723
|
+
email: string | null;
|
|
4724
|
+
id: string;
|
|
4725
|
+
firstName: string | null;
|
|
4726
|
+
middleName: string | null;
|
|
4727
|
+
lastName: string | null;
|
|
4728
|
+
branchId: string;
|
|
4729
|
+
phone: string;
|
|
4730
|
+
address: string | null;
|
|
4731
|
+
organisationName: string | null;
|
|
4732
|
+
contactUserId: string | null;
|
|
4733
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4290
4734
|
};
|
|
4291
4735
|
academics: {
|
|
4292
4736
|
subjects: {
|
package/dist/contracts/index.js
CHANGED
|
@@ -504,7 +504,57 @@ var studentsContract = {
|
|
|
504
504
|
termId: uuidSchema,
|
|
505
505
|
feeItemIds: import_zod2.z.array(uuidSchema)
|
|
506
506
|
})
|
|
507
|
-
).output(import_zod2.z.object({ success: import_zod2.z.boolean() }))
|
|
507
|
+
).output(import_zod2.z.object({ success: import_zod2.z.boolean() })),
|
|
508
|
+
listGuardians: import_contract.oc.input(
|
|
509
|
+
import_zod2.z.object({
|
|
510
|
+
branchId: uuidSchema.optional(),
|
|
511
|
+
search: import_zod2.z.string().optional()
|
|
512
|
+
})
|
|
513
|
+
).output(import_zod2.z.array(guardianSchema)),
|
|
514
|
+
createGuardian: import_contract.oc.input(
|
|
515
|
+
import_zod2.z.object({
|
|
516
|
+
firstName: import_zod2.z.string().min(1),
|
|
517
|
+
middleName: import_zod2.z.string().optional(),
|
|
518
|
+
lastName: import_zod2.z.string().min(1),
|
|
519
|
+
relationship: import_zod2.z.string().min(1),
|
|
520
|
+
phone: import_zod2.z.string().min(9),
|
|
521
|
+
email: import_zod2.z.string().email().optional(),
|
|
522
|
+
nationalId: import_zod2.z.string().optional(),
|
|
523
|
+
occupation: import_zod2.z.string().optional(),
|
|
524
|
+
address: import_zod2.z.string().optional()
|
|
525
|
+
})
|
|
526
|
+
).output(guardianSchema),
|
|
527
|
+
listClasses: import_contract.oc.input(import_zod2.z.object({ branchId: uuidSchema.optional() })).output(
|
|
528
|
+
import_zod2.z.array(
|
|
529
|
+
import_zod2.z.object({
|
|
530
|
+
id: uuidSchema,
|
|
531
|
+
name: import_zod2.z.string(),
|
|
532
|
+
grade: import_zod2.z.string(),
|
|
533
|
+
level: import_zod2.z.string()
|
|
534
|
+
})
|
|
535
|
+
)
|
|
536
|
+
),
|
|
537
|
+
listGrades: import_contract.oc.input(import_zod2.z.object({ branchId: uuidSchema.optional() })).output(
|
|
538
|
+
import_zod2.z.array(
|
|
539
|
+
import_zod2.z.object({
|
|
540
|
+
id: uuidSchema,
|
|
541
|
+
name: import_zod2.z.string(),
|
|
542
|
+
level: import_zod2.z.string()
|
|
543
|
+
})
|
|
544
|
+
)
|
|
545
|
+
),
|
|
546
|
+
listTerms: import_contract.oc.input(import_zod2.z.object({ branchId: uuidSchema.optional() })).output(
|
|
547
|
+
import_zod2.z.array(
|
|
548
|
+
import_zod2.z.object({
|
|
549
|
+
id: uuidSchema,
|
|
550
|
+
name: import_zod2.z.string(),
|
|
551
|
+
isCurrent: import_zod2.z.boolean(),
|
|
552
|
+
startDate: import_zod2.z.string(),
|
|
553
|
+
endDate: import_zod2.z.string()
|
|
554
|
+
})
|
|
555
|
+
)
|
|
556
|
+
),
|
|
557
|
+
listSponsors: import_contract.oc.input(import_zod2.z.object({ branchId: uuidSchema.optional() })).output(import_zod2.z.array(sponsorSchema))
|
|
508
558
|
};
|
|
509
559
|
var academicsContract = {
|
|
510
560
|
subjects: {
|