@etsoo/appscript 1.3.69 → 1.3.71
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/__tests__/app/CoreApp.ts +36 -1
- package/lib/cjs/address/AddressAutocomplete.d.ts +22 -0
- package/lib/cjs/address/AddressAutocomplete.js +2 -0
- package/lib/cjs/address/AddressCity.d.ts +17 -0
- package/lib/cjs/address/AddressCity.js +2 -0
- package/lib/cjs/address/AddressDistrict.d.ts +17 -0
- package/lib/cjs/address/AddressDistrict.js +2 -0
- package/lib/cjs/address/AddressLocation.d.ts +14 -0
- package/lib/cjs/address/AddressLocation.js +2 -0
- package/lib/cjs/address/AddressPlace.d.ts +28 -0
- package/lib/cjs/address/AddressPlace.js +2 -0
- package/lib/cjs/address/AddressPlaceBase.d.ts +37 -0
- package/lib/cjs/address/AddressPlaceBase.js +2 -0
- package/lib/cjs/erp/AddressApi.d.ts +49 -1
- package/lib/cjs/erp/AddressApi.js +71 -13
- package/lib/cjs/erp/rq/PlaceQueryRQ.d.ts +45 -0
- package/lib/cjs/erp/rq/PlaceQueryRQ.js +12 -0
- package/lib/cjs/i18n/en.json +3 -0
- package/lib/cjs/i18n/zh-Hans.json +3 -0
- package/lib/cjs/i18n/zh-Hant.json +3 -0
- package/lib/cjs/index.d.ts +7 -0
- package/lib/cjs/index.js +7 -0
- package/lib/mjs/address/AddressAutocomplete.d.ts +22 -0
- package/lib/mjs/address/AddressAutocomplete.js +1 -0
- package/lib/mjs/address/AddressCity.d.ts +17 -0
- package/lib/mjs/address/AddressCity.js +1 -0
- package/lib/mjs/address/AddressDistrict.d.ts +17 -0
- package/lib/mjs/address/AddressDistrict.js +1 -0
- package/lib/mjs/address/AddressLocation.d.ts +14 -0
- package/lib/mjs/address/AddressLocation.js +1 -0
- package/lib/mjs/address/AddressPlace.d.ts +28 -0
- package/lib/mjs/address/AddressPlace.js +1 -0
- package/lib/mjs/address/AddressPlaceBase.d.ts +37 -0
- package/lib/mjs/address/AddressPlaceBase.js +1 -0
- package/lib/mjs/erp/AddressApi.d.ts +49 -1
- package/lib/mjs/erp/AddressApi.js +72 -14
- package/lib/mjs/erp/rq/PlaceQueryRQ.d.ts +45 -0
- package/lib/mjs/erp/rq/PlaceQueryRQ.js +9 -0
- package/lib/mjs/i18n/en.json +3 -0
- package/lib/mjs/i18n/zh-Hans.json +3 -0
- package/lib/mjs/i18n/zh-Hant.json +3 -0
- package/lib/mjs/index.d.ts +7 -0
- package/lib/mjs/index.js +7 -0
- package/package.json +4 -4
- package/src/address/AddressAutocomplete.ts +25 -0
- package/src/address/AddressCity.ts +19 -0
- package/src/address/AddressDistrict.ts +19 -0
- package/src/address/AddressLocation.ts +15 -0
- package/src/address/AddressPlace.ts +32 -0
- package/src/address/AddressPlaceBase.ts +43 -0
- package/src/erp/AddressApi.ts +117 -13
- package/src/erp/rq/PlaceQueryRQ.ts +52 -0
- package/src/i18n/en.json +3 -0
- package/src/i18n/zh-Hans.json +3 -0
- package/src/i18n/zh-Hant.json +3 -0
- package/src/index.ts +7 -0
package/__tests__/app/CoreApp.ts
CHANGED
|
@@ -211,7 +211,7 @@ test('Tests for isValidPassword', () => {
|
|
|
211
211
|
expect(app.isValidPassword('1234abcd')).toBeTruthy();
|
|
212
212
|
});
|
|
213
213
|
|
|
214
|
-
test('Tests for addressApi', () => {
|
|
214
|
+
test('Tests for addressApi', async () => {
|
|
215
215
|
const regions = app.addressApi.regions();
|
|
216
216
|
const cn = regions.find((r) => r.id === 'CN');
|
|
217
217
|
expect(cn?.label).toBe('中国大陆');
|
|
@@ -226,6 +226,41 @@ test('Tests for addressApi', () => {
|
|
|
226
226
|
expect(region?.label).toBe('美国');
|
|
227
227
|
const regionFailed = app.addressApi.region('ABC');
|
|
228
228
|
expect(regionFailed).toBeUndefined();
|
|
229
|
+
|
|
230
|
+
/*
|
|
231
|
+
const results1 = await app.addressApi.autocomplete({
|
|
232
|
+
query: '青岛市玫瑰庭院',
|
|
233
|
+
region: 'CN',
|
|
234
|
+
language: 'zh-CN'
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
const results2 = await app.addressApi.autocomplete({
|
|
238
|
+
query: '青岛市玫瑰庭院',
|
|
239
|
+
language: 'zh-CN'
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
const results1 = await app.addressApi.searchPlace({
|
|
243
|
+
query: '青岛市玫瑰庭院',
|
|
244
|
+
region: 'CN',
|
|
245
|
+
language: 'zh-CN'
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
const result = await app.addressApi.GetPlaceDetails(
|
|
249
|
+
'ChIJczySyo1qljUR1Jnq4Uqak2I',
|
|
250
|
+
'zh-CN'
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
const results2 = await app.addressApi.searchPlace({
|
|
254
|
+
query: '青岛市玫瑰庭院',
|
|
255
|
+
language: 'zh-CN'
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
const cities = await app.addressApi.cities('CNHN');
|
|
259
|
+
console.log(cities);
|
|
260
|
+
|
|
261
|
+
const districts = await app.addressApi.districts(1181);
|
|
262
|
+
console.log(districts);
|
|
263
|
+
*/
|
|
229
264
|
});
|
|
230
265
|
|
|
231
266
|
/*
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AddressPlaceBase } from './AddressPlaceBase';
|
|
2
|
+
/**
|
|
3
|
+
* Address autocomplete
|
|
4
|
+
* 地点自动填充
|
|
5
|
+
*/
|
|
6
|
+
export type AddressAutocomplete = {
|
|
7
|
+
/**
|
|
8
|
+
* Place id
|
|
9
|
+
* 地点编号
|
|
10
|
+
*/
|
|
11
|
+
placeId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Name
|
|
14
|
+
* 名称
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Place data
|
|
19
|
+
* 地点数据
|
|
20
|
+
*/
|
|
21
|
+
place?: AddressPlaceBase;
|
|
22
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AddressLocation } from './AddressLocation';
|
|
2
|
+
import { AddressPlaceBase } from './AddressPlaceBase';
|
|
3
|
+
/**
|
|
4
|
+
* Address place
|
|
5
|
+
* 地点
|
|
6
|
+
*/
|
|
7
|
+
export type AddressPlace = Omit<AddressPlaceBase, 'location'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Place id
|
|
10
|
+
* 地点编号
|
|
11
|
+
*/
|
|
12
|
+
placeId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name
|
|
15
|
+
* 名称
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Location
|
|
20
|
+
* 位置
|
|
21
|
+
*/
|
|
22
|
+
location: AddressLocation;
|
|
23
|
+
/**
|
|
24
|
+
* Formatted address
|
|
25
|
+
* 格式化地址
|
|
26
|
+
*/
|
|
27
|
+
formattedAddress: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AddressLocation } from './AddressLocation';
|
|
2
|
+
/**
|
|
3
|
+
* Address place base
|
|
4
|
+
* 基础地点
|
|
5
|
+
*/
|
|
6
|
+
export type AddressPlaceBase = {
|
|
7
|
+
/**
|
|
8
|
+
* Location
|
|
9
|
+
* 位置
|
|
10
|
+
*/
|
|
11
|
+
location?: AddressLocation;
|
|
12
|
+
/**
|
|
13
|
+
* Region or country, like CN = China
|
|
14
|
+
* 地区或国家,比如 CN 表示中国
|
|
15
|
+
*/
|
|
16
|
+
region?: string;
|
|
17
|
+
/**
|
|
18
|
+
* State or province
|
|
19
|
+
* 州 / 省
|
|
20
|
+
*/
|
|
21
|
+
state?: string;
|
|
22
|
+
/**
|
|
23
|
+
* City
|
|
24
|
+
* 城市
|
|
25
|
+
*/
|
|
26
|
+
city?: string;
|
|
27
|
+
/**
|
|
28
|
+
* District
|
|
29
|
+
* 区县
|
|
30
|
+
*/
|
|
31
|
+
district?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Postcode
|
|
34
|
+
* 邮编
|
|
35
|
+
*/
|
|
36
|
+
postcode?: string;
|
|
37
|
+
};
|
|
@@ -5,10 +5,22 @@ import { IdLabelConditional } from './dto/IdLabelDto';
|
|
|
5
5
|
import { BaseApi } from './BaseApi';
|
|
6
6
|
import { IApiPayload } from '@etsoo/restclient';
|
|
7
7
|
import { RegionsRQ } from './rq/RegionsRQ';
|
|
8
|
+
import { AddressCity } from '../address/AddressCity';
|
|
9
|
+
import { AddressDistrict } from '../address/AddressDistrict';
|
|
10
|
+
import { PlaceQueryRQ } from './rq/PlaceQueryRQ';
|
|
11
|
+
import { AddressAutocomplete } from '../address/AddressAutocomplete';
|
|
12
|
+
import { AddressPlace } from '../address/AddressPlace';
|
|
8
13
|
/**
|
|
9
14
|
* Address Api
|
|
10
15
|
*/
|
|
11
16
|
export declare class AddressApi extends BaseApi {
|
|
17
|
+
/**
|
|
18
|
+
* Place autocomplete
|
|
19
|
+
* @param rq Request data
|
|
20
|
+
* @param payload Payload
|
|
21
|
+
* @returns Result
|
|
22
|
+
*/
|
|
23
|
+
autocomplete(rq: PlaceQueryRQ, payload?: IApiPayload<AddressAutocomplete[]>): Promise<AddressAutocomplete[] | undefined>;
|
|
12
24
|
/**
|
|
13
25
|
* Get all continents
|
|
14
26
|
* @param isNumberKey Is number key or key as id
|
|
@@ -63,8 +75,44 @@ export declare class AddressApi extends BaseApi {
|
|
|
63
75
|
/**
|
|
64
76
|
* Get state list
|
|
65
77
|
* @param regionId Region id
|
|
78
|
+
* @param favoredIds Favored ids
|
|
79
|
+
* @param payload Payload
|
|
80
|
+
* @param culture Culture
|
|
81
|
+
* @returns Result
|
|
82
|
+
*/
|
|
83
|
+
states(regionId: string, favoredIds?: string[], payload?: IApiPayload<AddressState[]>, culture?: string): Promise<AddressState[] | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Get city list
|
|
86
|
+
* @param stateId State id
|
|
87
|
+
* @param favoredIds Favored ids
|
|
88
|
+
* @param payload Payload
|
|
89
|
+
* @param culture Culture
|
|
90
|
+
*
|
|
91
|
+
* @returns Result
|
|
92
|
+
*/
|
|
93
|
+
cities(stateId: string, favoredIds?: number[], payload?: IApiPayload<AddressCity[]>, culture?: string): Promise<AddressCity[] | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Get district list
|
|
96
|
+
* @param cityId City id
|
|
97
|
+
* @param favoredIds Favored ids
|
|
98
|
+
* @param payload Payload
|
|
99
|
+
* @param culture Culture
|
|
100
|
+
* @returns Result
|
|
101
|
+
*/
|
|
102
|
+
districts(cityId: number, favoredIds?: number[], payload?: IApiPayload<AddressDistrict[]>, culture?: string): Promise<AddressDistrict[] | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Get place details
|
|
105
|
+
* @param placeId Place id
|
|
106
|
+
* @param language Language
|
|
107
|
+
* @param payload Payload
|
|
108
|
+
* @returns Result
|
|
109
|
+
*/
|
|
110
|
+
GetPlaceDetails(placeId: string, language?: string, payload?: IApiPayload<AddressPlace>): Promise<AddressPlace | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Place autocomplete
|
|
113
|
+
* @param rq Request data
|
|
66
114
|
* @param payload Payload
|
|
67
115
|
* @returns Result
|
|
68
116
|
*/
|
|
69
|
-
|
|
117
|
+
searchPlace(rq: PlaceQueryRQ, payload?: IApiPayload<AddressPlace[]>): Promise<AddressPlace[] | undefined>;
|
|
70
118
|
}
|
|
@@ -10,6 +10,15 @@ const cachedRegions = {};
|
|
|
10
10
|
* Address Api
|
|
11
11
|
*/
|
|
12
12
|
class AddressApi extends BaseApi_1.BaseApi {
|
|
13
|
+
/**
|
|
14
|
+
* Place autocomplete
|
|
15
|
+
* @param rq Request data
|
|
16
|
+
* @param payload Payload
|
|
17
|
+
* @returns Result
|
|
18
|
+
*/
|
|
19
|
+
autocomplete(rq, payload) {
|
|
20
|
+
return this.api.post('Address/Autocomplete', rq, payload);
|
|
21
|
+
}
|
|
13
22
|
/**
|
|
14
23
|
* Get all continents
|
|
15
24
|
* @param isNumberKey Is number key or key as id
|
|
@@ -94,17 +103,7 @@ class AddressApi extends BaseApi_1.BaseApi {
|
|
|
94
103
|
});
|
|
95
104
|
// Order by favoredIds
|
|
96
105
|
if (favoredIds.length > 0) {
|
|
97
|
-
regions = [...regions]
|
|
98
|
-
const n1 = favoredIds.indexOf(r1.id);
|
|
99
|
-
const n2 = favoredIds.indexOf(r2.id);
|
|
100
|
-
if (n1 === n2)
|
|
101
|
-
return 0;
|
|
102
|
-
if (n1 === -1)
|
|
103
|
-
return 1;
|
|
104
|
-
if (n2 === -1)
|
|
105
|
-
return -1;
|
|
106
|
-
return n1 - n2;
|
|
107
|
-
});
|
|
106
|
+
regions = shared_1.Utils.sortByFieldFavor([...regions], 'id', favoredIds);
|
|
108
107
|
}
|
|
109
108
|
// Return the top items
|
|
110
109
|
return regions.slice(0, items);
|
|
@@ -143,12 +142,71 @@ class AddressApi extends BaseApi_1.BaseApi {
|
|
|
143
142
|
/**
|
|
144
143
|
* Get state list
|
|
145
144
|
* @param regionId Region id
|
|
145
|
+
* @param favoredIds Favored ids
|
|
146
|
+
* @param payload Payload
|
|
147
|
+
* @param culture Culture
|
|
148
|
+
* @returns Result
|
|
149
|
+
*/
|
|
150
|
+
async states(regionId, favoredIds = [], payload, culture) {
|
|
151
|
+
payload !== null && payload !== void 0 ? payload : (payload = { defaultValue: [], showLoading: false });
|
|
152
|
+
culture !== null && culture !== void 0 ? culture : (culture = this.app.culture);
|
|
153
|
+
var items = await this.api.get(`Address/StateList?regionId=${regionId}&language=${culture}`, undefined, payload);
|
|
154
|
+
if (items == null || favoredIds.length === 0)
|
|
155
|
+
return items;
|
|
156
|
+
return shared_1.Utils.sortByFieldFavor(items, 'id', favoredIds);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Get city list
|
|
160
|
+
* @param stateId State id
|
|
161
|
+
* @param favoredIds Favored ids
|
|
162
|
+
* @param payload Payload
|
|
163
|
+
* @param culture Culture
|
|
164
|
+
*
|
|
165
|
+
* @returns Result
|
|
166
|
+
*/
|
|
167
|
+
async cities(stateId, favoredIds = [], payload, culture) {
|
|
168
|
+
payload !== null && payload !== void 0 ? payload : (payload = { defaultValue: [], showLoading: false });
|
|
169
|
+
culture !== null && culture !== void 0 ? culture : (culture = this.app.culture);
|
|
170
|
+
const items = await this.api.get(`Address/CityList?stateId=${stateId}&language=${culture}`, undefined, payload);
|
|
171
|
+
if (items == null || favoredIds.length === 0)
|
|
172
|
+
return items;
|
|
173
|
+
return shared_1.Utils.sortByFieldFavor(items, 'id', favoredIds);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Get district list
|
|
177
|
+
* @param cityId City id
|
|
178
|
+
* @param favoredIds Favored ids
|
|
146
179
|
* @param payload Payload
|
|
180
|
+
* @param culture Culture
|
|
147
181
|
* @returns Result
|
|
148
182
|
*/
|
|
149
|
-
|
|
183
|
+
async districts(cityId, favoredIds = [], payload, culture) {
|
|
150
184
|
payload !== null && payload !== void 0 ? payload : (payload = { defaultValue: [], showLoading: false });
|
|
151
|
-
|
|
185
|
+
culture !== null && culture !== void 0 ? culture : (culture = this.app.culture);
|
|
186
|
+
const items = await this.api.get(`Address/DistrictList?cityId=${cityId}&language=${culture}`, undefined, payload);
|
|
187
|
+
if (items == null || favoredIds.length === 0)
|
|
188
|
+
return items;
|
|
189
|
+
return shared_1.Utils.sortByFieldFavor(items, 'id', favoredIds);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Get place details
|
|
193
|
+
* @param placeId Place id
|
|
194
|
+
* @param language Language
|
|
195
|
+
* @param payload Payload
|
|
196
|
+
* @returns Result
|
|
197
|
+
*/
|
|
198
|
+
GetPlaceDetails(placeId, language, payload) {
|
|
199
|
+
const url = `Address/GetPlaceDetails/${placeId}/${language == null ? '' : language}`;
|
|
200
|
+
return this.api.get(url, undefined, payload);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Place autocomplete
|
|
204
|
+
* @param rq Request data
|
|
205
|
+
* @param payload Payload
|
|
206
|
+
* @returns Result
|
|
207
|
+
*/
|
|
208
|
+
searchPlace(rq, payload) {
|
|
209
|
+
return this.api.post('Address/SearchPlace', rq, payload);
|
|
152
210
|
}
|
|
153
211
|
}
|
|
154
212
|
exports.AddressApi = AddressApi;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AddressLocation } from '../../address/AddressLocation';
|
|
2
|
+
/**
|
|
3
|
+
* Place query output type
|
|
4
|
+
* 地址查询输出类型
|
|
5
|
+
*/
|
|
6
|
+
export declare enum PlaceQueryOutput {
|
|
7
|
+
JSON = 0,
|
|
8
|
+
XML = 1
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Place query request data
|
|
12
|
+
* 地址查询请求数据
|
|
13
|
+
*/
|
|
14
|
+
export type PlaceQueryRQ = {
|
|
15
|
+
/**
|
|
16
|
+
* Query address
|
|
17
|
+
* 查询地址
|
|
18
|
+
*/
|
|
19
|
+
query: string;
|
|
20
|
+
/**
|
|
21
|
+
* Output type
|
|
22
|
+
* 输出类型
|
|
23
|
+
*/
|
|
24
|
+
output?: PlaceQueryOutput;
|
|
25
|
+
/**
|
|
26
|
+
* Language
|
|
27
|
+
* 语言
|
|
28
|
+
*/
|
|
29
|
+
language?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Limited region / country id, like CN
|
|
32
|
+
* 限定的地区获国家编号
|
|
33
|
+
*/
|
|
34
|
+
region?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Center location
|
|
37
|
+
* 中心位置
|
|
38
|
+
*/
|
|
39
|
+
location?: AddressLocation;
|
|
40
|
+
/**
|
|
41
|
+
* Circle radius
|
|
42
|
+
* 方圆半径
|
|
43
|
+
*/
|
|
44
|
+
radius?: number;
|
|
45
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlaceQueryOutput = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Place query output type
|
|
6
|
+
* 地址查询输出类型
|
|
7
|
+
*/
|
|
8
|
+
var PlaceQueryOutput;
|
|
9
|
+
(function (PlaceQueryOutput) {
|
|
10
|
+
PlaceQueryOutput[PlaceQueryOutput["JSON"] = 0] = "JSON";
|
|
11
|
+
PlaceQueryOutput[PlaceQueryOutput["XML"] = 1] = "XML";
|
|
12
|
+
})(PlaceQueryOutput = exports.PlaceQueryOutput || (exports.PlaceQueryOutput = {}));
|
package/lib/cjs/i18n/en.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"back": "Back",
|
|
12
12
|
"cancel": "Cancel",
|
|
13
13
|
"changePassword": "Change password",
|
|
14
|
+
"city": "City",
|
|
14
15
|
"clear": "Clear",
|
|
15
16
|
"close": "Close",
|
|
16
17
|
"confirm": "Confirm",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"delete": "Delete",
|
|
51
52
|
"deleteConfirm": "Are you sure you want to permanently delete this {0}?",
|
|
52
53
|
"description": "Description",
|
|
54
|
+
"district": "District/County",
|
|
53
55
|
"done": "Done",
|
|
54
56
|
"download": "Download",
|
|
55
57
|
"dragIndicator": "Drag indicator",
|
|
@@ -162,6 +164,7 @@
|
|
|
162
164
|
"signout": "Sign out",
|
|
163
165
|
"smartERP": "SmartERP",
|
|
164
166
|
"sortTip": "Drag and drop items to sort",
|
|
167
|
+
"state": "Province/State",
|
|
165
168
|
"status": "Status",
|
|
166
169
|
"statusApproved": "Approved",
|
|
167
170
|
"statusArchived": "Archived",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"back": "后退",
|
|
12
12
|
"cancel": "取消",
|
|
13
13
|
"changePassword": "修改密码",
|
|
14
|
+
"city": "城市",
|
|
14
15
|
"clear": "清除",
|
|
15
16
|
"close": "关闭",
|
|
16
17
|
"confirm": "确认",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"delete": "删除",
|
|
51
52
|
"deleteConfirm": "确定要永久删除此{0}吗?",
|
|
52
53
|
"description": "描述",
|
|
54
|
+
"district": "区/县",
|
|
53
55
|
"done": "完成",
|
|
54
56
|
"download": "下载",
|
|
55
57
|
"dragIndicator": "拖动指示",
|
|
@@ -162,6 +164,7 @@
|
|
|
162
164
|
"signout": "退出",
|
|
163
165
|
"smartERP": "司友®云ERP",
|
|
164
166
|
"sortTip": "拖拽项目进行排序",
|
|
167
|
+
"state": "省/州",
|
|
165
168
|
"status": "状态",
|
|
166
169
|
"statusApproved": "已批准",
|
|
167
170
|
"statusArchived": "已归档",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"back": "後退",
|
|
12
12
|
"cancel": "取消",
|
|
13
13
|
"changePassword": "修改密碼",
|
|
14
|
+
"city": "城市",
|
|
14
15
|
"clear": "清除",
|
|
15
16
|
"close": "關閉",
|
|
16
17
|
"confirm": "確認",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"delete": "刪除",
|
|
51
52
|
"deleteConfirm": "確定要永久刪除此{0}嗎?",
|
|
52
53
|
"description": "描述",
|
|
54
|
+
"district": "區/縣",
|
|
53
55
|
"done": "完成",
|
|
54
56
|
"download": "下載",
|
|
55
57
|
"dragIndicator": "拖動指示",
|
|
@@ -162,6 +164,7 @@
|
|
|
162
164
|
"signout": "退出",
|
|
163
165
|
"smartERP": "司友®雲ERP",
|
|
164
166
|
"sortTip": "拖拽項目進行排序",
|
|
167
|
+
"state": "省/州",
|
|
165
168
|
"status": "狀態",
|
|
166
169
|
"statusApproved": "已批准",
|
|
167
170
|
"statusArchived": "已歸檔",
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
export * from './address/AddressAutocomplete';
|
|
2
|
+
export * from './address/AddressCity';
|
|
1
3
|
export * from './address/AddressContinent';
|
|
4
|
+
export * from './address/AddressDistrict';
|
|
5
|
+
export * from './address/AddressLocation';
|
|
6
|
+
export * from './address/AddressPlace';
|
|
7
|
+
export * from './address/AddressPlaceBase';
|
|
2
8
|
export * from './address/AddressRegion';
|
|
3
9
|
export * from './address/AddressState';
|
|
4
10
|
export * from './address/AddressUtils';
|
|
@@ -34,6 +40,7 @@ export * from './erp/rq/LoginRQ';
|
|
|
34
40
|
export * from './erp/rq/MemberListRQ';
|
|
35
41
|
export * from './erp/rq/OrgListRQ';
|
|
36
42
|
export * from './erp/rq/OrgQueryRQ';
|
|
43
|
+
export * from './erp/rq/PlaceQueryRQ';
|
|
37
44
|
export * from './erp/rq/QueryRQ';
|
|
38
45
|
export * from './erp/rq/RefreshTokenRQ';
|
|
39
46
|
export * from './erp/rq/RegionsRQ';
|
package/lib/cjs/index.js
CHANGED
|
@@ -16,7 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.createClient = exports.ApiResponseType = exports.ApiMethod = exports.ApiAuthorizationScheme = void 0;
|
|
18
18
|
// address
|
|
19
|
+
__exportStar(require("./address/AddressAutocomplete"), exports);
|
|
20
|
+
__exportStar(require("./address/AddressCity"), exports);
|
|
19
21
|
__exportStar(require("./address/AddressContinent"), exports);
|
|
22
|
+
__exportStar(require("./address/AddressDistrict"), exports);
|
|
23
|
+
__exportStar(require("./address/AddressLocation"), exports);
|
|
24
|
+
__exportStar(require("./address/AddressPlace"), exports);
|
|
25
|
+
__exportStar(require("./address/AddressPlaceBase"), exports);
|
|
20
26
|
__exportStar(require("./address/AddressRegion"), exports);
|
|
21
27
|
__exportStar(require("./address/AddressState"), exports);
|
|
22
28
|
__exportStar(require("./address/AddressUtils"), exports);
|
|
@@ -58,6 +64,7 @@ __exportStar(require("./erp/rq/LoginRQ"), exports);
|
|
|
58
64
|
__exportStar(require("./erp/rq/MemberListRQ"), exports);
|
|
59
65
|
__exportStar(require("./erp/rq/OrgListRQ"), exports);
|
|
60
66
|
__exportStar(require("./erp/rq/OrgQueryRQ"), exports);
|
|
67
|
+
__exportStar(require("./erp/rq/PlaceQueryRQ"), exports);
|
|
61
68
|
__exportStar(require("./erp/rq/QueryRQ"), exports);
|
|
62
69
|
__exportStar(require("./erp/rq/RefreshTokenRQ"), exports);
|
|
63
70
|
__exportStar(require("./erp/rq/RegionsRQ"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AddressPlaceBase } from './AddressPlaceBase';
|
|
2
|
+
/**
|
|
3
|
+
* Address autocomplete
|
|
4
|
+
* 地点自动填充
|
|
5
|
+
*/
|
|
6
|
+
export type AddressAutocomplete = {
|
|
7
|
+
/**
|
|
8
|
+
* Place id
|
|
9
|
+
* 地点编号
|
|
10
|
+
*/
|
|
11
|
+
placeId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Name
|
|
14
|
+
* 名称
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Place data
|
|
19
|
+
* 地点数据
|
|
20
|
+
*/
|
|
21
|
+
place?: AddressPlaceBase;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|