web-core-tcm 0.0.63 → 0.0.65

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