@longvansoftware/storefront-js-client 4.3.6 → 4.3.7-beta.0
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/README.md +221 -221
- package/dist/index.d.ts +1698 -0
- package/dist/index.js +13673 -0
- package/dist/src/graphql/auth/mutations.js +309 -309
- package/dist/src/graphql/auth/queries.js +209 -209
- package/dist/src/graphql/campaign/mutations.js +26 -26
- package/dist/src/graphql/campaign/queries.js +457 -457
- package/dist/src/graphql/cashbook/queries.js +93 -93
- package/dist/src/graphql/cloud/mutations.js +103 -103
- package/dist/src/graphql/cloud/queries.js +112 -112
- package/dist/src/graphql/cloudCloud/mutations.js +12 -12
- package/dist/src/graphql/cloudCloud/queries.js +117 -117
- package/dist/src/graphql/computing/mutations.js +96 -96
- package/dist/src/graphql/computing/queries.js +41 -41
- package/dist/src/graphql/crm/mutations.js +1064 -1064
- package/dist/src/graphql/crm/queries.js +920 -920
- package/dist/src/graphql/orderCloud/mutations.js +7 -7
- package/dist/src/graphql/orderCloud/queries.js +7 -7
- package/dist/src/graphql/payment/mutations.js +194 -194
- package/dist/src/graphql/payment/queries.js +117 -117
- package/dist/src/graphql/paymentV2/mutations.js +115 -115
- package/dist/src/graphql/paymentV2/queries.js +263 -263
- package/dist/src/graphql/product/mutations.js +652 -652
- package/dist/src/graphql/product/queries.js +989 -989
- package/dist/src/graphql/service/mutations.js +304 -304
- package/dist/src/graphql/service/queries.js +131 -131
- package/dist/src/graphql/store/mutations.js +24 -24
- package/dist/src/graphql/store/queries.js +24 -24
- package/dist/src/graphql/user/mutations.js +201 -201
- package/dist/src/graphql/user/queries.js +339 -339
- package/dist/src/lib/order/index.d.ts +9 -0
- package/dist/src/lib/order/index.js +21 -0
- package/dist/src/lib/serviceSDK.js +14 -14
- package/package.json +43 -43
- package/dist/src/graphql/cloudService/queries.d.ts +0 -1
- package/dist/src/graphql/cloudService/queries.js +0 -71
- package/dist/src/lib/cloudService/index.d.ts +0 -5
- package/dist/src/lib/cloudService/index.js +0 -35
|
@@ -2,123 +2,123 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
-
exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
|
|
6
|
-
mutation CancelPayment($paymentId: String!, $reason: String!) {
|
|
7
|
-
cancelPayment(paymentId: $paymentId, reason: $reason)
|
|
8
|
-
}
|
|
5
|
+
exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation CancelPayment($paymentId: String!, $reason: String!) {
|
|
7
|
+
cancelPayment(paymentId: $paymentId, reason: $reason)
|
|
8
|
+
}
|
|
9
9
|
`;
|
|
10
|
-
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
11
|
-
mutation ConfirmToGateWay(
|
|
12
|
-
$paymentId: String!
|
|
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
|
-
) {
|
|
25
|
-
code
|
|
26
|
-
message
|
|
27
|
-
data
|
|
28
|
-
qrCodeUrl
|
|
29
|
-
deeplink
|
|
30
|
-
deeplinkMiniApp
|
|
31
|
-
paymentId
|
|
32
|
-
gwConfigId
|
|
33
|
-
}
|
|
34
|
-
}
|
|
10
|
+
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
11
|
+
mutation ConfirmToGateWay(
|
|
12
|
+
$paymentId: String!
|
|
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
|
+
) {
|
|
25
|
+
code
|
|
26
|
+
message
|
|
27
|
+
data
|
|
28
|
+
qrCodeUrl
|
|
29
|
+
deeplink
|
|
30
|
+
deeplinkMiniApp
|
|
31
|
+
paymentId
|
|
32
|
+
gwConfigId
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
35
|
`;
|
|
36
|
-
exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
|
37
|
-
mutation ConfirmPaymentSuccessManual(
|
|
38
|
-
$paymentId: String!
|
|
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
|
-
) {
|
|
49
|
-
code
|
|
50
|
-
message
|
|
51
|
-
data
|
|
52
|
-
qrCodeUrl
|
|
53
|
-
deeplink
|
|
54
|
-
deeplinkMiniApp
|
|
55
|
-
paymentId
|
|
56
|
-
}
|
|
57
|
-
}
|
|
36
|
+
exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
|
37
|
+
mutation ConfirmPaymentSuccessManual(
|
|
38
|
+
$paymentId: String!
|
|
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
|
+
) {
|
|
49
|
+
code
|
|
50
|
+
message
|
|
51
|
+
data
|
|
52
|
+
qrCodeUrl
|
|
53
|
+
deeplink
|
|
54
|
+
deeplinkMiniApp
|
|
55
|
+
paymentId
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
58
|
`;
|
|
59
|
-
exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
60
|
-
mutation HandleUpdateGatewayConfig(
|
|
61
|
-
$input: PaymentGatewayConfigInput!
|
|
62
|
-
$cassoApiKey: String
|
|
63
|
-
) {
|
|
64
|
-
handleUpdateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
65
|
-
id
|
|
66
|
-
methodCode
|
|
67
|
-
partnerCode
|
|
68
|
-
subMethodCode
|
|
69
|
-
gwPartnerCode
|
|
70
|
-
gwPartnerName
|
|
71
|
-
gwPaymentMethod
|
|
72
|
-
gwSubChannel
|
|
73
|
-
gwMethodVersion
|
|
74
|
-
hashAlgorithm
|
|
75
|
-
accessKey
|
|
76
|
-
secretKey
|
|
77
|
-
responseUrl
|
|
78
|
-
requestUrl
|
|
79
|
-
methodType
|
|
80
|
-
publicKey
|
|
81
|
-
redirectUrl
|
|
82
|
-
activated
|
|
83
|
-
paymentRecordingMethod
|
|
84
|
-
userId
|
|
85
|
-
storeIdMapping {
|
|
86
|
-
storeId
|
|
87
|
-
gwStoreId
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
59
|
+
exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
60
|
+
mutation HandleUpdateGatewayConfig(
|
|
61
|
+
$input: PaymentGatewayConfigInput!
|
|
62
|
+
$cassoApiKey: String
|
|
63
|
+
) {
|
|
64
|
+
handleUpdateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
65
|
+
id
|
|
66
|
+
methodCode
|
|
67
|
+
partnerCode
|
|
68
|
+
subMethodCode
|
|
69
|
+
gwPartnerCode
|
|
70
|
+
gwPartnerName
|
|
71
|
+
gwPaymentMethod
|
|
72
|
+
gwSubChannel
|
|
73
|
+
gwMethodVersion
|
|
74
|
+
hashAlgorithm
|
|
75
|
+
accessKey
|
|
76
|
+
secretKey
|
|
77
|
+
responseUrl
|
|
78
|
+
requestUrl
|
|
79
|
+
methodType
|
|
80
|
+
publicKey
|
|
81
|
+
redirectUrl
|
|
82
|
+
activated
|
|
83
|
+
paymentRecordingMethod
|
|
84
|
+
userId
|
|
85
|
+
storeIdMapping {
|
|
86
|
+
storeId
|
|
87
|
+
gwStoreId
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
91
|
`;
|
|
92
|
-
exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
93
|
-
mutation HandleCreateGatewayConfig(
|
|
94
|
-
$input: PaymentGatewayConfigInput!
|
|
95
|
-
$cassoApiKey: String
|
|
96
|
-
) {
|
|
97
|
-
handleCreateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
98
|
-
id
|
|
99
|
-
methodCode
|
|
100
|
-
partnerCode
|
|
101
|
-
subMethodCode
|
|
102
|
-
gwPartnerCode
|
|
103
|
-
gwPartnerName
|
|
104
|
-
gwPaymentMethod
|
|
105
|
-
gwSubChannel
|
|
106
|
-
gwMethodVersion
|
|
107
|
-
hashAlgorithm
|
|
108
|
-
accessKey
|
|
109
|
-
secretKey
|
|
110
|
-
responseUrl
|
|
111
|
-
requestUrl
|
|
112
|
-
methodType
|
|
113
|
-
publicKey
|
|
114
|
-
redirectUrl
|
|
115
|
-
activated
|
|
116
|
-
paymentRecordingMethod
|
|
117
|
-
userId
|
|
118
|
-
storeIdMapping {
|
|
119
|
-
storeId
|
|
120
|
-
gwStoreId
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
92
|
+
exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
93
|
+
mutation HandleCreateGatewayConfig(
|
|
94
|
+
$input: PaymentGatewayConfigInput!
|
|
95
|
+
$cassoApiKey: String
|
|
96
|
+
) {
|
|
97
|
+
handleCreateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
98
|
+
id
|
|
99
|
+
methodCode
|
|
100
|
+
partnerCode
|
|
101
|
+
subMethodCode
|
|
102
|
+
gwPartnerCode
|
|
103
|
+
gwPartnerName
|
|
104
|
+
gwPaymentMethod
|
|
105
|
+
gwSubChannel
|
|
106
|
+
gwMethodVersion
|
|
107
|
+
hashAlgorithm
|
|
108
|
+
accessKey
|
|
109
|
+
secretKey
|
|
110
|
+
responseUrl
|
|
111
|
+
requestUrl
|
|
112
|
+
methodType
|
|
113
|
+
publicKey
|
|
114
|
+
redirectUrl
|
|
115
|
+
activated
|
|
116
|
+
paymentRecordingMethod
|
|
117
|
+
userId
|
|
118
|
+
storeIdMapping {
|
|
119
|
+
storeId
|
|
120
|
+
gwStoreId
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
124
|
`;
|