@longvansoftware/service-js-client 1.16.6 → 1.16.7
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/cloud/mutations.d.ts +23 -16
- package/dist/src/graphql/cloud/mutations.js +101 -1
- package/dist/src/graphql/cloud/queries.d.ts +1 -0
- package/dist/src/graphql/cloud/queries.js +26 -1
- package/dist/src/graphql/computing/mutations.d.ts +1 -0
- package/dist/src/graphql/computing/mutations.js +15 -1
- package/dist/src/graphql/crm/mutations.d.ts +3 -0
- package/dist/src/graphql/crm/mutations.js +54 -1
- package/dist/src/graphql/crm/queries.d.ts +17 -11
- package/dist/src/graphql/crm/queries.js +107 -1
- package/dist/src/graphql/crm_camping/queries.js +49 -19
- package/dist/src/graphql/fragments/product.d.ts +38 -0
- package/dist/src/graphql/fragments/product.js +196 -0
- package/dist/src/graphql/orderGraphQL/queries.d.ts +7 -5
- package/dist/src/graphql/orderGraphQL/queries.js +11 -1
- 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 +2 -0
- package/dist/src/graphql/product/queries.js +41 -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/auth/index.d.ts +1 -1
- package/dist/src/lib/auth/index.js +3 -4
- 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/cloud/index.d.ts +7 -0
- package/dist/src/lib/cloud/index.js +123 -0
- package/dist/src/lib/comhub/index.d.ts +6 -0
- package/dist/src/lib/comhub/index.js +50 -0
- package/dist/src/lib/computing/index.d.ts +1 -0
- package/dist/src/lib/computing/index.js +17 -0
- package/dist/src/lib/crm/index.d.ts +8 -0
- package/dist/src/lib/crm/index.js +141 -0
- package/dist/src/lib/crm_camping/index.d.ts +2 -2
- package/dist/src/lib/crm_camping/index.js +13 -8
- 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/orderGraphQL/index.d.ts +1 -0
- package/dist/src/lib/orderGraphQL/index.js +16 -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 +2 -0
- package/dist/src/lib/product/index.js +34 -0
- package/dist/src/lib/resource_permission/index.d.ts +2 -2
- package/dist/src/lib/resource_permission/index.js +4 -4
- 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 @@
|
|
|
1
|
+
export declare const ADD_CUSTOMER_ID_INTO_VOUCHER: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = void 0;
|
|
7
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
+
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
|
|
9
|
+
mutation AddCustomerToVoucher(
|
|
10
|
+
$partyId: String!
|
|
11
|
+
$voucherCode: String!
|
|
12
|
+
$userId: String!
|
|
13
|
+
$affiliateId: String
|
|
14
|
+
) {
|
|
15
|
+
addCustomerToVoucher(
|
|
16
|
+
partyId: $partyId
|
|
17
|
+
voucherCode: $voucherCode
|
|
18
|
+
userId: $userId
|
|
19
|
+
affiliateId: $affiliateId
|
|
20
|
+
) {
|
|
21
|
+
id
|
|
22
|
+
customerId
|
|
23
|
+
campaignActionId
|
|
24
|
+
campaignId
|
|
25
|
+
partyId
|
|
26
|
+
voucherCode
|
|
27
|
+
voucherType
|
|
28
|
+
status
|
|
29
|
+
discountAmount
|
|
30
|
+
discountPercent
|
|
31
|
+
usageLimitPerVoucher
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const GET_CAMPAIGN_ACTION_ACTIVE_NOW: import("graphql").DocumentNode;
|
|
2
|
+
export declare const GET_VOUCHERS: import("graphql").DocumentNode;
|
|
3
|
+
export declare const CHECK_VALID_VOUCHER: import("graphql").DocumentNode;
|
|
4
|
+
export declare const GET_CAMPAIGN_ACTIVE_NOW: import("graphql").DocumentNode;
|
|
5
|
+
export declare const GET_PROMOTION_PRODUCT_PRICE: import("graphql").DocumentNode;
|
|
6
|
+
export declare const GET_VOUCHER_AVAILABLE_FOR_CUSTOMER: import("graphql").DocumentNode;
|
|
7
|
+
export declare const SUGGEST_VOUCHER: import("graphql").DocumentNode;
|
|
8
|
+
export declare const GET_CAMPAIGN_ACTION_BY_ID: import("graphql").DocumentNode;
|
|
9
|
+
export declare const SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = exports.GET_CAMPAIGN_ACTION_BY_ID = exports.SUGGEST_VOUCHER = exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = exports.GET_PROMOTION_PRODUCT_PRICE = exports.GET_CAMPAIGN_ACTIVE_NOW = exports.CHECK_VALID_VOUCHER = exports.GET_VOUCHERS = exports.GET_CAMPAIGN_ACTION_ACTIVE_NOW = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.GET_CAMPAIGN_ACTION_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
6
|
+
query GetCampaignActionActiveNow(
|
|
7
|
+
$partyId: String!
|
|
8
|
+
$customerId: String
|
|
9
|
+
$campaignActionType: String
|
|
10
|
+
$productStoreId: String
|
|
11
|
+
) {
|
|
12
|
+
getCampaignActionActiveNow(
|
|
13
|
+
checkCampaignActiveRequest: {
|
|
14
|
+
partyId: $partyId
|
|
15
|
+
customerId: $customerId
|
|
16
|
+
campaignActionType: $campaignActionType
|
|
17
|
+
productStoreId: $productStoreId
|
|
18
|
+
}
|
|
19
|
+
) {
|
|
20
|
+
campaignId
|
|
21
|
+
campaignName
|
|
22
|
+
statusCampaign
|
|
23
|
+
campaignDescription
|
|
24
|
+
fromDate
|
|
25
|
+
toDate
|
|
26
|
+
campaignActionId
|
|
27
|
+
campaignActionName
|
|
28
|
+
type
|
|
29
|
+
campaignActionDescription
|
|
30
|
+
priorityLevel
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
35
|
+
query SearchVoucher(
|
|
36
|
+
$partyId: String
|
|
37
|
+
$storeId: String
|
|
38
|
+
$campaignId: String
|
|
39
|
+
$campaignActionId: String
|
|
40
|
+
$campaignActionType: String
|
|
41
|
+
$customerId: String
|
|
42
|
+
$excludeExpired: Boolean
|
|
43
|
+
$pageNumber: Int
|
|
44
|
+
$pageSize: Int
|
|
45
|
+
) {
|
|
46
|
+
searchVoucher(
|
|
47
|
+
searchVoucherRequest: {
|
|
48
|
+
partyId: $partyId
|
|
49
|
+
storeId: $storeId
|
|
50
|
+
campaignId: $campaignId
|
|
51
|
+
campaignActionId: $campaignActionId
|
|
52
|
+
campaignActionType: $campaignActionType
|
|
53
|
+
customerId: $customerId
|
|
54
|
+
excludeExpired: $excludeExpired
|
|
55
|
+
pageNumber: $pageNumber
|
|
56
|
+
pageSize: $pageSize
|
|
57
|
+
}
|
|
58
|
+
) {
|
|
59
|
+
total
|
|
60
|
+
totalPages
|
|
61
|
+
totalElements
|
|
62
|
+
last
|
|
63
|
+
first
|
|
64
|
+
number
|
|
65
|
+
numberOfElements
|
|
66
|
+
size
|
|
67
|
+
empty
|
|
68
|
+
content {
|
|
69
|
+
campaignActionId
|
|
70
|
+
campaignId
|
|
71
|
+
partyId
|
|
72
|
+
voucherCode
|
|
73
|
+
voucherType
|
|
74
|
+
status
|
|
75
|
+
discountAmount
|
|
76
|
+
discountPercent
|
|
77
|
+
usageLimitPerVoucher
|
|
78
|
+
maximumDiscount
|
|
79
|
+
numberOfTimeUsed
|
|
80
|
+
id
|
|
81
|
+
createdStamp
|
|
82
|
+
updatedStamp
|
|
83
|
+
updatedBy
|
|
84
|
+
createdBy
|
|
85
|
+
isBirthday
|
|
86
|
+
customerId
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
exports.CHECK_VALID_VOUCHER = (0, graphql_tag_1.gql) `
|
|
92
|
+
query CheckValidVoucher(
|
|
93
|
+
$partyId: String
|
|
94
|
+
$productStoreId: String
|
|
95
|
+
$customerId: String
|
|
96
|
+
$voucherCode: String!
|
|
97
|
+
) {
|
|
98
|
+
checkValidVoucher(
|
|
99
|
+
checkValidVoucherRequest: {
|
|
100
|
+
customerId: $customerId
|
|
101
|
+
voucherCode: $voucherCode
|
|
102
|
+
productStoreId: $productStoreId
|
|
103
|
+
}
|
|
104
|
+
partyId: $partyId
|
|
105
|
+
) {
|
|
106
|
+
campaignActionId
|
|
107
|
+
campaignId
|
|
108
|
+
partyId
|
|
109
|
+
voucherCode
|
|
110
|
+
voucherType
|
|
111
|
+
status
|
|
112
|
+
discountAmount
|
|
113
|
+
discountPercent
|
|
114
|
+
usageLimitPerVoucher
|
|
115
|
+
maximumDiscount
|
|
116
|
+
numberOfTimeUsed
|
|
117
|
+
id
|
|
118
|
+
createdStamp
|
|
119
|
+
updatedStamp
|
|
120
|
+
updatedBy
|
|
121
|
+
createdBy
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
exports.GET_CAMPAIGN_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
126
|
+
query GetCampaignActiveNow(
|
|
127
|
+
$partyId: String!
|
|
128
|
+
$productStoreId: String
|
|
129
|
+
$campaignActionType: String
|
|
130
|
+
$customerId: String
|
|
131
|
+
) {
|
|
132
|
+
getCampaignActiveNow(
|
|
133
|
+
checkCampaignActiveRequest: {
|
|
134
|
+
partyId: $partyId
|
|
135
|
+
customerId: $customerId
|
|
136
|
+
campaignActionType: $campaignActionType
|
|
137
|
+
productStoreId: $productStoreId
|
|
138
|
+
}
|
|
139
|
+
) {
|
|
140
|
+
campaign {
|
|
141
|
+
id
|
|
142
|
+
createdStamp
|
|
143
|
+
updatedStamp
|
|
144
|
+
updatedBy
|
|
145
|
+
createdBy
|
|
146
|
+
useForAll
|
|
147
|
+
description
|
|
148
|
+
partyId
|
|
149
|
+
name
|
|
150
|
+
type
|
|
151
|
+
domain
|
|
152
|
+
fromDate
|
|
153
|
+
toDate
|
|
154
|
+
status
|
|
155
|
+
}
|
|
156
|
+
campaignActions {
|
|
157
|
+
name
|
|
158
|
+
description
|
|
159
|
+
partyId
|
|
160
|
+
type
|
|
161
|
+
viewTemplateId
|
|
162
|
+
urlTemplate
|
|
163
|
+
shortCode
|
|
164
|
+
uriPattern
|
|
165
|
+
parameterPattern
|
|
166
|
+
status
|
|
167
|
+
extendDaysForHeadReview
|
|
168
|
+
priorityLevel
|
|
169
|
+
positionConnectionType
|
|
170
|
+
baseCommissionPercent
|
|
171
|
+
targetType
|
|
172
|
+
id
|
|
173
|
+
createdStamp
|
|
174
|
+
updatedStamp
|
|
175
|
+
updatedBy
|
|
176
|
+
createdBy
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`;
|
|
181
|
+
exports.GET_PROMOTION_PRODUCT_PRICE = (0, graphql_tag_1.gql) `
|
|
182
|
+
query GetPromotionProductPrice(
|
|
183
|
+
$partyId: String!
|
|
184
|
+
$productStoreId: String!
|
|
185
|
+
$productId: String!
|
|
186
|
+
$productPrice: BigDecimal!
|
|
187
|
+
) {
|
|
188
|
+
getPromotionProductPrice(
|
|
189
|
+
partyId: $partyId
|
|
190
|
+
productStoreId: $productStoreId
|
|
191
|
+
productId: $productId
|
|
192
|
+
productPrice: $productPrice
|
|
193
|
+
) {
|
|
194
|
+
campaignId
|
|
195
|
+
campaignName
|
|
196
|
+
statusCampaign
|
|
197
|
+
campaignDescription
|
|
198
|
+
fromDate
|
|
199
|
+
toDate
|
|
200
|
+
campaignPrivateUse
|
|
201
|
+
useWithOtherCampaignIds
|
|
202
|
+
campaignActionId
|
|
203
|
+
campaignActionName
|
|
204
|
+
type
|
|
205
|
+
campaignActionDescription
|
|
206
|
+
priorityLevel
|
|
207
|
+
campaignActionPrivateUse
|
|
208
|
+
useWithOtherCampaignActionIds
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
`;
|
|
212
|
+
exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
|
|
213
|
+
query GetVoucherAvailableForCustomer(
|
|
214
|
+
$partyId: String
|
|
215
|
+
$storeId: String
|
|
216
|
+
$campaignId: String
|
|
217
|
+
$campaignActionId: String
|
|
218
|
+
$customerId: String
|
|
219
|
+
$excludeExpired: Boolean
|
|
220
|
+
$isPageAble: Boolean
|
|
221
|
+
) {
|
|
222
|
+
getVoucherAvailableForCustomer(
|
|
223
|
+
searchVoucherRequest: {
|
|
224
|
+
partyId: $partyId
|
|
225
|
+
storeId: $storeId
|
|
226
|
+
campaignId: $campaignId
|
|
227
|
+
campaignActionId: $campaignActionId
|
|
228
|
+
customerId: $customerId
|
|
229
|
+
excludeExpired: $excludeExpired
|
|
230
|
+
isPageAble: $isPageAble
|
|
231
|
+
}
|
|
232
|
+
) {
|
|
233
|
+
total
|
|
234
|
+
totalPages
|
|
235
|
+
totalElements
|
|
236
|
+
last
|
|
237
|
+
first
|
|
238
|
+
number
|
|
239
|
+
numberOfElements
|
|
240
|
+
size
|
|
241
|
+
empty
|
|
242
|
+
content {
|
|
243
|
+
campaignActionId
|
|
244
|
+
campaignId
|
|
245
|
+
partyId
|
|
246
|
+
voucherCode
|
|
247
|
+
voucherType
|
|
248
|
+
status
|
|
249
|
+
discountAmount
|
|
250
|
+
discountPercent
|
|
251
|
+
usageLimitPerVoucher
|
|
252
|
+
maximumDiscount
|
|
253
|
+
numberOfTimeUsed
|
|
254
|
+
id
|
|
255
|
+
createdStamp
|
|
256
|
+
updatedStamp
|
|
257
|
+
updatedBy
|
|
258
|
+
createdBy
|
|
259
|
+
isBirthday
|
|
260
|
+
customerId
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`;
|
|
265
|
+
exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
|
|
266
|
+
query SuggestVoucher(
|
|
267
|
+
$partyId: String
|
|
268
|
+
$customerId: String
|
|
269
|
+
$excludeExpired: Boolean
|
|
270
|
+
$campaignId: String
|
|
271
|
+
$campaignActionId: String
|
|
272
|
+
$isBirthday: Boolean
|
|
273
|
+
) {
|
|
274
|
+
suggestVoucher(
|
|
275
|
+
searchVoucherRequest: {
|
|
276
|
+
partyId: $partyId
|
|
277
|
+
customerId: $customerId
|
|
278
|
+
excludeExpired: $excludeExpired
|
|
279
|
+
campaignId: $campaignId
|
|
280
|
+
campaignActionId: $campaignActionId
|
|
281
|
+
isBirthday: $isBirthday
|
|
282
|
+
}
|
|
283
|
+
) {
|
|
284
|
+
total
|
|
285
|
+
totalPages
|
|
286
|
+
totalElements
|
|
287
|
+
last
|
|
288
|
+
first
|
|
289
|
+
number
|
|
290
|
+
numberOfElements
|
|
291
|
+
size
|
|
292
|
+
empty
|
|
293
|
+
content {
|
|
294
|
+
campaignActionId
|
|
295
|
+
campaignId
|
|
296
|
+
partyId
|
|
297
|
+
voucherCode
|
|
298
|
+
voucherType
|
|
299
|
+
status
|
|
300
|
+
discountAmount
|
|
301
|
+
discountPercent
|
|
302
|
+
usageLimitPerVoucher
|
|
303
|
+
maximumDiscount
|
|
304
|
+
numberOfTimeUsed
|
|
305
|
+
id
|
|
306
|
+
createdStamp
|
|
307
|
+
updatedStamp
|
|
308
|
+
updatedBy
|
|
309
|
+
createdBy
|
|
310
|
+
isBirthday
|
|
311
|
+
customerId
|
|
312
|
+
scope
|
|
313
|
+
affiliateId
|
|
314
|
+
maximumSpend
|
|
315
|
+
minimumSpend
|
|
316
|
+
maximumDiscountType
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
`;
|
|
321
|
+
// query GetCampaignActionById {
|
|
322
|
+
// getCampaignActionById(id: "20.1273.888") {
|
|
323
|
+
// name
|
|
324
|
+
// description
|
|
325
|
+
// partyId
|
|
326
|
+
// type
|
|
327
|
+
// viewTemplateId
|
|
328
|
+
// urlTemplate
|
|
329
|
+
// shortCode
|
|
330
|
+
// uriPattern
|
|
331
|
+
// parameterPattern
|
|
332
|
+
// status
|
|
333
|
+
// extendDaysForHeadReview
|
|
334
|
+
// priorityLevel
|
|
335
|
+
// positionConnectionType
|
|
336
|
+
// baseCommissionPercent
|
|
337
|
+
// targetType
|
|
338
|
+
// id
|
|
339
|
+
// createdStamp
|
|
340
|
+
// updatedStamp
|
|
341
|
+
// updatedBy
|
|
342
|
+
// createdBy
|
|
343
|
+
// }
|
|
344
|
+
// }
|
|
345
|
+
exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
|
|
346
|
+
query GetCampaignActionById($id: String!) {
|
|
347
|
+
getCampaignActionById(id: $id) {
|
|
348
|
+
name
|
|
349
|
+
description
|
|
350
|
+
partyId
|
|
351
|
+
type
|
|
352
|
+
viewTemplateId
|
|
353
|
+
urlTemplate
|
|
354
|
+
shortCode
|
|
355
|
+
uriPattern
|
|
356
|
+
parameterPattern
|
|
357
|
+
status
|
|
358
|
+
extendDaysForHeadReview
|
|
359
|
+
priorityLevel
|
|
360
|
+
positionConnectionType
|
|
361
|
+
baseCommissionPercent
|
|
362
|
+
targetType
|
|
363
|
+
id
|
|
364
|
+
createdStamp
|
|
365
|
+
updatedStamp
|
|
366
|
+
updatedBy
|
|
367
|
+
createdBy
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
`;
|
|
371
|
+
exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
372
|
+
query SearchProductGiftPromotionResponse(
|
|
373
|
+
$partyId: String!
|
|
374
|
+
$storeId: String
|
|
375
|
+
$productIds: [String]
|
|
376
|
+
$campaignActionId: String
|
|
377
|
+
$sort: [BaseSortRequest]
|
|
378
|
+
) {
|
|
379
|
+
searchProductGiftPromotionResponse(
|
|
380
|
+
parameterSearchProductGift: {
|
|
381
|
+
partyId: $partyId
|
|
382
|
+
storeId: $storeId
|
|
383
|
+
productIds: $productIds
|
|
384
|
+
campaignActionId: $campaignActionId
|
|
385
|
+
sort: $sort
|
|
386
|
+
}
|
|
387
|
+
) {
|
|
388
|
+
total
|
|
389
|
+
totalPages
|
|
390
|
+
totalElements
|
|
391
|
+
last
|
|
392
|
+
first
|
|
393
|
+
number
|
|
394
|
+
numberOfElements
|
|
395
|
+
size
|
|
396
|
+
empty
|
|
397
|
+
content {
|
|
398
|
+
id
|
|
399
|
+
partyId
|
|
400
|
+
campaignId
|
|
401
|
+
campaignActionId
|
|
402
|
+
productId
|
|
403
|
+
quantityLimit
|
|
404
|
+
campaignActionName
|
|
405
|
+
startDate
|
|
406
|
+
productParentId
|
|
407
|
+
endDate
|
|
408
|
+
newCustomer
|
|
409
|
+
createdStamp
|
|
410
|
+
updatedStamp
|
|
411
|
+
updatedBy
|
|
412
|
+
createdBy
|
|
413
|
+
giftPromotions {
|
|
414
|
+
fromQuantity
|
|
415
|
+
toProductId
|
|
416
|
+
toQuantity
|
|
417
|
+
productName
|
|
418
|
+
sku
|
|
419
|
+
featureImage
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
sort {
|
|
423
|
+
sorted
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
`;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_CASHBOOK_TRANSACTION_DETAIL = exports.SEARCH_TRANSACTIONS = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.SEARCH_TRANSACTIONS = (0, graphql_tag_1.gql) `
|
|
6
|
+
query SearchTransactions(
|
|
7
|
+
$partnerId: String!
|
|
8
|
+
$keyword: String
|
|
9
|
+
$dateFrom: Long
|
|
10
|
+
$dateTo: Long
|
|
11
|
+
$currentPage: Int
|
|
12
|
+
$pageSize: Int
|
|
13
|
+
) {
|
|
14
|
+
searchTransactions(
|
|
15
|
+
partnerId: $partnerId
|
|
16
|
+
keyword: $keyword
|
|
17
|
+
dateFrom: $dateFrom
|
|
18
|
+
dateTo: $dateTo
|
|
19
|
+
currentPage: $currentPage
|
|
20
|
+
pageSize: $pageSize
|
|
21
|
+
) {
|
|
22
|
+
total
|
|
23
|
+
index
|
|
24
|
+
maxResult
|
|
25
|
+
resultList {
|
|
26
|
+
id
|
|
27
|
+
createdStamp
|
|
28
|
+
updatedStamp
|
|
29
|
+
createdBy
|
|
30
|
+
updatedBy
|
|
31
|
+
partnerId
|
|
32
|
+
extId
|
|
33
|
+
transactionId
|
|
34
|
+
paymentGatewayType
|
|
35
|
+
bankCode
|
|
36
|
+
bankAccountNumber
|
|
37
|
+
extBankAccountNumber
|
|
38
|
+
extBank
|
|
39
|
+
amount
|
|
40
|
+
currencyCode
|
|
41
|
+
description
|
|
42
|
+
timeTransaction
|
|
43
|
+
status
|
|
44
|
+
gateway
|
|
45
|
+
paymentId
|
|
46
|
+
paymentAmount
|
|
47
|
+
paymentConfirmStatus
|
|
48
|
+
paymentConfirmNote
|
|
49
|
+
accountTransactionId
|
|
50
|
+
orderId
|
|
51
|
+
invoiceId
|
|
52
|
+
cashAccountId
|
|
53
|
+
purpose
|
|
54
|
+
customAttributes
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
exports.GET_CASHBOOK_TRANSACTION_DETAIL = (0, graphql_tag_1.gql) `
|
|
60
|
+
query GetCashbookTransactionDetail(
|
|
61
|
+
$partnerId: String!
|
|
62
|
+
$cashTransactionId: String!
|
|
63
|
+
) {
|
|
64
|
+
getCashbookTransactionDetail(
|
|
65
|
+
partnerId: $partnerId
|
|
66
|
+
cashTransactionId: $cashTransactionId
|
|
67
|
+
) {
|
|
68
|
+
id
|
|
69
|
+
createdStamp
|
|
70
|
+
updatedStamp
|
|
71
|
+
createdBy
|
|
72
|
+
updatedBy
|
|
73
|
+
partnerId
|
|
74
|
+
extId
|
|
75
|
+
transactionId
|
|
76
|
+
paymentGatewayType
|
|
77
|
+
bankCode
|
|
78
|
+
bankAccountNumber
|
|
79
|
+
extBankAccountNumber
|
|
80
|
+
extBank
|
|
81
|
+
amount
|
|
82
|
+
currencyCode
|
|
83
|
+
description
|
|
84
|
+
timeTransaction
|
|
85
|
+
status
|
|
86
|
+
gateway
|
|
87
|
+
paymentId
|
|
88
|
+
paymentAmount
|
|
89
|
+
paymentConfirmStatus
|
|
90
|
+
paymentConfirmNote
|
|
91
|
+
accountTransactionId
|
|
92
|
+
orderId
|
|
93
|
+
invoiceId
|
|
94
|
+
cashAccountId
|
|
95
|
+
purpose
|
|
96
|
+
customAttributes
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const GET_DOMAIN_INFO: DocumentNode;
|
|
3
|
+
export declare const CHECK_LIST_DOMAIN_NAME: DocumentNode;
|
|
4
|
+
export declare const CHECK_DOMAIN_NAME: DocumentNode;
|
|
5
|
+
export declare const CHANGE_SERVICE_NAME: DocumentNode;
|
|
6
|
+
export declare const CREATE_USER_MAIL_HOSTING: DocumentNode;
|
|
7
|
+
export declare const DELETE_USER_MAIL_HOSTING: DocumentNode;
|
|
8
|
+
export declare const UPDATE_DOMAIN_NAME: DocumentNode;
|
|
9
|
+
export declare const UPDATE_USER_NAME: DocumentNode;
|
|
10
|
+
export declare const UPDATE_PASSWORD: DocumentNode;
|
|
11
|
+
export declare const UPDATE_USER_PASSWORD: DocumentNode;
|
|
12
|
+
export declare const UPDATE_DNS: DocumentNode;
|
|
13
|
+
export declare const CREATE_DOMAIN_CONTACT: DocumentNode;
|
|
14
|
+
export declare const GET_ORDER_CHANGE_RESOURCE_TERM: DocumentNode;
|
|
15
|
+
export declare const CREATE_ACTION_CHANGE_IP_OF_SERVICE: DocumentNode;
|
|
16
|
+
export declare const UPDATE_ACTION_STATUS: DocumentNode;
|
|
17
|
+
export declare const UPDATE_ACTION_CUSTOM_ATTRIBUTE: DocumentNode;
|
|
18
|
+
export declare const UPDATE_SERVICE_COMPLETED: DocumentNode;
|
|
19
|
+
export declare const UPDATE_SERVICE_NEW: DocumentNode;
|
|
20
|
+
export declare const UPDATE_SERVICE_READY_DEPLOY: DocumentNode;
|
|
21
|
+
export declare const UPDATE_URL_PUBLIC: DocumentNode;
|
|
22
|
+
export declare const CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
23
|
+
export declare const CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC: (fields?: string[]) => DocumentNode;
|