moyan-api 2.1.5 → 2.1.6
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/examples/apis/sys/index.d.ts +606 -0
- package/dist/examples/apis/sys/index.js +582 -0
- package/dist/examples/apis/sys/index.js.map +1 -0
- package/dist/examples/apis/sys/schemas.d.ts +377 -0
- package/dist/examples/apis/sys/schemas.js +3 -0
- package/dist/examples/apis/sys/schemas.js.map +1 -0
- package/dist/examples/exec.d.ts +1 -0
- package/dist/examples/exec.js +170 -0
- package/dist/examples/exec.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/api-call.d.ts +1 -1
- package/dist/lib/api-call.js +9 -4
- package/dist/lib/api-call.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
import { ApiCall, MoMethod } from 'src/lib/api-call';
|
|
2
|
+
import type { LoginDto, LoginResponseDto, UserInfoDto, AppInstanceItemDto, PermissionTreeNodeDto, UserPermissionsResponseDto, RegisterDto, CheckAvailabilityResponseDto, CreateUserDto, UserResponseDto, UpdateUserDto, CreateRoleDto, RoleResponseDto, PageResponseDto, UpdateRoleDto, AssignPermissionsDto, RolePermissionResponseDto, CreateAppTypeDto, AppTypeResponseDto, PermissionPoolResponseDto, UpdatePermissionPoolDto, UpdatePermissionPoolResponseDto, UpdateAppTypeDto, CreatePermissionDto, PermissionResponseDto, UpdatePermissionDto, SyncPermissionDto, CreateAppDto, AppDetailResponseDto, UpdateAppDto, AddMemberDto, MemberResponseDto, UpdateMemberRolesDto, AvailableRoleDto, AuditLogResponseDto, InitStatusResponseDto, InitRequestDto, InitResponseDto } from './schemas';
|
|
3
|
+
export declare class ApiAuthLogin extends ApiCall<{
|
|
4
|
+
body: LoginDto;
|
|
5
|
+
}, LoginResponseDto> {
|
|
6
|
+
readonly path = "/api/auth/login";
|
|
7
|
+
readonly method: MoMethod;
|
|
8
|
+
readonly auth = false;
|
|
9
|
+
}
|
|
10
|
+
export declare class ApiAuthRefreshToken extends ApiCall<{}, LoginResponseDto> {
|
|
11
|
+
readonly path = "/api/auth/refresh";
|
|
12
|
+
readonly method: MoMethod;
|
|
13
|
+
readonly auth = false;
|
|
14
|
+
}
|
|
15
|
+
export declare class ApiAuthGetCurrentUser extends ApiCall<{}, UserInfoDto> {
|
|
16
|
+
readonly path = "/api/auth/userinfo";
|
|
17
|
+
readonly method: MoMethod;
|
|
18
|
+
readonly auth = true;
|
|
19
|
+
}
|
|
20
|
+
export declare class ApiAuthLogout extends ApiCall<{}, unknown> {
|
|
21
|
+
readonly path = "/api/auth/logout";
|
|
22
|
+
readonly method: MoMethod;
|
|
23
|
+
readonly auth = true;
|
|
24
|
+
}
|
|
25
|
+
export declare class ApiAuthGetUserApps extends ApiCall<{}, Array<AppInstanceItemDto>> {
|
|
26
|
+
readonly path = "/api/auth/apps";
|
|
27
|
+
readonly method: MoMethod;
|
|
28
|
+
readonly auth = true;
|
|
29
|
+
}
|
|
30
|
+
export declare class ApiAuthGetUserPermissions extends ApiCall<{
|
|
31
|
+
query: {
|
|
32
|
+
appId: string;
|
|
33
|
+
};
|
|
34
|
+
}, UserPermissionsResponseDto> {
|
|
35
|
+
readonly path = "/api/auth/permissions";
|
|
36
|
+
readonly method: MoMethod;
|
|
37
|
+
readonly auth = true;
|
|
38
|
+
}
|
|
39
|
+
export declare class ApiAuthRegister extends ApiCall<{
|
|
40
|
+
body: RegisterDto;
|
|
41
|
+
}, LoginResponseDto> {
|
|
42
|
+
readonly path = "/api/auth/register";
|
|
43
|
+
readonly method: MoMethod;
|
|
44
|
+
readonly auth = false;
|
|
45
|
+
}
|
|
46
|
+
export declare class ApiAuthCheckAvailability extends ApiCall<{
|
|
47
|
+
query: {
|
|
48
|
+
username?: string;
|
|
49
|
+
email?: string;
|
|
50
|
+
phone?: string;
|
|
51
|
+
};
|
|
52
|
+
}, CheckAvailabilityResponseDto> {
|
|
53
|
+
readonly path = "/api/auth/check-availability";
|
|
54
|
+
readonly method: MoMethod;
|
|
55
|
+
readonly auth = false;
|
|
56
|
+
}
|
|
57
|
+
export declare class ApiAuthChangePassword extends ApiCall<{}, unknown> {
|
|
58
|
+
readonly path = "/api/auth/change-password";
|
|
59
|
+
readonly method: MoMethod;
|
|
60
|
+
readonly auth = true;
|
|
61
|
+
}
|
|
62
|
+
export declare class ApiAuthSyncPermissions extends ApiCall<{}, UserPermissionsResponseDto> {
|
|
63
|
+
readonly path = "/api/auth/sync-permissions";
|
|
64
|
+
readonly method: MoMethod;
|
|
65
|
+
readonly auth = true;
|
|
66
|
+
}
|
|
67
|
+
export declare class ApiUserCreate extends ApiCall<{
|
|
68
|
+
body: CreateUserDto;
|
|
69
|
+
}, UserResponseDto> {
|
|
70
|
+
readonly path = "/api/users";
|
|
71
|
+
readonly method: MoMethod;
|
|
72
|
+
readonly auth = true;
|
|
73
|
+
}
|
|
74
|
+
export declare class ApiUserFindAll extends ApiCall<{
|
|
75
|
+
query: {
|
|
76
|
+
username?: string;
|
|
77
|
+
phone?: string;
|
|
78
|
+
userStatus?: number;
|
|
79
|
+
page?: number;
|
|
80
|
+
pageSize?: number;
|
|
81
|
+
};
|
|
82
|
+
}, unknown> {
|
|
83
|
+
readonly path = "/api/users";
|
|
84
|
+
readonly method: MoMethod;
|
|
85
|
+
readonly auth = true;
|
|
86
|
+
}
|
|
87
|
+
export declare class ApiUserFindById extends ApiCall<{
|
|
88
|
+
params: {
|
|
89
|
+
id: string;
|
|
90
|
+
};
|
|
91
|
+
}, UserResponseDto> {
|
|
92
|
+
readonly path = "/api/users/{id}";
|
|
93
|
+
readonly method: MoMethod;
|
|
94
|
+
readonly auth = true;
|
|
95
|
+
}
|
|
96
|
+
export declare class ApiUserUpdate extends ApiCall<{
|
|
97
|
+
body: UpdateUserDto;
|
|
98
|
+
params: {
|
|
99
|
+
id: string;
|
|
100
|
+
};
|
|
101
|
+
}, UserResponseDto> {
|
|
102
|
+
readonly path = "/api/users/{id}";
|
|
103
|
+
readonly method: MoMethod;
|
|
104
|
+
readonly auth = true;
|
|
105
|
+
}
|
|
106
|
+
export declare class ApiUserDelete extends ApiCall<{
|
|
107
|
+
params: {
|
|
108
|
+
id: string;
|
|
109
|
+
};
|
|
110
|
+
}, unknown> {
|
|
111
|
+
readonly path = "/api/users/{id}";
|
|
112
|
+
readonly method: MoMethod;
|
|
113
|
+
readonly auth = true;
|
|
114
|
+
}
|
|
115
|
+
export declare class ApiUserUpdateStatus extends ApiCall<{
|
|
116
|
+
params: {
|
|
117
|
+
id: string;
|
|
118
|
+
};
|
|
119
|
+
query: {
|
|
120
|
+
status: number;
|
|
121
|
+
};
|
|
122
|
+
}, UserResponseDto> {
|
|
123
|
+
readonly path = "/api/users/{id}/status";
|
|
124
|
+
readonly method: MoMethod;
|
|
125
|
+
readonly auth = true;
|
|
126
|
+
}
|
|
127
|
+
export declare class ApiUserResetPassword extends ApiCall<{
|
|
128
|
+
params: {
|
|
129
|
+
id: string;
|
|
130
|
+
};
|
|
131
|
+
query: {
|
|
132
|
+
password: string;
|
|
133
|
+
};
|
|
134
|
+
}, unknown> {
|
|
135
|
+
readonly path = "/api/users/{id}/reset-password";
|
|
136
|
+
readonly method: MoMethod;
|
|
137
|
+
readonly auth = true;
|
|
138
|
+
}
|
|
139
|
+
export declare class ApiRoleCreate extends ApiCall<{
|
|
140
|
+
body: CreateRoleDto;
|
|
141
|
+
}, RoleResponseDto> {
|
|
142
|
+
readonly path = "/api/roles";
|
|
143
|
+
readonly method: MoMethod;
|
|
144
|
+
readonly auth = true;
|
|
145
|
+
}
|
|
146
|
+
export declare class ApiRoleFindAll extends ApiCall<{
|
|
147
|
+
query: {
|
|
148
|
+
page?: number;
|
|
149
|
+
pageSize?: number;
|
|
150
|
+
sortField?: string;
|
|
151
|
+
sortOrder?: string;
|
|
152
|
+
roleCode?: string;
|
|
153
|
+
roleName?: string;
|
|
154
|
+
roleStatus?: number;
|
|
155
|
+
appTypeId?: string;
|
|
156
|
+
appId?: string;
|
|
157
|
+
};
|
|
158
|
+
}, PageResponseDto & {
|
|
159
|
+
list: Array<RoleResponseDto>;
|
|
160
|
+
}> {
|
|
161
|
+
readonly path = "/api/roles";
|
|
162
|
+
readonly method: MoMethod;
|
|
163
|
+
readonly auth = true;
|
|
164
|
+
}
|
|
165
|
+
export declare class ApiRoleFindById extends ApiCall<{
|
|
166
|
+
params: {
|
|
167
|
+
id: string;
|
|
168
|
+
};
|
|
169
|
+
}, RoleResponseDto> {
|
|
170
|
+
readonly path = "/api/roles/{id}";
|
|
171
|
+
readonly method: MoMethod;
|
|
172
|
+
readonly auth = true;
|
|
173
|
+
}
|
|
174
|
+
export declare class ApiRoleUpdate extends ApiCall<{
|
|
175
|
+
body: UpdateRoleDto;
|
|
176
|
+
params: {
|
|
177
|
+
id: string;
|
|
178
|
+
};
|
|
179
|
+
}, RoleResponseDto> {
|
|
180
|
+
readonly path = "/api/roles/{id}";
|
|
181
|
+
readonly method: MoMethod;
|
|
182
|
+
readonly auth = true;
|
|
183
|
+
}
|
|
184
|
+
export declare class ApiRoleDelete extends ApiCall<{
|
|
185
|
+
params: {
|
|
186
|
+
id: string;
|
|
187
|
+
};
|
|
188
|
+
}, unknown> {
|
|
189
|
+
readonly path = "/api/roles/{id}";
|
|
190
|
+
readonly method: MoMethod;
|
|
191
|
+
readonly auth = true;
|
|
192
|
+
}
|
|
193
|
+
export declare class ApiRoleAssignPermissions extends ApiCall<{
|
|
194
|
+
body: AssignPermissionsDto;
|
|
195
|
+
params: {
|
|
196
|
+
id: string;
|
|
197
|
+
};
|
|
198
|
+
}, unknown> {
|
|
199
|
+
readonly path = "/api/roles/{id}/permissions";
|
|
200
|
+
readonly method: MoMethod;
|
|
201
|
+
readonly auth = true;
|
|
202
|
+
}
|
|
203
|
+
export declare class ApiRoleGetRolePermissions extends ApiCall<{
|
|
204
|
+
params: {
|
|
205
|
+
id: string;
|
|
206
|
+
};
|
|
207
|
+
}, RolePermissionResponseDto> {
|
|
208
|
+
readonly path = "/api/roles/{id}/permissions";
|
|
209
|
+
readonly method: MoMethod;
|
|
210
|
+
readonly auth = true;
|
|
211
|
+
}
|
|
212
|
+
export declare class ApiAppTypeCreate extends ApiCall<{
|
|
213
|
+
body: CreateAppTypeDto;
|
|
214
|
+
}, AppTypeResponseDto> {
|
|
215
|
+
readonly path = "/api/app-types";
|
|
216
|
+
readonly method: MoMethod;
|
|
217
|
+
readonly auth = true;
|
|
218
|
+
}
|
|
219
|
+
export declare class ApiAppTypeFindAll extends ApiCall<{
|
|
220
|
+
query: {
|
|
221
|
+
page?: number;
|
|
222
|
+
pageSize?: number;
|
|
223
|
+
sortField?: string;
|
|
224
|
+
sortOrder?: string;
|
|
225
|
+
typeName?: string;
|
|
226
|
+
typeCode?: string;
|
|
227
|
+
typeStatus?: number;
|
|
228
|
+
};
|
|
229
|
+
}, PageResponseDto & {
|
|
230
|
+
list: Array<AppTypeResponseDto>;
|
|
231
|
+
}> {
|
|
232
|
+
readonly path = "/api/app-types";
|
|
233
|
+
readonly method: MoMethod;
|
|
234
|
+
readonly auth = true;
|
|
235
|
+
}
|
|
236
|
+
export declare class ApiAppTypeFindAllList extends ApiCall<{}, Array<AppTypeResponseDto>> {
|
|
237
|
+
readonly path = "/api/app-types/all";
|
|
238
|
+
readonly method: MoMethod;
|
|
239
|
+
readonly auth = true;
|
|
240
|
+
}
|
|
241
|
+
export declare class ApiAppTypeFindById extends ApiCall<{
|
|
242
|
+
params: {
|
|
243
|
+
id: string;
|
|
244
|
+
};
|
|
245
|
+
}, AppTypeResponseDto> {
|
|
246
|
+
readonly path = "/api/app-types/{id}";
|
|
247
|
+
readonly method: MoMethod;
|
|
248
|
+
readonly auth = true;
|
|
249
|
+
}
|
|
250
|
+
export declare class ApiAppTypeUpdate extends ApiCall<{
|
|
251
|
+
body: UpdateAppTypeDto;
|
|
252
|
+
params: {
|
|
253
|
+
id: string;
|
|
254
|
+
};
|
|
255
|
+
}, AppTypeResponseDto> {
|
|
256
|
+
readonly path = "/api/app-types/{id}";
|
|
257
|
+
readonly method: MoMethod;
|
|
258
|
+
readonly auth = true;
|
|
259
|
+
}
|
|
260
|
+
export declare class ApiAppTypeDelete extends ApiCall<{
|
|
261
|
+
params: {
|
|
262
|
+
id: string;
|
|
263
|
+
};
|
|
264
|
+
}, unknown> {
|
|
265
|
+
readonly path = "/api/app-types/{id}";
|
|
266
|
+
readonly method: MoMethod;
|
|
267
|
+
readonly auth = true;
|
|
268
|
+
}
|
|
269
|
+
export declare class ApiAppTypeGetPermissionPool extends ApiCall<{
|
|
270
|
+
params: {
|
|
271
|
+
appTypeId: string;
|
|
272
|
+
};
|
|
273
|
+
}, PermissionPoolResponseDto> {
|
|
274
|
+
readonly path = "/api/app-types/{appTypeId}/permission-pool";
|
|
275
|
+
readonly method: MoMethod;
|
|
276
|
+
readonly auth = true;
|
|
277
|
+
}
|
|
278
|
+
export declare class ApiAppTypeUpdatePermissionPool extends ApiCall<{
|
|
279
|
+
body: UpdatePermissionPoolDto;
|
|
280
|
+
params: {
|
|
281
|
+
appTypeId: string;
|
|
282
|
+
};
|
|
283
|
+
}, UpdatePermissionPoolResponseDto> {
|
|
284
|
+
readonly path = "/api/app-types/{appTypeId}/permission-pool";
|
|
285
|
+
readonly method: MoMethod;
|
|
286
|
+
readonly auth = true;
|
|
287
|
+
}
|
|
288
|
+
export declare class ApiAppTypeUpdateStatus extends ApiCall<{
|
|
289
|
+
params: {
|
|
290
|
+
id: string;
|
|
291
|
+
};
|
|
292
|
+
query: {
|
|
293
|
+
status: number;
|
|
294
|
+
};
|
|
295
|
+
}, AppTypeResponseDto> {
|
|
296
|
+
readonly path = "/api/app-types/{id}/status";
|
|
297
|
+
readonly method: MoMethod;
|
|
298
|
+
readonly auth = true;
|
|
299
|
+
}
|
|
300
|
+
export declare class ApiPermissionCreate extends ApiCall<{
|
|
301
|
+
body: CreatePermissionDto;
|
|
302
|
+
}, PermissionResponseDto> {
|
|
303
|
+
readonly path = "/api/permissions";
|
|
304
|
+
readonly method: MoMethod;
|
|
305
|
+
readonly auth = true;
|
|
306
|
+
}
|
|
307
|
+
export declare class ApiPermissionFindAll extends ApiCall<{
|
|
308
|
+
query: {
|
|
309
|
+
page?: number;
|
|
310
|
+
pageSize?: number;
|
|
311
|
+
sortField?: string;
|
|
312
|
+
sortOrder?: string;
|
|
313
|
+
appTypeId?: string;
|
|
314
|
+
permName?: string;
|
|
315
|
+
permCode?: string;
|
|
316
|
+
permissionType?: string;
|
|
317
|
+
nodeType?: string;
|
|
318
|
+
parentId?: string;
|
|
319
|
+
};
|
|
320
|
+
}, PageResponseDto & {
|
|
321
|
+
list: Array<PermissionResponseDto>;
|
|
322
|
+
}> {
|
|
323
|
+
readonly path = "/api/permissions";
|
|
324
|
+
readonly method: MoMethod;
|
|
325
|
+
readonly auth = true;
|
|
326
|
+
}
|
|
327
|
+
export declare class ApiPermissionFindAllTree extends ApiCall<{
|
|
328
|
+
query: {
|
|
329
|
+
permissionType?: string;
|
|
330
|
+
};
|
|
331
|
+
}, Array<PermissionTreeNodeDto>> {
|
|
332
|
+
readonly path = "/api/permissions/tree/all";
|
|
333
|
+
readonly method: MoMethod;
|
|
334
|
+
readonly auth = true;
|
|
335
|
+
}
|
|
336
|
+
export declare class ApiPermissionGetPermissionTree extends ApiCall<{
|
|
337
|
+
query: {
|
|
338
|
+
parentId?: string;
|
|
339
|
+
};
|
|
340
|
+
}, Array<PermissionTreeNodeDto>> {
|
|
341
|
+
readonly path = "/api/permissions/tree";
|
|
342
|
+
readonly method: MoMethod;
|
|
343
|
+
readonly auth = true;
|
|
344
|
+
}
|
|
345
|
+
export declare class ApiPermissionFindById extends ApiCall<{
|
|
346
|
+
params: {
|
|
347
|
+
id: string;
|
|
348
|
+
};
|
|
349
|
+
}, PermissionResponseDto> {
|
|
350
|
+
readonly path = "/api/permissions/{id}";
|
|
351
|
+
readonly method: MoMethod;
|
|
352
|
+
readonly auth = true;
|
|
353
|
+
}
|
|
354
|
+
export declare class ApiPermissionUpdate extends ApiCall<{
|
|
355
|
+
body: UpdatePermissionDto;
|
|
356
|
+
params: {
|
|
357
|
+
id: string;
|
|
358
|
+
};
|
|
359
|
+
}, PermissionResponseDto> {
|
|
360
|
+
readonly path = "/api/permissions/{id}";
|
|
361
|
+
readonly method: MoMethod;
|
|
362
|
+
readonly auth = true;
|
|
363
|
+
}
|
|
364
|
+
export declare class ApiPermissionDelete extends ApiCall<{
|
|
365
|
+
params: {
|
|
366
|
+
id: string;
|
|
367
|
+
};
|
|
368
|
+
}, unknown> {
|
|
369
|
+
readonly path = "/api/permissions/{id}";
|
|
370
|
+
readonly method: MoMethod;
|
|
371
|
+
readonly auth = true;
|
|
372
|
+
}
|
|
373
|
+
export declare class ApiPermissionBatchCreate extends ApiCall<{
|
|
374
|
+
body: Array<CreatePermissionDto>;
|
|
375
|
+
}, Array<PermissionResponseDto>> {
|
|
376
|
+
readonly path = "/api/permissions/batch";
|
|
377
|
+
readonly method: MoMethod;
|
|
378
|
+
readonly auth = true;
|
|
379
|
+
}
|
|
380
|
+
export declare class ApiPermissionSyncPermissions extends ApiCall<{
|
|
381
|
+
body: SyncPermissionDto;
|
|
382
|
+
}, Array<PermissionTreeNodeDto>> {
|
|
383
|
+
readonly path = "/api/permissions/sync";
|
|
384
|
+
readonly method: MoMethod;
|
|
385
|
+
readonly auth = true;
|
|
386
|
+
}
|
|
387
|
+
export declare class ApiAppCreate extends ApiCall<{
|
|
388
|
+
body: CreateAppDto;
|
|
389
|
+
}, AppDetailResponseDto> {
|
|
390
|
+
readonly path = "/api/apps";
|
|
391
|
+
readonly method: MoMethod;
|
|
392
|
+
readonly auth = true;
|
|
393
|
+
}
|
|
394
|
+
export declare class ApiAppFindAll extends ApiCall<{
|
|
395
|
+
query: {
|
|
396
|
+
page?: number;
|
|
397
|
+
pageSize?: number;
|
|
398
|
+
sortField?: string;
|
|
399
|
+
sortOrder?: string;
|
|
400
|
+
appName?: string;
|
|
401
|
+
appCode?: string;
|
|
402
|
+
appTypeId?: string;
|
|
403
|
+
ownerId?: string;
|
|
404
|
+
appStatus?: number;
|
|
405
|
+
};
|
|
406
|
+
}, PageResponseDto & {
|
|
407
|
+
list: Array<AppDetailResponseDto>;
|
|
408
|
+
}> {
|
|
409
|
+
readonly path = "/api/apps";
|
|
410
|
+
readonly method: MoMethod;
|
|
411
|
+
readonly auth = true;
|
|
412
|
+
}
|
|
413
|
+
export declare class ApiAppFindById extends ApiCall<{
|
|
414
|
+
params: {
|
|
415
|
+
id: string;
|
|
416
|
+
};
|
|
417
|
+
}, AppDetailResponseDto> {
|
|
418
|
+
readonly path = "/api/apps/{id}";
|
|
419
|
+
readonly method: MoMethod;
|
|
420
|
+
readonly auth = true;
|
|
421
|
+
}
|
|
422
|
+
export declare class ApiAppUpdate extends ApiCall<{
|
|
423
|
+
body: UpdateAppDto;
|
|
424
|
+
params: {
|
|
425
|
+
id: string;
|
|
426
|
+
};
|
|
427
|
+
}, AppDetailResponseDto> {
|
|
428
|
+
readonly path = "/api/apps/{id}";
|
|
429
|
+
readonly method: MoMethod;
|
|
430
|
+
readonly auth = true;
|
|
431
|
+
}
|
|
432
|
+
export declare class ApiAppDelete extends ApiCall<{
|
|
433
|
+
params: {
|
|
434
|
+
id: string;
|
|
435
|
+
};
|
|
436
|
+
}, unknown> {
|
|
437
|
+
readonly path = "/api/apps/{id}";
|
|
438
|
+
readonly method: MoMethod;
|
|
439
|
+
readonly auth = true;
|
|
440
|
+
}
|
|
441
|
+
export declare class ApiAppChangeOwner extends ApiCall<{
|
|
442
|
+
params: {
|
|
443
|
+
id: string;
|
|
444
|
+
};
|
|
445
|
+
query: {
|
|
446
|
+
ownerId: string;
|
|
447
|
+
};
|
|
448
|
+
}, AppDetailResponseDto> {
|
|
449
|
+
readonly path = "/api/apps/{id}/owner";
|
|
450
|
+
readonly method: MoMethod;
|
|
451
|
+
readonly auth = true;
|
|
452
|
+
}
|
|
453
|
+
export declare class ApiAppUpdateStatus extends ApiCall<{
|
|
454
|
+
params: {
|
|
455
|
+
id: string;
|
|
456
|
+
};
|
|
457
|
+
query: {
|
|
458
|
+
status: number;
|
|
459
|
+
};
|
|
460
|
+
}, AppDetailResponseDto> {
|
|
461
|
+
readonly path = "/api/apps/{id}/status";
|
|
462
|
+
readonly method: MoMethod;
|
|
463
|
+
readonly auth = true;
|
|
464
|
+
}
|
|
465
|
+
export declare class ApiMemberAddMember extends ApiCall<{
|
|
466
|
+
body: AddMemberDto;
|
|
467
|
+
params: {
|
|
468
|
+
appId: string;
|
|
469
|
+
};
|
|
470
|
+
}, unknown> {
|
|
471
|
+
readonly path = "/api/apps/{appId}/members";
|
|
472
|
+
readonly method: MoMethod;
|
|
473
|
+
readonly auth = true;
|
|
474
|
+
}
|
|
475
|
+
export declare class ApiMemberGetMembers extends ApiCall<{
|
|
476
|
+
params: {
|
|
477
|
+
appId: string;
|
|
478
|
+
};
|
|
479
|
+
query: {
|
|
480
|
+
page?: number;
|
|
481
|
+
pageSize?: number;
|
|
482
|
+
sortField?: string;
|
|
483
|
+
sortOrder?: string;
|
|
484
|
+
userName?: string;
|
|
485
|
+
userAccount?: string;
|
|
486
|
+
};
|
|
487
|
+
}, PageResponseDto & {
|
|
488
|
+
list: Array<MemberResponseDto>;
|
|
489
|
+
}> {
|
|
490
|
+
readonly path = "/api/apps/{appId}/members";
|
|
491
|
+
readonly method: MoMethod;
|
|
492
|
+
readonly auth = true;
|
|
493
|
+
}
|
|
494
|
+
export declare class ApiMemberUpdateRoles extends ApiCall<{
|
|
495
|
+
body: UpdateMemberRolesDto;
|
|
496
|
+
params: {
|
|
497
|
+
appId: string;
|
|
498
|
+
userId: string;
|
|
499
|
+
};
|
|
500
|
+
}, unknown> {
|
|
501
|
+
readonly path = "/api/apps/{appId}/members/{userId}/roles";
|
|
502
|
+
readonly method: MoMethod;
|
|
503
|
+
readonly auth = true;
|
|
504
|
+
}
|
|
505
|
+
export declare class ApiMemberRemoveMember extends ApiCall<{
|
|
506
|
+
params: {
|
|
507
|
+
appId: string;
|
|
508
|
+
userId: string;
|
|
509
|
+
};
|
|
510
|
+
}, unknown> {
|
|
511
|
+
readonly path = "/api/apps/{appId}/members/{userId}";
|
|
512
|
+
readonly method: MoMethod;
|
|
513
|
+
readonly auth = true;
|
|
514
|
+
}
|
|
515
|
+
export declare class ApiMemberGetAvailableRoles extends ApiCall<{
|
|
516
|
+
params: {
|
|
517
|
+
appId: string;
|
|
518
|
+
};
|
|
519
|
+
}, Array<AvailableRoleDto>> {
|
|
520
|
+
readonly path = "/api/apps/{appId}/members/available-roles";
|
|
521
|
+
readonly method: MoMethod;
|
|
522
|
+
readonly auth = true;
|
|
523
|
+
}
|
|
524
|
+
export declare class ApiAuditLogFindAll extends ApiCall<{
|
|
525
|
+
query: {
|
|
526
|
+
page?: number;
|
|
527
|
+
pageSize?: number;
|
|
528
|
+
sortField?: string;
|
|
529
|
+
sortOrder?: string;
|
|
530
|
+
module?: string;
|
|
531
|
+
event?: string;
|
|
532
|
+
operatorId?: string;
|
|
533
|
+
targetId?: string;
|
|
534
|
+
startTime?: string;
|
|
535
|
+
endTime?: string;
|
|
536
|
+
};
|
|
537
|
+
}, PageResponseDto & {
|
|
538
|
+
list: Array<AuditLogResponseDto>;
|
|
539
|
+
}> {
|
|
540
|
+
readonly path = "/api/audit-logs";
|
|
541
|
+
readonly method: MoMethod;
|
|
542
|
+
readonly auth = true;
|
|
543
|
+
}
|
|
544
|
+
export declare class ApiAuditLogFindById extends ApiCall<{
|
|
545
|
+
params: {
|
|
546
|
+
id: string;
|
|
547
|
+
};
|
|
548
|
+
}, AuditLogResponseDto> {
|
|
549
|
+
readonly path = "/api/audit-logs/{id}";
|
|
550
|
+
readonly method: MoMethod;
|
|
551
|
+
readonly auth = true;
|
|
552
|
+
}
|
|
553
|
+
export declare class ApiAuditLogFindByTargetId extends ApiCall<{
|
|
554
|
+
params: {
|
|
555
|
+
targetId: string;
|
|
556
|
+
};
|
|
557
|
+
}, Array<AuditLogResponseDto>> {
|
|
558
|
+
readonly path = "/api/audit-logs/target/{targetId}";
|
|
559
|
+
readonly method: MoMethod;
|
|
560
|
+
readonly auth = true;
|
|
561
|
+
}
|
|
562
|
+
export declare class ApiAuditLogFindByOperatorId extends ApiCall<{
|
|
563
|
+
params: {
|
|
564
|
+
operatorId: string;
|
|
565
|
+
};
|
|
566
|
+
}, Array<AuditLogResponseDto>> {
|
|
567
|
+
readonly path = "/api/audit-logs/operator/{operatorId}";
|
|
568
|
+
readonly method: MoMethod;
|
|
569
|
+
readonly auth = true;
|
|
570
|
+
}
|
|
571
|
+
export declare class ApiAuditLogDeleteBeforeDate extends ApiCall<{
|
|
572
|
+
params: {
|
|
573
|
+
beforeDate: string;
|
|
574
|
+
};
|
|
575
|
+
}, unknown> {
|
|
576
|
+
readonly path = "/api/audit-logs/before/{beforeDate}";
|
|
577
|
+
readonly method: MoMethod;
|
|
578
|
+
readonly auth = true;
|
|
579
|
+
}
|
|
580
|
+
export declare class ApiHealthHealthCheck extends ApiCall<{}, unknown> {
|
|
581
|
+
readonly path = "/api/health";
|
|
582
|
+
readonly method: MoMethod;
|
|
583
|
+
readonly auth = false;
|
|
584
|
+
}
|
|
585
|
+
export declare class ApiHealthReadyCheck extends ApiCall<{}, unknown> {
|
|
586
|
+
readonly path = "/api/health/ready";
|
|
587
|
+
readonly method: MoMethod;
|
|
588
|
+
readonly auth = false;
|
|
589
|
+
}
|
|
590
|
+
export declare class ApiHealthLiveCheck extends ApiCall<{}, unknown> {
|
|
591
|
+
readonly path = "/api/health/live";
|
|
592
|
+
readonly method: MoMethod;
|
|
593
|
+
readonly auth = false;
|
|
594
|
+
}
|
|
595
|
+
export declare class ApiInstallGetStatus extends ApiCall<{}, InitStatusResponseDto> {
|
|
596
|
+
readonly path = "/api/install/status";
|
|
597
|
+
readonly method: MoMethod;
|
|
598
|
+
readonly auth = false;
|
|
599
|
+
}
|
|
600
|
+
export declare class ApiInstallInitialize extends ApiCall<{
|
|
601
|
+
body: InitRequestDto;
|
|
602
|
+
}, InitResponseDto> {
|
|
603
|
+
readonly path = "/api/install/init";
|
|
604
|
+
readonly method: MoMethod;
|
|
605
|
+
readonly auth = false;
|
|
606
|
+
}
|