@longvansoftware/service-js-client 2.8.1 → 2.8.3

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.
Files changed (43) hide show
  1. package/dist/config/config.js +1 -1
  2. package/dist/src/graphql/campaign/queries.d.ts +11 -13
  3. package/dist/src/graphql/campaign/queries.js +111 -39
  4. package/dist/src/graphql/cloud/mutations.d.ts +3 -0
  5. package/dist/src/graphql/cloud/mutations.js +62 -1
  6. package/dist/src/graphql/cloud/queries.d.ts +2 -0
  7. package/dist/src/graphql/cloud/queries.js +34 -1
  8. package/dist/src/graphql/paymentV2/mutations.d.ts +0 -1
  9. package/dist/src/graphql/paymentV2/mutations.js +1 -15
  10. package/dist/src/graphql/paymentV2/queries.d.ts +0 -2
  11. package/dist/src/graphql/paymentV2/queries.js +1 -58
  12. package/dist/src/lib/campaign/index.d.ts +0 -1
  13. package/dist/src/lib/campaign/index.js +12 -69
  14. package/dist/src/lib/cloud/index.d.ts +6 -1
  15. package/dist/src/lib/cloud/index.js +84 -0
  16. package/dist/src/lib/paymentV2/index.d.ts +0 -10
  17. package/dist/src/lib/paymentV2/index.js +0 -39
  18. package/dist/src/lib/portal/index.d.ts +0 -3
  19. package/dist/src/lib/portal/index.js +0 -50
  20. package/dist/src/lib/service.d.ts +14 -0
  21. package/dist/src/lib/service.js +101 -0
  22. package/dist/src/types/cloud.d.ts +37 -0
  23. package/dist/src/utils/build-field-string.d.ts +1 -0
  24. package/dist/src/utils/build-field-string.js +16 -0
  25. package/package.json +1 -1
  26. package/dist/src/graphql/marketplace/mutations.d.ts +0 -3
  27. package/dist/src/graphql/marketplace/mutations.js +0 -54
  28. package/dist/src/graphql/marketplace/queries.d.ts +0 -2
  29. package/dist/src/graphql/marketplace/queries.js +0 -42
  30. package/dist/src/graphql/storefont/mutation.d.ts +0 -0
  31. package/dist/src/graphql/storefont/mutation.js +0 -1
  32. package/dist/src/graphql/storefont/queries.d.ts +0 -2
  33. package/dist/src/graphql/storefont/queries.js +0 -46
  34. package/dist/src/graphql/tag/mutations.d.ts +0 -2
  35. package/dist/src/graphql/tag/mutations.js +0 -44
  36. package/dist/src/graphql/tag/queries.d.ts +0 -1
  37. package/dist/src/graphql/tag/queries.js +0 -20
  38. package/dist/src/lib/marketplace/index.d.ts +0 -9
  39. package/dist/src/lib/marketplace/index.js +0 -106
  40. package/dist/src/lib/storefont/index.d.ts +0 -6
  41. package/dist/src/lib/storefont/index.js +0 -51
  42. package/dist/src/lib/tag/index.d.ts +0 -7
  43. package/dist/src/lib/tag/index.js +0 -61
@@ -6,7 +6,7 @@ exports.environmentEndpoints = {
6
6
  product: "https://api-gateway.longvan.dev/product-service/graphql",
7
7
  crm: "https://api-gateway.longvan.dev/crm-graph-gateway/graphql",
8
8
  auth: "https://api-gateway.longvan.dev/authorization-gateway/graphql",
9
- order: "https://api-gateway.longvan.dev/v2",
9
+ order: "https://api-gateway.longvan.dev/storefront-service/v2",
10
10
  user: "https://api-gateway.longvan.dev/user-gateway/graphql",
11
11
  payment: "https://api-gateway.longvan.dev/invoice-gateway/graphql",
12
12
  service: "https://api-gateway.longvan.dev/service-api/graphql",
@@ -1,13 +1,11 @@
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
+ 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.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;
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($partyId: String!, $customerId: String, $campaignActionType: String, $productStoreId: String) {
8
- getCampaignActionActiveNow(checkCampaignActiveRequest: { partyId: $partyId, customerId: $customerId, campaignActionType: $campaignActionType, productStoreId: $productStoreId }) {
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($partyId: String, $productStoreId: String, $customerId: String, $voucherCode: String!) {
95
- checkValidVoucher(checkValidVoucherRequest: { customerId: $customerId, voucherCode: $voucherCode, productStoreId: $productStoreId }, partyId: $partyId) {
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($partyId: String!, $productStoreId: String, $campaignActionType: String, $customerId: String) {
117
- getCampaignActiveNow(checkCampaignActiveRequest: { partyId: $partyId, customerId: $customerId, campaignActionType: $campaignActionType, productStoreId: $productStoreId }) {
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($partyId: String!, $productStoreId: String!, $productId: String!, $productPrice: BigDecimal!) {
161
- getPromotionProductPrice(partyId: $partyId, productStoreId: $productStoreId, productId: $productId, productPrice: $productPrice) {
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($partyId: String, $storeId: String, $campaignId: String, $campaignActionId: String, $customerId: String, $excludeExpired: Boolean, $isPageAble: Boolean) {
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($partyId: String, $customerId: String, $excludeExpired: Boolean, $campaignId: String, $campaignActionId: String, $isBirthday: Boolean) {
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: { partyId: $partyId, customerId: $customerId, excludeExpired: $excludeExpired, campaignId: $campaignId, campaignActionId: $campaignActionId, isBirthday: $isBirthday }
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($partyId: String!, $storeId: String, $productIds: [String], $campaignActionId: String, $sort: [BaseSortRequest]) {
319
- searchProductGiftPromotionResponse(parameterSearchProductGift: { partyId: $partyId, storeId: $storeId, productIds: $productIds, campaignActionId: $campaignActionId, sort: $sort }) {
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($partyId: String!, $campaignId: String!, $campaignActionId: String, $statusActive: String, $sort: [BaseSortRequest]) {
449
+ query SearchProductPricePromotionResponse(
450
+ $partyId: String!
451
+ $campaignId: String!
452
+ $campaignActionId: String
453
+ $statusActive: String
454
+ $sort: [BaseSortRequest]
455
+ ) {
382
456
  searchProductPricePromotionResponse(
383
- searchProductPricePromotionRequest: { partyId: $partyId, campaignId: $campaignId, campaignActionId: $campaignActionId, statusActive: $statusActive, sort: $sort }
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;
@@ -22,3 +22,6 @@ export declare const UPDATE_URL_PUBLIC: DocumentNode;
22
22
  export declare const CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC: (fields?: string[]) => DocumentNode;
23
23
  export declare const CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC: (fields?: string[]) => DocumentNode;
24
24
  export declare const CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST: (fields?: string[]) => DocumentNode;
25
+ export declare const REMOVE_RECORD: DocumentNode;
26
+ export declare const UPDATE_RECORD: DocumentNode;
27
+ export declare const SAVE_RECORD: DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.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
6
  mutation GetDomainInfo($domainName: String! $isClearCache: Boolean) {
@@ -374,3 +374,64 @@ const CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = (fields = []) => {
374
374
  `;
375
375
  };
376
376
  exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST;
377
+ exports.REMOVE_RECORD = (0, graphql_tag_1.gql) `
378
+ mutation RemoveRecord(
379
+ $serviceId: String!
380
+ $nameRecord: String!
381
+ $typeRecord: String!
382
+ ) {
383
+ removeRecord(
384
+ serviceId: $serviceId
385
+ nameRecord: $nameRecord
386
+ typeRecord: $typeRecord
387
+ )
388
+ }
389
+ `;
390
+ exports.UPDATE_RECORD = (0, graphql_tag_1.gql) `
391
+ mutation UpdateRecord(
392
+ $serviceId: String!
393
+ $record: RecordDnsInput!
394
+ ) {
395
+ updateRecord(
396
+ serviceId: $serviceId
397
+ record: $record
398
+ ) {
399
+ id
400
+ domainName
401
+ domainId
402
+ name
403
+ type
404
+ content
405
+ ttl
406
+ prio
407
+ changeDate
408
+ disabled
409
+ ordername
410
+ auth
411
+ }
412
+ }
413
+ `;
414
+ exports.SAVE_RECORD = (0, graphql_tag_1.gql) `
415
+ mutation SaveRecord(
416
+ $serviceId: String!
417
+ $record: RecordDnsInput!
418
+ ) {
419
+ saveRecord(
420
+ serviceId: $serviceId
421
+ record: $record
422
+ ) {
423
+ id
424
+ domainName
425
+ domainId
426
+ name
427
+ type
428
+ content
429
+ ttl
430
+ prio
431
+ changeDate
432
+ disabled
433
+ ordername
434
+ auth
435
+ }
436
+ }
437
+ `;
@@ -22,3 +22,5 @@ export declare const GET_ELASTIC_CLOUD_RESOURCE: DocumentNode;
22
22
  export declare const SEARCH_SERVICE_DYNAMIC: (fields?: string[]) => DocumentNode;
23
23
  export declare const SEARCH_ACTIONS_DYNAMIC: (fields?: string[]) => DocumentNode;
24
24
  export declare const ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING: DocumentNode;
25
+ export declare const GET_RECORD: DocumentNode;
26
+ export declare const GET_DOMAIN_DNS: DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING = exports.SEARCH_ACTIONS_DYNAMIC = exports.SEARCH_SERVICE_DYNAMIC = exports.GET_ELASTIC_CLOUD_RESOURCE = exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL_DYNAMIC = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
3
+ exports.GET_DOMAIN_DNS = exports.GET_RECORD = exports.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING = exports.SEARCH_ACTIONS_DYNAMIC = exports.SEARCH_SERVICE_DYNAMIC = exports.GET_ELASTIC_CLOUD_RESOURCE = exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL_DYNAMIC = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
6
6
  query CheckDomainNameAvailable($domainName: String!) {
@@ -408,3 +408,36 @@ exports.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING = (0, graphql_tag_1.gql) `
408
408
  addLetsEncryptSSLForMailHosting(serviceId: $serviceId, actorId: $actorId)
409
409
  }
410
410
  `;
411
+ exports.GET_RECORD = (0, graphql_tag_1.gql) `
412
+ query GetRecord($serviceId: String!) {
413
+ getRecord(serviceId: $serviceId) {
414
+ id
415
+ domainName
416
+ domainId
417
+ name
418
+ type
419
+ content
420
+ ttl
421
+ prio
422
+ changeDate
423
+ disabled
424
+ ordername
425
+ auth
426
+ }
427
+ }
428
+ `;
429
+ exports.GET_DOMAIN_DNS = (0, graphql_tag_1.gql) `
430
+ query GetDomainDns($serviceId: String!) {
431
+ getDomainDns(serviceId: $serviceId) {
432
+ id
433
+ name
434
+ master
435
+ lastCheck
436
+ type
437
+ notifiedSerial
438
+ account
439
+ email
440
+ nameServer
441
+ }
442
+ }
443
+ `;
@@ -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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HANDLE_CREATE_GATEWAY_CONFIG = exports.CREATE_PAYMENT = exports.HANDLE_UPDATE_GATEWAY_CONFIG = exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = exports.CONFIRM_TO_GATEWAY = exports.CANCEL_PAYMENT = void 0;
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
6
  mutation CancelPayment($paymentId: String!, $reason: String!) {
@@ -89,20 +89,6 @@ exports.HANDLE_UPDATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
89
89
  }
90
90
  }
91
91
  `;
92
- exports.CREATE_PAYMENT = (0, graphql_tag_1.gql) `
93
- mutation CreatePayment($paymentData: Payment) {
94
- createPayment(paymentData: $paymentData) {
95
- code
96
- message
97
- data
98
- qrCodeUrl
99
- deeplink
100
- deeplinkMiniApp
101
- paymentId
102
- gwConfigId
103
- }
104
- }
105
- `;
106
92
  exports.HANDLE_CREATE_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
107
93
  mutation HandleCreateGatewayConfig(
108
94
  $input: PaymentGatewayConfigInput!
@@ -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;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PAYMENT_METHODS_BY_PARTNER = exports.GET_TRANSFER_INFO = exports.GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG = 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;
3
+ exports.GET_TRANSFER_INFO = 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
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
6
  query PaymentsByOrders($orderIds: [String!]!) {
@@ -255,44 +255,6 @@ exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
255
255
  }
256
256
  }
257
257
  `;
258
- exports.GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
259
- query GetPaymentMethodTypesWithGatewayConfig(
260
- $partnerId: String!
261
- $storeId: String!
262
- ) {
263
- getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
264
- code
265
- name
266
- description
267
- image
268
- storeActive
269
- paymentGatewayConfig {
270
- id
271
- methodCode
272
- partnerCode
273
- subMethodCode
274
- gwPartnerCode
275
- gwPartnerName
276
- gwPaymentMethod
277
- gwSubChannel
278
- gwMethodVersion
279
- hashAlgorithm
280
- accessKey
281
- secretKey
282
- responseUrl
283
- requestUrl
284
- methodType
285
- publicKey
286
- redirectUrl
287
- activated
288
- paymentRecordingMethod
289
- userId
290
- name
291
- description
292
- }
293
- }
294
- }
295
- `;
296
258
  exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
297
259
  query GetTransferInfo(
298
260
  $partnerId: String!
@@ -313,22 +275,3 @@ exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
313
275
  }
314
276
  }
315
277
  `;
316
- exports.PAYMENT_METHODS_BY_PARTNER = (0, graphql_tag_1.gql) `
317
- query PaymentMethodsByPartner($partnerCode: String) {
318
- paymentMethods(partnerCode: $partnerCode ) {
319
- id
320
- code
321
- description
322
- image
323
- name
324
- titles {
325
- id
326
- code
327
- name
328
- lang
329
- showField
330
- required
331
- }
332
- }
333
- }
334
- `;
@@ -19,5 +19,4 @@ export declare class CampaignService extends Service {
19
19
  searchProductGiftPromotionResponse(productIds: string[], campaignActionId: string): Promise<any>;
20
20
  getCampaign(id: string): Promise<any>;
21
21
  searchProductPricePromotionResponse(campaignId: string, campaignActionId: string, statusActive: string): Promise<any>;
22
- voucherForUserRequest(orderId: string, customerId?: string, paymentMethodId?: string, shippingCompanyId?: string, pageNumber?: number, pageSize?: number, fields?: string[]): Promise<any>;
23
22
  }