@etsoo/appscript 1.3.6 → 1.3.8
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 +2 -14
- package/__tests__/app/CoreApp.ts +14 -14
- package/lib/cjs/address/AddressUtils.d.ts +0 -20
- package/lib/cjs/address/AddressUtils.js +0 -60
- package/lib/cjs/app/CoreApp.d.ts +11 -1
- package/lib/cjs/app/CoreApp.js +18 -2
- package/lib/cjs/app/IApp.d.ts +6 -0
- package/lib/cjs/erp/AddressApi.d.ts +13 -9
- package/lib/cjs/erp/AddressApi.js +23 -25
- package/lib/cjs/erp/BaseApi.d.ts +5 -3
- package/lib/cjs/erp/BaseApi.js +3 -1
- package/lib/cjs/erp/EntityApi.d.ts +78 -0
- package/lib/cjs/erp/EntityApi.js +91 -0
- package/lib/cjs/erp/OrgApi.d.ts +32 -5
- package/lib/cjs/erp/OrgApi.js +30 -12
- package/lib/cjs/erp/PublicApi.js +5 -5
- package/lib/cjs/{dto → erp/dto}/IdLabelDto.d.ts +0 -0
- package/lib/cjs/{dto → erp/dto}/IdLabelDto.js +0 -0
- package/lib/cjs/{dto → erp/dto}/IdLabelPrimaryDto.d.ts +0 -0
- package/lib/cjs/{dto → erp/dto}/IdLabelPrimaryDto.js +0 -0
- package/lib/cjs/{dto → erp/dto}/InitCallDto.d.ts +0 -0
- package/lib/cjs/{dto → erp/dto}/InitCallDto.js +0 -0
- package/lib/cjs/erp/dto/OrgQueryDto.d.ts +21 -0
- package/lib/cjs/{rq/LoginIdRQ.js → erp/dto/OrgQueryDto.js} +0 -0
- package/lib/cjs/erp/rq/OrgListRQ.d.ts +10 -0
- package/lib/cjs/{rq/LoginRQ.js → erp/rq/OrgListRQ.js} +0 -0
- package/lib/cjs/erp/rq/OrgQueryRQ.d.ts +14 -0
- package/lib/cjs/{rq/QueryRQ.js → erp/rq/OrgQueryRQ.js} +0 -0
- package/lib/cjs/erp/rq/OrgRQ.d.ts +25 -0
- package/lib/cjs/{rq/TiplistRQ.js → erp/rq/OrgRQ.js} +0 -0
- package/lib/cjs/{rq → erp/rq}/QueryRQ.d.ts +0 -0
- package/lib/cjs/erp/rq/QueryRQ.js +2 -0
- package/lib/cjs/erp/rq/RefreshTokenRQ.d.ts +29 -0
- package/lib/cjs/erp/rq/RefreshTokenRQ.js +2 -0
- package/lib/cjs/{rq → erp/rq}/TiplistRQ.d.ts +0 -0
- package/lib/cjs/erp/rq/TiplistRQ.js +2 -0
- package/lib/cjs/i18n/en-US.json +20 -0
- package/lib/cjs/i18n/zh-CN.json +20 -0
- package/lib/cjs/i18n/zh-HK.json +20 -0
- package/lib/cjs/index.d.ts +7 -7
- package/lib/cjs/index.js +10 -10
- package/lib/mjs/address/AddressUtils.d.ts +0 -20
- package/lib/mjs/address/AddressUtils.js +0 -37
- package/lib/mjs/app/CoreApp.d.ts +11 -1
- package/lib/mjs/app/CoreApp.js +18 -2
- package/lib/mjs/app/IApp.d.ts +6 -0
- package/lib/mjs/erp/AddressApi.d.ts +13 -9
- package/lib/mjs/erp/AddressApi.js +23 -25
- package/lib/mjs/erp/BaseApi.d.ts +5 -3
- package/lib/mjs/erp/BaseApi.js +3 -1
- package/lib/mjs/erp/EntityApi.d.ts +78 -0
- package/lib/mjs/erp/EntityApi.js +87 -0
- package/lib/mjs/erp/OrgApi.d.ts +32 -5
- package/lib/mjs/erp/OrgApi.js +30 -12
- package/lib/mjs/erp/PublicApi.js +5 -5
- package/lib/mjs/{dto → erp/dto}/IdLabelDto.d.ts +0 -0
- package/lib/mjs/{dto → erp/dto}/IdLabelDto.js +0 -0
- package/lib/mjs/{dto → erp/dto}/IdLabelPrimaryDto.d.ts +0 -0
- package/lib/mjs/{dto → erp/dto}/IdLabelPrimaryDto.js +0 -0
- package/lib/mjs/{dto → erp/dto}/InitCallDto.d.ts +0 -0
- package/lib/mjs/{dto → erp/dto}/InitCallDto.js +0 -0
- package/lib/mjs/erp/dto/OrgQueryDto.d.ts +21 -0
- package/lib/mjs/{rq/LoginIdRQ.js → erp/dto/OrgQueryDto.js} +0 -0
- package/lib/mjs/erp/rq/OrgListRQ.d.ts +10 -0
- package/lib/mjs/{rq/LoginRQ.js → erp/rq/OrgListRQ.js} +0 -0
- package/lib/mjs/erp/rq/OrgQueryRQ.d.ts +14 -0
- package/lib/mjs/{rq/QueryRQ.js → erp/rq/OrgQueryRQ.js} +0 -0
- package/lib/mjs/erp/rq/OrgRQ.d.ts +25 -0
- package/lib/mjs/{rq/TiplistRQ.js → erp/rq/OrgRQ.js} +0 -0
- package/lib/mjs/{rq → erp/rq}/QueryRQ.d.ts +0 -0
- package/lib/mjs/erp/rq/QueryRQ.js +1 -0
- package/lib/mjs/erp/rq/RefreshTokenRQ.d.ts +29 -0
- package/lib/mjs/erp/rq/RefreshTokenRQ.js +1 -0
- package/lib/mjs/{rq → erp/rq}/TiplistRQ.d.ts +0 -0
- package/lib/mjs/erp/rq/TiplistRQ.js +1 -0
- package/lib/mjs/i18n/en-US.json +20 -0
- package/lib/mjs/i18n/zh-CN.json +20 -0
- package/lib/mjs/i18n/zh-HK.json +20 -0
- package/lib/mjs/index.d.ts +7 -7
- package/lib/mjs/index.js +10 -10
- package/package.json +4 -4
- package/src/address/AddressUtils.ts +0 -45
- package/src/app/CoreApp.ts +21 -2
- package/src/app/IApp.ts +7 -0
- package/src/erp/AddressApi.ts +19 -22
- package/src/erp/BaseApi.ts +3 -2
- package/src/erp/EntityApi.ts +142 -0
- package/src/erp/OrgApi.ts +66 -19
- package/src/erp/PublicApi.ts +5 -7
- package/src/{dto → erp/dto}/IdLabelDto.ts +0 -0
- package/src/{dto → erp/dto}/IdLabelPrimaryDto.ts +0 -0
- package/src/{dto → erp/dto}/InitCallDto.ts +0 -0
- package/src/erp/dto/OrgQueryDto.ts +24 -0
- package/src/erp/rq/OrgListRQ.ts +11 -0
- package/src/erp/rq/OrgQueryRQ.ts +16 -0
- package/src/erp/rq/OrgRQ.ts +29 -0
- package/src/{rq → erp/rq}/QueryRQ.ts +0 -0
- package/src/erp/rq/RefreshTokenRQ.ts +34 -0
- package/src/{rq → erp/rq}/TiplistRQ.ts +0 -0
- package/src/i18n/en-US.json +20 -0
- package/src/i18n/zh-CN.json +20 -0
- package/src/i18n/zh-HK.json +20 -0
- package/src/index.ts +11 -12
- package/lib/cjs/rq/LoginIdRQ.d.ts +0 -17
- package/lib/cjs/rq/LoginRQ.d.ts +0 -22
- package/lib/mjs/rq/LoginIdRQ.d.ts +0 -17
- package/lib/mjs/rq/LoginRQ.d.ts +0 -22
- package/src/i18n/address.en-US.json +0 -21
- package/src/i18n/address.zh-CN.json +0 -21
- package/src/i18n/address.zh-HK.json +0 -21
- package/src/rq/LoginIdRQ.ts +0 -19
- package/src/rq/LoginRQ.ts +0 -26
package/src/erp/OrgApi.ts
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IApiPayload } from '@etsoo/restclient';
|
|
2
|
+
import { DataTypes, ListType } from '@etsoo/shared';
|
|
3
|
+
import { IApp } from '../app/IApp';
|
|
4
|
+
import { IdActionResult } from '../result/IActionResult';
|
|
5
|
+
import { OrgQueryDto } from './dto/OrgQueryDto';
|
|
6
|
+
import { EntityApi } from './EntityApi';
|
|
7
|
+
import { OrgListRQ } from './rq/OrgListRQ';
|
|
8
|
+
import { OrgQueryRQ } from './rq/OrgQueryRQ';
|
|
9
|
+
import { OrgRQ } from './rq/OrgRQ';
|
|
3
10
|
|
|
4
11
|
/**
|
|
5
12
|
* Organization API
|
|
6
13
|
*/
|
|
7
|
-
export class OrgApi extends
|
|
14
|
+
export class OrgApi extends EntityApi {
|
|
15
|
+
/**
|
|
16
|
+
* Constructor
|
|
17
|
+
* @param app Application
|
|
18
|
+
*/
|
|
19
|
+
constructor(app: IApp) {
|
|
20
|
+
super('Organization', app);
|
|
21
|
+
}
|
|
22
|
+
|
|
8
23
|
/**
|
|
9
24
|
* Get organization list
|
|
10
|
-
* @param items Max items
|
|
25
|
+
* @param items Max items or request data
|
|
11
26
|
* @param serviceId Service id
|
|
12
27
|
* @returns Result
|
|
13
28
|
*/
|
|
14
|
-
list(items?: number, serviceId?: number)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
list(items?: number, serviceId?: number): Promise<ListType[] | undefined>;
|
|
30
|
+
list(rq: OrgListRQ): Promise<ListType[] | undefined>;
|
|
31
|
+
list(
|
|
32
|
+
items?: number | OrgListRQ,
|
|
33
|
+
serviceId?: number,
|
|
34
|
+
payload?: IApiPayload<ListType[], any>
|
|
35
|
+
) {
|
|
36
|
+
payload ??= { defaultValue: [], showLoading: false };
|
|
37
|
+
const rq = typeof items === 'object' ? items : { items, serviceId };
|
|
38
|
+
return this.listBase(rq, payload);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Query
|
|
43
|
+
* @param rq Request data
|
|
44
|
+
* @param payload Payload
|
|
45
|
+
* @returns Result
|
|
46
|
+
*/
|
|
47
|
+
query(rq: OrgQueryRQ, payload?: IApiPayload<OrgQueryDto[], any>) {
|
|
48
|
+
return this.queryBase(rq, payload);
|
|
23
49
|
}
|
|
24
50
|
|
|
25
51
|
/**
|
|
@@ -27,13 +53,34 @@ export class OrgApi extends BaseApi {
|
|
|
27
53
|
* @param id Organization id
|
|
28
54
|
* @param serviceId Service id
|
|
29
55
|
*/
|
|
30
|
-
async switch(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
56
|
+
async switch(
|
|
57
|
+
id: number,
|
|
58
|
+
serviceId?: number,
|
|
59
|
+
payload?: IApiPayload<boolean, any>
|
|
60
|
+
) {
|
|
61
|
+
const result = await this.app.api.put<boolean>(
|
|
62
|
+
'Organization/Switch',
|
|
63
|
+
{
|
|
64
|
+
id,
|
|
65
|
+
serviceId,
|
|
66
|
+
deviceId: this.app.deviceId
|
|
67
|
+
},
|
|
68
|
+
payload
|
|
69
|
+
);
|
|
36
70
|
if (result) return await this.app.refreshToken();
|
|
37
71
|
return result;
|
|
38
72
|
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Update
|
|
76
|
+
* @param data Modal data
|
|
77
|
+
* @param payload Payload
|
|
78
|
+
* @returns Result
|
|
79
|
+
*/
|
|
80
|
+
update(
|
|
81
|
+
data: DataTypes.AddOrEditType<OrgRQ, true>,
|
|
82
|
+
payload?: IApiPayload<IdActionResult, any>
|
|
83
|
+
) {
|
|
84
|
+
return super.updateBase<IdActionResult>(data, payload);
|
|
85
|
+
}
|
|
39
86
|
}
|
package/src/erp/PublicApi.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class PublicApi extends BaseApi {
|
|
|
21
21
|
currencyNames?: T
|
|
22
22
|
): Promise<T extends undefined ? CurrencyDto[] | undefined : ListType1[]> {
|
|
23
23
|
if (currencyNames == null)
|
|
24
|
-
return (await this.
|
|
24
|
+
return (await this.api.get<CurrencyDto[]>(
|
|
25
25
|
'Public/GetCurrencies'
|
|
26
26
|
)) as any;
|
|
27
27
|
else
|
|
@@ -37,9 +37,7 @@ export class PublicApi extends BaseApi {
|
|
|
37
37
|
* @returns Result
|
|
38
38
|
*/
|
|
39
39
|
exchangeRate(currency: Currency | string) {
|
|
40
|
-
return this.
|
|
41
|
-
`Public/ExchangeRate/${currency}`
|
|
42
|
-
);
|
|
40
|
+
return this.api.get<ExchangeRateDto>(`Public/ExchangeRate/${currency}`);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
/**
|
|
@@ -49,7 +47,7 @@ export class PublicApi extends BaseApi {
|
|
|
49
47
|
* @returns Result
|
|
50
48
|
*/
|
|
51
49
|
exchangeRateHistory(currencies: (Currency | string)[], months?: number) {
|
|
52
|
-
return this.
|
|
50
|
+
return this.api.post<ExchangeRateHistoryDto[]>(
|
|
53
51
|
'Public/ExchangeRateHistory',
|
|
54
52
|
{ currencies, months },
|
|
55
53
|
{ defaultValue: [] }
|
|
@@ -87,7 +85,7 @@ export class PublicApi extends BaseApi {
|
|
|
87
85
|
* @param host Host URL
|
|
88
86
|
*/
|
|
89
87
|
mobileQRCode(id?: string, host?: string) {
|
|
90
|
-
return this.
|
|
88
|
+
return this.api.post<string>('Public/MobileQRCode', { id, host });
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
/**
|
|
@@ -101,7 +99,7 @@ export class PublicApi extends BaseApi {
|
|
|
101
99
|
culture?: string
|
|
102
100
|
): T extends number ? PublicProductDto : PublicOrgProductDto {
|
|
103
101
|
culture = this.app.checkLanguage(culture);
|
|
104
|
-
return this.
|
|
102
|
+
return this.api.post<PublicProductDto>(
|
|
105
103
|
`Public/Product/${id}/${culture}`
|
|
106
104
|
) as any;
|
|
107
105
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organization query data
|
|
3
|
+
*/
|
|
4
|
+
export type OrgQueryDto = {
|
|
5
|
+
/**
|
|
6
|
+
* Id
|
|
7
|
+
*/
|
|
8
|
+
id: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Brand, like ETSOO
|
|
12
|
+
*/
|
|
13
|
+
brand?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Name, like ETSOO NZ LIMITED
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Creation
|
|
22
|
+
*/
|
|
23
|
+
creation: string | Date;
|
|
24
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organization add/edit request data
|
|
3
|
+
*/
|
|
4
|
+
export type OrgRQ = {
|
|
5
|
+
/**
|
|
6
|
+
* Region id
|
|
7
|
+
*/
|
|
8
|
+
regionId: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Name
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Identifier
|
|
17
|
+
*/
|
|
18
|
+
identifier: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Brand
|
|
22
|
+
*/
|
|
23
|
+
brand?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Trade as
|
|
27
|
+
*/
|
|
28
|
+
tradeAs?: string;
|
|
29
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refresh token request data
|
|
3
|
+
*/
|
|
4
|
+
export type RefreshTokenRQ = {
|
|
5
|
+
/**
|
|
6
|
+
* Device id
|
|
7
|
+
*/
|
|
8
|
+
deviceId: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Login password
|
|
12
|
+
*/
|
|
13
|
+
pwd?: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Service device id
|
|
17
|
+
*/
|
|
18
|
+
serviceDeviceId?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Service id
|
|
22
|
+
*/
|
|
23
|
+
serviceId?: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Service Uid
|
|
27
|
+
*/
|
|
28
|
+
serviceUid?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Time zone
|
|
32
|
+
*/
|
|
33
|
+
timezone?: string;
|
|
34
|
+
};
|
|
File without changes
|
package/src/i18n/en-US.json
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"confirm": "Confirm",
|
|
16
16
|
"confirmAction": "Are you sure you want to {0}?",
|
|
17
17
|
"completeTip": "{0} completed",
|
|
18
|
+
"continentAF": "Africa",
|
|
19
|
+
"continentAN": "Antarctica",
|
|
20
|
+
"continentAS": "Asia",
|
|
21
|
+
"continentEU": "Europe",
|
|
22
|
+
"continentNA": "North America",
|
|
23
|
+
"continentOC": "Oceania",
|
|
24
|
+
"continentSA": "South America",
|
|
18
25
|
"copy": "Copy",
|
|
19
26
|
"creation": "Creation",
|
|
20
27
|
"currentPassword": "Current password",
|
|
@@ -106,6 +113,19 @@
|
|
|
106
113
|
"refresh": "Refresh",
|
|
107
114
|
"refreshing": "Refreshing",
|
|
108
115
|
"releaseToRefresh": "Release to refresh",
|
|
116
|
+
"region": "Country or region",
|
|
117
|
+
"regionAU": "Australia",
|
|
118
|
+
"regionCA": "Canada",
|
|
119
|
+
"regionCN": "Mainland China",
|
|
120
|
+
"regionDE": "Germany",
|
|
121
|
+
"regionFR": "France",
|
|
122
|
+
"regionGB": "United Kingdom",
|
|
123
|
+
"regionHK": "Hong Kong, China",
|
|
124
|
+
"regionIE": "Ireland",
|
|
125
|
+
"regionJP": "Japan",
|
|
126
|
+
"regionNZ": "New Zealand",
|
|
127
|
+
"regionSG": "Singapore",
|
|
128
|
+
"regionUS": "United States",
|
|
109
129
|
"reloginTip": "Please enter your password, resubmit the data after successful login",
|
|
110
130
|
"remove": "Remove",
|
|
111
131
|
"renew": "Renew",
|
package/src/i18n/zh-CN.json
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"confirm": "确认",
|
|
16
16
|
"confirmAction": "确定要{0}吗?",
|
|
17
17
|
"completeTip": "已完成 {0}",
|
|
18
|
+
"continentAF": "非洲",
|
|
19
|
+
"continentAN": "南极洲",
|
|
20
|
+
"continentAS": "亚洲",
|
|
21
|
+
"continentEU": "欧洲",
|
|
22
|
+
"continentNA": "北美洲",
|
|
23
|
+
"continentOC": "大洋洲",
|
|
24
|
+
"continentSA": "南美洲",
|
|
18
25
|
"copy": "复制",
|
|
19
26
|
"creation": "登记时间",
|
|
20
27
|
"currentPassword": "当前密码",
|
|
@@ -105,6 +112,19 @@
|
|
|
105
112
|
"record": "记录",
|
|
106
113
|
"refresh": "刷新",
|
|
107
114
|
"refreshing": "正在刷新",
|
|
115
|
+
"region": "国家或地区",
|
|
116
|
+
"regionAU": "澳大利亚",
|
|
117
|
+
"regionCA": "加拿大",
|
|
118
|
+
"regionCN": "中国大陆",
|
|
119
|
+
"regionDE": "德国",
|
|
120
|
+
"regionFR": "法国",
|
|
121
|
+
"regionGB": "英国",
|
|
122
|
+
"regionHK": "中国香港",
|
|
123
|
+
"regionIE": "爱尔兰",
|
|
124
|
+
"regionJP": "日本",
|
|
125
|
+
"regionNZ": "新西兰",
|
|
126
|
+
"regionSG": "新加坡",
|
|
127
|
+
"regionUS": "美国",
|
|
108
128
|
"releaseToRefresh": "释放刷新",
|
|
109
129
|
"reloginTip": "请输入您的登录密码,登录成功后请重新提交数据",
|
|
110
130
|
"remove": "移除",
|
package/src/i18n/zh-HK.json
CHANGED
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"confirm": "確認",
|
|
16
16
|
"confirmAction": "確定要{0}嗎?",
|
|
17
17
|
"completeTip": "已完成 {0}",
|
|
18
|
+
"continentAF": "非洲",
|
|
19
|
+
"continentAN": "南極洲",
|
|
20
|
+
"continentAS": "亞洲",
|
|
21
|
+
"continentEU": "歐洲",
|
|
22
|
+
"continentNA": "北美洲",
|
|
23
|
+
"continentOC": "大洋洲",
|
|
24
|
+
"continentSA": "南美洲",
|
|
18
25
|
"copy": "複製",
|
|
19
26
|
"creation": "登記時間",
|
|
20
27
|
"currentPassword": "當前密碼",
|
|
@@ -105,6 +112,19 @@
|
|
|
105
112
|
"record": "記錄",
|
|
106
113
|
"refresh": "刷新",
|
|
107
114
|
"refreshing": "正在刷新",
|
|
115
|
+
"region": "國家或地區",
|
|
116
|
+
"regionAU": "澳大利亞",
|
|
117
|
+
"regionCA": "加拿大",
|
|
118
|
+
"regionCN": "中國大陸",
|
|
119
|
+
"regionDE": "德國",
|
|
120
|
+
"regionFR": "法國",
|
|
121
|
+
"regionGB": "英國",
|
|
122
|
+
"regionHK": "中國香港",
|
|
123
|
+
"regionIE": "愛爾蘭",
|
|
124
|
+
"regionJP": "日本",
|
|
125
|
+
"regionNZ": "新西蘭",
|
|
126
|
+
"regionSG": "新加坡",
|
|
127
|
+
"regionUS": "美國",
|
|
108
128
|
"releaseToRefresh": "釋放刷新",
|
|
109
129
|
"reloginTip": "請輸入您的登錄密碼,登錄成功後請重新提交數據",
|
|
110
130
|
"remove": "移除",
|
package/src/index.ts
CHANGED
|
@@ -26,19 +26,24 @@ export * from './business/RepeatOption';
|
|
|
26
26
|
// def
|
|
27
27
|
export * from './def/ListItem';
|
|
28
28
|
|
|
29
|
-
// dto
|
|
30
|
-
export * from './dto/IdLabelDto';
|
|
31
|
-
export * from './dto/IdLabelPrimaryDto';
|
|
32
|
-
export * from './dto/InitCallDto';
|
|
33
|
-
|
|
34
|
-
// erp
|
|
29
|
+
// erp dto
|
|
35
30
|
export * from './erp/dto/CurrencyDto';
|
|
36
31
|
export * from './erp/dto/ExchangeRateDto';
|
|
37
32
|
export * from './erp/dto/ExchangeRateHistoryDto';
|
|
33
|
+
export * from './erp/dto/IdLabelDto';
|
|
34
|
+
export * from './erp/dto/IdLabelPrimaryDto';
|
|
35
|
+
export * from './erp/dto/InitCallDto';
|
|
38
36
|
export * from './erp/dto/PublicProductDto';
|
|
39
37
|
|
|
38
|
+
// erp rq
|
|
39
|
+
export * from './erp/rq/QueryRQ';
|
|
40
|
+
export * from './erp/rq/RefreshTokenRQ';
|
|
41
|
+
export * from './erp/rq/TiplistRQ';
|
|
42
|
+
|
|
43
|
+
// erp api
|
|
40
44
|
export * from './erp/AddressApi';
|
|
41
45
|
export * from './erp/BaseApi';
|
|
46
|
+
export * from './erp/EntityApi';
|
|
42
47
|
export * from './erp/OrgApi';
|
|
43
48
|
export * from './erp/PublicApi';
|
|
44
49
|
|
|
@@ -57,12 +62,6 @@ export * from './result/ActionResultError';
|
|
|
57
62
|
export * from './result/IActionResult';
|
|
58
63
|
export * from './result/InitCallResult';
|
|
59
64
|
|
|
60
|
-
// rq
|
|
61
|
-
export * from './rq/LoginIdRQ';
|
|
62
|
-
export * from './rq/LoginRQ';
|
|
63
|
-
export * from './rq/QueryRQ';
|
|
64
|
-
export * from './rq/TiplistRQ';
|
|
65
|
-
|
|
66
65
|
// state
|
|
67
66
|
export * from './state/Culture';
|
|
68
67
|
export * from './state/State';
|
package/lib/cjs/rq/LoginRQ.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LoginIdRQ } from './LoginIdRQ';
|
|
2
|
-
/**
|
|
3
|
-
* Login request data
|
|
4
|
-
*/
|
|
5
|
-
export declare type LoginRQ = LoginIdRQ & {
|
|
6
|
-
/**
|
|
7
|
-
* Password
|
|
8
|
-
*/
|
|
9
|
-
pwd: string;
|
|
10
|
-
/**
|
|
11
|
-
* Organization
|
|
12
|
-
*/
|
|
13
|
-
org?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Time zone
|
|
16
|
-
*/
|
|
17
|
-
timezone?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Service id or uid
|
|
20
|
-
*/
|
|
21
|
-
serviceId?: string;
|
|
22
|
-
};
|
package/lib/mjs/rq/LoginRQ.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LoginIdRQ } from './LoginIdRQ';
|
|
2
|
-
/**
|
|
3
|
-
* Login request data
|
|
4
|
-
*/
|
|
5
|
-
export declare type LoginRQ = LoginIdRQ & {
|
|
6
|
-
/**
|
|
7
|
-
* Password
|
|
8
|
-
*/
|
|
9
|
-
pwd: string;
|
|
10
|
-
/**
|
|
11
|
-
* Organization
|
|
12
|
-
*/
|
|
13
|
-
org?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Time zone
|
|
16
|
-
*/
|
|
17
|
-
timezone?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Service id or uid
|
|
20
|
-
*/
|
|
21
|
-
serviceId?: string;
|
|
22
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"continentAF": "Africa",
|
|
3
|
-
"continentAN": "Antarctica",
|
|
4
|
-
"continentAS": "Asia",
|
|
5
|
-
"continentEU": "Europe",
|
|
6
|
-
"continentNA": "North America",
|
|
7
|
-
"continentOC": "Oceania",
|
|
8
|
-
"continentSA": "South America",
|
|
9
|
-
"regionAU": "Australia",
|
|
10
|
-
"regionCA": "Canada",
|
|
11
|
-
"regionCN": "Mainland China",
|
|
12
|
-
"regionDE": "Germany",
|
|
13
|
-
"regionFR": "France",
|
|
14
|
-
"regionGB": "United Kingdom",
|
|
15
|
-
"regionHK": "Hong Kong, China",
|
|
16
|
-
"regionIE": "Ireland",
|
|
17
|
-
"regionJP": "Japan",
|
|
18
|
-
"regionNZ": "New Zealand",
|
|
19
|
-
"regionSG": "Singapore",
|
|
20
|
-
"regionUS": "United States"
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"continentAF": "非洲",
|
|
3
|
-
"continentAN": "南极洲",
|
|
4
|
-
"continentAS": "亚洲",
|
|
5
|
-
"continentEU": "欧洲",
|
|
6
|
-
"continentNA": "北美洲",
|
|
7
|
-
"continentOC": "大洋洲",
|
|
8
|
-
"continentSA": "南美洲",
|
|
9
|
-
"regionAU": "澳大利亚",
|
|
10
|
-
"regionCA": "加拿大",
|
|
11
|
-
"regionCN": "中国大陆",
|
|
12
|
-
"regionDE": "德国",
|
|
13
|
-
"regionFR": "法国",
|
|
14
|
-
"regionGB": "英国",
|
|
15
|
-
"regionHK": "中国香港",
|
|
16
|
-
"regionIE": "爱尔兰",
|
|
17
|
-
"regionJP": "日本",
|
|
18
|
-
"regionNZ": "新西兰",
|
|
19
|
-
"regionSG": "新加坡",
|
|
20
|
-
"regionUS": "美国"
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"continentAF": "非洲",
|
|
3
|
-
"continentAN": "南極洲",
|
|
4
|
-
"continentAS": "亞洲",
|
|
5
|
-
"continentEU": "歐洲",
|
|
6
|
-
"continentNA": "北美洲",
|
|
7
|
-
"continentOC": "大洋洲",
|
|
8
|
-
"continentSA": "南美洲",
|
|
9
|
-
"regionAU": "澳大利亞",
|
|
10
|
-
"regionCA": "加拿大",
|
|
11
|
-
"regionCN": "中國大陸",
|
|
12
|
-
"regionDE": "德國",
|
|
13
|
-
"regionFR": "法國",
|
|
14
|
-
"regionGB": "英國",
|
|
15
|
-
"regionHK": "中國香港",
|
|
16
|
-
"regionIE": "愛爾蘭",
|
|
17
|
-
"regionJP": "日本",
|
|
18
|
-
"regionNZ": "新西蘭",
|
|
19
|
-
"regionSG": "新加坡",
|
|
20
|
-
"regionUS": "美國"
|
|
21
|
-
}
|
package/src/rq/LoginIdRQ.ts
DELETED
package/src/rq/LoginRQ.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { LoginIdRQ } from './LoginIdRQ';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Login request data
|
|
5
|
-
*/
|
|
6
|
-
export type LoginRQ = LoginIdRQ & {
|
|
7
|
-
/**
|
|
8
|
-
* Password
|
|
9
|
-
*/
|
|
10
|
-
pwd: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Organization
|
|
14
|
-
*/
|
|
15
|
-
org?: number;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Time zone
|
|
19
|
-
*/
|
|
20
|
-
timezone?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Service id or uid
|
|
24
|
-
*/
|
|
25
|
-
serviceId?: string;
|
|
26
|
-
};
|