@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
package/dist/config/config.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.environmentEndpoints = {
|
|
|
17
17
|
crm_camping: "https://api-gateway.longvan.dev/campaign-gateway/graphql",
|
|
18
18
|
order_graphQL: "https://api-gateway.longvan.dev/order-cloud-service/graphql",
|
|
19
19
|
order_cloud_rest: "https://api-gateway.longvan.dev/order-cloud-service",
|
|
20
|
-
paymentLV: "https://api-gateway.longvan.dev/graphql",
|
|
20
|
+
paymentLV: "https://api-gateway.longvan.dev/payment-service/graphql",
|
|
21
21
|
resource_permission: "https://api-gateway.longvan.dev/resource-permission-api/graphql",
|
|
22
22
|
cloud_rest: "https://api-gateway.longvan.dev/cloud-service-api/v1",
|
|
23
23
|
accounting_service: "https://api-gateway.longvan.dev/accounting-service/graphql/",
|
|
@@ -1,11 +1,13 @@
|
|
|
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
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const GET_CAMPAIGN_ACTION_ACTIVE_NOW: DocumentNode;
|
|
3
|
+
export declare const GET_VOUCHERS: DocumentNode;
|
|
4
|
+
export declare const CHECK_VALID_VOUCHER: DocumentNode;
|
|
5
|
+
export declare const GET_CAMPAIGN_ACTIVE_NOW: DocumentNode;
|
|
6
|
+
export declare const GET_PROMOTION_PRODUCT_PRICE: DocumentNode;
|
|
7
|
+
export declare const GET_VOUCHER_AVAILABLE_FOR_CUSTOMER: DocumentNode;
|
|
8
|
+
export declare const SUGGEST_VOUCHER: DocumentNode;
|
|
9
|
+
export declare const GET_CAMPAIGN_ACTION_BY_ID: DocumentNode;
|
|
10
|
+
export declare const SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE: DocumentNode;
|
|
11
|
+
export declare const GET_CAMPAIGN: DocumentNode;
|
|
12
|
+
export declare const SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE: DocumentNode;
|
|
13
|
+
export declare const GET_VOUCHER_FOR_USER: (fields?: string[]) => DocumentNode;
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.GET_VOUCHER_FOR_USER = 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");
|
|
5
6
|
exports.GET_CAMPAIGN_ACTION_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
6
|
-
query GetCampaignActionActiveNow(
|
|
7
|
-
$partyId:
|
|
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
|
-
) {
|
|
7
|
+
query GetCampaignActionActiveNow($partyId: String!, $customerId: String, $campaignActionType: String, $productStoreId: String) {
|
|
8
|
+
getCampaignActionActiveNow(checkCampaignActiveRequest: { partyId: $partyId, customerId: $customerId, campaignActionType: $campaignActionType, productStoreId: $productStoreId }) {
|
|
20
9
|
campaignId
|
|
21
10
|
campaignName
|
|
22
11
|
statusCampaign
|
|
@@ -66,7 +55,6 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
66
55
|
size
|
|
67
56
|
empty
|
|
68
57
|
content {
|
|
69
|
-
campaignActionId
|
|
70
58
|
campaignId
|
|
71
59
|
partyId
|
|
72
60
|
voucherCode
|
|
@@ -74,8 +62,12 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
74
62
|
status
|
|
75
63
|
discountAmount
|
|
76
64
|
discountPercent
|
|
65
|
+
discountType
|
|
77
66
|
usageLimitPerVoucher
|
|
78
67
|
maximumDiscount
|
|
68
|
+
maximumDiscountType
|
|
69
|
+
minimumSpend
|
|
70
|
+
maximumSpend
|
|
79
71
|
numberOfTimeUsed
|
|
80
72
|
id
|
|
81
73
|
createdStamp
|
|
@@ -84,25 +76,23 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
84
76
|
createdBy
|
|
85
77
|
isBirthday
|
|
86
78
|
customerId
|
|
79
|
+
scope
|
|
80
|
+
affiliateId
|
|
81
|
+
description
|
|
82
|
+
expiryDate
|
|
83
|
+
customAttribute
|
|
84
|
+
assignUserLimit
|
|
85
|
+
ownerPartyId
|
|
86
|
+
migratedFromReferralId
|
|
87
|
+
campaignActionId
|
|
88
|
+
discountValue
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
`;
|
|
91
93
|
exports.CHECK_VALID_VOUCHER = (0, graphql_tag_1.gql) `
|
|
92
|
-
query CheckValidVoucher(
|
|
93
|
-
$partyId:
|
|
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
|
-
) {
|
|
94
|
+
query CheckValidVoucher($partyId: String, $productStoreId: String, $customerId: String, $voucherCode: String!) {
|
|
95
|
+
checkValidVoucher(checkValidVoucherRequest: { customerId: $customerId, voucherCode: $voucherCode, productStoreId: $productStoreId }, partyId: $partyId) {
|
|
106
96
|
campaignActionId
|
|
107
97
|
campaignId
|
|
108
98
|
partyId
|
|
@@ -123,20 +113,8 @@ exports.CHECK_VALID_VOUCHER = (0, graphql_tag_1.gql) `
|
|
|
123
113
|
}
|
|
124
114
|
`;
|
|
125
115
|
exports.GET_CAMPAIGN_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
126
|
-
query GetCampaignActiveNow(
|
|
127
|
-
$partyId:
|
|
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
|
-
) {
|
|
116
|
+
query GetCampaignActiveNow($partyId: String!, $productStoreId: String, $campaignActionType: String, $customerId: String) {
|
|
117
|
+
getCampaignActiveNow(checkCampaignActiveRequest: { partyId: $partyId, customerId: $customerId, campaignActionType: $campaignActionType, productStoreId: $productStoreId }) {
|
|
140
118
|
campaign {
|
|
141
119
|
id
|
|
142
120
|
createdStamp
|
|
@@ -179,18 +157,8 @@ exports.GET_CAMPAIGN_ACTIVE_NOW = (0, graphql_tag_1.gql) `
|
|
|
179
157
|
}
|
|
180
158
|
`;
|
|
181
159
|
exports.GET_PROMOTION_PRODUCT_PRICE = (0, graphql_tag_1.gql) `
|
|
182
|
-
query GetPromotionProductPrice(
|
|
183
|
-
$partyId:
|
|
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
|
-
) {
|
|
160
|
+
query GetPromotionProductPrice($partyId: String!, $productStoreId: String!, $productId: String!, $productPrice: BigDecimal!) {
|
|
161
|
+
getPromotionProductPrice(partyId: $partyId, productStoreId: $productStoreId, productId: $productId, productPrice: $productPrice) {
|
|
194
162
|
campaignId
|
|
195
163
|
campaignName
|
|
196
164
|
statusCampaign
|
|
@@ -210,15 +178,7 @@ exports.GET_PROMOTION_PRODUCT_PRICE = (0, graphql_tag_1.gql) `
|
|
|
210
178
|
}
|
|
211
179
|
`;
|
|
212
180
|
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
|
-
) {
|
|
181
|
+
query GetVoucherAvailableForCustomer($partyId: String, $storeId: String, $campaignId: String, $campaignActionId: String, $customerId: String, $excludeExpired: Boolean, $isPageAble: Boolean) {
|
|
222
182
|
getVoucherAvailableForCustomer(
|
|
223
183
|
searchVoucherRequest: {
|
|
224
184
|
partyId: $partyId
|
|
@@ -263,23 +223,9 @@ exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
|
|
|
263
223
|
}
|
|
264
224
|
`;
|
|
265
225
|
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
|
-
) {
|
|
226
|
+
query SuggestVoucher($partyId: String, $customerId: String, $excludeExpired: Boolean, $campaignId: String, $campaignActionId: String, $isBirthday: Boolean) {
|
|
274
227
|
suggestVoucher(
|
|
275
|
-
searchVoucherRequest: {
|
|
276
|
-
partyId: $partyId
|
|
277
|
-
customerId: $customerId
|
|
278
|
-
excludeExpired: $excludeExpired
|
|
279
|
-
campaignId: $campaignId
|
|
280
|
-
campaignActionId: $campaignActionId
|
|
281
|
-
isBirthday: $isBirthday
|
|
282
|
-
}
|
|
228
|
+
searchVoucherRequest: { partyId: $partyId, customerId: $customerId, excludeExpired: $excludeExpired, campaignId: $campaignId, campaignActionId: $campaignActionId, isBirthday: $isBirthday }
|
|
283
229
|
) {
|
|
284
230
|
total
|
|
285
231
|
totalPages
|
|
@@ -369,22 +315,8 @@ exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
|
|
|
369
315
|
}
|
|
370
316
|
`;
|
|
371
317
|
exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
372
|
-
query SearchProductGiftPromotionResponse(
|
|
373
|
-
$partyId:
|
|
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
|
-
) {
|
|
318
|
+
query SearchProductGiftPromotionResponse($partyId: String!, $storeId: String, $productIds: [String], $campaignActionId: String, $sort: [BaseSortRequest]) {
|
|
319
|
+
searchProductGiftPromotionResponse(parameterSearchProductGift: { partyId: $partyId, storeId: $storeId, productIds: $productIds, campaignActionId: $campaignActionId, sort: $sort }) {
|
|
388
320
|
total
|
|
389
321
|
totalPages
|
|
390
322
|
totalElements
|
|
@@ -446,21 +378,9 @@ exports.GET_CAMPAIGN = (0, graphql_tag_1.gql) `
|
|
|
446
378
|
}
|
|
447
379
|
`;
|
|
448
380
|
exports.SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
449
|
-
query SearchProductPricePromotionResponse(
|
|
450
|
-
$partyId: String!
|
|
451
|
-
$campaignId: String!
|
|
452
|
-
$campaignActionId: String
|
|
453
|
-
$statusActive: String
|
|
454
|
-
$sort: [BaseSortRequest]
|
|
455
|
-
) {
|
|
381
|
+
query SearchProductPricePromotionResponse($partyId: String!, $campaignId: String!, $campaignActionId: String, $statusActive: String, $sort: [BaseSortRequest]) {
|
|
456
382
|
searchProductPricePromotionResponse(
|
|
457
|
-
searchProductPricePromotionRequest: {
|
|
458
|
-
partyId: $partyId
|
|
459
|
-
campaignId: $campaignId
|
|
460
|
-
campaignActionId: $campaignActionId
|
|
461
|
-
statusActive: $statusActive
|
|
462
|
-
sort: $sort
|
|
463
|
-
}
|
|
383
|
+
searchProductPricePromotionRequest: { partyId: $partyId, campaignId: $campaignId, campaignActionId: $campaignActionId, statusActive: $statusActive, sort: $sort }
|
|
464
384
|
) {
|
|
465
385
|
content {
|
|
466
386
|
partyId
|
|
@@ -494,3 +414,11 @@ exports.SEARCH_PRODUCT_PRICE_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
|
494
414
|
}
|
|
495
415
|
}
|
|
496
416
|
`;
|
|
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;
|
|
@@ -14,6 +14,7 @@ const CREATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
14
14
|
$name: String!
|
|
15
15
|
$accountNumber: String!
|
|
16
16
|
$typeCard: CardType!
|
|
17
|
+
$expiryDate: String!
|
|
17
18
|
$partyId: String!
|
|
18
19
|
) {
|
|
19
20
|
createCashAccountCustomer(
|
|
@@ -23,6 +24,7 @@ const CREATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
23
24
|
name: $name
|
|
24
25
|
accountNumber: $accountNumber
|
|
25
26
|
typeCard: $typeCard
|
|
27
|
+
expiryDate: $expiryDate
|
|
26
28
|
partyId: $partyId
|
|
27
29
|
}
|
|
28
30
|
) ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
@@ -39,6 +41,7 @@ const UPDATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
39
41
|
$name: String
|
|
40
42
|
$accountNumber: String
|
|
41
43
|
$typeCard: CardType
|
|
44
|
+
$expiryDate: String
|
|
42
45
|
$isDefault: Boolean
|
|
43
46
|
$partyId: String!
|
|
44
47
|
) {
|
|
@@ -50,6 +53,7 @@ const UPDATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
50
53
|
name: $name
|
|
51
54
|
accountNumber: $accountNumber
|
|
52
55
|
typeCard: $typeCard
|
|
56
|
+
expiryDate: $expiryDate
|
|
53
57
|
isDefault: $isDefault
|
|
54
58
|
partyId: $partyId
|
|
55
59
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { DocumentNode } from "graphql";
|
|
2
2
|
export declare const GET_CASH_ACCOUNT_CUSTOMERS: (fields?: string[]) => DocumentNode;
|
|
3
3
|
export declare const GET_BANK_CODES: (fields?: string[]) => DocumentNode;
|
|
4
|
+
export declare const GET_BANK_CODES_FOR_CUSTOMER: (fields?: string[]) => DocumentNode;
|
|
5
|
+
export declare const GET_CART_TYPE: (fields?: string[]) => DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_BANK_CODES = exports.GET_CASH_ACCOUNT_CUSTOMERS = void 0;
|
|
3
|
+
exports.GET_CART_TYPE = exports.GET_BANK_CODES_FOR_CUSTOMER = exports.GET_BANK_CODES = exports.GET_CASH_ACCOUNT_CUSTOMERS = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
const helpers_1 = require("../../utils/helpers");
|
|
6
6
|
const GET_CASH_ACCOUNT_CUSTOMERS = (fields = []) => {
|
|
@@ -25,3 +25,19 @@ const GET_BANK_CODES = (fields = []) => {
|
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
27
|
exports.GET_BANK_CODES = GET_BANK_CODES;
|
|
28
|
+
const GET_BANK_CODES_FOR_CUSTOMER = (fields = []) => {
|
|
29
|
+
return (0, graphql_tag_1.gql) `
|
|
30
|
+
query GetBankCodesForCustomer {
|
|
31
|
+
getBankCodesForCustomer ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
};
|
|
35
|
+
exports.GET_BANK_CODES_FOR_CUSTOMER = GET_BANK_CODES_FOR_CUSTOMER;
|
|
36
|
+
const GET_CART_TYPE = (fields = []) => {
|
|
37
|
+
return (0, graphql_tag_1.gql) `
|
|
38
|
+
query GetCardTypes {
|
|
39
|
+
getCardTypes ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
};
|
|
43
|
+
exports.GET_CART_TYPE = GET_CART_TYPE;
|
|
@@ -25,3 +25,5 @@ export declare const CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST: (fie
|
|
|
25
25
|
export declare const REMOVE_RECORD: DocumentNode;
|
|
26
26
|
export declare const UPDATE_RECORD: DocumentNode;
|
|
27
27
|
export declare const SAVE_RECORD: DocumentNode;
|
|
28
|
+
export declare const REGISTER_AUTO_EXTEND_SERVICE: DocumentNode;
|
|
29
|
+
export declare const CANCEL_AUTO_EXTEND_SERVICE: DocumentNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SAVE_RECORD = exports.UPDATE_RECORD = exports.REMOVE_RECORD = exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = exports.CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = exports.CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = exports.UPDATE_URL_PUBLIC = exports.UPDATE_SERVICE_READY_DEPLOY = exports.UPDATE_SERVICE_NEW = exports.UPDATE_SERVICE_COMPLETED = exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = exports.UPDATE_ACTION_STATUS = exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
|
3
|
+
exports.CANCEL_AUTO_EXTEND_SERVICE = exports.REGISTER_AUTO_EXTEND_SERVICE = exports.SAVE_RECORD = exports.UPDATE_RECORD = exports.REMOVE_RECORD = exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = exports.CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = exports.CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = exports.UPDATE_URL_PUBLIC = exports.UPDATE_SERVICE_READY_DEPLOY = exports.UPDATE_SERVICE_NEW = exports.UPDATE_SERVICE_COMPLETED = exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = exports.UPDATE_ACTION_STATUS = exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
|
6
|
-
mutation GetDomainInfo($domainName: String
|
|
7
|
-
getDomainInfo(domainName: $domainName isClearCache: $isClearCache) {
|
|
6
|
+
mutation GetDomainInfo($domainName: String!, $isClearCache: Boolean) {
|
|
7
|
+
getDomainInfo(domainName: $domainName, isClearCache: $isClearCache) {
|
|
8
8
|
dnssec
|
|
9
9
|
domainName
|
|
10
10
|
existed
|
|
@@ -23,8 +23,8 @@ exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
exports.CHECK_LIST_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
26
|
-
mutation CheckListDomainName($domainNames: [String!]
|
|
27
|
-
checkListDomainName(domainNames: $domainNames isClearCache: $isClearCache) {
|
|
26
|
+
mutation CheckListDomainName($domainNames: [String!]!, $isClearCache: Boolean) {
|
|
27
|
+
checkListDomainName(domainNames: $domainNames, isClearCache: $isClearCache) {
|
|
28
28
|
domainName
|
|
29
29
|
isAvailable
|
|
30
30
|
topDomain
|
|
@@ -32,8 +32,8 @@ exports.CHECK_LIST_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
|
32
32
|
}
|
|
33
33
|
`;
|
|
34
34
|
exports.CHECK_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
35
|
-
mutation CheckDomainName($domainName: String
|
|
36
|
-
checkDomainName(domainName: $domainName isClearCache: $isClearCache) {
|
|
35
|
+
mutation CheckDomainName($domainName: String!, $isClearCache: Boolean) {
|
|
36
|
+
checkDomainName(domainName: $domainName, isClearCache: $isClearCache) {
|
|
37
37
|
domainName
|
|
38
38
|
isAvailable
|
|
39
39
|
topDomain
|
|
@@ -42,31 +42,13 @@ exports.CHECK_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
44
|
exports.CHANGE_SERVICE_NAME = (0, graphql_tag_1.gql) `
|
|
45
|
-
mutation ChangeServiceName(
|
|
46
|
-
$serviceId:
|
|
47
|
-
$updateBy: String!
|
|
48
|
-
$updateData: String!
|
|
49
|
-
) {
|
|
50
|
-
changeServiceName(
|
|
51
|
-
serviceId: $serviceId
|
|
52
|
-
updateBy: $updateBy
|
|
53
|
-
updateData: $updateData
|
|
54
|
-
)
|
|
45
|
+
mutation ChangeServiceName($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
46
|
+
changeServiceName(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
55
47
|
}
|
|
56
48
|
`;
|
|
57
49
|
exports.CREATE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
58
|
-
mutation CreateUserMailHosting(
|
|
59
|
-
$serviceId:
|
|
60
|
-
$username: String!
|
|
61
|
-
$password: String!
|
|
62
|
-
$fullName: String!
|
|
63
|
-
) {
|
|
64
|
-
createUserMailHosting(
|
|
65
|
-
serviceId: $serviceId
|
|
66
|
-
username: $username
|
|
67
|
-
password: $password
|
|
68
|
-
fullName: $fullName
|
|
69
|
-
)
|
|
50
|
+
mutation CreateUserMailHosting($serviceId: String!, $username: String!, $password: String!, $fullName: String!) {
|
|
51
|
+
createUserMailHosting(serviceId: $serviceId, username: $username, password: $password, fullName: $fullName)
|
|
70
52
|
}
|
|
71
53
|
`;
|
|
72
54
|
exports.DELETE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
@@ -75,85 +57,33 @@ exports.DELETE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
|
75
57
|
}
|
|
76
58
|
`;
|
|
77
59
|
exports.UPDATE_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
78
|
-
mutation UpdateDomainName(
|
|
79
|
-
$serviceId:
|
|
80
|
-
$updateBy: String!
|
|
81
|
-
$updateData: String!
|
|
82
|
-
) {
|
|
83
|
-
updateDomainName(
|
|
84
|
-
serviceId: $serviceId
|
|
85
|
-
updateBy: $updateBy
|
|
86
|
-
updateData: $updateData
|
|
87
|
-
)
|
|
60
|
+
mutation UpdateDomainName($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
61
|
+
updateDomainName(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
88
62
|
}
|
|
89
63
|
`;
|
|
90
64
|
exports.UPDATE_USER_NAME = (0, graphql_tag_1.gql) `
|
|
91
|
-
mutation UpdateUserName(
|
|
92
|
-
$serviceId:
|
|
93
|
-
$updateBy: String!
|
|
94
|
-
$updateData: String!
|
|
95
|
-
) {
|
|
96
|
-
updateUsername(
|
|
97
|
-
serviceId: $serviceId
|
|
98
|
-
updateBy: $updateBy
|
|
99
|
-
updateData: $updateData
|
|
100
|
-
)
|
|
65
|
+
mutation UpdateUserName($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
66
|
+
updateUsername(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
101
67
|
}
|
|
102
68
|
`;
|
|
103
69
|
exports.UPDATE_PASSWORD = (0, graphql_tag_1.gql) `
|
|
104
|
-
mutation UpdatePassword(
|
|
105
|
-
$serviceId:
|
|
106
|
-
$updateBy: String!
|
|
107
|
-
$updateData: String!
|
|
108
|
-
) {
|
|
109
|
-
updatePassword(
|
|
110
|
-
serviceId: $serviceId
|
|
111
|
-
updateBy: $updateBy
|
|
112
|
-
updateData: $updateData
|
|
113
|
-
)
|
|
70
|
+
mutation UpdatePassword($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
71
|
+
updatePassword(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
114
72
|
}
|
|
115
73
|
`;
|
|
116
74
|
exports.UPDATE_USER_PASSWORD = (0, graphql_tag_1.gql) `
|
|
117
|
-
mutation UpdateUserPassword(
|
|
118
|
-
$serviceId:
|
|
119
|
-
$username: String!
|
|
120
|
-
$password: String!
|
|
121
|
-
) {
|
|
122
|
-
updateUserPassword(
|
|
123
|
-
serviceId: $serviceId
|
|
124
|
-
username: $username
|
|
125
|
-
password: $password
|
|
126
|
-
)
|
|
75
|
+
mutation UpdateUserPassword($serviceId: String!, $username: String!, $password: String!) {
|
|
76
|
+
updateUserPassword(serviceId: $serviceId, username: $username, password: $password)
|
|
127
77
|
}
|
|
128
78
|
`;
|
|
129
79
|
exports.UPDATE_DNS = (0, graphql_tag_1.gql) `
|
|
130
|
-
mutation UpdateDNS(
|
|
131
|
-
$serviceId:
|
|
132
|
-
$dns1: String
|
|
133
|
-
$dns2: String
|
|
134
|
-
$dns3: String
|
|
135
|
-
$dns4: String
|
|
136
|
-
$createBy: String
|
|
137
|
-
) {
|
|
138
|
-
updateDNS(
|
|
139
|
-
serviceId: $serviceId
|
|
140
|
-
dns1: $dns1
|
|
141
|
-
dns2: $dns2
|
|
142
|
-
dns3: $dns3
|
|
143
|
-
dns4: $dns4
|
|
144
|
-
createBy: $createBy
|
|
145
|
-
)
|
|
80
|
+
mutation UpdateDNS($serviceId: String!, $dns1: String, $dns2: String, $dns3: String, $dns4: String, $createBy: String) {
|
|
81
|
+
updateDNS(serviceId: $serviceId, dns1: $dns1, dns2: $dns2, dns3: $dns3, dns4: $dns4, createBy: $createBy)
|
|
146
82
|
}
|
|
147
83
|
`;
|
|
148
84
|
exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
|
|
149
|
-
mutation CreateDomainContact(
|
|
150
|
-
$serviceId:
|
|
151
|
-
$domainContacts: [DomainContact]!
|
|
152
|
-
) {
|
|
153
|
-
createDomainContact(
|
|
154
|
-
serviceId: $serviceId
|
|
155
|
-
domainContacts: $domainContacts
|
|
156
|
-
) {
|
|
85
|
+
mutation CreateDomainContact($serviceId: String!, $domainContacts: [DomainContact]!) {
|
|
86
|
+
createDomainContact(serviceId: $serviceId, domainContacts: $domainContacts) {
|
|
157
87
|
supplierId
|
|
158
88
|
domainContacts {
|
|
159
89
|
partyId
|
|
@@ -182,25 +112,12 @@ exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
|
|
|
182
112
|
}
|
|
183
113
|
`;
|
|
184
114
|
exports.GET_ORDER_CHANGE_RESOURCE_TERM = (0, graphql_tag_1.gql) `
|
|
185
|
-
mutation GetOrderChangeResourceTerm(
|
|
186
|
-
$serviceId:
|
|
187
|
-
$storeId: String!
|
|
188
|
-
$createdBy: String!
|
|
189
|
-
$partnerId: String!
|
|
190
|
-
) {
|
|
191
|
-
getOrderChangeResourceTerm(
|
|
192
|
-
serviceId: $serviceId
|
|
193
|
-
storeId: $storeId
|
|
194
|
-
createdBy: $createdBy
|
|
195
|
-
partnerId: $partnerId
|
|
196
|
-
)
|
|
115
|
+
mutation GetOrderChangeResourceTerm($serviceId: String!, $storeId: String!, $createdBy: String!, $partnerId: String!) {
|
|
116
|
+
getOrderChangeResourceTerm(serviceId: $serviceId, storeId: $storeId, createdBy: $createdBy, partnerId: $partnerId)
|
|
197
117
|
}
|
|
198
118
|
`;
|
|
199
119
|
exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = (0, graphql_tag_1.gql) `
|
|
200
|
-
mutation CreateActionChangeIpOfService(
|
|
201
|
-
$action: ActionInput!
|
|
202
|
-
$byUser: String!
|
|
203
|
-
) {
|
|
120
|
+
mutation CreateActionChangeIpOfService($action: ActionInput!, $byUser: String!) {
|
|
204
121
|
createActionChangeIpOfService(action: $action, byUser: $byUser) {
|
|
205
122
|
id
|
|
206
123
|
partyId
|
|
@@ -235,73 +152,33 @@ exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = (0, graphql_tag_1.gql) `
|
|
|
235
152
|
}
|
|
236
153
|
`;
|
|
237
154
|
exports.UPDATE_ACTION_STATUS = (0, graphql_tag_1.gql) `
|
|
238
|
-
mutation UpdateActionStatus(
|
|
239
|
-
$actionId: String!
|
|
240
|
-
$status: String!
|
|
241
|
-
$byUser: String!
|
|
242
|
-
) {
|
|
155
|
+
mutation UpdateActionStatus($actionId: String!, $status: String!, $byUser: String!) {
|
|
243
156
|
updateActionStatus(actionId: $actionId, status: $status, byUser: $byUser)
|
|
244
157
|
}
|
|
245
158
|
`;
|
|
246
159
|
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
247
|
-
mutation UpdateActionCustomAttribute(
|
|
248
|
-
$actionId:
|
|
249
|
-
$attrName: String!
|
|
250
|
-
$attrValue: String!
|
|
251
|
-
$byUser: String!
|
|
252
|
-
) {
|
|
253
|
-
updateActionCustomAttribute(
|
|
254
|
-
actionId: $actionId
|
|
255
|
-
attrName: $attrName
|
|
256
|
-
attrValue: $attrValue
|
|
257
|
-
byUser: $byUser
|
|
258
|
-
)
|
|
160
|
+
mutation UpdateActionCustomAttribute($actionId: String!, $attrName: String!, $attrValue: String!, $byUser: String!) {
|
|
161
|
+
updateActionCustomAttribute(actionId: $actionId, attrName: $attrName, attrValue: $attrValue, byUser: $byUser)
|
|
259
162
|
}
|
|
260
163
|
`;
|
|
261
164
|
exports.UPDATE_SERVICE_COMPLETED = (0, graphql_tag_1.gql) `
|
|
262
|
-
mutation UpdateServiceCompleted(
|
|
263
|
-
$serviceId:
|
|
264
|
-
$handleBy: String!
|
|
265
|
-
) {
|
|
266
|
-
updateServiceCompleted(
|
|
267
|
-
serviceId: $serviceId
|
|
268
|
-
handleBy: $handleBy
|
|
269
|
-
)
|
|
165
|
+
mutation UpdateServiceCompleted($serviceId: String!, $handleBy: String!) {
|
|
166
|
+
updateServiceCompleted(serviceId: $serviceId, handleBy: $handleBy)
|
|
270
167
|
}
|
|
271
168
|
`;
|
|
272
169
|
exports.UPDATE_SERVICE_NEW = (0, graphql_tag_1.gql) `
|
|
273
|
-
mutation UpdateServiceNew(
|
|
274
|
-
$serviceId:
|
|
275
|
-
$handleBy: String!
|
|
276
|
-
) {
|
|
277
|
-
updateServiceNew(
|
|
278
|
-
serviceId: $serviceId
|
|
279
|
-
handleBy: $handleBy
|
|
280
|
-
)
|
|
170
|
+
mutation UpdateServiceNew($serviceId: String!, $handleBy: String!) {
|
|
171
|
+
updateServiceNew(serviceId: $serviceId, handleBy: $handleBy)
|
|
281
172
|
}
|
|
282
173
|
`;
|
|
283
174
|
exports.UPDATE_SERVICE_READY_DEPLOY = (0, graphql_tag_1.gql) `
|
|
284
|
-
mutation UpdateServiceReadyDeploy(
|
|
285
|
-
$serviceId:
|
|
286
|
-
$handleBy: String!
|
|
287
|
-
) {
|
|
288
|
-
updateServiceReadyDeploy(
|
|
289
|
-
serviceId: $serviceId
|
|
290
|
-
handleBy: $handleBy
|
|
291
|
-
)
|
|
175
|
+
mutation UpdateServiceReadyDeploy($serviceId: String!, $handleBy: String!) {
|
|
176
|
+
updateServiceReadyDeploy(serviceId: $serviceId, handleBy: $handleBy)
|
|
292
177
|
}
|
|
293
178
|
`;
|
|
294
179
|
exports.UPDATE_URL_PUBLIC = (0, graphql_tag_1.gql) `
|
|
295
|
-
mutation UpdateUrlPublic(
|
|
296
|
-
$serviceId:
|
|
297
|
-
$handleBy: String!
|
|
298
|
-
$urlPublic: String!
|
|
299
|
-
) {
|
|
300
|
-
updateUrlPublic(
|
|
301
|
-
serviceId: $serviceId
|
|
302
|
-
handleBy: $handleBy
|
|
303
|
-
urlPublic: $urlPublic
|
|
304
|
-
)
|
|
180
|
+
mutation UpdateUrlPublic($serviceId: String!, $handleBy: String!, $urlPublic: String!) {
|
|
181
|
+
updateUrlPublic(serviceId: $serviceId, handleBy: $handleBy, urlPublic: $urlPublic)
|
|
305
182
|
}
|
|
306
183
|
`;
|
|
307
184
|
const CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = (fields = []) => {
|
|
@@ -375,27 +252,13 @@ const CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = (fields = []) => {
|
|
|
375
252
|
};
|
|
376
253
|
exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST;
|
|
377
254
|
exports.REMOVE_RECORD = (0, graphql_tag_1.gql) `
|
|
378
|
-
mutation RemoveRecord(
|
|
379
|
-
$serviceId:
|
|
380
|
-
$nameRecord: String!
|
|
381
|
-
$typeRecord: String!
|
|
382
|
-
) {
|
|
383
|
-
removeRecord(
|
|
384
|
-
serviceId: $serviceId
|
|
385
|
-
nameRecord: $nameRecord
|
|
386
|
-
typeRecord: $typeRecord
|
|
387
|
-
)
|
|
255
|
+
mutation RemoveRecord($serviceId: String!, $nameRecord: String!, $typeRecord: String!) {
|
|
256
|
+
removeRecord(serviceId: $serviceId, nameRecord: $nameRecord, typeRecord: $typeRecord)
|
|
388
257
|
}
|
|
389
258
|
`;
|
|
390
259
|
exports.UPDATE_RECORD = (0, graphql_tag_1.gql) `
|
|
391
|
-
mutation UpdateRecord(
|
|
392
|
-
$serviceId:
|
|
393
|
-
$record: RecordDnsInput!
|
|
394
|
-
) {
|
|
395
|
-
updateRecord(
|
|
396
|
-
serviceId: $serviceId
|
|
397
|
-
record: $record
|
|
398
|
-
) {
|
|
260
|
+
mutation UpdateRecord($serviceId: String!, $record: RecordDnsInput!) {
|
|
261
|
+
updateRecord(serviceId: $serviceId, record: $record) {
|
|
399
262
|
id
|
|
400
263
|
domainName
|
|
401
264
|
domainId
|
|
@@ -412,14 +275,8 @@ exports.UPDATE_RECORD = (0, graphql_tag_1.gql) `
|
|
|
412
275
|
}
|
|
413
276
|
`;
|
|
414
277
|
exports.SAVE_RECORD = (0, graphql_tag_1.gql) `
|
|
415
|
-
mutation SaveRecord(
|
|
416
|
-
$serviceId:
|
|
417
|
-
$record: RecordDnsInput!
|
|
418
|
-
) {
|
|
419
|
-
saveRecord(
|
|
420
|
-
serviceId: $serviceId
|
|
421
|
-
record: $record
|
|
422
|
-
) {
|
|
278
|
+
mutation SaveRecord($serviceId: String!, $record: RecordDnsInput!) {
|
|
279
|
+
saveRecord(serviceId: $serviceId, record: $record) {
|
|
423
280
|
id
|
|
424
281
|
domainName
|
|
425
282
|
domainId
|
|
@@ -435,3 +292,13 @@ exports.SAVE_RECORD = (0, graphql_tag_1.gql) `
|
|
|
435
292
|
}
|
|
436
293
|
}
|
|
437
294
|
`;
|
|
295
|
+
exports.REGISTER_AUTO_EXTEND_SERVICE = (0, graphql_tag_1.gql) `
|
|
296
|
+
mutation RegisterAutoExtendService($serviceId: String!, $updateBy: String!) {
|
|
297
|
+
registerAutoExtendService(serviceId: $serviceId, updateBy: $updateBy)
|
|
298
|
+
}
|
|
299
|
+
`;
|
|
300
|
+
exports.CANCEL_AUTO_EXTEND_SERVICE = (0, graphql_tag_1.gql) `
|
|
301
|
+
mutation CancelAutoExtendService($serviceId: String!, $updateBy: String!) {
|
|
302
|
+
cancelAutoExtendService(serviceId: $serviceId, updateBy: $updateBy)
|
|
303
|
+
}
|
|
304
|
+
`;
|