@etsoo/appscript 1.6.24 → 1.6.26
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/api/dto/ResultPayload.d.ts +4 -0
- package/lib/cjs/app/IdentityType.d.ts +6 -16
- package/lib/cjs/app/IdentityType.js +6 -16
- package/lib/mjs/api/dto/ResultPayload.d.ts +4 -0
- package/lib/mjs/app/IdentityType.d.ts +6 -16
- package/lib/mjs/app/IdentityType.js +6 -16
- package/package.json +3 -3
- package/src/api/dto/ResultPayload.ts +5 -0
- package/src/app/IdentityType.ts +6 -18
|
@@ -16,6 +16,10 @@ export type StringIdResultPayload = IApiPayload<IdActionResult<string>>;
|
|
|
16
16
|
* Id and message action result payload
|
|
17
17
|
*/
|
|
18
18
|
export type IdMsgResultPayload = IApiPayload<IdMsgActionResult>;
|
|
19
|
+
/**
|
|
20
|
+
* String id and message action result payload
|
|
21
|
+
*/
|
|
22
|
+
export type StringIdMsgResultPayload = IApiPayload<IdMsgActionResult<string>>;
|
|
19
23
|
/**
|
|
20
24
|
* Message action result payload
|
|
21
25
|
*/
|
|
@@ -34,29 +34,19 @@ export declare enum IdentityTypeFlags {
|
|
|
34
34
|
* 客户
|
|
35
35
|
*/
|
|
36
36
|
Customer = 2,
|
|
37
|
-
/**
|
|
38
|
-
* User or customer
|
|
39
|
-
* 用户或客户
|
|
40
|
-
*/
|
|
41
|
-
UserOrCustomer = 3,
|
|
42
37
|
/**
|
|
43
38
|
* Supplier
|
|
44
39
|
* 供应商
|
|
45
40
|
*/
|
|
46
41
|
Supplier = 4,
|
|
47
42
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
UserOrSupplier = 5,
|
|
52
|
-
/**
|
|
53
|
-
* Customer or supplier
|
|
54
|
-
* 客户或供应商
|
|
43
|
+
* Contact
|
|
44
|
+
* 联系人
|
|
55
45
|
*/
|
|
56
|
-
|
|
46
|
+
Contact = 8,
|
|
57
47
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
48
|
+
* Orgnization
|
|
49
|
+
* 机构
|
|
60
50
|
*/
|
|
61
|
-
|
|
51
|
+
Org = 16
|
|
62
52
|
}
|
|
@@ -39,29 +39,19 @@ var IdentityTypeFlags;
|
|
|
39
39
|
* 客户
|
|
40
40
|
*/
|
|
41
41
|
IdentityTypeFlags[IdentityTypeFlags["Customer"] = 2] = "Customer";
|
|
42
|
-
/**
|
|
43
|
-
* User or customer
|
|
44
|
-
* 用户或客户
|
|
45
|
-
*/
|
|
46
|
-
IdentityTypeFlags[IdentityTypeFlags["UserOrCustomer"] = 3] = "UserOrCustomer";
|
|
47
42
|
/**
|
|
48
43
|
* Supplier
|
|
49
44
|
* 供应商
|
|
50
45
|
*/
|
|
51
46
|
IdentityTypeFlags[IdentityTypeFlags["Supplier"] = 4] = "Supplier";
|
|
52
47
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
IdentityTypeFlags[IdentityTypeFlags["UserOrSupplier"] = 5] = "UserOrSupplier";
|
|
57
|
-
/**
|
|
58
|
-
* Customer or supplier
|
|
59
|
-
* 客户或供应商
|
|
48
|
+
* Contact
|
|
49
|
+
* 联系人
|
|
60
50
|
*/
|
|
61
|
-
IdentityTypeFlags[IdentityTypeFlags["
|
|
51
|
+
IdentityTypeFlags[IdentityTypeFlags["Contact"] = 8] = "Contact";
|
|
62
52
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
53
|
+
* Orgnization
|
|
54
|
+
* 机构
|
|
65
55
|
*/
|
|
66
|
-
IdentityTypeFlags[IdentityTypeFlags["
|
|
56
|
+
IdentityTypeFlags[IdentityTypeFlags["Org"] = 16] = "Org";
|
|
67
57
|
})(IdentityTypeFlags || (exports.IdentityTypeFlags = IdentityTypeFlags = {}));
|
|
@@ -16,6 +16,10 @@ export type StringIdResultPayload = IApiPayload<IdActionResult<string>>;
|
|
|
16
16
|
* Id and message action result payload
|
|
17
17
|
*/
|
|
18
18
|
export type IdMsgResultPayload = IApiPayload<IdMsgActionResult>;
|
|
19
|
+
/**
|
|
20
|
+
* String id and message action result payload
|
|
21
|
+
*/
|
|
22
|
+
export type StringIdMsgResultPayload = IApiPayload<IdMsgActionResult<string>>;
|
|
19
23
|
/**
|
|
20
24
|
* Message action result payload
|
|
21
25
|
*/
|
|
@@ -34,29 +34,19 @@ export declare enum IdentityTypeFlags {
|
|
|
34
34
|
* 客户
|
|
35
35
|
*/
|
|
36
36
|
Customer = 2,
|
|
37
|
-
/**
|
|
38
|
-
* User or customer
|
|
39
|
-
* 用户或客户
|
|
40
|
-
*/
|
|
41
|
-
UserOrCustomer = 3,
|
|
42
37
|
/**
|
|
43
38
|
* Supplier
|
|
44
39
|
* 供应商
|
|
45
40
|
*/
|
|
46
41
|
Supplier = 4,
|
|
47
42
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
UserOrSupplier = 5,
|
|
52
|
-
/**
|
|
53
|
-
* Customer or supplier
|
|
54
|
-
* 客户或供应商
|
|
43
|
+
* Contact
|
|
44
|
+
* 联系人
|
|
55
45
|
*/
|
|
56
|
-
|
|
46
|
+
Contact = 8,
|
|
57
47
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
48
|
+
* Orgnization
|
|
49
|
+
* 机构
|
|
60
50
|
*/
|
|
61
|
-
|
|
51
|
+
Org = 16
|
|
62
52
|
}
|
|
@@ -36,29 +36,19 @@ export var IdentityTypeFlags;
|
|
|
36
36
|
* 客户
|
|
37
37
|
*/
|
|
38
38
|
IdentityTypeFlags[IdentityTypeFlags["Customer"] = 2] = "Customer";
|
|
39
|
-
/**
|
|
40
|
-
* User or customer
|
|
41
|
-
* 用户或客户
|
|
42
|
-
*/
|
|
43
|
-
IdentityTypeFlags[IdentityTypeFlags["UserOrCustomer"] = 3] = "UserOrCustomer";
|
|
44
39
|
/**
|
|
45
40
|
* Supplier
|
|
46
41
|
* 供应商
|
|
47
42
|
*/
|
|
48
43
|
IdentityTypeFlags[IdentityTypeFlags["Supplier"] = 4] = "Supplier";
|
|
49
44
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
IdentityTypeFlags[IdentityTypeFlags["UserOrSupplier"] = 5] = "UserOrSupplier";
|
|
54
|
-
/**
|
|
55
|
-
* Customer or supplier
|
|
56
|
-
* 客户或供应商
|
|
45
|
+
* Contact
|
|
46
|
+
* 联系人
|
|
57
47
|
*/
|
|
58
|
-
IdentityTypeFlags[IdentityTypeFlags["
|
|
48
|
+
IdentityTypeFlags[IdentityTypeFlags["Contact"] = 8] = "Contact";
|
|
59
49
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
50
|
+
* Orgnization
|
|
51
|
+
* 机构
|
|
62
52
|
*/
|
|
63
|
-
IdentityTypeFlags[IdentityTypeFlags["
|
|
53
|
+
IdentityTypeFlags[IdentityTypeFlags["Org"] = 16] = "Org";
|
|
64
54
|
})(IdentityTypeFlags || (IdentityTypeFlags = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.26",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@etsoo/notificationbase": "^1.1.60",
|
|
39
39
|
"@etsoo/restclient": "^1.1.27",
|
|
40
|
-
"@etsoo/shared": "^1.2.
|
|
40
|
+
"@etsoo/shared": "^1.2.69",
|
|
41
41
|
"crypto-js": "^4.2.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@babel/preset-env": "^7.26.9",
|
|
48
48
|
"@babel/runtime-corejs3": "^7.27.0",
|
|
49
49
|
"@types/crypto-js": "^4.2.2",
|
|
50
|
-
"@vitejs/plugin-react": "^4.4.
|
|
50
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
51
51
|
"jsdom": "^26.1.0",
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
53
|
"vitest": "^3.1.1"
|
|
@@ -26,6 +26,11 @@ export type StringIdResultPayload = IApiPayload<IdActionResult<string>>;
|
|
|
26
26
|
*/
|
|
27
27
|
export type IdMsgResultPayload = IApiPayload<IdMsgActionResult>;
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* String id and message action result payload
|
|
31
|
+
*/
|
|
32
|
+
export type StringIdMsgResultPayload = IApiPayload<IdMsgActionResult<string>>;
|
|
33
|
+
|
|
29
34
|
/**
|
|
30
35
|
* Message action result payload
|
|
31
36
|
*/
|
package/src/app/IdentityType.ts
CHANGED
|
@@ -39,12 +39,6 @@ export enum IdentityTypeFlags {
|
|
|
39
39
|
*/
|
|
40
40
|
Customer = 2,
|
|
41
41
|
|
|
42
|
-
/**
|
|
43
|
-
* User or customer
|
|
44
|
-
* 用户或客户
|
|
45
|
-
*/
|
|
46
|
-
UserOrCustomer = 3,
|
|
47
|
-
|
|
48
42
|
/**
|
|
49
43
|
* Supplier
|
|
50
44
|
* 供应商
|
|
@@ -52,20 +46,14 @@ export enum IdentityTypeFlags {
|
|
|
52
46
|
Supplier = 4,
|
|
53
47
|
|
|
54
48
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
UserOrSupplier = 5,
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Customer or supplier
|
|
62
|
-
* 客户或供应商
|
|
49
|
+
* Contact
|
|
50
|
+
* 联系人
|
|
63
51
|
*/
|
|
64
|
-
|
|
52
|
+
Contact = 8,
|
|
65
53
|
|
|
66
54
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
55
|
+
* Orgnization
|
|
56
|
+
* 机构
|
|
69
57
|
*/
|
|
70
|
-
|
|
58
|
+
Org = 16
|
|
71
59
|
}
|