@longvansoftware/storefront-js-client 4.6.4 → 4.6.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.
@@ -19,3 +19,5 @@ export declare const ADD_TOPIC_RELATED_RESOURCE: import("graphql").DocumentNode;
19
19
  export declare const CREATE_WORK_EFFORT_V2: import("graphql").DocumentNode;
20
20
  export declare const CREATE_ORG_MUTATION: import("graphql").DocumentNode;
21
21
  export declare const UPDATE_RESUME: import("graphql").DocumentNode;
22
+ export declare const UPLOAD_IMAGE_RESUME: import("graphql").DocumentNode;
23
+ export declare const CREATE_RESUME: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UPDATE_RESUME = exports.CREATE_ORG_MUTATION = exports.CREATE_WORK_EFFORT_V2 = exports.ADD_TOPIC_RELATED_RESOURCE = exports.CREATE_TOPIC = exports.CLOSE_TOPIC = exports.REMOVE_TAG = exports.UPDATE_CONNECTOR_DESCRIPTION = exports.ADD_TAG = exports.CREATE_CONNECTOR = exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = exports.CREATE_WORK_EFFORT = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION_V2 = exports.ADD_OPPORTUNITY_MUTATION = void 0;
3
+ exports.CREATE_RESUME = exports.UPLOAD_IMAGE_RESUME = exports.UPDATE_RESUME = exports.CREATE_ORG_MUTATION = exports.CREATE_WORK_EFFORT_V2 = exports.ADD_TOPIC_RELATED_RESOURCE = exports.CREATE_TOPIC = exports.CLOSE_TOPIC = exports.REMOVE_TAG = exports.UPDATE_CONNECTOR_DESCRIPTION = exports.ADD_TAG = exports.CREATE_CONNECTOR = exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = exports.CREATE_WORK_EFFORT = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION_V2 = exports.ADD_OPPORTUNITY_MUTATION = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
6
6
  mutation AddOpportunity(
@@ -1094,8 +1094,38 @@ exports.UPDATE_RESUME = (0, graphql_tag_1.gql) `
1094
1094
  ) {
1095
1095
  updateResume(
1096
1096
  resumeId: $resumeId
1097
- updatedBy:$updatedBy
1097
+ updatedBy: $updatedBy
1098
1098
  updateResumeRequests: $updateResumeRequests
1099
1099
  )
1100
1100
  }
1101
1101
  `;
1102
+ exports.UPLOAD_IMAGE_RESUME = (0, graphql_tag_1.gql) `
1103
+ mutation UploadImageResume(
1104
+ $resumeId: String
1105
+ $fieldName: String
1106
+ $uploadImageInput: UploadImageInput!
1107
+ $updatedBy: String!
1108
+ ) {
1109
+ uploadImageResume(
1110
+ resumeId: $resumeId
1111
+ fieldName: $fieldName
1112
+ uploadImageInput: $uploadImageInput
1113
+ updatedBy: $updatedBy
1114
+ )
1115
+ }
1116
+ `;
1117
+ exports.CREATE_RESUME = (0, graphql_tag_1.gql) `
1118
+ mutation CreateResume(
1119
+ $resumeTemplateId: String!
1120
+ $partyId: String!
1121
+ $createdBy: String!
1122
+ $name: String
1123
+ ) {
1124
+ createResume(
1125
+ resumeTemplateId: $resumeTemplateId
1126
+ partyId: $partyId
1127
+ createdBy: $createdBy
1128
+ name: $name
1129
+ )
1130
+ }
1131
+ `;
@@ -17,3 +17,4 @@ export declare const GET_MY_WORK_EFFORT_TODAY: import("graphql").DocumentNode;
17
17
  export declare const GET_MESSAGES: import("graphql").DocumentNode;
18
18
  export declare const GET_RESOURCE_RELATED_TOPIC: import("graphql").DocumentNode;
19
19
  export declare const GET_WORK_FLOWS: import("graphql").DocumentNode;
20
+ export declare const GET_RESUMES_BY_FIELD_NAME_AND_VALUE: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_WORK_FLOWS = exports.GET_RESOURCE_RELATED_TOPIC = exports.GET_MESSAGES = exports.GET_MY_WORK_EFFORT_TODAY = exports.SEARCH_TOPIC = exports.GET_TAG = exports.GET_CONNECTOR_BY_RESOURCE = exports.GET_WORK_EFFORT_BY_ID_V2 = exports.GET_WORK_EFFORT_BY_ID = exports.GET_WORK_EFFORTS_V2 = exports.GET_WORK_EFFORTS_V3 = exports.GET_WORK_EFFORTS = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
3
+ exports.GET_RESUMES_BY_FIELD_NAME_AND_VALUE = exports.GET_WORK_FLOWS = exports.GET_RESOURCE_RELATED_TOPIC = exports.GET_MESSAGES = exports.GET_MY_WORK_EFFORT_TODAY = exports.SEARCH_TOPIC = exports.GET_TAG = exports.GET_CONNECTOR_BY_RESOURCE = exports.GET_WORK_EFFORT_BY_ID_V2 = exports.GET_WORK_EFFORT_BY_ID = exports.GET_WORK_EFFORTS_V2 = exports.GET_WORK_EFFORTS_V3 = exports.GET_WORK_EFFORTS = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
6
6
  query GetListOpportunity(
@@ -941,3 +941,25 @@ exports.GET_WORK_FLOWS = (0, graphql_tag_1.gql) `
941
941
  }
942
942
  }
943
943
  `;
944
+ exports.GET_RESUMES_BY_FIELD_NAME_AND_VALUE = (0, graphql_tag_1.gql) `
945
+ query GetResumesByFieldNameAndValue(
946
+ $fieldName: String
947
+ $value: String
948
+ $resumeTemplateId: String
949
+ $orgId: String
950
+ ) {
951
+ getResumesByFieldNameAndValue(
952
+ fieldName: $fieldName
953
+ value: $value
954
+ resumeTemplateId: $resumeTemplateId
955
+ orgId: $orgId
956
+ ) {
957
+ resumeId
958
+ resumeName
959
+ status
960
+ statusCode
961
+ level
962
+ data
963
+ }
964
+ }
965
+ `;
@@ -131,7 +131,6 @@ exports.CREATE_PRODUCT_TEMPLATES_BY_PARTNER = (0, graphql_tag_1.gql) `
131
131
  priceTypeName
132
132
  priceVaries
133
133
  available
134
- tags
135
134
  options
136
135
  optionsRelationship
137
136
  compareAtPrice
@@ -206,7 +205,6 @@ exports.CREATE_PRODUCT_FROM_TEMPLATE = (0, graphql_tag_1.gql) `
206
205
  priceTypeName
207
206
  priceVaries
208
207
  available
209
- tags
210
208
  options
211
209
  optionsRelationship
212
210
  compareAtPrice
@@ -645,7 +643,6 @@ exports.CREATE_PRODUCT = (0, graphql_tag_1.gql) `
645
643
  priceTypeName
646
644
  priceVaries
647
645
  available
648
- tags
649
646
  options
650
647
  optionsRelationship
651
648
  compareAtPrice
@@ -120,15 +120,6 @@ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
120
120
  compareAtPrice
121
121
  featuredImage
122
122
  images
123
- tags {
124
- id
125
- name
126
- slug
127
- type
128
- scope
129
- storeIds
130
- selected
131
- }
132
123
  brand {
133
124
  id
134
125
  createStamp
@@ -249,15 +240,6 @@ exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
249
240
  compareAtPrice
250
241
  featuredImage
251
242
  images
252
- tags {
253
- id
254
- name
255
- slug
256
- type
257
- scope
258
- storeIds
259
- selected
260
- }
261
243
  version
262
244
  brand {
263
245
  id
@@ -392,15 +374,6 @@ exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
392
374
  priceTypeName
393
375
  priceVaries
394
376
  available
395
- tags {
396
- id
397
- name
398
- slug
399
- type
400
- scope
401
- storeIds
402
- selected
403
- }
404
377
  options
405
378
  optionsRelationship
406
379
  compareAtPrice
@@ -812,15 +785,6 @@ exports.GET_PRODUCT = (0, graphql_tag_1.gql) `
812
785
  priceTypeName
813
786
  priceVaries
814
787
  available
815
- tags {
816
- id
817
- name
818
- slug
819
- type
820
- scope
821
- storeIds
822
- selected
823
- }
824
788
  options
825
789
  optionsRelationship
826
790
  compareAtPrice
@@ -1014,15 +978,6 @@ exports.GET_PRODUCT_BY_GROUPID = (0, graphql_tag_1.gql) `
1014
978
  priceTypeName
1015
979
  priceVaries
1016
980
  available
1017
- tags {
1018
- id
1019
- name
1020
- slug
1021
- type
1022
- scope
1023
- storeIds
1024
- selected
1025
- }
1026
981
  options
1027
982
  optionsRelationship
1028
983
  compareAtPrice
@@ -1275,15 +1230,6 @@ exports.GET_PRODUCT_MARKET_PLACE = (0, graphql_tag_1.gql) `
1275
1230
  featuredImage
1276
1231
  version
1277
1232
  images
1278
- tags {
1279
- id
1280
- name
1281
- slug
1282
- type
1283
- scope
1284
- storeIds
1285
- selected
1286
- }
1287
1233
  featureTypes {
1288
1234
  id
1289
1235
  keyId
@@ -1433,15 +1379,6 @@ exports.GET_PRODUCT_MARKET_PLACE_DETAIL_BY_SLUG = (0, graphql_tag_1.gql) `
1433
1379
  usedCreatedChild
1434
1380
  }
1435
1381
  }
1436
- tags {
1437
- id
1438
- name
1439
- slug
1440
- type
1441
- scope
1442
- storeIds
1443
- selected
1444
- }
1445
1382
  variants {
1446
1383
  id
1447
1384
  handle
@@ -1562,15 +1499,6 @@ exports.GET_PRODUCT_MARKET_PLACE_BY_ID = (0, graphql_tag_1.gql) `
1562
1499
  usedCreatedChild
1563
1500
  }
1564
1501
  }
1565
- tags {
1566
- id
1567
- name
1568
- slug
1569
- type
1570
- scope
1571
- storeIds
1572
- selected
1573
- }
1574
1502
  variants {
1575
1503
  id
1576
1504
  handle
@@ -1740,15 +1668,6 @@ exports.GET_PRODUCT_MARKET_PLACE_BY_SUPPLIER = (0, graphql_tag_1.gql) `
1740
1668
  resourceType
1741
1669
  scope
1742
1670
  }
1743
- tags {
1744
- id
1745
- name
1746
- slug
1747
- type
1748
- scope
1749
- storeIds
1750
- selected
1751
- }
1752
1671
  }
1753
1672
  }
1754
1673
  }
@@ -45,4 +45,7 @@ export declare class CrmService extends Service {
45
45
  getWorkflows(group: string, keyword: string): Promise<any>;
46
46
  createOrg(orgName: string, providerId: string, groupTenantId: string): Promise<any>;
47
47
  updateResume(resumeId: string, updateResumeRequests: any, updatedBy: string): Promise<any>;
48
+ getResumesByFieldNameAndValue(orgId: string, fieldName: string, value: string, resumeTemplateId: string): Promise<any>;
49
+ uploadImageResume(resumeId: string, fieldName: string, uploadImageInput: any, updatedBy: string): Promise<any>;
50
+ createResume(resumeTemplateId: string, partyId: string, createdBy: string, name: string): Promise<any>;
48
51
  }
@@ -774,5 +774,59 @@ class CrmService extends serviceSDK_1.Service {
774
774
  }
775
775
  });
776
776
  }
777
+ getResumesByFieldNameAndValue(orgId, fieldName, value, resumeTemplateId) {
778
+ return __awaiter(this, void 0, void 0, function* () {
779
+ const query = queries_1.GET_RESUMES_BY_FIELD_NAME_AND_VALUE;
780
+ const variables = {
781
+ orgId,
782
+ fieldName,
783
+ value,
784
+ resumeTemplateId,
785
+ };
786
+ try {
787
+ const response = yield this.graphqlQuery(query, variables);
788
+ return response.getResumesByFieldNameAndValue;
789
+ }
790
+ catch (error) {
791
+ throw error;
792
+ }
793
+ });
794
+ }
795
+ uploadImageResume(resumeId, fieldName, uploadImageInput, updatedBy) {
796
+ return __awaiter(this, void 0, void 0, function* () {
797
+ const mutation = mutations_1.UPLOAD_IMAGE_RESUME;
798
+ const variables = {
799
+ resumeId,
800
+ fieldName,
801
+ uploadImageInput,
802
+ updatedBy,
803
+ };
804
+ try {
805
+ const response = yield this.graphqlMutation(mutation, variables);
806
+ return response.uploadImageResume;
807
+ }
808
+ catch (error) {
809
+ throw error;
810
+ }
811
+ });
812
+ }
813
+ createResume(resumeTemplateId, partyId, createdBy, name) {
814
+ return __awaiter(this, void 0, void 0, function* () {
815
+ const mutation = mutations_1.CREATE_RESUME;
816
+ const variables = {
817
+ resumeTemplateId,
818
+ partyId,
819
+ createdBy,
820
+ name,
821
+ };
822
+ try {
823
+ const response = yield this.graphqlMutation(mutation, variables);
824
+ return response.createResume;
825
+ }
826
+ catch (error) {
827
+ throw error;
828
+ }
829
+ });
830
+ }
777
831
  }
778
832
  exports.CrmService = CrmService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.6.4",
3
+ "version": "4.6.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [