@brite-future-schools-contracts/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.
@@ -1081,6 +1081,262 @@ 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
+ nationalId: z.ZodNullable<z.ZodString>;
1102
+ occupation: z.ZodNullable<z.ZodString>;
1103
+ address: z.ZodNullable<z.ZodString>;
1104
+ } & {
1105
+ email: z.ZodNullable<z.ZodString>;
1106
+ linkedStudents: z.ZodArray<z.ZodObject<{
1107
+ id: z.ZodString;
1108
+ firstName: z.ZodString;
1109
+ lastName: z.ZodString;
1110
+ admissionNo: z.ZodString;
1111
+ status: z.ZodString;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ status: string;
1114
+ id: string;
1115
+ firstName: string;
1116
+ lastName: string;
1117
+ admissionNo: string;
1118
+ }, {
1119
+ status: string;
1120
+ id: string;
1121
+ firstName: string;
1122
+ lastName: string;
1123
+ admissionNo: string;
1124
+ }>, "many">;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ email: string | null;
1127
+ id: string;
1128
+ firstName: string;
1129
+ middleName: string | null;
1130
+ lastName: string;
1131
+ phone: string;
1132
+ address: string | null;
1133
+ userId: string;
1134
+ relationship: string;
1135
+ nationalId: string | null;
1136
+ occupation: string | null;
1137
+ linkedStudents: {
1138
+ status: string;
1139
+ id: string;
1140
+ firstName: string;
1141
+ lastName: string;
1142
+ admissionNo: string;
1143
+ }[];
1144
+ }, {
1145
+ email: string | null;
1146
+ id: string;
1147
+ firstName: string;
1148
+ middleName: string | null;
1149
+ lastName: string;
1150
+ phone: string;
1151
+ address: string | null;
1152
+ userId: string;
1153
+ relationship: string;
1154
+ nationalId: string | null;
1155
+ occupation: string | null;
1156
+ linkedStudents: {
1157
+ status: string;
1158
+ id: string;
1159
+ firstName: string;
1160
+ lastName: string;
1161
+ admissionNo: string;
1162
+ }[];
1163
+ }>, "many">, Record<never, never>, Record<never, never>>;
1164
+ createGuardian: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1165
+ firstName: z.ZodString;
1166
+ middleName: z.ZodOptional<z.ZodString>;
1167
+ lastName: z.ZodString;
1168
+ relationship: z.ZodString;
1169
+ phone: z.ZodString;
1170
+ email: z.ZodOptional<z.ZodString>;
1171
+ nationalId: z.ZodOptional<z.ZodString>;
1172
+ occupation: z.ZodOptional<z.ZodString>;
1173
+ address: z.ZodOptional<z.ZodString>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ firstName: string;
1176
+ lastName: string;
1177
+ phone: string;
1178
+ relationship: string;
1179
+ email?: string | undefined;
1180
+ middleName?: string | undefined;
1181
+ address?: string | undefined;
1182
+ nationalId?: string | undefined;
1183
+ occupation?: string | undefined;
1184
+ }, {
1185
+ firstName: string;
1186
+ lastName: string;
1187
+ phone: string;
1188
+ relationship: string;
1189
+ email?: string | undefined;
1190
+ middleName?: string | undefined;
1191
+ address?: string | undefined;
1192
+ nationalId?: string | undefined;
1193
+ occupation?: string | undefined;
1194
+ }>, z.ZodObject<{
1195
+ id: z.ZodString;
1196
+ userId: z.ZodString;
1197
+ firstName: z.ZodString;
1198
+ middleName: z.ZodNullable<z.ZodString>;
1199
+ lastName: z.ZodString;
1200
+ relationship: z.ZodString;
1201
+ phone: z.ZodString;
1202
+ email: z.ZodNullable<z.ZodString>;
1203
+ nationalId: z.ZodNullable<z.ZodString>;
1204
+ occupation: z.ZodNullable<z.ZodString>;
1205
+ address: z.ZodNullable<z.ZodString>;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ email: string | null;
1208
+ id: string;
1209
+ firstName: string;
1210
+ middleName: string | null;
1211
+ lastName: string;
1212
+ phone: string;
1213
+ address: string | null;
1214
+ userId: string;
1215
+ relationship: string;
1216
+ nationalId: string | null;
1217
+ occupation: string | null;
1218
+ }, {
1219
+ email: string | null;
1220
+ id: string;
1221
+ firstName: string;
1222
+ middleName: string | null;
1223
+ lastName: string;
1224
+ phone: string;
1225
+ address: string | null;
1226
+ userId: string;
1227
+ relationship: string;
1228
+ nationalId: string | null;
1229
+ occupation: string | null;
1230
+ }>, Record<never, never>, Record<never, never>>;
1231
+ listClasses: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1232
+ branchId: z.ZodOptional<z.ZodString>;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ branchId?: string | undefined;
1235
+ }, {
1236
+ branchId?: string | undefined;
1237
+ }>, z.ZodArray<z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ name: z.ZodString;
1240
+ grade: z.ZodString;
1241
+ level: z.ZodString;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ id: string;
1244
+ name: string;
1245
+ grade: string;
1246
+ level: string;
1247
+ }, {
1248
+ id: string;
1249
+ name: string;
1250
+ grade: string;
1251
+ level: string;
1252
+ }>, "many">, Record<never, never>, Record<never, never>>;
1253
+ listGrades: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1254
+ branchId: z.ZodOptional<z.ZodString>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ branchId?: string | undefined;
1257
+ }, {
1258
+ branchId?: string | undefined;
1259
+ }>, z.ZodArray<z.ZodObject<{
1260
+ id: z.ZodString;
1261
+ name: z.ZodString;
1262
+ level: z.ZodString;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ id: string;
1265
+ name: string;
1266
+ level: string;
1267
+ }, {
1268
+ id: string;
1269
+ name: string;
1270
+ level: string;
1271
+ }>, "many">, Record<never, never>, Record<never, never>>;
1272
+ listTerms: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1273
+ branchId: z.ZodOptional<z.ZodString>;
1274
+ }, "strip", z.ZodTypeAny, {
1275
+ branchId?: string | undefined;
1276
+ }, {
1277
+ branchId?: string | undefined;
1278
+ }>, z.ZodArray<z.ZodObject<{
1279
+ id: z.ZodString;
1280
+ name: z.ZodString;
1281
+ isCurrent: z.ZodBoolean;
1282
+ startDate: z.ZodString;
1283
+ endDate: z.ZodString;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ id: string;
1286
+ name: string;
1287
+ startDate: string;
1288
+ endDate: string;
1289
+ isCurrent: boolean;
1290
+ }, {
1291
+ id: string;
1292
+ name: string;
1293
+ startDate: string;
1294
+ endDate: string;
1295
+ isCurrent: boolean;
1296
+ }>, "many">, Record<never, never>, Record<never, never>>;
1297
+ listSponsors: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1298
+ branchId: z.ZodOptional<z.ZodString>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ branchId?: string | undefined;
1301
+ }, {
1302
+ branchId?: string | undefined;
1303
+ }>, z.ZodArray<z.ZodObject<{
1304
+ id: z.ZodString;
1305
+ branchId: z.ZodString;
1306
+ type: z.ZodEnum<["organisation", "individual"]>;
1307
+ organisationName: z.ZodNullable<z.ZodString>;
1308
+ firstName: z.ZodNullable<z.ZodString>;
1309
+ middleName: z.ZodNullable<z.ZodString>;
1310
+ lastName: z.ZodNullable<z.ZodString>;
1311
+ contactUserId: z.ZodNullable<z.ZodString>;
1312
+ phone: z.ZodString;
1313
+ email: z.ZodNullable<z.ZodString>;
1314
+ address: z.ZodNullable<z.ZodString>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ type: "organisation" | "individual";
1317
+ email: string | null;
1318
+ id: string;
1319
+ firstName: string | null;
1320
+ middleName: string | null;
1321
+ lastName: string | null;
1322
+ branchId: string;
1323
+ phone: string;
1324
+ address: string | null;
1325
+ organisationName: string | null;
1326
+ contactUserId: string | null;
1327
+ }, {
1328
+ type: "organisation" | "individual";
1329
+ email: string | null;
1330
+ id: string;
1331
+ firstName: string | null;
1332
+ middleName: string | null;
1333
+ lastName: string | null;
1334
+ branchId: string;
1335
+ phone: string;
1336
+ address: string | null;
1337
+ organisationName: string | null;
1338
+ contactUserId: string | null;
1339
+ }>, "many">, Record<never, never>, Record<never, never>>;
1084
1340
  };
1085
1341
  declare const academicsContract: {
1086
1342
  subjects: {
@@ -4287,6 +4543,262 @@ declare const appContract: {
4287
4543
  }, {
4288
4544
  success: boolean;
4289
4545
  }>, Record<never, never>, Record<never, never>>;
4546
+ listGuardians: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4547
+ branchId: z.ZodOptional<z.ZodString>;
4548
+ search: z.ZodOptional<z.ZodString>;
4549
+ }, "strip", z.ZodTypeAny, {
4550
+ branchId?: string | undefined;
4551
+ search?: string | undefined;
4552
+ }, {
4553
+ branchId?: string | undefined;
4554
+ search?: string | undefined;
4555
+ }>, z.ZodArray<z.ZodObject<{
4556
+ id: z.ZodString;
4557
+ userId: z.ZodString;
4558
+ firstName: z.ZodString;
4559
+ middleName: z.ZodNullable<z.ZodString>;
4560
+ lastName: z.ZodString;
4561
+ relationship: z.ZodString;
4562
+ phone: z.ZodString;
4563
+ nationalId: z.ZodNullable<z.ZodString>;
4564
+ occupation: z.ZodNullable<z.ZodString>;
4565
+ address: z.ZodNullable<z.ZodString>;
4566
+ } & {
4567
+ email: z.ZodNullable<z.ZodString>;
4568
+ linkedStudents: z.ZodArray<z.ZodObject<{
4569
+ id: z.ZodString;
4570
+ firstName: z.ZodString;
4571
+ lastName: z.ZodString;
4572
+ admissionNo: z.ZodString;
4573
+ status: z.ZodString;
4574
+ }, "strip", z.ZodTypeAny, {
4575
+ status: string;
4576
+ id: string;
4577
+ firstName: string;
4578
+ lastName: string;
4579
+ admissionNo: string;
4580
+ }, {
4581
+ status: string;
4582
+ id: string;
4583
+ firstName: string;
4584
+ lastName: string;
4585
+ admissionNo: string;
4586
+ }>, "many">;
4587
+ }, "strip", z.ZodTypeAny, {
4588
+ email: string | null;
4589
+ id: string;
4590
+ firstName: string;
4591
+ middleName: string | null;
4592
+ lastName: string;
4593
+ phone: string;
4594
+ address: string | null;
4595
+ userId: string;
4596
+ relationship: string;
4597
+ nationalId: string | null;
4598
+ occupation: string | null;
4599
+ linkedStudents: {
4600
+ status: string;
4601
+ id: string;
4602
+ firstName: string;
4603
+ lastName: string;
4604
+ admissionNo: string;
4605
+ }[];
4606
+ }, {
4607
+ email: string | null;
4608
+ id: string;
4609
+ firstName: string;
4610
+ middleName: string | null;
4611
+ lastName: string;
4612
+ phone: string;
4613
+ address: string | null;
4614
+ userId: string;
4615
+ relationship: string;
4616
+ nationalId: string | null;
4617
+ occupation: string | null;
4618
+ linkedStudents: {
4619
+ status: string;
4620
+ id: string;
4621
+ firstName: string;
4622
+ lastName: string;
4623
+ admissionNo: string;
4624
+ }[];
4625
+ }>, "many">, Record<never, never>, Record<never, never>>;
4626
+ createGuardian: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4627
+ firstName: z.ZodString;
4628
+ middleName: z.ZodOptional<z.ZodString>;
4629
+ lastName: z.ZodString;
4630
+ relationship: z.ZodString;
4631
+ phone: z.ZodString;
4632
+ email: z.ZodOptional<z.ZodString>;
4633
+ nationalId: z.ZodOptional<z.ZodString>;
4634
+ occupation: z.ZodOptional<z.ZodString>;
4635
+ address: z.ZodOptional<z.ZodString>;
4636
+ }, "strip", z.ZodTypeAny, {
4637
+ firstName: string;
4638
+ lastName: string;
4639
+ phone: string;
4640
+ relationship: string;
4641
+ email?: string | undefined;
4642
+ middleName?: string | undefined;
4643
+ address?: string | undefined;
4644
+ nationalId?: string | undefined;
4645
+ occupation?: string | undefined;
4646
+ }, {
4647
+ firstName: string;
4648
+ lastName: string;
4649
+ phone: string;
4650
+ relationship: string;
4651
+ email?: string | undefined;
4652
+ middleName?: string | undefined;
4653
+ address?: string | undefined;
4654
+ nationalId?: string | undefined;
4655
+ occupation?: string | undefined;
4656
+ }>, z.ZodObject<{
4657
+ id: z.ZodString;
4658
+ userId: z.ZodString;
4659
+ firstName: z.ZodString;
4660
+ middleName: z.ZodNullable<z.ZodString>;
4661
+ lastName: z.ZodString;
4662
+ relationship: z.ZodString;
4663
+ phone: z.ZodString;
4664
+ email: z.ZodNullable<z.ZodString>;
4665
+ nationalId: z.ZodNullable<z.ZodString>;
4666
+ occupation: z.ZodNullable<z.ZodString>;
4667
+ address: z.ZodNullable<z.ZodString>;
4668
+ }, "strip", z.ZodTypeAny, {
4669
+ email: string | null;
4670
+ id: string;
4671
+ firstName: string;
4672
+ middleName: string | null;
4673
+ lastName: string;
4674
+ phone: string;
4675
+ address: string | null;
4676
+ userId: string;
4677
+ relationship: string;
4678
+ nationalId: string | null;
4679
+ occupation: string | null;
4680
+ }, {
4681
+ email: string | null;
4682
+ id: string;
4683
+ firstName: string;
4684
+ middleName: string | null;
4685
+ lastName: string;
4686
+ phone: string;
4687
+ address: string | null;
4688
+ userId: string;
4689
+ relationship: string;
4690
+ nationalId: string | null;
4691
+ occupation: string | null;
4692
+ }>, Record<never, never>, Record<never, never>>;
4693
+ listClasses: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4694
+ branchId: z.ZodOptional<z.ZodString>;
4695
+ }, "strip", z.ZodTypeAny, {
4696
+ branchId?: string | undefined;
4697
+ }, {
4698
+ branchId?: string | undefined;
4699
+ }>, z.ZodArray<z.ZodObject<{
4700
+ id: z.ZodString;
4701
+ name: z.ZodString;
4702
+ grade: z.ZodString;
4703
+ level: z.ZodString;
4704
+ }, "strip", z.ZodTypeAny, {
4705
+ id: string;
4706
+ name: string;
4707
+ grade: string;
4708
+ level: string;
4709
+ }, {
4710
+ id: string;
4711
+ name: string;
4712
+ grade: string;
4713
+ level: string;
4714
+ }>, "many">, Record<never, never>, Record<never, never>>;
4715
+ listGrades: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4716
+ branchId: z.ZodOptional<z.ZodString>;
4717
+ }, "strip", z.ZodTypeAny, {
4718
+ branchId?: string | undefined;
4719
+ }, {
4720
+ branchId?: string | undefined;
4721
+ }>, z.ZodArray<z.ZodObject<{
4722
+ id: z.ZodString;
4723
+ name: z.ZodString;
4724
+ level: z.ZodString;
4725
+ }, "strip", z.ZodTypeAny, {
4726
+ id: string;
4727
+ name: string;
4728
+ level: string;
4729
+ }, {
4730
+ id: string;
4731
+ name: string;
4732
+ level: string;
4733
+ }>, "many">, Record<never, never>, Record<never, never>>;
4734
+ listTerms: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4735
+ branchId: z.ZodOptional<z.ZodString>;
4736
+ }, "strip", z.ZodTypeAny, {
4737
+ branchId?: string | undefined;
4738
+ }, {
4739
+ branchId?: string | undefined;
4740
+ }>, z.ZodArray<z.ZodObject<{
4741
+ id: z.ZodString;
4742
+ name: z.ZodString;
4743
+ isCurrent: z.ZodBoolean;
4744
+ startDate: z.ZodString;
4745
+ endDate: z.ZodString;
4746
+ }, "strip", z.ZodTypeAny, {
4747
+ id: string;
4748
+ name: string;
4749
+ startDate: string;
4750
+ endDate: string;
4751
+ isCurrent: boolean;
4752
+ }, {
4753
+ id: string;
4754
+ name: string;
4755
+ startDate: string;
4756
+ endDate: string;
4757
+ isCurrent: boolean;
4758
+ }>, "many">, Record<never, never>, Record<never, never>>;
4759
+ listSponsors: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4760
+ branchId: z.ZodOptional<z.ZodString>;
4761
+ }, "strip", z.ZodTypeAny, {
4762
+ branchId?: string | undefined;
4763
+ }, {
4764
+ branchId?: string | undefined;
4765
+ }>, z.ZodArray<z.ZodObject<{
4766
+ id: z.ZodString;
4767
+ branchId: z.ZodString;
4768
+ type: z.ZodEnum<["organisation", "individual"]>;
4769
+ organisationName: z.ZodNullable<z.ZodString>;
4770
+ firstName: z.ZodNullable<z.ZodString>;
4771
+ middleName: z.ZodNullable<z.ZodString>;
4772
+ lastName: z.ZodNullable<z.ZodString>;
4773
+ contactUserId: z.ZodNullable<z.ZodString>;
4774
+ phone: z.ZodString;
4775
+ email: z.ZodNullable<z.ZodString>;
4776
+ address: z.ZodNullable<z.ZodString>;
4777
+ }, "strip", z.ZodTypeAny, {
4778
+ type: "organisation" | "individual";
4779
+ email: string | null;
4780
+ id: string;
4781
+ firstName: string | null;
4782
+ middleName: string | null;
4783
+ lastName: string | null;
4784
+ branchId: string;
4785
+ phone: string;
4786
+ address: string | null;
4787
+ organisationName: string | null;
4788
+ contactUserId: string | null;
4789
+ }, {
4790
+ type: "organisation" | "individual";
4791
+ email: string | null;
4792
+ id: string;
4793
+ firstName: string | null;
4794
+ middleName: string | null;
4795
+ lastName: string | null;
4796
+ branchId: string;
4797
+ phone: string;
4798
+ address: string | null;
4799
+ organisationName: string | null;
4800
+ contactUserId: string | null;
4801
+ }>, "many">, Record<never, never>, Record<never, never>>;
4290
4802
  };
4291
4803
  academics: {
4292
4804
  subjects: {