@longvansoftware/service-js-client 2.9.0 → 2.9.1
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/config/config.js +1 -1
- package/dist/src/graphql/campaign/queries.d.ts +13 -11
- package/dist/src/graphql/campaign/queries.js +39 -111
- package/dist/src/graphql/cashbook/mutation.js +4 -0
- package/dist/src/graphql/cashbook/query.d.ts +2 -0
- package/dist/src/graphql/cashbook/query.js +17 -1
- package/dist/src/graphql/cloud/mutations.d.ts +2 -0
- package/dist/src/graphql/cloud/mutations.js +53 -186
- package/dist/src/graphql/cloudCloud/mutations.d.ts +2 -0
- package/dist/src/graphql/cloudCloud/mutations.js +101 -27
- package/dist/src/graphql/cloudCloud/queries.js +4 -0
- package/dist/src/graphql/orderCloud/mutations.d.ts +3 -1
- package/dist/src/graphql/orderCloud/mutations.js +21 -5
- package/dist/src/graphql/paymentLV/mutations.d.ts +4 -0
- package/dist/src/graphql/paymentLV/mutations.js +41 -13
- package/dist/src/graphql/paymentV2/mutations.d.ts +1 -0
- package/dist/src/graphql/paymentV2/mutations.js +23 -37
- package/dist/src/graphql/paymentV2/queries.d.ts +2 -0
- package/dist/src/graphql/paymentV2/queries.js +58 -1
- package/dist/src/graphql/storefont/mutation.d.ts +4 -0
- package/dist/src/graphql/storefont/mutation.js +56 -0
- package/dist/src/graphql/storefont/queries.d.ts +5 -0
- package/dist/src/graphql/storefont/queries.js +106 -0
- package/dist/src/graphql/tag/mutations.d.ts +2 -0
- package/dist/src/graphql/tag/mutations.js +44 -0
- package/dist/src/graphql/tag/queries.d.ts +1 -0
- package/dist/src/graphql/tag/queries.js +20 -0
- package/dist/src/lib/campaign/index.d.ts +1 -0
- package/dist/src/lib/campaign/index.js +69 -12
- package/dist/src/lib/cashbook/index.d.ts +4 -0
- package/dist/src/lib/cashbook/index.js +60 -2
- package/dist/src/lib/cloud/index.d.ts +2 -0
- package/dist/src/lib/cloud/index.js +65 -37
- package/dist/src/lib/cloudCloud/index.d.ts +1 -0
- package/dist/src/lib/cloudCloud/index.js +16 -0
- package/dist/src/lib/imageGateway/index.d.ts +6 -0
- package/dist/src/lib/imageGateway/index.js +18 -0
- package/dist/src/lib/orderCloud/index.d.ts +2 -0
- package/dist/src/lib/orderCloud/index.js +47 -1
- package/dist/src/lib/paymentLV/index.d.ts +4 -0
- package/dist/src/lib/paymentLV/index.js +55 -7
- package/dist/src/lib/paymentV2/index.d.ts +11 -1
- package/dist/src/lib/paymentV2/index.js +55 -14
- package/dist/src/lib/portal/index.d.ts +10 -2
- package/dist/src/lib/portal/index.js +171 -11
- package/dist/src/lib/storefont/index.d.ts +23 -0
- package/dist/src/lib/storefont/index.js +160 -0
- package/dist/src/lib/tag/index.d.ts +7 -0
- package/dist/src/lib/tag/index.js +61 -0
- package/package.json +1 -1
- package/dist/src/lib/service.d.ts +0 -14
- package/dist/src/lib/service.js +0 -101
- package/dist/src/utils/build-field-string.d.ts +0 -1
- package/dist/src/utils/build-field-string.js +0 -16
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const UPDATE_DESCRIPTION: import("graphql").DocumentNode;
|
|
2
2
|
export declare const UPDATE_SERVICE_RESOURCE: import("graphql").DocumentNode;
|
|
3
3
|
export declare const RECOUNT_USED_BOOKING: import("graphql").DocumentNode;
|
|
4
|
+
export declare const LINK_USER_ACCOUNT: import("graphql").DocumentNode;
|
|
5
|
+
export declare const UPDATE_QUANTITY_V2: import("graphql").DocumentNode;
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RECOUNT_USED_BOOKING = exports.UPDATE_SERVICE_RESOURCE = exports.UPDATE_DESCRIPTION = void 0;
|
|
3
|
+
exports.UPDATE_QUANTITY_V2 = exports.LINK_USER_ACCOUNT = exports.RECOUNT_USED_BOOKING = exports.UPDATE_SERVICE_RESOURCE = exports.UPDATE_DESCRIPTION = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.UPDATE_DESCRIPTION = (0, graphql_tag_1.gql) `
|
|
6
|
-
mutation UpdateDescription(
|
|
7
|
-
$serviceId:
|
|
8
|
-
$description: String!
|
|
9
|
-
$updatedBy: String!
|
|
10
|
-
) {
|
|
11
|
-
updateDescription(
|
|
12
|
-
serviceId: $serviceId
|
|
13
|
-
description: $description
|
|
14
|
-
updatedBy: $updatedBy
|
|
15
|
-
)
|
|
6
|
+
mutation UpdateDescription($serviceId: String!, $description: String!, $updatedBy: String!) {
|
|
7
|
+
updateDescription(serviceId: $serviceId, description: $description, updatedBy: $updatedBy)
|
|
16
8
|
}
|
|
17
9
|
`;
|
|
18
10
|
exports.UPDATE_SERVICE_RESOURCE = (0, graphql_tag_1.gql) `
|
|
19
|
-
mutation UpdateServiceResource(
|
|
20
|
-
$serviceId:
|
|
21
|
-
$keyId: String!
|
|
22
|
-
$name: String
|
|
23
|
-
$value: String
|
|
24
|
-
$unit: String
|
|
25
|
-
$actorId: String!
|
|
26
|
-
) {
|
|
27
|
-
updateServiceResource(
|
|
28
|
-
serviceId: $serviceId
|
|
29
|
-
keyId: $keyId
|
|
30
|
-
name: $name
|
|
31
|
-
value: $value
|
|
32
|
-
unit: $unit
|
|
33
|
-
actorId: $actorId
|
|
34
|
-
)
|
|
11
|
+
mutation UpdateServiceResource($serviceId: String!, $keyId: String!, $name: String, $value: String, $unit: String, $actorId: String!) {
|
|
12
|
+
updateServiceResource(serviceId: $serviceId, keyId: $keyId, name: $name, value: $value, unit: $unit, actorId: $actorId)
|
|
35
13
|
}
|
|
36
14
|
`;
|
|
37
15
|
exports.RECOUNT_USED_BOOKING = (0, graphql_tag_1.gql) `
|
|
@@ -39,3 +17,99 @@ exports.RECOUNT_USED_BOOKING = (0, graphql_tag_1.gql) `
|
|
|
39
17
|
recountUsedBookings(serviceId: $serviceId, actorId: $actorId)
|
|
40
18
|
}
|
|
41
19
|
`;
|
|
20
|
+
exports.LINK_USER_ACCOUNT = (0, graphql_tag_1.gql) `
|
|
21
|
+
mutation LinkUserAccount($ownerId: String, $serviceId: String) {
|
|
22
|
+
linkUserAccount(ownerId: $ownerId, serviceId: $serviceId) {
|
|
23
|
+
service {
|
|
24
|
+
supplierId
|
|
25
|
+
serviceId
|
|
26
|
+
partnerId
|
|
27
|
+
serviceName
|
|
28
|
+
serviceGroup
|
|
29
|
+
type
|
|
30
|
+
typeName
|
|
31
|
+
status
|
|
32
|
+
statusFulfillment
|
|
33
|
+
ownerId
|
|
34
|
+
ownerPartyDetailId
|
|
35
|
+
startDate
|
|
36
|
+
endDate
|
|
37
|
+
serviceType
|
|
38
|
+
urlPrivate
|
|
39
|
+
urlPublic
|
|
40
|
+
username
|
|
41
|
+
password
|
|
42
|
+
attrs
|
|
43
|
+
description
|
|
44
|
+
ips
|
|
45
|
+
productGroupId
|
|
46
|
+
orderId
|
|
47
|
+
sponsorId
|
|
48
|
+
sponsorName
|
|
49
|
+
providedFromId
|
|
50
|
+
providedFromName
|
|
51
|
+
}
|
|
52
|
+
resources {
|
|
53
|
+
type
|
|
54
|
+
name
|
|
55
|
+
total
|
|
56
|
+
unit
|
|
57
|
+
component
|
|
58
|
+
value
|
|
59
|
+
keyId
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
exports.UPDATE_QUANTITY_V2 = (0, graphql_tag_1.gql) `
|
|
65
|
+
mutation UpdateQuantityV2($orderId: String!, $partnerId: String!, $updateItemInputs: [UpdateItemInput]!, $updateBy: String!) {
|
|
66
|
+
updateQuantityV2(orderId: $orderId, partnerId: $partnerId, updateItemInputs: $updateItemInputs, updateBy: $updateBy) {
|
|
67
|
+
cancelReason
|
|
68
|
+
currencyCode
|
|
69
|
+
edited
|
|
70
|
+
financialStatus
|
|
71
|
+
fulfillmentStatus
|
|
72
|
+
orderStatus
|
|
73
|
+
id
|
|
74
|
+
partnerId
|
|
75
|
+
ownerName
|
|
76
|
+
ownerEmail
|
|
77
|
+
ownerPhone
|
|
78
|
+
orderNumber
|
|
79
|
+
rawData
|
|
80
|
+
orderId
|
|
81
|
+
note
|
|
82
|
+
pending
|
|
83
|
+
checkCommodities
|
|
84
|
+
shipmentNote
|
|
85
|
+
shopId
|
|
86
|
+
facilityId
|
|
87
|
+
orderType
|
|
88
|
+
shippingServiceId
|
|
89
|
+
carrierId
|
|
90
|
+
fromOrderId
|
|
91
|
+
externalCode
|
|
92
|
+
createdAt
|
|
93
|
+
createdStamp
|
|
94
|
+
canceledAt
|
|
95
|
+
updatedAt
|
|
96
|
+
approvedAt
|
|
97
|
+
processedAt
|
|
98
|
+
completedAt
|
|
99
|
+
createdBy
|
|
100
|
+
saleName
|
|
101
|
+
salePartyId
|
|
102
|
+
ownerPartyId
|
|
103
|
+
customerLocale
|
|
104
|
+
orderParentId
|
|
105
|
+
shopName
|
|
106
|
+
version
|
|
107
|
+
customAttribute
|
|
108
|
+
appliedReferralCode
|
|
109
|
+
orderDate
|
|
110
|
+
dueDatePayment
|
|
111
|
+
description
|
|
112
|
+
orderGroup
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FIND_ORDER_BY_OWNER_PARTYID = void 0;
|
|
3
|
+
exports.MERGE_ORDER_CART = exports.FIND_ORDER_BY_OWNER_PARTYID = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
const helpers_1 = require("../../utils/helpers");
|
|
5
6
|
exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
|
|
6
|
-
mutation FindOrderByOwnerPartyId(
|
|
7
|
-
$partnerId: String!
|
|
8
|
-
$ownerPartyId: String!
|
|
9
|
-
) {
|
|
7
|
+
mutation FindOrderByOwnerPartyId($partnerId: String!, $ownerPartyId: String!) {
|
|
10
8
|
findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
|
|
11
9
|
}
|
|
12
10
|
`;
|
|
11
|
+
const MERGE_ORDER_CART = (fields = []) => {
|
|
12
|
+
return (0, graphql_tag_1.gql) `
|
|
13
|
+
mutation MergeOrderCart(
|
|
14
|
+
$oldCartId: String!
|
|
15
|
+
$newCartId: String!
|
|
16
|
+
$actorId: String!
|
|
17
|
+
) {
|
|
18
|
+
mergeOrderCart(
|
|
19
|
+
input: {
|
|
20
|
+
oldCartId: $oldCartId
|
|
21
|
+
newCartId: $newCartId
|
|
22
|
+
actorId: $actorId
|
|
23
|
+
}
|
|
24
|
+
) ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
};
|
|
28
|
+
exports.MERGE_ORDER_CART = MERGE_ORDER_CART;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export declare const CANCEL_PAYMENT: import("graphql").DocumentNode;
|
|
2
2
|
export declare const CONFIRM_PAID_MANUAL: import("graphql").DocumentNode;
|
|
3
|
+
export declare const REGISTER_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
4
|
+
export declare const CONFIRM_REGISTER_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
5
|
+
export declare const CANCEL_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
6
|
+
export declare const CONFIRM_CANCEL_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONFIRM_PAID_MANUAL = exports.CANCEL_PAYMENT = void 0;
|
|
3
|
+
exports.CONFIRM_CANCEL_AUTO_DEBIT = exports.CANCEL_AUTO_DEBIT = exports.CONFIRM_REGISTER_AUTO_DEBIT = exports.REGISTER_AUTO_DEBIT = exports.CONFIRM_PAID_MANUAL = 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
|
-
mutation CancelPayment(
|
|
7
|
-
$paymentId:
|
|
8
|
-
$safeMode: Boolean!
|
|
9
|
-
$reason: String!
|
|
10
|
-
$createBy: String
|
|
11
|
-
) {
|
|
12
|
-
cancelPayment(
|
|
13
|
-
paymentId: $paymentId
|
|
14
|
-
safeMode: $safeMode
|
|
15
|
-
reason: $reason
|
|
16
|
-
createBy: $createBy
|
|
17
|
-
)
|
|
6
|
+
mutation CancelPayment($paymentId: String!, $safeMode: Boolean!, $reason: String!, $createBy: String) {
|
|
7
|
+
cancelPayment(paymentId: $paymentId, safeMode: $safeMode, reason: $reason, createBy: $createBy)
|
|
18
8
|
}
|
|
19
9
|
`;
|
|
20
10
|
exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
|
|
@@ -29,3 +19,41 @@ exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
|
|
|
29
19
|
}
|
|
30
20
|
}
|
|
31
21
|
`;
|
|
22
|
+
exports.REGISTER_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
23
|
+
mutation RegisterAutoDebit($cashAccountId: String!) {
|
|
24
|
+
registerAutoDebit(cashAccountId: $cashAccountId) {
|
|
25
|
+
message
|
|
26
|
+
status
|
|
27
|
+
otpRequired
|
|
28
|
+
otpExpiresInSeconds
|
|
29
|
+
otpMaxAttempts
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
exports.CONFIRM_REGISTER_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
34
|
+
mutation ConfirmRegisterAutoDebit($cashAccountId: String!, $otp: String!) {
|
|
35
|
+
confirmRegisterAutoDebit(cashAccountId: $cashAccountId, otp: $otp) {
|
|
36
|
+
message
|
|
37
|
+
status
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
exports.CANCEL_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
42
|
+
mutation CancelAutoDebit($cashAccountId: String!) {
|
|
43
|
+
cancelAutoDebit(cashAccountId: $cashAccountId) {
|
|
44
|
+
message
|
|
45
|
+
status
|
|
46
|
+
otpRequired
|
|
47
|
+
otpExpiresInSeconds
|
|
48
|
+
otpMaxAttempts
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
exports.CONFIRM_CANCEL_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
53
|
+
mutation ConfirmCancelAutoDebit($cashAccountId: String!, $otp: String!) {
|
|
54
|
+
confirmCancelAutoDebit(cashAccountId: $cashAccountId, otp: $otp) {
|
|
55
|
+
message
|
|
56
|
+
status
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
@@ -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,27 +1,15 @@
|
|
|
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
|
-
mutation CancelPayment($paymentId: String!, $reason: String
|
|
7
|
-
cancelPayment(paymentId: $paymentId, reason: $reason)
|
|
6
|
+
mutation CancelPayment($paymentId: String!, $reason: String!, $safeMode: Boolean, $createBy: String) {
|
|
7
|
+
cancelPayment(paymentId: $paymentId, reason: $reason, safeMode: $safeMode, createBy: $createBy)
|
|
8
8
|
}
|
|
9
9
|
`;
|
|
10
10
|
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
11
|
-
mutation ConfirmToGateWay(
|
|
12
|
-
$paymentId:
|
|
13
|
-
$storeId: String
|
|
14
|
-
$methodTypeCode: String
|
|
15
|
-
$methodCode: String
|
|
16
|
-
$returnUrl: String
|
|
17
|
-
) {
|
|
18
|
-
confirmToGateway(
|
|
19
|
-
paymentId: $paymentId
|
|
20
|
-
storeId: $storeId
|
|
21
|
-
methodTypeCode: $methodTypeCode
|
|
22
|
-
methodCode: $methodCode
|
|
23
|
-
returnUrl: $returnUrl
|
|
24
|
-
) {
|
|
11
|
+
mutation ConfirmToGateWay($paymentId: String!, $storeId: String, $methodTypeCode: String, $methodCode: String, $returnUrl: String) {
|
|
12
|
+
confirmToGateway(paymentId: $paymentId, storeId: $storeId, methodTypeCode: $methodTypeCode, methodCode: $methodCode, returnUrl: $returnUrl) {
|
|
25
13
|
code
|
|
26
14
|
message
|
|
27
15
|
data
|
|
@@ -34,18 +22,8 @@ exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
|
34
22
|
}
|
|
35
23
|
`;
|
|
36
24
|
exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
|
37
|
-
mutation ConfirmPaymentSuccessManual(
|
|
38
|
-
$paymentId:
|
|
39
|
-
$transactionNo: String!
|
|
40
|
-
$note: String
|
|
41
|
-
$confirmBy: String!
|
|
42
|
-
) {
|
|
43
|
-
confirmPaymentSuccessManual(
|
|
44
|
-
paymentId: $paymentId
|
|
45
|
-
transactionNo: $transactionNo
|
|
46
|
-
note: $note
|
|
47
|
-
confirmBy: $confirmBy
|
|
48
|
-
) {
|
|
25
|
+
mutation ConfirmPaymentSuccessManual($paymentId: String!, $transactionNo: String!, $note: String, $confirmBy: String!) {
|
|
26
|
+
confirmPaymentSuccessManual(paymentId: $paymentId, transactionNo: $transactionNo, note: $note, confirmBy: $confirmBy) {
|
|
49
27
|
code
|
|
50
28
|
message
|
|
51
29
|
data
|
|
@@ -57,10 +35,7 @@ exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
|
|
57
35
|
}
|
|
58
36
|
`;
|
|
59
37
|
exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
60
|
-
mutation HandleUpdateGatewayConfig(
|
|
61
|
-
$input: PaymentGatewayConfigInput!
|
|
62
|
-
$cassoApiKey: String
|
|
63
|
-
) {
|
|
38
|
+
mutation HandleUpdateGatewayConfig($input: PaymentGatewayConfigInput!, $cassoApiKey: String) {
|
|
64
39
|
handleUpdateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
65
40
|
id
|
|
66
41
|
methodCode
|
|
@@ -89,11 +64,22 @@ exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
|
89
64
|
}
|
|
90
65
|
}
|
|
91
66
|
`;
|
|
67
|
+
exports.CREATE_PAYMENT = (0, graphql_tag_1.gql) `
|
|
68
|
+
mutation CreatePayment($paymentData: Payment) {
|
|
69
|
+
createPayment(paymentData: $paymentData) {
|
|
70
|
+
code
|
|
71
|
+
message
|
|
72
|
+
data
|
|
73
|
+
qrCodeUrl
|
|
74
|
+
deeplink
|
|
75
|
+
deeplinkMiniApp
|
|
76
|
+
paymentId
|
|
77
|
+
gwConfigId
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
92
81
|
exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
93
|
-
mutation HandleCreateGatewayConfig(
|
|
94
|
-
$input: PaymentGatewayConfigInput!
|
|
95
|
-
$cassoApiKey: String
|
|
96
|
-
) {
|
|
82
|
+
mutation HandleCreateGatewayConfig($input: PaymentGatewayConfigInput!, $cassoApiKey: String) {
|
|
97
83
|
handleCreateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
98
84
|
id
|
|
99
85
|
methodCode
|
|
@@ -7,4 +7,6 @@ export declare const GW_CONFIG_DETAIL: import("graphql").DocumentNode;
|
|
|
7
7
|
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
|
+
export declare const GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG: import("graphql").DocumentNode;
|
|
10
11
|
export declare const GET_TRANSFER_INFO: import("graphql").DocumentNode;
|
|
12
|
+
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_WITH_GATEWAY_CONFIG = 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!]!) {
|
|
@@ -255,6 +255,44 @@ exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
`;
|
|
258
|
+
exports.GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
259
|
+
query GetPaymentMethodTypesWithGatewayConfig(
|
|
260
|
+
$partnerId: String!
|
|
261
|
+
$storeId: String!
|
|
262
|
+
) {
|
|
263
|
+
getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
|
|
264
|
+
code
|
|
265
|
+
name
|
|
266
|
+
description
|
|
267
|
+
image
|
|
268
|
+
storeActive
|
|
269
|
+
paymentGatewayConfig {
|
|
270
|
+
id
|
|
271
|
+
methodCode
|
|
272
|
+
partnerCode
|
|
273
|
+
subMethodCode
|
|
274
|
+
gwPartnerCode
|
|
275
|
+
gwPartnerName
|
|
276
|
+
gwPaymentMethod
|
|
277
|
+
gwSubChannel
|
|
278
|
+
gwMethodVersion
|
|
279
|
+
hashAlgorithm
|
|
280
|
+
accessKey
|
|
281
|
+
secretKey
|
|
282
|
+
responseUrl
|
|
283
|
+
requestUrl
|
|
284
|
+
methodType
|
|
285
|
+
publicKey
|
|
286
|
+
redirectUrl
|
|
287
|
+
activated
|
|
288
|
+
paymentRecordingMethod
|
|
289
|
+
userId
|
|
290
|
+
name
|
|
291
|
+
description
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
`;
|
|
258
296
|
exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
|
|
259
297
|
query GetTransferInfo(
|
|
260
298
|
$partnerId: String!
|
|
@@ -275,3 +313,22 @@ exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
|
|
|
275
313
|
}
|
|
276
314
|
}
|
|
277
315
|
`;
|
|
316
|
+
exports.PAYMENT_METHODS_BY_PARTNER = (0, graphql_tag_1.gql) `
|
|
317
|
+
query PaymentMethodsByPartner($partnerCode: String) {
|
|
318
|
+
paymentMethods(partnerCode: $partnerCode ) {
|
|
319
|
+
id
|
|
320
|
+
code
|
|
321
|
+
description
|
|
322
|
+
image
|
|
323
|
+
name
|
|
324
|
+
titles {
|
|
325
|
+
id
|
|
326
|
+
code
|
|
327
|
+
name
|
|
328
|
+
lang
|
|
329
|
+
showField
|
|
330
|
+
required
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
`;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_ORDER_LINE_ITEM_RESOURCE = exports.MERGE_ORDER_CART = exports.QUICK_ADD_ORDER_ITEM = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
const helpers_1 = require("../../utils/helpers");
|
|
6
|
+
exports.QUICK_ADD_ORDER_ITEM = (0, graphql_tag_1.gql) `
|
|
7
|
+
mutation QuickAddOrderItem(
|
|
8
|
+
$partnerId: String!
|
|
9
|
+
$storeId: String!
|
|
10
|
+
$input: QuickAddOrderItemInput!
|
|
11
|
+
) {
|
|
12
|
+
quickAddOrderItem(partnerId: $partnerId, storeId: $storeId, input: $input) {
|
|
13
|
+
status
|
|
14
|
+
message
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
const MERGE_ORDER_CART = (fields = []) => {
|
|
19
|
+
return (0, graphql_tag_1.gql) `
|
|
20
|
+
mutation MergeOrderCart(
|
|
21
|
+
$oldCartId: String!
|
|
22
|
+
$newCartId: String!
|
|
23
|
+
$actorId: String!
|
|
24
|
+
$isAllowedToMergeItem: Boolean!
|
|
25
|
+
) {
|
|
26
|
+
mergeOrderCart(
|
|
27
|
+
input: {
|
|
28
|
+
oldCartId: $oldCartId
|
|
29
|
+
newCartId: $newCartId
|
|
30
|
+
actorId: $actorId
|
|
31
|
+
isAllowedToMergeItem: $isAllowedToMergeItem
|
|
32
|
+
}
|
|
33
|
+
) ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
};
|
|
37
|
+
exports.MERGE_ORDER_CART = MERGE_ORDER_CART;
|
|
38
|
+
exports.UPDATE_ORDER_LINE_ITEM_RESOURCE = (0, graphql_tag_1.gql) `
|
|
39
|
+
mutation updateOrderLineItemResource(
|
|
40
|
+
$partnerId: String!
|
|
41
|
+
$orderId: String!
|
|
42
|
+
$lineItemId: String!
|
|
43
|
+
$input: ProductConfigurationInput!
|
|
44
|
+
) {
|
|
45
|
+
updateOrderLineItemResource(
|
|
46
|
+
partnerId: $partnerId
|
|
47
|
+
orderId: $orderId
|
|
48
|
+
lineItemId: $lineItemId
|
|
49
|
+
input: $input
|
|
50
|
+
) {
|
|
51
|
+
status
|
|
52
|
+
message
|
|
53
|
+
lineItem
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const GET_REVENUE_STATISTIC_BY_PRODUCT: import("graphql").DocumentNode;
|
|
2
|
+
export declare const GET_REVENUE_STATISTIC_BY_GROUP_OR_CATEGORY: import("graphql").DocumentNode;
|
|
3
|
+
export declare const GET_FIRST_TRIAL_TREATMENT_MONTHLY_REPORT: import("graphql").DocumentNode;
|
|
4
|
+
export declare const GET_FIRST_TRIAL_TREATMENT_MONTHLY_DETAIL: import("graphql").DocumentNode;
|
|
5
|
+
export declare const GET_FIRST_TRIAL_TREATMENT_REMAINING_USES_REPORT: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_FIRST_TRIAL_TREATMENT_REMAINING_USES_REPORT = exports.GET_FIRST_TRIAL_TREATMENT_MONTHLY_DETAIL = exports.GET_FIRST_TRIAL_TREATMENT_MONTHLY_REPORT = exports.GET_REVENUE_STATISTIC_BY_GROUP_OR_CATEGORY = exports.GET_REVENUE_STATISTIC_BY_PRODUCT = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.GET_REVENUE_STATISTIC_BY_PRODUCT = (0, graphql_tag_1.gql) `
|
|
6
|
+
query GetRevenueStatisticByProduct($input: ProductStatisticPagedInput!) {
|
|
7
|
+
getRevenueStatisticByProduct(input: $input) {
|
|
8
|
+
totalElements
|
|
9
|
+
totalPages
|
|
10
|
+
page
|
|
11
|
+
size
|
|
12
|
+
content {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
sku
|
|
16
|
+
image
|
|
17
|
+
productParentId
|
|
18
|
+
totalQuantity
|
|
19
|
+
inventory
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
exports.GET_REVENUE_STATISTIC_BY_GROUP_OR_CATEGORY = (0, graphql_tag_1.gql) `
|
|
25
|
+
query GetRevenueStatisticByGroupOrCategory(
|
|
26
|
+
$input: ProductStatisticInput!
|
|
27
|
+
$groupBy: StatisticGroupBy!
|
|
28
|
+
) {
|
|
29
|
+
getRevenueStatisticByGroupOrCategory(input: $input, groupBy: $groupBy) {
|
|
30
|
+
totalElements
|
|
31
|
+
totalPages
|
|
32
|
+
page
|
|
33
|
+
size
|
|
34
|
+
content {
|
|
35
|
+
id
|
|
36
|
+
name
|
|
37
|
+
totalOrders
|
|
38
|
+
totalPriceOfSales
|
|
39
|
+
totalPriceOfService
|
|
40
|
+
totalPriceOfRenewals
|
|
41
|
+
totalPrice
|
|
42
|
+
totalNotPayYet
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
exports.GET_FIRST_TRIAL_TREATMENT_MONTHLY_REPORT = (0, graphql_tag_1.gql) `
|
|
48
|
+
query GetFirstTrialTreatmentMonthlyReport(
|
|
49
|
+
$storeIds: [String!]
|
|
50
|
+
$monthCount: Int
|
|
51
|
+
) {
|
|
52
|
+
getFirstTrialTreatmentMonthlyReport(
|
|
53
|
+
storeIds: $storeIds
|
|
54
|
+
monthCount: $monthCount
|
|
55
|
+
) {
|
|
56
|
+
totalFirstTrialCount
|
|
57
|
+
totalNewTreatmentCount
|
|
58
|
+
items {
|
|
59
|
+
month
|
|
60
|
+
firstTrialCount
|
|
61
|
+
newTreatmentCount
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
exports.GET_FIRST_TRIAL_TREATMENT_MONTHLY_DETAIL = (0, graphql_tag_1.gql) `
|
|
67
|
+
query GetFirstTrialTreatmentMonthlyDetail(
|
|
68
|
+
$month: String!
|
|
69
|
+
$storeIds: [String!]
|
|
70
|
+
) {
|
|
71
|
+
getFirstTrialTreatmentMonthlyDetail(month: $month, storeIds: $storeIds) {
|
|
72
|
+
month
|
|
73
|
+
totalFirstTrialCount
|
|
74
|
+
totalNewTreatmentCount
|
|
75
|
+
items {
|
|
76
|
+
salePartyId
|
|
77
|
+
saleName
|
|
78
|
+
firstTrialCount
|
|
79
|
+
newTreatmentCount
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
exports.GET_FIRST_TRIAL_TREATMENT_REMAINING_USES_REPORT = (0, graphql_tag_1.gql) `
|
|
85
|
+
query GetFirstTrialTreatmentRemainingUsesReport($storeIds: [String!]) {
|
|
86
|
+
getFirstTrialTreatmentRemainingUsesReport(storeIds: $storeIds) {
|
|
87
|
+
totalOutOfUsesCount
|
|
88
|
+
totalUnderThreeUsesCount
|
|
89
|
+
totalUnderFiveUsesCount
|
|
90
|
+
items {
|
|
91
|
+
productId
|
|
92
|
+
productName
|
|
93
|
+
totalUses
|
|
94
|
+
outOfUsesCount
|
|
95
|
+
underThreeUsesCount
|
|
96
|
+
underFiveUsesCount
|
|
97
|
+
}
|
|
98
|
+
remainingUsesRanges {
|
|
99
|
+
key
|
|
100
|
+
displayThreshold
|
|
101
|
+
from
|
|
102
|
+
to
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REMOVE_TAG_TO_TAG_GROUP = exports.ADD_TAG_TO_TAG_GROUP = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.ADD_TAG_TO_TAG_GROUP = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation AddTagToTagGroup(
|
|
7
|
+
$resourceId: String!
|
|
8
|
+
$resourceType: String!
|
|
9
|
+
$tagId: String!
|
|
10
|
+
$tagGroupId: String
|
|
11
|
+
$addedBy: String!
|
|
12
|
+
) {
|
|
13
|
+
addTagToTagGroup(
|
|
14
|
+
resourceId: $resourceId
|
|
15
|
+
resourceType: $resourceType
|
|
16
|
+
tagId: $tagId
|
|
17
|
+
tagGroupId: $tagGroupId
|
|
18
|
+
addedBy: $addedBy
|
|
19
|
+
) {
|
|
20
|
+
code
|
|
21
|
+
message
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
exports.REMOVE_TAG_TO_TAG_GROUP = (0, graphql_tag_1.gql) `
|
|
26
|
+
mutation RemoveTagToTagGroup(
|
|
27
|
+
$resourceId: String!
|
|
28
|
+
$resourceType: String!
|
|
29
|
+
$tagId: String!
|
|
30
|
+
$tagGroupId: String
|
|
31
|
+
$updateBy: String!
|
|
32
|
+
) {
|
|
33
|
+
removeTagToTagGroup(
|
|
34
|
+
resourceId: $resourceId
|
|
35
|
+
resourceType: $resourceType
|
|
36
|
+
tagId: $tagId
|
|
37
|
+
tagGroupId: $tagGroupId
|
|
38
|
+
updateBy: $updateBy
|
|
39
|
+
) {
|
|
40
|
+
code
|
|
41
|
+
message
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GET_RESULT_TAG: import("graphql").DocumentNode;
|