@etsoo/appscript 1.3.81 → 1.3.83
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/address/AddressRegion.js +1 -1
- package/lib/cjs/business/BusinessTax.js +1 -1
- package/lib/cjs/def/ListItem.d.ts +2 -2
- package/lib/cjs/erp/OrgApi.d.ts +1 -1
- package/lib/mjs/address/AddressRegion.js +2 -1
- package/lib/mjs/business/BusinessTax.js +2 -1
- package/lib/mjs/def/ListItem.d.ts +2 -2
- package/lib/mjs/erp/OrgApi.d.ts +1 -1
- package/package.json +3 -3
- package/src/def/ListItem.ts +2 -2
|
@@ -28,7 +28,6 @@ class AddressRegion {
|
|
|
28
28
|
this.continentId = AddressContinent_1.AddressContinent[continent];
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
exports.AddressRegion = AddressRegion;
|
|
32
31
|
/**
|
|
33
32
|
* CN - China
|
|
34
33
|
*/
|
|
@@ -105,3 +104,4 @@ AddressRegion.all = [
|
|
|
105
104
|
AddressRegion.DE,
|
|
106
105
|
AddressRegion.FR
|
|
107
106
|
];
|
|
107
|
+
exports.AddressRegion = AddressRegion;
|
|
@@ -26,7 +26,6 @@ class BusinessTax {
|
|
|
26
26
|
return 'tax' + this.id + this.name;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
exports.BusinessTax = BusinessTax;
|
|
30
29
|
/**
|
|
31
30
|
* CN
|
|
32
31
|
* Unified Social Credit Code (USCC) / 统一信用代码
|
|
@@ -59,3 +58,4 @@ BusinessTax.all = [
|
|
|
59
58
|
BusinessTax.CA,
|
|
60
59
|
BusinessTax.HK
|
|
61
60
|
];
|
|
61
|
+
exports.BusinessTax = BusinessTax;
|
|
@@ -11,7 +11,7 @@ export type ListItem<T> = {
|
|
|
11
11
|
*/
|
|
12
12
|
icon?: T;
|
|
13
13
|
/**
|
|
14
|
-
* Action, string for URL
|
|
14
|
+
* Action, string for URL, any for state
|
|
15
15
|
*/
|
|
16
|
-
action?: string | (() => PromiseLike<void> | void);
|
|
16
|
+
action?: string | [string, any] | (() => PromiseLike<void> | void);
|
|
17
17
|
};
|
package/lib/cjs/erp/OrgApi.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare class OrgApi extends EntityApi {
|
|
|
54
54
|
* @param payload Payload
|
|
55
55
|
* @returns Result
|
|
56
56
|
*/
|
|
57
|
-
update(data: DataTypes.AddOrEditType<OrgDto, true>, payload?: IdResultPayload): Promise<import("..").IdActionResult
|
|
57
|
+
update(data: DataTypes.AddOrEditType<OrgDto, true>, payload?: IdResultPayload): Promise<import("..").IdActionResult | undefined>;
|
|
58
58
|
/**
|
|
59
59
|
* Read for update
|
|
60
60
|
* @param id Id
|
|
@@ -2,7 +2,7 @@ import { AddressContinent } from './AddressContinent';
|
|
|
2
2
|
/**
|
|
3
3
|
* Address or region
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
class AddressRegion {
|
|
6
6
|
/**
|
|
7
7
|
* Get country or region by id
|
|
8
8
|
* @param id Country id
|
|
@@ -101,3 +101,4 @@ AddressRegion.all = [
|
|
|
101
101
|
AddressRegion.DE,
|
|
102
102
|
AddressRegion.FR
|
|
103
103
|
];
|
|
104
|
+
export { AddressRegion };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Business tax
|
|
3
3
|
* https://imask.js.org/
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
class BusinessTax {
|
|
6
6
|
/**
|
|
7
7
|
* Get country or region by id
|
|
8
8
|
* @param id Country id
|
|
@@ -55,3 +55,4 @@ BusinessTax.all = [
|
|
|
55
55
|
BusinessTax.CA,
|
|
56
56
|
BusinessTax.HK
|
|
57
57
|
];
|
|
58
|
+
export { BusinessTax };
|
|
@@ -11,7 +11,7 @@ export type ListItem<T> = {
|
|
|
11
11
|
*/
|
|
12
12
|
icon?: T;
|
|
13
13
|
/**
|
|
14
|
-
* Action, string for URL
|
|
14
|
+
* Action, string for URL, any for state
|
|
15
15
|
*/
|
|
16
|
-
action?: string | (() => PromiseLike<void> | void);
|
|
16
|
+
action?: string | [string, any] | (() => PromiseLike<void> | void);
|
|
17
17
|
};
|
package/lib/mjs/erp/OrgApi.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare class OrgApi extends EntityApi {
|
|
|
54
54
|
* @param payload Payload
|
|
55
55
|
* @returns Result
|
|
56
56
|
*/
|
|
57
|
-
update(data: DataTypes.AddOrEditType<OrgDto, true>, payload?: IdResultPayload): Promise<import("..").IdActionResult
|
|
57
|
+
update(data: DataTypes.AddOrEditType<OrgDto, true>, payload?: IdResultPayload): Promise<import("..").IdActionResult | undefined>;
|
|
58
58
|
/**
|
|
59
59
|
* Read for update
|
|
60
60
|
* @param id Id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.83",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.24",
|
|
56
56
|
"@etsoo/restclient": "^1.0.87",
|
|
57
|
-
"@etsoo/shared": "^1.1.
|
|
57
|
+
"@etsoo/shared": "^1.1.93",
|
|
58
58
|
"@types/crypto-js": "^4.1.1",
|
|
59
59
|
"crypto-js": "^4.1.1"
|
|
60
60
|
},
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"jest": "^29.5.0",
|
|
69
69
|
"jest-environment-jsdom": "^29.5.0",
|
|
70
70
|
"ts-jest": "^29.0.5",
|
|
71
|
-
"typescript": "^
|
|
71
|
+
"typescript": "^5.0.2"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/src/def/ListItem.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type ListItem<T> = {
|
|
|
13
13
|
icon?: T;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Action, string for URL
|
|
16
|
+
* Action, string for URL, any for state
|
|
17
17
|
*/
|
|
18
|
-
action?: string | (() => PromiseLike<void> | void);
|
|
18
|
+
action?: string | [string, any] | (() => PromiseLike<void> | void);
|
|
19
19
|
};
|