academe-kit 0.3.8 → 0.4.0

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.
@@ -7,6 +7,12 @@ type UpdateInstitutionClassroomDto = components["schemas"]["UpdateInstitutionCla
7
7
  type CreateInstitutionRegistrationDto = components["schemas"]["CreateInstitutionRegistrationDto"];
8
8
  type UpdateInstitutionRegistrationDto = components["schemas"]["UpdateInstitutionRegistrationDto"];
9
9
  type AssignClassroomDto = components["schemas"]["AssignClassroomDto"];
10
+ type CreateEducationalModelDto = components['schemas']['CreateEducationalModelDto'];
11
+ type UpdateEducationalModelDto = components['schemas']['UpdateEducationalModelDto'];
12
+ type CreateEducationalModelPeriodDto = components['schemas']['CreateEducationalModelPeriodDto'];
13
+ type UpdateEducationalModelPeriodDto = components['schemas']['UpdateEducationalModelPeriodDto'];
14
+ type CreateCurriculumGridDto = components['schemas']['CreateCurriculumGridDto'];
15
+ type UpdateCurriculumGridDto = components['schemas']['UpdateCurriculumGridDto'];
10
16
  type GetInstitutionUsersQuery = paths["/institutions/{institutionId}/users"]["get"]["parameters"]["query"];
11
17
  export declare function createInstitutionService(apiClient: AcademeApiClient): {
12
18
  getAll(): Promise<import("openapi-fetch").FetchResponse<{
@@ -191,6 +197,7 @@ export declare function createInstitutionService(apiClient: AcademeApiClient): {
191
197
  };
192
198
  body: {
193
199
  groupId: string;
200
+ productId: string;
194
201
  availableQuantity: number;
195
202
  };
196
203
  }, `${string}/${string}`>>;
@@ -266,6 +273,7 @@ export declare function createInstitutionService(apiClient: AcademeApiClient): {
266
273
  };
267
274
  body: {
268
275
  availableQuantity: number;
276
+ productId?: string;
269
277
  };
270
278
  }, `${string}/${string}`>>;
271
279
  getClassrooms(institutionId: string, options?: {
@@ -829,6 +837,594 @@ export declare function createInstitutionService(apiClient: AcademeApiClient): {
829
837
  };
830
838
  };
831
839
  }, `${string}/${string}`>>;
840
+ getCurriculumGridsByInstitution(institutionId: string, options?: {
841
+ serie?: string;
842
+ isActive?: boolean;
843
+ page?: number;
844
+ limit?: number;
845
+ }): Promise<import("openapi-fetch").FetchResponse<{
846
+ parameters: {
847
+ query?: {
848
+ serie?: string;
849
+ isActive?: boolean;
850
+ page?: number;
851
+ limit?: number;
852
+ };
853
+ header?: never;
854
+ path: {
855
+ institutionId: string;
856
+ };
857
+ cookie?: never;
858
+ };
859
+ requestBody?: never;
860
+ responses: {
861
+ 200: {
862
+ headers: {
863
+ [name: string]: unknown;
864
+ };
865
+ content: {
866
+ "application/json": {
867
+ status?: string;
868
+ data?: components["schemas"]["CurriculumGrid"][];
869
+ meta?: {
870
+ total?: number;
871
+ page?: number;
872
+ limit?: number;
873
+ totalPages?: number;
874
+ };
875
+ };
876
+ };
877
+ };
878
+ 401: components["responses"]["Unauthorized"];
879
+ 404: components["responses"]["NotFound"];
880
+ 500: components["responses"]["ServerError"];
881
+ };
882
+ }, {
883
+ params: {
884
+ path: {
885
+ institutionId: string;
886
+ };
887
+ query: {
888
+ serie?: string;
889
+ isActive?: boolean;
890
+ page?: number;
891
+ limit?: number;
892
+ } | undefined;
893
+ };
894
+ }, `${string}/${string}`>>;
895
+ getCurriculumGridById(id: string): Promise<import("openapi-fetch").FetchResponse<{
896
+ parameters: {
897
+ query?: never;
898
+ header?: never;
899
+ path: {
900
+ id: components["parameters"]["id"];
901
+ };
902
+ cookie?: never;
903
+ };
904
+ requestBody?: never;
905
+ responses: {
906
+ 200: {
907
+ headers: {
908
+ [name: string]: unknown;
909
+ };
910
+ content: {
911
+ "application/json": {
912
+ status?: string;
913
+ data?: components["schemas"]["CurriculumGrid"];
914
+ };
915
+ };
916
+ };
917
+ 400: components["responses"]["BadRequest"];
918
+ 401: components["responses"]["Unauthorized"];
919
+ 404: components["responses"]["NotFound"];
920
+ 500: components["responses"]["ServerError"];
921
+ };
922
+ }, {
923
+ params: {
924
+ path: {
925
+ id: string;
926
+ };
927
+ };
928
+ }, `${string}/${string}`>>;
929
+ createCurriculumGrid(data: CreateCurriculumGridDto): Promise<import("openapi-fetch").FetchResponse<{
930
+ parameters: {
931
+ query?: never;
932
+ header?: never;
933
+ path?: never;
934
+ cookie?: never;
935
+ };
936
+ requestBody: {
937
+ content: {
938
+ "application/json": components["schemas"]["CreateCurriculumGridDto"];
939
+ };
940
+ };
941
+ responses: {
942
+ 201: {
943
+ headers: {
944
+ [name: string]: unknown;
945
+ };
946
+ content: {
947
+ "application/json": {
948
+ status?: string;
949
+ data?: components["schemas"]["CurriculumGrid"];
950
+ };
951
+ };
952
+ };
953
+ 400: components["responses"]["BadRequest"];
954
+ 401: components["responses"]["Unauthorized"];
955
+ 409: components["responses"]["Conflict"];
956
+ 500: components["responses"]["ServerError"];
957
+ };
958
+ }, {
959
+ body: {
960
+ institutionId: string;
961
+ serie: string;
962
+ isActive: boolean;
963
+ };
964
+ }, `${string}/${string}`>>;
965
+ updateCurriculumGrid(id: string, data: UpdateCurriculumGridDto): Promise<import("openapi-fetch").FetchResponse<{
966
+ parameters: {
967
+ query?: never;
968
+ header?: never;
969
+ path: {
970
+ id: components["parameters"]["id"];
971
+ };
972
+ cookie?: never;
973
+ };
974
+ requestBody: {
975
+ content: {
976
+ "application/json": components["schemas"]["UpdateCurriculumGridDto"];
977
+ };
978
+ };
979
+ responses: {
980
+ 200: {
981
+ headers: {
982
+ [name: string]: unknown;
983
+ };
984
+ content: {
985
+ "application/json": {
986
+ status?: string;
987
+ data?: components["schemas"]["CurriculumGrid"];
988
+ };
989
+ };
990
+ };
991
+ 400: components["responses"]["BadRequest"];
992
+ 401: components["responses"]["Unauthorized"];
993
+ 404: components["responses"]["NotFound"];
994
+ 409: components["responses"]["Conflict"];
995
+ 500: components["responses"]["ServerError"];
996
+ };
997
+ }, {
998
+ params: {
999
+ path: {
1000
+ id: string;
1001
+ };
1002
+ };
1003
+ body: {
1004
+ institutionId?: string;
1005
+ serie?: string;
1006
+ isActive?: boolean;
1007
+ };
1008
+ }, `${string}/${string}`>>;
1009
+ deleteCurriculumGrid(id: string): Promise<import("openapi-fetch").FetchResponse<{
1010
+ parameters: {
1011
+ query?: never;
1012
+ header?: never;
1013
+ path: {
1014
+ id: components["parameters"]["id"];
1015
+ };
1016
+ cookie?: never;
1017
+ };
1018
+ requestBody?: never;
1019
+ responses: {
1020
+ 204: {
1021
+ headers: {
1022
+ [name: string]: unknown;
1023
+ };
1024
+ content?: never;
1025
+ };
1026
+ 400: components["responses"]["BadRequest"];
1027
+ 401: components["responses"]["Unauthorized"];
1028
+ 404: components["responses"]["NotFound"];
1029
+ 500: components["responses"]["ServerError"];
1030
+ };
1031
+ }, {
1032
+ params: {
1033
+ path: {
1034
+ id: string;
1035
+ };
1036
+ };
1037
+ }, `${string}/${string}`>>;
1038
+ getAllEducationalModels(): Promise<import("openapi-fetch").FetchResponse<{
1039
+ parameters: {
1040
+ query?: never;
1041
+ header?: never;
1042
+ path?: never;
1043
+ cookie?: never;
1044
+ };
1045
+ requestBody?: never;
1046
+ responses: {
1047
+ 200: {
1048
+ headers: {
1049
+ [name: string]: unknown;
1050
+ };
1051
+ content: {
1052
+ "application/json": {
1053
+ status?: string;
1054
+ data?: components["schemas"]["EducationalModel"][];
1055
+ };
1056
+ };
1057
+ };
1058
+ 401: components["responses"]["Unauthorized"];
1059
+ 500: components["responses"]["ServerError"];
1060
+ };
1061
+ }, import("openapi-fetch").FetchOptions<{
1062
+ parameters: {
1063
+ query?: never;
1064
+ header?: never;
1065
+ path?: never;
1066
+ cookie?: never;
1067
+ };
1068
+ requestBody?: never;
1069
+ responses: {
1070
+ 200: {
1071
+ headers: {
1072
+ [name: string]: unknown;
1073
+ };
1074
+ content: {
1075
+ "application/json": {
1076
+ status?: string;
1077
+ data?: components["schemas"]["EducationalModel"][];
1078
+ };
1079
+ };
1080
+ };
1081
+ 401: components["responses"]["Unauthorized"];
1082
+ 500: components["responses"]["ServerError"];
1083
+ };
1084
+ }> | undefined, `${string}/${string}`>>;
1085
+ getEducationalModel(institutionId: string): Promise<import("openapi-fetch").FetchResponse<{
1086
+ parameters: {
1087
+ query?: never;
1088
+ header?: never;
1089
+ path: {
1090
+ institutionId: string;
1091
+ };
1092
+ cookie?: never;
1093
+ };
1094
+ requestBody?: never;
1095
+ responses: {
1096
+ 200: {
1097
+ headers: {
1098
+ [name: string]: unknown;
1099
+ };
1100
+ content: {
1101
+ "application/json": {
1102
+ status?: string;
1103
+ data?: (components["schemas"]["EducationalModel"] | null) | null;
1104
+ };
1105
+ };
1106
+ };
1107
+ 401: components["responses"]["Unauthorized"];
1108
+ 500: components["responses"]["ServerError"];
1109
+ };
1110
+ }, {
1111
+ params: {
1112
+ path: {
1113
+ institutionId: string;
1114
+ };
1115
+ };
1116
+ }, `${string}/${string}`>>;
1117
+ createEducationalModel(data: CreateEducationalModelDto): Promise<import("openapi-fetch").FetchResponse<{
1118
+ parameters: {
1119
+ query?: never;
1120
+ header?: never;
1121
+ path?: never;
1122
+ cookie?: never;
1123
+ };
1124
+ requestBody: {
1125
+ content: {
1126
+ "application/json": components["schemas"]["CreateEducationalModelDto"];
1127
+ };
1128
+ };
1129
+ responses: {
1130
+ 201: {
1131
+ headers: {
1132
+ [name: string]: unknown;
1133
+ };
1134
+ content: {
1135
+ "application/json": {
1136
+ status?: string;
1137
+ data?: components["schemas"]["EducationalModel"];
1138
+ };
1139
+ };
1140
+ };
1141
+ 400: components["responses"]["BadRequest"];
1142
+ 401: components["responses"]["Unauthorized"];
1143
+ 404: components["responses"]["NotFound"];
1144
+ 409: components["responses"]["Conflict"];
1145
+ 500: components["responses"]["ServerError"];
1146
+ };
1147
+ }, {
1148
+ body: {
1149
+ institutionId: string;
1150
+ periodType: string;
1151
+ pedagogicalModel: string;
1152
+ coursesToComplete?: number | null;
1153
+ deadlineType?: string | null;
1154
+ };
1155
+ }, `${string}/${string}`>>;
1156
+ updateEducationalModel(institutionId: string, data: UpdateEducationalModelDto): Promise<import("openapi-fetch").FetchResponse<{
1157
+ parameters: {
1158
+ query?: never;
1159
+ header?: never;
1160
+ path: {
1161
+ institutionId: string;
1162
+ };
1163
+ cookie?: never;
1164
+ };
1165
+ requestBody: {
1166
+ content: {
1167
+ "application/json": components["schemas"]["UpdateEducationalModelDto"];
1168
+ };
1169
+ };
1170
+ responses: {
1171
+ 200: {
1172
+ headers: {
1173
+ [name: string]: unknown;
1174
+ };
1175
+ content: {
1176
+ "application/json": {
1177
+ status?: string;
1178
+ data?: components["schemas"]["EducationalModel"];
1179
+ };
1180
+ };
1181
+ };
1182
+ 400: components["responses"]["BadRequest"];
1183
+ 401: components["responses"]["Unauthorized"];
1184
+ 404: components["responses"]["NotFound"];
1185
+ 500: components["responses"]["ServerError"];
1186
+ };
1187
+ }, {
1188
+ params: {
1189
+ path: {
1190
+ institutionId: string;
1191
+ };
1192
+ };
1193
+ body: {
1194
+ periodType?: string;
1195
+ pedagogicalModel?: string;
1196
+ coursesToComplete?: number | null;
1197
+ deadlineType?: string | null;
1198
+ };
1199
+ }, `${string}/${string}`>>;
1200
+ deleteEducationalModel(institutionId: string): Promise<import("openapi-fetch").FetchResponse<{
1201
+ parameters: {
1202
+ query?: never;
1203
+ header?: never;
1204
+ path: {
1205
+ institutionId: string;
1206
+ };
1207
+ cookie?: never;
1208
+ };
1209
+ requestBody?: never;
1210
+ responses: {
1211
+ 204: {
1212
+ headers: {
1213
+ [name: string]: unknown;
1214
+ };
1215
+ content?: never;
1216
+ };
1217
+ 400: components["responses"]["BadRequest"];
1218
+ 401: components["responses"]["Unauthorized"];
1219
+ 404: components["responses"]["NotFound"];
1220
+ 500: components["responses"]["ServerError"];
1221
+ };
1222
+ }, {
1223
+ params: {
1224
+ path: {
1225
+ institutionId: string;
1226
+ };
1227
+ };
1228
+ }, `${string}/${string}`>>;
1229
+ getAllEducationalModelPeriods(educationModelId?: string): Promise<import("openapi-fetch").FetchResponse<{
1230
+ parameters: {
1231
+ query?: {
1232
+ educationModelId?: string;
1233
+ };
1234
+ header?: never;
1235
+ path?: never;
1236
+ cookie?: never;
1237
+ };
1238
+ requestBody?: never;
1239
+ responses: {
1240
+ 200: {
1241
+ headers: {
1242
+ [name: string]: unknown;
1243
+ };
1244
+ content: {
1245
+ "application/json": {
1246
+ status?: string;
1247
+ data?: components["schemas"]["EducationalModelPeriod"][];
1248
+ };
1249
+ };
1250
+ };
1251
+ 401: components["responses"]["Unauthorized"];
1252
+ 500: components["responses"]["ServerError"];
1253
+ };
1254
+ }, any, `${string}/${string}`>>;
1255
+ getEducationalModelPeriod(id: string): Promise<import("openapi-fetch").FetchResponse<{
1256
+ parameters: {
1257
+ query?: never;
1258
+ header?: never;
1259
+ path: {
1260
+ id: string;
1261
+ };
1262
+ cookie?: never;
1263
+ };
1264
+ requestBody?: never;
1265
+ responses: {
1266
+ 200: {
1267
+ headers: {
1268
+ [name: string]: unknown;
1269
+ };
1270
+ content: {
1271
+ "application/json": {
1272
+ status?: string;
1273
+ data?: components["schemas"]["EducationalModelPeriod"];
1274
+ };
1275
+ };
1276
+ };
1277
+ 401: components["responses"]["Unauthorized"];
1278
+ 404: components["responses"]["NotFound"];
1279
+ 500: components["responses"]["ServerError"];
1280
+ };
1281
+ }, {
1282
+ params: {
1283
+ path: {
1284
+ id: string;
1285
+ };
1286
+ };
1287
+ }, `${string}/${string}`>>;
1288
+ getEducationalModelPeriodsByInstitution(institutionId: string): Promise<import("openapi-fetch").FetchResponse<{
1289
+ parameters: {
1290
+ query?: never;
1291
+ header?: never;
1292
+ path: {
1293
+ institutionId: string;
1294
+ };
1295
+ cookie?: never;
1296
+ };
1297
+ requestBody?: never;
1298
+ responses: {
1299
+ 200: {
1300
+ headers: {
1301
+ [name: string]: unknown;
1302
+ };
1303
+ content: {
1304
+ "application/json": {
1305
+ status?: string;
1306
+ data?: components["schemas"]["EducationalModelPeriod"][];
1307
+ };
1308
+ };
1309
+ };
1310
+ 401: components["responses"]["Unauthorized"];
1311
+ 500: components["responses"]["ServerError"];
1312
+ };
1313
+ }, {
1314
+ params: {
1315
+ path: {
1316
+ institutionId: string;
1317
+ };
1318
+ };
1319
+ }, `${string}/${string}`>>;
1320
+ createEducationalModelPeriod(data: CreateEducationalModelPeriodDto): Promise<import("openapi-fetch").FetchResponse<{
1321
+ parameters: {
1322
+ query?: never;
1323
+ header?: never;
1324
+ path?: never;
1325
+ cookie?: never;
1326
+ };
1327
+ requestBody: {
1328
+ content: {
1329
+ "application/json": components["schemas"]["CreateEducationalModelPeriodDto"];
1330
+ };
1331
+ };
1332
+ responses: {
1333
+ 201: {
1334
+ headers: {
1335
+ [name: string]: unknown;
1336
+ };
1337
+ content: {
1338
+ "application/json": {
1339
+ status?: string;
1340
+ data?: components["schemas"]["EducationalModelPeriod"];
1341
+ };
1342
+ };
1343
+ };
1344
+ 400: components["responses"]["BadRequest"];
1345
+ 401: components["responses"]["Unauthorized"];
1346
+ 404: components["responses"]["NotFound"];
1347
+ 500: components["responses"]["ServerError"];
1348
+ };
1349
+ }, {
1350
+ body: {
1351
+ educationModelId: string;
1352
+ start: string;
1353
+ end: string;
1354
+ };
1355
+ }, `${string}/${string}`>>;
1356
+ updateEducationalModelPeriod(id: string, data: UpdateEducationalModelPeriodDto): Promise<import("openapi-fetch").FetchResponse<{
1357
+ parameters: {
1358
+ query?: never;
1359
+ header?: never;
1360
+ path: {
1361
+ id: string;
1362
+ };
1363
+ cookie?: never;
1364
+ };
1365
+ requestBody: {
1366
+ content: {
1367
+ "application/json": components["schemas"]["UpdateEducationalModelPeriodDto"];
1368
+ };
1369
+ };
1370
+ responses: {
1371
+ 200: {
1372
+ headers: {
1373
+ [name: string]: unknown;
1374
+ };
1375
+ content: {
1376
+ "application/json": {
1377
+ status?: string;
1378
+ data?: components["schemas"]["EducationalModelPeriod"];
1379
+ };
1380
+ };
1381
+ };
1382
+ 400: components["responses"]["BadRequest"];
1383
+ 401: components["responses"]["Unauthorized"];
1384
+ 404: components["responses"]["NotFound"];
1385
+ 500: components["responses"]["ServerError"];
1386
+ };
1387
+ }, {
1388
+ params: {
1389
+ path: {
1390
+ id: string;
1391
+ };
1392
+ };
1393
+ body: {
1394
+ educationModelId?: string;
1395
+ start?: string;
1396
+ end?: string;
1397
+ };
1398
+ }, `${string}/${string}`>>;
1399
+ deleteEducationalModelPeriod(id: string): Promise<import("openapi-fetch").FetchResponse<{
1400
+ parameters: {
1401
+ query?: never;
1402
+ header?: never;
1403
+ path: {
1404
+ id: string;
1405
+ };
1406
+ cookie?: never;
1407
+ };
1408
+ requestBody?: never;
1409
+ responses: {
1410
+ 204: {
1411
+ headers: {
1412
+ [name: string]: unknown;
1413
+ };
1414
+ content?: never;
1415
+ };
1416
+ 400: components["responses"]["BadRequest"];
1417
+ 401: components["responses"]["Unauthorized"];
1418
+ 404: components["responses"]["NotFound"];
1419
+ 500: components["responses"]["ServerError"];
1420
+ };
1421
+ }, {
1422
+ params: {
1423
+ path: {
1424
+ id: string;
1425
+ };
1426
+ };
1427
+ }, `${string}/${string}`>>;
832
1428
  };
833
1429
  export type InstitutionService = ReturnType<typeof createInstitutionService>;
834
1430
  export {};