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
@@ -31,13 +31,7 @@ const l = /* @__PURE__ */ Object.create(null), d = (e, a, p) => {
31
31
  n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
32
32
  t = c ? n : t;
33
33
  }
34
- return new g(
35
- P.toUpperCase(),
36
- a,
37
- A,
38
- s,
39
- t
40
- );
34
+ return new g(P.toUpperCase(), a, A, s, t);
41
35
  }
42
36
  });
43
37
  return l[o] = i, i;
@@ -3,273 +3,354 @@ 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 GetTokenRequest {
10
- type?: string;
11
- uid?: string;
12
- token?: string;
75
+ type?: string;
76
+ uid?: string;
77
+ token?: string;
13
78
  }
14
79
  export interface DoctorState {
15
- id?: string;
16
- name?: string;
17
- createdTimestamp?: number;
18
- updatedTimestamp?: number;
19
- gender?: string;
20
- identityNumber?: string;
21
- phoneNumber?: string;
22
- birthdate?: string;
80
+ id?: string;
81
+ name?: string;
82
+ createdTimestamp?: number;
83
+ updatedTimestamp?: number;
84
+ gender?: string;
85
+ identityNumber?: string;
86
+ phoneNumber?: string;
87
+ birthdate?: string;
23
88
  }
24
89
  export interface PatientState {
25
- id?: string;
26
- doctorId?: string;
27
- name?: string;
28
- createdTimestamp?: number;
29
- updatedTimestamp?: number;
30
- identity?: string;
31
- gender?: string;
32
- phoneNumber?: string;
33
- birthdate?: string;
34
- tags?: string;
35
- mainSymptom?: string;
90
+ id?: string;
91
+ doctorId?: string;
92
+ name?: string;
93
+ createdTimestamp?: number;
94
+ updatedTimestamp?: number;
95
+ identity?: string;
96
+ gender?: string;
97
+ phoneNumber?: string;
98
+ birthdate?: string;
99
+ tags?: string;
100
+ mainSymptom?: string;
36
101
  }
37
102
  export interface ScientistState {
38
- id?: string;
39
- name?: string;
40
- createdTimestamp?: number;
41
- updatedTimestamp?: number;
42
- identityNumber?: string;
43
- gender?: string;
44
- phoneNumber?: string;
45
- birthdate?: string;
103
+ id?: string;
104
+ name?: string;
105
+ createdTimestamp?: number;
106
+ updatedTimestamp?: number;
107
+ identityNumber?: string;
108
+ gender?: string;
109
+ phoneNumber?: string;
110
+ birthdate?: string;
46
111
  }
47
112
  export interface GetTokenResponse {
48
- status?: number;
49
- token?: string;
50
- doctors?: DoctorState[];
51
- patients?: PatientState[];
52
- scientist?: ScientistState[];
113
+ status?: number;
114
+ token?: string;
115
+ doctors?: DoctorState[];
116
+ patients?: PatientState[];
117
+ scientist?: ScientistState[];
53
118
  }
54
119
  export interface AuthorizationState {
55
- requestDefinition?: string;
56
- policyDefinition?: string;
57
- policyEffect?: string;
58
- matchers?: string;
59
- policies?: string;
120
+ requestDefinition?: string;
121
+ policyDefinition?: string;
122
+ policyEffect?: string;
123
+ matchers?: string;
124
+ policies?: string;
60
125
  }
61
126
  export interface ResourceAuthorizationState {
62
- resourceId?: string;
63
- authorizationStates?: AuthorizationState[];
64
- ownerId?: string;
127
+ resourceId?: string;
128
+ authorizationStates?: AuthorizationState[];
129
+ ownerId?: string;
65
130
  }
66
131
  export interface RoleAuthorizationState {
67
- role?: string;
68
- authorizationStates?: AuthorizationState[];
132
+ role?: string;
133
+ authorizationStates?: AuthorizationState[];
69
134
  }
70
135
  export interface UserAuthorizationState {
71
- userId?: string;
72
- authorizationStates?: AuthorizationState[];
136
+ userId?: string;
137
+ authorizationStates?: AuthorizationState[];
73
138
  }
74
139
  declare global {
75
- interface authorizeApi {
76
- oAuthRestful: {
77
- /**
78
- * ---
79
- *
80
- * [POST]
81
- *
82
- * **path:** /授权/服务/令牌
83
- *
84
- * ---
85
- *
86
- * **RequestBody**
87
- * ```ts
88
- * type RequestBody = {
89
- * type?: string
90
- * uid?: string
91
- * token?: string
92
- * }
93
- * ```
94
- *
95
- * ---
96
- *
97
- * **Response**
98
- * ```ts
99
- * type Response = {
100
- * status?: number
101
- * token?: string
102
- * // [items] start
103
- * // [items] end
104
- * doctors?: Array<{
105
- * id?: string
106
- * name?: string
107
- * createdTimestamp?: number
108
- * updatedTimestamp?: number
109
- * gender?: string
110
- * identityNumber?: string
111
- * phoneNumber?: string
112
- * birthdate?: string
113
- * }>
114
- * // [items] start
115
- * // [items] end
116
- * patients?: Array<{
117
- * id?: string
118
- * doctorId?: string
119
- * name?: string
120
- * createdTimestamp?: number
121
- * updatedTimestamp?: number
122
- * identity?: string
123
- * gender?: string
124
- * phoneNumber?: string
125
- * birthdate?: string
126
- * tags?: string
127
- * mainSymptom?: string
128
- * }>
129
- * // [items] start
130
- * // [items] end
131
- * scientist?: Array<{
132
- * id?: string
133
- * name?: string
134
- * createdTimestamp?: number
135
- * updatedTimestamp?: number
136
- * identityNumber?: string
137
- * gender?: string
138
- * phoneNumber?: string
139
- * birthdate?: string
140
- * }>
141
- * }
142
- * ```
143
- */
144
- getToken<Config extends Alova2MethodConfig<GetTokenResponse> & {
145
- data: GetTokenRequest;
146
- }>(config: Config): Alova2Method<GetTokenResponse, 'oAuthRestful.getToken', Config>;
147
- };
148
- resourceAuthorizationRestful: {
149
- /**
150
- * ---
151
- *
152
- * [GET]
153
- *
154
- * **path:** /授权/服务/资源/{id}
155
- *
156
- * ---
157
- *
158
- * **Path Parameters**
159
- * ```ts
160
- * type PathParameters = {
161
- * id: string
162
- * }
163
- * ```
164
- *
165
- * ---
166
- *
167
- * **Response**
168
- * ```ts
169
- * type Response = {
170
- * resourceId?: string
171
- * // [items] start
172
- * // [items] end
173
- * authorizationStates?: Array<{
174
- * requestDefinition?: string
175
- * policyDefinition?: string
176
- * policyEffect?: string
177
- * matchers?: string
178
- * policies?: string
179
- * }>
180
- * ownerId?: string
181
- * }
182
- * ```
183
- */
184
- getResourceAuthorizationState<Config extends Alova2MethodConfig<ResourceAuthorizationState> & {
185
- pathParams: {
186
- id: string;
187
- };
188
- }>(config: Config): Alova2Method<ResourceAuthorizationState, 'resourceAuthorizationRestful.getResourceAuthorizationState', Config>;
189
- };
190
- roleAuthorizationRestful: {
191
- /**
192
- * ---
193
- *
194
- * [GET]
195
- *
196
- * **path:** /授权/服务/角色/{role}
197
- *
198
- * ---
199
- *
200
- * **Path Parameters**
201
- * ```ts
202
- * type PathParameters = {
203
- * role: string
204
- * }
205
- * ```
206
- *
207
- * ---
208
- *
209
- * **Response**
210
- * ```ts
211
- * type Response = {
212
- * role?: string
213
- * // [items] start
214
- * // [items] end
215
- * authorizationStates?: Array<{
216
- * requestDefinition?: string
217
- * policyDefinition?: string
218
- * policyEffect?: string
219
- * matchers?: string
220
- * policies?: string
221
- * }>
222
- * }
223
- * ```
224
- */
225
- getRoleAuthorizationState<Config extends Alova2MethodConfig<RoleAuthorizationState> & {
226
- pathParams: {
227
- role: string;
228
- };
229
- }>(config: Config): Alova2Method<RoleAuthorizationState, 'roleAuthorizationRestful.getRoleAuthorizationState', Config>;
230
- };
231
- userAuthorizationRestful: {
232
- /**
233
- * ---
234
- *
235
- * [GET]
236
- *
237
- * **path:** /授权/服务/用户/{userId}
238
- *
239
- * ---
240
- *
241
- * **Path Parameters**
242
- * ```ts
243
- * type PathParameters = {
244
- * userId: string
245
- * }
246
- * ```
247
- *
248
- * ---
249
- *
250
- * **Response**
251
- * ```ts
252
- * type Response = {
253
- * userId?: string
254
- * // [items] start
255
- * // [items] end
256
- * authorizationStates?: Array<{
257
- * requestDefinition?: string
258
- * policyDefinition?: string
259
- * policyEffect?: string
260
- * matchers?: string
261
- * policies?: string
262
- * }>
263
- * }
264
- * ```
265
- */
266
- getUserAuthorizationState<Config extends Alova2MethodConfig<UserAuthorizationState> & {
267
- pathParams: {
268
- userId: string;
269
- };
270
- }>(config: Config): Alova2Method<UserAuthorizationState, 'userAuthorizationRestful.getUserAuthorizationState', Config>;
271
- };
272
- }
273
- var authorizeApi: authorizeApi;
140
+ interface authorizeApi {
141
+ oAuthRestful: {
142
+ /**
143
+ * ---
144
+ *
145
+ * [POST]
146
+ *
147
+ * **path:** /授权/服务/令牌
148
+ *
149
+ * ---
150
+ *
151
+ * **RequestBody**
152
+ * ```ts
153
+ * type RequestBody = {
154
+ * type?: string
155
+ * uid?: string
156
+ * token?: string
157
+ * }
158
+ * ```
159
+ *
160
+ * ---
161
+ *
162
+ * **Response**
163
+ * ```ts
164
+ * type Response = {
165
+ * status?: number
166
+ * token?: string
167
+ * // [items] start
168
+ * // [items] end
169
+ * doctors?: Array<{
170
+ * id?: string
171
+ * name?: string
172
+ * createdTimestamp?: number
173
+ * updatedTimestamp?: number
174
+ * gender?: string
175
+ * identityNumber?: string
176
+ * phoneNumber?: string
177
+ * birthdate?: string
178
+ * }>
179
+ * // [items] start
180
+ * // [items] end
181
+ * patients?: Array<{
182
+ * id?: string
183
+ * doctorId?: string
184
+ * name?: string
185
+ * createdTimestamp?: number
186
+ * updatedTimestamp?: number
187
+ * identity?: string
188
+ * gender?: string
189
+ * phoneNumber?: string
190
+ * birthdate?: string
191
+ * tags?: string
192
+ * mainSymptom?: string
193
+ * }>
194
+ * // [items] start
195
+ * // [items] end
196
+ * scientist?: Array<{
197
+ * id?: string
198
+ * name?: string
199
+ * createdTimestamp?: number
200
+ * updatedTimestamp?: number
201
+ * identityNumber?: string
202
+ * gender?: string
203
+ * phoneNumber?: string
204
+ * birthdate?: string
205
+ * }>
206
+ * }
207
+ * ```
208
+ */
209
+ getToken<
210
+ Config extends Alova2MethodConfig<GetTokenResponse> & {
211
+ data: GetTokenRequest;
212
+ }
213
+ >(
214
+ config: Config
215
+ ): Alova2Method<GetTokenResponse, 'oAuthRestful.getToken', Config>;
216
+ };
217
+ resourceAuthorizationRestful: {
218
+ /**
219
+ * ---
220
+ *
221
+ * [GET]
222
+ *
223
+ * **path:** /授权/服务/资源/{id}
224
+ *
225
+ * ---
226
+ *
227
+ * **Path Parameters**
228
+ * ```ts
229
+ * type PathParameters = {
230
+ * id: string
231
+ * }
232
+ * ```
233
+ *
234
+ * ---
235
+ *
236
+ * **Response**
237
+ * ```ts
238
+ * type Response = {
239
+ * resourceId?: string
240
+ * // [items] start
241
+ * // [items] end
242
+ * authorizationStates?: Array<{
243
+ * requestDefinition?: string
244
+ * policyDefinition?: string
245
+ * policyEffect?: string
246
+ * matchers?: string
247
+ * policies?: string
248
+ * }>
249
+ * ownerId?: string
250
+ * }
251
+ * ```
252
+ */
253
+ getResourceAuthorizationState<
254
+ Config extends Alova2MethodConfig<ResourceAuthorizationState> & {
255
+ pathParams: {
256
+ id: string;
257
+ };
258
+ }
259
+ >(
260
+ config: Config
261
+ ): Alova2Method<ResourceAuthorizationState, 'resourceAuthorizationRestful.getResourceAuthorizationState', Config>;
262
+ };
263
+ roleAuthorizationRestful: {
264
+ /**
265
+ * ---
266
+ *
267
+ * [GET]
268
+ *
269
+ * **path:** /授权/服务/角色/{role}
270
+ *
271
+ * ---
272
+ *
273
+ * **Path Parameters**
274
+ * ```ts
275
+ * type PathParameters = {
276
+ * role: string
277
+ * }
278
+ * ```
279
+ *
280
+ * ---
281
+ *
282
+ * **Response**
283
+ * ```ts
284
+ * type Response = {
285
+ * role?: string
286
+ * // [items] start
287
+ * // [items] end
288
+ * authorizationStates?: Array<{
289
+ * requestDefinition?: string
290
+ * policyDefinition?: string
291
+ * policyEffect?: string
292
+ * matchers?: string
293
+ * policies?: string
294
+ * }>
295
+ * }
296
+ * ```
297
+ */
298
+ getRoleAuthorizationState<
299
+ Config extends Alova2MethodConfig<RoleAuthorizationState> & {
300
+ pathParams: {
301
+ role: string;
302
+ };
303
+ }
304
+ >(
305
+ config: Config
306
+ ): Alova2Method<RoleAuthorizationState, 'roleAuthorizationRestful.getRoleAuthorizationState', Config>;
307
+ };
308
+ userAuthorizationRestful: {
309
+ /**
310
+ * ---
311
+ *
312
+ * [GET]
313
+ *
314
+ * **path:** /授权/服务/用户/{userId}
315
+ *
316
+ * ---
317
+ *
318
+ * **Path Parameters**
319
+ * ```ts
320
+ * type PathParameters = {
321
+ * userId: string
322
+ * }
323
+ * ```
324
+ *
325
+ * ---
326
+ *
327
+ * **Response**
328
+ * ```ts
329
+ * type Response = {
330
+ * userId?: string
331
+ * // [items] start
332
+ * // [items] end
333
+ * authorizationStates?: Array<{
334
+ * requestDefinition?: string
335
+ * policyDefinition?: string
336
+ * policyEffect?: string
337
+ * matchers?: string
338
+ * policies?: string
339
+ * }>
340
+ * }
341
+ * ```
342
+ */
343
+ getUserAuthorizationState<
344
+ Config extends Alova2MethodConfig<UserAuthorizationState> & {
345
+ pathParams: {
346
+ userId: string;
347
+ };
348
+ }
349
+ >(
350
+ config: Config
351
+ ): Alova2Method<UserAuthorizationState, 'userAuthorizationRestful.getUserAuthorizationState', Config>;
352
+ };
353
+ }
354
+
355
+ var authorizeApi: authorizeApi;
274
356
  }
275
- export {};
@@ -1,6 +1,7 @@
1
1
  export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
2
2
  export declare const $$userConfigMap: {};
3
+ export { alovaInstance as authorizationAlovaInstance };
3
4
  declare const Apis: authorizeApi;
4
5
  export default Apis;
5
6
  export * from './implement';
6
- export * from './globals';
7
+ export type * from './globals';
@@ -1,20 +1,20 @@
1
1
  import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
- import { withConfigType as t, createApis as r, mountApis as i } from "./createApis.js";
4
- import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
3
+ import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
4
+ import { responded as i, onAuthRequired as n } from "../../config/alova/index.js";
5
+ import { getServiceEndpoint as p, ServiceType as s } from "../../config/index.js";
6
6
  import "./implement/index.js";
7
- import "./globals.js";
8
- const s = e({
9
- baseURL: n(m.Authorization),
7
+ const c = e({
8
+ baseURL: p(s.Authorization),
10
9
  requestAdapter: o(),
11
- beforeRequest: a(),
10
+ beforeRequest: n(),
12
11
  cacheFor: null,
13
- responded: p
14
- }), c = t({}), f = r(s, c);
15
- i(f);
12
+ responded: i
13
+ }), m = t({}), u = r(c, m);
14
+ a(u);
16
15
  export {
17
- c as $$userConfigMap,
18
- s as alovaInstance,
19
- f as default
16
+ m as $$userConfigMap,
17
+ c as alovaInstance,
18
+ c as authorizationAlovaInstance,
19
+ u as default
20
20
  };