@longvansoftware/service-js-client 1.12.5 → 1.12.6

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.
@@ -15,3 +15,4 @@ 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.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.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;
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,3 +292,48 @@ 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
+ `;
@@ -11,6 +11,7 @@ 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;
14
15
  export declare const GET_VAT_INFOR_BY_OWNER_PARTY_ID: import("graphql").DocumentNode;
15
16
  export declare const GET_TEAM_BY_USER_ID: import("graphql").DocumentNode;
16
17
  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 = 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_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;
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 {
208
- getProvinces {
207
+ query GetProvinces($version: Int) {
208
+ getProvinces(version: $version) {
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!) {
229
- getDistricts(provinceId: $provinceId) {
228
+ query GetDistricts($provinceId: String!, $version: Int) {
229
+ getDistricts(provinceId: $provinceId, version: $version) {
230
230
  geoId
231
231
  geoTypeId
232
232
  geoName
@@ -246,8 +246,29 @@ 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!) {
250
- getWards(districtId: $districtId) {
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) {
251
272
  geoId
252
273
  geoTypeId
253
274
  geoName
@@ -19,9 +19,10 @@ 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(): Promise<any>;
23
- getDistricts(provinceId: string): Promise<any>;
24
- getWards(districtId: 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>;
25
26
  getVatInfoByOwnerPartyId(ownerPartyId: string): Promise<any>;
26
27
  createVatInfo(createVatInfoRequest: any, createdBy: string): Promise<any>;
27
28
  updateVatInfo(id: string, updateVatInfoRequest: any, updateBy: string): Promise<any>;
@@ -301,10 +301,12 @@ class UserService extends serviceSDK_1.Service {
301
301
  }
302
302
  });
303
303
  }
304
- getProvinces() {
304
+ getProvinces(version) {
305
305
  return __awaiter(this, void 0, void 0, function* () {
306
306
  const query = queries_1.GET_PROVINCES;
307
- const variables = {};
307
+ const variables = {
308
+ version
309
+ };
308
310
  try {
309
311
  const response = yield this.graphqlQueryV2(query, variables);
310
312
  return response.getProvinces;
@@ -315,7 +317,7 @@ class UserService extends serviceSDK_1.Service {
315
317
  }
316
318
  });
317
319
  }
318
- getDistricts(provinceId) {
320
+ getDistricts(provinceId, version) {
319
321
  return __awaiter(this, void 0, void 0, function* () {
320
322
  const query = queries_1.GET_DISTRICTS;
321
323
  const variables = {
@@ -331,11 +333,12 @@ class UserService extends serviceSDK_1.Service {
331
333
  }
332
334
  });
333
335
  }
334
- getWards(districtId) {
336
+ getWards(districtId, version) {
335
337
  return __awaiter(this, void 0, void 0, function* () {
336
338
  const query = queries_1.GET_WARDS;
337
339
  const variables = {
338
340
  districtId,
341
+ version
339
342
  };
340
343
  try {
341
344
  const response = yield this.graphqlQueryV2(query, variables);
@@ -347,6 +350,22 @@ class UserService extends serviceSDK_1.Service {
347
350
  }
348
351
  });
349
352
  }
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
+ }
350
369
  getVatInfoByOwnerPartyId(ownerPartyId) {
351
370
  return __awaiter(this, void 0, void 0, function* () {
352
371
  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.5",
3
+ "version": "1.12.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [