academe-kit 0.3.7 → 0.3.9
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/index.d.ts +7982 -3196
- package/dist/index.esm.js +378 -43
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +378 -43
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/AuthService.d.ts +132 -0
- package/dist/types/services/CertificateService.d.ts +221 -0
- package/dist/types/services/ClassroomService.d.ts +55 -4
- package/dist/types/services/GroupService.d.ts +515 -0
- package/dist/types/services/InstitutionService.d.ts +27 -19
- package/dist/types/services/ProductService.d.ts +225 -0
- package/dist/types/services/QuizService.d.ts +223 -0
- package/dist/types/services/SeatCodeService.d.ts +456 -0
- package/dist/types/services/UserService.d.ts +114 -16
- package/dist/types/services/index.d.ts +35 -17
- package/dist/types/types/academe-api.d.ts +3303 -456
- package/dist/types/types/index.d.ts +18 -9
- package/package.json +1 -1
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import type { AcademeApiClient } from "./index";
|
|
2
|
+
import type { components, paths } from "../types/academe-api";
|
|
3
|
+
type CreateSeatCodesDto = components["schemas"]["CreateSeatCodesDto"];
|
|
4
|
+
type UpdateSeatCodeDto = components["schemas"]["UpdateSeatCodeDto"];
|
|
5
|
+
type SendCodeDto = components["schemas"]["SendCodeDto"];
|
|
6
|
+
export type GetSeatCodesQueryParams = paths["/institutions/{institutionId}/seat-codes"]["get"]["parameters"]["query"];
|
|
7
|
+
export declare function createSeatCodeService(apiClient: AcademeApiClient): {
|
|
8
|
+
getAll(institutionId: string, options?: GetSeatCodesQueryParams): Promise<import("openapi-fetch").FetchResponse<{
|
|
9
|
+
parameters: {
|
|
10
|
+
query?: {
|
|
11
|
+
seatId?: string;
|
|
12
|
+
search?: string;
|
|
13
|
+
status?: "reserved" | "active" | "available";
|
|
14
|
+
page?: number;
|
|
15
|
+
limit?: number;
|
|
16
|
+
};
|
|
17
|
+
header?: never;
|
|
18
|
+
path: {
|
|
19
|
+
institutionId: string;
|
|
20
|
+
};
|
|
21
|
+
cookie?: never;
|
|
22
|
+
};
|
|
23
|
+
requestBody?: never;
|
|
24
|
+
responses: {
|
|
25
|
+
200: {
|
|
26
|
+
headers: {
|
|
27
|
+
[name: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
content: {
|
|
30
|
+
"application/json": {
|
|
31
|
+
status?: string;
|
|
32
|
+
data?: components["schemas"]["SeatCode"][];
|
|
33
|
+
meta?: {
|
|
34
|
+
total?: number;
|
|
35
|
+
page?: number;
|
|
36
|
+
limit?: number;
|
|
37
|
+
totalPages?: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
401: components["responses"]["Unauthorized"];
|
|
43
|
+
404: components["responses"]["NotFound"];
|
|
44
|
+
500: components["responses"]["ServerError"];
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
params: {
|
|
48
|
+
path: {
|
|
49
|
+
institutionId: string;
|
|
50
|
+
};
|
|
51
|
+
query: {
|
|
52
|
+
seatId?: string;
|
|
53
|
+
search?: string;
|
|
54
|
+
status?: "reserved" | "active" | "available";
|
|
55
|
+
page?: number;
|
|
56
|
+
limit?: number;
|
|
57
|
+
} | undefined;
|
|
58
|
+
};
|
|
59
|
+
}, `${string}/${string}`>>;
|
|
60
|
+
generate(institutionId: string, data: CreateSeatCodesDto): Promise<import("openapi-fetch").FetchResponse<{
|
|
61
|
+
parameters: {
|
|
62
|
+
query?: never;
|
|
63
|
+
header?: never;
|
|
64
|
+
path: {
|
|
65
|
+
institutionId: string;
|
|
66
|
+
};
|
|
67
|
+
cookie?: never;
|
|
68
|
+
};
|
|
69
|
+
requestBody: {
|
|
70
|
+
content: {
|
|
71
|
+
"application/json": components["schemas"]["CreateSeatCodesDto"];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
responses: {
|
|
75
|
+
201: {
|
|
76
|
+
headers: {
|
|
77
|
+
[name: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
content: {
|
|
80
|
+
"application/json": {
|
|
81
|
+
status?: string;
|
|
82
|
+
data?: components["schemas"]["SeatCode"][];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
400: components["responses"]["BadRequest"];
|
|
87
|
+
401: components["responses"]["Unauthorized"];
|
|
88
|
+
404: components["responses"]["NotFound"];
|
|
89
|
+
500: components["responses"]["ServerError"];
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
params: {
|
|
93
|
+
path: {
|
|
94
|
+
institutionId: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
body: {
|
|
98
|
+
seatId: string;
|
|
99
|
+
quantity: number;
|
|
100
|
+
};
|
|
101
|
+
}, `${string}/${string}`>>;
|
|
102
|
+
getById(institutionId: string, seatCodeId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
103
|
+
parameters: {
|
|
104
|
+
query?: never;
|
|
105
|
+
header?: never;
|
|
106
|
+
path: {
|
|
107
|
+
institutionId: string;
|
|
108
|
+
seatCodeId: string;
|
|
109
|
+
};
|
|
110
|
+
cookie?: never;
|
|
111
|
+
};
|
|
112
|
+
requestBody?: never;
|
|
113
|
+
responses: {
|
|
114
|
+
200: {
|
|
115
|
+
headers: {
|
|
116
|
+
[name: string]: unknown;
|
|
117
|
+
};
|
|
118
|
+
content: {
|
|
119
|
+
"application/json": {
|
|
120
|
+
status?: string;
|
|
121
|
+
data?: components["schemas"]["SeatCode"];
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
401: components["responses"]["Unauthorized"];
|
|
126
|
+
404: components["responses"]["NotFound"];
|
|
127
|
+
500: components["responses"]["ServerError"];
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
params: {
|
|
131
|
+
path: {
|
|
132
|
+
institutionId: string;
|
|
133
|
+
seatCodeId: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}, `${string}/${string}`>>;
|
|
137
|
+
update(institutionId: string, seatCodeId: string, data: UpdateSeatCodeDto): Promise<import("openapi-fetch").FetchResponse<{
|
|
138
|
+
parameters: {
|
|
139
|
+
query?: never;
|
|
140
|
+
header?: never;
|
|
141
|
+
path: {
|
|
142
|
+
institutionId: string;
|
|
143
|
+
seatCodeId: string;
|
|
144
|
+
};
|
|
145
|
+
cookie?: never;
|
|
146
|
+
};
|
|
147
|
+
requestBody: {
|
|
148
|
+
content: {
|
|
149
|
+
"application/json": components["schemas"]["UpdateSeatCodeDto"];
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
responses: {
|
|
153
|
+
200: {
|
|
154
|
+
headers: {
|
|
155
|
+
[name: string]: unknown;
|
|
156
|
+
};
|
|
157
|
+
content: {
|
|
158
|
+
"application/json": {
|
|
159
|
+
status?: string;
|
|
160
|
+
data?: components["schemas"]["SeatCode"];
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
400: components["responses"]["BadRequest"];
|
|
165
|
+
401: components["responses"]["Unauthorized"];
|
|
166
|
+
404: components["responses"]["NotFound"];
|
|
167
|
+
500: components["responses"]["ServerError"];
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
params: {
|
|
171
|
+
path: {
|
|
172
|
+
institutionId: string;
|
|
173
|
+
seatCodeId: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
body: {
|
|
177
|
+
isReserved?: boolean;
|
|
178
|
+
};
|
|
179
|
+
}, `${string}/${string}`>>;
|
|
180
|
+
delete(institutionId: string, seatCodeId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
181
|
+
parameters: {
|
|
182
|
+
query?: never;
|
|
183
|
+
header?: never;
|
|
184
|
+
path: {
|
|
185
|
+
institutionId: string;
|
|
186
|
+
seatCodeId: string;
|
|
187
|
+
};
|
|
188
|
+
cookie?: never;
|
|
189
|
+
};
|
|
190
|
+
requestBody?: never;
|
|
191
|
+
responses: {
|
|
192
|
+
204: {
|
|
193
|
+
headers: {
|
|
194
|
+
[name: string]: unknown;
|
|
195
|
+
};
|
|
196
|
+
content?: never;
|
|
197
|
+
};
|
|
198
|
+
400: components["responses"]["BadRequest"];
|
|
199
|
+
401: components["responses"]["Unauthorized"];
|
|
200
|
+
404: components["responses"]["NotFound"];
|
|
201
|
+
500: components["responses"]["ServerError"];
|
|
202
|
+
};
|
|
203
|
+
}, {
|
|
204
|
+
params: {
|
|
205
|
+
path: {
|
|
206
|
+
institutionId: string;
|
|
207
|
+
seatCodeId: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, `${string}/${string}`>>;
|
|
211
|
+
getBySeatId(institutionId: string, seatId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
212
|
+
parameters: {
|
|
213
|
+
query?: never;
|
|
214
|
+
header?: never;
|
|
215
|
+
path: {
|
|
216
|
+
institutionId: string;
|
|
217
|
+
seatId: string;
|
|
218
|
+
};
|
|
219
|
+
cookie?: never;
|
|
220
|
+
};
|
|
221
|
+
requestBody?: never;
|
|
222
|
+
responses: {
|
|
223
|
+
200: {
|
|
224
|
+
headers: {
|
|
225
|
+
[name: string]: unknown;
|
|
226
|
+
};
|
|
227
|
+
content: {
|
|
228
|
+
"application/json": {
|
|
229
|
+
status?: string;
|
|
230
|
+
data?: components["schemas"]["SeatCode"][];
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
401: components["responses"]["Unauthorized"];
|
|
235
|
+
404: components["responses"]["NotFound"];
|
|
236
|
+
500: components["responses"]["ServerError"];
|
|
237
|
+
};
|
|
238
|
+
}, {
|
|
239
|
+
params: {
|
|
240
|
+
path: {
|
|
241
|
+
institutionId: string;
|
|
242
|
+
seatId: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
}, `${string}/${string}`>>;
|
|
246
|
+
deleteAllBySeatId(institutionId: string, seatId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
247
|
+
parameters: {
|
|
248
|
+
query?: never;
|
|
249
|
+
header?: never;
|
|
250
|
+
path: {
|
|
251
|
+
institutionId: string;
|
|
252
|
+
seatId: string;
|
|
253
|
+
};
|
|
254
|
+
cookie?: never;
|
|
255
|
+
};
|
|
256
|
+
requestBody?: never;
|
|
257
|
+
responses: {
|
|
258
|
+
200: {
|
|
259
|
+
headers: {
|
|
260
|
+
[name: string]: unknown;
|
|
261
|
+
};
|
|
262
|
+
content: {
|
|
263
|
+
"application/json": {
|
|
264
|
+
status?: string;
|
|
265
|
+
data?: {
|
|
266
|
+
deletedCount?: number;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
400: components["responses"]["BadRequest"];
|
|
272
|
+
401: components["responses"]["Unauthorized"];
|
|
273
|
+
404: components["responses"]["NotFound"];
|
|
274
|
+
500: components["responses"]["ServerError"];
|
|
275
|
+
};
|
|
276
|
+
}, {
|
|
277
|
+
params: {
|
|
278
|
+
path: {
|
|
279
|
+
institutionId: string;
|
|
280
|
+
seatId: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
}, `${string}/${string}`>>;
|
|
284
|
+
getAvailableBySeatId(institutionId: string, seatId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
285
|
+
parameters: {
|
|
286
|
+
query?: never;
|
|
287
|
+
header?: never;
|
|
288
|
+
path: {
|
|
289
|
+
institutionId: string;
|
|
290
|
+
seatId: string;
|
|
291
|
+
};
|
|
292
|
+
cookie?: never;
|
|
293
|
+
};
|
|
294
|
+
requestBody?: never;
|
|
295
|
+
responses: {
|
|
296
|
+
200: {
|
|
297
|
+
headers: {
|
|
298
|
+
[name: string]: unknown;
|
|
299
|
+
};
|
|
300
|
+
content: {
|
|
301
|
+
"application/json": {
|
|
302
|
+
status?: string;
|
|
303
|
+
data?: components["schemas"]["SeatCode"][];
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
401: components["responses"]["Unauthorized"];
|
|
308
|
+
404: components["responses"]["NotFound"];
|
|
309
|
+
500: components["responses"]["ServerError"];
|
|
310
|
+
};
|
|
311
|
+
}, {
|
|
312
|
+
params: {
|
|
313
|
+
path: {
|
|
314
|
+
institutionId: string;
|
|
315
|
+
seatId: string;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
}, `${string}/${string}`>>;
|
|
319
|
+
validate(code: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
320
|
+
parameters: {
|
|
321
|
+
query?: never;
|
|
322
|
+
header?: never;
|
|
323
|
+
path: {
|
|
324
|
+
code: string;
|
|
325
|
+
};
|
|
326
|
+
cookie?: never;
|
|
327
|
+
};
|
|
328
|
+
requestBody?: never;
|
|
329
|
+
responses: {
|
|
330
|
+
200: {
|
|
331
|
+
headers: {
|
|
332
|
+
[name: string]: unknown;
|
|
333
|
+
};
|
|
334
|
+
content: {
|
|
335
|
+
"application/json": {
|
|
336
|
+
status?: string;
|
|
337
|
+
data?: components["schemas"]["SeatCodeWithInstitution"];
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
401: components["responses"]["Unauthorized"];
|
|
342
|
+
404: components["responses"]["NotFound"];
|
|
343
|
+
500: components["responses"]["ServerError"];
|
|
344
|
+
};
|
|
345
|
+
}, {
|
|
346
|
+
params: {
|
|
347
|
+
path: {
|
|
348
|
+
code: string;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}, `${string}/${string}`>>;
|
|
352
|
+
reserve(code: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
353
|
+
parameters: {
|
|
354
|
+
query?: never;
|
|
355
|
+
header?: never;
|
|
356
|
+
path: {
|
|
357
|
+
code: string;
|
|
358
|
+
};
|
|
359
|
+
cookie?: never;
|
|
360
|
+
};
|
|
361
|
+
requestBody?: never;
|
|
362
|
+
responses: {
|
|
363
|
+
200: {
|
|
364
|
+
headers: {
|
|
365
|
+
[name: string]: unknown;
|
|
366
|
+
};
|
|
367
|
+
content: {
|
|
368
|
+
"application/json": {
|
|
369
|
+
status?: string;
|
|
370
|
+
data?: components["schemas"]["SeatCodeWithInstitution"];
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
401: components["responses"]["Unauthorized"];
|
|
375
|
+
404: components["responses"]["NotFound"];
|
|
376
|
+
409: {
|
|
377
|
+
headers: {
|
|
378
|
+
[name: string]: unknown;
|
|
379
|
+
};
|
|
380
|
+
content: {
|
|
381
|
+
"application/json": {
|
|
382
|
+
status?: string;
|
|
383
|
+
message?: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
500: components["responses"]["ServerError"];
|
|
388
|
+
};
|
|
389
|
+
}, {
|
|
390
|
+
params: {
|
|
391
|
+
path: {
|
|
392
|
+
code: string;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}, `${string}/${string}`>>;
|
|
396
|
+
sendCode(data: SendCodeDto): Promise<import("openapi-fetch").FetchResponse<{
|
|
397
|
+
parameters: {
|
|
398
|
+
query?: never;
|
|
399
|
+
header?: never;
|
|
400
|
+
path?: never;
|
|
401
|
+
cookie?: never;
|
|
402
|
+
};
|
|
403
|
+
requestBody: {
|
|
404
|
+
content: {
|
|
405
|
+
"application/json": components["schemas"]["SendCodeDto"];
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
responses: {
|
|
409
|
+
200: {
|
|
410
|
+
headers: {
|
|
411
|
+
[name: string]: unknown;
|
|
412
|
+
};
|
|
413
|
+
content: {
|
|
414
|
+
"application/json": {
|
|
415
|
+
status?: string;
|
|
416
|
+
data?: components["schemas"]["SeatCodeWithInstitution"];
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
400: {
|
|
421
|
+
headers: {
|
|
422
|
+
[name: string]: unknown;
|
|
423
|
+
};
|
|
424
|
+
content: {
|
|
425
|
+
"application/json": {
|
|
426
|
+
status?: string;
|
|
427
|
+
message?: string;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
401: components["responses"]["Unauthorized"];
|
|
432
|
+
404: components["responses"]["NotFound"];
|
|
433
|
+
409: {
|
|
434
|
+
headers: {
|
|
435
|
+
[name: string]: unknown;
|
|
436
|
+
};
|
|
437
|
+
content: {
|
|
438
|
+
"application/json": {
|
|
439
|
+
status?: string;
|
|
440
|
+
message?: string;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
500: components["responses"]["ServerError"];
|
|
445
|
+
};
|
|
446
|
+
}, {
|
|
447
|
+
body: {
|
|
448
|
+
phone: string;
|
|
449
|
+
name?: string;
|
|
450
|
+
code?: string;
|
|
451
|
+
seatId?: string;
|
|
452
|
+
};
|
|
453
|
+
}, `${string}/${string}`>>;
|
|
454
|
+
};
|
|
455
|
+
export type SeatCodeService = ReturnType<typeof createSeatCodeService>;
|
|
456
|
+
export {};
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import type { AcademeApiClient } from
|
|
2
|
-
import type { components } from
|
|
3
|
-
type CreateUserBody =
|
|
4
|
-
|
|
5
|
-
lastName: string;
|
|
6
|
-
email: string;
|
|
7
|
-
password: string;
|
|
8
|
-
phone?: string;
|
|
9
|
-
document?: number;
|
|
10
|
-
gender?: 'male' | 'female' | 'other';
|
|
11
|
-
birthdate?: string;
|
|
12
|
-
};
|
|
13
|
-
type UpdateUserDto = components['schemas']['UpdateUserDto'];
|
|
1
|
+
import type { AcademeApiClient } from "./index";
|
|
2
|
+
import type { components } from "../types/academe-api";
|
|
3
|
+
type CreateUserBody = components["schemas"]["CreateUserDto"];
|
|
4
|
+
type UpdateUserDto = components["schemas"]["UpdateUserDto"];
|
|
14
5
|
type GetUsersParams = {
|
|
15
6
|
email?: string;
|
|
16
7
|
document?: number;
|
|
@@ -163,9 +154,12 @@ export declare function createUserService(apiClient: AcademeApiClient): {
|
|
|
163
154
|
email: string;
|
|
164
155
|
password: string;
|
|
165
156
|
phone?: string;
|
|
166
|
-
document
|
|
157
|
+
document: string;
|
|
167
158
|
gender?: "male" | "female" | "other";
|
|
168
159
|
birthdate?: string;
|
|
160
|
+
seatCodeId?: string;
|
|
161
|
+
groupId?: string;
|
|
162
|
+
institutionId?: string;
|
|
169
163
|
};
|
|
170
164
|
};
|
|
171
165
|
};
|
|
@@ -181,8 +175,100 @@ export declare function createUserService(apiClient: AcademeApiClient): {
|
|
|
181
175
|
};
|
|
182
176
|
};
|
|
183
177
|
};
|
|
184
|
-
400:
|
|
178
|
+
400: {
|
|
179
|
+
headers: {
|
|
180
|
+
[name: string]: unknown;
|
|
181
|
+
};
|
|
182
|
+
content: {
|
|
183
|
+
"application/json": components["schemas"]["Error"];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
185
186
|
401: components["responses"]["Unauthorized"];
|
|
187
|
+
404: {
|
|
188
|
+
headers: {
|
|
189
|
+
[name: string]: unknown;
|
|
190
|
+
};
|
|
191
|
+
content: {
|
|
192
|
+
"application/json": components["schemas"]["Error"];
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
409: {
|
|
196
|
+
headers: {
|
|
197
|
+
[name: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
content: {
|
|
200
|
+
"application/json": components["schemas"]["Error"];
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
500: components["responses"]["ServerError"];
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
body: {
|
|
207
|
+
firstName: string;
|
|
208
|
+
lastName: string;
|
|
209
|
+
email: string;
|
|
210
|
+
password: string;
|
|
211
|
+
phone?: string;
|
|
212
|
+
document: string;
|
|
213
|
+
gender?: "male" | "female" | "other";
|
|
214
|
+
birthdate?: string;
|
|
215
|
+
groupId?: string;
|
|
216
|
+
institutionId?: string;
|
|
217
|
+
guardianId?: string;
|
|
218
|
+
};
|
|
219
|
+
}, `${string}/${string}`>>;
|
|
220
|
+
createPublicUser(body: CreateUserBody): Promise<import("openapi-fetch").FetchResponse<{
|
|
221
|
+
parameters: {
|
|
222
|
+
query?: never;
|
|
223
|
+
header?: never;
|
|
224
|
+
path?: never;
|
|
225
|
+
cookie?: never;
|
|
226
|
+
};
|
|
227
|
+
requestBody: {
|
|
228
|
+
content: {
|
|
229
|
+
"application/json": {
|
|
230
|
+
firstName: string;
|
|
231
|
+
lastName: string;
|
|
232
|
+
email: string;
|
|
233
|
+
password: string;
|
|
234
|
+
phone?: string;
|
|
235
|
+
document: string;
|
|
236
|
+
gender?: "male" | "female" | "other";
|
|
237
|
+
birthdate?: string;
|
|
238
|
+
seatCodeId?: string;
|
|
239
|
+
groupId?: string;
|
|
240
|
+
institutionId?: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
responses: {
|
|
245
|
+
201: {
|
|
246
|
+
headers: {
|
|
247
|
+
[name: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
content: {
|
|
250
|
+
"application/json": {
|
|
251
|
+
status?: string;
|
|
252
|
+
data?: components["schemas"]["User"];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
400: {
|
|
257
|
+
headers: {
|
|
258
|
+
[name: string]: unknown;
|
|
259
|
+
};
|
|
260
|
+
content: {
|
|
261
|
+
"application/json": components["schemas"]["Error"];
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
404: {
|
|
265
|
+
headers: {
|
|
266
|
+
[name: string]: unknown;
|
|
267
|
+
};
|
|
268
|
+
content: {
|
|
269
|
+
"application/json": components["schemas"]["Error"];
|
|
270
|
+
};
|
|
271
|
+
};
|
|
186
272
|
409: {
|
|
187
273
|
headers: {
|
|
188
274
|
[name: string]: unknown;
|
|
@@ -194,7 +280,19 @@ export declare function createUserService(apiClient: AcademeApiClient): {
|
|
|
194
280
|
500: components["responses"]["ServerError"];
|
|
195
281
|
};
|
|
196
282
|
}, {
|
|
197
|
-
body:
|
|
283
|
+
body: {
|
|
284
|
+
firstName: string;
|
|
285
|
+
lastName: string;
|
|
286
|
+
email: string;
|
|
287
|
+
password: string;
|
|
288
|
+
phone?: string;
|
|
289
|
+
document: string;
|
|
290
|
+
gender?: "male" | "female" | "other";
|
|
291
|
+
birthdate?: string;
|
|
292
|
+
groupId?: string;
|
|
293
|
+
institutionId?: string;
|
|
294
|
+
guardianId?: string;
|
|
295
|
+
};
|
|
198
296
|
}, `${string}/${string}`>>;
|
|
199
297
|
/**
|
|
200
298
|
* Update user information
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import type { paths } from
|
|
2
|
-
import createClient from
|
|
3
|
-
import { type UserService } from
|
|
4
|
-
import { type InstitutionService } from
|
|
5
|
-
import { type ReportService } from
|
|
6
|
-
import { type ClassroomService } from
|
|
7
|
-
import { type OrganizationService } from
|
|
8
|
-
import { type SerieService } from
|
|
9
|
-
import { type ShiftService } from
|
|
10
|
-
import { type GuardianService } from
|
|
1
|
+
import type { paths } from "../types/academe-api";
|
|
2
|
+
import createClient from "openapi-fetch";
|
|
3
|
+
import { type UserService } from "./UserService";
|
|
4
|
+
import { type InstitutionService } from "./InstitutionService";
|
|
5
|
+
import { type ReportService } from "./ReportService";
|
|
6
|
+
import { type ClassroomService } from "./ClassroomService";
|
|
7
|
+
import { type OrganizationService } from "./OrganizationService";
|
|
8
|
+
import { type SerieService } from "./SerieService";
|
|
9
|
+
import { type ShiftService } from "./ShiftService";
|
|
10
|
+
import { type GuardianService } from "./GuardianService";
|
|
11
|
+
import { type AuthService } from "./AuthService";
|
|
12
|
+
import { type GroupService } from "./GroupService";
|
|
13
|
+
import { type QuizService } from "./QuizService";
|
|
14
|
+
import { type CertificateService } from "./CertificateService";
|
|
15
|
+
import { type SeatCodeService } from "./SeatCodeService";
|
|
16
|
+
import { type ProductService } from "./ProductService";
|
|
11
17
|
export type AcademeApiClient = ReturnType<typeof createClient<paths>>;
|
|
12
18
|
export declare function createAcademeApiClient(baseUrl: string): AcademeApiClient;
|
|
13
19
|
export interface AcademeServices {
|
|
@@ -19,12 +25,24 @@ export interface AcademeServices {
|
|
|
19
25
|
serie: SerieService;
|
|
20
26
|
shift: ShiftService;
|
|
21
27
|
guardian: GuardianService;
|
|
28
|
+
auth: AuthService;
|
|
29
|
+
group: GroupService;
|
|
30
|
+
quiz: QuizService;
|
|
31
|
+
certificate: CertificateService;
|
|
32
|
+
seatCode: SeatCodeService;
|
|
33
|
+
product: ProductService;
|
|
22
34
|
}
|
|
23
35
|
export declare function createAcademeServices(apiClient: AcademeApiClient): AcademeServices;
|
|
24
|
-
export { createUserService, type UserService } from
|
|
25
|
-
export { createReportService, type ReportService } from
|
|
26
|
-
export { createClassroomService, type ClassroomService } from
|
|
27
|
-
export { createOrganizationService, type OrganizationService } from
|
|
28
|
-
export { createSerieService, type SerieService } from
|
|
29
|
-
export { createShiftService, type ShiftService } from
|
|
30
|
-
export { createGuardianService, type GuardianService } from
|
|
36
|
+
export { createUserService, type UserService } from "./UserService";
|
|
37
|
+
export { createReportService, type ReportService } from "./ReportService";
|
|
38
|
+
export { createClassroomService, type ClassroomService, } from "./ClassroomService";
|
|
39
|
+
export { createOrganizationService, type OrganizationService, } from "./OrganizationService";
|
|
40
|
+
export { createSerieService, type SerieService } from "./SerieService";
|
|
41
|
+
export { createShiftService, type ShiftService } from "./ShiftService";
|
|
42
|
+
export { createGuardianService, type GuardianService } from "./GuardianService";
|
|
43
|
+
export { createAuthService, type AuthService } from "./AuthService";
|
|
44
|
+
export { createGroupService, type GroupService } from "./GroupService";
|
|
45
|
+
export { createQuizService, type QuizService } from "./QuizService";
|
|
46
|
+
export { createCertificateService, type CertificateService } from "./CertificateService";
|
|
47
|
+
export { createSeatCodeService, type SeatCodeService } from "./SeatCodeService";
|
|
48
|
+
export { createProductService, type ProductService } from "./ProductService";
|