@xezzon/zeroweb-sdk 0.8.5-beta.0

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.

Potentially problematic release.


This version of @xezzon/zeroweb-sdk might be problematic. Click here for more details.

Files changed (65) hide show
  1. package/README.md +91 -0
  2. package/dist/cjs/admin/app.js +22 -0
  3. package/dist/cjs/admin/authn.js +25 -0
  4. package/dist/cjs/admin/authz.js +41 -0
  5. package/dist/cjs/admin/crypto.js +9 -0
  6. package/dist/cjs/admin/dict.js +36 -0
  7. package/dist/cjs/admin/index.js +55 -0
  8. package/dist/cjs/admin/role.js +21 -0
  9. package/dist/cjs/admin/setting.js +31 -0
  10. package/dist/cjs/admin/user.js +9 -0
  11. package/dist/cjs/dev/index.js +20 -0
  12. package/dist/cjs/dev/locale.js +58 -0
  13. package/dist/cjs/file/attachment.js +69 -0
  14. package/dist/cjs/file/index.js +37 -0
  15. package/dist/cjs/file/upload.js +111 -0
  16. package/dist/cjs/index.js +22 -0
  17. package/dist/cjs/metadata/index.js +80 -0
  18. package/dist/cjs/open/index.js +35 -0
  19. package/dist/cjs/open/openapi.js +38 -0
  20. package/dist/cjs/open/subscription.js +39 -0
  21. package/dist/cjs/open/third_party_app.js +49 -0
  22. package/dist/cjs/types.js +2 -0
  23. package/dist/esm/admin/app.js +20 -0
  24. package/dist/esm/admin/authn.js +23 -0
  25. package/dist/esm/admin/authz.js +39 -0
  26. package/dist/esm/admin/crypto.js +7 -0
  27. package/dist/esm/admin/dict.js +34 -0
  28. package/dist/esm/admin/index.js +50 -0
  29. package/dist/esm/admin/role.js +19 -0
  30. package/dist/esm/admin/setting.js +29 -0
  31. package/dist/esm/admin/user.js +7 -0
  32. package/dist/esm/dev/index.js +15 -0
  33. package/dist/esm/dev/locale.js +56 -0
  34. package/dist/esm/file/attachment.js +66 -0
  35. package/dist/esm/file/index.js +30 -0
  36. package/dist/esm/file/upload.js +104 -0
  37. package/dist/esm/index.js +5 -0
  38. package/dist/esm/metadata/index.js +74 -0
  39. package/dist/esm/open/index.js +27 -0
  40. package/dist/esm/open/openapi.js +35 -0
  41. package/dist/esm/open/subscription.js +36 -0
  42. package/dist/esm/open/third_party_app.js +46 -0
  43. package/dist/esm/types.js +1 -0
  44. package/dist/typings/admin/app.d.ts +50 -0
  45. package/dist/typings/admin/authn.d.ts +76 -0
  46. package/dist/typings/admin/authz.d.ts +79 -0
  47. package/dist/typings/admin/crypto.d.ts +26 -0
  48. package/dist/typings/admin/dict.d.ts +86 -0
  49. package/dist/typings/admin/index.d.ts +51 -0
  50. package/dist/typings/admin/role.d.ts +60 -0
  51. package/dist/typings/admin/setting.d.ts +66 -0
  52. package/dist/typings/admin/user.d.ts +29 -0
  53. package/dist/typings/dev/index.d.ts +16 -0
  54. package/dist/typings/dev/locale.d.ts +142 -0
  55. package/dist/typings/file/attachment.d.ts +149 -0
  56. package/dist/typings/file/index.d.ts +28 -0
  57. package/dist/typings/file/upload.d.ts +15 -0
  58. package/dist/typings/index.d.ts +10 -0
  59. package/dist/typings/metadata/index.d.ts +124 -0
  60. package/dist/typings/open/index.d.ts +28 -0
  61. package/dist/typings/open/openapi.d.ts +67 -0
  62. package/dist/typings/open/subscription.d.ts +63 -0
  63. package/dist/typings/open/third_party_app.d.ts +120 -0
  64. package/dist/typings/types.d.ts +52 -0
  65. package/package.json +34 -0
@@ -0,0 +1,51 @@
1
+ import { InstanceConfig } from "../types";
2
+ declare const _default: (config: InstanceConfig) => {
3
+ /**
4
+ * 拦截器方法
5
+ */
6
+ interceptors: {
7
+ request: import("axios").AxiosInterceptorManager<import("axios").InternalAxiosRequestConfig>;
8
+ response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse>;
9
+ };
10
+ /**
11
+ * 应用管理相关接口
12
+ */
13
+ app: import("./app").AppAPI;
14
+ /**
15
+ * 认证相关接口
16
+ */
17
+ authn: import("./authn").AuthnAPI;
18
+ /**
19
+ * 授权相关接口
20
+ */
21
+ authz: import("./authz").AuthzAPI;
22
+ /**
23
+ * 加密相关接口
24
+ */
25
+ crypto: import("./crypto").CryptoAPI;
26
+ /**
27
+ * 字典相关接口
28
+ */
29
+ dict: import("./dict").DictAPI;
30
+ /**
31
+ * 角色管理接口
32
+ */
33
+ role: import("./role").RoleAPI;
34
+ /**
35
+ * 业务参数管理接口
36
+ */
37
+ setting: import("./setting").SettingAPI;
38
+ /**
39
+ * 用户相关接口
40
+ */
41
+ user: import("./user").UserAPI;
42
+ };
43
+ export default _default;
44
+ export type * from './app';
45
+ export type * from './authn';
46
+ export type * from './authz';
47
+ export type * from './crypto';
48
+ export type * from './dict';
49
+ export type * from './role';
50
+ export type * from './setting';
51
+ export type * from './user';
@@ -0,0 +1,60 @@
1
+ import { HttpClient, Id, PResponse } from "../types";
2
+ /**
3
+ * 角色
4
+ */
5
+ export interface Role {
6
+ /**
7
+ * 角色ID
8
+ */
9
+ id: string;
10
+ /**
11
+ * 角色简码
12
+ */
13
+ code: string;
14
+ /**
15
+ * 角色编码
16
+ */
17
+ value: string;
18
+ /**
19
+ * 角色名称
20
+ */
21
+ name: string;
22
+ /**
23
+ * 是否允许该角色创建下级角色
24
+ */
25
+ inheritable: boolean;
26
+ /**
27
+ * 上级角色
28
+ */
29
+ parentId: string;
30
+ /**
31
+ * 下级角色
32
+ */
33
+ children?: Role[];
34
+ }
35
+ declare type AddRoleReq = Omit<Role, 'id' | 'value'>;
36
+ export interface RoleAPI {
37
+ /**
38
+ * 新增角色
39
+ * @param role 角色信息
40
+ * @returns 角色ID
41
+ */
42
+ addRole: (role: AddRoleReq) => PResponse<Id>;
43
+ /**
44
+ * 查询角色列表
45
+ * @returns 角色列表(树形)
46
+ */
47
+ listAllRole: () => PResponse<Role[]>;
48
+ /**
49
+ * 删除角色
50
+ * @param id 角色ID
51
+ */
52
+ deleteRole: (id: string) => PResponse<void>;
53
+ /**
54
+ * 查询当前登陆人的角色及它们的下一级角色
55
+ * @returns 角色列表
56
+ */
57
+ listMyRole: () => PResponse<Role[]>;
58
+ }
59
+ declare const _default: (client: HttpClient) => RoleAPI;
60
+ export default _default;
@@ -0,0 +1,66 @@
1
+ import { HttpClient, Id, OData, Page, PResponse } from "../types";
2
+ /**
3
+ * 业务参数
4
+ */
5
+ export interface Setting {
6
+ /**
7
+ * 主键
8
+ */
9
+ id: string;
10
+ /**
11
+ * 业务参数标识
12
+ */
13
+ code: string;
14
+ /**
15
+ * 参数约束定义
16
+ * @see {@link https://json-schema.org/specification|JSON Schema}
17
+ */
18
+ schema: string;
19
+ /**
20
+ * 参数值
21
+ */
22
+ value: object;
23
+ /**
24
+ * 更新时间
25
+ */
26
+ updateTime: Date;
27
+ }
28
+ declare type AddSettingReq = Omit<Setting, 'id' | 'updateTime'>;
29
+ declare type UpdateSettingSchemaReq = Omit<Setting, 'code' | 'updateTime'>;
30
+ declare type UpdateSettingValueReq = Omit<Setting, 'code' | 'schema' | 'updateTime'>;
31
+ export interface SettingAPI {
32
+ /**
33
+ * 新增业务参数
34
+ * @param setting 业务参数
35
+ * @returns 业务参数ID
36
+ */
37
+ addSetting: (setting: AddSettingReq) => PResponse<Id>;
38
+ /**
39
+ * 查询业务参数列表
40
+ * @returns 业务参数列表
41
+ */
42
+ listSetting: (odata: OData) => PResponse<Page<Setting>>;
43
+ /**
44
+ * 根据 code 查询业务参数
45
+ * @param code 业务参数标识
46
+ * @returns 业务参数
47
+ */
48
+ querySettingByCode: (code: string) => PResponse<Setting>;
49
+ /**
50
+ * 更新业务参数信息
51
+ * @param setting 业务参数信息
52
+ */
53
+ updateSchema: (setting: UpdateSettingSchemaReq) => PResponse<void>;
54
+ /**
55
+ * 更新业务参数信息
56
+ * @param setting 业务参数信息
57
+ */
58
+ updateValue: (setting: UpdateSettingValueReq) => PResponse<void>;
59
+ /**
60
+ * 删除业务参数
61
+ * @param id 业务参数ID
62
+ */
63
+ deleteSetting: (id: string) => PResponse<void>;
64
+ }
65
+ declare const _default: (client: HttpClient) => SettingAPI;
66
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { HttpClient, Id, PResponse } from "../types";
2
+ export interface User {
3
+ id: string;
4
+ /**
5
+ * 用户名
6
+ */
7
+ username: string;
8
+ /**
9
+ * 昵称
10
+ */
11
+ nickname: string;
12
+ /**
13
+ * 口令
14
+ */
15
+ password: string;
16
+ }
17
+ /**
18
+ * 用户注册请求
19
+ */
20
+ declare type RegisterReq = Omit<User, 'id'>;
21
+ export interface UserAPI {
22
+ /**
23
+ * 用户注册
24
+ * @param user 用户
25
+ */
26
+ register: (user: RegisterReq) => PResponse<Id>;
27
+ }
28
+ declare const _default: ({ request }: HttpClient) => UserAPI;
29
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { InstanceConfig } from "../types";
2
+ declare const _default: (config: InstanceConfig) => {
3
+ /**
4
+ * 拦截器方法
5
+ */
6
+ interceptors: {
7
+ request: import("axios").AxiosInterceptorManager<import("axios").InternalAxiosRequestConfig>;
8
+ response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse>;
9
+ };
10
+ /**
11
+ * 国际化相关接口
12
+ */
13
+ locale: import("./locale").LocaleAPI;
14
+ };
15
+ export default _default;
16
+ export type * from './locale';
@@ -0,0 +1,142 @@
1
+ import { HttpClient, Id, OData, Page, PResponse } from "../types";
2
+ /**
3
+ * 语言
4
+ */
5
+ export interface Language {
6
+ id: string;
7
+ /**
8
+ * 语言标签
9
+ */
10
+ languageTag: string;
11
+ /**
12
+ * 语言描述
13
+ */
14
+ description: string;
15
+ /**
16
+ * 排序号
17
+ * 数值越小,排序越靠前
18
+ */
19
+ ordinal: number;
20
+ /**
21
+ * 启用状态
22
+ */
23
+ enabled: boolean;
24
+ }
25
+ /**
26
+ * 国际化内容
27
+ */
28
+ export interface I18nMessage {
29
+ id: string;
30
+ /**
31
+ * 命名空间
32
+ */
33
+ namespace: string;
34
+ /**
35
+ * 国际化内容
36
+ */
37
+ messageKey: string;
38
+ }
39
+ /**
40
+ * 国际化文本
41
+ */
42
+ export interface Translation {
43
+ id: string;
44
+ /**
45
+ * 命名空间
46
+ */
47
+ namespace: string;
48
+ /**
49
+ * 国际化内容
50
+ */
51
+ messageKey: string;
52
+ /**
53
+ * 语言
54
+ */
55
+ language: string;
56
+ /**
57
+ * 国际化文本
58
+ */
59
+ content: string;
60
+ }
61
+ /**
62
+ * 新增语言
63
+ */
64
+ declare type AddLanguageReq = Omit<Language, 'id'>;
65
+ /**
66
+ * 新增国际化内容
67
+ */
68
+ declare type AddI18nMessageReq = Omit<I18nMessage, 'id'>;
69
+ /**
70
+ * 新增/更新国际化文本
71
+ */
72
+ declare type UpsertTranslationReq = Omit<Translation, 'id'>;
73
+ export interface LocaleAPI {
74
+ /**
75
+ * 新增语言
76
+ * @param language 语言
77
+ */
78
+ addLanguage: (language: AddLanguageReq) => PResponse<Id>;
79
+ /**
80
+ * 查询语言列表
81
+ * @returns 语言列表
82
+ */
83
+ queryLanguageList: () => PResponse<Language[]>;
84
+ /**
85
+ * 更新语言
86
+ * @param language 语言
87
+ */
88
+ updateLanguage: (language: Language) => PResponse<void>;
89
+ /**
90
+ * 删除语言
91
+ * @param id 语言ID
92
+ */
93
+ deleteLanguage: (id: string) => PResponse<void>;
94
+ /**
95
+ * 新增国际化内容
96
+ * @param i18nMessage 国际化内容
97
+ */
98
+ addI18nMessage: (i18nMessage: AddI18nMessageReq) => PResponse<Id>;
99
+ /**
100
+ * 列举国际化内容命名空间
101
+ * @returns 国际化内容命名空间
102
+ */
103
+ listI18nNamespace: () => PResponse<string[]>;
104
+ /**
105
+ * 分页查询国际化内容
106
+ * @param namespace 命名空间
107
+ * @param odata 分页查询参数
108
+ * @returns 国际化内容列表
109
+ */
110
+ queryI18nMessageList: (namespace: string, odata: OData) => PResponse<Page<I18nMessage>>;
111
+ /**
112
+ * 更新国际化内容
113
+ * @param i18nMessage 国际化内容
114
+ */
115
+ updateI18nMessage: (i18nMessage: I18nMessage) => PResponse<void>;
116
+ /**
117
+ * 删除国际化内容
118
+ * @param id 国际化内容ID
119
+ */
120
+ deleteI18nMessage: (id: string) => PResponse<void>;
121
+ /**
122
+ * 查询国际化文本
123
+ * @param namespace 命名空间
124
+ * @param messageKey 国际化内容
125
+ * @returns 语言-国际化内容
126
+ */
127
+ queryTranslation: (namespace: string, messageKey: string) => PResponse<Map<string, string>>;
128
+ /**
129
+ * 新增/更新国际化文本
130
+ * @param translation 国际化文本
131
+ */
132
+ upsertTranslation: (translation: UpsertTranslationReq) => PResponse<Id>;
133
+ /**
134
+ * 加载国际化资源
135
+ * @param language 语言
136
+ * @param namespace 命名空间
137
+ * @returns 国际化内容-国际化文本
138
+ */
139
+ loadTranslation: (language: string, namespace: string) => PResponse<Map<string, string>>;
140
+ }
141
+ declare const _default: (client: HttpClient) => LocaleAPI;
142
+ export default _default;
@@ -0,0 +1,149 @@
1
+ import { HttpClient, PResponse } from "../types";
2
+ import { FileProvider } from "..";
3
+ export declare enum AttachmentStatus {
4
+ UPLOADING = "UPLOADING",
5
+ DONE = "DONE"
6
+ }
7
+ export interface Attachment {
8
+ /**
9
+ * 附件ID
10
+ */
11
+ id: string;
12
+ /**
13
+ * 文件名
14
+ */
15
+ name: string;
16
+ /**
17
+ * 文件摘要
18
+ */
19
+ checksum: string;
20
+ /**
21
+ * 文件大小
22
+ * 单位:字节
23
+ */
24
+ size: number;
25
+ /**
26
+ * MIME类型
27
+ */
28
+ type: string;
29
+ /**
30
+ * 业务类型
31
+ */
32
+ bizType: string;
33
+ /**
34
+ * 业务ID
35
+ */
36
+ bizId: string;
37
+ /**
38
+ * 存储后端
39
+ */
40
+ provider: FileProvider;
41
+ /**
42
+ * 附件状态
43
+ */
44
+ status: AttachmentStatus;
45
+ /**
46
+ * 上传者
47
+ */
48
+ ownerId: string;
49
+ /**
50
+ * 上传时间
51
+ */
52
+ createTime: Date;
53
+ }
54
+ export interface UploadInfo {
55
+ /**
56
+ * 附件ID
57
+ */
58
+ id: string;
59
+ /**
60
+ * 存储后端
61
+ */
62
+ provider: FileProvider;
63
+ /**
64
+ * 分片数量
65
+ */
66
+ partCount: number;
67
+ /**
68
+ * 分片大小。单位 Byte。
69
+ */
70
+ partSize: number;
71
+ }
72
+ /**
73
+ * 上传地址
74
+ */
75
+ export interface UploadAddress {
76
+ /**
77
+ * 分片序号
78
+ */
79
+ partNumber: number;
80
+ /**
81
+ * 上传地址
82
+ */
83
+ endpoint?: string;
84
+ }
85
+ /**
86
+ * 下载地址
87
+ */
88
+ export interface DownloadEndpoint {
89
+ /**
90
+ * 下载地址
91
+ */
92
+ endpoint: string;
93
+ }
94
+ export interface AttachmentAPI {
95
+ /**
96
+ * 新增附件
97
+ * @param file 文件信息
98
+ * @param bizType 业务类型
99
+ * @param bizId 业务ID
100
+ * @returns 文件上传元数据
101
+ */
102
+ addAttachment: (file: File, bizType: string, bizId: string) => PResponse<UploadInfo>;
103
+ /**
104
+ * 获取文件上传元数据
105
+ * @param id 附件ID
106
+ * @param checksum 文件摘要
107
+ * @param fileSize 文件大小
108
+ * @returns 文件上传元数据
109
+ */
110
+ getUploadInfo: (id: string, checksum: string, fileSize: number) => PResponse<UploadInfo>;
111
+ /**
112
+ * 获取上传地址
113
+ * @param id 附件ID
114
+ * @returns 上传地址
115
+ */
116
+ getUploadEndpoint: (id: string) => PResponse<UploadAddress>;
117
+ /**
118
+ * 获取分段上传地址
119
+ * @param id 附件ID
120
+ * @param partNumber 分段序号
121
+ * @returns 上传地址
122
+ */
123
+ getMultipartUploadEndpoint: (id: string, partNumber: number, crc?: string) => PResponse<UploadAddress>;
124
+ /**
125
+ * 文件上传完成后,将其状态变更为已完成
126
+ * @param id 附件ID
127
+ */
128
+ finishUpload: (id: string) => PResponse<void>;
129
+ /**
130
+ * 查询业务关联的附件
131
+ * @param bizType 业务类型
132
+ * @param bizId 业务ID
133
+ * @returns 附件列表
134
+ */
135
+ queryAttachmentByBiz: (bizType: string, bizId: string) => PResponse<Attachment[]>;
136
+ /**
137
+ * 获取下载地址
138
+ * @param id 附件ID
139
+ * @returns 下载地址
140
+ */
141
+ getDownloadEndpoint: (id: string) => PResponse<DownloadEndpoint>;
142
+ /**
143
+ * 删除附件
144
+ * @param id 附件ID
145
+ */
146
+ deleteAttachment: (id: string) => PResponse<void>;
147
+ }
148
+ declare const _default: (client: HttpClient) => AttachmentAPI;
149
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { InstanceConfig } from "../types";
2
+ declare const _default: (config: InstanceConfig) => {
3
+ /**
4
+ * 拦截器方法
5
+ */
6
+ interceptors: {
7
+ request: import("axios").AxiosInterceptorManager<import("axios").InternalAxiosRequestConfig>;
8
+ response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse>;
9
+ };
10
+ /**
11
+ * 附件管理接口
12
+ */
13
+ attachment: import("./attachment").AttachmentAPI;
14
+ /**
15
+ * 文件上传
16
+ * @param file 文件
17
+ * @param bizType 业务类型
18
+ * @param bizId 业务编码
19
+ */
20
+ upload: (file: File, uploadInfo: import("./attachment").UploadInfo) => Promise<import("axios").AxiosResponse<void, any, {}>>;
21
+ };
22
+ export default _default;
23
+ export declare enum FileProvider {
24
+ FS = "FS",
25
+ S3 = "S3"
26
+ }
27
+ export { AttachmentStatus } from './attachment';
28
+ export type * from './attachment';
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from "../types";
2
+ import { AttachmentAPI, UploadInfo } from "./attachment";
3
+ /**
4
+ * 计算文件的校验和
5
+ * @param file 文件
6
+ * @returns 文件的SHA256值
7
+ */
8
+ export declare function checksum(file: File): Promise<File>;
9
+ declare global {
10
+ interface File {
11
+ checksum?: string;
12
+ crc?: string;
13
+ }
14
+ }
15
+ export declare function upload(client: HttpClient, attachmentApi: AttachmentAPI): (file: File, uploadInfo: UploadInfo) => Promise<import("axios").AxiosResponse<void, any, {}>>;
@@ -0,0 +1,10 @@
1
+ export { default as ZerowebMetadataClient, MenuType, ServiceType, } from './metadata';
2
+ export type * from './metadata';
3
+ export { default as ZerowebAdminClient } from './admin';
4
+ export type * from './admin';
5
+ export { default as ZerowebOpenClient, OpenapiStatus, SubscriptionStatus, } from './open';
6
+ export type * from './open';
7
+ export { default as ZerowebFileClient, FileProvider, AttachmentStatus, } from './file';
8
+ export type * from './file';
9
+ export { default as ZerowebDevClient } from './dev';
10
+ export type * from './dev';
@@ -0,0 +1,124 @@
1
+ import { InstanceConfig } from "../types";
2
+ /**
3
+ * 服务类型
4
+ */
5
+ export declare enum ServiceType {
6
+ /**
7
+ * 前端
8
+ */
9
+ CLIENT = "CLIENT",
10
+ /**
11
+ * 后端
12
+ */
13
+ SERVER = "SERVER"
14
+ }
15
+ /**
16
+ * 服务信息
17
+ */
18
+ export interface ServiceInfo {
19
+ /**
20
+ * 服务名称
21
+ */
22
+ name: string;
23
+ /**
24
+ * 服务版本号
25
+ */
26
+ version: string;
27
+ /**
28
+ * 服务类型
29
+ */
30
+ type: ServiceType;
31
+ /**
32
+ * 是否隐藏
33
+ */
34
+ hidden: boolean;
35
+ }
36
+ /**
37
+ * 菜单类型
38
+ */
39
+ export declare enum MenuType {
40
+ /**
41
+ * 路由
42
+ */
43
+ ROUTE = "ROUTE",
44
+ /**
45
+ * 外部链接。
46
+ * 点击后会打开一个新的标签页
47
+ */
48
+ EXTERNAL_LINK = "EXTERNAL_LINK",
49
+ /**
50
+ * 嵌入页面。
51
+ * 会在当前页面嵌入一个外部网页。
52
+ */
53
+ EMBEDDED = "EMBEDDED",
54
+ /**
55
+ * 接口权限
56
+ * 路径格式为 `resource:operation`,operation 通常为 `read`(可省略)、`write` 等。
57
+ */
58
+ PERMISSION = "PERMISSION",
59
+ /**
60
+ * 资源权限
61
+ * 路径格式为 `resource:#:operation`,operation 通常为 `read`(可省略)、`write` 等。
62
+ */
63
+ GROUP_PERMISSION = "GROUP_PERMISSION"
64
+ }
65
+ /**
66
+ * 资源信息
67
+ */
68
+ export interface MenuInfo {
69
+ /**
70
+ * 资源类型
71
+ */
72
+ type: MenuType;
73
+ /**
74
+ * 资源路径
75
+ */
76
+ path: string;
77
+ /**
78
+ * 访问资源所需要的权限
79
+ * 取并集,即资源必须满足所列出的所有权限
80
+ */
81
+ permissions: string[];
82
+ /**
83
+ * 菜单名称
84
+ */
85
+ name?: string;
86
+ /**
87
+ * 自定义菜单的国际化
88
+ * 默认为 path
89
+ */
90
+ locale?: string;
91
+ /**
92
+ * 不在菜单中展示
93
+ */
94
+ hideInMenu?: boolean;
95
+ /**
96
+ * 组件路径或嵌入页面的链接
97
+ */
98
+ route?: string;
99
+ /**
100
+ * 指定布局的路径
101
+ * 默认为'/'
102
+ */
103
+ layout?: string;
104
+ }
105
+ declare const _default: (config: InstanceConfig) => {
106
+ /**
107
+ * 拦截器方法
108
+ */
109
+ interceptors: {
110
+ request: import("axios").AxiosInterceptorManager<import("axios").InternalAxiosRequestConfig>;
111
+ response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse>;
112
+ };
113
+ /**
114
+ * 获取服务信息
115
+ * @returns 服务信息
116
+ */
117
+ loadServiceInfo(): Promise<import("axios").AxiosResponse<ServiceInfo, any, {}>>;
118
+ /**
119
+ * 获取菜单信息
120
+ * @returns 菜单信息
121
+ */
122
+ loadResourceInfo(): Promise<import("axios").AxiosResponse<MenuInfo[], any, {}>>;
123
+ };
124
+ export default _default;