@etsoo/appscript 1.3.67 → 1.3.69
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/app/CoreApp.d.ts +5 -0
- package/lib/cjs/app/CoreApp.js +8 -0
- package/lib/cjs/app/IApp.d.ts +5 -0
- package/lib/cjs/business/DataPrivacy.d.ts +13 -0
- package/lib/cjs/business/DataPrivacy.js +41 -0
- package/lib/cjs/i18n/en.json +8 -0
- package/lib/cjs/i18n/zh-Hans.json +8 -0
- package/lib/cjs/i18n/zh-Hant.json +8 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/mjs/app/CoreApp.d.ts +5 -0
- package/lib/mjs/app/CoreApp.js +8 -0
- package/lib/mjs/app/IApp.d.ts +5 -0
- package/lib/mjs/business/DataPrivacy.d.ts +13 -0
- package/lib/mjs/business/DataPrivacy.js +38 -0
- package/lib/mjs/i18n/en.json +8 -0
- package/lib/mjs/i18n/zh-Hans.json +8 -0
- package/lib/mjs/i18n/zh-Hant.json +8 -0
- package/lib/mjs/index.d.ts +1 -0
- package/lib/mjs/index.js +1 -0
- package/package.json +2 -2
- package/src/app/CoreApp.ts +9 -0
- package/src/app/IApp.ts +6 -0
- package/src/business/DataPrivacy.ts +42 -0
- package/src/i18n/en.json +8 -0
- package/src/i18n/zh-Hans.json +8 -0
- package/src/i18n/zh-Hant.json +8 -0
- package/src/index.ts +1 -0
package/lib/cjs/app/CoreApp.d.ts
CHANGED
|
@@ -363,6 +363,11 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
|
|
|
363
363
|
* @returns Cached token
|
|
364
364
|
*/
|
|
365
365
|
getCacheToken(): string | undefined;
|
|
366
|
+
/**
|
|
367
|
+
* Get data privacies
|
|
368
|
+
* @returns Result
|
|
369
|
+
*/
|
|
370
|
+
getDataPrivacies(): ListType[];
|
|
366
371
|
/**
|
|
367
372
|
* Get enum item number id list
|
|
368
373
|
* @param em Enum
|
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -7,6 +7,7 @@ const shared_1 = require("@etsoo/shared");
|
|
|
7
7
|
const crypto_js_1 = require("crypto-js");
|
|
8
8
|
const AddressRegion_1 = require("../address/AddressRegion");
|
|
9
9
|
const BridgeUtils_1 = require("../bridges/BridgeUtils");
|
|
10
|
+
const DataPrivacy_1 = require("../business/DataPrivacy");
|
|
10
11
|
const EntityStatus_1 = require("../business/EntityStatus");
|
|
11
12
|
const ActionResultError_1 = require("../result/ActionResultError");
|
|
12
13
|
const IApp_1 = require("./IApp");
|
|
@@ -890,6 +891,13 @@ class CoreApp {
|
|
|
890
891
|
return this.cachedRefreshToken;
|
|
891
892
|
return this.storage.getData(this.fields.headerToken);
|
|
892
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Get data privacies
|
|
896
|
+
* @returns Result
|
|
897
|
+
*/
|
|
898
|
+
getDataPrivacies() {
|
|
899
|
+
return this.getEnumList(DataPrivacy_1.DataPrivacy, 'dataPrivacy');
|
|
900
|
+
}
|
|
893
901
|
/**
|
|
894
902
|
* Get enum item number id list
|
|
895
903
|
* @param em Enum
|
package/lib/cjs/app/IApp.d.ts
CHANGED
|
@@ -299,6 +299,11 @@ export interface IApp {
|
|
|
299
299
|
* @returns Cached token
|
|
300
300
|
*/
|
|
301
301
|
getCacheToken(): string | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* Get data privacies
|
|
304
|
+
* @returns Result
|
|
305
|
+
*/
|
|
306
|
+
getDataPrivacies(): ListType[];
|
|
302
307
|
/**
|
|
303
308
|
* Get enum item number id list
|
|
304
309
|
* @param em Enum
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataPrivacy = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Data privacy
|
|
6
|
+
* 数据隐私
|
|
7
|
+
* @link com.etsoo.CoreFramework.Business.DataPrivacy
|
|
8
|
+
*/
|
|
9
|
+
var DataPrivacy;
|
|
10
|
+
(function (DataPrivacy) {
|
|
11
|
+
/// <summary>
|
|
12
|
+
/// Public
|
|
13
|
+
/// 完全公开
|
|
14
|
+
/// </summary>
|
|
15
|
+
DataPrivacy[DataPrivacy["Public"] = 0] = "Public";
|
|
16
|
+
/// <summary>
|
|
17
|
+
/// Customer disclosure
|
|
18
|
+
/// 客户可见
|
|
19
|
+
/// </summary>
|
|
20
|
+
DataPrivacy[DataPrivacy["Customer"] = 20] = "Customer";
|
|
21
|
+
/// <summary>
|
|
22
|
+
/// Internal
|
|
23
|
+
/// 内部可见
|
|
24
|
+
/// </summary>
|
|
25
|
+
DataPrivacy[DataPrivacy["Internal"] = 40] = "Internal";
|
|
26
|
+
/// <summary>
|
|
27
|
+
/// Dept disclosure
|
|
28
|
+
/// 部门可见
|
|
29
|
+
/// </summary>
|
|
30
|
+
DataPrivacy[DataPrivacy["Dept"] = 60] = "Dept";
|
|
31
|
+
/// <summary>
|
|
32
|
+
/// Admin disclosure
|
|
33
|
+
/// 管理员可见
|
|
34
|
+
/// </summary>
|
|
35
|
+
DataPrivacy[DataPrivacy["Admin"] = 80] = "Admin";
|
|
36
|
+
/// <summary>
|
|
37
|
+
/// Private
|
|
38
|
+
/// 创建者私有
|
|
39
|
+
/// </summary>
|
|
40
|
+
DataPrivacy[DataPrivacy["Private"] = 100] = "Private";
|
|
41
|
+
})(DataPrivacy = exports.DataPrivacy || (exports.DataPrivacy = {}));
|
package/lib/cjs/i18n/en.json
CHANGED
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "U.S. Dollar",
|
|
41
41
|
"data": "Data",
|
|
42
42
|
"dataComparison": "Data comparison",
|
|
43
|
+
"dataPrivacy": "Data privacy",
|
|
44
|
+
"dataPrivacyAdmin": "Admins",
|
|
45
|
+
"dataPrivacyCustomer": "Customers",
|
|
46
|
+
"dataPrivacyDept": "Dept users",
|
|
47
|
+
"dataPrivacyInternal": "All users",
|
|
48
|
+
"dataPrivacyPrivate": "Creator only",
|
|
49
|
+
"dataPrivacyPublic": "Full public",
|
|
43
50
|
"delete": "Delete",
|
|
44
51
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
45
52
|
"description": "Description",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "No valid data",
|
|
100
107
|
"none": "None yet",
|
|
101
108
|
"noOptions": "No options",
|
|
109
|
+
"noRows": "No data",
|
|
102
110
|
"ok": "OK",
|
|
103
111
|
"oldValue": "Old value",
|
|
104
112
|
"open": "Open",
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "美元",
|
|
41
41
|
"data": "数据",
|
|
42
42
|
"dataComparison": "数据对比",
|
|
43
|
+
"dataPrivacy": "数据隐私",
|
|
44
|
+
"dataPrivacyAdmin": "管理员可见",
|
|
45
|
+
"dataPrivacyCustomer": "客户可见",
|
|
46
|
+
"dataPrivacyDept": "部门可见",
|
|
47
|
+
"dataPrivacyInternal": "所有用户",
|
|
48
|
+
"dataPrivacyPrivate": "创建者私有",
|
|
49
|
+
"dataPrivacyPublic": "完全公开",
|
|
43
50
|
"delete": "删除",
|
|
44
51
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
45
52
|
"description": "描述",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "没有有效数据",
|
|
100
107
|
"none": "暂时没有",
|
|
101
108
|
"noOptions": "没有选项",
|
|
109
|
+
"noRows": "没有数据",
|
|
102
110
|
"ok": "确定",
|
|
103
111
|
"oldValue": "旧值",
|
|
104
112
|
"open": "打开",
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "美元",
|
|
41
41
|
"data": "數據",
|
|
42
42
|
"dataComparison": "數據對比",
|
|
43
|
+
"dataPrivacy": "數據隱私",
|
|
44
|
+
"dataPrivacyAdmin": "管理員可見",
|
|
45
|
+
"dataPrivacyCustomer": "客戶可見",
|
|
46
|
+
"dataPrivacyDept": "部門可見",
|
|
47
|
+
"dataPrivacyInternal": "所有用户",
|
|
48
|
+
"dataPrivacyPrivate": "創建者私有",
|
|
49
|
+
"dataPrivacyPublic": "完全公開",
|
|
43
50
|
"delete": "刪除",
|
|
44
51
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
45
52
|
"description": "描述",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "沒有有效數據",
|
|
100
107
|
"none": "暫時沒有",
|
|
101
108
|
"noOptions": "沒有選項",
|
|
109
|
+
"noRows": "沒有數據",
|
|
102
110
|
"ok": "確定",
|
|
103
111
|
"oldValue": "舊值",
|
|
104
112
|
"open": "打開",
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './bridges/IBridgeHost';
|
|
|
12
12
|
export * from './business/BusinessTax';
|
|
13
13
|
export * from './business/BusinessUtils';
|
|
14
14
|
export * from './business/Currency';
|
|
15
|
+
export * from './business/DataPrivacy';
|
|
15
16
|
export * from './business/EntityStatus';
|
|
16
17
|
export * from './business/ProductUnit';
|
|
17
18
|
export * from './business/RepeatOption';
|
package/lib/cjs/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./bridges/IBridgeHost"), exports);
|
|
|
33
33
|
__exportStar(require("./business/BusinessTax"), exports);
|
|
34
34
|
__exportStar(require("./business/BusinessUtils"), exports);
|
|
35
35
|
__exportStar(require("./business/Currency"), exports);
|
|
36
|
+
__exportStar(require("./business/DataPrivacy"), exports);
|
|
36
37
|
__exportStar(require("./business/EntityStatus"), exports);
|
|
37
38
|
__exportStar(require("./business/ProductUnit"), exports);
|
|
38
39
|
__exportStar(require("./business/RepeatOption"), exports);
|
package/lib/mjs/app/CoreApp.d.ts
CHANGED
|
@@ -363,6 +363,11 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
|
|
|
363
363
|
* @returns Cached token
|
|
364
364
|
*/
|
|
365
365
|
getCacheToken(): string | undefined;
|
|
366
|
+
/**
|
|
367
|
+
* Get data privacies
|
|
368
|
+
* @returns Result
|
|
369
|
+
*/
|
|
370
|
+
getDataPrivacies(): ListType[];
|
|
366
371
|
/**
|
|
367
372
|
* Get enum item number id list
|
|
368
373
|
* @param em Enum
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -4,6 +4,7 @@ import { DataTypes, DateUtils, DomUtils, NumberUtils, Utils } from '@etsoo/share
|
|
|
4
4
|
import { AES, algo, enc, HmacSHA512, lib, mode, pad, PBKDF2, SHA3 } from 'crypto-js';
|
|
5
5
|
import { AddressRegion } from '../address/AddressRegion';
|
|
6
6
|
import { BridgeUtils } from '../bridges/BridgeUtils';
|
|
7
|
+
import { DataPrivacy } from '../business/DataPrivacy';
|
|
7
8
|
import { EntityStatus } from '../business/EntityStatus';
|
|
8
9
|
import { ActionResultError } from '../result/ActionResultError';
|
|
9
10
|
import { appFields } from './IApp';
|
|
@@ -887,6 +888,13 @@ export class CoreApp {
|
|
|
887
888
|
return this.cachedRefreshToken;
|
|
888
889
|
return this.storage.getData(this.fields.headerToken);
|
|
889
890
|
}
|
|
891
|
+
/**
|
|
892
|
+
* Get data privacies
|
|
893
|
+
* @returns Result
|
|
894
|
+
*/
|
|
895
|
+
getDataPrivacies() {
|
|
896
|
+
return this.getEnumList(DataPrivacy, 'dataPrivacy');
|
|
897
|
+
}
|
|
890
898
|
/**
|
|
891
899
|
* Get enum item number id list
|
|
892
900
|
* @param em Enum
|
package/lib/mjs/app/IApp.d.ts
CHANGED
|
@@ -299,6 +299,11 @@ export interface IApp {
|
|
|
299
299
|
* @returns Cached token
|
|
300
300
|
*/
|
|
301
301
|
getCacheToken(): string | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* Get data privacies
|
|
304
|
+
* @returns Result
|
|
305
|
+
*/
|
|
306
|
+
getDataPrivacies(): ListType[];
|
|
302
307
|
/**
|
|
303
308
|
* Get enum item number id list
|
|
304
309
|
* @param em Enum
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data privacy
|
|
3
|
+
* 数据隐私
|
|
4
|
+
* @link com.etsoo.CoreFramework.Business.DataPrivacy
|
|
5
|
+
*/
|
|
6
|
+
export var DataPrivacy;
|
|
7
|
+
(function (DataPrivacy) {
|
|
8
|
+
/// <summary>
|
|
9
|
+
/// Public
|
|
10
|
+
/// 完全公开
|
|
11
|
+
/// </summary>
|
|
12
|
+
DataPrivacy[DataPrivacy["Public"] = 0] = "Public";
|
|
13
|
+
/// <summary>
|
|
14
|
+
/// Customer disclosure
|
|
15
|
+
/// 客户可见
|
|
16
|
+
/// </summary>
|
|
17
|
+
DataPrivacy[DataPrivacy["Customer"] = 20] = "Customer";
|
|
18
|
+
/// <summary>
|
|
19
|
+
/// Internal
|
|
20
|
+
/// 内部可见
|
|
21
|
+
/// </summary>
|
|
22
|
+
DataPrivacy[DataPrivacy["Internal"] = 40] = "Internal";
|
|
23
|
+
/// <summary>
|
|
24
|
+
/// Dept disclosure
|
|
25
|
+
/// 部门可见
|
|
26
|
+
/// </summary>
|
|
27
|
+
DataPrivacy[DataPrivacy["Dept"] = 60] = "Dept";
|
|
28
|
+
/// <summary>
|
|
29
|
+
/// Admin disclosure
|
|
30
|
+
/// 管理员可见
|
|
31
|
+
/// </summary>
|
|
32
|
+
DataPrivacy[DataPrivacy["Admin"] = 80] = "Admin";
|
|
33
|
+
/// <summary>
|
|
34
|
+
/// Private
|
|
35
|
+
/// 创建者私有
|
|
36
|
+
/// </summary>
|
|
37
|
+
DataPrivacy[DataPrivacy["Private"] = 100] = "Private";
|
|
38
|
+
})(DataPrivacy || (DataPrivacy = {}));
|
package/lib/mjs/i18n/en.json
CHANGED
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "U.S. Dollar",
|
|
41
41
|
"data": "Data",
|
|
42
42
|
"dataComparison": "Data comparison",
|
|
43
|
+
"dataPrivacy": "Data privacy",
|
|
44
|
+
"dataPrivacyAdmin": "Admins",
|
|
45
|
+
"dataPrivacyCustomer": "Customers",
|
|
46
|
+
"dataPrivacyDept": "Dept users",
|
|
47
|
+
"dataPrivacyInternal": "All users",
|
|
48
|
+
"dataPrivacyPrivate": "Creator only",
|
|
49
|
+
"dataPrivacyPublic": "Full public",
|
|
43
50
|
"delete": "Delete",
|
|
44
51
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
45
52
|
"description": "Description",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "No valid data",
|
|
100
107
|
"none": "None yet",
|
|
101
108
|
"noOptions": "No options",
|
|
109
|
+
"noRows": "No data",
|
|
102
110
|
"ok": "OK",
|
|
103
111
|
"oldValue": "Old value",
|
|
104
112
|
"open": "Open",
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "美元",
|
|
41
41
|
"data": "数据",
|
|
42
42
|
"dataComparison": "数据对比",
|
|
43
|
+
"dataPrivacy": "数据隐私",
|
|
44
|
+
"dataPrivacyAdmin": "管理员可见",
|
|
45
|
+
"dataPrivacyCustomer": "客户可见",
|
|
46
|
+
"dataPrivacyDept": "部门可见",
|
|
47
|
+
"dataPrivacyInternal": "所有用户",
|
|
48
|
+
"dataPrivacyPrivate": "创建者私有",
|
|
49
|
+
"dataPrivacyPublic": "完全公开",
|
|
43
50
|
"delete": "删除",
|
|
44
51
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
45
52
|
"description": "描述",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "没有有效数据",
|
|
100
107
|
"none": "暂时没有",
|
|
101
108
|
"noOptions": "没有选项",
|
|
109
|
+
"noRows": "没有数据",
|
|
102
110
|
"ok": "确定",
|
|
103
111
|
"oldValue": "旧值",
|
|
104
112
|
"open": "打开",
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "美元",
|
|
41
41
|
"data": "數據",
|
|
42
42
|
"dataComparison": "數據對比",
|
|
43
|
+
"dataPrivacy": "數據隱私",
|
|
44
|
+
"dataPrivacyAdmin": "管理員可見",
|
|
45
|
+
"dataPrivacyCustomer": "客戶可見",
|
|
46
|
+
"dataPrivacyDept": "部門可見",
|
|
47
|
+
"dataPrivacyInternal": "所有用户",
|
|
48
|
+
"dataPrivacyPrivate": "創建者私有",
|
|
49
|
+
"dataPrivacyPublic": "完全公開",
|
|
43
50
|
"delete": "刪除",
|
|
44
51
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
45
52
|
"description": "描述",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "沒有有效數據",
|
|
100
107
|
"none": "暫時沒有",
|
|
101
108
|
"noOptions": "沒有選項",
|
|
109
|
+
"noRows": "沒有數據",
|
|
102
110
|
"ok": "確定",
|
|
103
111
|
"oldValue": "舊值",
|
|
104
112
|
"open": "打開",
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './bridges/IBridgeHost';
|
|
|
12
12
|
export * from './business/BusinessTax';
|
|
13
13
|
export * from './business/BusinessUtils';
|
|
14
14
|
export * from './business/Currency';
|
|
15
|
+
export * from './business/DataPrivacy';
|
|
15
16
|
export * from './business/EntityStatus';
|
|
16
17
|
export * from './business/ProductUnit';
|
|
17
18
|
export * from './business/RepeatOption';
|
package/lib/mjs/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './bridges/IBridgeHost';
|
|
|
16
16
|
export * from './business/BusinessTax';
|
|
17
17
|
export * from './business/BusinessUtils';
|
|
18
18
|
export * from './business/Currency';
|
|
19
|
+
export * from './business/DataPrivacy';
|
|
19
20
|
export * from './business/EntityStatus';
|
|
20
21
|
export * from './business/ProductUnit';
|
|
21
22
|
export * from './business/RepeatOption';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.69",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"homepage": "https://github.com/ETSOO/AppScript#readme",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.24",
|
|
56
|
-
"@etsoo/restclient": "^1.0.
|
|
56
|
+
"@etsoo/restclient": "^1.0.87",
|
|
57
57
|
"@etsoo/shared": "^1.1.89",
|
|
58
58
|
"@types/crypto-js": "^4.1.1",
|
|
59
59
|
"crypto-js": "^4.1.1"
|
package/src/app/CoreApp.ts
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
} from 'crypto-js';
|
|
32
32
|
import { AddressRegion } from '../address/AddressRegion';
|
|
33
33
|
import { BridgeUtils } from '../bridges/BridgeUtils';
|
|
34
|
+
import { DataPrivacy } from '../business/DataPrivacy';
|
|
34
35
|
import { EntityStatus } from '../business/EntityStatus';
|
|
35
36
|
import { InitCallDto } from '../erp/dto/InitCallDto';
|
|
36
37
|
import { ActionResultError } from '../result/ActionResultError';
|
|
@@ -1218,6 +1219,14 @@ export abstract class CoreApp<
|
|
|
1218
1219
|
return this.storage.getData<string>(this.fields.headerToken);
|
|
1219
1220
|
}
|
|
1220
1221
|
|
|
1222
|
+
/**
|
|
1223
|
+
* Get data privacies
|
|
1224
|
+
* @returns Result
|
|
1225
|
+
*/
|
|
1226
|
+
getDataPrivacies() {
|
|
1227
|
+
return this.getEnumList(DataPrivacy, 'dataPrivacy');
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1221
1230
|
/**
|
|
1222
1231
|
* Get enum item number id list
|
|
1223
1232
|
* @param em Enum
|
package/src/app/IApp.ts
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data privacy
|
|
3
|
+
* 数据隐私
|
|
4
|
+
* @link com.etsoo.CoreFramework.Business.DataPrivacy
|
|
5
|
+
*/
|
|
6
|
+
export enum DataPrivacy {
|
|
7
|
+
/// <summary>
|
|
8
|
+
/// Public
|
|
9
|
+
/// 完全公开
|
|
10
|
+
/// </summary>
|
|
11
|
+
Public = 0,
|
|
12
|
+
|
|
13
|
+
/// <summary>
|
|
14
|
+
/// Customer disclosure
|
|
15
|
+
/// 客户可见
|
|
16
|
+
/// </summary>
|
|
17
|
+
Customer = 20,
|
|
18
|
+
|
|
19
|
+
/// <summary>
|
|
20
|
+
/// Internal
|
|
21
|
+
/// 内部可见
|
|
22
|
+
/// </summary>
|
|
23
|
+
Internal = 40,
|
|
24
|
+
|
|
25
|
+
/// <summary>
|
|
26
|
+
/// Dept disclosure
|
|
27
|
+
/// 部门可见
|
|
28
|
+
/// </summary>
|
|
29
|
+
Dept = 60,
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
/// Admin disclosure
|
|
33
|
+
/// 管理员可见
|
|
34
|
+
/// </summary>
|
|
35
|
+
Admin = 80,
|
|
36
|
+
|
|
37
|
+
/// <summary>
|
|
38
|
+
/// Private
|
|
39
|
+
/// 创建者私有
|
|
40
|
+
/// </summary>
|
|
41
|
+
Private = 100
|
|
42
|
+
}
|
package/src/i18n/en.json
CHANGED
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "U.S. Dollar",
|
|
41
41
|
"data": "Data",
|
|
42
42
|
"dataComparison": "Data comparison",
|
|
43
|
+
"dataPrivacy": "Data privacy",
|
|
44
|
+
"dataPrivacyAdmin": "Admins",
|
|
45
|
+
"dataPrivacyCustomer": "Customers",
|
|
46
|
+
"dataPrivacyDept": "Dept users",
|
|
47
|
+
"dataPrivacyInternal": "All users",
|
|
48
|
+
"dataPrivacyPrivate": "Creator only",
|
|
49
|
+
"dataPrivacyPublic": "Full public",
|
|
43
50
|
"delete": "Delete",
|
|
44
51
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
45
52
|
"description": "Description",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "No valid data",
|
|
100
107
|
"none": "None yet",
|
|
101
108
|
"noOptions": "No options",
|
|
109
|
+
"noRows": "No data",
|
|
102
110
|
"ok": "OK",
|
|
103
111
|
"oldValue": "Old value",
|
|
104
112
|
"open": "Open",
|
package/src/i18n/zh-Hans.json
CHANGED
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "美元",
|
|
41
41
|
"data": "数据",
|
|
42
42
|
"dataComparison": "数据对比",
|
|
43
|
+
"dataPrivacy": "数据隐私",
|
|
44
|
+
"dataPrivacyAdmin": "管理员可见",
|
|
45
|
+
"dataPrivacyCustomer": "客户可见",
|
|
46
|
+
"dataPrivacyDept": "部门可见",
|
|
47
|
+
"dataPrivacyInternal": "所有用户",
|
|
48
|
+
"dataPrivacyPrivate": "创建者私有",
|
|
49
|
+
"dataPrivacyPublic": "完全公开",
|
|
43
50
|
"delete": "删除",
|
|
44
51
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
45
52
|
"description": "描述",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "没有有效数据",
|
|
100
107
|
"none": "暂时没有",
|
|
101
108
|
"noOptions": "没有选项",
|
|
109
|
+
"noRows": "没有数据",
|
|
102
110
|
"ok": "确定",
|
|
103
111
|
"oldValue": "旧值",
|
|
104
112
|
"open": "打开",
|
package/src/i18n/zh-Hant.json
CHANGED
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
"currencyUSD": "美元",
|
|
41
41
|
"data": "數據",
|
|
42
42
|
"dataComparison": "數據對比",
|
|
43
|
+
"dataPrivacy": "數據隱私",
|
|
44
|
+
"dataPrivacyAdmin": "管理員可見",
|
|
45
|
+
"dataPrivacyCustomer": "客戶可見",
|
|
46
|
+
"dataPrivacyDept": "部門可見",
|
|
47
|
+
"dataPrivacyInternal": "所有用户",
|
|
48
|
+
"dataPrivacyPrivate": "創建者私有",
|
|
49
|
+
"dataPrivacyPublic": "完全公開",
|
|
43
50
|
"delete": "刪除",
|
|
44
51
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
45
52
|
"description": "描述",
|
|
@@ -99,6 +106,7 @@
|
|
|
99
106
|
"noData": "沒有有效數據",
|
|
100
107
|
"none": "暫時沒有",
|
|
101
108
|
"noOptions": "沒有選項",
|
|
109
|
+
"noRows": "沒有數據",
|
|
102
110
|
"ok": "確定",
|
|
103
111
|
"oldValue": "舊值",
|
|
104
112
|
"open": "打開",
|
package/src/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './bridges/IBridgeHost';
|
|
|
19
19
|
export * from './business/BusinessTax';
|
|
20
20
|
export * from './business/BusinessUtils';
|
|
21
21
|
export * from './business/Currency';
|
|
22
|
+
export * from './business/DataPrivacy';
|
|
22
23
|
export * from './business/EntityStatus';
|
|
23
24
|
export * from './business/ProductUnit';
|
|
24
25
|
export * from './business/RepeatOption';
|