@longvansoftware/storefront-js-client 3.7.0 → 3.7.2
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/dist/src/graphql/crm/mutations.js +3 -2
- package/dist/src/graphql/paymentV2/mutations.js +4 -0
- package/dist/src/lib/crm/index.d.ts +1 -1
- package/dist/src/lib/crm/index.js +2 -2
- package/dist/src/lib/paymentV2/index.d.ts +1 -1
- package/dist/src/lib/paymentV2/index.js +5 -3
- package/package.json +1 -1
|
@@ -431,7 +431,7 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
|
431
431
|
$name: String
|
|
432
432
|
$description: String
|
|
433
433
|
$workEffortTypeId: String!
|
|
434
|
-
$
|
|
434
|
+
$group: String
|
|
435
435
|
$attributes: JSON
|
|
436
436
|
$addAttachmentRequest: [AddAttachmentRequest]
|
|
437
437
|
$parentId: String
|
|
@@ -442,7 +442,7 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
|
442
442
|
name: $name
|
|
443
443
|
description: $description
|
|
444
444
|
workEffortTypeId: $workEffortTypeId
|
|
445
|
-
|
|
445
|
+
group: $group
|
|
446
446
|
attributes: $attributes
|
|
447
447
|
addAttachmentRequest: $addAttachmentRequest
|
|
448
448
|
parentId: $parentId
|
|
@@ -506,6 +506,7 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
|
506
506
|
startDateActual
|
|
507
507
|
startDateExpect
|
|
508
508
|
source
|
|
509
|
+
group
|
|
509
510
|
owner {
|
|
510
511
|
id
|
|
511
512
|
fullName
|
|
@@ -10,11 +10,15 @@ exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
|
|
|
10
10
|
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
11
11
|
mutation ConfirmToGateWay(
|
|
12
12
|
$paymentId: String!
|
|
13
|
+
$storeId: String
|
|
14
|
+
$methodTypeCode: String
|
|
13
15
|
$methodCode: String
|
|
14
16
|
$returnUrl: String
|
|
15
17
|
) {
|
|
16
18
|
confirmToGateway(
|
|
17
19
|
paymentId: $paymentId
|
|
20
|
+
storeId: $storeId
|
|
21
|
+
methodTypeCode: $methodTypeCode
|
|
18
22
|
methodCode: $methodCode
|
|
19
23
|
returnUrl: $returnUrl
|
|
20
24
|
) {
|
|
@@ -20,7 +20,7 @@ export declare class CrmService extends Service {
|
|
|
20
20
|
getAttachmentByWorkEffortId(workEffortIds: [string]): Promise<any>;
|
|
21
21
|
getListComment(getCommentRequest: GetCommentRequest): Promise<any>;
|
|
22
22
|
addComment(params: any): Promise<any>;
|
|
23
|
-
createWorkEffort(createdBy: string, name: String, decription: string, workEffortTypeId: string,
|
|
23
|
+
createWorkEffort(createdBy: string, name: String, decription: string, workEffortTypeId: string, group: string, attributes: object, addAttachmentRequest: AddAttachmentRequest, parentId?: string): Promise<any>;
|
|
24
24
|
createWorkEffortV2(createdBy: string, name: string, decription: string, workEffortTypeId: string, source: string): Promise<any>;
|
|
25
25
|
getWorkEfforts(performerId: string, workflowId: string, group: string, pageNumber: number, pageSize: number, sorts: BaseSort, attributes: object, fromDate: any, toDate: any): Promise<any>;
|
|
26
26
|
getWorkEffortsV3(performerId: string, workflowId: string, group: string, pageNumber: number, pageSize: number, sorts: BaseSort, fromDate: string, toDate: string): Promise<any>;
|
|
@@ -327,7 +327,7 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
createWorkEffort(createdBy, name, decription, workEffortTypeId,
|
|
330
|
+
createWorkEffort(createdBy, name, decription, workEffortTypeId, group, attributes, addAttachmentRequest, parentId) {
|
|
331
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
332
|
const query = mutations_1.CREATE_WORK_EFFORT;
|
|
333
333
|
const variables = {
|
|
@@ -336,7 +336,7 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
336
336
|
name,
|
|
337
337
|
decription,
|
|
338
338
|
workEffortTypeId,
|
|
339
|
-
|
|
339
|
+
group,
|
|
340
340
|
attributes,
|
|
341
341
|
addAttachmentRequest,
|
|
342
342
|
parentId,
|
|
@@ -6,7 +6,7 @@ export declare class PaymentServiceV2 extends Service {
|
|
|
6
6
|
paymentMethods(): Promise<any>;
|
|
7
7
|
getPaymentMethodTypes(): Promise<any>;
|
|
8
8
|
paymentInfo(paymentId: string): Promise<any>;
|
|
9
|
-
confirmToGateway(paymentId: string, methodCode: string, returnUrl: string): Promise<any>;
|
|
9
|
+
confirmToGateway(paymentId: string, methodTypeCode: string, methodCode: string, returnUrl: string): Promise<any>;
|
|
10
10
|
paymentStatus(paymentId: string): Promise<any>;
|
|
11
11
|
gwConfigDetail(configId: string): Promise<any>;
|
|
12
12
|
confirmPaymentSuccessManual(paymentId: string, transactionNo: string, note: string, confirmBy: string): Promise<any>;
|
|
@@ -92,11 +92,13 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
confirmToGateway(paymentId, methodCode, returnUrl) {
|
|
95
|
+
confirmToGateway(paymentId, methodTypeCode, methodCode, returnUrl) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
97
|
const mutation = mutations_1.CONFIRM_TO_GATEWAY;
|
|
98
98
|
const variables = {
|
|
99
99
|
paymentId,
|
|
100
|
+
storeId: this.storeId,
|
|
101
|
+
methodTypeCode,
|
|
100
102
|
methodCode,
|
|
101
103
|
returnUrl,
|
|
102
104
|
};
|
|
@@ -212,7 +214,7 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
212
214
|
const variables = {
|
|
213
215
|
partnerId: this.orgId,
|
|
214
216
|
methodCode,
|
|
215
|
-
storeId: this.storeId
|
|
217
|
+
storeId: this.storeId,
|
|
216
218
|
};
|
|
217
219
|
try {
|
|
218
220
|
const response = yield this.graphqlQueryV3(query, variables);
|
|
@@ -230,7 +232,7 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
230
232
|
partnerId: this.orgId,
|
|
231
233
|
storeId: this.storeId,
|
|
232
234
|
storeActive: storeActive,
|
|
233
|
-
allMethodTypes: allMethodTypes
|
|
235
|
+
allMethodTypes: allMethodTypes,
|
|
234
236
|
};
|
|
235
237
|
try {
|
|
236
238
|
const response = yield this.graphqlQueryV3(queries, variables);
|