web-core-tcm 0.0.38 → 0.0.40
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/src/api/authorization/alova/globals.d.ts +250 -352
- package/dist/src/api/authorization/alova/implement/authorization.d.ts +1 -1
- package/dist/src/api/authorization/alova/index.d.ts +1 -0
- package/dist/src/api/check/alova/globals.d.ts +1097 -1205
- package/dist/src/api/check/alova/index.d.ts +1 -0
- package/dist/src/api/doctor/alova/globals.d.ts +419 -523
- package/dist/src/api/doctor/alova/index.d.ts +1 -0
- package/dist/src/api/oauth/alova/globals.d.ts +312 -412
- package/dist/src/api/oauth/alova/index.d.ts +1 -0
- package/dist/src/api/outpatient/alova/globals.d.ts +543 -643
- package/dist/src/api/outpatient/alova/index.d.ts +1 -0
- package/dist/src/api/patient/alova/globals.d.ts +1480 -1636
- package/dist/src/api/patient/alova/index.d.ts +1 -0
- package/dist/src/api/prescription/alova/globals.d.ts +812 -926
- package/dist/src/api/prescription/alova/index.d.ts +1 -0
- package/dist/src/api/scientist/alova/globals.d.ts +315 -415
- package/dist/src/api/scientist/alova/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,441 +3,341 @@ 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
|
-
|
|
7
|
-
type
|
|
8
|
-
|
|
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<
|
|
23
|
-
Responded,
|
|
24
|
-
any,
|
|
25
|
-
RequestConfig,
|
|
26
|
-
Response,
|
|
27
|
-
ResponseHeader,
|
|
28
|
-
L1Cache,
|
|
29
|
-
L2Cache,
|
|
30
|
-
SE
|
|
31
|
-
>,
|
|
32
|
-
any,
|
|
33
|
-
Responded
|
|
34
|
-
>,
|
|
35
|
-
'params'
|
|
36
|
-
>
|
|
37
|
-
: never;
|
|
38
|
-
|
|
39
|
-
// Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
|
|
40
|
-
type ExtractUserDefinedTransformed<
|
|
41
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
42
|
-
Default,
|
|
43
|
-
> = DefinitionKey extends keyof UserMethodConfigMap
|
|
44
|
-
? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
|
|
45
|
-
? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
|
|
46
|
-
: Default
|
|
47
|
-
: Default;
|
|
48
|
-
type Alova2Method<
|
|
49
|
-
Responded,
|
|
50
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
51
|
-
CurrentConfig extends Alova2MethodConfig<any>,
|
|
52
|
-
> =
|
|
53
|
-
CollapsedAlova extends Alova<
|
|
54
|
-
AlovaGenerics<
|
|
55
|
-
any,
|
|
56
|
-
any,
|
|
57
|
-
infer RequestConfig,
|
|
58
|
-
infer Response,
|
|
59
|
-
infer ResponseHeader,
|
|
60
|
-
infer L1Cache,
|
|
61
|
-
infer L2Cache,
|
|
62
|
-
infer SE
|
|
63
|
-
>
|
|
64
|
-
>
|
|
65
|
-
? Method<
|
|
66
|
-
AlovaGenerics<
|
|
67
|
-
CurrentConfig extends undefined
|
|
68
|
-
? ExtractUserDefinedTransformed<DefinitionKey, Responded>
|
|
69
|
-
: CurrentConfig['transform'] extends (...args: any[]) => any
|
|
70
|
-
? Awaited<ReturnType<CurrentConfig['transform']>>
|
|
71
|
-
: ExtractUserDefinedTransformed<DefinitionKey, Responded>,
|
|
72
|
-
any,
|
|
73
|
-
RequestConfig,
|
|
74
|
-
Response,
|
|
75
|
-
ResponseHeader,
|
|
76
|
-
L1Cache,
|
|
77
|
-
L2Cache,
|
|
78
|
-
SE
|
|
79
|
-
>
|
|
80
|
-
>
|
|
81
|
-
: never;
|
|
82
|
-
|
|
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;
|
|
83
9
|
export interface UserState {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
10
|
+
id?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
identityNumber?: string;
|
|
14
|
+
gender?: string;
|
|
15
|
+
createdTimestamp?: string;
|
|
16
|
+
updatedTimestamp?: string;
|
|
91
17
|
}
|
|
92
18
|
export interface PhoneVerifyRequest {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
19
|
+
phoneNumber?: string;
|
|
20
|
+
code?: string;
|
|
21
|
+
id?: string;
|
|
96
22
|
}
|
|
97
23
|
export interface UserGetResponse {
|
|
98
|
-
|
|
99
|
-
|
|
24
|
+
status?: number;
|
|
25
|
+
user?: UserState;
|
|
100
26
|
}
|
|
101
27
|
export interface UserPutResponse {
|
|
102
|
-
|
|
103
|
-
|
|
28
|
+
status?: number;
|
|
29
|
+
user?: UserState;
|
|
104
30
|
}
|
|
105
31
|
export interface PhoneVerifyResponse {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
32
|
+
status?: number;
|
|
33
|
+
token?: string;
|
|
34
|
+
users?: UserState[];
|
|
35
|
+
message?: string;
|
|
110
36
|
}
|
|
111
37
|
export interface Model {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
38
|
+
bizId?: string;
|
|
39
|
+
outId?: string;
|
|
40
|
+
requestId?: string;
|
|
41
|
+
verifyCode?: string;
|
|
116
42
|
}
|
|
117
43
|
export interface SendSmsVerifyCodeResponseBody {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
44
|
+
accessDeniedDetail?: string;
|
|
45
|
+
code?: string;
|
|
46
|
+
message?: string;
|
|
47
|
+
model?: Model;
|
|
48
|
+
success?: boolean;
|
|
123
49
|
}
|
|
124
50
|
export interface SendSmsVerifyCodeResponse {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
51
|
+
headers?: Record<string, string>;
|
|
52
|
+
statusCode?: number;
|
|
53
|
+
body?: SendSmsVerifyCodeResponseBody;
|
|
128
54
|
}
|
|
129
55
|
export interface TokenInfo {
|
|
130
|
-
|
|
131
|
-
|
|
56
|
+
accessToken?: string;
|
|
57
|
+
jwtToken?: string;
|
|
132
58
|
}
|
|
133
59
|
export interface GetAuthTokenResponseBody {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
60
|
+
code?: string;
|
|
61
|
+
message?: string;
|
|
62
|
+
requestId?: string;
|
|
63
|
+
tokenInfo?: TokenInfo;
|
|
138
64
|
}
|
|
139
65
|
export interface GetAuthTokenResponse {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
66
|
+
headers?: Record<string, string>;
|
|
67
|
+
statusCode?: number;
|
|
68
|
+
body?: GetAuthTokenResponseBody;
|
|
143
69
|
}
|
|
144
70
|
export interface GetClientResponse {
|
|
145
|
-
|
|
146
|
-
|
|
71
|
+
status?: number;
|
|
72
|
+
clientDescription?: string;
|
|
147
73
|
}
|
|
148
74
|
declare global {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
* client_id: string
|
|
417
|
-
* }
|
|
418
|
-
* ```
|
|
419
|
-
*
|
|
420
|
-
* ---
|
|
421
|
-
*
|
|
422
|
-
* **Response**
|
|
423
|
-
* ```ts
|
|
424
|
-
* type Response = {
|
|
425
|
-
* status?: number
|
|
426
|
-
* clientDescription?: string
|
|
427
|
-
* }
|
|
428
|
-
* ```
|
|
429
|
-
*/
|
|
430
|
-
getClientDescription<
|
|
431
|
-
Config extends Alova2MethodConfig<GetClientResponse> & {
|
|
432
|
-
params: {
|
|
433
|
-
client_id: string;
|
|
434
|
-
};
|
|
435
|
-
},
|
|
436
|
-
>(
|
|
437
|
-
config: Config,
|
|
438
|
-
): Alova2Method<GetClientResponse, 'authorizationRestful.getClientDescription', Config>;
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
var oauthApi: oauthApi;
|
|
75
|
+
interface oauthApi {
|
|
76
|
+
userStateRestful: {
|
|
77
|
+
/**
|
|
78
|
+
* ---
|
|
79
|
+
*
|
|
80
|
+
* [GET]
|
|
81
|
+
*
|
|
82
|
+
* **path:** /互联/服务/用户
|
|
83
|
+
*
|
|
84
|
+
* ---
|
|
85
|
+
*
|
|
86
|
+
* **Response**
|
|
87
|
+
* ```ts
|
|
88
|
+
* type Response = {
|
|
89
|
+
* status?: number
|
|
90
|
+
* user?: {
|
|
91
|
+
* id?: string
|
|
92
|
+
* name?: string
|
|
93
|
+
* phoneNumber?: string
|
|
94
|
+
* identityNumber?: string
|
|
95
|
+
* gender?: string
|
|
96
|
+
* createdTimestamp?: string
|
|
97
|
+
* updatedTimestamp?: string
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
getUserState<Config extends Alova2MethodConfig<UserGetResponse>>(config?: Config): Alova2Method<UserGetResponse, 'userStateRestful.getUserState', Config>;
|
|
103
|
+
/**
|
|
104
|
+
* ---
|
|
105
|
+
*
|
|
106
|
+
* [PUT]
|
|
107
|
+
*
|
|
108
|
+
* **path:** /互联/服务/用户
|
|
109
|
+
*
|
|
110
|
+
* ---
|
|
111
|
+
*
|
|
112
|
+
* **RequestBody**
|
|
113
|
+
* ```ts
|
|
114
|
+
* type RequestBody = {
|
|
115
|
+
* id?: string
|
|
116
|
+
* name?: string
|
|
117
|
+
* phoneNumber?: string
|
|
118
|
+
* identityNumber?: string
|
|
119
|
+
* gender?: string
|
|
120
|
+
* createdTimestamp?: string
|
|
121
|
+
* updatedTimestamp?: string
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* ---
|
|
126
|
+
*
|
|
127
|
+
* **Response**
|
|
128
|
+
* ```ts
|
|
129
|
+
* type Response = {
|
|
130
|
+
* status?: number
|
|
131
|
+
* user?: {
|
|
132
|
+
* id?: string
|
|
133
|
+
* name?: string
|
|
134
|
+
* phoneNumber?: string
|
|
135
|
+
* identityNumber?: string
|
|
136
|
+
* gender?: string
|
|
137
|
+
* createdTimestamp?: string
|
|
138
|
+
* updatedTimestamp?: string
|
|
139
|
+
* }
|
|
140
|
+
* }
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
putUserState<Config extends Alova2MethodConfig<UserPutResponse> & {
|
|
144
|
+
data: UserState;
|
|
145
|
+
}>(config: Config): Alova2Method<UserPutResponse, 'userStateRestful.putUserState', Config>;
|
|
146
|
+
};
|
|
147
|
+
phoneVerifyRestful: {
|
|
148
|
+
/**
|
|
149
|
+
* ---
|
|
150
|
+
*
|
|
151
|
+
* [POST]
|
|
152
|
+
*
|
|
153
|
+
* **path:** /互联/服务/电话/验证短信
|
|
154
|
+
*
|
|
155
|
+
* ---
|
|
156
|
+
*
|
|
157
|
+
* **RequestBody**
|
|
158
|
+
* ```ts
|
|
159
|
+
* type RequestBody = {
|
|
160
|
+
* phoneNumber?: string
|
|
161
|
+
* code?: string
|
|
162
|
+
* id?: string
|
|
163
|
+
* }
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
166
|
+
* ---
|
|
167
|
+
*
|
|
168
|
+
* **Response**
|
|
169
|
+
* ```ts
|
|
170
|
+
* type Response = {
|
|
171
|
+
* status?: number
|
|
172
|
+
* token?: string
|
|
173
|
+
* // [items] start
|
|
174
|
+
* // [items] end
|
|
175
|
+
* users?: Array<{
|
|
176
|
+
* id?: string
|
|
177
|
+
* name?: string
|
|
178
|
+
* phoneNumber?: string
|
|
179
|
+
* identityNumber?: string
|
|
180
|
+
* gender?: string
|
|
181
|
+
* createdTimestamp?: string
|
|
182
|
+
* updatedTimestamp?: string
|
|
183
|
+
* }>
|
|
184
|
+
* message?: string
|
|
185
|
+
* }
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
verifySMSCode<Config extends Alova2MethodConfig<PhoneVerifyResponse> & {
|
|
189
|
+
data: PhoneVerifyRequest;
|
|
190
|
+
}>(config: Config): Alova2Method<PhoneVerifyResponse, 'phoneVerifyRestful.verifySMSCode', Config>;
|
|
191
|
+
/**
|
|
192
|
+
* ---
|
|
193
|
+
*
|
|
194
|
+
* [GET]
|
|
195
|
+
*
|
|
196
|
+
* **path:** /互联/服务/电话/发送短信
|
|
197
|
+
*
|
|
198
|
+
* ---
|
|
199
|
+
*
|
|
200
|
+
* **Query Parameters**
|
|
201
|
+
* ```ts
|
|
202
|
+
* type QueryParameters = {
|
|
203
|
+
* phoneNumber: string
|
|
204
|
+
* }
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* ---
|
|
208
|
+
*
|
|
209
|
+
* **Response**
|
|
210
|
+
* ```ts
|
|
211
|
+
* type Response = {
|
|
212
|
+
* headers?: Record<string, string>
|
|
213
|
+
* statusCode?: number
|
|
214
|
+
* body?: {
|
|
215
|
+
* accessDeniedDetail?: string
|
|
216
|
+
* code?: string
|
|
217
|
+
* message?: string
|
|
218
|
+
* model?: {
|
|
219
|
+
* bizId?: string
|
|
220
|
+
* outId?: string
|
|
221
|
+
* requestId?: string
|
|
222
|
+
* verifyCode?: string
|
|
223
|
+
* }
|
|
224
|
+
* success?: boolean
|
|
225
|
+
* }
|
|
226
|
+
* }
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
sendSMSCode<Config extends Alova2MethodConfig<SendSmsVerifyCodeResponse> & {
|
|
230
|
+
params: {
|
|
231
|
+
phoneNumber: string;
|
|
232
|
+
};
|
|
233
|
+
}>(config: Config): Alova2Method<SendSmsVerifyCodeResponse, 'phoneVerifyRestful.sendSMSCode', Config>;
|
|
234
|
+
/**
|
|
235
|
+
* ---
|
|
236
|
+
*
|
|
237
|
+
* [GET]
|
|
238
|
+
*
|
|
239
|
+
* **path:** /互联/服务/电话/令牌认证
|
|
240
|
+
*
|
|
241
|
+
* ---
|
|
242
|
+
*
|
|
243
|
+
* **Query Parameters**
|
|
244
|
+
* ```ts
|
|
245
|
+
* type QueryParameters = {
|
|
246
|
+
* bizType: number
|
|
247
|
+
* }
|
|
248
|
+
* ```
|
|
249
|
+
*
|
|
250
|
+
* ---
|
|
251
|
+
*
|
|
252
|
+
* **Response**
|
|
253
|
+
* ```ts
|
|
254
|
+
* type Response = {
|
|
255
|
+
* headers?: Record<string, string>
|
|
256
|
+
* statusCode?: number
|
|
257
|
+
* body?: {
|
|
258
|
+
* code?: string
|
|
259
|
+
* message?: string
|
|
260
|
+
* requestId?: string
|
|
261
|
+
* tokenInfo?: {
|
|
262
|
+
* accessToken?: string
|
|
263
|
+
* jwtToken?: string
|
|
264
|
+
* }
|
|
265
|
+
* }
|
|
266
|
+
* }
|
|
267
|
+
* ```
|
|
268
|
+
*/
|
|
269
|
+
authToken<Config extends Alova2MethodConfig<GetAuthTokenResponse> & {
|
|
270
|
+
params: {
|
|
271
|
+
bizType: number;
|
|
272
|
+
};
|
|
273
|
+
}>(config: Config): Alova2Method<GetAuthTokenResponse, 'phoneVerifyRestful.authToken', Config>;
|
|
274
|
+
};
|
|
275
|
+
authorizationRestful: {
|
|
276
|
+
/**
|
|
277
|
+
* ---
|
|
278
|
+
*
|
|
279
|
+
* [GET]
|
|
280
|
+
*
|
|
281
|
+
* **path:** /互联/服务/授权/许可
|
|
282
|
+
*
|
|
283
|
+
* ---
|
|
284
|
+
*
|
|
285
|
+
* **Query Parameters**
|
|
286
|
+
* ```ts
|
|
287
|
+
* type QueryParameters = {
|
|
288
|
+
* client_id: string
|
|
289
|
+
* scope: string
|
|
290
|
+
* state: string
|
|
291
|
+
* }
|
|
292
|
+
* ```
|
|
293
|
+
*
|
|
294
|
+
* ---
|
|
295
|
+
*
|
|
296
|
+
* **Response**
|
|
297
|
+
* ```ts
|
|
298
|
+
* type Response = string
|
|
299
|
+
* ```
|
|
300
|
+
*/
|
|
301
|
+
consent<Config extends Alova2MethodConfig<string> & {
|
|
302
|
+
params: {
|
|
303
|
+
client_id: string;
|
|
304
|
+
scope: string;
|
|
305
|
+
state: string;
|
|
306
|
+
};
|
|
307
|
+
}>(config: Config): Alova2Method<string, 'authorizationRestful.consent', Config>;
|
|
308
|
+
/**
|
|
309
|
+
* ---
|
|
310
|
+
*
|
|
311
|
+
* [GET]
|
|
312
|
+
*
|
|
313
|
+
* **path:** /互联/服务/授权/客户端介绍
|
|
314
|
+
*
|
|
315
|
+
* ---
|
|
316
|
+
*
|
|
317
|
+
* **Query Parameters**
|
|
318
|
+
* ```ts
|
|
319
|
+
* type QueryParameters = {
|
|
320
|
+
* client_id: string
|
|
321
|
+
* }
|
|
322
|
+
* ```
|
|
323
|
+
*
|
|
324
|
+
* ---
|
|
325
|
+
*
|
|
326
|
+
* **Response**
|
|
327
|
+
* ```ts
|
|
328
|
+
* type Response = {
|
|
329
|
+
* status?: number
|
|
330
|
+
* clientDescription?: string
|
|
331
|
+
* }
|
|
332
|
+
* ```
|
|
333
|
+
*/
|
|
334
|
+
getClientDescription<Config extends Alova2MethodConfig<GetClientResponse> & {
|
|
335
|
+
params: {
|
|
336
|
+
client_id: string;
|
|
337
|
+
};
|
|
338
|
+
}>(config: Config): Alova2Method<GetClientResponse, 'authorizationRestful.getClientDescription', Config>;
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
var oauthApi: oauthApi;
|
|
443
342
|
}
|
|
343
|
+
export {};
|