@etsoo/smarterp-core 1.1.44 → 1.1.46
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/lib/cjs/CoreApp.d.ts +11 -0
- package/lib/cjs/CoreApp.js +9 -0
- package/lib/cjs/DocumentApi.d.ts +29 -0
- package/lib/cjs/DocumentApi.js +36 -0
- package/lib/cjs/components/document/SystemDocumentTiplist.d.ts +33 -0
- package/lib/cjs/components/document/SystemDocumentTiplist.js +27 -0
- package/lib/cjs/components/index.d.ts +1 -0
- package/lib/cjs/components/index.js +2 -0
- package/lib/cjs/dto/document/SystemDocumentListData.d.ts +16 -0
- package/lib/cjs/dto/document/SystemDocumentListData.js +2 -0
- package/lib/cjs/dto/document/SystemDocumentViewData.d.ts +41 -0
- package/lib/cjs/dto/document/SystemDocumentViewData.js +2 -0
- package/lib/cjs/i18n/en.json +7 -0
- package/lib/cjs/i18n/zh-Hans.json +7 -0
- package/lib/cjs/i18n/zh-Hant.json +7 -0
- package/lib/cjs/index.d.ts +3 -0
- package/lib/cjs/index.js +3 -0
- package/lib/cjs/rq/document/SystemDocumentListRQ.d.ts +17 -0
- package/lib/cjs/rq/document/SystemDocumentListRQ.js +2 -0
- package/lib/mjs/CoreApp.d.ts +11 -0
- package/lib/mjs/CoreApp.js +9 -0
- package/lib/mjs/DocumentApi.d.ts +29 -0
- package/lib/mjs/DocumentApi.js +32 -0
- package/lib/mjs/components/document/SystemDocumentTiplist.d.ts +33 -0
- package/lib/mjs/components/document/SystemDocumentTiplist.js +24 -0
- package/lib/mjs/components/index.d.ts +1 -0
- package/lib/mjs/components/index.js +2 -0
- package/lib/mjs/dto/document/SystemDocumentListData.d.ts +16 -0
- package/lib/mjs/dto/document/SystemDocumentListData.js +1 -0
- package/lib/mjs/dto/document/SystemDocumentViewData.d.ts +41 -0
- package/lib/mjs/dto/document/SystemDocumentViewData.js +1 -0
- package/lib/mjs/i18n/en.json +7 -0
- package/lib/mjs/i18n/zh-Hans.json +7 -0
- package/lib/mjs/i18n/zh-Hant.json +7 -0
- package/lib/mjs/index.d.ts +3 -0
- package/lib/mjs/index.js +3 -0
- package/lib/mjs/rq/document/SystemDocumentListRQ.d.ts +17 -0
- package/lib/mjs/rq/document/SystemDocumentListRQ.js +1 -0
- package/package.json +1 -1
- package/src/CoreApp.ts +15 -0
- package/src/DocumentApi.ts +41 -0
- package/src/components/document/SystemDocumentTiplist.tsx +82 -0
- package/src/components/index.ts +3 -0
- package/src/dto/document/SystemDocumentListData.ts +16 -0
- package/src/dto/document/SystemDocumentViewData.ts +42 -0
- package/src/i18n/en.json +7 -0
- package/src/i18n/zh-Hans.json +7 -0
- package/src/i18n/zh-Hant.json +7 -0
- package/src/index.ts +5 -0
- package/src/rq/document/SystemDocumentListRQ.ts +19 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System document view data
|
|
3
|
+
* 系统文档浏览数据
|
|
4
|
+
*/
|
|
5
|
+
export type SystemDocumentViewData = {
|
|
6
|
+
/**
|
|
7
|
+
* Id
|
|
8
|
+
* 编号
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Kind
|
|
13
|
+
* 类型
|
|
14
|
+
*/
|
|
15
|
+
kind: string;
|
|
16
|
+
/**
|
|
17
|
+
* Title
|
|
18
|
+
* 标题
|
|
19
|
+
*/
|
|
20
|
+
title: string;
|
|
21
|
+
/**
|
|
22
|
+
* Parameters
|
|
23
|
+
* 参数
|
|
24
|
+
*/
|
|
25
|
+
parameters?: unknown;
|
|
26
|
+
/**
|
|
27
|
+
* Template
|
|
28
|
+
* 模板
|
|
29
|
+
*/
|
|
30
|
+
template: string;
|
|
31
|
+
/**
|
|
32
|
+
* Refresh time
|
|
33
|
+
* 刷新时间
|
|
34
|
+
*/
|
|
35
|
+
refreshTime: Date | string;
|
|
36
|
+
/**
|
|
37
|
+
* Cultures
|
|
38
|
+
* 文化
|
|
39
|
+
*/
|
|
40
|
+
cultures?: string[];
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/mjs/i18n/en.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"buy": "Buy",
|
|
26
26
|
"collapseMenu": "Collapse menu",
|
|
27
27
|
"collapseNavMenuAriaLabel": "Collapse navigation menu",
|
|
28
|
+
"cultures": "Cultures",
|
|
28
29
|
"companyNo": "Company No.",
|
|
29
30
|
"completeExecution": "Complete execution",
|
|
30
31
|
"currentOrg": "Current organization",
|
|
@@ -33,11 +34,14 @@
|
|
|
33
34
|
"days": "Days",
|
|
34
35
|
"details": "Details",
|
|
35
36
|
"directReports": "Direct reports",
|
|
37
|
+
"documentPreview": "Document preview",
|
|
38
|
+
"documentTemplates": "Document templates",
|
|
36
39
|
"editAvatar": "Edit avatar",
|
|
37
40
|
"editLogo": "Edit logo",
|
|
38
41
|
"editResource": "Edit resource",
|
|
39
42
|
"expandMenu": "Expand menu",
|
|
40
43
|
"expandNavMenuAriaLabel": "Expand navigation menu",
|
|
44
|
+
"exportDocument": "Export document",
|
|
41
45
|
"externalApis": "External APIs",
|
|
42
46
|
"fileName": "File name",
|
|
43
47
|
"fullName": "Full name",
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
"orgPin": "Org No.",
|
|
76
80
|
"orgs": "Organizations",
|
|
77
81
|
"owner": "Owner",
|
|
82
|
+
"parameters": "Parameters",
|
|
78
83
|
"parentOrg": "Parent org",
|
|
79
84
|
"pin": "ID",
|
|
80
85
|
"preferredName": "Preferred name",
|
|
@@ -114,8 +119,10 @@
|
|
|
114
119
|
"switchToLightModeAriaLabel": "Switch to light mode",
|
|
115
120
|
"switchOrg": "Switch organization",
|
|
116
121
|
"subscribed": "Subscribed",
|
|
122
|
+
"systemTemplate": "System template",
|
|
117
123
|
"target": "Target",
|
|
118
124
|
"targetId": "Target id",
|
|
125
|
+
"template": "Template",
|
|
119
126
|
"years5": ["1 year", "2 years", "3 years", "4 years", "5 years"],
|
|
120
127
|
"uiTypeEmail": "Email",
|
|
121
128
|
"uiTypeMobile": "Mobile",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"buy": "购买",
|
|
26
26
|
"collapseMenu": "折叠菜单",
|
|
27
27
|
"collapseNavMenuAriaLabel": "折叠导航菜单",
|
|
28
|
+
"cultures": "语言/文化",
|
|
28
29
|
"companyNo": "机构编号",
|
|
29
30
|
"completeExecution": "完成执行",
|
|
30
31
|
"currentOrg": "当前机构",
|
|
@@ -33,11 +34,14 @@
|
|
|
33
34
|
"days": "天数",
|
|
34
35
|
"details": "细节",
|
|
35
36
|
"directReports": "直接下属",
|
|
37
|
+
"documentPreview": "文档预览",
|
|
38
|
+
"documentTemplates": "文档模板",
|
|
36
39
|
"editAvatar": "修改头像",
|
|
37
40
|
"editLogo": "修改图标",
|
|
38
41
|
"editResource": "编辑资源",
|
|
39
42
|
"expandMenu": "展开菜单",
|
|
40
43
|
"expandNavMenuAriaLabel": "展开导航菜单",
|
|
44
|
+
"exportDocument": "导出文档",
|
|
41
45
|
"externalApis": "外部接口",
|
|
42
46
|
"fileName": "文件名",
|
|
43
47
|
"fullName": "全称",
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
"orgPin": "机构编号",
|
|
76
80
|
"orgs": "机构",
|
|
77
81
|
"owner": "所有者",
|
|
82
|
+
"parameters": "参数",
|
|
78
83
|
"parentOrg": "上级机构",
|
|
79
84
|
"pin": "身份证号码",
|
|
80
85
|
"preferredName": "首选名称",
|
|
@@ -114,8 +119,10 @@
|
|
|
114
119
|
"switchToLightModeAriaLabel": "切换到浅色模式",
|
|
115
120
|
"switchOrg": "切换机构",
|
|
116
121
|
"subscribed": "已订阅",
|
|
122
|
+
"systemTemplate": "系统模板",
|
|
117
123
|
"target": "目标",
|
|
118
124
|
"targetId": "目标编号",
|
|
125
|
+
"template": "模板",
|
|
119
126
|
"years5": ["1年", "2年", "3年", "4年", "5年"],
|
|
120
127
|
"uiTypeEmail": "电子邮箱",
|
|
121
128
|
"uiTypeMobile": "手机号",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"buy": "購買",
|
|
26
26
|
"collapseMenu": "折疊菜單",
|
|
27
27
|
"collapseNavMenuAriaLabel": "折疊導航菜單",
|
|
28
|
+
"cultures": "語言/文化",
|
|
28
29
|
"companyNo": "機構編號",
|
|
29
30
|
"completeExecution": "完成執行",
|
|
30
31
|
"currentOrg": "當前機構",
|
|
@@ -33,11 +34,14 @@
|
|
|
33
34
|
"days": "天數",
|
|
34
35
|
"details": "細節",
|
|
35
36
|
"directReports": "直接下屬",
|
|
37
|
+
"documentPreview": "文檔預覽",
|
|
38
|
+
"documentTemplates": "文檔模板",
|
|
36
39
|
"editAvatar": "修改頭像",
|
|
37
40
|
"editLogo": "修改圖標",
|
|
38
41
|
"editResource": "編輯資源",
|
|
39
42
|
"expandMenu": "展開菜單",
|
|
40
43
|
"expandNavMenuAriaLabel": "展開導航菜單",
|
|
44
|
+
"exportDocument": "導出文檔",
|
|
41
45
|
"externalApis": "外部接口",
|
|
42
46
|
"fileName": "文件名",
|
|
43
47
|
"fullName": "全稱",
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
"orgPin": "機構編號",
|
|
76
80
|
"orgs": "機構",
|
|
77
81
|
"owner": "所有者",
|
|
82
|
+
"parameters": "參數",
|
|
78
83
|
"parentOrg": "上級機構",
|
|
79
84
|
"pin": "身份證號碼",
|
|
80
85
|
"preferredName": "首選名稱",
|
|
@@ -114,8 +119,10 @@
|
|
|
114
119
|
"switchToLightModeAriaLabel": "切換到淺色模式",
|
|
115
120
|
"switchOrg": "切換機構",
|
|
116
121
|
"subscribed": "已訂閱",
|
|
122
|
+
"systemTemplate": "系統模板",
|
|
117
123
|
"target": "目標",
|
|
118
124
|
"targetId": "目標編號",
|
|
125
|
+
"template": "模板",
|
|
119
126
|
"years5": ["1年", "2年", "3年", "4年", "5年"],
|
|
120
127
|
"uiTypeEmail": "電子郵件",
|
|
121
128
|
"uiTypeMobile": "手機號碼",
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export * from "./dto/app/AppReadDto";
|
|
|
6
6
|
export * from "./dto/app/AppUpdateReadDto";
|
|
7
7
|
export * from "./dto/app/CreateApiKeyData";
|
|
8
8
|
export * from "./dto/authCode/AuthCodeAction";
|
|
9
|
+
export * from "./rq/document/SystemDocumentListRQ";
|
|
10
|
+
export * from "./dto/document/SystemDocumentListData";
|
|
11
|
+
export * from "./dto/document/SystemDocumentViewData";
|
|
9
12
|
export * from "./dto/member/MemberListDto";
|
|
10
13
|
export * from "./dto/member/MemberQueryDto";
|
|
11
14
|
export * from "./dto/member/MemberReadDto";
|
package/lib/mjs/index.js
CHANGED
|
@@ -7,6 +7,9 @@ export * from "./dto/app/AppReadDto";
|
|
|
7
7
|
export * from "./dto/app/AppUpdateReadDto";
|
|
8
8
|
export * from "./dto/app/CreateApiKeyData";
|
|
9
9
|
export * from "./dto/authCode/AuthCodeAction";
|
|
10
|
+
export * from "./rq/document/SystemDocumentListRQ";
|
|
11
|
+
export * from "./dto/document/SystemDocumentListData";
|
|
12
|
+
export * from "./dto/document/SystemDocumentViewData";
|
|
10
13
|
export * from "./dto/member/MemberListDto";
|
|
11
14
|
export * from "./dto/member/MemberQueryDto";
|
|
12
15
|
export * from "./dto/member/MemberReadDto";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QueryRQ } from "@etsoo/appscript";
|
|
2
|
+
/**
|
|
3
|
+
* System Document list request data
|
|
4
|
+
* 系统文档列表请求数据
|
|
5
|
+
*/
|
|
6
|
+
export type SystemDocumentListRQ = QueryRQ<number> & {
|
|
7
|
+
/**
|
|
8
|
+
* Kind
|
|
9
|
+
* 类型
|
|
10
|
+
*/
|
|
11
|
+
kind?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Culture
|
|
14
|
+
* 语言文化
|
|
15
|
+
*/
|
|
16
|
+
culture?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/CoreApp.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
import { AuthCodeApi } from "./AuthCodeApi";
|
|
15
15
|
import { DataTypes, ListType } from "@etsoo/shared";
|
|
16
16
|
import { CoreApiService } from "./dto/org/CoreApiService";
|
|
17
|
+
import { DocumentApi } from "./DocumentApi";
|
|
17
18
|
|
|
18
19
|
type AppData = { id: number; appId?: number; name: string; localName?: string };
|
|
19
20
|
|
|
@@ -37,6 +38,11 @@ export interface ICoreApp {
|
|
|
37
38
|
*/
|
|
38
39
|
readonly authCodeApi: AuthCodeApi;
|
|
39
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Document API
|
|
43
|
+
*/
|
|
44
|
+
readonly documentApi: DocumentApi;
|
|
45
|
+
|
|
40
46
|
/**
|
|
41
47
|
* Member API
|
|
42
48
|
*/
|
|
@@ -161,6 +167,15 @@ export class CoreApp implements ICoreApp {
|
|
|
161
167
|
return (this._authCodeApi ??= new AuthCodeApi(this.app, this.api));
|
|
162
168
|
}
|
|
163
169
|
|
|
170
|
+
private _documentApi?: DocumentApi;
|
|
171
|
+
/**
|
|
172
|
+
* Document API
|
|
173
|
+
* 文档接口
|
|
174
|
+
*/
|
|
175
|
+
get documentApi() {
|
|
176
|
+
return (this._documentApi ??= new DocumentApi(this.app, this.api));
|
|
177
|
+
}
|
|
178
|
+
|
|
164
179
|
private _memberApi?: MemberApi;
|
|
165
180
|
/**
|
|
166
181
|
* Member API
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EntityApi, IApi, IApiPayload, IApp } from "@etsoo/appscript";
|
|
2
|
+
import { SystemDocumentListRQ } from "./rq/document/SystemDocumentListRQ";
|
|
3
|
+
import { SystemDocumentListData } from "./dto/document/SystemDocumentListData";
|
|
4
|
+
import { SystemDocumentViewData } from "./dto/document/SystemDocumentViewData";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Document API
|
|
8
|
+
*/
|
|
9
|
+
export class DocumentApi extends EntityApi {
|
|
10
|
+
/**
|
|
11
|
+
* Constructor
|
|
12
|
+
* @param app Application
|
|
13
|
+
* @param api API
|
|
14
|
+
*/
|
|
15
|
+
constructor(app: IApp, api: IApi = app.api) {
|
|
16
|
+
super("Document", app, api);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* List
|
|
21
|
+
* @param rq Request data
|
|
22
|
+
* @param payload Payload
|
|
23
|
+
* @returns Result
|
|
24
|
+
*/
|
|
25
|
+
list(
|
|
26
|
+
rq: SystemDocumentListRQ,
|
|
27
|
+
payload: IApiPayload<SystemDocumentListData[]>
|
|
28
|
+
) {
|
|
29
|
+
return this.listBase(rq, payload);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Read
|
|
34
|
+
* @param id Id
|
|
35
|
+
* @param payload Payload
|
|
36
|
+
* @returns Result
|
|
37
|
+
*/
|
|
38
|
+
read(id: number, payload?: IApiPayload<SystemDocumentViewData>) {
|
|
39
|
+
return this.readBase(id, payload);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Tiplist, TiplistProps } from "@etsoo/materialui";
|
|
2
|
+
import { useRequiredAppContext } from "../../ICoreServiceApp";
|
|
3
|
+
import { SystemDocumentListData } from "../../dto/document/SystemDocumentListData";
|
|
4
|
+
import { SystemDocumentListRQ } from "../../rq/document/SystemDocumentListRQ";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* System document tiplist properties
|
|
8
|
+
* 系统文档提示列表属性
|
|
9
|
+
*/
|
|
10
|
+
export type SystemDocumentTiplistProps = Omit<
|
|
11
|
+
TiplistProps<SystemDocumentListData, "id">,
|
|
12
|
+
"loadData" | "label" | "name"
|
|
13
|
+
> & {
|
|
14
|
+
/**
|
|
15
|
+
* Label
|
|
16
|
+
*/
|
|
17
|
+
label?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Name
|
|
21
|
+
*/
|
|
22
|
+
name?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Default request data
|
|
26
|
+
*/
|
|
27
|
+
rq?: Partial<SystemDocumentListRQ>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Load data handler
|
|
31
|
+
* @param rq Request data
|
|
32
|
+
*/
|
|
33
|
+
onLoadData?: (rq: SystemDocumentListRQ) => SystemDocumentListRQ;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* System document tiplist
|
|
38
|
+
* 系统文档提示列表
|
|
39
|
+
* @param props Properties
|
|
40
|
+
* @returns Component
|
|
41
|
+
*/
|
|
42
|
+
export function SystemDocumentTiplist(props: SystemDocumentTiplistProps) {
|
|
43
|
+
// App
|
|
44
|
+
const app = useRequiredAppContext();
|
|
45
|
+
|
|
46
|
+
// Destruct
|
|
47
|
+
const {
|
|
48
|
+
fullWidth = true,
|
|
49
|
+
label = app.get("systemTemplate")!,
|
|
50
|
+
maxItems = 10,
|
|
51
|
+
getOptionLabel = (data) => data.title,
|
|
52
|
+
onLoadData = (rq) => rq,
|
|
53
|
+
name = "systemDocumentId",
|
|
54
|
+
rq = { enabled: true },
|
|
55
|
+
...rest
|
|
56
|
+
} = props;
|
|
57
|
+
|
|
58
|
+
// Layout
|
|
59
|
+
return (
|
|
60
|
+
<Tiplist<SystemDocumentListData, "id">
|
|
61
|
+
label={label}
|
|
62
|
+
getOptionLabel={getOptionLabel}
|
|
63
|
+
name={name}
|
|
64
|
+
fullWidth={fullWidth}
|
|
65
|
+
maxItems={maxItems}
|
|
66
|
+
loadData={(keyword, id, maxItems) =>
|
|
67
|
+
app.core.documentApi.list(
|
|
68
|
+
onLoadData({
|
|
69
|
+
...rq,
|
|
70
|
+
keyword,
|
|
71
|
+
id,
|
|
72
|
+
queryPaging: {
|
|
73
|
+
batchSize: maxItems
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
{ showLoading: false, defaultValue: [] }
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
{...rest}
|
|
80
|
+
/>
|
|
81
|
+
);
|
|
82
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -10,6 +10,9 @@ export * from "./app/SearchDays";
|
|
|
10
10
|
export * from "./app/StatusList";
|
|
11
11
|
export * from "./app/UserRoleList";
|
|
12
12
|
|
|
13
|
+
// document
|
|
14
|
+
export * from "./document/SystemDocumentTiplist";
|
|
15
|
+
|
|
13
16
|
// org
|
|
14
17
|
export * from "./org/ButtonApiServices";
|
|
15
18
|
export * from "./org/OrgSwitchPopover";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System document view data
|
|
3
|
+
* 系统文档浏览数据
|
|
4
|
+
*/
|
|
5
|
+
export type SystemDocumentViewData = {
|
|
6
|
+
/**
|
|
7
|
+
* Id
|
|
8
|
+
* 编号
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Kind
|
|
13
|
+
* 类型
|
|
14
|
+
*/
|
|
15
|
+
kind: string;
|
|
16
|
+
/**
|
|
17
|
+
* Title
|
|
18
|
+
* 标题
|
|
19
|
+
*/
|
|
20
|
+
title: string;
|
|
21
|
+
/**
|
|
22
|
+
* Parameters
|
|
23
|
+
* 参数
|
|
24
|
+
*/
|
|
25
|
+
parameters?: unknown;
|
|
26
|
+
/**
|
|
27
|
+
* Template
|
|
28
|
+
* 模板
|
|
29
|
+
*/
|
|
30
|
+
template: string;
|
|
31
|
+
/**
|
|
32
|
+
* Refresh time
|
|
33
|
+
* 刷新时间
|
|
34
|
+
*/
|
|
35
|
+
refreshTime: Date | string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Cultures
|
|
39
|
+
* 文化
|
|
40
|
+
*/
|
|
41
|
+
cultures?: string[];
|
|
42
|
+
};
|
package/src/i18n/en.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"buy": "Buy",
|
|
26
26
|
"collapseMenu": "Collapse menu",
|
|
27
27
|
"collapseNavMenuAriaLabel": "Collapse navigation menu",
|
|
28
|
+
"cultures": "Cultures",
|
|
28
29
|
"companyNo": "Company No.",
|
|
29
30
|
"completeExecution": "Complete execution",
|
|
30
31
|
"currentOrg": "Current organization",
|
|
@@ -33,11 +34,14 @@
|
|
|
33
34
|
"days": "Days",
|
|
34
35
|
"details": "Details",
|
|
35
36
|
"directReports": "Direct reports",
|
|
37
|
+
"documentPreview": "Document preview",
|
|
38
|
+
"documentTemplates": "Document templates",
|
|
36
39
|
"editAvatar": "Edit avatar",
|
|
37
40
|
"editLogo": "Edit logo",
|
|
38
41
|
"editResource": "Edit resource",
|
|
39
42
|
"expandMenu": "Expand menu",
|
|
40
43
|
"expandNavMenuAriaLabel": "Expand navigation menu",
|
|
44
|
+
"exportDocument": "Export document",
|
|
41
45
|
"externalApis": "External APIs",
|
|
42
46
|
"fileName": "File name",
|
|
43
47
|
"fullName": "Full name",
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
"orgPin": "Org No.",
|
|
76
80
|
"orgs": "Organizations",
|
|
77
81
|
"owner": "Owner",
|
|
82
|
+
"parameters": "Parameters",
|
|
78
83
|
"parentOrg": "Parent org",
|
|
79
84
|
"pin": "ID",
|
|
80
85
|
"preferredName": "Preferred name",
|
|
@@ -114,8 +119,10 @@
|
|
|
114
119
|
"switchToLightModeAriaLabel": "Switch to light mode",
|
|
115
120
|
"switchOrg": "Switch organization",
|
|
116
121
|
"subscribed": "Subscribed",
|
|
122
|
+
"systemTemplate": "System template",
|
|
117
123
|
"target": "Target",
|
|
118
124
|
"targetId": "Target id",
|
|
125
|
+
"template": "Template",
|
|
119
126
|
"years5": ["1 year", "2 years", "3 years", "4 years", "5 years"],
|
|
120
127
|
"uiTypeEmail": "Email",
|
|
121
128
|
"uiTypeMobile": "Mobile",
|
package/src/i18n/zh-Hans.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"buy": "购买",
|
|
26
26
|
"collapseMenu": "折叠菜单",
|
|
27
27
|
"collapseNavMenuAriaLabel": "折叠导航菜单",
|
|
28
|
+
"cultures": "语言/文化",
|
|
28
29
|
"companyNo": "机构编号",
|
|
29
30
|
"completeExecution": "完成执行",
|
|
30
31
|
"currentOrg": "当前机构",
|
|
@@ -33,11 +34,14 @@
|
|
|
33
34
|
"days": "天数",
|
|
34
35
|
"details": "细节",
|
|
35
36
|
"directReports": "直接下属",
|
|
37
|
+
"documentPreview": "文档预览",
|
|
38
|
+
"documentTemplates": "文档模板",
|
|
36
39
|
"editAvatar": "修改头像",
|
|
37
40
|
"editLogo": "修改图标",
|
|
38
41
|
"editResource": "编辑资源",
|
|
39
42
|
"expandMenu": "展开菜单",
|
|
40
43
|
"expandNavMenuAriaLabel": "展开导航菜单",
|
|
44
|
+
"exportDocument": "导出文档",
|
|
41
45
|
"externalApis": "外部接口",
|
|
42
46
|
"fileName": "文件名",
|
|
43
47
|
"fullName": "全称",
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
"orgPin": "机构编号",
|
|
76
80
|
"orgs": "机构",
|
|
77
81
|
"owner": "所有者",
|
|
82
|
+
"parameters": "参数",
|
|
78
83
|
"parentOrg": "上级机构",
|
|
79
84
|
"pin": "身份证号码",
|
|
80
85
|
"preferredName": "首选名称",
|
|
@@ -114,8 +119,10 @@
|
|
|
114
119
|
"switchToLightModeAriaLabel": "切换到浅色模式",
|
|
115
120
|
"switchOrg": "切换机构",
|
|
116
121
|
"subscribed": "已订阅",
|
|
122
|
+
"systemTemplate": "系统模板",
|
|
117
123
|
"target": "目标",
|
|
118
124
|
"targetId": "目标编号",
|
|
125
|
+
"template": "模板",
|
|
119
126
|
"years5": ["1年", "2年", "3年", "4年", "5年"],
|
|
120
127
|
"uiTypeEmail": "电子邮箱",
|
|
121
128
|
"uiTypeMobile": "手机号",
|
package/src/i18n/zh-Hant.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"buy": "購買",
|
|
26
26
|
"collapseMenu": "折疊菜單",
|
|
27
27
|
"collapseNavMenuAriaLabel": "折疊導航菜單",
|
|
28
|
+
"cultures": "語言/文化",
|
|
28
29
|
"companyNo": "機構編號",
|
|
29
30
|
"completeExecution": "完成執行",
|
|
30
31
|
"currentOrg": "當前機構",
|
|
@@ -33,11 +34,14 @@
|
|
|
33
34
|
"days": "天數",
|
|
34
35
|
"details": "細節",
|
|
35
36
|
"directReports": "直接下屬",
|
|
37
|
+
"documentPreview": "文檔預覽",
|
|
38
|
+
"documentTemplates": "文檔模板",
|
|
36
39
|
"editAvatar": "修改頭像",
|
|
37
40
|
"editLogo": "修改圖標",
|
|
38
41
|
"editResource": "編輯資源",
|
|
39
42
|
"expandMenu": "展開菜單",
|
|
40
43
|
"expandNavMenuAriaLabel": "展開導航菜單",
|
|
44
|
+
"exportDocument": "導出文檔",
|
|
41
45
|
"externalApis": "外部接口",
|
|
42
46
|
"fileName": "文件名",
|
|
43
47
|
"fullName": "全稱",
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
"orgPin": "機構編號",
|
|
76
80
|
"orgs": "機構",
|
|
77
81
|
"owner": "所有者",
|
|
82
|
+
"parameters": "參數",
|
|
78
83
|
"parentOrg": "上級機構",
|
|
79
84
|
"pin": "身份證號碼",
|
|
80
85
|
"preferredName": "首選名稱",
|
|
@@ -114,8 +119,10 @@
|
|
|
114
119
|
"switchToLightModeAriaLabel": "切換到淺色模式",
|
|
115
120
|
"switchOrg": "切換機構",
|
|
116
121
|
"subscribed": "已訂閱",
|
|
122
|
+
"systemTemplate": "系統模板",
|
|
117
123
|
"target": "目標",
|
|
118
124
|
"targetId": "目標編號",
|
|
125
|
+
"template": "模板",
|
|
119
126
|
"years5": ["1年", "2年", "3年", "4年", "5年"],
|
|
120
127
|
"uiTypeEmail": "電子郵件",
|
|
121
128
|
"uiTypeMobile": "手機號碼",
|
package/src/index.ts
CHANGED
|
@@ -9,6 +9,11 @@ export * from "./dto/app/CreateApiKeyData";
|
|
|
9
9
|
|
|
10
10
|
export * from "./dto/authCode/AuthCodeAction";
|
|
11
11
|
|
|
12
|
+
export * from "./rq/document/SystemDocumentListRQ";
|
|
13
|
+
|
|
14
|
+
export * from "./dto/document/SystemDocumentListData";
|
|
15
|
+
export * from "./dto/document/SystemDocumentViewData";
|
|
16
|
+
|
|
12
17
|
export * from "./dto/member/MemberListDto";
|
|
13
18
|
export * from "./dto/member/MemberQueryDto";
|
|
14
19
|
export * from "./dto/member/MemberReadDto";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QueryRQ } from "@etsoo/appscript";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* System Document list request data
|
|
5
|
+
* 系统文档列表请求数据
|
|
6
|
+
*/
|
|
7
|
+
export type SystemDocumentListRQ = QueryRQ<number> & {
|
|
8
|
+
/**
|
|
9
|
+
* Kind
|
|
10
|
+
* 类型
|
|
11
|
+
*/
|
|
12
|
+
kind?: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Culture
|
|
16
|
+
* 语言文化
|
|
17
|
+
*/
|
|
18
|
+
culture?: string;
|
|
19
|
+
};
|