@longvansoftware/storefront-js-client 4.7.2 → 4.7.4

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,4 @@ export declare const GET_RESOURCE_RELATED_TOPIC: import("graphql").DocumentNode;
19
19
  export declare const GET_WORK_FLOWS: import("graphql").DocumentNode;
20
20
  export declare const GET_RESUMES_BY_FIELD_NAME_AND_VALUE: import("graphql").DocumentNode;
21
21
  export declare const GET_RESUMES_BY_FIELD_NAME_AND_VALUES: import("graphql").DocumentNode;
22
+ export declare const GET_RESUME_BY_ID: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_RESUMES_BY_FIELD_NAME_AND_VALUES = 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;
3
+ exports.GET_RESUME_BY_ID = exports.GET_RESUMES_BY_FIELD_NAME_AND_VALUES = 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(
@@ -983,3 +983,15 @@ exports.GET_RESUMES_BY_FIELD_NAME_AND_VALUES = (0, graphql_tag_1.gql) `
983
983
  }
984
984
  }
985
985
  `;
986
+ exports.GET_RESUME_BY_ID = (0, graphql_tag_1.gql) `
987
+ query GetResumeById($resumeId: String) {
988
+ getResumeById(resumeId: $resumeId) {
989
+ resumeId
990
+ resumeName
991
+ status
992
+ statusCode
993
+ level
994
+ data
995
+ }
996
+ }
997
+ `;
@@ -2,4 +2,5 @@ export declare const CANCEL_PAYMENT: import("graphql").DocumentNode;
2
2
  export declare const CONFIRM_TO_GATEWAY: import("graphql").DocumentNode;
3
3
  export declare const CONFIRM_PAYMENT_SUCCESS_MANUAL: import("graphql").DocumentNode;
4
4
  export declare const HANDLE_UPDATE_GATEWAY_CONFIG: import("graphql").DocumentNode;
5
+ export declare const CREATE_PAYMENT: import("graphql").DocumentNode;
5
6
  export declare const HANDLE_CREATE_GATEWAY_CONFIG: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HANDLE_CREATE_GATEWAY_CONFIG = exports.HANDLE_UPDATE_GATEWAY_CONFIG = exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = exports.CONFIRM_TO_GATEWAY = exports.CANCEL_PAYMENT = void 0;
3
+ exports.HANDLE_CREATE_GATEWAY_CONFIG = exports.CREATE_PAYMENT = exports.HANDLE_UPDATE_GATEWAY_CONFIG = exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = exports.CONFIRM_TO_GATEWAY = exports.CANCEL_PAYMENT = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
6
6
  mutation CancelPayment($paymentId: String!, $reason: String!) {
@@ -89,6 +89,20 @@ exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
89
89
  }
90
90
  }
91
91
  `;
92
+ exports.CREATE_PAYMENT = (0, graphql_tag_1.gql) `
93
+ mutation CreatePayment($paymentData: Payment) {
94
+ createPayment(paymentData: $paymentData) {
95
+ code
96
+ message
97
+ data
98
+ qrCodeUrl
99
+ deeplink
100
+ deeplinkMiniApp
101
+ paymentId
102
+ gwConfigId
103
+ }
104
+ }
105
+ `;
92
106
  exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
93
107
  mutation HandleCreateGatewayConfig(
94
108
  $input: PaymentGatewayConfigInput!
@@ -8,3 +8,4 @@ export declare const GET_PAYMENT_METHOD_TITLES: import("graphql").DocumentNode;
8
8
  export declare const GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE: import("graphql").DocumentNode;
9
9
  export declare const GET_PAYMENT_METHOD_TYPES_V2: import("graphql").DocumentNode;
10
10
  export declare const GET_TRANSFER_INFO: import("graphql").DocumentNode;
11
+ export declare const PAYMENT_METHODS_BY_PARTNER: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_TRANSFER_INFO = exports.GET_PAYMENT_METHOD_TYPES_V2 = exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = exports.GET_PAYMENT_METHOD_TITLES = exports.GW_CONFIG_DETAIL = exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
3
+ exports.PAYMENT_METHODS_BY_PARTNER = exports.GET_TRANSFER_INFO = exports.GET_PAYMENT_METHOD_TYPES_V2 = exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = exports.GET_PAYMENT_METHOD_TITLES = exports.GW_CONFIG_DETAIL = exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
6
  query PaymentsByOrders($orderIds: [String!]!) {
@@ -275,3 +275,22 @@ exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
275
275
  }
276
276
  }
277
277
  `;
278
+ exports.PAYMENT_METHODS_BY_PARTNER = (0, graphql_tag_1.gql) `
279
+ query PaymentMethodsByPartner($partnerCode: String) {
280
+ paymentMethods(partnerCode: $partnerCode ) {
281
+ id
282
+ code
283
+ description
284
+ image
285
+ name
286
+ titles {
287
+ id
288
+ code
289
+ name
290
+ lang
291
+ showField
292
+ required
293
+ }
294
+ }
295
+ }
296
+ `;
@@ -50,4 +50,5 @@ export declare class CrmService extends Service {
50
50
  createResume(resumeTemplateId: string, partyId: string, createdBy: string, name: string): Promise<any>;
51
51
  createSupportRequest(title: string, content: string, fileUrl: string, source: string, userId: string, uri: string): Promise<any>;
52
52
  getResumesByFieldNameAndValues(resumeTemplateId: string, orgId: string, fieldNameValues: any): Promise<any>;
53
+ getResumeById(resumeId: string): Promise<any>;
53
54
  }
@@ -26,7 +26,7 @@ class CrmService extends serviceSDK_1.Service {
26
26
  const variables = {
27
27
  partyId: this.orgId,
28
28
  performerId,
29
- addOpportunityRequest
29
+ addOpportunityRequest,
30
30
  };
31
31
  try {
32
32
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -44,7 +44,7 @@ class CrmService extends serviceSDK_1.Service {
44
44
  const variables = {
45
45
  partyId: this.orgId,
46
46
  performerId,
47
- addOpportunityRequest
47
+ addOpportunityRequest,
48
48
  };
49
49
  try {
50
50
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -62,7 +62,7 @@ class CrmService extends serviceSDK_1.Service {
62
62
  const variables = {
63
63
  partyId,
64
64
  performerId,
65
- addOpportunityRequest
65
+ addOpportunityRequest,
66
66
  };
67
67
  try {
68
68
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -79,7 +79,7 @@ class CrmService extends serviceSDK_1.Service {
79
79
  const variables = {
80
80
  partyId: this.orgId,
81
81
  performerId,
82
- getOpportunityRequest
82
+ getOpportunityRequest,
83
83
  };
84
84
  try {
85
85
  const response = yield this.graphqlQueryV2(query, variables);
@@ -96,7 +96,7 @@ class CrmService extends serviceSDK_1.Service {
96
96
  const query = queries_1.GET_LIST_TODO;
97
97
  const variables = {
98
98
  partyId: this.orgId,
99
- workEffortId
99
+ workEffortId,
100
100
  };
101
101
  try {
102
102
  const response = yield this.graphqlQueryV2(query, variables);
@@ -113,7 +113,7 @@ class CrmService extends serviceSDK_1.Service {
113
113
  const query = queries_1.GET_LIST_WORK_EFFORT_TYPE;
114
114
  const variables = {
115
115
  partyId: this.orgId,
116
- id
116
+ id,
117
117
  };
118
118
  try {
119
119
  const response = yield this.graphqlQueryV2(query, variables);
@@ -131,7 +131,7 @@ class CrmService extends serviceSDK_1.Service {
131
131
  const variables = {
132
132
  performerId,
133
133
  attachmentId,
134
- status
134
+ status,
135
135
  };
136
136
  try {
137
137
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -149,7 +149,7 @@ class CrmService extends serviceSDK_1.Service {
149
149
  const variables = {
150
150
  performerId,
151
151
  workEffortId,
152
- description
152
+ description,
153
153
  };
154
154
  try {
155
155
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -168,7 +168,7 @@ class CrmService extends serviceSDK_1.Service {
168
168
  partyId: this.orgId,
169
169
  performerId,
170
170
  workEffortId,
171
- newName: name
171
+ newName: name,
172
172
  };
173
173
  try {
174
174
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -188,7 +188,7 @@ class CrmService extends serviceSDK_1.Service {
188
188
  performerId,
189
189
  workEffortId,
190
190
  group,
191
- status
191
+ status,
192
192
  };
193
193
  try {
194
194
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -207,7 +207,7 @@ class CrmService extends serviceSDK_1.Service {
207
207
  partyId: this.orgId,
208
208
  performerId,
209
209
  workEffortId,
210
- addAttachmentRequest
210
+ addAttachmentRequest,
211
211
  };
212
212
  try {
213
213
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -225,7 +225,7 @@ class CrmService extends serviceSDK_1.Service {
225
225
  const variables = {
226
226
  partyId: this.orgId,
227
227
  performerId,
228
- getTicketRequest
228
+ getTicketRequest,
229
229
  };
230
230
  try {
231
231
  const response = yield this.graphqlQueryV2(query, variables);
@@ -244,7 +244,7 @@ class CrmService extends serviceSDK_1.Service {
244
244
  partyId: this.orgId,
245
245
  performerId,
246
246
  addTicketRequest,
247
- addAttachmentRequest
247
+ addAttachmentRequest,
248
248
  };
249
249
  try {
250
250
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -260,7 +260,7 @@ class CrmService extends serviceSDK_1.Service {
260
260
  return __awaiter(this, void 0, void 0, function* () {
261
261
  const query = queries_1.GET_TICKET_BY_ID;
262
262
  const variables = {
263
- ticketId
263
+ ticketId,
264
264
  };
265
265
  try {
266
266
  const response = yield this.graphqlQueryV2(query, variables);
@@ -277,7 +277,7 @@ class CrmService extends serviceSDK_1.Service {
277
277
  const query = queries_1.GET_ATTACHMENT_BY_WORK_EFFORT_ID;
278
278
  const variables = {
279
279
  partyId: this.orgId,
280
- workEffortIds
280
+ workEffortIds,
281
281
  };
282
282
  try {
283
283
  const response = yield this.graphqlQueryV2(query, variables);
@@ -294,7 +294,7 @@ class CrmService extends serviceSDK_1.Service {
294
294
  const query = queries_1.GET_LIST_COMMENT;
295
295
  const variables = {
296
296
  partyId: this.orgId,
297
- getCommentRequest
297
+ getCommentRequest,
298
298
  };
299
299
  try {
300
300
  const response = yield this.graphqlQueryV2(query, variables);
@@ -315,7 +315,7 @@ class CrmService extends serviceSDK_1.Service {
315
315
  format: params.addAttachmentRequest ? "ATTACHMENT" : "TEXT",
316
316
  content: params.content,
317
317
  referId: params.referId,
318
- addAttachmentRequest: params.addAttachmentRequest
318
+ addAttachmentRequest: params.addAttachmentRequest,
319
319
  };
320
320
  try {
321
321
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -339,7 +339,7 @@ class CrmService extends serviceSDK_1.Service {
339
339
  group,
340
340
  attributes,
341
341
  addAttachmentRequest,
342
- parentId
342
+ parentId,
343
343
  };
344
344
  try {
345
345
  const response = yield this.graphqlMutationV2(query, variables);
@@ -359,7 +359,7 @@ class CrmService extends serviceSDK_1.Service {
359
359
  name,
360
360
  decription,
361
361
  workEffortTypeId,
362
- source
362
+ source,
363
363
  };
364
364
  try {
365
365
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -383,7 +383,7 @@ class CrmService extends serviceSDK_1.Service {
383
383
  sorts,
384
384
  attributes,
385
385
  fromDate,
386
- toDate
386
+ toDate,
387
387
  };
388
388
  try {
389
389
  const response = yield this.graphqlQueryV2(query, variables);
@@ -406,7 +406,7 @@ class CrmService extends serviceSDK_1.Service {
406
406
  pageSize,
407
407
  sorts,
408
408
  fromDate,
409
- toDate
409
+ toDate,
410
410
  };
411
411
  try {
412
412
  const response = yield this.graphqlQueryV2(query, variables);
@@ -424,7 +424,7 @@ class CrmService extends serviceSDK_1.Service {
424
424
  partnerId: this.orgId,
425
425
  performerId,
426
426
  workEffortTypeId,
427
- source
427
+ source,
428
428
  };
429
429
  try {
430
430
  const repsonse = yield this.graphqlQueryV2(query, variables);
@@ -439,7 +439,7 @@ class CrmService extends serviceSDK_1.Service {
439
439
  return __awaiter(this, void 0, void 0, function* () {
440
440
  const query = queries_1.GET_WORK_EFFORT_BY_ID;
441
441
  const variables = {
442
- id
442
+ id,
443
443
  };
444
444
  try {
445
445
  const response = yield this.graphqlMutationV2(query, variables);
@@ -454,7 +454,7 @@ class CrmService extends serviceSDK_1.Service {
454
454
  return __awaiter(this, void 0, void 0, function* () {
455
455
  const query = queries_1.GET_WORK_EFFORT_BY_ID_V2;
456
456
  const variables = {
457
- id
457
+ id,
458
458
  };
459
459
  try {
460
460
  const response = yield this.graphqlMutationV2(query, variables);
@@ -471,7 +471,7 @@ class CrmService extends serviceSDK_1.Service {
471
471
  const variables = {
472
472
  workEffortId,
473
473
  processStatus,
474
- performerId
474
+ performerId,
475
475
  };
476
476
  try {
477
477
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -489,7 +489,7 @@ class CrmService extends serviceSDK_1.Service {
489
489
  const variables = {
490
490
  resourceId,
491
491
  resourceType,
492
- type
492
+ type,
493
493
  };
494
494
  try {
495
495
  const response = yield this.graphqlQueryV2(query, variables);
@@ -508,7 +508,7 @@ class CrmService extends serviceSDK_1.Service {
508
508
  resourceType,
509
509
  description,
510
510
  type,
511
- createdBy
511
+ createdBy,
512
512
  };
513
513
  try {
514
514
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -526,7 +526,7 @@ class CrmService extends serviceSDK_1.Service {
526
526
  connectorId,
527
527
  tagTitle,
528
528
  tagId,
529
- addedBy
529
+ addedBy,
530
530
  };
531
531
  try {
532
532
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -543,7 +543,7 @@ class CrmService extends serviceSDK_1.Service {
543
543
  const variables = {
544
544
  connectorId,
545
545
  description,
546
- updatedBy
546
+ updatedBy,
547
547
  };
548
548
  try {
549
549
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -558,7 +558,7 @@ class CrmService extends serviceSDK_1.Service {
558
558
  return __awaiter(this, void 0, void 0, function* () {
559
559
  const queries = queries_1.GET_TAG;
560
560
  const variables = {
561
- connectorId
561
+ connectorId,
562
562
  };
563
563
  try {
564
564
  const response = yield this.graphqlQueryV2(queries, variables);
@@ -575,7 +575,7 @@ class CrmService extends serviceSDK_1.Service {
575
575
  const variables = {
576
576
  connectorId,
577
577
  tagId,
578
- removedBy
578
+ removedBy,
579
579
  };
580
580
  try {
581
581
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -593,7 +593,7 @@ class CrmService extends serviceSDK_1.Service {
593
593
  filterTopicRequest: filterTopicRequest,
594
594
  partnerId: this.orgId,
595
595
  pageSize,
596
- currentPage
596
+ currentPage,
597
597
  };
598
598
  try {
599
599
  const response = yield this.graphqlMutationV2(query, variables);
@@ -609,7 +609,7 @@ class CrmService extends serviceSDK_1.Service {
609
609
  const mutation = mutations_1.CLOSE_TOPIC;
610
610
  const variables = {
611
611
  id,
612
- updatedBy
612
+ updatedBy,
613
613
  };
614
614
  try {
615
615
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -626,7 +626,7 @@ class CrmService extends serviceSDK_1.Service {
626
626
  const variables = {
627
627
  socialAppId,
628
628
  customerId,
629
- message
629
+ message,
630
630
  };
631
631
  try {
632
632
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -644,7 +644,7 @@ class CrmService extends serviceSDK_1.Service {
644
644
  filterTopicRequest,
645
645
  partnerId: this.orgId,
646
646
  pageSize,
647
- currentPage
647
+ currentPage,
648
648
  };
649
649
  try {
650
650
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -661,7 +661,7 @@ class CrmService extends serviceSDK_1.Service {
661
661
  const variables = {
662
662
  partnerId: this.orgId,
663
663
  performerId,
664
- source
664
+ source,
665
665
  };
666
666
  try {
667
667
  const response = yield this.graphqlQuery(query, variables);
@@ -678,7 +678,7 @@ class CrmService extends serviceSDK_1.Service {
678
678
  const variables = {
679
679
  topicId,
680
680
  pageSize,
681
- pageNumber
681
+ pageNumber,
682
682
  };
683
683
  try {
684
684
  const response = yield this.graphqlQuery(query, variables);
@@ -694,7 +694,7 @@ class CrmService extends serviceSDK_1.Service {
694
694
  const query = queries_1.GET_RESOURCE_RELATED_TOPIC;
695
695
  const variables = {
696
696
  topicId,
697
- resourceType
697
+ resourceType,
698
698
  };
699
699
  try {
700
700
  const response = yield this.graphqlQuery(query, variables);
@@ -712,7 +712,7 @@ class CrmService extends serviceSDK_1.Service {
712
712
  topicId,
713
713
  resourceId,
714
714
  resourceType,
715
- createdBy
715
+ createdBy,
716
716
  };
717
717
  try {
718
718
  const response = yield this.graphqlMutation(mutation, variables);
@@ -729,7 +729,7 @@ class CrmService extends serviceSDK_1.Service {
729
729
  const variables = {
730
730
  partnerId: this.orgId,
731
731
  group,
732
- keyword
732
+ keyword,
733
733
  };
734
734
  try {
735
735
  const response = yield this.graphqlQuery(query, variables);
@@ -745,7 +745,7 @@ class CrmService extends serviceSDK_1.Service {
745
745
  const variables = {
746
746
  orgName,
747
747
  providerId,
748
- groupTenantId
748
+ groupTenantId,
749
749
  };
750
750
  try {
751
751
  const response = yield this.graphqlMutationV2(mutations_1.CREATE_ORG_MUTATION, variables);
@@ -763,7 +763,7 @@ class CrmService extends serviceSDK_1.Service {
763
763
  const variables = {
764
764
  resumeId,
765
765
  updateResumeRequests,
766
- updatedBy
766
+ updatedBy,
767
767
  };
768
768
  try {
769
769
  const response = yield this.graphqlMutation(mutation, variables);
@@ -781,7 +781,7 @@ class CrmService extends serviceSDK_1.Service {
781
781
  orgId,
782
782
  fieldName,
783
783
  value,
784
- resumeTemplateId
784
+ resumeTemplateId,
785
785
  };
786
786
  try {
787
787
  const response = yield this.graphqlQuery(query, variables);
@@ -799,7 +799,7 @@ class CrmService extends serviceSDK_1.Service {
799
799
  resumeId,
800
800
  fieldName,
801
801
  uploadImageInput,
802
- updatedBy
802
+ updatedBy,
803
803
  };
804
804
  try {
805
805
  const response = yield this.graphqlMutation(mutation, variables);
@@ -817,7 +817,7 @@ class CrmService extends serviceSDK_1.Service {
817
817
  resumeTemplateId,
818
818
  partyId,
819
819
  createdBy,
820
- name
820
+ name,
821
821
  };
822
822
  try {
823
823
  const response = yield this.graphqlMutation(mutation, variables);
@@ -838,7 +838,7 @@ class CrmService extends serviceSDK_1.Service {
838
838
  source,
839
839
  orgId: this.orgId,
840
840
  userId,
841
- uri
841
+ uri,
842
842
  };
843
843
  try {
844
844
  const response = yield this.graphqlMutation(mutation, variables);
@@ -855,7 +855,7 @@ class CrmService extends serviceSDK_1.Service {
855
855
  const variables = {
856
856
  resumeTemplateId,
857
857
  orgId,
858
- fieldNameValues
858
+ fieldNameValues,
859
859
  };
860
860
  try {
861
861
  const response = yield this.graphqlQuery(queries, variables);
@@ -866,5 +866,20 @@ class CrmService extends serviceSDK_1.Service {
866
866
  }
867
867
  });
868
868
  }
869
+ getResumeById(resumeId) {
870
+ return __awaiter(this, void 0, void 0, function* () {
871
+ const queries = queries_1.GET_RESUME_BY_ID;
872
+ const variables = {
873
+ resumeId
874
+ };
875
+ try {
876
+ const response = yield this.graphqlQuery(queries, variables);
877
+ return response.getResumeById;
878
+ }
879
+ catch (error) {
880
+ throw error;
881
+ }
882
+ });
883
+ }
869
884
  }
870
885
  exports.CrmService = CrmService;
@@ -16,4 +16,13 @@ export declare class PaymentServiceV2 extends Service {
16
16
  getPaymentGatewaysByMethodCode(methodCode: string): Promise<any>;
17
17
  getPaymentMethodTypesV2(storeActive: any, allMethodTypes: boolean): Promise<any>;
18
18
  getTransferInfo(storeId: string, paymentId: string): Promise<any>;
19
+ createPayment(paymentData: {
20
+ totalAmount: number;
21
+ storeID: string;
22
+ partnerCode: string;
23
+ methodCode: string;
24
+ phone?: string;
25
+ email?: string;
26
+ }): Promise<any>;
27
+ paymentMethodsByPartner(partnerCode?: string): Promise<any>;
19
28
  }
@@ -260,5 +260,31 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
260
260
  }
261
261
  });
262
262
  }
263
+ createPayment(paymentData) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ const mutation = mutations_1.CREATE_PAYMENT;
266
+ const variables = { paymentData };
267
+ try {
268
+ const response = yield this.graphqlMutationV3(mutation, variables);
269
+ return response.createPayment;
270
+ }
271
+ catch (error) {
272
+ throw error;
273
+ }
274
+ });
275
+ }
276
+ paymentMethodsByPartner(partnerCode) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ const query = queries_1.PAYMENT_METHODS_BY_PARTNER;
279
+ const variables = { partnerCode };
280
+ try {
281
+ const response = yield this.graphqlQueryV3(query, variables);
282
+ return response.paymentMethods;
283
+ }
284
+ catch (error) {
285
+ throw error;
286
+ }
287
+ });
288
+ }
263
289
  }
264
290
  exports.PaymentServiceV2 = PaymentServiceV2;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [
@@ -1 +0,0 @@
1
- export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_SERVICE = void 0;
4
- const graphql_tag_1 = require("graphql-tag");
5
- exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
6
- query SearchService($filter: CloudServiceFilterInput) {
7
- searchService(filter: $filter) {
8
- total
9
- offset
10
- maxResult
11
- resultList {
12
- supplierId
13
- serviceId
14
- partnerId
15
- serviceName
16
- type
17
- typeName
18
- status
19
- statusFulfillment
20
- ownerId
21
- startDate
22
- endDate
23
- serviceType
24
- urlPrivate
25
- urlPublic
26
- username
27
- password
28
- attrs
29
- description
30
- productGroupId
31
- orderId
32
- actionRequest {
33
- id
34
- name
35
- uri
36
- type
37
- }
38
- billingCycle {
39
- quantity
40
- unit
41
- }
42
- productConfiguration {
43
- productId
44
- productTitle
45
- productResources {
46
- name
47
- quantity
48
- unit
49
- productId
50
- giftProductId
51
- gift
52
- giftQuantity
53
- campaignId
54
- campaignActionId
55
- qualify
56
- idParent
57
- addQuantity
58
- defaultQuantity
59
- title
60
- price
61
- unitPrice
62
- totalResource
63
- unitGift
64
- giftDuration
65
- giftDurationUnit
66
- }
67
- }
68
- }
69
- }
70
- }
71
- `;
@@ -1,5 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class CloudServiceService extends Service {
3
- constructor(endpoint: string, orgId: string, storeId: string);
4
- searchService(data: any): Promise<any>;
5
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CloudServiceService = void 0;
13
- const serviceSDK_1 = require("../serviceSDK");
14
- const queries_1 = require("../../graphql/cloudService/queries");
15
- class CloudServiceService extends serviceSDK_1.Service {
16
- constructor(endpoint, orgId, storeId) {
17
- super(endpoint, orgId, storeId);
18
- }
19
- searchService(data) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = queries_1.SEARCH_SERVICE;
22
- const variables = {
23
- filter: data,
24
- };
25
- try {
26
- const response = yield this.graphqlQueryV4(query, variables);
27
- return response.searchService;
28
- }
29
- catch (error) {
30
- throw error;
31
- }
32
- });
33
- }
34
- }
35
- exports.CloudServiceService = CloudServiceService;