@longvansoftware/service-js-client 2.8.9 → 2.9.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/dist/src/graphql/campaign/queries.d.ts +11 -13
- package/dist/src/graphql/campaign/queries.js +111 -39
- package/dist/src/graphql/cloudCloud/mutations.d.ts +0 -2
- package/dist/src/graphql/cloudCloud/mutations.js +27 -101
- package/dist/src/graphql/cloudCloud/queries.js +0 -4
- package/dist/src/graphql/computing/queries.d.ts +1 -0
- package/dist/src/graphql/computing/queries.js +6 -1
- package/dist/src/graphql/crm/queries.d.ts +1 -0
- package/dist/src/graphql/crm/queries.js +20 -1
- package/dist/src/graphql/orderCloud/mutations.d.ts +1 -3
- package/dist/src/graphql/orderCloud/mutations.js +5 -21
- package/dist/src/graphql/paymentV2/mutations.d.ts +0 -1
- package/dist/src/graphql/paymentV2/mutations.js +37 -23
- package/dist/src/graphql/paymentV2/queries.d.ts +0 -2
- package/dist/src/graphql/paymentV2/queries.js +1 -58
- package/dist/src/lib/campaign/index.d.ts +0 -1
- package/dist/src/lib/campaign/index.js +12 -69
- package/dist/src/lib/cloudCloud/index.d.ts +0 -1
- package/dist/src/lib/cloudCloud/index.js +0 -16
- package/dist/src/lib/computing/index.d.ts +1 -0
- package/dist/src/lib/computing/index.js +16 -0
- package/dist/src/lib/crm/index.d.ts +1 -0
- package/dist/src/lib/crm/index.js +17 -0
- package/dist/src/lib/orderCloud/index.d.ts +0 -2
- package/dist/src/lib/orderCloud/index.js +1 -47
- package/dist/src/lib/paymentV2/index.d.ts +1 -11
- package/dist/src/lib/paymentV2/index.js +14 -55
- package/dist/src/lib/portal/index.d.ts +2 -10
- package/dist/src/lib/portal/index.js +11 -171
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/utils/build-field-string.d.ts +1 -0
- package/dist/src/utils/build-field-string.js +16 -0
- package/package.json +1 -1
- package/dist/src/graphql/storefont/mutation.d.ts +0 -4
- package/dist/src/graphql/storefont/mutation.js +0 -56
- package/dist/src/graphql/storefont/queries.d.ts +0 -5
- package/dist/src/graphql/storefont/queries.js +0 -106
- package/dist/src/graphql/tag/mutations.d.ts +0 -2
- package/dist/src/graphql/tag/mutations.js +0 -44
- package/dist/src/graphql/tag/queries.d.ts +0 -1
- package/dist/src/graphql/tag/queries.js +0 -20
- package/dist/src/lib/imageGateway/index.d.ts +0 -6
- package/dist/src/lib/imageGateway/index.js +0 -18
- package/dist/src/lib/storefont/index.d.ts +0 -23
- package/dist/src/lib/storefont/index.js +0 -160
- package/dist/src/lib/tag/index.d.ts +0 -7
- package/dist/src/lib/tag/index.js +0 -61
|
@@ -1,13 +1,11 @@
|
|
|
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 SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE: DocumentNode;
|
|
13
|
-
export declare const GET_VOUCHER_FOR_USER: (fields?: string[]) => DocumentNode;
|
|
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;
|
|
10
|
+
export declare const GET_CAMPAIGN: import("graphql").DocumentNode;
|
|
11
|
+
export declare const SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE: import("graphql").DocumentNode;
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE = exports.GET_CAMPAIGN = 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
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
-
const helpers_1 = require("../../utils/helpers");
|
|
6
5
|
exports.GET_CAMPAIGN_ACTION_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
7
|
-
query GetCampaignActionActiveNow(
|
|
8
|
-
|
|
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
|
+
) {
|
|
9
20
|
campaignId
|
|
10
21
|
campaignName
|
|
11
22
|
statusCampaign
|
|
@@ -55,6 +66,7 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
55
66
|
size
|
|
56
67
|
empty
|
|
57
68
|
content {
|
|
69
|
+
campaignActionId
|
|
58
70
|
campaignId
|
|
59
71
|
partyId
|
|
60
72
|
voucherCode
|
|
@@ -62,12 +74,8 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
62
74
|
status
|
|
63
75
|
discountAmount
|
|
64
76
|
discountPercent
|
|
65
|
-
discountType
|
|
66
77
|
usageLimitPerVoucher
|
|
67
78
|
maximumDiscount
|
|
68
|
-
maximumDiscountType
|
|
69
|
-
minimumSpend
|
|
70
|
-
maximumSpend
|
|
71
79
|
numberOfTimeUsed
|
|
72
80
|
id
|
|
73
81
|
createdStamp
|
|
@@ -76,23 +84,25 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
76
84
|
createdBy
|
|
77
85
|
isBirthday
|
|
78
86
|
customerId
|
|
79
|
-
scope
|
|
80
|
-
affiliateId
|
|
81
|
-
description
|
|
82
|
-
expiryDate
|
|
83
|
-
customAttribute
|
|
84
|
-
assignUserLimit
|
|
85
|
-
ownerPartyId
|
|
86
|
-
migratedFromReferralId
|
|
87
|
-
campaignActionId
|
|
88
|
-
discountValue
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
`;
|
|
93
91
|
exports.CHECK_VALID_VOUCHER = (0, graphql_tag_1.gql) `
|
|
94
|
-
query CheckValidVoucher(
|
|
95
|
-
|
|
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
|
+
) {
|
|
96
106
|
campaignActionId
|
|
97
107
|
campaignId
|
|
98
108
|
partyId
|
|
@@ -113,8 +123,20 @@ exports.CHECK_VALID_VOUCHER = (0, graphql_tag_1.gql) `
|
|
|
113
123
|
}
|
|
114
124
|
`;
|
|
115
125
|
exports.GET_CAMPAIGN_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
116
|
-
query GetCampaignActiveNow(
|
|
117
|
-
|
|
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
|
+
) {
|
|
118
140
|
campaign {
|
|
119
141
|
id
|
|
120
142
|
createdStamp
|
|
@@ -157,8 +179,18 @@ exports.GET_CAMPAIGN_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
|
157
179
|
}
|
|
158
180
|
`;
|
|
159
181
|
exports.GET_PROMOTION_PRODUCT_PRICE = (0, graphql_tag_1.gql) `
|
|
160
|
-
query GetPromotionProductPrice(
|
|
161
|
-
|
|
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
|
+
) {
|
|
162
194
|
campaignId
|
|
163
195
|
campaignName
|
|
164
196
|
statusCampaign
|
|
@@ -178,7 +210,15 @@ exports.GET_PROMOTION_PRODUCT_PRICE = (0, graphql_tag_1.gql) `
|
|
|
178
210
|
}
|
|
179
211
|
`;
|
|
180
212
|
exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
|
|
181
|
-
query GetVoucherAvailableForCustomer(
|
|
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
|
+
) {
|
|
182
222
|
getVoucherAvailableForCustomer(
|
|
183
223
|
searchVoucherRequest: {
|
|
184
224
|
partyId: $partyId
|
|
@@ -223,9 +263,23 @@ exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
|
|
|
223
263
|
}
|
|
224
264
|
`;
|
|
225
265
|
exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
|
|
226
|
-
query SuggestVoucher(
|
|
266
|
+
query SuggestVoucher(
|
|
267
|
+
$partyId: String
|
|
268
|
+
$customerId: String
|
|
269
|
+
$excludeExpired: Boolean
|
|
270
|
+
$campaignId: String
|
|
271
|
+
$campaignActionId: String
|
|
272
|
+
$isBirthday: Boolean
|
|
273
|
+
) {
|
|
227
274
|
suggestVoucher(
|
|
228
|
-
searchVoucherRequest: {
|
|
275
|
+
searchVoucherRequest: {
|
|
276
|
+
partyId: $partyId
|
|
277
|
+
customerId: $customerId
|
|
278
|
+
excludeExpired: $excludeExpired
|
|
279
|
+
campaignId: $campaignId
|
|
280
|
+
campaignActionId: $campaignActionId
|
|
281
|
+
isBirthday: $isBirthday
|
|
282
|
+
}
|
|
229
283
|
) {
|
|
230
284
|
total
|
|
231
285
|
totalPages
|
|
@@ -315,8 +369,22 @@ exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
|
|
|
315
369
|
}
|
|
316
370
|
`;
|
|
317
371
|
exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
318
|
-
query SearchProductGiftPromotionResponse(
|
|
319
|
-
|
|
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
|
+
) {
|
|
320
388
|
total
|
|
321
389
|
totalPages
|
|
322
390
|
totalElements
|
|
@@ -378,9 +446,21 @@ exports.GET_CAMPAIGN = (0, graphql_tag_1.gql) `
|
|
|
378
446
|
}
|
|
379
447
|
`;
|
|
380
448
|
exports.SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
381
|
-
query SearchProductPricePromotionResponse(
|
|
449
|
+
query SearchProductPricePromotionResponse(
|
|
450
|
+
$partyId: String!
|
|
451
|
+
$campaignId: String!
|
|
452
|
+
$campaignActionId: String
|
|
453
|
+
$statusActive: String
|
|
454
|
+
$sort: [BaseSortRequest]
|
|
455
|
+
) {
|
|
382
456
|
searchProductPricePromotionResponse(
|
|
383
|
-
searchProductPricePromotionRequest: {
|
|
457
|
+
searchProductPricePromotionRequest: {
|
|
458
|
+
partyId: $partyId
|
|
459
|
+
campaignId: $campaignId
|
|
460
|
+
campaignActionId: $campaignActionId
|
|
461
|
+
statusActive: $statusActive
|
|
462
|
+
sort: $sort
|
|
463
|
+
}
|
|
384
464
|
) {
|
|
385
465
|
content {
|
|
386
466
|
partyId
|
|
@@ -414,11 +494,3 @@ exports.SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
|
414
494
|
}
|
|
415
495
|
}
|
|
416
496
|
`;
|
|
417
|
-
const GET_VOUCHER_FOR_USER = (fields = []) => {
|
|
418
|
-
return (0, graphql_tag_1.gql) `
|
|
419
|
-
query GetVouchersForUser($voucherForUserRequest: VoucherForUserRequest!) {
|
|
420
|
-
getVouchersForUser(voucherForUserRequest: $voucherForUserRequest) ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
421
|
-
}
|
|
422
|
-
`;
|
|
423
|
-
};
|
|
424
|
-
exports.GET_VOUCHER_FOR_USER = GET_VOUCHER_FOR_USER;
|
|
@@ -1,5 +1,3 @@
|
|
|
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,15 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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
|
-
|
|
6
|
+
mutation UpdateDescription(
|
|
7
|
+
$serviceId: String!
|
|
8
|
+
$description: String!
|
|
9
|
+
$updatedBy: String!
|
|
10
|
+
) {
|
|
11
|
+
updateDescription(
|
|
12
|
+
serviceId: $serviceId
|
|
13
|
+
description: $description
|
|
14
|
+
updatedBy: $updatedBy
|
|
15
|
+
)
|
|
8
16
|
}
|
|
9
17
|
`;
|
|
10
18
|
exports.UPDATE_SERVICE_RESOURCE = (0, graphql_tag_1.gql) `
|
|
11
|
-
mutation UpdateServiceResource(
|
|
12
|
-
|
|
19
|
+
mutation UpdateServiceResource(
|
|
20
|
+
$serviceId: String!
|
|
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
|
+
)
|
|
13
35
|
}
|
|
14
36
|
`;
|
|
15
37
|
exports.RECOUNT_USED_BOOKING = (0, graphql_tag_1.gql) `
|
|
@@ -17,99 +39,3 @@ exports.RECOUNT_USED_BOOKING = (0, graphql_tag_1.gql) `
|
|
|
17
39
|
recountUsedBookings(serviceId: $serviceId, actorId: $actorId)
|
|
18
40
|
}
|
|
19
41
|
`;
|
|
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
|
-
`;
|
|
@@ -30,3 +30,4 @@ export declare const GET_COMPUTINGS_DYNAMIC: (fields?: string[]) => DocumentNode
|
|
|
30
30
|
export declare const COMPUTING_DETAIL_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
31
31
|
export declare const IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO: DocumentNode;
|
|
32
32
|
export declare const GET_SCRIPT_EXTEND_DISK: DocumentNode;
|
|
33
|
+
export declare const IS_COMPUTING_ON: DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_SCRIPT_EXTEND_DISK = exports.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO = exports.COMPUTING_DETAIL_DYNAMIC = exports.GET_COMPUTINGS_DYNAMIC = exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
|
3
|
+
exports.IS_COMPUTING_ON = exports.GET_SCRIPT_EXTEND_DISK = exports.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO = exports.COMPUTING_DETAIL_DYNAMIC = exports.GET_COMPUTINGS_DYNAMIC = exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
6
|
query ComputingDetail($computingId: String!, $serviceId: String) {
|
|
@@ -612,3 +612,8 @@ exports.GET_SCRIPT_EXTEND_DISK = (0, graphql_tag_1.gql) `
|
|
|
612
612
|
getScriptExtendDisk(templateId: $templateId)
|
|
613
613
|
}
|
|
614
614
|
`;
|
|
615
|
+
exports.IS_COMPUTING_ON = (0, graphql_tag_1.gql) `
|
|
616
|
+
query IsComputingOn($computingId: String!) {
|
|
617
|
+
isComputingOn(computingId: $computingId)
|
|
618
|
+
}
|
|
619
|
+
`;
|
|
@@ -11,6 +11,7 @@ export declare const GET_LIST_COMMENT: DocumentNode;
|
|
|
11
11
|
export declare const GET_RESUME_ID_BY_RESOURCE: DocumentNode;
|
|
12
12
|
export declare const GET_RESUME_CONTACT: DocumentNode;
|
|
13
13
|
export declare const GET_REUSME_BY_CUSTOMER_ID: DocumentNode;
|
|
14
|
+
export declare const GET_REUSME_BY_CUSTOMER_ID_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
14
15
|
export declare const GET_RESUME_DOMAIN_BY_SERVICE_ID: DocumentNode;
|
|
15
16
|
export declare const GET_COLLEGES_BY_PROVINCE_ID: DocumentNode;
|
|
16
17
|
export declare const GET_RELATED_RESOURCE_BY_RESOURCE_TYPE: DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_RESUME_ID = exports.GET_LIST_TICKET_BY_OWNER_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID = exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = exports.GET_COLLEGES_BY_PROVINCE_ID = exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_LIST_TICKET_BY_ID_DYNAMIC = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET_DYNAMIC = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
|
3
|
+
exports.GET_RESUME_ID = exports.GET_LIST_TICKET_BY_OWNER_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID = exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = exports.GET_COLLEGES_BY_PROVINCE_ID = exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID_DYNAMIC = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_LIST_TICKET_BY_ID_DYNAMIC = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET_DYNAMIC = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
|
6
6
|
query GetListOpportunity(
|
|
@@ -361,6 +361,25 @@ exports.GET_REUSME_BY_CUSTOMER_ID = (0, graphql_tag_1.gql) `
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
`;
|
|
364
|
+
const GET_REUSME_BY_CUSTOMER_ID_DYNAMIC = (fields = []) => {
|
|
365
|
+
const fieldStr = fields.join("\n ");
|
|
366
|
+
const hasFields = fields.length > 0;
|
|
367
|
+
return (0, graphql_tag_1.gql) `
|
|
368
|
+
query GetResumesByCustomerId(
|
|
369
|
+
$customerId: String,
|
|
370
|
+
$partyId: String
|
|
371
|
+
) {
|
|
372
|
+
getResumesByCustomerId(
|
|
373
|
+
customerId: $customerId,
|
|
374
|
+
partyId: $partyId
|
|
375
|
+
)
|
|
376
|
+
{
|
|
377
|
+
${hasFields ? `${fieldStr}` : ""}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
`;
|
|
381
|
+
};
|
|
382
|
+
exports.GET_REUSME_BY_CUSTOMER_ID_DYNAMIC = GET_REUSME_BY_CUSTOMER_ID_DYNAMIC;
|
|
364
383
|
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
365
384
|
query GetResumeDomainByServiceId($serviceId: String!) {
|
|
366
385
|
getResumeDomainByServiceId(serviceId: $serviceId) {
|
|
@@ -1,28 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FIND_ORDER_BY_OWNER_PARTYID = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
-
const helpers_1 = require("../../utils/helpers");
|
|
6
5
|
exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
|
|
7
|
-
mutation FindOrderByOwnerPartyId(
|
|
6
|
+
mutation FindOrderByOwnerPartyId(
|
|
7
|
+
$partnerId: String!
|
|
8
|
+
$ownerPartyId: String!
|
|
9
|
+
) {
|
|
8
10
|
findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
|
|
9
11
|
}
|
|
10
12
|
`;
|
|
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;
|
|
@@ -2,5 +2,4 @@ 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;
|
|
6
5
|
export declare const HANDLE_CREATE_GATEWAY_CONFIG: import("graphql").DocumentNode;
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HANDLE_CREATE_GATEWAY_CONFIG = exports.
|
|
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
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!) {
|
|
7
|
+
cancelPayment(paymentId: $paymentId, reason: $reason)
|
|
8
8
|
}
|
|
9
9
|
`;
|
|
10
10
|
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
11
|
-
mutation ConfirmToGateWay(
|
|
12
|
-
|
|
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
|
+
) {
|
|
13
25
|
code
|
|
14
26
|
message
|
|
15
27
|
data
|
|
@@ -22,8 +34,18 @@ exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
|
22
34
|
}
|
|
23
35
|
`;
|
|
24
36
|
exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
|
25
|
-
mutation ConfirmPaymentSuccessManual(
|
|
26
|
-
|
|
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
|
+
) {
|
|
27
49
|
code
|
|
28
50
|
message
|
|
29
51
|
data
|
|
@@ -35,7 +57,10 @@ exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
|
|
|
35
57
|
}
|
|
36
58
|
`;
|
|
37
59
|
exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
38
|
-
mutation HandleUpdateGatewayConfig(
|
|
60
|
+
mutation HandleUpdateGatewayConfig(
|
|
61
|
+
$input: PaymentGatewayConfigInput!
|
|
62
|
+
$cassoApiKey: String
|
|
63
|
+
) {
|
|
39
64
|
handleUpdateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
40
65
|
id
|
|
41
66
|
methodCode
|
|
@@ -64,22 +89,11 @@ exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
|
64
89
|
}
|
|
65
90
|
}
|
|
66
91
|
`;
|
|
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
|
-
`;
|
|
81
92
|
exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
|
|
82
|
-
mutation HandleCreateGatewayConfig(
|
|
93
|
+
mutation HandleCreateGatewayConfig(
|
|
94
|
+
$input: PaymentGatewayConfigInput!
|
|
95
|
+
$cassoApiKey: String
|
|
96
|
+
) {
|
|
83
97
|
handleCreateGatewayConfig(input: $input, cassoApiKey: $cassoApiKey) {
|
|
84
98
|
id
|
|
85
99
|
methodCode
|
|
@@ -7,6 +7,4 @@ 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;
|
|
11
10
|
export declare const GET_TRANSFER_INFO: import("graphql").DocumentNode;
|
|
12
|
-
export declare const PAYMENT_METHODS_BY_PARTNER: import("graphql").DocumentNode;
|