@longvansoftware/service-js-client 1.16.2 → 1.16.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.
- package/dist/src/graphql/campaign/mutations.d.ts +1 -0
- package/dist/src/graphql/campaign/mutations.js +34 -0
- package/dist/src/graphql/campaign/queries.d.ts +9 -0
- package/dist/src/graphql/campaign/queries.js +427 -0
- package/dist/src/graphql/cashbook/queries.d.ts +2 -0
- package/dist/src/graphql/cashbook/queries.js +99 -0
- package/dist/src/graphql/crm/mutations.d.ts +2 -0
- package/dist/src/graphql/crm/mutations.js +37 -1
- package/dist/src/graphql/crm/queries.d.ts +1 -0
- package/dist/src/graphql/crm/queries.js +35 -1
- package/dist/src/graphql/fragments/product.d.ts +38 -0
- package/dist/src/graphql/fragments/product.js +196 -0
- package/dist/src/graphql/paymentV2/mutations.d.ts +5 -0
- package/dist/src/graphql/paymentV2/mutations.js +120 -0
- package/dist/src/graphql/paymentV2/queries.d.ts +9 -0
- package/dist/src/graphql/paymentV2/queries.js +257 -0
- package/dist/src/graphql/product/queries.d.ts +1 -0
- package/dist/src/graphql/product/queries.js +14 -1
- package/dist/src/graphql/store/mutations.d.ts +1 -0
- package/dist/src/graphql/store/mutations.js +29 -0
- package/dist/src/graphql/store/queries.d.ts +1 -0
- package/dist/src/graphql/store/queries.js +29 -0
- package/dist/src/lib/accounting/index.d.ts +5 -0
- package/dist/src/lib/accounting/index.js +32 -0
- package/dist/src/lib/campaign/index.d.ts +20 -0
- package/dist/src/lib/campaign/index.js +218 -0
- package/dist/src/lib/cashbook/index.d.ts +6 -0
- package/dist/src/lib/cashbook/index.js +56 -0
- package/dist/src/lib/comhub/index.d.ts +6 -0
- package/dist/src/lib/comhub/index.js +50 -0
- package/dist/src/lib/crm/index.d.ts +3 -0
- package/dist/src/lib/crm/index.js +51 -0
- package/dist/src/lib/deepLinkVietQr/index.d.ts +7 -0
- package/dist/src/lib/deepLinkVietQr/index.js +58 -0
- package/dist/src/lib/fileService/index.d.ts +34 -0
- package/dist/src/lib/fileService/index.js +80 -0
- package/dist/src/lib/getImage/index.d.ts +4 -0
- package/dist/src/lib/getImage/index.js +10 -0
- package/dist/src/lib/image/index.d.ts +7 -0
- package/dist/src/lib/image/index.js +49 -0
- package/dist/src/lib/omnigateway/index.d.ts +7 -0
- package/dist/src/lib/omnigateway/index.js +58 -0
- package/dist/src/lib/paymentV2/index.d.ts +18 -0
- package/dist/src/lib/paymentV2/index.js +245 -0
- package/dist/src/lib/portal/index.d.ts +23 -0
- package/dist/src/lib/portal/index.js +255 -0
- package/dist/src/lib/product/index.d.ts +1 -0
- package/dist/src/lib/product/index.js +16 -0
- package/dist/src/lib/shareZalo/index.d.ts +5 -0
- package/dist/src/lib/shareZalo/index.js +32 -0
- package/dist/src/lib/store/index.d.ts +30 -0
- package/dist/src/lib/store/index.js +74 -0
- package/dist/src/lib/token/index.d.ts +5 -0
- package/dist/src/lib/token/index.js +32 -0
- package/dist/src/lib/upload/index.d.ts +5 -0
- package/dist/src/lib/upload/index.js +35 -0
- package/dist/src/lib/warehouseV2/index.d.ts +13 -0
- package/dist/src/lib/warehouseV2/index.js +54 -0
- package/dist/src/lib/zca/index.d.ts +12 -0
- package/dist/src/lib/zca/index.js +41 -0
- package/dist/src/types/campaign.d.ts +14 -0
- package/dist/src/types/campaign.js +2 -0
- package/dist/src/types/common.d.ts +264 -0
- package/dist/src/types/common.js +35 -0
- package/dist/src/types/invoice.d.ts +13 -0
- package/dist/src/types/invoice.js +2 -0
- package/dist/src/types/portal.d.ts +7 -0
- package/dist/src/types/portal.js +2 -0
- package/dist/src/types/store.d.ts +158 -0
- package/dist/src/types/store.js +3 -0
- package/dist/src/utils/errorHandler.d.ts +64 -0
- package/dist/src/utils/errorHandler.js +197 -0
- package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
- package/dist/src/utils/validatePhoneNumber.js +20 -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
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* Common product fields fragment
|
3
|
+
* Used across multiple product queries to reduce duplication
|
4
|
+
*/
|
5
|
+
export declare const PRODUCT_CORE_FIELDS: import("graphql").DocumentNode;
|
6
|
+
/**
|
7
|
+
* Product attributes fragment
|
8
|
+
*/
|
9
|
+
export declare const PRODUCT_ATTRIBUTES: import("graphql").DocumentNode;
|
10
|
+
/**
|
11
|
+
* Product variants fragment
|
12
|
+
*/
|
13
|
+
export declare const PRODUCT_VARIANTS: import("graphql").DocumentNode;
|
14
|
+
/**
|
15
|
+
* Product feature types fragment
|
16
|
+
*/
|
17
|
+
export declare const PRODUCT_FEATURE_TYPES: import("graphql").DocumentNode;
|
18
|
+
/**
|
19
|
+
* Product categories fragment
|
20
|
+
*/
|
21
|
+
export declare const PRODUCT_CATEGORIES: import("graphql").DocumentNode;
|
22
|
+
/**
|
23
|
+
* Product unit fragment
|
24
|
+
*/
|
25
|
+
export declare const PRODUCT_UNIT: import("graphql").DocumentNode;
|
26
|
+
/**
|
27
|
+
* Complete product details fragment
|
28
|
+
* Combines all product fragments for detailed queries
|
29
|
+
*/
|
30
|
+
export declare const PRODUCT_FULL_DETAILS: import("graphql").DocumentNode;
|
31
|
+
/**
|
32
|
+
* Simple product fields for list views
|
33
|
+
*/
|
34
|
+
export declare const PRODUCT_SIMPLE_FIELDS: import("graphql").DocumentNode;
|
35
|
+
/**
|
36
|
+
* Extended product fields for getProducts query
|
37
|
+
*/
|
38
|
+
export declare const PRODUCT_EXTENDED_FIELDS: import("graphql").DocumentNode;
|
@@ -0,0 +1,196 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PRODUCT_EXTENDED_FIELDS = exports.PRODUCT_SIMPLE_FIELDS = exports.PRODUCT_FULL_DETAILS = exports.PRODUCT_UNIT = exports.PRODUCT_CATEGORIES = exports.PRODUCT_FEATURE_TYPES = exports.PRODUCT_VARIANTS = exports.PRODUCT_ATTRIBUTES = exports.PRODUCT_CORE_FIELDS = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
/**
|
6
|
+
* Common product fields fragment
|
7
|
+
* Used across multiple product queries to reduce duplication
|
8
|
+
*/
|
9
|
+
exports.PRODUCT_CORE_FIELDS = (0, graphql_tag_1.gql) `
|
10
|
+
fragment ProductCoreFields on Product {
|
11
|
+
id
|
12
|
+
title
|
13
|
+
description
|
14
|
+
sku
|
15
|
+
shortDescription
|
16
|
+
weight
|
17
|
+
width
|
18
|
+
depth
|
19
|
+
height
|
20
|
+
vat
|
21
|
+
qualify
|
22
|
+
parentId
|
23
|
+
handle
|
24
|
+
price
|
25
|
+
options
|
26
|
+
optionsRelationship
|
27
|
+
compareAtPrice
|
28
|
+
featuredImage
|
29
|
+
images
|
30
|
+
}
|
31
|
+
`;
|
32
|
+
/**
|
33
|
+
* Product attributes fragment
|
34
|
+
*/
|
35
|
+
exports.PRODUCT_ATTRIBUTES = (0, graphql_tag_1.gql) `
|
36
|
+
fragment ProductAttributes on Product {
|
37
|
+
productAttributes {
|
38
|
+
attributeName
|
39
|
+
attributeValue
|
40
|
+
}
|
41
|
+
}
|
42
|
+
`;
|
43
|
+
/**
|
44
|
+
* Product variants fragment
|
45
|
+
*/
|
46
|
+
exports.PRODUCT_VARIANTS = (0, graphql_tag_1.gql) `
|
47
|
+
fragment ProductVariants on Product {
|
48
|
+
variants {
|
49
|
+
id
|
50
|
+
handle
|
51
|
+
title
|
52
|
+
price
|
53
|
+
compareAtPrice
|
54
|
+
options
|
55
|
+
optionsIds
|
56
|
+
featuredImage
|
57
|
+
sku
|
58
|
+
}
|
59
|
+
}
|
60
|
+
`;
|
61
|
+
/**
|
62
|
+
* Product feature types fragment
|
63
|
+
*/
|
64
|
+
exports.PRODUCT_FEATURE_TYPES = (0, graphql_tag_1.gql) `
|
65
|
+
fragment ProductFeatureTypes on Product {
|
66
|
+
featureTypes {
|
67
|
+
id
|
68
|
+
name
|
69
|
+
values
|
70
|
+
valuesFull {
|
71
|
+
id
|
72
|
+
name
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
`;
|
77
|
+
/**
|
78
|
+
* Product categories fragment
|
79
|
+
*/
|
80
|
+
exports.PRODUCT_CATEGORIES = (0, graphql_tag_1.gql) `
|
81
|
+
fragment ProductCategories on Product {
|
82
|
+
categories {
|
83
|
+
id
|
84
|
+
title
|
85
|
+
handle
|
86
|
+
}
|
87
|
+
}
|
88
|
+
`;
|
89
|
+
/**
|
90
|
+
* Product unit fragment
|
91
|
+
*/
|
92
|
+
exports.PRODUCT_UNIT = (0, graphql_tag_1.gql) `
|
93
|
+
fragment ProductUnit on Product {
|
94
|
+
unitDTO {
|
95
|
+
id
|
96
|
+
name
|
97
|
+
}
|
98
|
+
}
|
99
|
+
`;
|
100
|
+
/**
|
101
|
+
* Complete product details fragment
|
102
|
+
* Combines all product fragments for detailed queries
|
103
|
+
*/
|
104
|
+
exports.PRODUCT_FULL_DETAILS = (0, graphql_tag_1.gql) `
|
105
|
+
fragment ProductFullDetails on Product {
|
106
|
+
...ProductCoreFields
|
107
|
+
...ProductAttributes
|
108
|
+
...ProductVariants
|
109
|
+
...ProductFeatureTypes
|
110
|
+
...ProductCategories
|
111
|
+
...ProductUnit
|
112
|
+
}
|
113
|
+
${exports.PRODUCT_CORE_FIELDS}
|
114
|
+
${exports.PRODUCT_ATTRIBUTES}
|
115
|
+
${exports.PRODUCT_VARIANTS}
|
116
|
+
${exports.PRODUCT_FEATURE_TYPES}
|
117
|
+
${exports.PRODUCT_CATEGORIES}
|
118
|
+
${exports.PRODUCT_UNIT}
|
119
|
+
`;
|
120
|
+
/**
|
121
|
+
* Simple product fields for list views
|
122
|
+
*/
|
123
|
+
exports.PRODUCT_SIMPLE_FIELDS = (0, graphql_tag_1.gql) `
|
124
|
+
fragment ProductSimpleFields on Product {
|
125
|
+
id
|
126
|
+
title
|
127
|
+
sku
|
128
|
+
shortDescription
|
129
|
+
description
|
130
|
+
subType
|
131
|
+
vat
|
132
|
+
qualify
|
133
|
+
parentId
|
134
|
+
handle
|
135
|
+
price
|
136
|
+
compareAtPrice
|
137
|
+
priceType
|
138
|
+
priceTypeName
|
139
|
+
featuredImage
|
140
|
+
optionsRelationship
|
141
|
+
images
|
142
|
+
}
|
143
|
+
`;
|
144
|
+
/**
|
145
|
+
* Extended product fields for getProducts query
|
146
|
+
*/
|
147
|
+
exports.PRODUCT_EXTENDED_FIELDS = (0, graphql_tag_1.gql) `
|
148
|
+
fragment ProductExtendedFields on Product {
|
149
|
+
id
|
150
|
+
title
|
151
|
+
subType
|
152
|
+
description
|
153
|
+
sku
|
154
|
+
shortDescription
|
155
|
+
weight
|
156
|
+
width
|
157
|
+
depth
|
158
|
+
height
|
159
|
+
vat
|
160
|
+
qualify
|
161
|
+
parentId
|
162
|
+
handle
|
163
|
+
price
|
164
|
+
priceType
|
165
|
+
salePolicy
|
166
|
+
priceTypeName
|
167
|
+
priceVaries
|
168
|
+
available
|
169
|
+
tags
|
170
|
+
options
|
171
|
+
optionsRelationship
|
172
|
+
compareAtPrice
|
173
|
+
featuredImage
|
174
|
+
images
|
175
|
+
categories {
|
176
|
+
id
|
177
|
+
title
|
178
|
+
image
|
179
|
+
icon
|
180
|
+
parentId
|
181
|
+
level
|
182
|
+
handle
|
183
|
+
description
|
184
|
+
}
|
185
|
+
groups {
|
186
|
+
id
|
187
|
+
name
|
188
|
+
policy
|
189
|
+
image
|
190
|
+
}
|
191
|
+
unitDTO {
|
192
|
+
id
|
193
|
+
name
|
194
|
+
}
|
195
|
+
}
|
196
|
+
`;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const CANCEL_PAYMENT: import("graphql").DocumentNode;
|
2
|
+
export declare const CONFIRM_TO_GATEWAY: import("graphql").DocumentNode;
|
3
|
+
export declare const CONFIRM_PAYMENT_SUCCESS_MANUAL: import("graphql").DocumentNode;
|
4
|
+
export declare const HANDLE_UPDATE_GATEWAY_CONFIG: import("graphql").DocumentNode;
|
5
|
+
export declare const HANDLE_CREATE_GATEWAY_CONFIG: import("graphql").DocumentNode;
|
@@ -0,0 +1,120 @@
|
|
1
|
+
"use strict";
|
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;
|
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
|
+
}
|
9
|
+
`;
|
10
|
+
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
11
|
+
mutation ConfirmToGateWay(
|
12
|
+
$paymentId: String!
|
13
|
+
$methodCode: String
|
14
|
+
$returnUrl: String
|
15
|
+
) {
|
16
|
+
confirmToGateway(
|
17
|
+
paymentId: $paymentId
|
18
|
+
methodCode: $methodCode
|
19
|
+
returnUrl: $returnUrl
|
20
|
+
) {
|
21
|
+
code
|
22
|
+
message
|
23
|
+
data
|
24
|
+
qrCodeUrl
|
25
|
+
deeplink
|
26
|
+
deeplinkMiniApp
|
27
|
+
paymentId
|
28
|
+
gwConfigId
|
29
|
+
}
|
30
|
+
}
|
31
|
+
`;
|
32
|
+
exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
33
|
+
mutation ConfirmPaymentSuccessManual(
|
34
|
+
$paymentId: String!
|
35
|
+
$transactionNo: String!
|
36
|
+
$note: String
|
37
|
+
$confirmBy: String!
|
38
|
+
) {
|
39
|
+
confirmPaymentSuccessManual(
|
40
|
+
paymentId: $paymentId
|
41
|
+
transactionNo: $transactionNo
|
42
|
+
note: $note
|
43
|
+
confirmBy: $confirmBy
|
44
|
+
) {
|
45
|
+
code
|
46
|
+
message
|
47
|
+
data
|
48
|
+
qrCodeUrl
|
49
|
+
deeplink
|
50
|
+
deeplinkMiniApp
|
51
|
+
paymentId
|
52
|
+
}
|
53
|
+
}
|
54
|
+
`;
|
55
|
+
exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
56
|
+
mutation HandleUpdateGatewayConfig(
|
57
|
+
$input: PaymentGatewayConfigInput!
|
58
|
+
$cassoApiKey: String
|
59
|
+
) {
|
60
|
+
handleUpdateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
61
|
+
id
|
62
|
+
methodCode
|
63
|
+
partnerCode
|
64
|
+
subMethodCode
|
65
|
+
gwPartnerCode
|
66
|
+
gwPartnerName
|
67
|
+
gwPaymentMethod
|
68
|
+
gwSubChannel
|
69
|
+
gwMethodVersion
|
70
|
+
hashAlgorithm
|
71
|
+
accessKey
|
72
|
+
secretKey
|
73
|
+
responseUrl
|
74
|
+
requestUrl
|
75
|
+
methodType
|
76
|
+
publicKey
|
77
|
+
redirectUrl
|
78
|
+
activated
|
79
|
+
paymentRecordingMethod
|
80
|
+
userId
|
81
|
+
storeIdMapping {
|
82
|
+
storeId
|
83
|
+
gwStoreId
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
`;
|
88
|
+
exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
89
|
+
mutation HandleCreateGatewayConfig(
|
90
|
+
$input: PaymentGatewayConfigInput!
|
91
|
+
$cassoApiKey: String
|
92
|
+
) {
|
93
|
+
handleCreateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
94
|
+
id
|
95
|
+
methodCode
|
96
|
+
partnerCode
|
97
|
+
subMethodCode
|
98
|
+
gwPartnerCode
|
99
|
+
gwPartnerName
|
100
|
+
gwPaymentMethod
|
101
|
+
gwSubChannel
|
102
|
+
gwMethodVersion
|
103
|
+
hashAlgorithm
|
104
|
+
accessKey
|
105
|
+
secretKey
|
106
|
+
responseUrl
|
107
|
+
requestUrl
|
108
|
+
methodType
|
109
|
+
publicKey
|
110
|
+
redirectUrl
|
111
|
+
activated
|
112
|
+
paymentRecordingMethod
|
113
|
+
userId
|
114
|
+
storeIdMapping {
|
115
|
+
storeId
|
116
|
+
gwStoreId
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
`;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare const PAYMENTS_BY_ORDERS: import("graphql").DocumentNode;
|
2
|
+
export declare const PAYMENT_METHODS: import("graphql").DocumentNode;
|
3
|
+
export declare const GET_PAYMENT_METHOD_TYPES: import("graphql").DocumentNode;
|
4
|
+
export declare const PAYMENT_INFO: import("graphql").DocumentNode;
|
5
|
+
export declare const PAYMENT_STATUS: import("graphql").DocumentNode;
|
6
|
+
export declare const GW_CONFIG_DETAIL: import("graphql").DocumentNode;
|
7
|
+
export declare const GET_PAYMENT_METHOD_TITLES: import("graphql").DocumentNode;
|
8
|
+
export declare const GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE: import("graphql").DocumentNode;
|
9
|
+
export declare const GET_PAYMENT_METHOD_TYPES_V2: import("graphql").DocumentNode;
|
@@ -0,0 +1,257 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
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
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
|
6
|
+
query PaymentsByOrders($orderIds: [String!]!) {
|
7
|
+
paymentsByOrders(orderIds: $orderIds) {
|
8
|
+
methodCode
|
9
|
+
methodTypeCode
|
10
|
+
gatewayConfigId
|
11
|
+
partnerCode
|
12
|
+
totalAmount
|
13
|
+
fee
|
14
|
+
discountAmount
|
15
|
+
payDate
|
16
|
+
payType
|
17
|
+
transactionDate
|
18
|
+
orderId
|
19
|
+
paymentId
|
20
|
+
invoiceId
|
21
|
+
orderInfo
|
22
|
+
orderType
|
23
|
+
locale
|
24
|
+
merchantIp
|
25
|
+
extraData
|
26
|
+
storeID
|
27
|
+
bankCode
|
28
|
+
appUser
|
29
|
+
phone
|
30
|
+
email
|
31
|
+
address
|
32
|
+
statusCode
|
33
|
+
statusDescription
|
34
|
+
transactionId
|
35
|
+
createBy
|
36
|
+
methodDescription
|
37
|
+
methodMapping
|
38
|
+
baseMethodCode
|
39
|
+
confirmPaidBy
|
40
|
+
confirmPaidDate
|
41
|
+
qrCode
|
42
|
+
payUrl
|
43
|
+
paymentNote
|
44
|
+
}
|
45
|
+
}
|
46
|
+
`;
|
47
|
+
exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
|
48
|
+
query PaymentMethods {
|
49
|
+
paymentMethods {
|
50
|
+
id
|
51
|
+
code
|
52
|
+
name
|
53
|
+
description
|
54
|
+
image
|
55
|
+
titles {
|
56
|
+
id
|
57
|
+
code
|
58
|
+
name
|
59
|
+
lang
|
60
|
+
showField
|
61
|
+
required
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
`;
|
66
|
+
exports.GET_PAYMENT_METHOD_TYPES = (0, graphql_tag_1.gql) `
|
67
|
+
query GetPaymentMethodTypes($partnerId: String!, $storeId: String!) {
|
68
|
+
getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
|
69
|
+
code
|
70
|
+
name
|
71
|
+
description
|
72
|
+
image
|
73
|
+
}
|
74
|
+
}
|
75
|
+
`;
|
76
|
+
exports.PAYMENT_INFO = (0, graphql_tag_1.gql) `
|
77
|
+
query PaymentInfo($paymentId: String!) {
|
78
|
+
paymentInfo(paymentId: $paymentId) {
|
79
|
+
id
|
80
|
+
payType
|
81
|
+
payDate
|
82
|
+
dueDate
|
83
|
+
completePayment
|
84
|
+
paymentTerm
|
85
|
+
methodCode
|
86
|
+
methodTypeCode
|
87
|
+
gatewayConfigId
|
88
|
+
partnerCode
|
89
|
+
totalAmount
|
90
|
+
remain
|
91
|
+
currCode
|
92
|
+
invoiceId
|
93
|
+
orderId
|
94
|
+
orderInfo
|
95
|
+
orderGroup
|
96
|
+
orderType
|
97
|
+
returnUrl
|
98
|
+
ipnUrl
|
99
|
+
merchantIp
|
100
|
+
extraData
|
101
|
+
storeID
|
102
|
+
bankCode
|
103
|
+
appUser
|
104
|
+
phone
|
105
|
+
email
|
106
|
+
address
|
107
|
+
signature
|
108
|
+
createBy
|
109
|
+
transactionId
|
110
|
+
baseMethodCode
|
111
|
+
retry
|
112
|
+
postToOrder
|
113
|
+
editAble
|
114
|
+
approved
|
115
|
+
statusCode
|
116
|
+
paymentGroup
|
117
|
+
userId
|
118
|
+
type
|
119
|
+
attributes
|
120
|
+
items {
|
121
|
+
id
|
122
|
+
partnerCode
|
123
|
+
paymentId
|
124
|
+
type
|
125
|
+
orderId
|
126
|
+
invoiceId
|
127
|
+
orderGroup
|
128
|
+
orderType
|
129
|
+
orderInfo
|
130
|
+
totalAmount
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
`;
|
135
|
+
exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
|
136
|
+
query PaymentStatus($paymentId: String!) {
|
137
|
+
paymentStatus(paymentId: $paymentId) {
|
138
|
+
methodCode
|
139
|
+
methodTypeCode
|
140
|
+
gatewayConfigId
|
141
|
+
partnerCode
|
142
|
+
totalAmount
|
143
|
+
fee
|
144
|
+
discountAmount
|
145
|
+
payDate
|
146
|
+
payType
|
147
|
+
transactionDate
|
148
|
+
paymentId
|
149
|
+
invoiceId
|
150
|
+
orderInfo
|
151
|
+
orderType
|
152
|
+
locale
|
153
|
+
merchantIp
|
154
|
+
extraData
|
155
|
+
storeID
|
156
|
+
bankCode
|
157
|
+
appUser
|
158
|
+
phone
|
159
|
+
email
|
160
|
+
address
|
161
|
+
statusCode
|
162
|
+
statusDescription
|
163
|
+
transactionId
|
164
|
+
createBy
|
165
|
+
methodDescription
|
166
|
+
methodMapping
|
167
|
+
baseMethodCode
|
168
|
+
confirmPaidBy
|
169
|
+
confirmPaidDate
|
170
|
+
qrCode
|
171
|
+
payUrl
|
172
|
+
attributes
|
173
|
+
}
|
174
|
+
}
|
175
|
+
`;
|
176
|
+
exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
|
177
|
+
query GwConfigDetail($configId: String!) {
|
178
|
+
gwConfigDetail(configId: $configId) {
|
179
|
+
id
|
180
|
+
name
|
181
|
+
methodCode
|
182
|
+
partnerCode
|
183
|
+
subMethodCode
|
184
|
+
gwPartnerCode
|
185
|
+
gwPartnerName
|
186
|
+
gwSubChannel
|
187
|
+
gwMethodVersion
|
188
|
+
accessKey
|
189
|
+
secretKey
|
190
|
+
description
|
191
|
+
activated
|
192
|
+
}
|
193
|
+
}
|
194
|
+
`;
|
195
|
+
exports.GET_PAYMENT_METHOD_TITLES = (0, graphql_tag_1.gql) `
|
196
|
+
query GetPaymentMethodTitles($methodCode: String!) {
|
197
|
+
getPaymentMethodTitles(methodCode: $methodCode) {
|
198
|
+
id
|
199
|
+
code
|
200
|
+
name
|
201
|
+
lang
|
202
|
+
showField
|
203
|
+
required
|
204
|
+
}
|
205
|
+
}
|
206
|
+
`;
|
207
|
+
exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = (0, graphql_tag_1.gql) `
|
208
|
+
query GetPaymentGatewaysByMethodCode(
|
209
|
+
$partnerId: String!
|
210
|
+
$methodCode: String!
|
211
|
+
$storeId: String
|
212
|
+
) {
|
213
|
+
getPaymentGatewaysByMethodCode(
|
214
|
+
partnerId: $partnerId
|
215
|
+
methodCode: $methodCode
|
216
|
+
storeId: $storeId
|
217
|
+
) {
|
218
|
+
id
|
219
|
+
name
|
220
|
+
methodCode
|
221
|
+
partnerCode
|
222
|
+
subMethodCode
|
223
|
+
gwPartnerCode
|
224
|
+
gwPartnerName
|
225
|
+
gwSubChannel
|
226
|
+
gwMethodVersion
|
227
|
+
hashAlgorithm
|
228
|
+
accessKey
|
229
|
+
secretKey
|
230
|
+
requestUrl
|
231
|
+
description
|
232
|
+
activated
|
233
|
+
storeActive
|
234
|
+
}
|
235
|
+
}
|
236
|
+
`;
|
237
|
+
exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
|
238
|
+
query GetPaymentMethodTypes(
|
239
|
+
$partnerId: String!
|
240
|
+
$storeId: String!
|
241
|
+
$storeActive: StoreActive
|
242
|
+
$allMethodTypes: Boolean
|
243
|
+
) {
|
244
|
+
getPaymentMethodTypes(
|
245
|
+
partnerId: $partnerId
|
246
|
+
storeId: $storeId
|
247
|
+
storeActive: $storeActive
|
248
|
+
allMethodTypes: $allMethodTypes
|
249
|
+
) {
|
250
|
+
code
|
251
|
+
name
|
252
|
+
description
|
253
|
+
image
|
254
|
+
storeActive
|
255
|
+
}
|
256
|
+
}
|
257
|
+
`;
|
@@ -23,3 +23,4 @@ export declare const GET_LIST_PRICE: DocumentNode;
|
|
23
23
|
export declare const GET_TAGS: DocumentNode;
|
24
24
|
export declare const GET_TAGS_BY_CATEGORY: DocumentNode;
|
25
25
|
export declare const GET_LIST_PRODUCTS_CONFIG_DYNAMIC: (fields?: string[]) => DocumentNode;
|
26
|
+
export declare const GET_CATEGORIES: DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
3
|
+
exports.GET_CATEGORIES = exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
// export const GET_PRODUCT_BY_ID_QUERY = gql`
|
6
6
|
// query GetProductById(
|
@@ -1036,3 +1036,16 @@ const GET_LIST_PRODUCTS_CONFIG_DYNAMIC = (fields = []) => {
|
|
1036
1036
|
`;
|
1037
1037
|
};
|
1038
1038
|
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = GET_LIST_PRODUCTS_CONFIG_DYNAMIC;
|
1039
|
+
exports.GET_CATEGORIES = (0, graphql_tag_1.gql) `
|
1040
|
+
query GetCategories($partnerId: String!, $storeChannel: String!) {
|
1041
|
+
getCategories(partnerId: $partnerId, storeChannel: $storeChannel) {
|
1042
|
+
id
|
1043
|
+
title
|
1044
|
+
image
|
1045
|
+
icon
|
1046
|
+
parentId
|
1047
|
+
level
|
1048
|
+
handle
|
1049
|
+
}
|
1050
|
+
}
|
1051
|
+
`;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const CREATE_STORE_MUTATION: import("graphql").DocumentNode;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CREATE_STORE_MUTATION = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.CREATE_STORE_MUTATION = (0, graphql_tag_1.gql) `
|
6
|
+
mutation CreateStore($partnerId: String, $storeName: String) {
|
7
|
+
createStore(partnerId: $partnerId, storeName: $storeName) {
|
8
|
+
id
|
9
|
+
createdStamp
|
10
|
+
name
|
11
|
+
type
|
12
|
+
enable
|
13
|
+
partyId
|
14
|
+
warehouses
|
15
|
+
warehouseIdDefault
|
16
|
+
enableOrderAbleFuture
|
17
|
+
enableOrderNegativeQuantity
|
18
|
+
storeEcommerceName
|
19
|
+
shippingCompanies
|
20
|
+
shippingCompanyIdPrimary
|
21
|
+
customerIdPrimary
|
22
|
+
paymentMethodIdPrimary
|
23
|
+
enableCustomProductPrice
|
24
|
+
enablePaymentPartial
|
25
|
+
paymentPartialPercent
|
26
|
+
productStoreLink
|
27
|
+
}
|
28
|
+
}
|
29
|
+
`;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const GET_STORE_CHANNEL_BY_EMP_ID_QUERY: import("graphql").DocumentNode;
|