@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.5
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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +304 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +22 -1
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +297 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +74 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +195 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +418 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +20 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -20,10 +20,10 @@ declare class Common {
|
|
|
20
20
|
/**
|
|
21
21
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
22
22
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
23
|
-
* @returns {Promise<
|
|
23
|
+
* @returns {Promise<ApplicationResponse>} - Success response
|
|
24
24
|
* @name searchApplication
|
|
25
25
|
* @summary: Get sales channel
|
|
26
26
|
* @description: Get an active sales channel based on a provided query. The query can be a valid sales channel ID or a verified domain name. If the sales channel is found, a success response is returned. If not, a 404 error response is returned. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/searchApplication/).
|
|
27
27
|
*/
|
|
28
|
-
searchApplication({ authorization, query, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
28
|
+
searchApplication({ authorization, query, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ApplicationResponse>;
|
|
29
29
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -38,6 +43,14 @@ class Common {
|
|
|
38
43
|
{ locationType, id, requestHeaders } = { requestHeaders: {} },
|
|
39
44
|
{ responseHeaders } = { responseHeaders: false }
|
|
40
45
|
) {
|
|
46
|
+
let invalidInput = [];
|
|
47
|
+
if (invalidInput.length) {
|
|
48
|
+
const error = new Error();
|
|
49
|
+
error.message = "Missing required field";
|
|
50
|
+
error.details = invalidInput;
|
|
51
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
52
|
+
}
|
|
53
|
+
|
|
41
54
|
const query_params = {};
|
|
42
55
|
query_params["location_type"] = locationType;
|
|
43
56
|
query_params["id"] = id;
|
|
@@ -68,7 +81,7 @@ class Common {
|
|
|
68
81
|
/**
|
|
69
82
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
83
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
71
|
-
* @returns {Promise<
|
|
84
|
+
* @returns {Promise<ApplicationResponse>} - Success response
|
|
72
85
|
* @name searchApplication
|
|
73
86
|
* @summary: Get sales channel
|
|
74
87
|
* @description: Get an active sales channel based on a provided query. The query can be a valid sales channel ID or a verified domain name. If the sales channel is found, a success response is returned. If not, a 404 error response is returned. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/common/searchApplication/).
|
|
@@ -77,6 +90,14 @@ class Common {
|
|
|
77
90
|
{ authorization, query, requestHeaders } = { requestHeaders: {} },
|
|
78
91
|
{ responseHeaders } = { responseHeaders: false }
|
|
79
92
|
) {
|
|
93
|
+
let invalidInput = [];
|
|
94
|
+
if (invalidInput.length) {
|
|
95
|
+
const error = new Error();
|
|
96
|
+
error.message = "Missing required field";
|
|
97
|
+
error.details = invalidInput;
|
|
98
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
99
|
+
}
|
|
100
|
+
|
|
80
101
|
const query_params = {};
|
|
81
102
|
query_params["query"] = query;
|
|
82
103
|
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -40,6 +45,14 @@ class Communication {
|
|
|
40
45
|
{ requestHeaders } = { requestHeaders: {} },
|
|
41
46
|
{ responseHeaders } = { responseHeaders: false }
|
|
42
47
|
) {
|
|
48
|
+
let invalidInput = [];
|
|
49
|
+
if (invalidInput.length) {
|
|
50
|
+
const error = new Error();
|
|
51
|
+
error.message = "Missing required field";
|
|
52
|
+
error.details = invalidInput;
|
|
53
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
54
|
+
}
|
|
55
|
+
|
|
43
56
|
const query_params = {};
|
|
44
57
|
|
|
45
58
|
const xHeaders = {};
|
|
@@ -77,6 +90,14 @@ class Communication {
|
|
|
77
90
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
78
91
|
{ responseHeaders } = { responseHeaders: false }
|
|
79
92
|
) {
|
|
93
|
+
let invalidInput = [];
|
|
94
|
+
if (invalidInput.length) {
|
|
95
|
+
const error = new Error();
|
|
96
|
+
error.message = "Missing required field";
|
|
97
|
+
error.details = invalidInput;
|
|
98
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
99
|
+
}
|
|
100
|
+
|
|
80
101
|
const query_params = {};
|
|
81
102
|
|
|
82
103
|
const xHeaders = {};
|
|
@@ -114,6 +135,14 @@ class Communication {
|
|
|
114
135
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
115
136
|
{ responseHeaders } = { responseHeaders: false }
|
|
116
137
|
) {
|
|
138
|
+
let invalidInput = [];
|
|
139
|
+
if (invalidInput.length) {
|
|
140
|
+
const error = new Error();
|
|
141
|
+
error.message = "Missing required field";
|
|
142
|
+
error.details = invalidInput;
|
|
143
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
144
|
+
}
|
|
145
|
+
|
|
117
146
|
const query_params = {};
|
|
118
147
|
|
|
119
148
|
const xHeaders = {};
|
|
@@ -25,30 +25,30 @@ declare class Configuration {
|
|
|
25
25
|
/**
|
|
26
26
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
27
27
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
28
|
-
* @returns {Promise<
|
|
28
|
+
* @returns {Promise<AppCurrencyResponse>} - Success response
|
|
29
29
|
* @name getAppCurrencies
|
|
30
30
|
* @summary: Get currency configuration
|
|
31
31
|
* @description: Get currency configuration of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppCurrencies/).
|
|
32
32
|
*/
|
|
33
|
-
getAppCurrencies({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
33
|
+
getAppCurrencies({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppCurrencyResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
36
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
37
|
-
* @returns {Promise<
|
|
37
|
+
* @returns {Promise<AppStaffListResponse>} - Success response
|
|
38
38
|
* @name getAppStaffList
|
|
39
39
|
* @summary: List staff members
|
|
40
40
|
* @description: List all staff members of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
|
|
41
41
|
*/
|
|
42
|
-
getAppStaffList({ pageNo, pageSize, orderIncent, orderingStore, user, userName, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
42
|
+
getAppStaffList({ pageNo, pageSize, orderIncent, orderingStore, user, userName, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppStaffListResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
45
45
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
46
|
-
* @returns {Promise<
|
|
46
|
+
* @returns {Promise<AppStaffResponse>} - Success response
|
|
47
47
|
* @name getAppStaffs
|
|
48
48
|
* @summary: Get staff member
|
|
49
49
|
* @description: Get a staff user including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
|
|
50
50
|
*/
|
|
51
|
-
getAppStaffs({ orderIncent, orderingStore, user, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
51
|
+
getAppStaffs({ orderIncent, orderingStore, user, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppStaffResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
54
54
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -79,12 +79,12 @@ declare class Configuration {
|
|
|
79
79
|
/**
|
|
80
80
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
81
81
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
82
|
-
* @returns {Promise<
|
|
82
|
+
* @returns {Promise<CurrenciesResponse>} - Success response
|
|
83
83
|
* @name getCurrencies
|
|
84
84
|
* @summary: List currencies
|
|
85
85
|
* @description: List available currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
|
|
86
86
|
*/
|
|
87
|
-
getCurrencies({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
87
|
+
getCurrencies({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CurrenciesResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
90
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -97,39 +97,39 @@ declare class Configuration {
|
|
|
97
97
|
/**
|
|
98
98
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
99
99
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
100
|
-
* @returns {Promise<
|
|
100
|
+
* @returns {Promise<AppFeatureResponse>} - Success response
|
|
101
101
|
* @name getFeatures
|
|
102
102
|
* @summary: Get sales channel features
|
|
103
103
|
* @description: Get configuration of the features of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
|
|
104
104
|
*/
|
|
105
|
-
getFeatures({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
105
|
+
getFeatures({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppFeatureResponse>;
|
|
106
106
|
/**
|
|
107
107
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
108
108
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
109
|
-
* @returns {Promise<
|
|
109
|
+
* @returns {Promise<AppTokenResponse>} - Success response
|
|
110
110
|
* @name getIntegrationTokens
|
|
111
111
|
* @summary: Get API tokens
|
|
112
112
|
* @description: Get tools integration token of the sales channel. For example, Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, and Facebook. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
|
|
113
113
|
*/
|
|
114
|
-
getIntegrationTokens({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
114
|
+
getIntegrationTokens({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppTokenResponse>;
|
|
115
115
|
/**
|
|
116
116
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
117
117
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
118
|
-
* @returns {Promise<
|
|
118
|
+
* @returns {Promise<LanguageResponse>} - Success response
|
|
119
119
|
* @name getLanguages
|
|
120
120
|
* @summary: List languages
|
|
121
121
|
* @description: List available languages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
|
|
122
122
|
*/
|
|
123
|
-
getLanguages({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
123
|
+
getLanguages({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LanguageResponse>;
|
|
124
124
|
/**
|
|
125
125
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
126
126
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
127
|
-
* @returns {Promise<
|
|
127
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
128
128
|
* @name getOrderingStoreCookie
|
|
129
129
|
* @summary: Create cookies
|
|
130
130
|
* @description: Reset cookie of ordering store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStoreCookie/).
|
|
131
131
|
*/
|
|
132
|
-
getOrderingStoreCookie({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
132
|
+
getOrderingStoreCookie({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SuccessMessageResponse>;
|
|
133
133
|
/**
|
|
134
134
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
135
135
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -142,12 +142,12 @@ declare class Configuration {
|
|
|
142
142
|
/**
|
|
143
143
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
144
144
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
145
|
-
* @returns {Promise<
|
|
145
|
+
* @returns {Promise<ApplicationAboutResponse>} - Success response
|
|
146
146
|
* @name getOwnerInfo
|
|
147
147
|
* @summary: Get sales channel owner
|
|
148
148
|
* @description: Get details of the sales channel owner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
|
|
149
149
|
*/
|
|
150
|
-
getOwnerInfo({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
150
|
+
getOwnerInfo({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ApplicationAboutResponse>;
|
|
151
151
|
/**
|
|
152
152
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
153
153
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -160,10 +160,10 @@ declare class Configuration {
|
|
|
160
160
|
/**
|
|
161
161
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
162
162
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
163
|
-
* @returns {Promise<
|
|
163
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
164
164
|
* @name removeOrderingStoreCookie
|
|
165
165
|
* @summary: Delete store cookie
|
|
166
166
|
* @description: Delete store cookie. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/removeOrderingStoreCookie/).
|
|
167
167
|
*/
|
|
168
|
-
removeOrderingStoreCookie({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
168
|
+
removeOrderingStoreCookie({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SuccessMessageResponse>;
|
|
169
169
|
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
const {
|
|
2
|
+
FDKClientValidationError,
|
|
3
|
+
FDKResponseValidationError,
|
|
4
|
+
} = require("../../common/FDKError");
|
|
5
|
+
|
|
1
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
7
|
const constructUrl = require("../constructUrl");
|
|
3
8
|
const Paginator = require("../../common/Paginator");
|
|
@@ -46,7 +51,7 @@ class Configuration {
|
|
|
46
51
|
/**
|
|
47
52
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
53
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<
|
|
54
|
+
* @returns {Promise<AppCurrencyResponse>} - Success response
|
|
50
55
|
* @name getAppCurrencies
|
|
51
56
|
* @summary: Get currency configuration
|
|
52
57
|
* @description: Get currency configuration of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppCurrencies/).
|
|
@@ -55,6 +60,14 @@ class Configuration {
|
|
|
55
60
|
{ requestHeaders } = { requestHeaders: {} },
|
|
56
61
|
{ responseHeaders } = { responseHeaders: false }
|
|
57
62
|
) {
|
|
63
|
+
let invalidInput = [];
|
|
64
|
+
if (invalidInput.length) {
|
|
65
|
+
const error = new Error();
|
|
66
|
+
error.message = "Missing required field";
|
|
67
|
+
error.details = invalidInput;
|
|
68
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
69
|
+
}
|
|
70
|
+
|
|
58
71
|
const query_params = {};
|
|
59
72
|
|
|
60
73
|
const xHeaders = {};
|
|
@@ -83,7 +96,7 @@ class Configuration {
|
|
|
83
96
|
/**
|
|
84
97
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
85
98
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
86
|
-
* @returns {Promise<
|
|
99
|
+
* @returns {Promise<AppStaffListResponse>} - Success response
|
|
87
100
|
* @name getAppStaffList
|
|
88
101
|
* @summary: List staff members
|
|
89
102
|
* @description: List all staff members of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
|
|
@@ -100,6 +113,14 @@ class Configuration {
|
|
|
100
113
|
} = { requestHeaders: {} },
|
|
101
114
|
{ responseHeaders } = { responseHeaders: false }
|
|
102
115
|
) {
|
|
116
|
+
let invalidInput = [];
|
|
117
|
+
if (invalidInput.length) {
|
|
118
|
+
const error = new Error();
|
|
119
|
+
error.message = "Missing required field";
|
|
120
|
+
error.details = invalidInput;
|
|
121
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
122
|
+
}
|
|
123
|
+
|
|
103
124
|
const query_params = {};
|
|
104
125
|
query_params["page_no"] = pageNo;
|
|
105
126
|
query_params["page_size"] = pageSize;
|
|
@@ -134,7 +155,7 @@ class Configuration {
|
|
|
134
155
|
/**
|
|
135
156
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
136
157
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
137
|
-
* @returns {Promise<
|
|
158
|
+
* @returns {Promise<AppStaffResponse>} - Success response
|
|
138
159
|
* @name getAppStaffs
|
|
139
160
|
* @summary: Get staff member
|
|
140
161
|
* @description: Get a staff user including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
|
|
@@ -145,6 +166,14 @@ class Configuration {
|
|
|
145
166
|
},
|
|
146
167
|
{ responseHeaders } = { responseHeaders: false }
|
|
147
168
|
) {
|
|
169
|
+
let invalidInput = [];
|
|
170
|
+
if (invalidInput.length) {
|
|
171
|
+
const error = new Error();
|
|
172
|
+
error.message = "Missing required field";
|
|
173
|
+
error.details = invalidInput;
|
|
174
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
175
|
+
}
|
|
176
|
+
|
|
148
177
|
const query_params = {};
|
|
149
178
|
query_params["order_incent"] = orderIncent;
|
|
150
179
|
query_params["ordering_store"] = orderingStore;
|
|
@@ -185,6 +214,14 @@ class Configuration {
|
|
|
185
214
|
{ requestHeaders } = { requestHeaders: {} },
|
|
186
215
|
{ responseHeaders } = { responseHeaders: false }
|
|
187
216
|
) {
|
|
217
|
+
let invalidInput = [];
|
|
218
|
+
if (invalidInput.length) {
|
|
219
|
+
const error = new Error();
|
|
220
|
+
error.message = "Missing required field";
|
|
221
|
+
error.details = invalidInput;
|
|
222
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
223
|
+
}
|
|
224
|
+
|
|
188
225
|
const query_params = {};
|
|
189
226
|
|
|
190
227
|
const xHeaders = {};
|
|
@@ -222,6 +259,14 @@ class Configuration {
|
|
|
222
259
|
{ requestHeaders } = { requestHeaders: {} },
|
|
223
260
|
{ responseHeaders } = { responseHeaders: false }
|
|
224
261
|
) {
|
|
262
|
+
let invalidInput = [];
|
|
263
|
+
if (invalidInput.length) {
|
|
264
|
+
const error = new Error();
|
|
265
|
+
error.message = "Missing required field";
|
|
266
|
+
error.details = invalidInput;
|
|
267
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
268
|
+
}
|
|
269
|
+
|
|
225
270
|
const query_params = {};
|
|
226
271
|
|
|
227
272
|
const xHeaders = {};
|
|
@@ -259,6 +304,14 @@ class Configuration {
|
|
|
259
304
|
{ requestHeaders } = { requestHeaders: {} },
|
|
260
305
|
{ responseHeaders } = { responseHeaders: false }
|
|
261
306
|
) {
|
|
307
|
+
let invalidInput = [];
|
|
308
|
+
if (invalidInput.length) {
|
|
309
|
+
const error = new Error();
|
|
310
|
+
error.message = "Missing required field";
|
|
311
|
+
error.details = invalidInput;
|
|
312
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
313
|
+
}
|
|
314
|
+
|
|
262
315
|
const query_params = {};
|
|
263
316
|
|
|
264
317
|
const xHeaders = {};
|
|
@@ -287,7 +340,7 @@ class Configuration {
|
|
|
287
340
|
/**
|
|
288
341
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
289
342
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
290
|
-
* @returns {Promise<
|
|
343
|
+
* @returns {Promise<CurrenciesResponse>} - Success response
|
|
291
344
|
* @name getCurrencies
|
|
292
345
|
* @summary: List currencies
|
|
293
346
|
* @description: List available currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
|
|
@@ -296,6 +349,14 @@ class Configuration {
|
|
|
296
349
|
{ requestHeaders } = { requestHeaders: {} },
|
|
297
350
|
{ responseHeaders } = { responseHeaders: false }
|
|
298
351
|
) {
|
|
352
|
+
let invalidInput = [];
|
|
353
|
+
if (invalidInput.length) {
|
|
354
|
+
const error = new Error();
|
|
355
|
+
error.message = "Missing required field";
|
|
356
|
+
error.details = invalidInput;
|
|
357
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
358
|
+
}
|
|
359
|
+
|
|
299
360
|
const query_params = {};
|
|
300
361
|
|
|
301
362
|
const xHeaders = {};
|
|
@@ -333,6 +394,21 @@ class Configuration {
|
|
|
333
394
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
334
395
|
{ responseHeaders } = { responseHeaders: false }
|
|
335
396
|
) {
|
|
397
|
+
let invalidInput = [];
|
|
398
|
+
|
|
399
|
+
if (!id) {
|
|
400
|
+
invalidInput.push({
|
|
401
|
+
message: `The 'id' field is required.`,
|
|
402
|
+
path: ["id"],
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
if (invalidInput.length) {
|
|
406
|
+
const error = new Error();
|
|
407
|
+
error.message = "Missing required field";
|
|
408
|
+
error.details = invalidInput;
|
|
409
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
410
|
+
}
|
|
411
|
+
|
|
336
412
|
const query_params = {};
|
|
337
413
|
|
|
338
414
|
const xHeaders = {};
|
|
@@ -361,7 +437,7 @@ class Configuration {
|
|
|
361
437
|
/**
|
|
362
438
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
363
439
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
364
|
-
* @returns {Promise<
|
|
440
|
+
* @returns {Promise<AppFeatureResponse>} - Success response
|
|
365
441
|
* @name getFeatures
|
|
366
442
|
* @summary: Get sales channel features
|
|
367
443
|
* @description: Get configuration of the features of the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
|
|
@@ -370,6 +446,14 @@ class Configuration {
|
|
|
370
446
|
{ requestHeaders } = { requestHeaders: {} },
|
|
371
447
|
{ responseHeaders } = { responseHeaders: false }
|
|
372
448
|
) {
|
|
449
|
+
let invalidInput = [];
|
|
450
|
+
if (invalidInput.length) {
|
|
451
|
+
const error = new Error();
|
|
452
|
+
error.message = "Missing required field";
|
|
453
|
+
error.details = invalidInput;
|
|
454
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
455
|
+
}
|
|
456
|
+
|
|
373
457
|
const query_params = {};
|
|
374
458
|
|
|
375
459
|
const xHeaders = {};
|
|
@@ -398,7 +482,7 @@ class Configuration {
|
|
|
398
482
|
/**
|
|
399
483
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
400
484
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
401
|
-
* @returns {Promise<
|
|
485
|
+
* @returns {Promise<AppTokenResponse>} - Success response
|
|
402
486
|
* @name getIntegrationTokens
|
|
403
487
|
* @summary: Get API tokens
|
|
404
488
|
* @description: Get tools integration token of the sales channel. For example, Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, and Facebook. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
|
|
@@ -407,6 +491,14 @@ class Configuration {
|
|
|
407
491
|
{ requestHeaders } = { requestHeaders: {} },
|
|
408
492
|
{ responseHeaders } = { responseHeaders: false }
|
|
409
493
|
) {
|
|
494
|
+
let invalidInput = [];
|
|
495
|
+
if (invalidInput.length) {
|
|
496
|
+
const error = new Error();
|
|
497
|
+
error.message = "Missing required field";
|
|
498
|
+
error.details = invalidInput;
|
|
499
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
500
|
+
}
|
|
501
|
+
|
|
410
502
|
const query_params = {};
|
|
411
503
|
|
|
412
504
|
const xHeaders = {};
|
|
@@ -435,7 +527,7 @@ class Configuration {
|
|
|
435
527
|
/**
|
|
436
528
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
437
529
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
438
|
-
* @returns {Promise<
|
|
530
|
+
* @returns {Promise<LanguageResponse>} - Success response
|
|
439
531
|
* @name getLanguages
|
|
440
532
|
* @summary: List languages
|
|
441
533
|
* @description: List available languages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
|
|
@@ -444,6 +536,14 @@ class Configuration {
|
|
|
444
536
|
{ requestHeaders } = { requestHeaders: {} },
|
|
445
537
|
{ responseHeaders } = { responseHeaders: false }
|
|
446
538
|
) {
|
|
539
|
+
let invalidInput = [];
|
|
540
|
+
if (invalidInput.length) {
|
|
541
|
+
const error = new Error();
|
|
542
|
+
error.message = "Missing required field";
|
|
543
|
+
error.details = invalidInput;
|
|
544
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
545
|
+
}
|
|
546
|
+
|
|
447
547
|
const query_params = {};
|
|
448
548
|
|
|
449
549
|
const xHeaders = {};
|
|
@@ -472,7 +572,7 @@ class Configuration {
|
|
|
472
572
|
/**
|
|
473
573
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
474
574
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
475
|
-
* @returns {Promise<
|
|
575
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
476
576
|
* @name getOrderingStoreCookie
|
|
477
577
|
* @summary: Create cookies
|
|
478
578
|
* @description: Reset cookie of ordering store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStoreCookie/).
|
|
@@ -481,6 +581,14 @@ class Configuration {
|
|
|
481
581
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
482
582
|
{ responseHeaders } = { responseHeaders: false }
|
|
483
583
|
) {
|
|
584
|
+
let invalidInput = [];
|
|
585
|
+
if (invalidInput.length) {
|
|
586
|
+
const error = new Error();
|
|
587
|
+
error.message = "Missing required field";
|
|
588
|
+
error.details = invalidInput;
|
|
589
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
590
|
+
}
|
|
591
|
+
|
|
484
592
|
const query_params = {};
|
|
485
593
|
|
|
486
594
|
const xHeaders = {};
|
|
@@ -518,6 +626,14 @@ class Configuration {
|
|
|
518
626
|
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
519
627
|
{ responseHeaders } = { responseHeaders: false }
|
|
520
628
|
) {
|
|
629
|
+
let invalidInput = [];
|
|
630
|
+
if (invalidInput.length) {
|
|
631
|
+
const error = new Error();
|
|
632
|
+
error.message = "Missing required field";
|
|
633
|
+
error.details = invalidInput;
|
|
634
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
635
|
+
}
|
|
636
|
+
|
|
521
637
|
const query_params = {};
|
|
522
638
|
query_params["page_no"] = pageNo;
|
|
523
639
|
query_params["page_size"] = pageSize;
|
|
@@ -549,7 +665,7 @@ class Configuration {
|
|
|
549
665
|
/**
|
|
550
666
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
551
667
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
552
|
-
* @returns {Promise<
|
|
668
|
+
* @returns {Promise<ApplicationAboutResponse>} - Success response
|
|
553
669
|
* @name getOwnerInfo
|
|
554
670
|
* @summary: Get sales channel owner
|
|
555
671
|
* @description: Get details of the sales channel owner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
|
|
@@ -558,6 +674,14 @@ class Configuration {
|
|
|
558
674
|
{ requestHeaders } = { requestHeaders: {} },
|
|
559
675
|
{ responseHeaders } = { responseHeaders: false }
|
|
560
676
|
) {
|
|
677
|
+
let invalidInput = [];
|
|
678
|
+
if (invalidInput.length) {
|
|
679
|
+
const error = new Error();
|
|
680
|
+
error.message = "Missing required field";
|
|
681
|
+
error.details = invalidInput;
|
|
682
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
683
|
+
}
|
|
684
|
+
|
|
561
685
|
const query_params = {};
|
|
562
686
|
|
|
563
687
|
const xHeaders = {};
|
|
@@ -595,6 +719,21 @@ class Configuration {
|
|
|
595
719
|
{ storeId, requestHeaders } = { requestHeaders: {} },
|
|
596
720
|
{ responseHeaders } = { responseHeaders: false }
|
|
597
721
|
) {
|
|
722
|
+
let invalidInput = [];
|
|
723
|
+
|
|
724
|
+
if (!storeId) {
|
|
725
|
+
invalidInput.push({
|
|
726
|
+
message: `The 'storeId' field is required.`,
|
|
727
|
+
path: ["storeId"],
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
if (invalidInput.length) {
|
|
731
|
+
const error = new Error();
|
|
732
|
+
error.message = "Missing required field";
|
|
733
|
+
error.details = invalidInput;
|
|
734
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
735
|
+
}
|
|
736
|
+
|
|
598
737
|
const query_params = {};
|
|
599
738
|
|
|
600
739
|
const xHeaders = {};
|
|
@@ -623,7 +762,7 @@ class Configuration {
|
|
|
623
762
|
/**
|
|
624
763
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
625
764
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
626
|
-
* @returns {Promise<
|
|
765
|
+
* @returns {Promise<SuccessMessageResponse>} - Success response
|
|
627
766
|
* @name removeOrderingStoreCookie
|
|
628
767
|
* @summary: Delete store cookie
|
|
629
768
|
* @description: Delete store cookie. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/removeOrderingStoreCookie/).
|
|
@@ -632,6 +771,14 @@ class Configuration {
|
|
|
632
771
|
{ requestHeaders } = { requestHeaders: {} },
|
|
633
772
|
{ responseHeaders } = { responseHeaders: false }
|
|
634
773
|
) {
|
|
774
|
+
let invalidInput = [];
|
|
775
|
+
if (invalidInput.length) {
|
|
776
|
+
const error = new Error();
|
|
777
|
+
error.message = "Missing required field";
|
|
778
|
+
error.details = invalidInput;
|
|
779
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
780
|
+
}
|
|
781
|
+
|
|
635
782
|
const query_params = {};
|
|
636
783
|
|
|
637
784
|
const xHeaders = {};
|