web-core-tcm 0.0.63 → 0.0.64

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.
Files changed (71) hide show
  1. package/dist/src/api/authorization/alova/createApis.js +1 -7
  2. package/dist/src/api/authorization/alova/globals.d.ts +331 -250
  3. package/dist/src/api/authorization/alova/index.d.ts +1 -1
  4. package/dist/src/api/authorization/alova/index.js +5 -6
  5. package/dist/src/api/check/alova/createApis.js +1 -7
  6. package/dist/src/api/check/alova/globals.d.ts +1227 -1126
  7. package/dist/src/api/check/alova/index.d.ts +1 -1
  8. package/dist/src/api/check/alova/index.js +6 -7
  9. package/dist/src/api/config/index.d.ts +1 -0
  10. package/dist/src/api/config/index.js +3 -1
  11. package/dist/src/api/doctor/alova/createApis.js +1 -7
  12. package/dist/src/api/doctor/alova/globals.d.ts +510 -419
  13. package/dist/src/api/doctor/alova/index.d.ts +1 -1
  14. package/dist/src/api/doctor/alova/index.js +6 -7
  15. package/dist/src/api/index.d.ts +1 -0
  16. package/dist/src/api/index.js +2 -0
  17. package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
  18. package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
  19. package/dist/src/api/manager/alova/createApis.d.ts +10 -0
  20. package/dist/src/api/manager/alova/createApis.js +49 -0
  21. package/dist/src/api/manager/alova/globals.d.ts +4890 -0
  22. package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
  23. package/dist/src/api/manager/alova/implement/department.js +44 -0
  24. package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
  25. package/dist/src/api/manager/alova/implement/division.js +44 -0
  26. package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
  27. package/dist/src/api/manager/alova/implement/hospital.js +44 -0
  28. package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
  29. package/dist/src/api/manager/alova/implement/index.js +8 -0
  30. package/dist/src/api/manager/alova/index.d.ts +6 -0
  31. package/dist/src/api/manager/alova/index.js +19 -0
  32. package/dist/src/api/manager/department.d.ts +30 -0
  33. package/dist/src/api/manager/department.js +35 -0
  34. package/dist/src/api/manager/division.d.ts +30 -0
  35. package/dist/src/api/manager/division.js +34 -0
  36. package/dist/src/api/manager/hospital.d.ts +32 -0
  37. package/dist/src/api/manager/hospital.js +36 -0
  38. package/dist/src/api/manager/index.d.ts +4 -0
  39. package/dist/src/api/manager/index.js +17 -0
  40. package/dist/src/api/oauth/alova/createApis.js +1 -7
  41. package/dist/src/api/oauth/alova/globals.d.ts +403 -312
  42. package/dist/src/api/oauth/alova/index.d.ts +1 -1
  43. package/dist/src/api/oauth/alova/index.js +0 -1
  44. package/dist/src/api/outpatient/alova/createApis.js +1 -7
  45. package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
  46. package/dist/src/api/outpatient/alova/index.d.ts +1 -1
  47. package/dist/src/api/outpatient/alova/index.js +5 -6
  48. package/dist/src/api/patient/alova/createApis.js +1 -7
  49. package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
  50. package/dist/src/api/patient/alova/index.d.ts +1 -1
  51. package/dist/src/api/patient/alova/index.js +5 -6
  52. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
  53. package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
  54. package/dist/src/api/prescription/alova/createApis.js +1 -7
  55. package/dist/src/api/prescription/alova/globals.d.ts +959 -812
  56. package/dist/src/api/prescription/alova/index.d.ts +1 -1
  57. package/dist/src/api/prescription/alova/index.js +4 -5
  58. package/dist/src/api/scientist/alova/createApis.js +1 -7
  59. package/dist/src/api/scientist/alova/globals.d.ts +406 -315
  60. package/dist/src/api/scientist/alova/index.d.ts +1 -1
  61. package/dist/src/api/scientist/alova/index.js +4 -5
  62. package/dist/src/index.js +42 -40
  63. package/package.json +1 -1
  64. package/dist/src/api/authorization/alova/globals.js +0 -1
  65. package/dist/src/api/check/alova/globals.js +0 -1
  66. package/dist/src/api/doctor/alova/globals.js +0 -1
  67. package/dist/src/api/oauth/alova/globals.js +0 -1
  68. package/dist/src/api/outpatient/alova/globals.js +0 -1
  69. package/dist/src/api/patient/alova/globals.js +0 -1
  70. package/dist/src/api/prescription/alova/globals.js +0 -1
  71. package/dist/src/api/scientist/alova/globals.js +0 -1
@@ -3,566 +3,657 @@ import { $$userConfigMap, alovaInstance } from './index';
3
3
  import { default as apiDefinitions } from './apiDefinitions';
4
4
  type CollapsedAlova = typeof alovaInstance;
5
5
  type UserMethodConfigMap = typeof $$userConfigMap;
6
- type Alova2MethodConfig<Responded> = CollapsedAlova extends Alova<AlovaGenerics<any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE>> ? Omit<AlovaMethodCreateConfig<AlovaGenerics<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>, any, Responded>, 'params'> : never;
7
- type ExtractUserDefinedTransformed<DefinitionKey extends keyof typeof apiDefinitions, Default> = DefinitionKey extends keyof UserMethodConfigMap ? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>> : Default : Default;
8
- type Alova2Method<Responded, DefinitionKey extends keyof typeof apiDefinitions, CurrentConfig extends Alova2MethodConfig<any>> = CollapsedAlova extends Alova<AlovaGenerics<any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE>> ? Method<AlovaGenerics<CurrentConfig extends undefined ? ExtractUserDefinedTransformed<DefinitionKey, Responded> : CurrentConfig['transform'] extends (...args: any[]) => any ? Awaited<ReturnType<CurrentConfig['transform']>> : ExtractUserDefinedTransformed<DefinitionKey, Responded>, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>> : never;
6
+
7
+ type Alova2MethodConfig<Responded> =
8
+ CollapsedAlova extends Alova<
9
+ AlovaGenerics<
10
+ any,
11
+ any,
12
+ infer RequestConfig,
13
+ infer Response,
14
+ infer ResponseHeader,
15
+ infer L1Cache,
16
+ infer L2Cache,
17
+ infer SE
18
+ >
19
+ >
20
+ ? Omit<
21
+ AlovaMethodCreateConfig<
22
+ AlovaGenerics<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>,
23
+ any,
24
+ Responded
25
+ >,
26
+ 'params'
27
+ >
28
+ : never;
29
+
30
+ // Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
31
+ type ExtractUserDefinedTransformed<
32
+ DefinitionKey extends keyof typeof apiDefinitions,
33
+ Default
34
+ > = DefinitionKey extends keyof UserMethodConfigMap
35
+ ? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
36
+ ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
37
+ : Default
38
+ : Default;
39
+ type Alova2Method<
40
+ Responded,
41
+ DefinitionKey extends keyof typeof apiDefinitions,
42
+ CurrentConfig extends Alova2MethodConfig<any>
43
+ > =
44
+ CollapsedAlova extends Alova<
45
+ AlovaGenerics<
46
+ any,
47
+ any,
48
+ infer RequestConfig,
49
+ infer Response,
50
+ infer ResponseHeader,
51
+ infer L1Cache,
52
+ infer L2Cache,
53
+ infer SE
54
+ >
55
+ >
56
+ ? Method<
57
+ AlovaGenerics<
58
+ CurrentConfig extends undefined
59
+ ? ExtractUserDefinedTransformed<DefinitionKey, Responded>
60
+ : CurrentConfig['transform'] extends (...args: any[]) => any
61
+ ? Awaited<ReturnType<CurrentConfig['transform']>>
62
+ : ExtractUserDefinedTransformed<DefinitionKey, Responded>,
63
+ any,
64
+ RequestConfig,
65
+ Response,
66
+ ResponseHeader,
67
+ L1Cache,
68
+ L2Cache,
69
+ SE
70
+ >
71
+ >
72
+ : never;
73
+
9
74
  export interface AnnotationState {
10
- value?: string;
11
- actor?: string;
12
- timestamp?: string;
75
+ value?: string;
76
+ actor?: string;
77
+ timestamp?: string;
13
78
  }
14
79
  export interface TagState {
15
- key?: string;
16
- annotationsState?: AnnotationState[];
80
+ key?: string;
81
+ annotationsState?: AnnotationState[];
17
82
  }
18
83
  export interface PatientState {
19
- id?: string;
20
- doctorId?: string;
21
- name?: string;
22
- createdTimestamp?: string;
23
- updatedTimestamp?: string;
24
- identity?: string;
25
- gender?: string;
26
- phoneNumber?: string;
27
- birthdate?: string;
28
- remarks?: string[];
29
- tagsState?: TagState[];
30
- mainSymptom?: string;
84
+ id?: string;
85
+ doctorId?: string;
86
+ name?: string;
87
+ createdTimestamp?: string;
88
+ updatedTimestamp?: string;
89
+ identity?: string;
90
+ gender?: string;
91
+ phoneNumber?: string;
92
+ birthdate?: string;
93
+ remarks?: string[];
94
+ tagsState?: TagState[];
95
+ mainSymptom?: string;
31
96
  }
32
97
  export interface DoctorState {
33
- id?: string;
34
- name?: string;
35
- createdTimestamp?: string;
36
- updatedTimestamp?: string;
37
- gender?: string;
38
- identityNumber?: string;
39
- phoneNumber?: string;
40
- birthdate?: string;
98
+ id?: string;
99
+ name?: string;
100
+ createdTimestamp?: string;
101
+ updatedTimestamp?: string;
102
+ gender?: string;
103
+ identityNumber?: string;
104
+ phoneNumber?: string;
105
+ birthdate?: string;
41
106
  }
42
107
  export interface QueuerState {
43
- id?: string;
44
- patientState?: PatientState;
45
- doctorState?: DoctorState;
46
- createdTimestamp?: string;
47
- updatedTimestamp?: string;
48
- status?: number;
108
+ id?: string;
109
+ patientState?: PatientState;
110
+ doctorState?: DoctorState;
111
+ createdTimestamp?: string;
112
+ updatedTimestamp?: string;
113
+ status?: number;
49
114
  }
50
115
  export interface DateDistribute {
51
- date?: string;
52
- count?: number;
116
+ date?: string;
117
+ count?: number;
53
118
  }
54
119
  export interface SortObject {
55
- empty?: boolean;
56
- sorted?: boolean;
57
- unsorted?: boolean;
120
+ empty?: boolean;
121
+ sorted?: boolean;
122
+ unsorted?: boolean;
58
123
  }
59
124
  export interface PageableObject {
60
- offset?: number;
61
- sort?: SortObject;
62
- pageSize?: number;
63
- paged?: boolean;
64
- pageNumber?: number;
65
- unpaged?: boolean;
125
+ offset?: number;
126
+ sort?: SortObject;
127
+ pageSize?: number;
128
+ paged?: boolean;
129
+ pageNumber?: number;
130
+ unpaged?: boolean;
66
131
  }
67
132
  export interface PageQueuerState {
68
- totalPages?: number;
69
- totalElements?: number;
70
- size?: number;
71
- content?: QueuerState[];
72
- number?: number;
73
- sort?: SortObject;
74
- first?: boolean;
75
- last?: boolean;
76
- numberOfElements?: number;
77
- pageable?: PageableObject;
78
- empty?: boolean;
133
+ totalPages?: number;
134
+ totalElements?: number;
135
+ size?: number;
136
+ content?: QueuerState[];
137
+ number?: number;
138
+ sort?: SortObject;
139
+ numberOfElements?: number;
140
+ pageable?: PageableObject;
141
+ first?: boolean;
142
+ last?: boolean;
143
+ empty?: boolean;
79
144
  }
80
145
  declare global {
81
- interface outpatientApi {
82
- queuerRestful: {
83
- /**
84
- * ---
85
- *
86
- * [GET]
87
- *
88
- * **path:** /门诊/服务/排队/{id}
89
- *
90
- * ---
91
- *
92
- * **Path Parameters**
93
- * ```ts
94
- * type PathParameters = {
95
- * id: string
96
- * }
97
- * ```
98
- *
99
- * ---
100
- *
101
- * **Response**
102
- * ```ts
103
- * type Response = {
104
- * id?: string
105
- * patientState?: {
106
- * id?: string
107
- * doctorId?: string
108
- * name?: string
109
- * createdTimestamp?: string
110
- * updatedTimestamp?: string
111
- * identity?: string
112
- * gender?: string
113
- * phoneNumber?: string
114
- * birthdate?: string
115
- * // [items] start
116
- * // [items] end
117
- * remarks?: string[]
118
- * // [items] start
119
- * // [items] end
120
- * tagsState?: Array<{
121
- * key?: string
122
- * // [items] start
123
- * // [items] end
124
- * annotationsState?: Array<{
125
- * value?: string
126
- * actor?: string
127
- * timestamp?: string
128
- * }>
129
- * }>
130
- * mainSymptom?: string
131
- * }
132
- * doctorState?: {
133
- * id?: string
134
- * name?: string
135
- * createdTimestamp?: string
136
- * updatedTimestamp?: string
137
- * gender?: string
138
- * identityNumber?: string
139
- * phoneNumber?: string
140
- * birthdate?: string
141
- * }
142
- * createdTimestamp?: string
143
- * updatedTimestamp?: string
144
- * status?: number
145
- * }
146
- * ```
147
- */
148
- getQueuerState<Config extends Alova2MethodConfig<QueuerState> & {
149
- pathParams: {
150
- id: string;
151
- };
152
- }>(config: Config): Alova2Method<QueuerState, 'queuerRestful.getQueuerState', Config>;
153
- /**
154
- * ---
155
- *
156
- * [PUT]
157
- *
158
- * **path:** /门诊/服务/排队/{id}
159
- *
160
- * ---
161
- *
162
- * **Path Parameters**
163
- * ```ts
164
- * type PathParameters = {
165
- * id: string
166
- * }
167
- * ```
168
- *
169
- * ---
170
- *
171
- * **RequestBody**
172
- * ```ts
173
- * type RequestBody = {
174
- * id?: string
175
- * patientState?: {
176
- * id?: string
177
- * doctorId?: string
178
- * name?: string
179
- * createdTimestamp?: string
180
- * updatedTimestamp?: string
181
- * identity?: string
182
- * gender?: string
183
- * phoneNumber?: string
184
- * birthdate?: string
185
- * // [items] start
186
- * // [items] end
187
- * remarks?: string[]
188
- * // [items] start
189
- * // [items] end
190
- * tagsState?: Array<{
191
- * key?: string
192
- * // [items] start
193
- * // [items] end
194
- * annotationsState?: Array<{
195
- * value?: string
196
- * actor?: string
197
- * timestamp?: string
198
- * }>
199
- * }>
200
- * mainSymptom?: string
201
- * }
202
- * doctorState?: {
203
- * id?: string
204
- * name?: string
205
- * createdTimestamp?: string
206
- * updatedTimestamp?: string
207
- * gender?: string
208
- * identityNumber?: string
209
- * phoneNumber?: string
210
- * birthdate?: string
211
- * }
212
- * createdTimestamp?: string
213
- * updatedTimestamp?: string
214
- * status?: number
215
- * }
216
- * ```
217
- *
218
- * ---
219
- *
220
- * **Response**
221
- * ```ts
222
- * type Response = {
223
- * id?: string
224
- * patientState?: {
225
- * id?: string
226
- * doctorId?: string
227
- * name?: string
228
- * createdTimestamp?: string
229
- * updatedTimestamp?: string
230
- * identity?: string
231
- * gender?: string
232
- * phoneNumber?: string
233
- * birthdate?: string
234
- * // [items] start
235
- * // [items] end
236
- * remarks?: string[]
237
- * // [items] start
238
- * // [items] end
239
- * tagsState?: Array<{
240
- * key?: string
241
- * // [items] start
242
- * // [items] end
243
- * annotationsState?: Array<{
244
- * value?: string
245
- * actor?: string
246
- * timestamp?: string
247
- * }>
248
- * }>
249
- * mainSymptom?: string
250
- * }
251
- * doctorState?: {
252
- * id?: string
253
- * name?: string
254
- * createdTimestamp?: string
255
- * updatedTimestamp?: string
256
- * gender?: string
257
- * identityNumber?: string
258
- * phoneNumber?: string
259
- * birthdate?: string
260
- * }
261
- * createdTimestamp?: string
262
- * updatedTimestamp?: string
263
- * status?: number
264
- * }
265
- * ```
266
- */
267
- putQueuerState<Config extends Alova2MethodConfig<QueuerState> & {
268
- pathParams: {
269
- id: string;
270
- };
271
- data: QueuerState;
272
- }>(config: Config): Alova2Method<QueuerState, 'queuerRestful.putQueuerState', Config>;
273
- /**
274
- * ---
275
- *
276
- * [DELETE]
277
- *
278
- * **path:** /门诊/服务/排队/{id}
279
- *
280
- * ---
281
- *
282
- * **Path Parameters**
283
- * ```ts
284
- * type PathParameters = {
285
- * id: string
286
- * }
287
- * ```
288
- *
289
- * ---
290
- *
291
- * **Response**
292
- * ```ts
293
- * type Response = null
294
- * ```
295
- */
296
- deleteQueuerState<Config extends Alova2MethodConfig<null> & {
297
- pathParams: {
298
- id: string;
299
- };
300
- }>(config: Config): Alova2Method<null, 'queuerRestful.deleteQueuerState', Config>;
301
- /**
302
- * ---
303
- *
304
- * [GET]
305
- *
306
- * **path:** /门诊/服务/排队
307
- *
308
- * ---
309
- *
310
- * **Query Parameters**
311
- * ```ts
312
- * type QueryParameters = {
313
- * doctorId?: string
314
- * patientId?: string
315
- * page: number
316
- * pageSize: number
317
- * }
318
- * ```
319
- *
320
- * ---
321
- *
322
- * **Response**
323
- * ```ts
324
- * type Response = {
325
- * totalPages?: number
326
- * totalElements?: number
327
- * size?: number
328
- * // [items] start
329
- * // [items] end
330
- * content?: Array<{
331
- * id?: string
332
- * patientState?: {
333
- * id?: string
334
- * doctorId?: string
335
- * name?: string
336
- * createdTimestamp?: string
337
- * updatedTimestamp?: string
338
- * identity?: string
339
- * gender?: string
340
- * phoneNumber?: string
341
- * birthdate?: string
342
- * // [items] start
343
- * // [items] end
344
- * remarks?: string[]
345
- * // [items] start
346
- * // [items] end
347
- * tagsState?: Array<{
348
- * key?: string
349
- * // [items] start
350
- * // [items] end
351
- * annotationsState?: Array<{
352
- * value?: string
353
- * actor?: string
354
- * timestamp?: string
355
- * }>
356
- * }>
357
- * mainSymptom?: string
358
- * }
359
- * doctorState?: {
360
- * id?: string
361
- * name?: string
362
- * createdTimestamp?: string
363
- * updatedTimestamp?: string
364
- * gender?: string
365
- * identityNumber?: string
366
- * phoneNumber?: string
367
- * birthdate?: string
368
- * }
369
- * createdTimestamp?: string
370
- * updatedTimestamp?: string
371
- * status?: number
372
- * }>
373
- * number?: number
374
- * sort?: {
375
- * empty?: boolean
376
- * sorted?: boolean
377
- * unsorted?: boolean
378
- * }
379
- * first?: boolean
380
- * last?: boolean
381
- * numberOfElements?: number
382
- * pageable?: {
383
- * offset?: number
384
- * sort?: {
385
- * empty?: boolean
386
- * sorted?: boolean
387
- * unsorted?: boolean
388
- * }
389
- * pageSize?: number
390
- * paged?: boolean
391
- * pageNumber?: number
392
- * unpaged?: boolean
393
- * }
394
- * empty?: boolean
395
- * }
396
- * ```
397
- */
398
- queryQueuerState<Config extends Alova2MethodConfig<PageQueuerState> & {
399
- params: {
400
- doctorId?: string;
401
- patientId?: string;
402
- page: number;
403
- pageSize: number;
404
- };
405
- }>(config: Config): Alova2Method<PageQueuerState, 'queuerRestful.queryQueuerState', Config>;
406
- /**
407
- * ---
408
- *
409
- * [POST]
410
- *
411
- * **path:** /门诊/服务/排队
412
- *
413
- * ---
414
- *
415
- * **RequestBody**
416
- * ```ts
417
- * type RequestBody = {
418
- * id?: string
419
- * patientState?: {
420
- * id?: string
421
- * doctorId?: string
422
- * name?: string
423
- * createdTimestamp?: string
424
- * updatedTimestamp?: string
425
- * identity?: string
426
- * gender?: string
427
- * phoneNumber?: string
428
- * birthdate?: string
429
- * // [items] start
430
- * // [items] end
431
- * remarks?: string[]
432
- * // [items] start
433
- * // [items] end
434
- * tagsState?: Array<{
435
- * key?: string
436
- * // [items] start
437
- * // [items] end
438
- * annotationsState?: Array<{
439
- * value?: string
440
- * actor?: string
441
- * timestamp?: string
442
- * }>
443
- * }>
444
- * mainSymptom?: string
445
- * }
446
- * doctorState?: {
447
- * id?: string
448
- * name?: string
449
- * createdTimestamp?: string
450
- * updatedTimestamp?: string
451
- * gender?: string
452
- * identityNumber?: string
453
- * phoneNumber?: string
454
- * birthdate?: string
455
- * }
456
- * createdTimestamp?: string
457
- * updatedTimestamp?: string
458
- * status?: number
459
- * }
460
- * ```
461
- *
462
- * ---
463
- *
464
- * **Response**
465
- * ```ts
466
- * type Response = {
467
- * id?: string
468
- * patientState?: {
469
- * id?: string
470
- * doctorId?: string
471
- * name?: string
472
- * createdTimestamp?: string
473
- * updatedTimestamp?: string
474
- * identity?: string
475
- * gender?: string
476
- * phoneNumber?: string
477
- * birthdate?: string
478
- * // [items] start
479
- * // [items] end
480
- * remarks?: string[]
481
- * // [items] start
482
- * // [items] end
483
- * tagsState?: Array<{
484
- * key?: string
485
- * // [items] start
486
- * // [items] end
487
- * annotationsState?: Array<{
488
- * value?: string
489
- * actor?: string
490
- * timestamp?: string
491
- * }>
492
- * }>
493
- * mainSymptom?: string
494
- * }
495
- * doctorState?: {
496
- * id?: string
497
- * name?: string
498
- * createdTimestamp?: string
499
- * updatedTimestamp?: string
500
- * gender?: string
501
- * identityNumber?: string
502
- * phoneNumber?: string
503
- * birthdate?: string
504
- * }
505
- * createdTimestamp?: string
506
- * updatedTimestamp?: string
507
- * status?: number
508
- * }
509
- * ```
510
- */
511
- postQueuerState<Config extends Alova2MethodConfig<QueuerState> & {
512
- data: QueuerState;
513
- }>(config: Config): Alova2Method<QueuerState, 'queuerRestful.postQueuerState', Config>;
514
- };
515
- metricRestful: {
516
- /**
517
- * ---
518
- *
519
- * [GET]
520
- *
521
- * **path:** /门诊/服务/统计/排队/日期
522
- *
523
- * ---
524
- *
525
- * **Response**
526
- * ```ts
527
- * type Response = Array<{
528
- * date?: string
529
- * count?: number
530
- * }>
531
- * ```
532
- */
533
- datesOfQueuerState<Config extends Alova2MethodConfig<DateDistribute[]>>(config?: Config): Alova2Method<DateDistribute[], 'metricRestful.datesOfQueuerState', Config>;
534
- /**
535
- * ---
536
- *
537
- * [GET]
538
- *
539
- * **path:** /门诊/服务/统计/排队/总数
540
- *
541
- * ---
542
- *
543
- * **Response**
544
- * ```ts
545
- * type Response = number
546
- * ```
547
- */
548
- totalOfQueuerState<Config extends Alova2MethodConfig<number>>(config?: Config): Alova2Method<number, 'metricRestful.totalOfQueuerState', Config>;
549
- /**
550
- * ---
551
- *
552
- * [GET]
553
- *
554
- * **path:** /门诊/服务/统计/排队/今日
555
- *
556
- * ---
557
- *
558
- * **Response**
559
- * ```ts
560
- * type Response = number
561
- * ```
562
- */
563
- totalOfQueuerTodayState<Config extends Alova2MethodConfig<number>>(config?: Config): Alova2Method<number, 'metricRestful.totalOfQueuerTodayState', Config>;
564
- };
565
- }
566
- var outpatientApi: outpatientApi;
146
+ interface outpatientApi {
147
+ queuerRestful: {
148
+ /**
149
+ * ---
150
+ *
151
+ * [GET]
152
+ *
153
+ * **path:** /门诊/服务/排队/{id}
154
+ *
155
+ * ---
156
+ *
157
+ * **Path Parameters**
158
+ * ```ts
159
+ * type PathParameters = {
160
+ * id: string
161
+ * }
162
+ * ```
163
+ *
164
+ * ---
165
+ *
166
+ * **Response**
167
+ * ```ts
168
+ * type Response = {
169
+ * id?: string
170
+ * patientState?: {
171
+ * id?: string
172
+ * doctorId?: string
173
+ * name?: string
174
+ * createdTimestamp?: string
175
+ * updatedTimestamp?: string
176
+ * identity?: string
177
+ * gender?: string
178
+ * phoneNumber?: string
179
+ * birthdate?: string
180
+ * // [items] start
181
+ * // [items] end
182
+ * remarks?: string[]
183
+ * // [items] start
184
+ * // [items] end
185
+ * tagsState?: Array<{
186
+ * key?: string
187
+ * // [items] start
188
+ * // [items] end
189
+ * annotationsState?: Array<{
190
+ * value?: string
191
+ * actor?: string
192
+ * timestamp?: string
193
+ * }>
194
+ * }>
195
+ * mainSymptom?: string
196
+ * }
197
+ * doctorState?: {
198
+ * id?: string
199
+ * name?: string
200
+ * createdTimestamp?: string
201
+ * updatedTimestamp?: string
202
+ * gender?: string
203
+ * identityNumber?: string
204
+ * phoneNumber?: string
205
+ * birthdate?: string
206
+ * }
207
+ * createdTimestamp?: string
208
+ * updatedTimestamp?: string
209
+ * status?: number
210
+ * }
211
+ * ```
212
+ */
213
+ getQueuerState<
214
+ Config extends Alova2MethodConfig<QueuerState> & {
215
+ pathParams: {
216
+ id: string;
217
+ };
218
+ }
219
+ >(
220
+ config: Config
221
+ ): Alova2Method<QueuerState, 'queuerRestful.getQueuerState', Config>;
222
+ /**
223
+ * ---
224
+ *
225
+ * [PUT]
226
+ *
227
+ * **path:** /门诊/服务/排队/{id}
228
+ *
229
+ * ---
230
+ *
231
+ * **Path Parameters**
232
+ * ```ts
233
+ * type PathParameters = {
234
+ * id: string
235
+ * }
236
+ * ```
237
+ *
238
+ * ---
239
+ *
240
+ * **RequestBody**
241
+ * ```ts
242
+ * type RequestBody = {
243
+ * id?: string
244
+ * patientState?: {
245
+ * id?: string
246
+ * doctorId?: string
247
+ * name?: string
248
+ * createdTimestamp?: string
249
+ * updatedTimestamp?: string
250
+ * identity?: string
251
+ * gender?: string
252
+ * phoneNumber?: string
253
+ * birthdate?: string
254
+ * // [items] start
255
+ * // [items] end
256
+ * remarks?: string[]
257
+ * // [items] start
258
+ * // [items] end
259
+ * tagsState?: Array<{
260
+ * key?: string
261
+ * // [items] start
262
+ * // [items] end
263
+ * annotationsState?: Array<{
264
+ * value?: string
265
+ * actor?: string
266
+ * timestamp?: string
267
+ * }>
268
+ * }>
269
+ * mainSymptom?: string
270
+ * }
271
+ * doctorState?: {
272
+ * id?: string
273
+ * name?: string
274
+ * createdTimestamp?: string
275
+ * updatedTimestamp?: string
276
+ * gender?: string
277
+ * identityNumber?: string
278
+ * phoneNumber?: string
279
+ * birthdate?: string
280
+ * }
281
+ * createdTimestamp?: string
282
+ * updatedTimestamp?: string
283
+ * status?: number
284
+ * }
285
+ * ```
286
+ *
287
+ * ---
288
+ *
289
+ * **Response**
290
+ * ```ts
291
+ * type Response = {
292
+ * id?: string
293
+ * patientState?: {
294
+ * id?: string
295
+ * doctorId?: string
296
+ * name?: string
297
+ * createdTimestamp?: string
298
+ * updatedTimestamp?: string
299
+ * identity?: string
300
+ * gender?: string
301
+ * phoneNumber?: string
302
+ * birthdate?: string
303
+ * // [items] start
304
+ * // [items] end
305
+ * remarks?: string[]
306
+ * // [items] start
307
+ * // [items] end
308
+ * tagsState?: Array<{
309
+ * key?: string
310
+ * // [items] start
311
+ * // [items] end
312
+ * annotationsState?: Array<{
313
+ * value?: string
314
+ * actor?: string
315
+ * timestamp?: string
316
+ * }>
317
+ * }>
318
+ * mainSymptom?: string
319
+ * }
320
+ * doctorState?: {
321
+ * id?: string
322
+ * name?: string
323
+ * createdTimestamp?: string
324
+ * updatedTimestamp?: string
325
+ * gender?: string
326
+ * identityNumber?: string
327
+ * phoneNumber?: string
328
+ * birthdate?: string
329
+ * }
330
+ * createdTimestamp?: string
331
+ * updatedTimestamp?: string
332
+ * status?: number
333
+ * }
334
+ * ```
335
+ */
336
+ putQueuerState<
337
+ Config extends Alova2MethodConfig<QueuerState> & {
338
+ pathParams: {
339
+ id: string;
340
+ };
341
+ data: QueuerState;
342
+ }
343
+ >(
344
+ config: Config
345
+ ): Alova2Method<QueuerState, 'queuerRestful.putQueuerState', Config>;
346
+ /**
347
+ * ---
348
+ *
349
+ * [DELETE]
350
+ *
351
+ * **path:** /门诊/服务/排队/{id}
352
+ *
353
+ * ---
354
+ *
355
+ * **Path Parameters**
356
+ * ```ts
357
+ * type PathParameters = {
358
+ * id: string
359
+ * }
360
+ * ```
361
+ *
362
+ * ---
363
+ *
364
+ * **Response**
365
+ * ```ts
366
+ * type Response = null
367
+ * ```
368
+ */
369
+ deleteQueuerState<
370
+ Config extends Alova2MethodConfig<null> & {
371
+ pathParams: {
372
+ id: string;
373
+ };
374
+ }
375
+ >(
376
+ config: Config
377
+ ): Alova2Method<null, 'queuerRestful.deleteQueuerState', Config>;
378
+ /**
379
+ * ---
380
+ *
381
+ * [GET]
382
+ *
383
+ * **path:** /门诊/服务/排队
384
+ *
385
+ * ---
386
+ *
387
+ * **Query Parameters**
388
+ * ```ts
389
+ * type QueryParameters = {
390
+ * doctorId?: string
391
+ * patientId?: string
392
+ * page: number
393
+ * pageSize: number
394
+ * }
395
+ * ```
396
+ *
397
+ * ---
398
+ *
399
+ * **Response**
400
+ * ```ts
401
+ * type Response = {
402
+ * totalPages?: number
403
+ * totalElements?: number
404
+ * size?: number
405
+ * // [items] start
406
+ * // [items] end
407
+ * content?: Array<{
408
+ * id?: string
409
+ * patientState?: {
410
+ * id?: string
411
+ * doctorId?: string
412
+ * name?: string
413
+ * createdTimestamp?: string
414
+ * updatedTimestamp?: string
415
+ * identity?: string
416
+ * gender?: string
417
+ * phoneNumber?: string
418
+ * birthdate?: string
419
+ * // [items] start
420
+ * // [items] end
421
+ * remarks?: string[]
422
+ * // [items] start
423
+ * // [items] end
424
+ * tagsState?: Array<{
425
+ * key?: string
426
+ * // [items] start
427
+ * // [items] end
428
+ * annotationsState?: Array<{
429
+ * value?: string
430
+ * actor?: string
431
+ * timestamp?: string
432
+ * }>
433
+ * }>
434
+ * mainSymptom?: string
435
+ * }
436
+ * doctorState?: {
437
+ * id?: string
438
+ * name?: string
439
+ * createdTimestamp?: string
440
+ * updatedTimestamp?: string
441
+ * gender?: string
442
+ * identityNumber?: string
443
+ * phoneNumber?: string
444
+ * birthdate?: string
445
+ * }
446
+ * createdTimestamp?: string
447
+ * updatedTimestamp?: string
448
+ * status?: number
449
+ * }>
450
+ * number?: number
451
+ * sort?: {
452
+ * empty?: boolean
453
+ * sorted?: boolean
454
+ * unsorted?: boolean
455
+ * }
456
+ * numberOfElements?: number
457
+ * pageable?: {
458
+ * offset?: number
459
+ * sort?: {
460
+ * empty?: boolean
461
+ * sorted?: boolean
462
+ * unsorted?: boolean
463
+ * }
464
+ * pageSize?: number
465
+ * paged?: boolean
466
+ * pageNumber?: number
467
+ * unpaged?: boolean
468
+ * }
469
+ * first?: boolean
470
+ * last?: boolean
471
+ * empty?: boolean
472
+ * }
473
+ * ```
474
+ */
475
+ queryQueuerState<
476
+ Config extends Alova2MethodConfig<PageQueuerState> & {
477
+ params: {
478
+ doctorId?: string;
479
+ patientId?: string;
480
+ page: number;
481
+ pageSize: number;
482
+ };
483
+ }
484
+ >(
485
+ config: Config
486
+ ): Alova2Method<PageQueuerState, 'queuerRestful.queryQueuerState', Config>;
487
+ /**
488
+ * ---
489
+ *
490
+ * [POST]
491
+ *
492
+ * **path:** /门诊/服务/排队
493
+ *
494
+ * ---
495
+ *
496
+ * **RequestBody**
497
+ * ```ts
498
+ * type RequestBody = {
499
+ * id?: string
500
+ * patientState?: {
501
+ * id?: string
502
+ * doctorId?: string
503
+ * name?: string
504
+ * createdTimestamp?: string
505
+ * updatedTimestamp?: string
506
+ * identity?: string
507
+ * gender?: string
508
+ * phoneNumber?: string
509
+ * birthdate?: string
510
+ * // [items] start
511
+ * // [items] end
512
+ * remarks?: string[]
513
+ * // [items] start
514
+ * // [items] end
515
+ * tagsState?: Array<{
516
+ * key?: string
517
+ * // [items] start
518
+ * // [items] end
519
+ * annotationsState?: Array<{
520
+ * value?: string
521
+ * actor?: string
522
+ * timestamp?: string
523
+ * }>
524
+ * }>
525
+ * mainSymptom?: string
526
+ * }
527
+ * doctorState?: {
528
+ * id?: string
529
+ * name?: string
530
+ * createdTimestamp?: string
531
+ * updatedTimestamp?: string
532
+ * gender?: string
533
+ * identityNumber?: string
534
+ * phoneNumber?: string
535
+ * birthdate?: string
536
+ * }
537
+ * createdTimestamp?: string
538
+ * updatedTimestamp?: string
539
+ * status?: number
540
+ * }
541
+ * ```
542
+ *
543
+ * ---
544
+ *
545
+ * **Response**
546
+ * ```ts
547
+ * type Response = {
548
+ * id?: string
549
+ * patientState?: {
550
+ * id?: string
551
+ * doctorId?: string
552
+ * name?: string
553
+ * createdTimestamp?: string
554
+ * updatedTimestamp?: string
555
+ * identity?: string
556
+ * gender?: string
557
+ * phoneNumber?: string
558
+ * birthdate?: string
559
+ * // [items] start
560
+ * // [items] end
561
+ * remarks?: string[]
562
+ * // [items] start
563
+ * // [items] end
564
+ * tagsState?: Array<{
565
+ * key?: string
566
+ * // [items] start
567
+ * // [items] end
568
+ * annotationsState?: Array<{
569
+ * value?: string
570
+ * actor?: string
571
+ * timestamp?: string
572
+ * }>
573
+ * }>
574
+ * mainSymptom?: string
575
+ * }
576
+ * doctorState?: {
577
+ * id?: string
578
+ * name?: string
579
+ * createdTimestamp?: string
580
+ * updatedTimestamp?: string
581
+ * gender?: string
582
+ * identityNumber?: string
583
+ * phoneNumber?: string
584
+ * birthdate?: string
585
+ * }
586
+ * createdTimestamp?: string
587
+ * updatedTimestamp?: string
588
+ * status?: number
589
+ * }
590
+ * ```
591
+ */
592
+ postQueuerState<
593
+ Config extends Alova2MethodConfig<QueuerState> & {
594
+ data: QueuerState;
595
+ }
596
+ >(
597
+ config: Config
598
+ ): Alova2Method<QueuerState, 'queuerRestful.postQueuerState', Config>;
599
+ };
600
+ metricRestful: {
601
+ /**
602
+ * ---
603
+ *
604
+ * [GET]
605
+ *
606
+ * **path:** /门诊/服务/统计/排队/日期
607
+ *
608
+ * ---
609
+ *
610
+ * **Response**
611
+ * ```ts
612
+ * type Response = Array<{
613
+ * date?: string
614
+ * count?: number
615
+ * }>
616
+ * ```
617
+ */
618
+ datesOfQueuerState<Config extends Alova2MethodConfig<DateDistribute[]>>(
619
+ config?: Config
620
+ ): Alova2Method<DateDistribute[], 'metricRestful.datesOfQueuerState', Config>;
621
+ /**
622
+ * ---
623
+ *
624
+ * [GET]
625
+ *
626
+ * **path:** /门诊/服务/统计/排队/总数
627
+ *
628
+ * ---
629
+ *
630
+ * **Response**
631
+ * ```ts
632
+ * type Response = number
633
+ * ```
634
+ */
635
+ totalOfQueuerState<Config extends Alova2MethodConfig<number>>(
636
+ config?: Config
637
+ ): Alova2Method<number, 'metricRestful.totalOfQueuerState', Config>;
638
+ /**
639
+ * ---
640
+ *
641
+ * [GET]
642
+ *
643
+ * **path:** /门诊/服务/统计/排队/今日
644
+ *
645
+ * ---
646
+ *
647
+ * **Response**
648
+ * ```ts
649
+ * type Response = number
650
+ * ```
651
+ */
652
+ totalOfQueuerTodayState<Config extends Alova2MethodConfig<number>>(
653
+ config?: Config
654
+ ): Alova2Method<number, 'metricRestful.totalOfQueuerTodayState', Config>;
655
+ };
656
+ }
657
+
658
+ var outpatientApi: outpatientApi;
567
659
  }
568
- export {};