@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -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 +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- 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
|
@@ -50,6 +50,8 @@ class Content {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
+
* @param {ContentApplicationValidator.GetAnnouncementsParam} arg - Arg object.
|
|
54
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
53
55
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
54
56
|
* @returns {Promise<ContentApplicationModel.AnnouncementsResponseSchema>}
|
|
55
57
|
* - Success response
|
|
@@ -58,7 +60,10 @@ class Content {
|
|
|
58
60
|
* @summary: Get live announcements
|
|
59
61
|
* @description: Announcements are useful to highlight a message or information on top of a webpage. Use this API to retrieve live announcements. Get announcements on individual pages or for all pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getAnnouncements/).
|
|
60
62
|
*/
|
|
61
|
-
async getAnnouncements(
|
|
63
|
+
async getAnnouncements(
|
|
64
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
65
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
66
|
+
) {
|
|
62
67
|
const { error } = ContentApplicationValidator.getAnnouncements().validate(
|
|
63
68
|
{},
|
|
64
69
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -94,12 +99,12 @@ class Content {
|
|
|
94
99
|
}),
|
|
95
100
|
query_params,
|
|
96
101
|
undefined,
|
|
97
|
-
xHeaders,
|
|
98
|
-
{
|
|
102
|
+
{ ...xHeaders, ...requestHeaders },
|
|
103
|
+
{ responseHeaders }
|
|
99
104
|
);
|
|
100
105
|
|
|
101
106
|
let responseData = response;
|
|
102
|
-
if (
|
|
107
|
+
if (responseHeaders) {
|
|
103
108
|
responseData = response[0];
|
|
104
109
|
}
|
|
105
110
|
|
|
@@ -122,13 +127,17 @@ class Content {
|
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
129
|
* @param {ContentApplicationValidator.GetBlogParam} arg - Arg object.
|
|
130
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
125
131
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
126
132
|
* @returns {Promise<ContentApplicationModel.BlogSchema>} - Success response
|
|
127
133
|
* @name getBlog
|
|
128
134
|
* @summary: Get a blog
|
|
129
135
|
* @description: Use this API to get the details of a blog using its slug. Details include the title, reading time, publish status, feature image, tags, author, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
|
|
130
136
|
*/
|
|
131
|
-
async getBlog(
|
|
137
|
+
async getBlog(
|
|
138
|
+
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
139
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
140
|
+
) {
|
|
132
141
|
const { error } = ContentApplicationValidator.getBlog().validate(
|
|
133
142
|
{ slug, rootId },
|
|
134
143
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -163,12 +172,12 @@ class Content {
|
|
|
163
172
|
}),
|
|
164
173
|
query_params,
|
|
165
174
|
undefined,
|
|
166
|
-
xHeaders,
|
|
167
|
-
{
|
|
175
|
+
{ ...xHeaders, ...requestHeaders },
|
|
176
|
+
{ responseHeaders }
|
|
168
177
|
);
|
|
169
178
|
|
|
170
179
|
let responseData = response;
|
|
171
|
-
if (
|
|
180
|
+
if (responseHeaders) {
|
|
172
181
|
responseData = response[0];
|
|
173
182
|
}
|
|
174
183
|
|
|
@@ -191,13 +200,17 @@ class Content {
|
|
|
191
200
|
|
|
192
201
|
/**
|
|
193
202
|
* @param {ContentApplicationValidator.GetBlogsParam} arg - Arg object.
|
|
203
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
194
204
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
195
205
|
* @returns {Promise<ContentApplicationModel.BlogGetResponse>} - Success response
|
|
196
206
|
* @name getBlogs
|
|
197
207
|
* @summary: Get a list of blogs
|
|
198
208
|
* @description: Use this API to get all the blogs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
199
209
|
*/
|
|
200
|
-
async getBlogs(
|
|
210
|
+
async getBlogs(
|
|
211
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
212
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
213
|
+
) {
|
|
201
214
|
const { error } = ContentApplicationValidator.getBlogs().validate(
|
|
202
215
|
{ pageNo, pageSize },
|
|
203
216
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -233,12 +246,12 @@ class Content {
|
|
|
233
246
|
}),
|
|
234
247
|
query_params,
|
|
235
248
|
undefined,
|
|
236
|
-
xHeaders,
|
|
237
|
-
{
|
|
249
|
+
{ ...xHeaders, ...requestHeaders },
|
|
250
|
+
{ responseHeaders }
|
|
238
251
|
);
|
|
239
252
|
|
|
240
253
|
let responseData = response;
|
|
241
|
-
if (
|
|
254
|
+
if (responseHeaders) {
|
|
242
255
|
responseData = response[0];
|
|
243
256
|
}
|
|
244
257
|
|
|
@@ -287,13 +300,18 @@ class Content {
|
|
|
287
300
|
}
|
|
288
301
|
|
|
289
302
|
/**
|
|
303
|
+
* @param {ContentApplicationValidator.GetDataLoadersParam} arg - Arg object.
|
|
304
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
290
305
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
291
306
|
* @returns {Promise<ContentApplicationModel.DataLoadersSchema>} - Success response
|
|
292
307
|
* @name getDataLoaders
|
|
293
308
|
* @summary: Get the data loaders associated with an application
|
|
294
309
|
* @description: Use this API to get all selected data loaders of the application in the form of tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getDataLoaders/).
|
|
295
310
|
*/
|
|
296
|
-
async getDataLoaders(
|
|
311
|
+
async getDataLoaders(
|
|
312
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
313
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
314
|
+
) {
|
|
297
315
|
const { error } = ContentApplicationValidator.getDataLoaders().validate(
|
|
298
316
|
{},
|
|
299
317
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -329,12 +347,12 @@ class Content {
|
|
|
329
347
|
}),
|
|
330
348
|
query_params,
|
|
331
349
|
undefined,
|
|
332
|
-
xHeaders,
|
|
333
|
-
{
|
|
350
|
+
{ ...xHeaders, ...requestHeaders },
|
|
351
|
+
{ responseHeaders }
|
|
334
352
|
);
|
|
335
353
|
|
|
336
354
|
let responseData = response;
|
|
337
|
-
if (
|
|
355
|
+
if (responseHeaders) {
|
|
338
356
|
responseData = response[0];
|
|
339
357
|
}
|
|
340
358
|
|
|
@@ -357,13 +375,17 @@ class Content {
|
|
|
357
375
|
|
|
358
376
|
/**
|
|
359
377
|
* @param {ContentApplicationValidator.GetFaqBySlugParam} arg - Arg object.
|
|
378
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
360
379
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
361
380
|
* @returns {Promise<ContentApplicationModel.FaqSchema>} - Success response
|
|
362
381
|
* @name getFaqBySlug
|
|
363
382
|
* @summary: Get an FAQ
|
|
364
383
|
* @description: Use this API to get a particular FAQ by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqBySlug/).
|
|
365
384
|
*/
|
|
366
|
-
async getFaqBySlug(
|
|
385
|
+
async getFaqBySlug(
|
|
386
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
387
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
388
|
+
) {
|
|
367
389
|
const { error } = ContentApplicationValidator.getFaqBySlug().validate(
|
|
368
390
|
{ slug },
|
|
369
391
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -399,12 +421,12 @@ class Content {
|
|
|
399
421
|
}),
|
|
400
422
|
query_params,
|
|
401
423
|
undefined,
|
|
402
|
-
xHeaders,
|
|
403
|
-
{
|
|
424
|
+
{ ...xHeaders, ...requestHeaders },
|
|
425
|
+
{ responseHeaders }
|
|
404
426
|
);
|
|
405
427
|
|
|
406
428
|
let responseData = response;
|
|
407
|
-
if (
|
|
429
|
+
if (responseHeaders) {
|
|
408
430
|
responseData = response[0];
|
|
409
431
|
}
|
|
410
432
|
|
|
@@ -426,6 +448,8 @@ class Content {
|
|
|
426
448
|
}
|
|
427
449
|
|
|
428
450
|
/**
|
|
451
|
+
* @param {ContentApplicationValidator.GetFaqCategoriesParam} arg - Arg object.
|
|
452
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
429
453
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
430
454
|
* @returns {Promise<ContentApplicationModel.GetFaqCategoriesSchema>} -
|
|
431
455
|
* Success response
|
|
@@ -433,7 +457,10 @@ class Content {
|
|
|
433
457
|
* @summary: Get a list of FAQ categories
|
|
434
458
|
* @description: FAQs can be divided into categories. Use this API to get a list of FAQ categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqCategories/).
|
|
435
459
|
*/
|
|
436
|
-
async getFaqCategories(
|
|
460
|
+
async getFaqCategories(
|
|
461
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
462
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
463
|
+
) {
|
|
437
464
|
const { error } = ContentApplicationValidator.getFaqCategories().validate(
|
|
438
465
|
{},
|
|
439
466
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -469,12 +496,12 @@ class Content {
|
|
|
469
496
|
}),
|
|
470
497
|
query_params,
|
|
471
498
|
undefined,
|
|
472
|
-
xHeaders,
|
|
473
|
-
{
|
|
499
|
+
{ ...xHeaders, ...requestHeaders },
|
|
500
|
+
{ responseHeaders }
|
|
474
501
|
);
|
|
475
502
|
|
|
476
503
|
let responseData = response;
|
|
477
|
-
if (
|
|
504
|
+
if (responseHeaders) {
|
|
478
505
|
responseData = response[0];
|
|
479
506
|
}
|
|
480
507
|
|
|
@@ -497,6 +524,7 @@ class Content {
|
|
|
497
524
|
|
|
498
525
|
/**
|
|
499
526
|
* @param {ContentApplicationValidator.GetFaqCategoryBySlugParam} arg - Arg object.
|
|
527
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
500
528
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
501
529
|
* @returns {Promise<ContentApplicationModel.GetFaqCategoryBySlugSchema>} -
|
|
502
530
|
* Success response
|
|
@@ -504,7 +532,10 @@ class Content {
|
|
|
504
532
|
* @summary: Get the FAQ category
|
|
505
533
|
* @description: FAQs can be divided into categories. Use this API to get the category to which an FAQ belongs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqCategoryBySlug/).
|
|
506
534
|
*/
|
|
507
|
-
async getFaqCategoryBySlug(
|
|
535
|
+
async getFaqCategoryBySlug(
|
|
536
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
537
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
538
|
+
) {
|
|
508
539
|
const {
|
|
509
540
|
error,
|
|
510
541
|
} = ContentApplicationValidator.getFaqCategoryBySlug().validate(
|
|
@@ -542,12 +573,12 @@ class Content {
|
|
|
542
573
|
}),
|
|
543
574
|
query_params,
|
|
544
575
|
undefined,
|
|
545
|
-
xHeaders,
|
|
546
|
-
{
|
|
576
|
+
{ ...xHeaders, ...requestHeaders },
|
|
577
|
+
{ responseHeaders }
|
|
547
578
|
);
|
|
548
579
|
|
|
549
580
|
let responseData = response;
|
|
550
|
-
if (
|
|
581
|
+
if (responseHeaders) {
|
|
551
582
|
responseData = response[0];
|
|
552
583
|
}
|
|
553
584
|
|
|
@@ -569,13 +600,18 @@ class Content {
|
|
|
569
600
|
}
|
|
570
601
|
|
|
571
602
|
/**
|
|
603
|
+
* @param {ContentApplicationValidator.GetFaqsParam} arg - Arg object.
|
|
604
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
572
605
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
573
606
|
* @returns {Promise<ContentApplicationModel.FaqResponseSchema>} - Success response
|
|
574
607
|
* @name getFaqs
|
|
575
608
|
* @summary: Get a list of FAQs
|
|
576
609
|
* @description: Use this API to get a list of frequently asked questions. Users will benefit from it when facing any issue with the website. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqs/).
|
|
577
610
|
*/
|
|
578
|
-
async getFaqs(
|
|
611
|
+
async getFaqs(
|
|
612
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
613
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
614
|
+
) {
|
|
579
615
|
const { error } = ContentApplicationValidator.getFaqs().validate(
|
|
580
616
|
{},
|
|
581
617
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -609,12 +645,12 @@ class Content {
|
|
|
609
645
|
}),
|
|
610
646
|
query_params,
|
|
611
647
|
undefined,
|
|
612
|
-
xHeaders,
|
|
613
|
-
{
|
|
648
|
+
{ ...xHeaders, ...requestHeaders },
|
|
649
|
+
{ responseHeaders }
|
|
614
650
|
);
|
|
615
651
|
|
|
616
652
|
let responseData = response;
|
|
617
|
-
if (
|
|
653
|
+
if (responseHeaders) {
|
|
618
654
|
responseData = response[0];
|
|
619
655
|
}
|
|
620
656
|
|
|
@@ -637,13 +673,17 @@ class Content {
|
|
|
637
673
|
|
|
638
674
|
/**
|
|
639
675
|
* @param {ContentApplicationValidator.GetFaqsByCategorySlugParam} arg - Arg object.
|
|
676
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
640
677
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
641
678
|
* @returns {Promise<ContentApplicationModel.GetFaqSchema>} - Success response
|
|
642
679
|
* @name getFaqsByCategorySlug
|
|
643
680
|
* @summary: Get FAQs using the slug of FAQ category
|
|
644
681
|
* @description: FAQs can be divided into categories. Use this API to get all the FAQs belonging to a category by using the category slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getFaqsByCategorySlug/).
|
|
645
682
|
*/
|
|
646
|
-
async getFaqsByCategorySlug(
|
|
683
|
+
async getFaqsByCategorySlug(
|
|
684
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
685
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
686
|
+
) {
|
|
647
687
|
const {
|
|
648
688
|
error,
|
|
649
689
|
} = ContentApplicationValidator.getFaqsByCategorySlug().validate(
|
|
@@ -681,12 +721,12 @@ class Content {
|
|
|
681
721
|
}),
|
|
682
722
|
query_params,
|
|
683
723
|
undefined,
|
|
684
|
-
xHeaders,
|
|
685
|
-
{
|
|
724
|
+
{ ...xHeaders, ...requestHeaders },
|
|
725
|
+
{ responseHeaders }
|
|
686
726
|
);
|
|
687
727
|
|
|
688
728
|
let responseData = response;
|
|
689
|
-
if (
|
|
729
|
+
if (responseHeaders) {
|
|
690
730
|
responseData = response[0];
|
|
691
731
|
}
|
|
692
732
|
|
|
@@ -708,13 +748,18 @@ class Content {
|
|
|
708
748
|
}
|
|
709
749
|
|
|
710
750
|
/**
|
|
751
|
+
* @param {ContentApplicationValidator.GetLandingPageParam} arg - Arg object.
|
|
752
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
711
753
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
712
754
|
* @returns {Promise<ContentApplicationModel.LandingPageSchema>} - Success response
|
|
713
755
|
* @name getLandingPage
|
|
714
756
|
* @summary: Get the landing page
|
|
715
757
|
* @description: Landing page is the first page that a prospect lands upon while visiting a website. Use this API to fetch the details of a landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLandingPage/).
|
|
716
758
|
*/
|
|
717
|
-
async getLandingPage(
|
|
759
|
+
async getLandingPage(
|
|
760
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
761
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
762
|
+
) {
|
|
718
763
|
const { error } = ContentApplicationValidator.getLandingPage().validate(
|
|
719
764
|
{},
|
|
720
765
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -750,12 +795,12 @@ class Content {
|
|
|
750
795
|
}),
|
|
751
796
|
query_params,
|
|
752
797
|
undefined,
|
|
753
|
-
xHeaders,
|
|
754
|
-
{
|
|
798
|
+
{ ...xHeaders, ...requestHeaders },
|
|
799
|
+
{ responseHeaders }
|
|
755
800
|
);
|
|
756
801
|
|
|
757
802
|
let responseData = response;
|
|
758
|
-
if (
|
|
803
|
+
if (responseHeaders) {
|
|
759
804
|
responseData = response[0];
|
|
760
805
|
}
|
|
761
806
|
|
|
@@ -777,13 +822,18 @@ class Content {
|
|
|
777
822
|
}
|
|
778
823
|
|
|
779
824
|
/**
|
|
825
|
+
* @param {ContentApplicationValidator.GetLegalInformationParam} arg - Arg object.
|
|
826
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
780
827
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
781
828
|
* @returns {Promise<ContentApplicationModel.ApplicationLegal>} - Success response
|
|
782
829
|
* @name getLegalInformation
|
|
783
830
|
* @summary: Get legal information
|
|
784
831
|
* @description: Use this API to get the legal information of an application, which includes Privacy Policy, Terms and Conditions, Shipping Policy and FAQs regarding the usage of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLegalInformation/).
|
|
785
832
|
*/
|
|
786
|
-
async getLegalInformation(
|
|
833
|
+
async getLegalInformation(
|
|
834
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
835
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
836
|
+
) {
|
|
787
837
|
const {
|
|
788
838
|
error,
|
|
789
839
|
} = ContentApplicationValidator.getLegalInformation().validate(
|
|
@@ -821,12 +871,12 @@ class Content {
|
|
|
821
871
|
}),
|
|
822
872
|
query_params,
|
|
823
873
|
undefined,
|
|
824
|
-
xHeaders,
|
|
825
|
-
{
|
|
874
|
+
{ ...xHeaders, ...requestHeaders },
|
|
875
|
+
{ responseHeaders }
|
|
826
876
|
);
|
|
827
877
|
|
|
828
878
|
let responseData = response;
|
|
829
|
-
if (
|
|
879
|
+
if (responseHeaders) {
|
|
830
880
|
responseData = response[0];
|
|
831
881
|
}
|
|
832
882
|
|
|
@@ -849,16 +899,17 @@ class Content {
|
|
|
849
899
|
|
|
850
900
|
/**
|
|
851
901
|
* @param {ContentApplicationValidator.GetNavigationsParam} arg - Arg object.
|
|
902
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
852
903
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
853
904
|
* @returns {Promise<ContentApplicationModel.NavigationGetResponse>} -
|
|
854
905
|
* Success response
|
|
855
906
|
* @name getNavigations
|
|
856
907
|
* @summary: Get the navigation
|
|
857
|
-
* @description: Use this API to fetch the navigations details which includes the items of the navigation
|
|
908
|
+
* @description: Use this API to fetch the navigations details which includes the items of the navigation panel. It also shows the links and sub-navigations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
|
|
858
909
|
*/
|
|
859
910
|
async getNavigations(
|
|
860
|
-
{ pageNo, pageSize } = {},
|
|
861
|
-
{
|
|
911
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
912
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
862
913
|
) {
|
|
863
914
|
const { error } = ContentApplicationValidator.getNavigations().validate(
|
|
864
915
|
{ pageNo, pageSize },
|
|
@@ -897,12 +948,12 @@ class Content {
|
|
|
897
948
|
}),
|
|
898
949
|
query_params,
|
|
899
950
|
undefined,
|
|
900
|
-
xHeaders,
|
|
901
|
-
{
|
|
951
|
+
{ ...xHeaders, ...requestHeaders },
|
|
952
|
+
{ responseHeaders }
|
|
902
953
|
);
|
|
903
954
|
|
|
904
955
|
let responseData = response;
|
|
905
|
-
if (
|
|
956
|
+
if (responseHeaders) {
|
|
906
957
|
responseData = response[0];
|
|
907
958
|
}
|
|
908
959
|
|
|
@@ -928,7 +979,7 @@ class Content {
|
|
|
928
979
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
929
980
|
* @returns {Paginator<ContentApplicationModel.NavigationGetResponse>}
|
|
930
981
|
* @summary: Get the navigation
|
|
931
|
-
* @description: Use this API to fetch the navigations details which includes the items of the navigation
|
|
982
|
+
* @description: Use this API to fetch the navigations details which includes the items of the navigation panel. It also shows the links and sub-navigations.
|
|
932
983
|
*/
|
|
933
984
|
getNavigationsPaginator({ pageSize } = {}) {
|
|
934
985
|
const paginator = new Paginator();
|
|
@@ -952,13 +1003,17 @@ class Content {
|
|
|
952
1003
|
|
|
953
1004
|
/**
|
|
954
1005
|
* @param {ContentApplicationValidator.GetPageParam} arg - Arg object.
|
|
1006
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
955
1007
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
956
1008
|
* @returns {Promise<ContentApplicationModel.PageSchema>} - Success response
|
|
957
1009
|
* @name getPage
|
|
958
1010
|
* @summary: Get a page
|
|
959
1011
|
* @description: Use this API to get the details of a page using its slug. Details include the title, seo, publish status, feature image, tags, meta, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPage/).
|
|
960
1012
|
*/
|
|
961
|
-
async getPage(
|
|
1013
|
+
async getPage(
|
|
1014
|
+
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
1015
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1016
|
+
) {
|
|
962
1017
|
const { error } = ContentApplicationValidator.getPage().validate(
|
|
963
1018
|
{ slug, rootId },
|
|
964
1019
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -993,12 +1048,12 @@ class Content {
|
|
|
993
1048
|
}),
|
|
994
1049
|
query_params,
|
|
995
1050
|
undefined,
|
|
996
|
-
xHeaders,
|
|
997
|
-
{
|
|
1051
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1052
|
+
{ responseHeaders }
|
|
998
1053
|
);
|
|
999
1054
|
|
|
1000
1055
|
let responseData = response;
|
|
1001
|
-
if (
|
|
1056
|
+
if (responseHeaders) {
|
|
1002
1057
|
responseData = response[0];
|
|
1003
1058
|
}
|
|
1004
1059
|
|
|
@@ -1021,13 +1076,17 @@ class Content {
|
|
|
1021
1076
|
|
|
1022
1077
|
/**
|
|
1023
1078
|
* @param {ContentApplicationValidator.GetPagesParam} arg - Arg object.
|
|
1079
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1024
1080
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1025
1081
|
* @returns {Promise<ContentApplicationModel.PageGetResponse>} - Success response
|
|
1026
1082
|
* @name getPages
|
|
1027
1083
|
* @summary: Get all pages
|
|
1028
1084
|
* @description: Use this API to get a list of pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
1029
1085
|
*/
|
|
1030
|
-
async getPages(
|
|
1086
|
+
async getPages(
|
|
1087
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1088
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1089
|
+
) {
|
|
1031
1090
|
const { error } = ContentApplicationValidator.getPages().validate(
|
|
1032
1091
|
{ pageNo, pageSize },
|
|
1033
1092
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -1063,12 +1122,12 @@ class Content {
|
|
|
1063
1122
|
}),
|
|
1064
1123
|
query_params,
|
|
1065
1124
|
undefined,
|
|
1066
|
-
xHeaders,
|
|
1067
|
-
{
|
|
1125
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1126
|
+
{ responseHeaders }
|
|
1068
1127
|
);
|
|
1069
1128
|
|
|
1070
1129
|
let responseData = response;
|
|
1071
|
-
if (
|
|
1130
|
+
if (responseHeaders) {
|
|
1072
1131
|
responseData = response[0];
|
|
1073
1132
|
}
|
|
1074
1133
|
|
|
@@ -1117,13 +1176,18 @@ class Content {
|
|
|
1117
1176
|
}
|
|
1118
1177
|
|
|
1119
1178
|
/**
|
|
1179
|
+
* @param {ContentApplicationValidator.GetSEOConfigurationParam} arg - Arg object.
|
|
1180
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1120
1181
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1121
1182
|
* @returns {Promise<ContentApplicationModel.SeoComponent>} - Success response
|
|
1122
1183
|
* @name getSEOConfiguration
|
|
1123
1184
|
* @summary: Get the SEO of an application
|
|
1124
1185
|
* @description: Use this API to get the SEO details of an application, which includes a robot.txt, meta-tags and sitemap. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOConfiguration/).
|
|
1125
1186
|
*/
|
|
1126
|
-
async getSEOConfiguration(
|
|
1187
|
+
async getSEOConfiguration(
|
|
1188
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1189
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1190
|
+
) {
|
|
1127
1191
|
const {
|
|
1128
1192
|
error,
|
|
1129
1193
|
} = ContentApplicationValidator.getSEOConfiguration().validate(
|
|
@@ -1161,12 +1225,12 @@ class Content {
|
|
|
1161
1225
|
}),
|
|
1162
1226
|
query_params,
|
|
1163
1227
|
undefined,
|
|
1164
|
-
xHeaders,
|
|
1165
|
-
{
|
|
1228
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1229
|
+
{ responseHeaders }
|
|
1166
1230
|
);
|
|
1167
1231
|
|
|
1168
1232
|
let responseData = response;
|
|
1169
|
-
if (
|
|
1233
|
+
if (responseHeaders) {
|
|
1170
1234
|
responseData = response[0];
|
|
1171
1235
|
}
|
|
1172
1236
|
|
|
@@ -1189,13 +1253,17 @@ class Content {
|
|
|
1189
1253
|
|
|
1190
1254
|
/**
|
|
1191
1255
|
* @param {ContentApplicationValidator.GetSlideshowParam} arg - Arg object.
|
|
1256
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1192
1257
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1193
1258
|
* @returns {Promise<ContentApplicationModel.SlideshowSchema>} - Success response
|
|
1194
1259
|
* @name getSlideshow
|
|
1195
1260
|
* @summary: Get a slideshow
|
|
1196
1261
|
* @description: A slideshow is a group of images, videos or a combination of both that are shown on the website in the form of slides. Use this API to fetch a slideshow using its `slug`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshow/).
|
|
1197
1262
|
*/
|
|
1198
|
-
async getSlideshow(
|
|
1263
|
+
async getSlideshow(
|
|
1264
|
+
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
1265
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1266
|
+
) {
|
|
1199
1267
|
const { error } = ContentApplicationValidator.getSlideshow().validate(
|
|
1200
1268
|
{ slug },
|
|
1201
1269
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -1231,12 +1299,12 @@ class Content {
|
|
|
1231
1299
|
}),
|
|
1232
1300
|
query_params,
|
|
1233
1301
|
undefined,
|
|
1234
|
-
xHeaders,
|
|
1235
|
-
{
|
|
1302
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1303
|
+
{ responseHeaders }
|
|
1236
1304
|
);
|
|
1237
1305
|
|
|
1238
1306
|
let responseData = response;
|
|
1239
|
-
if (
|
|
1307
|
+
if (responseHeaders) {
|
|
1240
1308
|
responseData = response[0];
|
|
1241
1309
|
}
|
|
1242
1310
|
|
|
@@ -1259,6 +1327,7 @@ class Content {
|
|
|
1259
1327
|
|
|
1260
1328
|
/**
|
|
1261
1329
|
* @param {ContentApplicationValidator.GetSlideshowsParam} arg - Arg object.
|
|
1330
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1262
1331
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1263
1332
|
* @returns {Promise<ContentApplicationModel.SlideshowGetResponse>} - Success response
|
|
1264
1333
|
* @name getSlideshows
|
|
@@ -1266,8 +1335,8 @@ class Content {
|
|
|
1266
1335
|
* @description: Use this API to get a list of slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
|
|
1267
1336
|
*/
|
|
1268
1337
|
async getSlideshows(
|
|
1269
|
-
{ pageNo, pageSize } = {},
|
|
1270
|
-
{
|
|
1338
|
+
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1339
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1271
1340
|
) {
|
|
1272
1341
|
const { error } = ContentApplicationValidator.getSlideshows().validate(
|
|
1273
1342
|
{ pageNo, pageSize },
|
|
@@ -1306,12 +1375,12 @@ class Content {
|
|
|
1306
1375
|
}),
|
|
1307
1376
|
query_params,
|
|
1308
1377
|
undefined,
|
|
1309
|
-
xHeaders,
|
|
1310
|
-
{
|
|
1378
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1379
|
+
{ responseHeaders }
|
|
1311
1380
|
);
|
|
1312
1381
|
|
|
1313
1382
|
let responseData = response;
|
|
1314
|
-
if (
|
|
1383
|
+
if (responseHeaders) {
|
|
1315
1384
|
responseData = response[0];
|
|
1316
1385
|
}
|
|
1317
1386
|
|
|
@@ -1360,13 +1429,18 @@ class Content {
|
|
|
1360
1429
|
}
|
|
1361
1430
|
|
|
1362
1431
|
/**
|
|
1432
|
+
* @param {ContentApplicationValidator.GetSupportInformationParam} arg - Arg object.
|
|
1433
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1363
1434
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1364
1435
|
* @returns {Promise<ContentApplicationModel.Support>} - Success response
|
|
1365
1436
|
* @name getSupportInformation
|
|
1366
1437
|
* @summary: Get the support information
|
|
1367
1438
|
* @description: Use this API to get contact details for customer support including emails and phone numbers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSupportInformation/).
|
|
1368
1439
|
*/
|
|
1369
|
-
async getSupportInformation(
|
|
1440
|
+
async getSupportInformation(
|
|
1441
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1442
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1443
|
+
) {
|
|
1370
1444
|
const {
|
|
1371
1445
|
error,
|
|
1372
1446
|
} = ContentApplicationValidator.getSupportInformation().validate(
|
|
@@ -1404,12 +1478,12 @@ class Content {
|
|
|
1404
1478
|
}),
|
|
1405
1479
|
query_params,
|
|
1406
1480
|
undefined,
|
|
1407
|
-
xHeaders,
|
|
1408
|
-
{
|
|
1481
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1482
|
+
{ responseHeaders }
|
|
1409
1483
|
);
|
|
1410
1484
|
|
|
1411
1485
|
let responseData = response;
|
|
1412
|
-
if (
|
|
1486
|
+
if (responseHeaders) {
|
|
1413
1487
|
responseData = response[0];
|
|
1414
1488
|
}
|
|
1415
1489
|
|
|
@@ -1431,13 +1505,18 @@ class Content {
|
|
|
1431
1505
|
}
|
|
1432
1506
|
|
|
1433
1507
|
/**
|
|
1508
|
+
* @param {ContentApplicationValidator.GetTagsParam} arg - Arg object.
|
|
1509
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1434
1510
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1435
1511
|
* @returns {Promise<ContentApplicationModel.TagsSchema>} - Success response
|
|
1436
1512
|
* @name getTags
|
|
1437
1513
|
* @summary: Get the tags associated with an application
|
|
1438
1514
|
* @description: Use this API to get all the CSS and JS injected in the application in the form of tags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getTags/).
|
|
1439
1515
|
*/
|
|
1440
|
-
async getTags(
|
|
1516
|
+
async getTags(
|
|
1517
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1518
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1519
|
+
) {
|
|
1441
1520
|
const { error } = ContentApplicationValidator.getTags().validate(
|
|
1442
1521
|
{},
|
|
1443
1522
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -1471,12 +1550,12 @@ class Content {
|
|
|
1471
1550
|
}),
|
|
1472
1551
|
query_params,
|
|
1473
1552
|
undefined,
|
|
1474
|
-
xHeaders,
|
|
1475
|
-
{
|
|
1553
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1554
|
+
{ responseHeaders }
|
|
1476
1555
|
);
|
|
1477
1556
|
|
|
1478
1557
|
let responseData = response;
|
|
1479
|
-
if (
|
|
1558
|
+
if (responseHeaders) {
|
|
1480
1559
|
responseData = response[0];
|
|
1481
1560
|
}
|
|
1482
1561
|
|