@etsoo/appscript 1.5.63 → 1.5.64
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/README.md +97 -71
- package/babel.config.json +8 -8
- package/lib/cjs/api/dto/AuditLineDto.d.ts +24 -0
- package/lib/cjs/api/dto/AuditLineDto.js +2 -0
- package/lib/cjs/api/dto/PinDto.d.ts +61 -0
- package/lib/cjs/api/dto/PinDto.js +2 -0
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +2 -0
- package/lib/mjs/api/dto/AuditLineDto.d.ts +24 -0
- package/lib/mjs/api/dto/AuditLineDto.js +1 -0
- package/lib/mjs/api/dto/PinDto.d.ts +61 -0
- package/lib/mjs/api/dto/PinDto.js +1 -0
- package/lib/mjs/index.d.ts +2 -0
- package/lib/mjs/index.js +2 -0
- package/package.json +1 -1
- package/src/api/dto/AuditLineDto.ts +27 -0
- package/src/api/dto/PinDto.ts +71 -0
- package/src/index.ts +2 -0
- package/tsconfig.cjs.json +17 -17
- package/tsconfig.json +17 -17
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# AppScript
|
|
2
|
+
|
|
2
3
|
**TypeScript application scripts shared by different frameworks.**
|
|
3
4
|
|
|
4
5
|
## Installing
|
|
@@ -16,120 +17,145 @@ $ yarn add @etsoo/appscript
|
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
## Client data security framework
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
20
|
+
|
|
21
|
+
- CoreApp, constructor, reads deviceId from session storage
|
|
22
|
+
- restore, when deviceId is empty, try to restore from persisted storage, get the passphrase (encryption / decription) or remove all data keys
|
|
23
|
+
- initCall (everytime the application running), if passphrase is there, just return, otherwise read from serverside
|
|
24
|
+
- device updated will cause validataion failure. Please call initCall(undefined, true);
|
|
23
25
|
|
|
24
26
|
## Structure
|
|
25
27
|
|
|
26
28
|
### address - Address (region) related
|
|
27
29
|
|
|
28
|
-
#### AddressContinent.ts
|
|
29
|
-
|
|
30
|
+
#### AddressContinent.ts
|
|
31
|
+
|
|
32
|
+
- AddressContinent - Continent Enum
|
|
33
|
+
|
|
34
|
+
#### AddressRegion.ts
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
- AddressRegion - Address or region
|
|
36
|
+
- IAddressRegion - Country or region interface
|
|
37
|
+
- AddressRegion - Address or region
|
|
34
38
|
|
|
35
|
-
#### AddressUtils.ts
|
|
36
|
-
|
|
39
|
+
#### AddressUtils.ts
|
|
40
|
+
|
|
41
|
+
- getRegion - Get region from regions and detected region and language
|
|
37
42
|
|
|
38
43
|
### app - Application related
|
|
39
44
|
|
|
40
|
-
#### AppSettings.ts
|
|
41
|
-
|
|
45
|
+
#### AppSettings.ts
|
|
46
|
+
|
|
47
|
+
- IAppSettings - App settings interface
|
|
48
|
+
|
|
49
|
+
#### CoreApp.ts
|
|
42
50
|
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
- CoreApp - Core application
|
|
51
|
+
- IDetectIPCallback - Detect IP callback interface
|
|
52
|
+
- ICoreApp - Core application interface
|
|
53
|
+
- CoreApp - Core application
|
|
47
54
|
|
|
48
|
-
#### ExternalSettings.ts
|
|
49
|
-
- IExternalSettings - External settings items
|
|
50
|
-
- IExternalSettingsHost - External settings host passed by external script
|
|
55
|
+
#### ExternalSettings.ts
|
|
51
56
|
|
|
52
|
-
|
|
53
|
-
-
|
|
57
|
+
- IExternalSettings - External settings items
|
|
58
|
+
- IExternalSettingsHost - External settings host passed by external script
|
|
59
|
+
|
|
60
|
+
#### UserRole.ts
|
|
61
|
+
|
|
62
|
+
- Standard user roles
|
|
54
63
|
|
|
55
64
|
### bridges - Works with Electron
|
|
56
65
|
|
|
57
|
-
#### BridgeUtils.ts
|
|
58
|
-
|
|
66
|
+
#### BridgeUtils.ts
|
|
67
|
+
|
|
68
|
+
- BridgeUtils - Bridge utils
|
|
59
69
|
|
|
60
|
-
#### FlutterHost.ts
|
|
61
|
-
- FlutterHost - Flutter JavaScript Host
|
|
70
|
+
#### FlutterHost.ts
|
|
62
71
|
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
- FlutterHost - Flutter JavaScript Host
|
|
73
|
+
|
|
74
|
+
#### IBridgeHost.ts
|
|
75
|
+
|
|
76
|
+
- IBridgeHost - Bridge host interface
|
|
65
77
|
|
|
66
78
|
### business - Business logics
|
|
67
79
|
|
|
68
|
-
#### BusinessTax.ts
|
|
69
|
-
|
|
70
|
-
-
|
|
80
|
+
#### BusinessTax.ts
|
|
81
|
+
|
|
82
|
+
- IBusinessTax - Business tax interface
|
|
83
|
+
- BusinessTax - Business tax
|
|
71
84
|
|
|
72
|
-
#### BusinessUtils.ts
|
|
73
|
-
- getCurrencies - Get currency collection
|
|
74
|
-
- getEntityStatusLabel - Get entity status's label
|
|
75
|
-
- getEntityStatus - Get entity status collection
|
|
76
|
-
- getUnitLabel - Get product unit's label
|
|
77
|
-
- getUnits - Get all product units
|
|
78
|
-
- getRepeatOptions - Get all repeat options
|
|
85
|
+
#### BusinessUtils.ts
|
|
79
86
|
|
|
80
|
-
|
|
81
|
-
-
|
|
87
|
+
- getCurrencies - Get currency collection
|
|
88
|
+
- getEntityStatusLabel - Get entity status's label
|
|
89
|
+
- getEntityStatus - Get entity status collection
|
|
90
|
+
- getUnitLabel - Get product unit's label
|
|
91
|
+
- getUnits - Get all product units
|
|
92
|
+
- getRepeatOptions - Get all repeat options
|
|
82
93
|
|
|
83
|
-
####
|
|
84
|
-
- ProductUnit - Product units enum
|
|
94
|
+
#### EntityStatus.ts
|
|
85
95
|
|
|
86
|
-
|
|
87
|
-
|
|
96
|
+
- EntityStatus - Standard entity status enum
|
|
97
|
+
|
|
98
|
+
#### ProductUnit.ts
|
|
99
|
+
|
|
100
|
+
- ProductUnit - Product units enum
|
|
101
|
+
|
|
102
|
+
#### RepeatOption.ts
|
|
103
|
+
|
|
104
|
+
- RepeatOption - Repeat options
|
|
88
105
|
|
|
89
106
|
### custom - Custom dynamic component rendering
|
|
90
107
|
|
|
91
|
-
#### CustomFieldData.ts
|
|
92
|
-
|
|
93
|
-
-
|
|
108
|
+
#### CustomFieldData.ts
|
|
109
|
+
|
|
110
|
+
- CustomFieldSpace - Custom field space (12 columns)
|
|
111
|
+
- CustomFieldData - Custom field data
|
|
94
112
|
|
|
95
113
|
### def - Type definition
|
|
96
114
|
|
|
97
|
-
#### ListItem.ts
|
|
98
|
-
|
|
115
|
+
#### ListItem.ts
|
|
116
|
+
|
|
117
|
+
- ListItem - List item definition
|
|
99
118
|
|
|
100
119
|
### i18n - Multiple cultures
|
|
101
120
|
|
|
102
121
|
### result - API action result
|
|
103
122
|
|
|
104
|
-
#### ActionResult.ts
|
|
105
|
-
|
|
123
|
+
#### ActionResult.ts
|
|
124
|
+
|
|
125
|
+
- ActionResult - API call action result extends IActionResult
|
|
106
126
|
|
|
107
|
-
#### ActionResultError.ts
|
|
108
|
-
- ActionResultError - Action result to error type
|
|
127
|
+
#### ActionResultError.ts
|
|
109
128
|
|
|
110
|
-
|
|
111
|
-
- IResultData - Result data interface
|
|
112
|
-
- IdResultData - extends IResultData for 'id' included return data
|
|
113
|
-
- IResultErrors - Result errors interface
|
|
114
|
-
- IActionResult - Action result interface
|
|
115
|
-
- ActionResultId - Action result with id data
|
|
129
|
+
- ActionResultError - Action result to error type
|
|
116
130
|
|
|
117
|
-
####
|
|
118
|
-
|
|
119
|
-
-
|
|
131
|
+
#### IActionResult.ts
|
|
132
|
+
|
|
133
|
+
- IResultData - Result data interface
|
|
134
|
+
- IdResultData - extends IResultData for 'id' included return data
|
|
135
|
+
- IResultErrors - Result errors interface
|
|
136
|
+
- IActionResult - Action result interface
|
|
137
|
+
- ActionResultId - Action result with id data
|
|
138
|
+
|
|
139
|
+
#### InitCallResultData.ts
|
|
140
|
+
|
|
141
|
+
- InitCallResultData - Init call result data
|
|
142
|
+
- InitCallResult - Init call result
|
|
120
143
|
|
|
121
144
|
### erp - SmartERP APIs
|
|
122
145
|
|
|
123
146
|
### state - State management
|
|
124
147
|
|
|
125
|
-
#### Culture.ts
|
|
126
|
-
|
|
127
|
-
-
|
|
148
|
+
#### Culture.ts
|
|
149
|
+
|
|
150
|
+
- ICulture - Culture resources state, simple i18n solution
|
|
151
|
+
- ICultureGet - Culture get delegate
|
|
152
|
+
|
|
153
|
+
#### State.ts
|
|
154
|
+
|
|
155
|
+
- IState - state interface.
|
|
156
|
+
- IAction - state action interface
|
|
128
157
|
|
|
129
|
-
####
|
|
130
|
-
- IState - state interface.
|
|
131
|
-
- IAction - state action interface
|
|
158
|
+
#### User.ts
|
|
132
159
|
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
- IUser - extends IState for user state
|
|
160
|
+
- IUserData - User basic data.
|
|
161
|
+
- IUser - extends IState for user state
|
package/babel.config.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IApiPayload } from "@etsoo/restclient";
|
|
2
|
+
/**
|
|
3
|
+
* Audit line data
|
|
4
|
+
*/
|
|
5
|
+
export type AuditLineDto = {
|
|
6
|
+
id: number;
|
|
7
|
+
creation: Date;
|
|
8
|
+
user: string;
|
|
9
|
+
action: string;
|
|
10
|
+
changes?: AuditLineChangesDto;
|
|
11
|
+
oldData?: Record<string, unknown>;
|
|
12
|
+
newData?: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Audit line changes data
|
|
16
|
+
*/
|
|
17
|
+
export type AuditLineChangesDto = {
|
|
18
|
+
oldData: Record<string, unknown>;
|
|
19
|
+
newData: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Audit line API payload
|
|
23
|
+
*/
|
|
24
|
+
export type AuditLinePayload = IApiPayload<AuditLineDto[]>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pin data
|
|
3
|
+
* 身份证信息
|
|
4
|
+
*/
|
|
5
|
+
export type PinDto = {
|
|
6
|
+
/**
|
|
7
|
+
* Region id
|
|
8
|
+
* 地区编号
|
|
9
|
+
*/
|
|
10
|
+
regionId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* State or province
|
|
13
|
+
* 州 / 省
|
|
14
|
+
*/
|
|
15
|
+
state?: string;
|
|
16
|
+
/**
|
|
17
|
+
* State or province id
|
|
18
|
+
* 州 / 省编号
|
|
19
|
+
*/
|
|
20
|
+
stateId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* City
|
|
23
|
+
* 城市
|
|
24
|
+
*/
|
|
25
|
+
city?: string;
|
|
26
|
+
/**
|
|
27
|
+
* City id
|
|
28
|
+
* 城市编号
|
|
29
|
+
*/
|
|
30
|
+
cityId?: number;
|
|
31
|
+
/**
|
|
32
|
+
* District
|
|
33
|
+
* 区县
|
|
34
|
+
*/
|
|
35
|
+
district?: string;
|
|
36
|
+
/**
|
|
37
|
+
* District id
|
|
38
|
+
* 区县编号
|
|
39
|
+
*/
|
|
40
|
+
districtId?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Merged previous district
|
|
43
|
+
* 合并的原区县
|
|
44
|
+
*/
|
|
45
|
+
mergedDistrict?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Gender
|
|
48
|
+
* 性别
|
|
49
|
+
*/
|
|
50
|
+
gender?: "F" | "M";
|
|
51
|
+
/**
|
|
52
|
+
* Birthday
|
|
53
|
+
* 生日
|
|
54
|
+
*/
|
|
55
|
+
birthday?: string | Date;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the form is legal
|
|
58
|
+
* 是否形式合法
|
|
59
|
+
*/
|
|
60
|
+
valid: boolean;
|
|
61
|
+
};
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -10,9 +10,11 @@ export * from "./address/AddressState";
|
|
|
10
10
|
export * from "./address/AddressUtils";
|
|
11
11
|
export * from "./api/dto/AntiforgeryRequestToken";
|
|
12
12
|
export * from "./api/dto/ApiRefreshTokenDto";
|
|
13
|
+
export * from "./api/dto/AuditLineDto";
|
|
13
14
|
export * from "./api/dto/IdLabelDto";
|
|
14
15
|
export * from "./api/dto/IdLabelPrimaryDto";
|
|
15
16
|
export * from "./api/dto/InitCallDto";
|
|
17
|
+
export * from "./api/dto/PinDto";
|
|
16
18
|
export * from "./api/dto/ResultPayload";
|
|
17
19
|
export * from "./api/rq/ApiRefreshTokenRQ";
|
|
18
20
|
export * from "./api/rq/AuthRequest";
|
package/lib/cjs/index.js
CHANGED
|
@@ -29,9 +29,11 @@ __exportStar(require("./address/AddressUtils"), exports);
|
|
|
29
29
|
// api
|
|
30
30
|
__exportStar(require("./api/dto/AntiforgeryRequestToken"), exports);
|
|
31
31
|
__exportStar(require("./api/dto/ApiRefreshTokenDto"), exports);
|
|
32
|
+
__exportStar(require("./api/dto/AuditLineDto"), exports);
|
|
32
33
|
__exportStar(require("./api/dto/IdLabelDto"), exports);
|
|
33
34
|
__exportStar(require("./api/dto/IdLabelPrimaryDto"), exports);
|
|
34
35
|
__exportStar(require("./api/dto/InitCallDto"), exports);
|
|
36
|
+
__exportStar(require("./api/dto/PinDto"), exports);
|
|
35
37
|
__exportStar(require("./api/dto/ResultPayload"), exports);
|
|
36
38
|
__exportStar(require("./api/rq/ApiRefreshTokenRQ"), exports);
|
|
37
39
|
__exportStar(require("./api/rq/AuthRequest"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IApiPayload } from "@etsoo/restclient";
|
|
2
|
+
/**
|
|
3
|
+
* Audit line data
|
|
4
|
+
*/
|
|
5
|
+
export type AuditLineDto = {
|
|
6
|
+
id: number;
|
|
7
|
+
creation: Date;
|
|
8
|
+
user: string;
|
|
9
|
+
action: string;
|
|
10
|
+
changes?: AuditLineChangesDto;
|
|
11
|
+
oldData?: Record<string, unknown>;
|
|
12
|
+
newData?: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Audit line changes data
|
|
16
|
+
*/
|
|
17
|
+
export type AuditLineChangesDto = {
|
|
18
|
+
oldData: Record<string, unknown>;
|
|
19
|
+
newData: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Audit line API payload
|
|
23
|
+
*/
|
|
24
|
+
export type AuditLinePayload = IApiPayload<AuditLineDto[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pin data
|
|
3
|
+
* 身份证信息
|
|
4
|
+
*/
|
|
5
|
+
export type PinDto = {
|
|
6
|
+
/**
|
|
7
|
+
* Region id
|
|
8
|
+
* 地区编号
|
|
9
|
+
*/
|
|
10
|
+
regionId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* State or province
|
|
13
|
+
* 州 / 省
|
|
14
|
+
*/
|
|
15
|
+
state?: string;
|
|
16
|
+
/**
|
|
17
|
+
* State or province id
|
|
18
|
+
* 州 / 省编号
|
|
19
|
+
*/
|
|
20
|
+
stateId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* City
|
|
23
|
+
* 城市
|
|
24
|
+
*/
|
|
25
|
+
city?: string;
|
|
26
|
+
/**
|
|
27
|
+
* City id
|
|
28
|
+
* 城市编号
|
|
29
|
+
*/
|
|
30
|
+
cityId?: number;
|
|
31
|
+
/**
|
|
32
|
+
* District
|
|
33
|
+
* 区县
|
|
34
|
+
*/
|
|
35
|
+
district?: string;
|
|
36
|
+
/**
|
|
37
|
+
* District id
|
|
38
|
+
* 区县编号
|
|
39
|
+
*/
|
|
40
|
+
districtId?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Merged previous district
|
|
43
|
+
* 合并的原区县
|
|
44
|
+
*/
|
|
45
|
+
mergedDistrict?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Gender
|
|
48
|
+
* 性别
|
|
49
|
+
*/
|
|
50
|
+
gender?: "F" | "M";
|
|
51
|
+
/**
|
|
52
|
+
* Birthday
|
|
53
|
+
* 生日
|
|
54
|
+
*/
|
|
55
|
+
birthday?: string | Date;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the form is legal
|
|
58
|
+
* 是否形式合法
|
|
59
|
+
*/
|
|
60
|
+
valid: boolean;
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -10,9 +10,11 @@ export * from "./address/AddressState";
|
|
|
10
10
|
export * from "./address/AddressUtils";
|
|
11
11
|
export * from "./api/dto/AntiforgeryRequestToken";
|
|
12
12
|
export * from "./api/dto/ApiRefreshTokenDto";
|
|
13
|
+
export * from "./api/dto/AuditLineDto";
|
|
13
14
|
export * from "./api/dto/IdLabelDto";
|
|
14
15
|
export * from "./api/dto/IdLabelPrimaryDto";
|
|
15
16
|
export * from "./api/dto/InitCallDto";
|
|
17
|
+
export * from "./api/dto/PinDto";
|
|
16
18
|
export * from "./api/dto/ResultPayload";
|
|
17
19
|
export * from "./api/rq/ApiRefreshTokenRQ";
|
|
18
20
|
export * from "./api/rq/AuthRequest";
|
package/lib/mjs/index.js
CHANGED
|
@@ -12,9 +12,11 @@ export * from "./address/AddressUtils";
|
|
|
12
12
|
// api
|
|
13
13
|
export * from "./api/dto/AntiforgeryRequestToken";
|
|
14
14
|
export * from "./api/dto/ApiRefreshTokenDto";
|
|
15
|
+
export * from "./api/dto/AuditLineDto";
|
|
15
16
|
export * from "./api/dto/IdLabelDto";
|
|
16
17
|
export * from "./api/dto/IdLabelPrimaryDto";
|
|
17
18
|
export * from "./api/dto/InitCallDto";
|
|
19
|
+
export * from "./api/dto/PinDto";
|
|
18
20
|
export * from "./api/dto/ResultPayload";
|
|
19
21
|
export * from "./api/rq/ApiRefreshTokenRQ";
|
|
20
22
|
export * from "./api/rq/AuthRequest";
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IApiPayload } from "@etsoo/restclient";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Audit line data
|
|
5
|
+
*/
|
|
6
|
+
export type AuditLineDto = {
|
|
7
|
+
id: number;
|
|
8
|
+
creation: Date;
|
|
9
|
+
user: string;
|
|
10
|
+
action: string;
|
|
11
|
+
changes?: AuditLineChangesDto;
|
|
12
|
+
oldData?: Record<string, unknown>;
|
|
13
|
+
newData?: Record<string, unknown>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Audit line changes data
|
|
18
|
+
*/
|
|
19
|
+
export type AuditLineChangesDto = {
|
|
20
|
+
oldData: Record<string, unknown>;
|
|
21
|
+
newData: Record<string, unknown>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Audit line API payload
|
|
26
|
+
*/
|
|
27
|
+
export type AuditLinePayload = IApiPayload<AuditLineDto[]>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pin data
|
|
3
|
+
* 身份证信息
|
|
4
|
+
*/
|
|
5
|
+
export type PinDto = {
|
|
6
|
+
/**
|
|
7
|
+
* Region id
|
|
8
|
+
* 地区编号
|
|
9
|
+
*/
|
|
10
|
+
regionId?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* State or province
|
|
14
|
+
* 州 / 省
|
|
15
|
+
*/
|
|
16
|
+
state?: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* State or province id
|
|
20
|
+
* 州 / 省编号
|
|
21
|
+
*/
|
|
22
|
+
stateId?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* City
|
|
26
|
+
* 城市
|
|
27
|
+
*/
|
|
28
|
+
city?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* City id
|
|
32
|
+
* 城市编号
|
|
33
|
+
*/
|
|
34
|
+
cityId?: number;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* District
|
|
38
|
+
* 区县
|
|
39
|
+
*/
|
|
40
|
+
district?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* District id
|
|
44
|
+
* 区县编号
|
|
45
|
+
*/
|
|
46
|
+
districtId?: number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Merged previous district
|
|
50
|
+
* 合并的原区县
|
|
51
|
+
*/
|
|
52
|
+
mergedDistrict?: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gender
|
|
56
|
+
* 性别
|
|
57
|
+
*/
|
|
58
|
+
gender?: "F" | "M";
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Birthday
|
|
62
|
+
* 生日
|
|
63
|
+
*/
|
|
64
|
+
birthday?: string | Date;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Whether the form is legal
|
|
68
|
+
* 是否形式合法
|
|
69
|
+
*/
|
|
70
|
+
valid: boolean;
|
|
71
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -13,9 +13,11 @@ export * from "./address/AddressUtils";
|
|
|
13
13
|
// api
|
|
14
14
|
export * from "./api/dto/AntiforgeryRequestToken";
|
|
15
15
|
export * from "./api/dto/ApiRefreshTokenDto";
|
|
16
|
+
export * from "./api/dto/AuditLineDto";
|
|
16
17
|
export * from "./api/dto/IdLabelDto";
|
|
17
18
|
export * from "./api/dto/IdLabelPrimaryDto";
|
|
18
19
|
export * from "./api/dto/InitCallDto";
|
|
20
|
+
export * from "./api/dto/PinDto";
|
|
19
21
|
export * from "./api/dto/ResultPayload";
|
|
20
22
|
|
|
21
23
|
export * from "./api/rq/ApiRefreshTokenRQ";
|
package/tsconfig.cjs.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"allowJs": false,
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext",
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"outDir": "./lib/cjs",
|
|
11
|
+
"noEmit": false,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"forceConsistentCasingInFileNames": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["src"]
|
|
19
19
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"allowJs": false,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Node10",
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"outDir": "./lib/mjs",
|
|
11
|
+
"noEmit": false,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"forceConsistentCasingInFileNames": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["src"]
|
|
19
19
|
}
|