@gofynd/fdk-client-javascript 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -14,13 +14,17 @@ class Configuration {
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @param {ConfigurationPlatformApplicationValidator.AddDomainParam} arg - Arg object
|
|
17
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
17
18
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
18
19
|
* @returns {Promise<ConfigurationPlatformModel.Domain>} - Success response
|
|
19
20
|
* @name addDomain
|
|
20
21
|
* @summary: Add new domain to current sales channel
|
|
21
22
|
* @description: Add a new domain to current sales channel, including pre-defined domain (free domain) or custom domain (owned by the brand) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/addDomain/).
|
|
22
23
|
*/
|
|
23
|
-
async addDomain(
|
|
24
|
+
async addDomain(
|
|
25
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
26
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
27
|
+
) {
|
|
24
28
|
const {
|
|
25
29
|
error,
|
|
26
30
|
} = ConfigurationPlatformApplicationValidator.addDomain().validate(
|
|
@@ -57,12 +61,12 @@ class Configuration {
|
|
|
57
61
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
|
|
58
62
|
query_params,
|
|
59
63
|
body,
|
|
60
|
-
|
|
61
|
-
{
|
|
64
|
+
requestHeaders,
|
|
65
|
+
{ responseHeaders }
|
|
62
66
|
);
|
|
63
67
|
|
|
64
68
|
let responseData = response;
|
|
65
|
-
if (
|
|
69
|
+
if (responseHeaders) {
|
|
66
70
|
responseData = response[0];
|
|
67
71
|
}
|
|
68
72
|
|
|
@@ -87,13 +91,17 @@ class Configuration {
|
|
|
87
91
|
* @param {ConfigurationPlatformApplicationValidator.ChangeDomainTypeParam} arg
|
|
88
92
|
* - Arg object
|
|
89
93
|
*
|
|
94
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
95
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
91
96
|
* @returns {Promise<ConfigurationPlatformModel.DomainsResponse>} - Success response
|
|
92
97
|
* @name changeDomainType
|
|
93
98
|
* @summary: Change the type of domain in the current sales channel
|
|
94
99
|
* @description: Primary domain is used as the URL of your website. Short link domain is comparatively smaller and used while generating short links. Use this API to change a domain to either Primary or a Shortlink domain. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/changeDomainType/).
|
|
95
100
|
*/
|
|
96
|
-
async changeDomainType(
|
|
101
|
+
async changeDomainType(
|
|
102
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
103
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
104
|
+
) {
|
|
97
105
|
const {
|
|
98
106
|
error,
|
|
99
107
|
} = ConfigurationPlatformApplicationValidator.changeDomainType().validate(
|
|
@@ -130,12 +138,12 @@ class Configuration {
|
|
|
130
138
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/set-domain`,
|
|
131
139
|
query_params,
|
|
132
140
|
body,
|
|
133
|
-
|
|
134
|
-
{
|
|
141
|
+
requestHeaders,
|
|
142
|
+
{ responseHeaders }
|
|
135
143
|
);
|
|
136
144
|
|
|
137
145
|
let responseData = response;
|
|
138
|
-
if (
|
|
146
|
+
if (responseHeaders) {
|
|
139
147
|
responseData = response[0];
|
|
140
148
|
}
|
|
141
149
|
|
|
@@ -157,13 +165,20 @@ class Configuration {
|
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
/**
|
|
168
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppApiTokensParam} arg
|
|
169
|
+
* - Arg object
|
|
170
|
+
*
|
|
171
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
160
172
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
161
173
|
* @returns {Promise<ConfigurationPlatformModel.TokenResponse>} - Success response
|
|
162
174
|
* @name getAppApiTokens
|
|
163
175
|
* @summary: Get social tokens for the sales channel
|
|
164
176
|
* @description: Use this API to retrieve the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google, and Facebook auth. **Note** - Token values are encrypted with AES encryption using a secret key. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppApiTokens/).
|
|
165
177
|
*/
|
|
166
|
-
async getAppApiTokens(
|
|
178
|
+
async getAppApiTokens(
|
|
179
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
180
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
181
|
+
) {
|
|
167
182
|
const {
|
|
168
183
|
error,
|
|
169
184
|
} = ConfigurationPlatformApplicationValidator.getAppApiTokens().validate(
|
|
@@ -196,12 +211,12 @@ class Configuration {
|
|
|
196
211
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
|
|
197
212
|
query_params,
|
|
198
213
|
undefined,
|
|
199
|
-
|
|
200
|
-
{
|
|
214
|
+
requestHeaders,
|
|
215
|
+
{ responseHeaders }
|
|
201
216
|
);
|
|
202
217
|
|
|
203
218
|
let responseData = response;
|
|
204
|
-
if (
|
|
219
|
+
if (responseHeaders) {
|
|
205
220
|
responseData = response[0];
|
|
206
221
|
}
|
|
207
222
|
|
|
@@ -223,13 +238,20 @@ class Configuration {
|
|
|
223
238
|
}
|
|
224
239
|
|
|
225
240
|
/**
|
|
241
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppBasicDetailsParam} arg
|
|
242
|
+
* - Arg object
|
|
243
|
+
*
|
|
244
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
226
245
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
227
246
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationDetail>} - Success response
|
|
228
247
|
* @name getAppBasicDetails
|
|
229
248
|
* @summary: Get sales channel details
|
|
230
249
|
* @description: Shows basic sales channel details like name, description, logo, domain, company ID, and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppBasicDetails/).
|
|
231
250
|
*/
|
|
232
|
-
async getAppBasicDetails(
|
|
251
|
+
async getAppBasicDetails(
|
|
252
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
253
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
254
|
+
) {
|
|
233
255
|
const {
|
|
234
256
|
error,
|
|
235
257
|
} = ConfigurationPlatformApplicationValidator.getAppBasicDetails().validate(
|
|
@@ -262,12 +284,12 @@ class Configuration {
|
|
|
262
284
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
|
|
263
285
|
query_params,
|
|
264
286
|
undefined,
|
|
265
|
-
|
|
266
|
-
{
|
|
287
|
+
requestHeaders,
|
|
288
|
+
{ responseHeaders }
|
|
267
289
|
);
|
|
268
290
|
|
|
269
291
|
let responseData = response;
|
|
270
|
-
if (
|
|
292
|
+
if (responseHeaders) {
|
|
271
293
|
responseData = response[0];
|
|
272
294
|
}
|
|
273
295
|
|
|
@@ -292,6 +314,7 @@ class Configuration {
|
|
|
292
314
|
* @param {ConfigurationPlatformApplicationValidator.GetAppCompaniesParam} arg
|
|
293
315
|
* - Arg object
|
|
294
316
|
*
|
|
317
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
295
318
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
296
319
|
* @returns {Promise<ConfigurationPlatformModel.CompaniesResponse>} - Success response
|
|
297
320
|
* @name getAppCompanies
|
|
@@ -299,8 +322,8 @@ class Configuration {
|
|
|
299
322
|
* @description: Fetch info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppCompanies/).
|
|
300
323
|
*/
|
|
301
324
|
async getAppCompanies(
|
|
302
|
-
{ uid, pageNo, pageSize } = {},
|
|
303
|
-
{
|
|
325
|
+
{ uid, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
326
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
304
327
|
) {
|
|
305
328
|
const {
|
|
306
329
|
error,
|
|
@@ -345,12 +368,12 @@ class Configuration {
|
|
|
345
368
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/companies`,
|
|
346
369
|
query_params,
|
|
347
370
|
undefined,
|
|
348
|
-
|
|
349
|
-
{
|
|
371
|
+
requestHeaders,
|
|
372
|
+
{ responseHeaders }
|
|
350
373
|
);
|
|
351
374
|
|
|
352
375
|
let responseData = response;
|
|
353
|
-
if (
|
|
376
|
+
if (responseHeaders) {
|
|
354
377
|
responseData = response[0];
|
|
355
378
|
}
|
|
356
379
|
|
|
@@ -408,6 +431,10 @@ class Configuration {
|
|
|
408
431
|
}
|
|
409
432
|
|
|
410
433
|
/**
|
|
434
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppContactInfoParam} arg
|
|
435
|
+
* - Arg object
|
|
436
|
+
*
|
|
437
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
411
438
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
412
439
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInformation>} -
|
|
413
440
|
* Success response
|
|
@@ -415,7 +442,10 @@ class Configuration {
|
|
|
415
442
|
* @summary: Get current information of the sales channel
|
|
416
443
|
* @description: Fetch data such as social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppContactInfo/).
|
|
417
444
|
*/
|
|
418
|
-
async getAppContactInfo(
|
|
445
|
+
async getAppContactInfo(
|
|
446
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
447
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
448
|
+
) {
|
|
419
449
|
const {
|
|
420
450
|
error,
|
|
421
451
|
} = ConfigurationPlatformApplicationValidator.getAppContactInfo().validate(
|
|
@@ -448,12 +478,12 @@ class Configuration {
|
|
|
448
478
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
|
|
449
479
|
query_params,
|
|
450
480
|
undefined,
|
|
451
|
-
|
|
452
|
-
{
|
|
481
|
+
requestHeaders,
|
|
482
|
+
{ responseHeaders }
|
|
453
483
|
);
|
|
454
484
|
|
|
455
485
|
let responseData = response;
|
|
456
|
-
if (
|
|
486
|
+
if (responseHeaders) {
|
|
457
487
|
responseData = response[0];
|
|
458
488
|
}
|
|
459
489
|
|
|
@@ -475,6 +505,10 @@ class Configuration {
|
|
|
475
505
|
}
|
|
476
506
|
|
|
477
507
|
/**
|
|
508
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppCurrencyConfigParam} arg
|
|
509
|
+
* - Arg object
|
|
510
|
+
*
|
|
511
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
478
512
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
479
513
|
* @returns {Promise<ConfigurationPlatformModel.AppSupportedCurrency>} -
|
|
480
514
|
* Success response
|
|
@@ -482,7 +516,10 @@ class Configuration {
|
|
|
482
516
|
* @summary: Get currencies supported in the application
|
|
483
517
|
* @description: Get a list of currencies supported in the current sales channel. Moreover, get the cuurency that is set as the default one in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppCurrencyConfig/).
|
|
484
518
|
*/
|
|
485
|
-
async getAppCurrencyConfig(
|
|
519
|
+
async getAppCurrencyConfig(
|
|
520
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
521
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
522
|
+
) {
|
|
486
523
|
const {
|
|
487
524
|
error,
|
|
488
525
|
} = ConfigurationPlatformApplicationValidator.getAppCurrencyConfig().validate(
|
|
@@ -515,12 +552,12 @@ class Configuration {
|
|
|
515
552
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
|
|
516
553
|
query_params,
|
|
517
554
|
undefined,
|
|
518
|
-
|
|
519
|
-
{
|
|
555
|
+
requestHeaders,
|
|
556
|
+
{ responseHeaders }
|
|
520
557
|
);
|
|
521
558
|
|
|
522
559
|
let responseData = response;
|
|
523
|
-
if (
|
|
560
|
+
if (responseHeaders) {
|
|
524
561
|
responseData = response[0];
|
|
525
562
|
}
|
|
526
563
|
|
|
@@ -542,6 +579,10 @@ class Configuration {
|
|
|
542
579
|
}
|
|
543
580
|
|
|
544
581
|
/**
|
|
582
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppFeaturesParam} arg
|
|
583
|
+
* - Arg object
|
|
584
|
+
*
|
|
585
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
545
586
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
546
587
|
* @returns {Promise<ConfigurationPlatformModel.AppFeatureResponse>} -
|
|
547
588
|
* Success response
|
|
@@ -549,7 +590,10 @@ class Configuration {
|
|
|
549
590
|
* @summary: Get the sales channel configuration and features
|
|
550
591
|
* @description: Shows feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppFeatures/).
|
|
551
592
|
*/
|
|
552
|
-
async getAppFeatures(
|
|
593
|
+
async getAppFeatures(
|
|
594
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
595
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
596
|
+
) {
|
|
553
597
|
const {
|
|
554
598
|
error,
|
|
555
599
|
} = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
|
|
@@ -582,12 +626,12 @@ class Configuration {
|
|
|
582
626
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
|
|
583
627
|
query_params,
|
|
584
628
|
undefined,
|
|
585
|
-
|
|
586
|
-
{
|
|
629
|
+
requestHeaders,
|
|
630
|
+
{ responseHeaders }
|
|
587
631
|
);
|
|
588
632
|
|
|
589
633
|
let responseData = response;
|
|
590
|
-
if (
|
|
634
|
+
if (responseHeaders) {
|
|
591
635
|
responseData = response[0];
|
|
592
636
|
}
|
|
593
637
|
|
|
@@ -612,6 +656,7 @@ class Configuration {
|
|
|
612
656
|
* @param {ConfigurationPlatformApplicationValidator.GetAppStoresParam} arg
|
|
613
657
|
* - Arg object
|
|
614
658
|
*
|
|
659
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
615
660
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
616
661
|
* @returns {Promise<ConfigurationPlatformModel.StoresResponse>} - Success response
|
|
617
662
|
* @name getAppStores
|
|
@@ -619,8 +664,8 @@ class Configuration {
|
|
|
619
664
|
* @description: Fetch info of all the companies (e.g. uid, name, display name, store type, store code and company id) whose inventory is fetched into the current sales channel application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppStores/).
|
|
620
665
|
*/
|
|
621
666
|
async getAppStores(
|
|
622
|
-
{ pageNo, pageSize } = {},
|
|
623
|
-
{
|
|
667
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
668
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
624
669
|
) {
|
|
625
670
|
const {
|
|
626
671
|
error,
|
|
@@ -662,12 +707,12 @@ class Configuration {
|
|
|
662
707
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/stores`,
|
|
663
708
|
query_params,
|
|
664
709
|
undefined,
|
|
665
|
-
|
|
666
|
-
{
|
|
710
|
+
requestHeaders,
|
|
711
|
+
{ responseHeaders }
|
|
667
712
|
);
|
|
668
713
|
|
|
669
714
|
let responseData = response;
|
|
670
|
-
if (
|
|
715
|
+
if (responseHeaders) {
|
|
671
716
|
responseData = response[0];
|
|
672
717
|
}
|
|
673
718
|
|
|
@@ -723,6 +768,10 @@ class Configuration {
|
|
|
723
768
|
}
|
|
724
769
|
|
|
725
770
|
/**
|
|
771
|
+
* @param {ConfigurationPlatformApplicationValidator.GetAppSupportedCurrencyParam} arg
|
|
772
|
+
* - Arg object
|
|
773
|
+
*
|
|
774
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
726
775
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
727
776
|
* @returns {Promise<ConfigurationPlatformModel.AppCurrencyResponse>} -
|
|
728
777
|
* Success response
|
|
@@ -730,7 +779,10 @@ class Configuration {
|
|
|
730
779
|
* @summary: Get currencies enabled in the application
|
|
731
780
|
* @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppSupportedCurrency/).
|
|
732
781
|
*/
|
|
733
|
-
async getAppSupportedCurrency(
|
|
782
|
+
async getAppSupportedCurrency(
|
|
783
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
784
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
785
|
+
) {
|
|
734
786
|
const {
|
|
735
787
|
error,
|
|
736
788
|
} = ConfigurationPlatformApplicationValidator.getAppSupportedCurrency().validate(
|
|
@@ -763,12 +815,12 @@ class Configuration {
|
|
|
763
815
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency/supported`,
|
|
764
816
|
query_params,
|
|
765
817
|
undefined,
|
|
766
|
-
|
|
767
|
-
{
|
|
818
|
+
requestHeaders,
|
|
819
|
+
{ responseHeaders }
|
|
768
820
|
);
|
|
769
821
|
|
|
770
822
|
let responseData = response;
|
|
771
|
-
if (
|
|
823
|
+
if (responseHeaders) {
|
|
772
824
|
responseData = response[0];
|
|
773
825
|
}
|
|
774
826
|
|
|
@@ -790,13 +842,20 @@ class Configuration {
|
|
|
790
842
|
}
|
|
791
843
|
|
|
792
844
|
/**
|
|
845
|
+
* @param {ConfigurationPlatformApplicationValidator.GetApplicationByIdParam} arg
|
|
846
|
+
* - Arg object
|
|
847
|
+
*
|
|
848
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
793
849
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
794
850
|
* @returns {Promise<ConfigurationPlatformModel.Application>} - Success response
|
|
795
851
|
* @name getApplicationById
|
|
796
852
|
* @summary: Get sales channel data by ID
|
|
797
853
|
* @description: Use application ID to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, token, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getApplicationById/).
|
|
798
854
|
*/
|
|
799
|
-
async getApplicationById(
|
|
855
|
+
async getApplicationById(
|
|
856
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
857
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
858
|
+
) {
|
|
800
859
|
const {
|
|
801
860
|
error,
|
|
802
861
|
} = ConfigurationPlatformApplicationValidator.getApplicationById().validate(
|
|
@@ -829,12 +888,12 @@ class Configuration {
|
|
|
829
888
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
|
|
830
889
|
query_params,
|
|
831
890
|
undefined,
|
|
832
|
-
|
|
833
|
-
{
|
|
891
|
+
requestHeaders,
|
|
892
|
+
{ responseHeaders }
|
|
834
893
|
);
|
|
835
894
|
|
|
836
895
|
let responseData = response;
|
|
837
|
-
if (
|
|
896
|
+
if (responseHeaders) {
|
|
838
897
|
responseData = response[0];
|
|
839
898
|
}
|
|
840
899
|
|
|
@@ -859,6 +918,7 @@ class Configuration {
|
|
|
859
918
|
* @param {ConfigurationPlatformApplicationValidator.GetBuildConfigParam} arg
|
|
860
919
|
* - Arg object
|
|
861
920
|
*
|
|
921
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
862
922
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
863
923
|
* @returns {Promise<ConfigurationPlatformModel.MobileAppConfiguration>} -
|
|
864
924
|
* Success response
|
|
@@ -867,8 +927,8 @@ class Configuration {
|
|
|
867
927
|
* @description: Fetch latest build configuration, such as app name, landing page image, splash image used in a mobile build. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getBuildConfig/).
|
|
868
928
|
*/
|
|
869
929
|
async getBuildConfig(
|
|
870
|
-
{ platformType } = {},
|
|
871
|
-
{
|
|
930
|
+
{ platformType, requestHeaders } = { requestHeaders: {} },
|
|
931
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
872
932
|
) {
|
|
873
933
|
const {
|
|
874
934
|
error,
|
|
@@ -906,12 +966,12 @@ class Configuration {
|
|
|
906
966
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
|
|
907
967
|
query_params,
|
|
908
968
|
undefined,
|
|
909
|
-
|
|
910
|
-
{
|
|
969
|
+
requestHeaders,
|
|
970
|
+
{ responseHeaders }
|
|
911
971
|
);
|
|
912
972
|
|
|
913
973
|
let responseData = response;
|
|
914
|
-
if (
|
|
974
|
+
if (responseHeaders) {
|
|
915
975
|
responseData = response[0];
|
|
916
976
|
}
|
|
917
977
|
|
|
@@ -936,6 +996,7 @@ class Configuration {
|
|
|
936
996
|
* @param {ConfigurationPlatformApplicationValidator.GetDomainStatusParam} arg
|
|
937
997
|
* - Arg object
|
|
938
998
|
*
|
|
999
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
939
1000
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
940
1001
|
* @returns {Promise<ConfigurationPlatformModel.DomainStatusResponse>} -
|
|
941
1002
|
* Success response
|
|
@@ -943,7 +1004,10 @@ class Configuration {
|
|
|
943
1004
|
* @summary: Get the status of connected domain
|
|
944
1005
|
* @description: Shows if the A records and TXT records of the domain correctly points to appropriate IP on Fynd Servers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomainStatus/).
|
|
945
1006
|
*/
|
|
946
|
-
async getDomainStatus(
|
|
1007
|
+
async getDomainStatus(
|
|
1008
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1009
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1010
|
+
) {
|
|
947
1011
|
const {
|
|
948
1012
|
error,
|
|
949
1013
|
} = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
|
|
@@ -980,12 +1044,12 @@ class Configuration {
|
|
|
980
1044
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/domain-status`,
|
|
981
1045
|
query_params,
|
|
982
1046
|
body,
|
|
983
|
-
|
|
984
|
-
{
|
|
1047
|
+
requestHeaders,
|
|
1048
|
+
{ responseHeaders }
|
|
985
1049
|
);
|
|
986
1050
|
|
|
987
1051
|
let responseData = response;
|
|
988
|
-
if (
|
|
1052
|
+
if (responseHeaders) {
|
|
989
1053
|
responseData = response[0];
|
|
990
1054
|
}
|
|
991
1055
|
|
|
@@ -1007,13 +1071,18 @@ class Configuration {
|
|
|
1007
1071
|
}
|
|
1008
1072
|
|
|
1009
1073
|
/**
|
|
1074
|
+
* @param {ConfigurationPlatformApplicationValidator.GetDomainsParam} arg - Arg object
|
|
1075
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1010
1076
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1011
1077
|
* @returns {Promise<ConfigurationPlatformModel.DomainsResponse>} - Success response
|
|
1012
1078
|
* @name getDomains
|
|
1013
1079
|
* @summary: Fetch all the domains added to an application (sales channel website), including pre-defined domain (free domain) or custom domain (owned by the brand). Know the verification status of each domain name, and find out which one is the primary domain, short link domain, or both.
|
|
1014
1080
|
* @description: Get list of domains - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomains/).
|
|
1015
1081
|
*/
|
|
1016
|
-
async getDomains(
|
|
1082
|
+
async getDomains(
|
|
1083
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1084
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1085
|
+
) {
|
|
1017
1086
|
const {
|
|
1018
1087
|
error,
|
|
1019
1088
|
} = ConfigurationPlatformApplicationValidator.getDomains().validate(
|
|
@@ -1046,12 +1115,12 @@ class Configuration {
|
|
|
1046
1115
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
|
|
1047
1116
|
query_params,
|
|
1048
1117
|
undefined,
|
|
1049
|
-
|
|
1050
|
-
{
|
|
1118
|
+
requestHeaders,
|
|
1119
|
+
{ responseHeaders }
|
|
1051
1120
|
);
|
|
1052
1121
|
|
|
1053
1122
|
let responseData = response;
|
|
1054
|
-
if (
|
|
1123
|
+
if (responseHeaders) {
|
|
1055
1124
|
responseData = response[0];
|
|
1056
1125
|
}
|
|
1057
1126
|
|
|
@@ -1073,6 +1142,10 @@ class Configuration {
|
|
|
1073
1142
|
}
|
|
1074
1143
|
|
|
1075
1144
|
/**
|
|
1145
|
+
* @param {ConfigurationPlatformApplicationValidator.GetInventoryConfigParam} arg
|
|
1146
|
+
* - Arg object
|
|
1147
|
+
*
|
|
1148
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1076
1149
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1077
1150
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
1078
1151
|
* Success response
|
|
@@ -1080,7 +1153,10 @@ class Configuration {
|
|
|
1080
1153
|
* @summary: Get sales channel configuration
|
|
1081
1154
|
* @description: Use this API to fetch configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getInventoryConfig/).
|
|
1082
1155
|
*/
|
|
1083
|
-
async getInventoryConfig(
|
|
1156
|
+
async getInventoryConfig(
|
|
1157
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1158
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1159
|
+
) {
|
|
1084
1160
|
const {
|
|
1085
1161
|
error,
|
|
1086
1162
|
} = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
|
|
@@ -1113,12 +1189,12 @@ class Configuration {
|
|
|
1113
1189
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
|
|
1114
1190
|
query_params,
|
|
1115
1191
|
undefined,
|
|
1116
|
-
|
|
1117
|
-
{
|
|
1192
|
+
requestHeaders,
|
|
1193
|
+
{ responseHeaders }
|
|
1118
1194
|
);
|
|
1119
1195
|
|
|
1120
1196
|
let responseData = response;
|
|
1121
|
-
if (
|
|
1197
|
+
if (responseHeaders) {
|
|
1122
1198
|
responseData = response[0];
|
|
1123
1199
|
}
|
|
1124
1200
|
|
|
@@ -1139,10 +1215,85 @@ class Configuration {
|
|
|
1139
1215
|
return response;
|
|
1140
1216
|
}
|
|
1141
1217
|
|
|
1218
|
+
/**
|
|
1219
|
+
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoreConfigParam} arg
|
|
1220
|
+
* - Arg object
|
|
1221
|
+
*
|
|
1222
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1223
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1224
|
+
* @returns {Promise<ConfigurationPlatformModel.OrderingStoreConfig>} -
|
|
1225
|
+
* Success response
|
|
1226
|
+
* @name getOrderingStoreConfig
|
|
1227
|
+
* @summary: Get ordering store config
|
|
1228
|
+
* @description: Fetch the details of the deployment stores (the selling locations where the application will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoreConfig/).
|
|
1229
|
+
*/
|
|
1230
|
+
async getOrderingStoreConfig(
|
|
1231
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1232
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1233
|
+
) {
|
|
1234
|
+
const {
|
|
1235
|
+
error,
|
|
1236
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoreConfig().validate(
|
|
1237
|
+
{},
|
|
1238
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1239
|
+
);
|
|
1240
|
+
if (error) {
|
|
1241
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1245
|
+
const {
|
|
1246
|
+
error: warrning,
|
|
1247
|
+
} = ConfigurationPlatformApplicationValidator.getOrderingStoreConfig().validate(
|
|
1248
|
+
{},
|
|
1249
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1250
|
+
);
|
|
1251
|
+
if (warrning) {
|
|
1252
|
+
Logger({
|
|
1253
|
+
level: "WARN",
|
|
1254
|
+
message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoreConfig \n ${warrning}`,
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
const query_params = {};
|
|
1259
|
+
|
|
1260
|
+
const response = await PlatformAPIClient.execute(
|
|
1261
|
+
this.config,
|
|
1262
|
+
"get",
|
|
1263
|
+
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
|
|
1264
|
+
query_params,
|
|
1265
|
+
undefined,
|
|
1266
|
+
requestHeaders,
|
|
1267
|
+
{ responseHeaders }
|
|
1268
|
+
);
|
|
1269
|
+
|
|
1270
|
+
let responseData = response;
|
|
1271
|
+
if (responseHeaders) {
|
|
1272
|
+
responseData = response[0];
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
const {
|
|
1276
|
+
error: res_error,
|
|
1277
|
+
} = ConfigurationPlatformModel.OrderingStoreConfig().validate(
|
|
1278
|
+
responseData,
|
|
1279
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1280
|
+
);
|
|
1281
|
+
|
|
1282
|
+
if (res_error) {
|
|
1283
|
+
Logger({
|
|
1284
|
+
level: "WARN",
|
|
1285
|
+
message: `Response Validation Warnnings for platform > Configuration > getOrderingStoreConfig \n ${res_error}`,
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
return response;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1142
1292
|
/**
|
|
1143
1293
|
* @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresByFilterParam} arg
|
|
1144
1294
|
* - Arg object
|
|
1145
1295
|
*
|
|
1296
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1146
1297
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1147
1298
|
* @returns {Promise<ConfigurationPlatformModel.OrderingStores>} - Success response
|
|
1148
1299
|
* @name getOrderingStoresByFilter
|
|
@@ -1150,8 +1301,8 @@ class Configuration {
|
|
|
1150
1301
|
* @description: Use this API to use filters and retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoresByFilter/).
|
|
1151
1302
|
*/
|
|
1152
1303
|
async getOrderingStoresByFilter(
|
|
1153
|
-
{ body, pageNo, pageSize } = {},
|
|
1154
|
-
{
|
|
1304
|
+
{ body, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1305
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1155
1306
|
) {
|
|
1156
1307
|
const {
|
|
1157
1308
|
error,
|
|
@@ -1195,12 +1346,12 @@ class Configuration {
|
|
|
1195
1346
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores/filter`,
|
|
1196
1347
|
query_params,
|
|
1197
1348
|
body,
|
|
1198
|
-
|
|
1199
|
-
{
|
|
1349
|
+
requestHeaders,
|
|
1350
|
+
{ responseHeaders }
|
|
1200
1351
|
);
|
|
1201
1352
|
|
|
1202
1353
|
let responseData = response;
|
|
1203
|
-
if (
|
|
1354
|
+
if (responseHeaders) {
|
|
1204
1355
|
responseData = response[0];
|
|
1205
1356
|
}
|
|
1206
1357
|
|
|
@@ -1266,6 +1417,7 @@ class Configuration {
|
|
|
1266
1417
|
* @param {ConfigurationPlatformApplicationValidator.GetPreviousVersionsParam} arg
|
|
1267
1418
|
* - Arg object
|
|
1268
1419
|
*
|
|
1420
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1269
1421
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1270
1422
|
* @returns {Promise<ConfigurationPlatformModel.BuildVersionHistory>} -
|
|
1271
1423
|
* Success response
|
|
@@ -1274,8 +1426,8 @@ class Configuration {
|
|
|
1274
1426
|
* @description: Fetch version details of the app, this includes the build status, build date, version name, latest version, and a lot more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getPreviousVersions/).
|
|
1275
1427
|
*/
|
|
1276
1428
|
async getPreviousVersions(
|
|
1277
|
-
{ platformType } = {},
|
|
1278
|
-
{
|
|
1429
|
+
{ platformType, requestHeaders } = { requestHeaders: {} },
|
|
1430
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1279
1431
|
) {
|
|
1280
1432
|
const {
|
|
1281
1433
|
error,
|
|
@@ -1313,12 +1465,12 @@ class Configuration {
|
|
|
1313
1465
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/versions`,
|
|
1314
1466
|
query_params,
|
|
1315
1467
|
undefined,
|
|
1316
|
-
|
|
1317
|
-
{
|
|
1468
|
+
requestHeaders,
|
|
1469
|
+
{ responseHeaders }
|
|
1318
1470
|
);
|
|
1319
1471
|
|
|
1320
1472
|
let responseData = response;
|
|
1321
|
-
if (
|
|
1473
|
+
if (responseHeaders) {
|
|
1322
1474
|
responseData = response[0];
|
|
1323
1475
|
}
|
|
1324
1476
|
|
|
@@ -1343,6 +1495,7 @@ class Configuration {
|
|
|
1343
1495
|
* @param {ConfigurationPlatformApplicationValidator.GetStaffOrderingStoresParam} arg
|
|
1344
1496
|
* - Arg object
|
|
1345
1497
|
*
|
|
1498
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1346
1499
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1347
1500
|
* @returns {Promise<ConfigurationPlatformModel.OrderingStoresResponse>} -
|
|
1348
1501
|
* Success response
|
|
@@ -1351,8 +1504,8 @@ class Configuration {
|
|
|
1351
1504
|
* @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getStaffOrderingStores/).
|
|
1352
1505
|
*/
|
|
1353
1506
|
async getStaffOrderingStores(
|
|
1354
|
-
{ pageNo, pageSize, q } = {},
|
|
1355
|
-
{
|
|
1507
|
+
{ pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
|
|
1508
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1356
1509
|
) {
|
|
1357
1510
|
const {
|
|
1358
1511
|
error,
|
|
@@ -1397,12 +1550,12 @@ class Configuration {
|
|
|
1397
1550
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/staff-stores`,
|
|
1398
1551
|
query_params,
|
|
1399
1552
|
undefined,
|
|
1400
|
-
|
|
1401
|
-
{
|
|
1553
|
+
requestHeaders,
|
|
1554
|
+
{ responseHeaders }
|
|
1402
1555
|
);
|
|
1403
1556
|
|
|
1404
1557
|
let responseData = response;
|
|
1405
|
-
if (
|
|
1558
|
+
if (responseHeaders) {
|
|
1406
1559
|
responseData = response[0];
|
|
1407
1560
|
}
|
|
1408
1561
|
|
|
@@ -1468,13 +1621,17 @@ class Configuration {
|
|
|
1468
1621
|
* @param {ConfigurationPlatformApplicationValidator.ModifyAppFeaturesParam} arg
|
|
1469
1622
|
* - Arg object
|
|
1470
1623
|
*
|
|
1624
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1471
1625
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1472
1626
|
* @returns {Promise<ConfigurationPlatformModel.AppFeature>} - Success response
|
|
1473
1627
|
* @name modifyAppFeatures
|
|
1474
1628
|
* @summary: Update features of application
|
|
1475
1629
|
* @description: Update features of application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/modifyAppFeatures/).
|
|
1476
1630
|
*/
|
|
1477
|
-
async modifyAppFeatures(
|
|
1631
|
+
async modifyAppFeatures(
|
|
1632
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1633
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1634
|
+
) {
|
|
1478
1635
|
const {
|
|
1479
1636
|
error,
|
|
1480
1637
|
} = ConfigurationPlatformApplicationValidator.modifyAppFeatures().validate(
|
|
@@ -1511,12 +1668,12 @@ class Configuration {
|
|
|
1511
1668
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
|
|
1512
1669
|
query_params,
|
|
1513
1670
|
body,
|
|
1514
|
-
|
|
1515
|
-
{
|
|
1671
|
+
requestHeaders,
|
|
1672
|
+
{ responseHeaders }
|
|
1516
1673
|
);
|
|
1517
1674
|
|
|
1518
1675
|
let responseData = response;
|
|
1519
|
-
if (
|
|
1676
|
+
if (responseHeaders) {
|
|
1520
1677
|
responseData = response[0];
|
|
1521
1678
|
}
|
|
1522
1679
|
|
|
@@ -1541,6 +1698,7 @@ class Configuration {
|
|
|
1541
1698
|
* @param {ConfigurationPlatformApplicationValidator.PartiallyUpdateInventoryConfigParam} arg
|
|
1542
1699
|
* - Arg object
|
|
1543
1700
|
*
|
|
1701
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1544
1702
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1545
1703
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
1546
1704
|
* Success response
|
|
@@ -1549,8 +1707,8 @@ class Configuration {
|
|
|
1549
1707
|
* @description: Partially update the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/partiallyUpdateInventoryConfig/).
|
|
1550
1708
|
*/
|
|
1551
1709
|
async partiallyUpdateInventoryConfig(
|
|
1552
|
-
{ body } = {},
|
|
1553
|
-
{
|
|
1710
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1711
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1554
1712
|
) {
|
|
1555
1713
|
const {
|
|
1556
1714
|
error,
|
|
@@ -1588,12 +1746,12 @@ class Configuration {
|
|
|
1588
1746
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
|
|
1589
1747
|
query_params,
|
|
1590
1748
|
body,
|
|
1591
|
-
|
|
1592
|
-
{
|
|
1749
|
+
requestHeaders,
|
|
1750
|
+
{ responseHeaders }
|
|
1593
1751
|
);
|
|
1594
1752
|
|
|
1595
1753
|
let responseData = response;
|
|
1596
|
-
if (
|
|
1754
|
+
if (responseHeaders) {
|
|
1597
1755
|
responseData = response[0];
|
|
1598
1756
|
}
|
|
1599
1757
|
|
|
@@ -1618,6 +1776,7 @@ class Configuration {
|
|
|
1618
1776
|
* @param {ConfigurationPlatformApplicationValidator.RemoveDomainByIdParam} arg
|
|
1619
1777
|
* - Arg object
|
|
1620
1778
|
*
|
|
1779
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1621
1780
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1622
1781
|
* @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
|
|
1623
1782
|
* Success response
|
|
@@ -1625,7 +1784,10 @@ class Configuration {
|
|
|
1625
1784
|
* @summary: Remove attached domain from current sales channel
|
|
1626
1785
|
* @description: Delete a domain (secondary or shortlink domain) added to a sales channel. It will disable user's access to website, shared links, and other features associated with this domain. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeDomainById/).
|
|
1627
1786
|
*/
|
|
1628
|
-
async removeDomainById(
|
|
1787
|
+
async removeDomainById(
|
|
1788
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
1789
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1790
|
+
) {
|
|
1629
1791
|
const {
|
|
1630
1792
|
error,
|
|
1631
1793
|
} = ConfigurationPlatformApplicationValidator.removeDomainById().validate(
|
|
@@ -1662,12 +1824,12 @@ class Configuration {
|
|
|
1662
1824
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/${id}`,
|
|
1663
1825
|
query_params,
|
|
1664
1826
|
undefined,
|
|
1665
|
-
|
|
1666
|
-
{
|
|
1827
|
+
requestHeaders,
|
|
1828
|
+
{ responseHeaders }
|
|
1667
1829
|
);
|
|
1668
1830
|
|
|
1669
1831
|
let responseData = response;
|
|
1670
|
-
if (
|
|
1832
|
+
if (responseHeaders) {
|
|
1671
1833
|
responseData = response[0];
|
|
1672
1834
|
}
|
|
1673
1835
|
|
|
@@ -1692,13 +1854,17 @@ class Configuration {
|
|
|
1692
1854
|
* @param {ConfigurationPlatformApplicationValidator.UpdateAppApiTokensParam} arg
|
|
1693
1855
|
* - Arg object
|
|
1694
1856
|
*
|
|
1857
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1695
1858
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1696
1859
|
* @returns {Promise<ConfigurationPlatformModel.TokenResponse>} - Success response
|
|
1697
1860
|
* @name updateAppApiTokens
|
|
1698
1861
|
* @summary: Add or update social tokens for the sales channel
|
|
1699
1862
|
* @description: Use this API to add or edit the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google and Facebook auth. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppApiTokens/).
|
|
1700
1863
|
*/
|
|
1701
|
-
async updateAppApiTokens(
|
|
1864
|
+
async updateAppApiTokens(
|
|
1865
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1866
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1867
|
+
) {
|
|
1702
1868
|
const {
|
|
1703
1869
|
error,
|
|
1704
1870
|
} = ConfigurationPlatformApplicationValidator.updateAppApiTokens().validate(
|
|
@@ -1735,12 +1901,12 @@ class Configuration {
|
|
|
1735
1901
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
|
|
1736
1902
|
query_params,
|
|
1737
1903
|
body,
|
|
1738
|
-
|
|
1739
|
-
{
|
|
1904
|
+
requestHeaders,
|
|
1905
|
+
{ responseHeaders }
|
|
1740
1906
|
);
|
|
1741
1907
|
|
|
1742
1908
|
let responseData = response;
|
|
1743
|
-
if (
|
|
1909
|
+
if (responseHeaders) {
|
|
1744
1910
|
responseData = response[0];
|
|
1745
1911
|
}
|
|
1746
1912
|
|
|
@@ -1765,13 +1931,17 @@ class Configuration {
|
|
|
1765
1931
|
* @param {ConfigurationPlatformApplicationValidator.UpdateAppBasicDetailsParam} arg
|
|
1766
1932
|
* - Arg object
|
|
1767
1933
|
*
|
|
1934
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1768
1935
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1769
1936
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationDetail>} - Success response
|
|
1770
1937
|
* @name updateAppBasicDetails
|
|
1771
1938
|
* @summary: Update sales channel details
|
|
1772
1939
|
* @description: Modify sales channel details like name, description, logo, domain, company ID, and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppBasicDetails/).
|
|
1773
1940
|
*/
|
|
1774
|
-
async updateAppBasicDetails(
|
|
1941
|
+
async updateAppBasicDetails(
|
|
1942
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1943
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1944
|
+
) {
|
|
1775
1945
|
const {
|
|
1776
1946
|
error,
|
|
1777
1947
|
} = ConfigurationPlatformApplicationValidator.updateAppBasicDetails().validate(
|
|
@@ -1808,12 +1978,12 @@ class Configuration {
|
|
|
1808
1978
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
|
|
1809
1979
|
query_params,
|
|
1810
1980
|
body,
|
|
1811
|
-
|
|
1812
|
-
{
|
|
1981
|
+
requestHeaders,
|
|
1982
|
+
{ responseHeaders }
|
|
1813
1983
|
);
|
|
1814
1984
|
|
|
1815
1985
|
let responseData = response;
|
|
1816
|
-
if (
|
|
1986
|
+
if (responseHeaders) {
|
|
1817
1987
|
responseData = response[0];
|
|
1818
1988
|
}
|
|
1819
1989
|
|
|
@@ -1838,6 +2008,7 @@ class Configuration {
|
|
|
1838
2008
|
* @param {ConfigurationPlatformApplicationValidator.UpdateAppContactInfoParam} arg
|
|
1839
2009
|
* - Arg object
|
|
1840
2010
|
*
|
|
2011
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1841
2012
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1842
2013
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInformation>} -
|
|
1843
2014
|
* Success response
|
|
@@ -1845,7 +2016,10 @@ class Configuration {
|
|
|
1845
2016
|
* @summary: Save or update current information of the sales channel
|
|
1846
2017
|
* @description: Modify the social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppContactInfo/).
|
|
1847
2018
|
*/
|
|
1848
|
-
async updateAppContactInfo(
|
|
2019
|
+
async updateAppContactInfo(
|
|
2020
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2021
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2022
|
+
) {
|
|
1849
2023
|
const {
|
|
1850
2024
|
error,
|
|
1851
2025
|
} = ConfigurationPlatformApplicationValidator.updateAppContactInfo().validate(
|
|
@@ -1882,12 +2056,12 @@ class Configuration {
|
|
|
1882
2056
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
|
|
1883
2057
|
query_params,
|
|
1884
2058
|
body,
|
|
1885
|
-
|
|
1886
|
-
{
|
|
2059
|
+
requestHeaders,
|
|
2060
|
+
{ responseHeaders }
|
|
1887
2061
|
);
|
|
1888
2062
|
|
|
1889
2063
|
let responseData = response;
|
|
1890
|
-
if (
|
|
2064
|
+
if (responseHeaders) {
|
|
1891
2065
|
responseData = response[0];
|
|
1892
2066
|
}
|
|
1893
2067
|
|
|
@@ -1912,6 +2086,7 @@ class Configuration {
|
|
|
1912
2086
|
* @param {ConfigurationPlatformApplicationValidator.UpdateAppCurrencyConfigParam} arg
|
|
1913
2087
|
* - Arg object
|
|
1914
2088
|
*
|
|
2089
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1915
2090
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1916
2091
|
* @returns {Promise<ConfigurationPlatformModel.AppSupportedCurrency>} -
|
|
1917
2092
|
* Success response
|
|
@@ -1920,8 +2095,8 @@ class Configuration {
|
|
|
1920
2095
|
* @description: Use this API to add and edit the currencies supported in the application. Initially, INR will be enabled by default. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppCurrencyConfig/).
|
|
1921
2096
|
*/
|
|
1922
2097
|
async updateAppCurrencyConfig(
|
|
1923
|
-
{ body } = {},
|
|
1924
|
-
{
|
|
2098
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2099
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1925
2100
|
) {
|
|
1926
2101
|
const {
|
|
1927
2102
|
error,
|
|
@@ -1959,12 +2134,12 @@ class Configuration {
|
|
|
1959
2134
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
|
|
1960
2135
|
query_params,
|
|
1961
2136
|
body,
|
|
1962
|
-
|
|
1963
|
-
{
|
|
2137
|
+
requestHeaders,
|
|
2138
|
+
{ responseHeaders }
|
|
1964
2139
|
);
|
|
1965
2140
|
|
|
1966
2141
|
let responseData = response;
|
|
1967
|
-
if (
|
|
2142
|
+
if (responseHeaders) {
|
|
1968
2143
|
responseData = response[0];
|
|
1969
2144
|
}
|
|
1970
2145
|
|
|
@@ -1989,13 +2164,17 @@ class Configuration {
|
|
|
1989
2164
|
* @param {ConfigurationPlatformApplicationValidator.UpdateAppFeaturesParam} arg
|
|
1990
2165
|
* - Arg object
|
|
1991
2166
|
*
|
|
2167
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1992
2168
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1993
2169
|
* @returns {Promise<ConfigurationPlatformModel.AppFeature>} - Success response
|
|
1994
2170
|
* @name updateAppFeatures
|
|
1995
2171
|
* @summary: Update the sales channel configuration and features
|
|
1996
2172
|
* @description: Modify the feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppFeatures/).
|
|
1997
2173
|
*/
|
|
1998
|
-
async updateAppFeatures(
|
|
2174
|
+
async updateAppFeatures(
|
|
2175
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2176
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2177
|
+
) {
|
|
1999
2178
|
const {
|
|
2000
2179
|
error,
|
|
2001
2180
|
} = ConfigurationPlatformApplicationValidator.updateAppFeatures().validate(
|
|
@@ -2032,12 +2211,12 @@ class Configuration {
|
|
|
2032
2211
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
|
|
2033
2212
|
query_params,
|
|
2034
2213
|
body,
|
|
2035
|
-
|
|
2036
|
-
{
|
|
2214
|
+
requestHeaders,
|
|
2215
|
+
{ responseHeaders }
|
|
2037
2216
|
);
|
|
2038
2217
|
|
|
2039
2218
|
let responseData = response;
|
|
2040
|
-
if (
|
|
2219
|
+
if (responseHeaders) {
|
|
2041
2220
|
responseData = response[0];
|
|
2042
2221
|
}
|
|
2043
2222
|
|
|
@@ -2062,6 +2241,7 @@ class Configuration {
|
|
|
2062
2241
|
* @param {ConfigurationPlatformApplicationValidator.UpdateBuildConfigParam} arg
|
|
2063
2242
|
* - Arg object
|
|
2064
2243
|
*
|
|
2244
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2065
2245
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2066
2246
|
* @returns {Promise<ConfigurationPlatformModel.MobileAppConfiguration>} -
|
|
2067
2247
|
* Success response
|
|
@@ -2070,8 +2250,8 @@ class Configuration {
|
|
|
2070
2250
|
* @description: Modify the existing build configuration, such as app name, landing page image, splash image used in a mobile build. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateBuildConfig/).
|
|
2071
2251
|
*/
|
|
2072
2252
|
async updateBuildConfig(
|
|
2073
|
-
{ platformType, body } = {},
|
|
2074
|
-
{
|
|
2253
|
+
{ platformType, body, requestHeaders } = { requestHeaders: {} },
|
|
2254
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2075
2255
|
) {
|
|
2076
2256
|
const {
|
|
2077
2257
|
error,
|
|
@@ -2111,12 +2291,12 @@ class Configuration {
|
|
|
2111
2291
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
|
|
2112
2292
|
query_params,
|
|
2113
2293
|
body,
|
|
2114
|
-
|
|
2115
|
-
{
|
|
2294
|
+
requestHeaders,
|
|
2295
|
+
{ responseHeaders }
|
|
2116
2296
|
);
|
|
2117
2297
|
|
|
2118
2298
|
let responseData = response;
|
|
2119
|
-
if (
|
|
2299
|
+
if (responseHeaders) {
|
|
2120
2300
|
responseData = response[0];
|
|
2121
2301
|
}
|
|
2122
2302
|
|
|
@@ -2141,6 +2321,7 @@ class Configuration {
|
|
|
2141
2321
|
* @param {ConfigurationPlatformApplicationValidator.UpdateInventoryConfigParam} arg
|
|
2142
2322
|
* - Arg object
|
|
2143
2323
|
*
|
|
2324
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2144
2325
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2145
2326
|
* @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
|
|
2146
2327
|
* Success response
|
|
@@ -2148,7 +2329,10 @@ class Configuration {
|
|
|
2148
2329
|
* @summary: Update sales channel configuration
|
|
2149
2330
|
* @description: Modify the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateInventoryConfig/).
|
|
2150
2331
|
*/
|
|
2151
|
-
async updateInventoryConfig(
|
|
2332
|
+
async updateInventoryConfig(
|
|
2333
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2334
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2335
|
+
) {
|
|
2152
2336
|
const {
|
|
2153
2337
|
error,
|
|
2154
2338
|
} = ConfigurationPlatformApplicationValidator.updateInventoryConfig().validate(
|
|
@@ -2185,12 +2369,12 @@ class Configuration {
|
|
|
2185
2369
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
|
|
2186
2370
|
query_params,
|
|
2187
2371
|
body,
|
|
2188
|
-
|
|
2189
|
-
{
|
|
2372
|
+
requestHeaders,
|
|
2373
|
+
{ responseHeaders }
|
|
2190
2374
|
);
|
|
2191
2375
|
|
|
2192
2376
|
let responseData = response;
|
|
2193
|
-
if (
|
|
2377
|
+
if (responseHeaders) {
|
|
2194
2378
|
responseData = response[0];
|
|
2195
2379
|
}
|
|
2196
2380
|
|
|
@@ -2215,6 +2399,7 @@ class Configuration {
|
|
|
2215
2399
|
* @param {ConfigurationPlatformApplicationValidator.UpdateOrderingStoreConfigParam} arg
|
|
2216
2400
|
* - Arg object
|
|
2217
2401
|
*
|
|
2402
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2218
2403
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2219
2404
|
* @returns {Promise<ConfigurationPlatformModel.DeploymentMeta>} - Success response
|
|
2220
2405
|
* @name updateOrderingStoreConfig
|
|
@@ -2222,8 +2407,8 @@ class Configuration {
|
|
|
2222
2407
|
* @description: Use this API to edit the details of the deployment stores (the selling locations where the application will be utilised for placing orders) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateOrderingStoreConfig/).
|
|
2223
2408
|
*/
|
|
2224
2409
|
async updateOrderingStoreConfig(
|
|
2225
|
-
{ body } = {},
|
|
2226
|
-
{
|
|
2410
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
2411
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2227
2412
|
) {
|
|
2228
2413
|
const {
|
|
2229
2414
|
error,
|
|
@@ -2261,12 +2446,12 @@ class Configuration {
|
|
|
2261
2446
|
`/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
|
|
2262
2447
|
query_params,
|
|
2263
2448
|
body,
|
|
2264
|
-
|
|
2265
|
-
{
|
|
2449
|
+
requestHeaders,
|
|
2450
|
+
{ responseHeaders }
|
|
2266
2451
|
);
|
|
2267
2452
|
|
|
2268
2453
|
let responseData = response;
|
|
2269
|
-
if (
|
|
2454
|
+
if (responseHeaders) {
|
|
2270
2455
|
responseData = response[0];
|
|
2271
2456
|
}
|
|
2272
2457
|
|