moyan-api 1.2.2 → 1.3.2
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/creator.d.ts +2 -0
- package/dist/src/main.d.ts +22 -0
- package/dist/src/main.js +88 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/template/api.d.ts +18 -0
- package/dist/src/template/api.js +133 -0
- package/dist/src/template/api.js.map +1 -0
- package/dist/src/template/schemas.d.ts +13 -0
- package/dist/src/template/schemas.js +97 -0
- package/dist/src/template/schemas.js.map +1 -0
- package/dist/test/apis/sys/index.d.ts +370 -0
- package/dist/test/apis/sys/index.js +455 -0
- package/dist/test/apis/sys/index.js.map +1 -0
- package/dist/test/apis/sys/schemas.d.ts +263 -0
- package/dist/test/apis/sys/schemas.js +3 -0
- package/dist/test/apis/sys/schemas.js.map +1 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.js +13 -0
- package/dist/test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { ApiCall } from 'moyan-api';
|
|
2
|
+
import type { MoMethod } from 'moyan-api';
|
|
3
|
+
import type { LoginDto, LoginResponseDto, UserInfoDto, CreateUserDto, UserResponseDto, UpdateUserDto, CreateRoleDto, RoleResponseDto, UpdateRoleDto, AssignPermissionsDto, CreatePermissionDto, PermissionResponseDto, UpdatePermissionDto, CreateAppTypeDto, AppTypeResponseDto, UpdateAppTypeDto, CreateAppDto, AppDetailResponseDto, UpdateAppDto, AddMemberDto, MemberResponseDto, UpdateMemberRolesDto, AvailableRoleDto, AuditLogResponseDto } from './schemas';
|
|
4
|
+
export declare class ApiAuthLogin extends ApiCall<LoginDto, LoginResponseDto> {
|
|
5
|
+
path: string;
|
|
6
|
+
method: MoMethod;
|
|
7
|
+
auth: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class ApiAuthRefreshToken extends ApiCall<{}, LoginResponseDto> {
|
|
10
|
+
path: string;
|
|
11
|
+
method: MoMethod;
|
|
12
|
+
auth: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class ApiAuthGetCurrentUser extends ApiCall<{}, UserInfoDto> {
|
|
15
|
+
path: string;
|
|
16
|
+
method: MoMethod;
|
|
17
|
+
auth: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare class ApiAuthLogout extends ApiCall<{}, any> {
|
|
20
|
+
path: string;
|
|
21
|
+
method: MoMethod;
|
|
22
|
+
auth: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class ApiUserCreate extends ApiCall<CreateUserDto, UserResponseDto> {
|
|
25
|
+
path: string;
|
|
26
|
+
method: MoMethod;
|
|
27
|
+
auth: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare class ApiUserFindAll extends ApiCall<{
|
|
30
|
+
username?: string;
|
|
31
|
+
phone?: string;
|
|
32
|
+
userStatus?: number;
|
|
33
|
+
page?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
}, any> {
|
|
36
|
+
path: string;
|
|
37
|
+
method: MoMethod;
|
|
38
|
+
auth: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare class ApiUserFindById extends ApiCall<{
|
|
41
|
+
id: string;
|
|
42
|
+
}, UserResponseDto> {
|
|
43
|
+
path: string;
|
|
44
|
+
method: MoMethod;
|
|
45
|
+
auth: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare class ApiUserUpdate extends ApiCall<UpdateUserDto, UserResponseDto> {
|
|
48
|
+
path: string;
|
|
49
|
+
method: MoMethod;
|
|
50
|
+
auth: boolean;
|
|
51
|
+
}
|
|
52
|
+
export declare class ApiUserDelete extends ApiCall<{
|
|
53
|
+
id: string;
|
|
54
|
+
}, any> {
|
|
55
|
+
path: string;
|
|
56
|
+
method: MoMethod;
|
|
57
|
+
auth: boolean;
|
|
58
|
+
}
|
|
59
|
+
export declare class ApiUserUpdateStatus extends ApiCall<{
|
|
60
|
+
id: string;
|
|
61
|
+
status: number;
|
|
62
|
+
}, UserResponseDto> {
|
|
63
|
+
path: string;
|
|
64
|
+
method: MoMethod;
|
|
65
|
+
auth: boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare class ApiUserResetPassword extends ApiCall<{
|
|
68
|
+
id: string;
|
|
69
|
+
password: string;
|
|
70
|
+
}, any> {
|
|
71
|
+
path: string;
|
|
72
|
+
method: MoMethod;
|
|
73
|
+
auth: boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare class ApiRoleCreate extends ApiCall<CreateRoleDto, RoleResponseDto> {
|
|
76
|
+
path: string;
|
|
77
|
+
method: MoMethod;
|
|
78
|
+
auth: boolean;
|
|
79
|
+
}
|
|
80
|
+
export declare class ApiRoleFindAll extends ApiCall<{
|
|
81
|
+
roleStatus?: number;
|
|
82
|
+
roleName?: string;
|
|
83
|
+
roleCode?: string;
|
|
84
|
+
pageSize?: number;
|
|
85
|
+
page?: number;
|
|
86
|
+
}, any> {
|
|
87
|
+
path: string;
|
|
88
|
+
method: MoMethod;
|
|
89
|
+
auth: boolean;
|
|
90
|
+
}
|
|
91
|
+
export declare class ApiRoleFindById extends ApiCall<{
|
|
92
|
+
id: string;
|
|
93
|
+
}, RoleResponseDto> {
|
|
94
|
+
path: string;
|
|
95
|
+
method: MoMethod;
|
|
96
|
+
auth: boolean;
|
|
97
|
+
}
|
|
98
|
+
export declare class ApiRoleUpdate extends ApiCall<UpdateRoleDto, RoleResponseDto> {
|
|
99
|
+
path: string;
|
|
100
|
+
method: MoMethod;
|
|
101
|
+
auth: boolean;
|
|
102
|
+
}
|
|
103
|
+
export declare class ApiRoleDelete extends ApiCall<{
|
|
104
|
+
id: string;
|
|
105
|
+
}, any> {
|
|
106
|
+
path: string;
|
|
107
|
+
method: MoMethod;
|
|
108
|
+
auth: boolean;
|
|
109
|
+
}
|
|
110
|
+
export declare class ApiRoleAssignPermissions extends ApiCall<AssignPermissionsDto, any> {
|
|
111
|
+
path: string;
|
|
112
|
+
method: MoMethod;
|
|
113
|
+
auth: boolean;
|
|
114
|
+
}
|
|
115
|
+
export declare class ApiRoleGetRolePermissions extends ApiCall<{
|
|
116
|
+
id: string;
|
|
117
|
+
}, any> {
|
|
118
|
+
path: string;
|
|
119
|
+
method: MoMethod;
|
|
120
|
+
auth: boolean;
|
|
121
|
+
}
|
|
122
|
+
export declare class ApiPermissionCreate extends ApiCall<CreatePermissionDto, PermissionResponseDto> {
|
|
123
|
+
path: string;
|
|
124
|
+
method: MoMethod;
|
|
125
|
+
auth: boolean;
|
|
126
|
+
}
|
|
127
|
+
export declare class ApiPermissionFindAll extends ApiCall<{
|
|
128
|
+
permName?: string;
|
|
129
|
+
permCode?: string;
|
|
130
|
+
permissionType?: number;
|
|
131
|
+
nodeType?: number;
|
|
132
|
+
parentId?: string;
|
|
133
|
+
page?: number;
|
|
134
|
+
pageSize?: number;
|
|
135
|
+
}, any> {
|
|
136
|
+
path: string;
|
|
137
|
+
method: MoMethod;
|
|
138
|
+
auth: boolean;
|
|
139
|
+
}
|
|
140
|
+
export declare class ApiPermissionFindAllTree extends ApiCall<{}, Array<PermissionResponseDto>> {
|
|
141
|
+
path: string;
|
|
142
|
+
method: MoMethod;
|
|
143
|
+
auth: boolean;
|
|
144
|
+
}
|
|
145
|
+
export declare class ApiPermissionGetPermissionTree extends ApiCall<{
|
|
146
|
+
parentId?: string;
|
|
147
|
+
}, Array<PermissionResponseDto>> {
|
|
148
|
+
path: string;
|
|
149
|
+
method: MoMethod;
|
|
150
|
+
auth: boolean;
|
|
151
|
+
}
|
|
152
|
+
export declare class ApiPermissionFindById extends ApiCall<{
|
|
153
|
+
id: string;
|
|
154
|
+
}, PermissionResponseDto> {
|
|
155
|
+
path: string;
|
|
156
|
+
method: MoMethod;
|
|
157
|
+
auth: boolean;
|
|
158
|
+
}
|
|
159
|
+
export declare class ApiPermissionUpdate extends ApiCall<UpdatePermissionDto, PermissionResponseDto> {
|
|
160
|
+
path: string;
|
|
161
|
+
method: MoMethod;
|
|
162
|
+
auth: boolean;
|
|
163
|
+
}
|
|
164
|
+
export declare class ApiPermissionDelete extends ApiCall<{
|
|
165
|
+
id: string;
|
|
166
|
+
}, any> {
|
|
167
|
+
path: string;
|
|
168
|
+
method: MoMethod;
|
|
169
|
+
auth: boolean;
|
|
170
|
+
}
|
|
171
|
+
export declare class ApiPermissionBatchCreate extends ApiCall<{}, Array<PermissionResponseDto>> {
|
|
172
|
+
path: string;
|
|
173
|
+
method: MoMethod;
|
|
174
|
+
auth: boolean;
|
|
175
|
+
}
|
|
176
|
+
export declare class ApiAppTypeCreate extends ApiCall<CreateAppTypeDto, AppTypeResponseDto> {
|
|
177
|
+
path: string;
|
|
178
|
+
method: MoMethod;
|
|
179
|
+
auth: boolean;
|
|
180
|
+
}
|
|
181
|
+
export declare class ApiAppTypeFindAll extends ApiCall<{
|
|
182
|
+
page?: number;
|
|
183
|
+
pageSize?: number;
|
|
184
|
+
sortField?: string;
|
|
185
|
+
sortOrder?: string;
|
|
186
|
+
typeName?: string;
|
|
187
|
+
typeCode?: string;
|
|
188
|
+
typeStatus?: number;
|
|
189
|
+
}, {
|
|
190
|
+
list?: Array<AppTypeResponseDto>;
|
|
191
|
+
total?: number;
|
|
192
|
+
page?: number;
|
|
193
|
+
pageSize?: number;
|
|
194
|
+
totalPages?: number;
|
|
195
|
+
hasNext?: boolean;
|
|
196
|
+
hasPrev?: boolean;
|
|
197
|
+
}> {
|
|
198
|
+
path: string;
|
|
199
|
+
method: MoMethod;
|
|
200
|
+
auth: boolean;
|
|
201
|
+
}
|
|
202
|
+
export declare class ApiAppTypeFindAllList extends ApiCall<{}, Array<AppTypeResponseDto>> {
|
|
203
|
+
path: string;
|
|
204
|
+
method: MoMethod;
|
|
205
|
+
auth: boolean;
|
|
206
|
+
}
|
|
207
|
+
export declare class ApiAppTypeFindById extends ApiCall<{
|
|
208
|
+
id: string;
|
|
209
|
+
}, AppTypeResponseDto> {
|
|
210
|
+
path: string;
|
|
211
|
+
method: MoMethod;
|
|
212
|
+
auth: boolean;
|
|
213
|
+
}
|
|
214
|
+
export declare class ApiAppTypeUpdate extends ApiCall<UpdateAppTypeDto, AppTypeResponseDto> {
|
|
215
|
+
path: string;
|
|
216
|
+
method: MoMethod;
|
|
217
|
+
auth: boolean;
|
|
218
|
+
}
|
|
219
|
+
export declare class ApiAppTypeDelete extends ApiCall<{
|
|
220
|
+
id: string;
|
|
221
|
+
}, any> {
|
|
222
|
+
path: string;
|
|
223
|
+
method: MoMethod;
|
|
224
|
+
auth: boolean;
|
|
225
|
+
}
|
|
226
|
+
export declare class ApiAppTypeUpdateStatus extends ApiCall<{
|
|
227
|
+
id: string;
|
|
228
|
+
status: number;
|
|
229
|
+
}, AppTypeResponseDto> {
|
|
230
|
+
path: string;
|
|
231
|
+
method: MoMethod;
|
|
232
|
+
auth: boolean;
|
|
233
|
+
}
|
|
234
|
+
export declare class ApiAppCreate extends ApiCall<CreateAppDto, AppDetailResponseDto> {
|
|
235
|
+
path: string;
|
|
236
|
+
method: MoMethod;
|
|
237
|
+
auth: boolean;
|
|
238
|
+
}
|
|
239
|
+
export declare class ApiAppFindAll extends ApiCall<{
|
|
240
|
+
page?: number;
|
|
241
|
+
pageSize?: number;
|
|
242
|
+
sortField?: string;
|
|
243
|
+
sortOrder?: string;
|
|
244
|
+
appName?: string;
|
|
245
|
+
appCode?: string;
|
|
246
|
+
appTypeId?: string;
|
|
247
|
+
ownerId?: string;
|
|
248
|
+
appStatus?: number;
|
|
249
|
+
}, {
|
|
250
|
+
list?: Array<AppDetailResponseDto>;
|
|
251
|
+
total?: number;
|
|
252
|
+
page?: number;
|
|
253
|
+
pageSize?: number;
|
|
254
|
+
totalPages?: number;
|
|
255
|
+
hasNext?: boolean;
|
|
256
|
+
hasPrev?: boolean;
|
|
257
|
+
}> {
|
|
258
|
+
path: string;
|
|
259
|
+
method: MoMethod;
|
|
260
|
+
auth: boolean;
|
|
261
|
+
}
|
|
262
|
+
export declare class ApiAppFindById extends ApiCall<{
|
|
263
|
+
id: string;
|
|
264
|
+
}, AppDetailResponseDto> {
|
|
265
|
+
path: string;
|
|
266
|
+
method: MoMethod;
|
|
267
|
+
auth: boolean;
|
|
268
|
+
}
|
|
269
|
+
export declare class ApiAppUpdate extends ApiCall<UpdateAppDto, AppDetailResponseDto> {
|
|
270
|
+
path: string;
|
|
271
|
+
method: MoMethod;
|
|
272
|
+
auth: boolean;
|
|
273
|
+
}
|
|
274
|
+
export declare class ApiAppDelete extends ApiCall<{
|
|
275
|
+
id: string;
|
|
276
|
+
}, any> {
|
|
277
|
+
path: string;
|
|
278
|
+
method: MoMethod;
|
|
279
|
+
auth: boolean;
|
|
280
|
+
}
|
|
281
|
+
export declare class ApiAppChangeOwner extends ApiCall<{
|
|
282
|
+
id: string;
|
|
283
|
+
ownerId: string;
|
|
284
|
+
}, AppDetailResponseDto> {
|
|
285
|
+
path: string;
|
|
286
|
+
method: MoMethod;
|
|
287
|
+
auth: boolean;
|
|
288
|
+
}
|
|
289
|
+
export declare class ApiAppUpdateStatus extends ApiCall<{
|
|
290
|
+
id: string;
|
|
291
|
+
status: number;
|
|
292
|
+
}, AppDetailResponseDto> {
|
|
293
|
+
path: string;
|
|
294
|
+
method: MoMethod;
|
|
295
|
+
auth: boolean;
|
|
296
|
+
}
|
|
297
|
+
export declare class ApiMemberAddMember extends ApiCall<AddMemberDto, any> {
|
|
298
|
+
path: string;
|
|
299
|
+
method: MoMethod;
|
|
300
|
+
auth: boolean;
|
|
301
|
+
}
|
|
302
|
+
export declare class ApiMemberGetMembers extends ApiCall<{
|
|
303
|
+
appId: string;
|
|
304
|
+
}, Array<MemberResponseDto>> {
|
|
305
|
+
path: string;
|
|
306
|
+
method: MoMethod;
|
|
307
|
+
auth: boolean;
|
|
308
|
+
}
|
|
309
|
+
export declare class ApiMemberUpdateRoles extends ApiCall<UpdateMemberRolesDto, any> {
|
|
310
|
+
path: string;
|
|
311
|
+
method: MoMethod;
|
|
312
|
+
auth: boolean;
|
|
313
|
+
}
|
|
314
|
+
export declare class ApiMemberRemoveMember extends ApiCall<{
|
|
315
|
+
appId: string;
|
|
316
|
+
userId: string;
|
|
317
|
+
}, any> {
|
|
318
|
+
path: string;
|
|
319
|
+
method: MoMethod;
|
|
320
|
+
auth: boolean;
|
|
321
|
+
}
|
|
322
|
+
export declare class ApiMemberGetAvailableRoles extends ApiCall<{
|
|
323
|
+
appId: string;
|
|
324
|
+
}, Array<AvailableRoleDto>> {
|
|
325
|
+
path: string;
|
|
326
|
+
method: MoMethod;
|
|
327
|
+
auth: boolean;
|
|
328
|
+
}
|
|
329
|
+
export declare class ApiAuditLogFindAll extends ApiCall<{
|
|
330
|
+
module?: string;
|
|
331
|
+
event?: string;
|
|
332
|
+
operatorId?: string;
|
|
333
|
+
targetId?: string;
|
|
334
|
+
startTime?: string;
|
|
335
|
+
endTime?: string;
|
|
336
|
+
page?: number;
|
|
337
|
+
pageSize?: number;
|
|
338
|
+
}, any> {
|
|
339
|
+
path: string;
|
|
340
|
+
method: MoMethod;
|
|
341
|
+
auth: boolean;
|
|
342
|
+
}
|
|
343
|
+
export declare class ApiAuditLogFindById extends ApiCall<{
|
|
344
|
+
id: string;
|
|
345
|
+
}, AuditLogResponseDto> {
|
|
346
|
+
path: string;
|
|
347
|
+
method: MoMethod;
|
|
348
|
+
auth: boolean;
|
|
349
|
+
}
|
|
350
|
+
export declare class ApiAuditLogFindByTargetId extends ApiCall<{
|
|
351
|
+
targetId: string;
|
|
352
|
+
}, Array<AuditLogResponseDto>> {
|
|
353
|
+
path: string;
|
|
354
|
+
method: MoMethod;
|
|
355
|
+
auth: boolean;
|
|
356
|
+
}
|
|
357
|
+
export declare class ApiAuditLogFindByOperatorId extends ApiCall<{
|
|
358
|
+
operatorId: string;
|
|
359
|
+
}, Array<AuditLogResponseDto>> {
|
|
360
|
+
path: string;
|
|
361
|
+
method: MoMethod;
|
|
362
|
+
auth: boolean;
|
|
363
|
+
}
|
|
364
|
+
export declare class ApiAuditLogDeleteBeforeDate extends ApiCall<{
|
|
365
|
+
beforeDate: string;
|
|
366
|
+
}, any> {
|
|
367
|
+
path: string;
|
|
368
|
+
method: MoMethod;
|
|
369
|
+
auth: boolean;
|
|
370
|
+
}
|