@longvansoftware/storefront-js-client 4.6.3 → 4.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/config/config.d.ts +2 -0
  2. package/dist/config/config.js +2 -0
  3. package/dist/src/graphql/cloudService/queries.d.ts +1 -0
  4. package/dist/src/graphql/cloudService/queries.js +71 -0
  5. package/dist/src/graphql/marketplace/mutations.d.ts +3 -0
  6. package/dist/src/graphql/marketplace/mutations.js +54 -0
  7. package/dist/src/graphql/marketplace/queries.d.ts +2 -0
  8. package/dist/src/graphql/marketplace/queries.js +45 -0
  9. package/dist/src/lib/SDK.d.ts +3 -0
  10. package/dist/src/lib/SDK.js +5 -0
  11. package/dist/src/lib/cloudService/index.d.ts +5 -0
  12. package/dist/src/lib/{dns → cloudService}/index.js +11 -16
  13. package/dist/src/lib/marketplace/index.d.ts +9 -0
  14. package/dist/src/lib/marketplace/index.js +106 -0
  15. package/package.json +1 -1
  16. package/dist/src/graphql/accounting_service/mutations.d.ts +0 -2
  17. package/dist/src/graphql/accounting_service/mutations.js +0 -100
  18. package/dist/src/graphql/accounting_service/queries.d.ts +0 -1
  19. package/dist/src/graphql/accounting_service/queries.js +0 -62
  20. package/dist/src/graphql/content_api/queries.d.ts +0 -2
  21. package/dist/src/graphql/content_api/queries.js +0 -23
  22. package/dist/src/graphql/crm_camping/mutations.d.ts +0 -1
  23. package/dist/src/graphql/crm_camping/mutations.js +0 -37
  24. package/dist/src/graphql/crm_camping/queries.d.ts +0 -14
  25. package/dist/src/graphql/crm_camping/queries.js +0 -420
  26. package/dist/src/graphql/orderGraphQL/mutations.d.ts +0 -10
  27. package/dist/src/graphql/orderGraphQL/mutations.js +0 -410
  28. package/dist/src/graphql/orderGraphQL/queries.d.ts +0 -10
  29. package/dist/src/graphql/orderGraphQL/queries.js +0 -480
  30. package/dist/src/graphql/paymentLV/mutations.d.ts +0 -2
  31. package/dist/src/graphql/paymentLV/mutations.js +0 -31
  32. package/dist/src/graphql/paymentLV/queries.d.ts +0 -5
  33. package/dist/src/graphql/paymentLV/queries.js +0 -135
  34. package/dist/src/graphql/quicklab_service/mutations.d.ts +0 -8
  35. package/dist/src/graphql/quicklab_service/mutations.js +0 -171
  36. package/dist/src/graphql/quicklab_service/queries.d.ts +0 -7
  37. package/dist/src/graphql/quicklab_service/queries.js +0 -131
  38. package/dist/src/graphql/remote_access_service/mutations.d.ts +0 -7
  39. package/dist/src/graphql/remote_access_service/mutations.js +0 -89
  40. package/dist/src/graphql/remote_access_service/queries.d.ts +0 -2
  41. package/dist/src/graphql/remote_access_service/queries.js +0 -34
  42. package/dist/src/graphql/resource_permission/mutations.d.ts +0 -2
  43. package/dist/src/graphql/resource_permission/mutations.js +0 -65
  44. package/dist/src/graphql/resource_permission/queries.d.ts +0 -1
  45. package/dist/src/graphql/resource_permission/queries.js +0 -18
  46. package/dist/src/graphql/storage_s3/mutations.d.ts +0 -27
  47. package/dist/src/graphql/storage_s3/mutations.js +0 -603
  48. package/dist/src/graphql/storage_s3/queries.d.ts +0 -12
  49. package/dist/src/graphql/storage_s3/queries.js +0 -129
  50. package/dist/src/lib/accounting_service/index.d.ts +0 -9
  51. package/dist/src/lib/accounting_service/index.js +0 -69
  52. package/dist/src/lib/cloud_rest/index.d.ts +0 -17
  53. package/dist/src/lib/cloud_rest/index.js +0 -101
  54. package/dist/src/lib/content_api/index.d.ts +0 -7
  55. package/dist/src/lib/content_api/index.js +0 -43
  56. package/dist/src/lib/crm_camping/index.d.ts +0 -21
  57. package/dist/src/lib/crm_camping/index.js +0 -302
  58. package/dist/src/lib/dns/index.d.ts +0 -7
  59. package/dist/src/lib/orderGraphQL/index.d.ts +0 -24
  60. package/dist/src/lib/orderGraphQL/index.js +0 -342
  61. package/dist/src/lib/order_cloud_rest/index.d.ts +0 -7
  62. package/dist/src/lib/order_cloud_rest/index.js +0 -39
  63. package/dist/src/lib/paymentLV/index.d.ts +0 -13
  64. package/dist/src/lib/paymentLV/index.js +0 -149
  65. package/dist/src/lib/quicklab_service/index.d.ts +0 -19
  66. package/dist/src/lib/quicklab_service/index.js +0 -211
  67. package/dist/src/lib/remote_access_service/index.d.ts +0 -16
  68. package/dist/src/lib/remote_access_service/index.js +0 -181
  69. package/dist/src/lib/resource_permission/index.d.ts +0 -9
  70. package/dist/src/lib/resource_permission/index.js +0 -82
  71. package/dist/src/lib/service.d.ts +0 -14
  72. package/dist/src/lib/service.js +0 -101
  73. package/dist/src/lib/storage_s3/index.d.ts +0 -42
  74. package/dist/src/lib/storage_s3/index.js +0 -736
  75. package/dist/src/types/remote_access_service.d.ts +0 -12
  76. package/dist/src/types/remote_access_service.js +0 -2
  77. package/dist/src/types/storage_s3.d.ts +0 -10
  78. package/dist/src/types/storage_s3.js +0 -2
  79. package/dist/src/utils/build-field-string.d.ts +0 -1
  80. package/dist/src/utils/build-field-string.js +0 -16
@@ -1,129 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FILTER_LIST_OBJECT = exports.GET_IP_CONSUL = exports.CHART_IN_YEAR = exports.GET_LIST_FILE_OTHER_VERSION = exports.GET_LIST_CORS_BY_S3_USER_ID = exports.GET_LIST_S3_DOMAIN_BY_S3_USER_ID = exports.GET_LIST_FILE_TRASH = exports.GET_LIST_OBJECT = exports.GET_LIST_BUCKET_BY_S3_USER_ID = exports.GET_LIST_S3_USER_ACTIVE_BY_SERVICE_ID = exports.GET_LIST_S3_USER_BY_SERVICE_ID = void 0;
4
- const graphql_tag_1 = require("graphql-tag");
5
- const GET_LIST_S3_USER_BY_SERVICE_ID = (fields = []) => {
6
- const fieldStr = fields.join('\n ');
7
- const hasFields = fields.length > 0;
8
- return (0, graphql_tag_1.gql) `
9
- query GetListS3UserByServiceId($serviceId: String!) {
10
- getListS3UserByServiceId(serviceId: $serviceId) {
11
- ${hasFields ? `${fieldStr}` : ''}
12
- }
13
- }
14
- `;
15
- };
16
- exports.GET_LIST_S3_USER_BY_SERVICE_ID = GET_LIST_S3_USER_BY_SERVICE_ID;
17
- const GET_LIST_S3_USER_ACTIVE_BY_SERVICE_ID = (fields = []) => {
18
- const fieldStr = fields.join('\n ');
19
- const hasFields = fields.length > 0;
20
- return (0, graphql_tag_1.gql) `
21
- query GetListS3UserActiveByServiceId($serviceId: String!) {
22
- getListS3UserActiveByServiceId(serviceId: $serviceId) {
23
- ${hasFields ? `${fieldStr}` : ''}
24
- }
25
- }
26
- `;
27
- };
28
- exports.GET_LIST_S3_USER_ACTIVE_BY_SERVICE_ID = GET_LIST_S3_USER_ACTIVE_BY_SERVICE_ID;
29
- const GET_LIST_BUCKET_BY_S3_USER_ID = (fields = []) => {
30
- const fieldStr = fields.join('\n ');
31
- const hasFields = fields.length > 0;
32
- return (0, graphql_tag_1.gql) `
33
- query GetListBucketByS3UserId($s3UserId: String!, $serviceId: String!) {
34
- getListBucketByS3UserId(s3UserId: $s3UserId, serviceId: $serviceId) {
35
- ${hasFields ? `${fieldStr}` : ''}
36
- }
37
- }
38
- `;
39
- };
40
- exports.GET_LIST_BUCKET_BY_S3_USER_ID = GET_LIST_BUCKET_BY_S3_USER_ID;
41
- const GET_LIST_OBJECT = (fields = []) => {
42
- const fieldStr = fields.join('\n ');
43
- const hasFields = fields.length > 0;
44
- return (0, graphql_tag_1.gql) `
45
- query GetListObject($s3UserId: String!, $bucketId: String!, $key: String!, $serviceId: String!) {
46
- getListObject(s3UserId: $s3UserId, bucketId: $bucketId, key: $key, serviceId: $serviceId) {
47
- ${hasFields ? `${fieldStr}` : ''}
48
- }
49
- }
50
- `;
51
- };
52
- exports.GET_LIST_OBJECT = GET_LIST_OBJECT;
53
- const GET_LIST_FILE_TRASH = (fields = []) => {
54
- const fieldStr = fields.join('\n ');
55
- const hasFields = fields.length > 0;
56
- return (0, graphql_tag_1.gql) `
57
- query GetListFileTrash($s3UserId: String!, $bucketId: String!, $serviceId: String!) {
58
- getListFileTrash(s3UserId: $s3UserId, bucketId: $bucketId, serviceId: $serviceId) {
59
- ${hasFields ? `${fieldStr}` : ''}
60
- }
61
- }
62
- `;
63
- };
64
- exports.GET_LIST_FILE_TRASH = GET_LIST_FILE_TRASH;
65
- const GET_LIST_S3_DOMAIN_BY_S3_USER_ID = (fields = []) => {
66
- const fieldStr = fields.join('\n ');
67
- const hasFields = fields.length > 0;
68
- return (0, graphql_tag_1.gql) `
69
- query GetListS3DomainByS3UserId($s3UserId: String!, $serviceId: String!) {
70
- getListS3DomainByS3UserId(s3UserId: $s3UserId, serviceId: $serviceId) {
71
- ${hasFields ? `${fieldStr}` : ''}
72
- }
73
- }
74
- `;
75
- };
76
- exports.GET_LIST_S3_DOMAIN_BY_S3_USER_ID = GET_LIST_S3_DOMAIN_BY_S3_USER_ID;
77
- const GET_LIST_CORS_BY_S3_USER_ID = (fields = []) => {
78
- const fieldStr = fields.join('\n ');
79
- const hasFields = fields.length > 0;
80
- return (0, graphql_tag_1.gql) `
81
- query GetListCorsByS3UserId($s3UserId: String!, $bucketId: String!, $serviceId: String!) {
82
- getListCorsByS3UserId(s3UserId: $s3UserId, bucketId: $bucketId, serviceId: $serviceId) {
83
- ${hasFields ? `${fieldStr}` : ''}
84
- }
85
- }
86
- `;
87
- };
88
- exports.GET_LIST_CORS_BY_S3_USER_ID = GET_LIST_CORS_BY_S3_USER_ID;
89
- const GET_LIST_FILE_OTHER_VERSION = (fields = []) => {
90
- const fieldStr = fields.join('\n ');
91
- const hasFields = fields.length > 0;
92
- return (0, graphql_tag_1.gql) `
93
- query GetListFileOtherVersion($s3UserId: String!, $bucketId: String!, $key: String, $serviceId: String!) {
94
- getListFileOtherVersion(s3UserId: $s3UserId, bucketId: $bucketId, key: $key, serviceId: $serviceId) {
95
- ${hasFields ? `${fieldStr}` : ''}
96
- }
97
- }
98
- `;
99
- };
100
- exports.GET_LIST_FILE_OTHER_VERSION = GET_LIST_FILE_OTHER_VERSION;
101
- const CHART_IN_YEAR = (fields = []) => {
102
- const fieldStr = fields.join('\n ');
103
- const hasFields = fields.length > 0;
104
- return (0, graphql_tag_1.gql) `
105
- query ChartInYear($s3UserId: String!, $year: Int!, $month: Int!, $serviceId: String!) {
106
- chartInYear(s3UserId: $s3UserId, year: $year, month: $month, serviceId: $serviceId) {
107
- ${hasFields ? `${fieldStr}` : ''}
108
- }
109
- }
110
- `;
111
- };
112
- exports.CHART_IN_YEAR = CHART_IN_YEAR;
113
- exports.GET_IP_CONSUL = (0, graphql_tag_1.gql) `
114
- query GetIPConsul($userId: String!, $serviceId: String!) {
115
- getIPConsul(userId: $userId, serviceId: $serviceId)
116
- }
117
- `;
118
- const FILTER_LIST_OBJECT = (fields = []) => {
119
- const fieldStr = fields.join('\n ');
120
- const hasFields = fields.length > 0;
121
- return (0, graphql_tag_1.gql) `
122
- query FilterListObject($s3UserId: String!, $bucketId: String!, $maxKeys: Int!, $key: String, $prefixSearch: String, $continuationToken: String, $serviceId: String!) {
123
- filterListObject(s3UserId: $s3UserId, bucketId: $bucketId, maxKeys: $maxKeys, key: $key, prefixSearch: $prefixSearch, continuationToken: $continuationToken, serviceId: $serviceId){
124
- ${hasFields ? `${fieldStr}` : ''}
125
- }
126
- }
127
- `;
128
- };
129
- exports.FILTER_LIST_OBJECT = FILTER_LIST_OBJECT;
@@ -1,9 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class AccountingService extends Service {
3
- constructor(endpoint: string, orgId: string, storeId: string);
4
- setToken(token: string): void;
5
- setStoreId(storeId: string): void;
6
- depositWallet(data: any): Promise<any>;
7
- confirmDepositWallet(data: any): Promise<any>;
8
- financialAccountWalletInfo(data: any): Promise<any>;
9
- }
@@ -1,69 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AccountingService = void 0;
13
- const mutations_1 = require("../../graphql/accounting_service/mutations");
14
- const queries_1 = require("../../graphql/accounting_service/queries");
15
- const serviceSDK_1 = require("../serviceSDK");
16
- class AccountingService extends serviceSDK_1.Service {
17
- constructor(endpoint, orgId, storeId) {
18
- super(endpoint, orgId, storeId);
19
- }
20
- setToken(token) {
21
- this.token = token;
22
- }
23
- setStoreId(storeId) {
24
- this.storeId = storeId;
25
- }
26
- depositWallet(data) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- const mutation = mutations_1.DEPOSIT_WALLET;
29
- const variables = Object.assign({ partnerId: this.orgId, storeId: this.storeId }, data);
30
- try {
31
- const response = yield this.graphqlMutationCustomHeader(mutation, variables);
32
- return response.depositWallet;
33
- }
34
- catch (error) {
35
- console.log(`Error in depositWallet: ${error}`);
36
- throw error;
37
- }
38
- });
39
- }
40
- confirmDepositWallet(data) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- const mutation = mutations_1.CONFIRM_DEPOSIT_WALLET;
43
- const variables = Object.assign({ partnerId: this.orgId }, data);
44
- try {
45
- const response = yield this.graphqlMutationCustomHeader(mutation, variables);
46
- return response.confirmDepositWallet;
47
- }
48
- catch (error) {
49
- console.log(`Error in confirmDepositWallet: ${error}`);
50
- throw error;
51
- }
52
- });
53
- }
54
- financialAccountWalletInfo(data) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- const query = queries_1.FINANCIAL_ACCOUNT_WALLET_INFO;
57
- const variables = Object.assign({ partnerId: this.orgId }, data);
58
- try {
59
- const response = yield this.graphqlQueryCustomHeader(query, variables);
60
- return response.financialAccountWalletInfo;
61
- }
62
- catch (error) {
63
- console.log(`Error in financialAccountWalletInfo: ${error}`);
64
- throw error;
65
- }
66
- });
67
- }
68
- }
69
- exports.AccountingService = AccountingService;
@@ -1,17 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class CloudRestService extends Service {
3
- /**
4
- * Constructs a new OrderService instance.
5
- * @param endpoint - The endpoint URL for the service.
6
- * @param orgId - The organization ID.
7
- * @param storeId - The store ID.
8
- */
9
- constructor(endpoint: string, orgId: string, storeId: string);
10
- setToken(token: string): void;
11
- setStoreId(storeId: string): void;
12
- getProvinces(): Promise<any>;
13
- getDistrictsByProvinceId(provinceId: string): Promise<any>;
14
- getWardByDistrictId(districtId: string): Promise<any>;
15
- getEnterprises(gdtCode: string): Promise<any>;
16
- getCountries(): Promise<any>;
17
- }
@@ -1,101 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CloudRestService = void 0;
13
- const serviceSDK_1 = require("../serviceSDK");
14
- class CloudRestService extends serviceSDK_1.Service {
15
- /**
16
- * Constructs a new OrderService instance.
17
- * @param endpoint - The endpoint URL for the service.
18
- * @param orgId - The organization ID.
19
- * @param storeId - The store ID.
20
- */
21
- constructor(endpoint, orgId, storeId) {
22
- super(endpoint, orgId, storeId);
23
- }
24
- setToken(token) {
25
- this.token = token;
26
- }
27
- setStoreId(storeId) {
28
- this.storeId = storeId;
29
- }
30
- getProvinces() {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- const endpoint = `/places/provinces`;
33
- const method = "GET";
34
- try {
35
- const response = yield this.restApiCallWithToken(endpoint, method);
36
- return response;
37
- }
38
- catch (error) {
39
- console.log(`Error in getProvinces: ${error}`);
40
- throw error;
41
- }
42
- });
43
- }
44
- getDistrictsByProvinceId(provinceId) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- const endpoint = `/places/districts/${provinceId}`;
47
- const method = "GET";
48
- try {
49
- const response = yield this.restApiCallWithToken(endpoint, method);
50
- return response;
51
- }
52
- catch (error) {
53
- console.log(`Error in getDistrictsByProvinceId: ${error}`);
54
- throw error;
55
- }
56
- });
57
- }
58
- getWardByDistrictId(districtId) {
59
- return __awaiter(this, void 0, void 0, function* () {
60
- const endpoint = `/places/wards/${districtId}`;
61
- const method = "GET";
62
- try {
63
- const response = yield this.restApiCallWithToken(endpoint, method);
64
- return response;
65
- }
66
- catch (error) {
67
- console.log(`Error in getWardByDistrictId: ${error}`);
68
- throw error;
69
- }
70
- });
71
- }
72
- getEnterprises(gdtCode) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- const endpoint = `/enterprises/query?gdtCode=${gdtCode}`;
75
- const method = "GET";
76
- try {
77
- const response = yield this.restApiCallWithToken(endpoint, method);
78
- return response;
79
- }
80
- catch (error) {
81
- console.log(`Error in getEnterprises: ${error}`);
82
- throw error;
83
- }
84
- });
85
- }
86
- getCountries() {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- const endpoint = `/places/countries`;
89
- const method = "GET";
90
- try {
91
- const response = yield this.restApiCallWithToken(endpoint, method);
92
- return response;
93
- }
94
- catch (error) {
95
- console.log(`Error in getCountries: ${error}`);
96
- throw error;
97
- }
98
- });
99
- }
100
- }
101
- exports.CloudRestService = CloudRestService;
@@ -1,7 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class ContentApiService extends Service {
3
- constructor(endpoint: string, orgId: string, storeId: string);
4
- setToken(token: string): void;
5
- setStoreId(storeId: string): void;
6
- getArticleRelatedToProduct(productId: string, fields: string[]): Promise<any>;
7
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ContentApiService = void 0;
13
- const queries_1 = require("../../graphql/content_api/queries");
14
- const serviceSDK_1 = require("../serviceSDK");
15
- class ContentApiService extends serviceSDK_1.Service {
16
- constructor(endpoint, orgId, storeId) {
17
- super(endpoint, orgId, storeId);
18
- }
19
- setToken(token) {
20
- this.token = token;
21
- }
22
- setStoreId(storeId) {
23
- this.storeId = storeId;
24
- }
25
- getArticleRelatedToProduct(productId, fields) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- const query = (0, queries_1.GET_ARTICLE_RELATED_TO_PRODUCT)(fields);
28
- const variables = {
29
- partnerId: this.orgId,
30
- productId,
31
- };
32
- try {
33
- const response = yield this.graphqlQuery(query, variables);
34
- return response.getArticleRelatedToProduct;
35
- }
36
- catch (error) {
37
- console.log(`Error fetching get getArticleRelatedToProduct method: ${error}`);
38
- throw error;
39
- }
40
- });
41
- }
42
- }
43
- exports.ContentApiService = ContentApiService;
@@ -1,21 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class CrmCampingService extends Service {
3
- constructor(endpoint: string, orgId: string, storeId: string);
4
- setToken(token: string): void;
5
- setStoreId(storeId: string): void;
6
- searchProductQuantityPromotionAction(productId: string): Promise<any>;
7
- addCustomerToVoucher(userId: string, voucherCode: string): Promise<any>;
8
- getCampaignActionById(campaignActionId: string): Promise<any>;
9
- getProductDiscountBuyWithDynamic(productId: string, fields: string[]): Promise<any>;
10
- suggestVoucher(customerId: string, scopeIgnore: string | null, scope: string | null, isNewCustomer: boolean, voucherCode: string | null): Promise<any>;
11
- searchVouchers(campaignId: String, campaignActionId: String, campaignActionType: String, customerId: String, pageNumber: number, pageSize: number): Promise<any>;
12
- getAverageRating(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
13
- getUrlEvaluation(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
14
- getNumberOfTicketEvaluation(customerId: string): Promise<any>;
15
- searchProductGiftPromotionResponse(parameterSearchProductGift: any): Promise<any>;
16
- addProductGiftPromotion(orderId: string, updatedBy: string, addData: any): Promise<any>;
17
- searchVouchersV2(searchVoucherRequest: any): Promise<any>;
18
- searchCampaign(searchCampaignRequest: any): Promise<any>;
19
- getConditionByOrgIdCampaignActionIds(campaignActionIds: [string]): Promise<any>;
20
- getVouchersForUser(orderId: string, customerId: string, fields: string[]): Promise<any>;
21
- }