moyan-api 2.1.18 → 2.1.19
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 +151 -128
- package/dist/examples/apis/sys/index.js +147 -138
- package/dist/examples/apis/sys/index.js.map +1 -1
- package/dist/examples/apis/sys/schemas.d.ts +97 -73
- package/dist/examples/index.js +1 -1
- package/dist/examples/index.js.map +1 -1
- package/dist/template/schemas.js +1 -1
- package/dist/template/schemas.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ApiCall
|
|
2
|
-
import type {
|
|
1
|
+
import { ApiCall } from 'moyan-api';
|
|
2
|
+
import type { MoMethod } from 'moyan-api';
|
|
3
|
+
import type { LoginDto, LoginResponseDto, UserInfoDto, AppInstanceItemDto, PermissionTreeNodeDto, UserPermissionsResponseDto, RegisterDto, CheckAvailabilityResponseDto, CreateUserDto, UserResponseDto, AdminCreateUserDto, PageResponseDto, UpdateUserDto, ResetPasswordDto, CreateRoleDto, RoleResponseDto, UpdateRoleDto, AssignPermissionsDto, RolePermissionResponseDto, CreatePermissionDto, PermissionResponseDto, UpdatePermissionDto, SyncPermissionDto, CreateAppTypeDto, AppTypeResponseDto, PermissionPoolResponseDto, UpdatePermissionPoolDto, UpdatePermissionPoolResponseDto, UpdateAppTypeDto, CreateAppDto, AppDetailResponseDto, UpdateAppDto, AddMemberDto, MemberResponseDto, UpdateMemberRolesDto, AvailableAvailableRoleDto, AuditLogResponseDto, InitStatusResponseDto, InitRequestDto, InitResponseDto } from './schemas';
|
|
3
4
|
export declare class ApiAuthLogin extends ApiCall<{
|
|
4
5
|
body: LoginDto;
|
|
5
6
|
}, LoginResponseDto> {
|
|
@@ -73,17 +74,38 @@ export declare class ApiUserCreate extends ApiCall<{
|
|
|
73
74
|
}
|
|
74
75
|
export declare class ApiUserFindAll extends ApiCall<{
|
|
75
76
|
query: {
|
|
77
|
+
page: number;
|
|
78
|
+
pageSize: number;
|
|
79
|
+
sortField?: string;
|
|
80
|
+
sortOrder?: string;
|
|
76
81
|
username?: string;
|
|
77
82
|
phone?: string;
|
|
78
83
|
userStatus?: number;
|
|
79
|
-
page?: number;
|
|
80
|
-
pageSize?: number;
|
|
81
84
|
};
|
|
82
|
-
},
|
|
85
|
+
}, PageResponseDto & {
|
|
86
|
+
list: Array<UserResponseDto>;
|
|
87
|
+
}> {
|
|
83
88
|
readonly path = "/api/users";
|
|
84
89
|
readonly method: MoMethod;
|
|
85
90
|
readonly auth = true;
|
|
86
91
|
}
|
|
92
|
+
export declare class ApiUserAdminCreate extends ApiCall<{
|
|
93
|
+
body: AdminCreateUserDto;
|
|
94
|
+
}, UserResponseDto> {
|
|
95
|
+
readonly path = "/api/users/admin-create";
|
|
96
|
+
readonly method: MoMethod;
|
|
97
|
+
readonly auth = true;
|
|
98
|
+
}
|
|
99
|
+
export declare class ApiUserFindOneByKeyword extends ApiCall<{
|
|
100
|
+
query: {
|
|
101
|
+
keyword: string;
|
|
102
|
+
searchBy?: string;
|
|
103
|
+
};
|
|
104
|
+
}, UserResponseDto> {
|
|
105
|
+
readonly path = "/api/users/find-one";
|
|
106
|
+
readonly method: MoMethod;
|
|
107
|
+
readonly auth = true;
|
|
108
|
+
}
|
|
87
109
|
export declare class ApiUserFindById extends ApiCall<{
|
|
88
110
|
params: {
|
|
89
111
|
id: string;
|
|
@@ -125,12 +147,10 @@ export declare class ApiUserUpdateStatus extends ApiCall<{
|
|
|
125
147
|
readonly auth = true;
|
|
126
148
|
}
|
|
127
149
|
export declare class ApiUserResetPassword extends ApiCall<{
|
|
150
|
+
body: ResetPasswordDto;
|
|
128
151
|
params: {
|
|
129
152
|
id: string;
|
|
130
153
|
};
|
|
131
|
-
query: {
|
|
132
|
-
password: string;
|
|
133
|
-
};
|
|
134
154
|
}, unknown> {
|
|
135
155
|
readonly path = "/api/users/{id}/reset-password";
|
|
136
156
|
readonly method: MoMethod;
|
|
@@ -145,8 +165,8 @@ export declare class ApiRoleCreate extends ApiCall<{
|
|
|
145
165
|
}
|
|
146
166
|
export declare class ApiRoleFindAll extends ApiCall<{
|
|
147
167
|
query: {
|
|
148
|
-
page
|
|
149
|
-
pageSize
|
|
168
|
+
page: number;
|
|
169
|
+
pageSize: number;
|
|
150
170
|
sortField?: string;
|
|
151
171
|
sortOrder?: string;
|
|
152
172
|
roleCode?: string;
|
|
@@ -209,6 +229,93 @@ export declare class ApiRoleGetRolePermissions extends ApiCall<{
|
|
|
209
229
|
readonly method: MoMethod;
|
|
210
230
|
readonly auth = true;
|
|
211
231
|
}
|
|
232
|
+
export declare class ApiPermissionCreate extends ApiCall<{
|
|
233
|
+
body: CreatePermissionDto;
|
|
234
|
+
}, PermissionResponseDto> {
|
|
235
|
+
readonly path = "/api/permissions";
|
|
236
|
+
readonly method: MoMethod;
|
|
237
|
+
readonly auth = true;
|
|
238
|
+
}
|
|
239
|
+
export declare class ApiPermissionFindAll extends ApiCall<{
|
|
240
|
+
query: {
|
|
241
|
+
page: number;
|
|
242
|
+
pageSize: number;
|
|
243
|
+
sortField?: string;
|
|
244
|
+
sortOrder?: string;
|
|
245
|
+
appTypeId?: string;
|
|
246
|
+
permName?: string;
|
|
247
|
+
permCode?: string;
|
|
248
|
+
permissionType?: string;
|
|
249
|
+
nodeType?: string;
|
|
250
|
+
parentId?: string;
|
|
251
|
+
};
|
|
252
|
+
}, PageResponseDto & {
|
|
253
|
+
list: Array<PermissionResponseDto>;
|
|
254
|
+
}> {
|
|
255
|
+
readonly path = "/api/permissions";
|
|
256
|
+
readonly method: MoMethod;
|
|
257
|
+
readonly auth = true;
|
|
258
|
+
}
|
|
259
|
+
export declare class ApiPermissionFindAllTree extends ApiCall<{
|
|
260
|
+
query: {
|
|
261
|
+
permissionType?: string;
|
|
262
|
+
};
|
|
263
|
+
}, Array<PermissionTreeNodeDto>> {
|
|
264
|
+
readonly path = "/api/permissions/tree/all";
|
|
265
|
+
readonly method: MoMethod;
|
|
266
|
+
readonly auth = true;
|
|
267
|
+
}
|
|
268
|
+
export declare class ApiPermissionGetPermissionTree extends ApiCall<{
|
|
269
|
+
query: {
|
|
270
|
+
parentId?: string;
|
|
271
|
+
};
|
|
272
|
+
}, Array<PermissionTreeNodeDto>> {
|
|
273
|
+
readonly path = "/api/permissions/tree";
|
|
274
|
+
readonly method: MoMethod;
|
|
275
|
+
readonly auth = true;
|
|
276
|
+
}
|
|
277
|
+
export declare class ApiPermissionFindById extends ApiCall<{
|
|
278
|
+
params: {
|
|
279
|
+
id: string;
|
|
280
|
+
};
|
|
281
|
+
}, PermissionResponseDto> {
|
|
282
|
+
readonly path = "/api/permissions/{id}";
|
|
283
|
+
readonly method: MoMethod;
|
|
284
|
+
readonly auth = true;
|
|
285
|
+
}
|
|
286
|
+
export declare class ApiPermissionUpdate extends ApiCall<{
|
|
287
|
+
body: UpdatePermissionDto;
|
|
288
|
+
params: {
|
|
289
|
+
id: string;
|
|
290
|
+
};
|
|
291
|
+
}, PermissionResponseDto> {
|
|
292
|
+
readonly path = "/api/permissions/{id}";
|
|
293
|
+
readonly method: MoMethod;
|
|
294
|
+
readonly auth = true;
|
|
295
|
+
}
|
|
296
|
+
export declare class ApiPermissionDelete extends ApiCall<{
|
|
297
|
+
params: {
|
|
298
|
+
id: string;
|
|
299
|
+
};
|
|
300
|
+
}, unknown> {
|
|
301
|
+
readonly path = "/api/permissions/{id}";
|
|
302
|
+
readonly method: MoMethod;
|
|
303
|
+
readonly auth = true;
|
|
304
|
+
}
|
|
305
|
+
export declare class ApiPermissionBatchCreate extends ApiCall<{
|
|
306
|
+
body: Array<CreatePermissionDto>;
|
|
307
|
+
}, Array<PermissionResponseDto>> {
|
|
308
|
+
readonly path = "/api/permissions/batch";
|
|
309
|
+
readonly method: MoMethod;
|
|
310
|
+
readonly auth = true;
|
|
311
|
+
}
|
|
312
|
+
export declare class ApiPermissionSyncPermissions extends ApiCall<{
|
|
313
|
+
body: SyncPermissionDto;
|
|
314
|
+
}, Array<PermissionTreeNodeDto>> {
|
|
315
|
+
readonly path = "/api/permissions/sync";
|
|
316
|
+
readonly method: MoMethod;
|
|
317
|
+
readonly auth = true;
|
|
318
|
+
}
|
|
212
319
|
export declare class ApiAppTypeCreate extends ApiCall<{
|
|
213
320
|
body: CreateAppTypeDto;
|
|
214
321
|
}, AppTypeResponseDto> {
|
|
@@ -218,8 +325,8 @@ export declare class ApiAppTypeCreate extends ApiCall<{
|
|
|
218
325
|
}
|
|
219
326
|
export declare class ApiAppTypeFindAll extends ApiCall<{
|
|
220
327
|
query: {
|
|
221
|
-
page
|
|
222
|
-
pageSize
|
|
328
|
+
page: number;
|
|
329
|
+
pageSize: number;
|
|
223
330
|
sortField?: string;
|
|
224
331
|
sortOrder?: string;
|
|
225
332
|
typeName?: string;
|
|
@@ -297,93 +404,6 @@ export declare class ApiAppTypeUpdateStatus extends ApiCall<{
|
|
|
297
404
|
readonly method: MoMethod;
|
|
298
405
|
readonly auth = true;
|
|
299
406
|
}
|
|
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
407
|
export declare class ApiAppCreate extends ApiCall<{
|
|
388
408
|
body: CreateAppDto;
|
|
389
409
|
}, AppDetailResponseDto> {
|
|
@@ -393,8 +413,8 @@ export declare class ApiAppCreate extends ApiCall<{
|
|
|
393
413
|
}
|
|
394
414
|
export declare class ApiAppFindAll extends ApiCall<{
|
|
395
415
|
query: {
|
|
396
|
-
page
|
|
397
|
-
pageSize
|
|
416
|
+
page: number;
|
|
417
|
+
pageSize: number;
|
|
398
418
|
sortField?: string;
|
|
399
419
|
sortOrder?: string;
|
|
400
420
|
appName?: string;
|
|
@@ -462,7 +482,7 @@ export declare class ApiAppUpdateStatus extends ApiCall<{
|
|
|
462
482
|
readonly method: MoMethod;
|
|
463
483
|
readonly auth = true;
|
|
464
484
|
}
|
|
465
|
-
export declare class
|
|
485
|
+
export declare class ApiAppMemberAddMember extends ApiCall<{
|
|
466
486
|
body: AddMemberDto;
|
|
467
487
|
params: {
|
|
468
488
|
appId: string;
|
|
@@ -472,17 +492,17 @@ export declare class ApiMemberAddMember extends ApiCall<{
|
|
|
472
492
|
readonly method: MoMethod;
|
|
473
493
|
readonly auth = true;
|
|
474
494
|
}
|
|
475
|
-
export declare class
|
|
495
|
+
export declare class ApiAppMemberGetMembers extends ApiCall<{
|
|
476
496
|
params: {
|
|
477
497
|
appId: string;
|
|
478
498
|
};
|
|
479
499
|
query: {
|
|
480
|
-
page
|
|
481
|
-
pageSize
|
|
500
|
+
page: number;
|
|
501
|
+
pageSize: number;
|
|
482
502
|
sortField?: string;
|
|
483
503
|
sortOrder?: string;
|
|
484
|
-
|
|
485
|
-
|
|
504
|
+
nickname?: string;
|
|
505
|
+
username?: string;
|
|
486
506
|
};
|
|
487
507
|
}, PageResponseDto & {
|
|
488
508
|
list: Array<MemberResponseDto>;
|
|
@@ -491,7 +511,7 @@ export declare class ApiMemberGetMembers extends ApiCall<{
|
|
|
491
511
|
readonly method: MoMethod;
|
|
492
512
|
readonly auth = true;
|
|
493
513
|
}
|
|
494
|
-
export declare class
|
|
514
|
+
export declare class ApiAppMemberUpdateRoles extends ApiCall<{
|
|
495
515
|
body: UpdateMemberRolesDto;
|
|
496
516
|
params: {
|
|
497
517
|
appId: string;
|
|
@@ -502,7 +522,7 @@ export declare class ApiMemberUpdateRoles extends ApiCall<{
|
|
|
502
522
|
readonly method: MoMethod;
|
|
503
523
|
readonly auth = true;
|
|
504
524
|
}
|
|
505
|
-
export declare class
|
|
525
|
+
export declare class ApiAppMemberRemoveMember extends ApiCall<{
|
|
506
526
|
params: {
|
|
507
527
|
appId: string;
|
|
508
528
|
userId: string;
|
|
@@ -512,19 +532,19 @@ export declare class ApiMemberRemoveMember extends ApiCall<{
|
|
|
512
532
|
readonly method: MoMethod;
|
|
513
533
|
readonly auth = true;
|
|
514
534
|
}
|
|
515
|
-
export declare class
|
|
535
|
+
export declare class ApiAppMemberGetAvailableRoles extends ApiCall<{
|
|
516
536
|
params: {
|
|
517
537
|
appId: string;
|
|
518
538
|
};
|
|
519
|
-
}, Array<
|
|
539
|
+
}, Array<AvailableAvailableRoleDto>> {
|
|
520
540
|
readonly path = "/api/apps/{appId}/members/available-roles";
|
|
521
541
|
readonly method: MoMethod;
|
|
522
542
|
readonly auth = true;
|
|
523
543
|
}
|
|
524
544
|
export declare class ApiAuditLogFindAll extends ApiCall<{
|
|
525
545
|
query: {
|
|
526
|
-
page
|
|
527
|
-
pageSize
|
|
546
|
+
page: number;
|
|
547
|
+
pageSize: number;
|
|
528
548
|
sortField?: string;
|
|
529
549
|
sortOrder?: string;
|
|
530
550
|
module?: string;
|
|
@@ -577,21 +597,6 @@ export declare class ApiAuditLogDeleteBeforeDate extends ApiCall<{
|
|
|
577
597
|
readonly method: MoMethod;
|
|
578
598
|
readonly auth = true;
|
|
579
599
|
}
|
|
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
600
|
export declare class ApiInstallGetStatus extends ApiCall<{}, InitStatusResponseDto> {
|
|
596
601
|
readonly path = "/api/install/status";
|
|
597
602
|
readonly method: MoMethod;
|
|
@@ -604,3 +609,21 @@ export declare class ApiInstallInitialize extends ApiCall<{
|
|
|
604
609
|
readonly method: MoMethod;
|
|
605
610
|
readonly auth = false;
|
|
606
611
|
}
|
|
612
|
+
export declare class ApiUploadFileUploadFile extends ApiCall<{
|
|
613
|
+
query: {
|
|
614
|
+
businessType: string;
|
|
615
|
+
};
|
|
616
|
+
}, unknown> {
|
|
617
|
+
readonly path = "/api/upload-files";
|
|
618
|
+
readonly method: MoMethod;
|
|
619
|
+
readonly auth = true;
|
|
620
|
+
}
|
|
621
|
+
export declare class ApiUploadFileUploadFiles extends ApiCall<{
|
|
622
|
+
query: {
|
|
623
|
+
businessType: string;
|
|
624
|
+
};
|
|
625
|
+
}, unknown> {
|
|
626
|
+
readonly path = "/api/upload-files/batch";
|
|
627
|
+
readonly method: MoMethod;
|
|
628
|
+
readonly auth = true;
|
|
629
|
+
}
|