@longvansoftware/service-js-client 1.12.6 → 1.12.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.
@@ -190,8 +190,8 @@ exports.LINKING_USER_LOGIN_AND_USER_DETAIL = (0, graphql_tag_1.gql) `
190
190
  }
191
191
  `;
192
192
  exports.SEND_OTP = (0, graphql_tag_1.gql) `
193
- mutation SendOTP($orgId: String!, $phone: String!) {
194
- sendOTP(orgId: $orgId, phone: $phone) {
193
+ mutation SendOTP($orgId: String!, $phone: String!, $channelType: String) {
194
+ sendOTP(orgId: $orgId, phone: $phone, channelType: $channelType) {
195
195
  id
196
196
  code
197
197
  username
@@ -200,8 +200,8 @@ exports.SEND_OTP = (0, graphql_tag_1.gql) `
200
200
  }
201
201
  `;
202
202
  exports.VALIDATE_OTP = (0, graphql_tag_1.gql) `
203
- mutation ValidateOTP($otpCode: String!, $phone: String!) {
204
- validateOTP(otpCode: $otpCode, phone: $phone)
203
+ mutation ValidateOTP($otpCode: String!, $phone: String!, $channelType: String) {
204
+ validateOTP(otpCode: $otpCode, phone: $phone, channelType: $channelType)
205
205
  }
206
206
  `;
207
207
  exports.CREATE_USER_LOGIN = (0, graphql_tag_1.gql) `
@@ -10,4 +10,3 @@ export declare const UPDATE_PASSWORD: import("graphql").DocumentNode;
10
10
  export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
11
11
  export declare const UPDATE_DNS: import("graphql").DocumentNode;
12
12
  export declare const CREATE_DOMAIN_CONTACT: import("graphql").DocumentNode;
13
- export declare const GET_ORDER_CHANGE_RESOURCE_TERM: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
3
+ exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
6
6
  mutation GetDomainInfo($domainName: String!) {
@@ -181,18 +181,3 @@ exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
181
181
  }
182
182
  }
183
183
  `;
184
- exports.GET_ORDER_CHANGE_RESOURCE_TERM = (0, graphql_tag_1.gql) `
185
- mutation GetOrderChangeResourceTerm(
186
- $serviceId: String!
187
- $storeId: String!
188
- $createdBy: String!
189
- $partnerId: String!
190
- ) {
191
- getOrderChangeResourceTerm(
192
- serviceId: $serviceId
193
- storeId: $storeId
194
- createdBy: $createdBy
195
- partnerId: $partnerId
196
- )
197
- }
198
- `;
@@ -15,4 +15,3 @@ export declare const GET_OWNERS_BY_CUSTOMER_ID: import("graphql").DocumentNode;
15
15
  export declare const GET_CONTACTS_BY_OWNER_ID: import("graphql").DocumentNode;
16
16
  export declare const GET_DOMAIN_SUPPLIER: import("graphql").DocumentNode;
17
17
  export declare const CHECK_DOMAIN_EXIST: import("graphql").DocumentNode;
18
- export declare const SEARCH_ACTIONS: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
3
+ exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
6
6
  query CheckDomainNameAvailable($domainName: String!) {
@@ -292,48 +292,3 @@ exports.CHECK_DOMAIN_EXIST = (0, graphql_tag_1.gql) `
292
292
  checkDomainExist(domainName: $domainName)
293
293
  }
294
294
  `;
295
- exports.SEARCH_ACTIONS = (0, graphql_tag_1.gql) `
296
- query SearchActions($parameter: ParameterSearchAction) {
297
- searchActions(parameter: $parameter) {
298
- content {
299
- id
300
- partyId
301
- parentId
302
- name
303
- description
304
- workEffortTypeId
305
- targetId
306
- targetType
307
- targetUrl
308
- status
309
- endDateExpect
310
- endDateActual
311
- startDateActual
312
- startDateExpect
313
- totalTimeActual
314
- source
315
- ownerId
316
- detailUrl
317
- execDate
318
- retryCount
319
- exception
320
- attributes
321
- group
322
- requesterId
323
- receiverId
324
- createdBy
325
- createdStamp
326
- updatedBy
327
- updatedStamp
328
- }
329
- totalPages
330
- totalElements
331
- size
332
- number
333
- numberOfElements
334
- first
335
- last
336
- empty
337
- }
338
- }
339
- `;
@@ -12,7 +12,6 @@ exports.GET_SHARED_USER_BY_SERVICE = (0, graphql_tag_1.gql) `
12
12
  partyId
13
13
  partyName
14
14
  permission
15
- status
16
15
  }
17
16
  }
18
17
  `;
@@ -11,7 +11,6 @@ export declare const GET_CONTACT_INFOS_BY_COMPANY_ID: import("graphql").Document
11
11
  export declare const GET_PROVINCES: import("graphql").DocumentNode;
12
12
  export declare const GET_DISTRICTS: import("graphql").DocumentNode;
13
13
  export declare const GET_WARDS: import("graphql").DocumentNode;
14
- export declare const GET_WARDS_BY_PROVINCE_ID: import("graphql").DocumentNode;
15
14
  export declare const GET_VAT_INFOR_BY_OWNER_PARTY_ID: import("graphql").DocumentNode;
16
15
  export declare const GET_TEAM_BY_USER_ID: import("graphql").DocumentNode;
17
16
  export declare const GET_USERS_BY_TEAM_ID: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_USERS_BY_TEAM_ID = exports.GET_TEAM_BY_USER_ID = exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = exports.GET_WARDS_BY_PROVINCE_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
3
+ exports.GET_USERS_BY_TEAM_ID = exports.GET_TEAM_BY_USER_ID = exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
6
6
  query GetPersonByIds($partyIds: [String!]!) {
@@ -204,8 +204,8 @@ exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
204
204
  }
205
205
  `;
206
206
  exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
207
- query GetProvinces($version: Int) {
208
- getProvinces(version: $version) {
207
+ query GetProvinces {
208
+ getProvinces {
209
209
  geoId
210
210
  geoTypeId
211
211
  geoName
@@ -225,8 +225,8 @@ exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
225
225
  }
226
226
  `;
227
227
  exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
228
- query GetDistricts($provinceId: String!, $version: Int) {
229
- getDistricts(provinceId: $provinceId, version: $version) {
228
+ query GetDistricts($provinceId: String!) {
229
+ getDistricts(provinceId: $provinceId) {
230
230
  geoId
231
231
  geoTypeId
232
232
  geoName
@@ -246,29 +246,8 @@ exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
246
246
  }
247
247
  `;
248
248
  exports.GET_WARDS = (0, graphql_tag_1.gql) `
249
- query GetWards($districtId: String!, $version: Int) {
250
- getWards(districtId: $districtId, version: $version) {
251
- geoId
252
- geoTypeId
253
- geoName
254
- geoNameLocal
255
- geoCode
256
- geoSecCode
257
- abbreviation
258
- vnPostId
259
- jtExpressId
260
- vnPostRegion
261
- inetId
262
- lastUpdatedStamp
263
- lastUpdatedTxStamp
264
- createdStamp
265
- createdTxStamp
266
- }
267
- }
268
- `;
269
- exports.GET_WARDS_BY_PROVINCE_ID = (0, graphql_tag_1.gql) `
270
- query getWardsByProvinceId($provinceId: String!) {
271
- getWardsByProvinceId(provinceId: $provinceId) {
249
+ query GetWards($districtId: String!) {
250
+ getWards(districtId: $districtId) {
272
251
  geoId
273
252
  geoTypeId
274
253
  geoName
@@ -37,8 +37,8 @@ export declare class AuthService extends Service {
37
37
  getUserLoginByUserLoginId(userLoginId: string): Promise<any>;
38
38
  checkUsernameExisted(username: string): Promise<any>;
39
39
  getUserLoginsByPartyId(partyId: string): Promise<any>;
40
- sendOTP(phone: string): Promise<any>;
41
- validateOTP(otpCode: string, phone: string): Promise<any>;
40
+ sendOTP(phone: string, channelType: string | null): Promise<any>;
41
+ validateOTP(otpCode: string, phone: string, channelType: string | null): Promise<any>;
42
42
  createUserLogin(userLoginId: string): Promise<any>;
43
43
  createUserDetailWithoutUserLogin(name: string, phone: string, email: string): Promise<any>;
44
44
  getPhoneByPartyId(partyId: string): Promise<any>;
@@ -271,12 +271,13 @@ class AuthService extends serviceSDK_1.Service {
271
271
  }
272
272
  });
273
273
  }
274
- sendOTP(phone) {
274
+ sendOTP(phone, channelType) {
275
275
  return __awaiter(this, void 0, void 0, function* () {
276
276
  const mutation = mutations_1.SEND_OTP;
277
277
  const variables = {
278
278
  orgId: this.orgId,
279
279
  phone,
280
+ channelType
280
281
  };
281
282
  try {
282
283
  const response = yield this.graphqlMutation(mutation, variables);
@@ -288,12 +289,13 @@ class AuthService extends serviceSDK_1.Service {
288
289
  }
289
290
  });
290
291
  }
291
- validateOTP(otpCode, phone) {
292
+ validateOTP(otpCode, phone, channelType) {
292
293
  return __awaiter(this, void 0, void 0, function* () {
293
294
  const mutation = mutations_1.VALIDATE_OTP;
294
295
  const variables = {
295
296
  otpCode,
296
297
  phone,
298
+ channelType
297
299
  };
298
300
  try {
299
301
  const response = yield this.graphqlMutation(mutation, variables);
@@ -26,6 +26,8 @@ export declare class CloudService extends Service {
26
26
  getProductsOfService(serviceId: string): Promise<any>;
27
27
  getIpsOfService(serviceId: string): Promise<any>;
28
28
  getServicesByOrderId(orderId: string): Promise<any>;
29
+ checkDomainName(domainName: string): Promise<any>;
30
+ checkListDomainName(domainNames: [string]): Promise<any>;
29
31
  checkDomainNameAvailable(domainName: string): Promise<any>;
30
32
  checkDomainNameAvailableVnnic(domainNames: [string]): Promise<any>;
31
33
  getServiceTypeList(): Promise<any>;
@@ -33,8 +35,8 @@ export declare class CloudService extends Service {
33
35
  getDomainContacts(serviceId: string): Promise<any>;
34
36
  getOwnersByCustomerId(userId: string): Promise<any>;
35
37
  getContactsByOwnerId(ownerId: string): Promise<any>;
38
+ getDomainInfo(domainName: string): Promise<any>;
36
39
  getWhoisDomainInfo(domainName: string): Promise<any>;
37
40
  getDomainSupplier(serviceId: string): Promise<any>;
38
41
  checkDomainExist(domainName: string): Promise<any>;
39
- getOrderChangeResourceTerm(serviceId: string, createdBy: string): Promise<any>;
40
42
  }
@@ -295,7 +295,7 @@ class CloudService extends serviceSDK_1.Service {
295
295
  }
296
296
  });
297
297
  }
298
- checkDomainNameAvailable(domainName) {
298
+ checkDomainName(domainName) {
299
299
  return __awaiter(this, void 0, void 0, function* () {
300
300
  const mutation = mutations_1.CHECK_DOMAIN_NAME;
301
301
  const variables = {
@@ -311,7 +311,7 @@ class CloudService extends serviceSDK_1.Service {
311
311
  }
312
312
  });
313
313
  }
314
- checkDomainNameAvailableVnnic(domainNames) {
314
+ checkListDomainName(domainNames) {
315
315
  return __awaiter(this, void 0, void 0, function* () {
316
316
  const mutation = mutations_1.CHECK_LIST_DOMAIN_NAME;
317
317
  const variables = {
@@ -327,32 +327,38 @@ class CloudService extends serviceSDK_1.Service {
327
327
  }
328
328
  });
329
329
  }
330
- // async checkDomainNameAvailable(domainName: string) {
331
- // const query = CHECK_DOMAIN_NAME_AVAILABLE;
332
- // const variables = {
333
- // domainName,
334
- // };
335
- // try {
336
- // const response = await this.graphqlQueryV2(query, variables);
337
- // return response.checkDomainNameAvailable;
338
- // } catch (error) {
339
- // console.log(`Error in checkDomainNameAvailable: ${error}`);
340
- // throw error;
341
- // }
342
- // }
343
- // async checkDomainNameAvailableVnnic(domainNames: [string]) {
344
- // const query = CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC;
345
- // const variables = {
346
- // domainNames,
347
- // };
348
- // try {
349
- // const response = await this.graphqlQueryV2(query, variables);
350
- // return response.checkDomainNameAvailableVnnic;
351
- // } catch (error) {
352
- // console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
353
- // throw error;
354
- // }
355
- // }
330
+ checkDomainNameAvailable(domainName) {
331
+ return __awaiter(this, void 0, void 0, function* () {
332
+ const query = queries_1.CHECK_DOMAIN_NAME_AVAILABLE;
333
+ const variables = {
334
+ domainName,
335
+ };
336
+ try {
337
+ const response = yield this.graphqlQueryV2(query, variables);
338
+ return response.checkDomainNameAvailable;
339
+ }
340
+ catch (error) {
341
+ console.log(`Error in checkDomainNameAvailable: ${error}`);
342
+ throw error;
343
+ }
344
+ });
345
+ }
346
+ checkDomainNameAvailableVnnic(domainNames) {
347
+ return __awaiter(this, void 0, void 0, function* () {
348
+ const query = queries_1.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC;
349
+ const variables = {
350
+ domainNames,
351
+ };
352
+ try {
353
+ const response = yield this.graphqlQueryV2(query, variables);
354
+ return response.checkDomainNameAvailableVnnic;
355
+ }
356
+ catch (error) {
357
+ console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
358
+ throw error;
359
+ }
360
+ });
361
+ }
356
362
  getServiceTypeList() {
357
363
  return __awaiter(this, void 0, void 0, function* () {
358
364
  const query = queries_1.GET_SERVICE_TYPE_LIST;
@@ -423,7 +429,7 @@ class CloudService extends serviceSDK_1.Service {
423
429
  }
424
430
  });
425
431
  }
426
- getWhoisDomainInfo(domainName) {
432
+ getDomainInfo(domainName) {
427
433
  return __awaiter(this, void 0, void 0, function* () {
428
434
  const mutation = mutations_1.GET_DOMAIN_INFO;
429
435
  const variables = { domainName };
@@ -437,17 +443,20 @@ class CloudService extends serviceSDK_1.Service {
437
443
  }
438
444
  });
439
445
  }
440
- // async getWhoisDomainInfo(domainName: string) {
441
- // const query = GET_WHOIS_DOMAIN_INFO;
442
- // const variables = { domainName };
443
- // try {
444
- // const response = await this.graphqlQueryV2(query, variables);
445
- // return response.getWhoisDomainInfo;
446
- // } catch (error) {
447
- // console.log(`Error in getWhoisDomainInfo: ${error}`);
448
- // throw error;
449
- // }
450
- // }
446
+ getWhoisDomainInfo(domainName) {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ const query = queries_1.GET_WHOIS_DOMAIN_INFO;
449
+ const variables = { domainName };
450
+ try {
451
+ const response = yield this.graphqlQueryV2(query, variables);
452
+ return response.getWhoisDomainInfo;
453
+ }
454
+ catch (error) {
455
+ console.log(`Error in getWhoisDomainInfo: ${error}`);
456
+ throw error;
457
+ }
458
+ });
459
+ }
451
460
  getDomainSupplier(serviceId) {
452
461
  return __awaiter(this, void 0, void 0, function* () {
453
462
  const query = queries_1.GET_DOMAIN_SUPPLIER;
@@ -476,24 +485,5 @@ class CloudService extends serviceSDK_1.Service {
476
485
  }
477
486
  });
478
487
  }
479
- getOrderChangeResourceTerm(serviceId, createdBy) {
480
- return __awaiter(this, void 0, void 0, function* () {
481
- const mutation = mutations_1.GET_ORDER_CHANGE_RESOURCE_TERM;
482
- const variables = {
483
- serviceId,
484
- storeId: this.storeId,
485
- createdBy,
486
- partnerId: this.orgId,
487
- };
488
- try {
489
- const response = yield this.graphqlMutationV2(mutation, variables);
490
- return response.getOrderChangeResourceTerm;
491
- }
492
- catch (error) {
493
- console.log(`Error in getOrderChangeResourceTerm: ${error}`);
494
- throw error;
495
- }
496
- });
497
- }
498
488
  }
499
489
  exports.CloudService = CloudService;
@@ -19,10 +19,9 @@ export declare class UserService extends Service {
19
19
  getEmployeesByStoreChannelId(): Promise<any>;
20
20
  getCompanyByContactInfoId(contactId: string): Promise<any>;
21
21
  getContactInfosByCompanyId(companyId: string): Promise<any>;
22
- getProvinces(version: string): Promise<any>;
23
- getDistricts(provinceId: string, version: string): Promise<any>;
24
- getWards(districtId: string, version: string): Promise<any>;
25
- getWardsByProvinceId(provinceId: string): Promise<any>;
22
+ getProvinces(): Promise<any>;
23
+ getDistricts(provinceId: string): Promise<any>;
24
+ getWards(districtId: string): Promise<any>;
26
25
  getVatInfoByOwnerPartyId(ownerPartyId: string): Promise<any>;
27
26
  createVatInfo(createVatInfoRequest: any, createdBy: string): Promise<any>;
28
27
  updateVatInfo(id: string, updateVatInfoRequest: any, updateBy: string): Promise<any>;
@@ -301,12 +301,10 @@ class UserService extends serviceSDK_1.Service {
301
301
  }
302
302
  });
303
303
  }
304
- getProvinces(version) {
304
+ getProvinces() {
305
305
  return __awaiter(this, void 0, void 0, function* () {
306
306
  const query = queries_1.GET_PROVINCES;
307
- const variables = {
308
- version
309
- };
307
+ const variables = {};
310
308
  try {
311
309
  const response = yield this.graphqlQueryV2(query, variables);
312
310
  return response.getProvinces;
@@ -317,7 +315,7 @@ class UserService extends serviceSDK_1.Service {
317
315
  }
318
316
  });
319
317
  }
320
- getDistricts(provinceId, version) {
318
+ getDistricts(provinceId) {
321
319
  return __awaiter(this, void 0, void 0, function* () {
322
320
  const query = queries_1.GET_DISTRICTS;
323
321
  const variables = {
@@ -333,12 +331,11 @@ class UserService extends serviceSDK_1.Service {
333
331
  }
334
332
  });
335
333
  }
336
- getWards(districtId, version) {
334
+ getWards(districtId) {
337
335
  return __awaiter(this, void 0, void 0, function* () {
338
336
  const query = queries_1.GET_WARDS;
339
337
  const variables = {
340
338
  districtId,
341
- version
342
339
  };
343
340
  try {
344
341
  const response = yield this.graphqlQueryV2(query, variables);
@@ -350,22 +347,6 @@ class UserService extends serviceSDK_1.Service {
350
347
  }
351
348
  });
352
349
  }
353
- getWardsByProvinceId(provinceId) {
354
- return __awaiter(this, void 0, void 0, function* () {
355
- const query = queries_1.GET_WARDS_BY_PROVINCE_ID;
356
- const variables = {
357
- provinceId
358
- };
359
- try {
360
- const response = yield this.graphqlQueryV2(query, variables);
361
- return response.getWardsByProvinceId;
362
- }
363
- catch (error) {
364
- console.log(`Error in getWards: ${error}`);
365
- throw error;
366
- }
367
- });
368
- }
369
350
  getVatInfoByOwnerPartyId(ownerPartyId) {
370
351
  return __awaiter(this, void 0, void 0, function* () {
371
352
  const query = queries_1.GET_VAT_INFOR_BY_OWNER_PARTY_ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.12.6",
3
+ "version": "1.12.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [