@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.
Files changed (262) hide show
  1. package/README.md +44 -7
  2. package/package.json +1 -2
  3. package/sdk/application/ApplicationAPIClient.d.ts +3 -3
  4. package/sdk/application/ApplicationAPIClient.js +6 -4
  5. package/sdk/application/ApplicationClient.d.ts +2 -3
  6. package/sdk/application/ApplicationClient.js +1 -45
  7. package/sdk/application/ApplicationConfig.d.ts +46 -6
  8. package/sdk/application/ApplicationConfig.js +15 -16
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
  10. package/sdk/application/Cart/CartApplicationClient.js +225 -134
  11. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +4 -4
  13. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
  14. package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
  15. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
  16. package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
  18. package/sdk/application/Common/CommonApplicationClient.js +13 -11
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
  20. package/sdk/application/Common/CommonApplicationModel.js +2 -58
  21. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
  22. package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
  23. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
  24. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
  27. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
  28. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
  29. package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
  30. package/sdk/application/Content/ContentApplicationClient.js +159 -80
  31. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
  32. package/sdk/application/Content/ContentApplicationModel.js +11 -763
  33. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
  34. package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
  35. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
  36. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
  38. package/sdk/application/Lead/LeadApplicationClient.js +50 -31
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
  40. package/sdk/application/Lead/LeadApplicationModel.js +21 -481
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
  44. package/sdk/application/Order/OrderApplicationClient.js +88 -56
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
  46. package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
  48. package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
  49. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
  50. package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
  51. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
  52. package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
  53. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
  54. package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
  55. package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
  56. package/sdk/application/Share/ShareApplicationClient.js +51 -31
  57. package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
  58. package/sdk/application/Share/ShareApplicationModel.js +0 -38
  59. package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
  60. package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
  61. package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
  62. package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
  63. package/sdk/application/User/UserApplicationClient.d.ts +74 -35
  64. package/sdk/application/User/UserApplicationClient.js +252 -161
  65. package/sdk/application/User/UserApplicationModel.d.ts +3 -401
  66. package/sdk/application/User/UserApplicationModel.js +2 -490
  67. package/sdk/common/AxiosHelper.js +1 -2
  68. package/sdk/common/FDKError.d.ts +3 -0
  69. package/sdk/common/FDKError.js +8 -0
  70. package/sdk/common/utils.d.ts +3 -0
  71. package/sdk/common/utils.js +29 -0
  72. package/sdk/partner/PartnerAPIClient.d.ts +5 -4
  73. package/sdk/partner/PartnerAPIClient.js +7 -4
  74. package/sdk/partner/PartnerClient.d.ts +2 -0
  75. package/sdk/partner/PartnerClient.js +3 -0
  76. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  77. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  78. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  79. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  80. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  81. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  82. package/sdk/partner/index.d.ts +3 -1
  83. package/sdk/partner/index.js +3 -1
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
  87. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
  88. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
  90. package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
  91. package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
  92. package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
  93. package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
  94. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
  95. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
  96. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
  97. package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
  98. package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
  99. package/sdk/platform/Cart/CartPlatformModel.js +104 -54
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
  108. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
  109. package/sdk/platform/Common/CommonPlatformClient.js +13 -11
  110. package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
  111. package/sdk/platform/Common/CommonPlatformModel.js +23 -57
  112. package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
  113. package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
  132. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
  134. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
  137. package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
  139. package/sdk/platform/Content/ContentPlatformModel.js +8 -231
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
  144. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
  145. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
  148. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
  150. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
  152. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
  155. package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
  156. package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
  157. package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
  158. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
  159. package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
  160. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
  161. package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
  162. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
  163. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
  164. package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
  165. package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
  166. package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
  167. package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
  168. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
  169. package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
  170. package/sdk/platform/OAuthClient.js +6 -2
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
  173. package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
  174. package/sdk/platform/Order/OrderPlatformClient.js +738 -205
  175. package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
  176. package/sdk/platform/Order/OrderPlatformModel.js +225 -2
  177. package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
  178. package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
  179. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
  180. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
  181. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
  182. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
  193. package/sdk/platform/PlatformAPIClient.d.ts +3 -3
  194. package/sdk/platform/PlatformAPIClient.js +2 -2
  195. package/sdk/platform/PlatformClient.d.ts +2 -2
  196. package/sdk/platform/PlatformClient.js +4 -4
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
  199. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
  200. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
  209. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
  210. package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
  211. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
  212. package/sdk/platform/Share/SharePlatformModel.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
  214. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
  215. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
  216. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
  217. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  218. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  219. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
  220. package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
  221. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  222. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
  227. package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
  228. package/sdk/platform/User/UserPlatformModel.js +3 -899
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
  239. package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
  240. package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  242. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  243. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  244. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  245. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  246. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  247. package/sdk/public/PublicAPIClient.d.ts +14 -1
  248. package/sdk/public/PublicAPIClient.js +7 -1
  249. package/sdk/public/PublicClient.d.ts +2 -0
  250. package/sdk/public/PublicClient.js +4 -0
  251. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
  252. package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
  253. package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
  254. package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
  255. package/sdk/public/index.d.ts +1 -0
  256. package/sdk/public/index.js +2 -0
  257. package/sdk/application/ApplicationModels.d.ts +0 -48
  258. package/sdk/application/ApplicationModels.js +0 -38
  259. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
  260. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
  261. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
  262. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
@@ -14,6 +14,7 @@ class Content {
14
14
 
15
15
  /**
16
16
  * @param {ContentPlatformApplicationValidator.AddDataLoaderParam} arg - Arg object
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
17
18
  * @param {import("../PlatformAPIClient").Options} - Options
18
19
  * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
19
20
  * Success response
@@ -21,7 +22,10 @@ class Content {
21
22
  * @summary: Adds a data loader
22
23
  * @description: Use this API to add data loader. This includes the data loader name, operationId, service name and its type (url/function) with corresponding value. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addDataLoader/).
23
24
  */
24
- async addDataLoader({ body } = {}, { headers } = { headers: false }) {
25
+ async addDataLoader(
26
+ { body, requestHeaders } = { requestHeaders: {} },
27
+ { responseHeaders } = { responseHeaders: false }
28
+ ) {
25
29
  const {
26
30
  error,
27
31
  } = ContentPlatformApplicationValidator.addDataLoader().validate(
@@ -58,12 +62,12 @@ class Content {
58
62
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader`,
59
63
  query_params,
60
64
  body,
61
- undefined,
62
- { headers }
65
+ requestHeaders,
66
+ { responseHeaders }
63
67
  );
64
68
 
65
69
  let responseData = response;
66
- if (headers) {
70
+ if (responseHeaders) {
67
71
  responseData = response[0];
68
72
  }
69
73
 
@@ -86,13 +90,17 @@ class Content {
86
90
 
87
91
  /**
88
92
  * @param {ContentPlatformApplicationValidator.AddFaqParam} arg - Arg object
93
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
89
94
  * @param {import("../PlatformAPIClient").Options} - Options
90
95
  * @returns {Promise<ContentPlatformModel.CreateFaqResponseSchema>} - Success response
91
96
  * @name addFaq
92
97
  * @summary: Create an FAQ
93
98
  * @description: FAQs help users to solve an issue or know more about a process. Use this API to create an FAQ for a given FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addFaq/).
94
99
  */
95
- async addFaq({ categoryId, body } = {}, { headers } = { headers: false }) {
100
+ async addFaq(
101
+ { categoryId, body, requestHeaders } = { requestHeaders: {} },
102
+ { responseHeaders } = { responseHeaders: false }
103
+ ) {
96
104
  const { error } = ContentPlatformApplicationValidator.addFaq().validate(
97
105
  {
98
106
  categoryId,
@@ -129,12 +137,12 @@ class Content {
129
137
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${categoryId}/faq`,
130
138
  query_params,
131
139
  body,
132
- undefined,
133
- { headers }
140
+ requestHeaders,
141
+ { responseHeaders }
134
142
  );
135
143
 
136
144
  let responseData = response;
137
- if (headers) {
145
+ if (responseHeaders) {
138
146
  responseData = response[0];
139
147
  }
140
148
 
@@ -157,13 +165,17 @@ class Content {
157
165
 
158
166
  /**
159
167
  * @param {ContentPlatformApplicationValidator.AddInjectableTagParam} arg - Arg object
168
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
160
169
  * @param {import("../PlatformAPIClient").Options} - Options
161
170
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
162
171
  * @name addInjectableTag
163
172
  * @summary: Add a tag
164
173
  * @description: CSS and JS can be injected in the application (website) with the help of tags. Use this API to create such tags by entering the tag name, tag type (css/js), url and position of the tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addInjectableTag/).
165
174
  */
166
- async addInjectableTag({ body } = {}, { headers } = { headers: false }) {
175
+ async addInjectableTag(
176
+ { body, requestHeaders } = { requestHeaders: {} },
177
+ { responseHeaders } = { responseHeaders: false }
178
+ ) {
167
179
  const {
168
180
  error,
169
181
  } = ContentPlatformApplicationValidator.addInjectableTag().validate(
@@ -200,12 +212,12 @@ class Content {
200
212
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/add`,
201
213
  query_params,
202
214
  body,
203
- undefined,
204
- { headers }
215
+ requestHeaders,
216
+ { responseHeaders }
205
217
  );
206
218
 
207
219
  let responseData = response;
208
- if (headers) {
220
+ if (responseHeaders) {
209
221
  responseData = response[0];
210
222
  }
211
223
 
@@ -230,6 +242,7 @@ class Content {
230
242
  * @param {ContentPlatformApplicationValidator.AddPathRedirectionRulesParam} arg
231
243
  * - Arg object
232
244
  *
245
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
233
246
  * @param {import("../PlatformAPIClient").Options} - Options
234
247
  * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
235
248
  * @name addPathRedirectionRules
@@ -237,8 +250,8 @@ class Content {
237
250
  * @description: Use this API to add redirection rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/addPathRedirectionRules/).
238
251
  */
239
252
  async addPathRedirectionRules(
240
- { body } = {},
241
- { headers } = { headers: false }
253
+ { body, requestHeaders } = { requestHeaders: {} },
254
+ { responseHeaders } = { responseHeaders: false }
242
255
  ) {
243
256
  const {
244
257
  error,
@@ -276,12 +289,12 @@ class Content {
276
289
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/path-mappings`,
277
290
  query_params,
278
291
  body,
279
- undefined,
280
- { headers }
292
+ requestHeaders,
293
+ { responseHeaders }
281
294
  );
282
295
 
283
296
  let responseData = response;
284
- if (headers) {
297
+ if (responseHeaders) {
285
298
  responseData = response[0];
286
299
  }
287
300
 
@@ -306,6 +319,7 @@ class Content {
306
319
  * @param {ContentPlatformApplicationValidator.CreateAnnouncementParam} arg
307
320
  * - Arg object
308
321
  *
322
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
309
323
  * @param {import("../PlatformAPIClient").Options} - Options
310
324
  * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
311
325
  * Success response
@@ -313,7 +327,10 @@ class Content {
313
327
  * @summary: Create an announcement
314
328
  * @description: Announcements are useful to highlight a message or information on top of a webpage. Use this API to create an announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createAnnouncement/).
315
329
  */
316
- async createAnnouncement({ body } = {}, { headers } = { headers: false }) {
330
+ async createAnnouncement(
331
+ { body, requestHeaders } = { requestHeaders: {} },
332
+ { responseHeaders } = { responseHeaders: false }
333
+ ) {
317
334
  const {
318
335
  error,
319
336
  } = ContentPlatformApplicationValidator.createAnnouncement().validate(
@@ -350,12 +367,12 @@ class Content {
350
367
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements`,
351
368
  query_params,
352
369
  body,
353
- undefined,
354
- { headers }
370
+ requestHeaders,
371
+ { responseHeaders }
355
372
  );
356
373
 
357
374
  let responseData = response;
358
- if (headers) {
375
+ if (responseHeaders) {
359
376
  responseData = response[0];
360
377
  }
361
378
 
@@ -378,13 +395,17 @@ class Content {
378
395
 
379
396
  /**
380
397
  * @param {ContentPlatformApplicationValidator.CreateBlogParam} arg - Arg object
398
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
381
399
  * @param {import("../PlatformAPIClient").Options} - Options
382
400
  * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
383
401
  * @name createBlog
384
402
  * @summary: Create a blog
385
403
  * @description: Use this API to create a blog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createBlog/).
386
404
  */
387
- async createBlog({ body } = {}, { headers } = { headers: false }) {
405
+ async createBlog(
406
+ { body, requestHeaders } = { requestHeaders: {} },
407
+ { responseHeaders } = { responseHeaders: false }
408
+ ) {
388
409
  const { error } = ContentPlatformApplicationValidator.createBlog().validate(
389
410
  {
390
411
  body,
@@ -419,12 +440,12 @@ class Content {
419
440
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/`,
420
441
  query_params,
421
442
  body,
422
- undefined,
423
- { headers }
443
+ requestHeaders,
444
+ { responseHeaders }
424
445
  );
425
446
 
426
447
  let responseData = response;
427
- if (headers) {
448
+ if (responseHeaders) {
428
449
  responseData = response[0];
429
450
  }
430
451
 
@@ -449,13 +470,17 @@ class Content {
449
470
  * @param {ContentPlatformApplicationValidator.CreateFaqCategoryParam} arg
450
471
  * - Arg object
451
472
  *
473
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
452
474
  * @param {import("../PlatformAPIClient").Options} - Options
453
475
  * @returns {Promise<ContentPlatformModel.CreateFaqCategorySchema>} - Success response
454
476
  * @name createFaqCategory
455
477
  * @summary: Create an FAQ category
456
478
  * @description: FAQs help users to solve an issue or know more about a process. FAQs can be categorized separately, for e.g. some questions can be related to payment, some could be related to purchase, shipping, navigating, etc. Use this API to create an FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createFaqCategory/).
457
479
  */
458
- async createFaqCategory({ body } = {}, { headers } = { headers: false }) {
480
+ async createFaqCategory(
481
+ { body, requestHeaders } = { requestHeaders: {} },
482
+ { responseHeaders } = { responseHeaders: false }
483
+ ) {
459
484
  const {
460
485
  error,
461
486
  } = ContentPlatformApplicationValidator.createFaqCategory().validate(
@@ -492,12 +517,12 @@ class Content {
492
517
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category`,
493
518
  query_params,
494
519
  body,
495
- undefined,
496
- { headers }
520
+ requestHeaders,
521
+ { responseHeaders }
497
522
  );
498
523
 
499
524
  let responseData = response;
500
- if (headers) {
525
+ if (responseHeaders) {
501
526
  responseData = response[0];
502
527
  }
503
528
 
@@ -522,13 +547,17 @@ class Content {
522
547
  * @param {ContentPlatformApplicationValidator.CreateLandingPageParam} arg
523
548
  * - Arg object
524
549
  *
550
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
525
551
  * @param {import("../PlatformAPIClient").Options} - Options
526
552
  * @returns {Promise<ContentPlatformModel.LandingPageSchema>} - Success response
527
553
  * @name createLandingPage
528
554
  * @summary: Create a landing page
529
555
  * @description: Landing page is the first page that a prospect lands upon while visiting a website. Use this API to create a landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createLandingPage/).
530
556
  */
531
- async createLandingPage({ body } = {}, { headers } = { headers: false }) {
557
+ async createLandingPage(
558
+ { body, requestHeaders } = { requestHeaders: {} },
559
+ { responseHeaders } = { responseHeaders: false }
560
+ ) {
532
561
  const {
533
562
  error,
534
563
  } = ContentPlatformApplicationValidator.createLandingPage().validate(
@@ -565,12 +594,12 @@ class Content {
565
594
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/`,
566
595
  query_params,
567
596
  body,
568
- undefined,
569
- { headers }
597
+ requestHeaders,
598
+ { responseHeaders }
570
599
  );
571
600
 
572
601
  let responseData = response;
573
- if (headers) {
602
+ if (responseHeaders) {
574
603
  responseData = response[0];
575
604
  }
576
605
 
@@ -593,13 +622,17 @@ class Content {
593
622
 
594
623
  /**
595
624
  * @param {ContentPlatformApplicationValidator.CreateNavigationParam} arg - Arg object
625
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
596
626
  * @param {import("../PlatformAPIClient").Options} - Options
597
627
  * @returns {Promise<ContentPlatformModel.NavigationSchema>} - Success response
598
628
  * @name createNavigation
599
629
  * @summary: Create a navigation
600
630
  * @description: Navigation is the arrangement of navigational items to ease the accessibility of resources for users on a website. Use this API to create a navigation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createNavigation/).
601
631
  */
602
- async createNavigation({ body } = {}, { headers } = { headers: false }) {
632
+ async createNavigation(
633
+ { body, requestHeaders } = { requestHeaders: {} },
634
+ { responseHeaders } = { responseHeaders: false }
635
+ ) {
603
636
  const {
604
637
  error,
605
638
  } = ContentPlatformApplicationValidator.createNavigation().validate(
@@ -636,12 +669,12 @@ class Content {
636
669
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/`,
637
670
  query_params,
638
671
  body,
639
- undefined,
640
- { headers }
672
+ requestHeaders,
673
+ { responseHeaders }
641
674
  );
642
675
 
643
676
  let responseData = response;
644
- if (headers) {
677
+ if (responseHeaders) {
645
678
  responseData = response[0];
646
679
  }
647
680
 
@@ -664,13 +697,17 @@ class Content {
664
697
 
665
698
  /**
666
699
  * @param {ContentPlatformApplicationValidator.CreatePageParam} arg - Arg object
700
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
667
701
  * @param {import("../PlatformAPIClient").Options} - Options
668
702
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
669
703
  * @name createPage
670
704
  * @summary: Create a page
671
705
  * @description: Use this API to create a custom page using a title, seo, publish status, feature image, tags, meta, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createPage/).
672
706
  */
673
- async createPage({ body } = {}, { headers } = { headers: false }) {
707
+ async createPage(
708
+ { body, requestHeaders } = { requestHeaders: {} },
709
+ { responseHeaders } = { responseHeaders: false }
710
+ ) {
674
711
  const { error } = ContentPlatformApplicationValidator.createPage().validate(
675
712
  {
676
713
  body,
@@ -705,12 +742,12 @@ class Content {
705
742
  `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/`,
706
743
  query_params,
707
744
  body,
708
- undefined,
709
- { headers }
745
+ requestHeaders,
746
+ { responseHeaders }
710
747
  );
711
748
 
712
749
  let responseData = response;
713
- if (headers) {
750
+ if (responseHeaders) {
714
751
  responseData = response[0];
715
752
  }
716
753
 
@@ -735,13 +772,17 @@ class Content {
735
772
  * @param {ContentPlatformApplicationValidator.CreatePagePreviewParam} arg
736
773
  * - Arg object
737
774
  *
775
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
738
776
  * @param {import("../PlatformAPIClient").Options} - Options
739
777
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
740
778
  * @name createPagePreview
741
779
  * @summary: Create a page preview
742
780
  * @description: Use this API to create a page preview to check the appearance of a custom page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createPagePreview/).
743
781
  */
744
- async createPagePreview({ body } = {}, { headers } = { headers: false }) {
782
+ async createPagePreview(
783
+ { body, requestHeaders } = { requestHeaders: {} },
784
+ { responseHeaders } = { responseHeaders: false }
785
+ ) {
745
786
  const {
746
787
  error,
747
788
  } = ContentPlatformApplicationValidator.createPagePreview().validate(
@@ -778,12 +819,12 @@ class Content {
778
819
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/preview/`,
779
820
  query_params,
780
821
  body,
781
- undefined,
782
- { headers }
822
+ requestHeaders,
823
+ { responseHeaders }
783
824
  );
784
825
 
785
826
  let responseData = response;
786
- if (headers) {
827
+ if (responseHeaders) {
787
828
  responseData = response[0];
788
829
  }
789
830
 
@@ -806,13 +847,17 @@ class Content {
806
847
 
807
848
  /**
808
849
  * @param {ContentPlatformApplicationValidator.CreateSlideshowParam} arg - Arg object
850
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
809
851
  * @param {import("../PlatformAPIClient").Options} - Options
810
852
  * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
811
853
  * @name createSlideshow
812
854
  * @summary: Create a slideshow
813
855
  * @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 create a slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/createSlideshow/).
814
856
  */
815
- async createSlideshow({ body } = {}, { headers } = { headers: false }) {
857
+ async createSlideshow(
858
+ { body, requestHeaders } = { requestHeaders: {} },
859
+ { responseHeaders } = { responseHeaders: false }
860
+ ) {
816
861
  const {
817
862
  error,
818
863
  } = ContentPlatformApplicationValidator.createSlideshow().validate(
@@ -849,12 +894,12 @@ class Content {
849
894
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/`,
850
895
  query_params,
851
896
  body,
852
- undefined,
853
- { headers }
897
+ requestHeaders,
898
+ { responseHeaders }
854
899
  );
855
900
 
856
901
  let responseData = response;
857
- if (headers) {
902
+ if (responseHeaders) {
858
903
  responseData = response[0];
859
904
  }
860
905
 
@@ -876,13 +921,20 @@ class Content {
876
921
  }
877
922
 
878
923
  /**
924
+ * @param {ContentPlatformApplicationValidator.DeleteAllInjectableTagsParam} arg
925
+ * - Arg object
926
+ *
927
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
879
928
  * @param {import("../PlatformAPIClient").Options} - Options
880
929
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
881
930
  * @name deleteAllInjectableTags
882
931
  * @summary: Delete tags in application
883
932
  * @description: Use this API to delete all the existing tags at once. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAllInjectableTags/).
884
933
  */
885
- async deleteAllInjectableTags({ headers } = { headers: false }) {
934
+ async deleteAllInjectableTags(
935
+ { requestHeaders } = { requestHeaders: {} },
936
+ { responseHeaders } = { responseHeaders: false }
937
+ ) {
886
938
  const {
887
939
  error,
888
940
  } = ContentPlatformApplicationValidator.deleteAllInjectableTags().validate(
@@ -915,12 +967,12 @@ class Content {
915
967
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags`,
916
968
  query_params,
917
969
  undefined,
918
- undefined,
919
- { headers }
970
+ requestHeaders,
971
+ { responseHeaders }
920
972
  );
921
973
 
922
974
  let responseData = response;
923
- if (headers) {
975
+ if (responseHeaders) {
924
976
  responseData = response[0];
925
977
  }
926
978
 
@@ -945,6 +997,7 @@ class Content {
945
997
  * @param {ContentPlatformApplicationValidator.DeleteAnnouncementParam} arg
946
998
  * - Arg object
947
999
  *
1000
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
948
1001
  * @param {import("../PlatformAPIClient").Options} - Options
949
1002
  * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
950
1003
  * Success response
@@ -953,8 +1006,8 @@ class Content {
953
1006
  * @description: Use this API to delete an existing announcement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteAnnouncement/).
954
1007
  */
955
1008
  async deleteAnnouncement(
956
- { announcementId } = {},
957
- { headers } = { headers: false }
1009
+ { announcementId, requestHeaders } = { requestHeaders: {} },
1010
+ { responseHeaders } = { responseHeaders: false }
958
1011
  ) {
959
1012
  const {
960
1013
  error,
@@ -992,12 +1045,12 @@ class Content {
992
1045
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
993
1046
  query_params,
994
1047
  undefined,
995
- undefined,
996
- { headers }
1048
+ requestHeaders,
1049
+ { responseHeaders }
997
1050
  );
998
1051
 
999
1052
  let responseData = response;
1000
- if (headers) {
1053
+ if (responseHeaders) {
1001
1054
  responseData = response[0];
1002
1055
  }
1003
1056
 
@@ -1020,13 +1073,17 @@ class Content {
1020
1073
 
1021
1074
  /**
1022
1075
  * @param {ContentPlatformApplicationValidator.DeleteBlogParam} arg - Arg object
1076
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1023
1077
  * @param {import("../PlatformAPIClient").Options} - Options
1024
1078
  * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
1025
1079
  * @name deleteBlog
1026
1080
  * @summary: Delete blogs
1027
1081
  * @description: Use this API to delete a blog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteBlog/).
1028
1082
  */
1029
- async deleteBlog({ id } = {}, { headers } = { headers: false }) {
1083
+ async deleteBlog(
1084
+ { id, requestHeaders } = { requestHeaders: {} },
1085
+ { responseHeaders } = { responseHeaders: false }
1086
+ ) {
1030
1087
  const { error } = ContentPlatformApplicationValidator.deleteBlog().validate(
1031
1088
  {
1032
1089
  id,
@@ -1061,12 +1118,12 @@ class Content {
1061
1118
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${id}`,
1062
1119
  query_params,
1063
1120
  undefined,
1064
- undefined,
1065
- { headers }
1121
+ requestHeaders,
1122
+ { responseHeaders }
1066
1123
  );
1067
1124
 
1068
1125
  let responseData = response;
1069
- if (headers) {
1126
+ if (responseHeaders) {
1070
1127
  responseData = response[0];
1071
1128
  }
1072
1129
 
@@ -1089,6 +1146,7 @@ class Content {
1089
1146
 
1090
1147
  /**
1091
1148
  * @param {ContentPlatformApplicationValidator.DeleteDataLoaderParam} arg - Arg object
1149
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1092
1150
  * @param {import("../PlatformAPIClient").Options} - Options
1093
1151
  * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
1094
1152
  * Success response
@@ -1097,8 +1155,8 @@ class Content {
1097
1155
  * @description: Use this API to delete data loader. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteDataLoader/).
1098
1156
  */
1099
1157
  async deleteDataLoader(
1100
- { dataLoaderId } = {},
1101
- { headers } = { headers: false }
1158
+ { dataLoaderId, requestHeaders } = { requestHeaders: {} },
1159
+ { responseHeaders } = { responseHeaders: false }
1102
1160
  ) {
1103
1161
  const {
1104
1162
  error,
@@ -1136,12 +1194,12 @@ class Content {
1136
1194
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}`,
1137
1195
  query_params,
1138
1196
  undefined,
1139
- undefined,
1140
- { headers }
1197
+ requestHeaders,
1198
+ { responseHeaders }
1141
1199
  );
1142
1200
 
1143
1201
  let responseData = response;
1144
- if (headers) {
1202
+ if (responseHeaders) {
1145
1203
  responseData = response[0];
1146
1204
  }
1147
1205
 
@@ -1164,6 +1222,7 @@ class Content {
1164
1222
 
1165
1223
  /**
1166
1224
  * @param {ContentPlatformApplicationValidator.DeleteFaqParam} arg - Arg object
1225
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1167
1226
  * @param {import("../PlatformAPIClient").Options} - Options
1168
1227
  * @returns {Promise<ContentPlatformModel.CreateFaqResponseSchema>} - Success response
1169
1228
  * @name deleteFaq
@@ -1171,8 +1230,8 @@ class Content {
1171
1230
  * @description: Use this API to delete an existing FAQ. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteFaq/).
1172
1231
  */
1173
1232
  async deleteFaq(
1174
- { categoryId, faqId } = {},
1175
- { headers } = { headers: false }
1233
+ { categoryId, faqId, requestHeaders } = { requestHeaders: {} },
1234
+ { responseHeaders } = { responseHeaders: false }
1176
1235
  ) {
1177
1236
  const { error } = ContentPlatformApplicationValidator.deleteFaq().validate(
1178
1237
  {
@@ -1210,12 +1269,12 @@ class Content {
1210
1269
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${categoryId}/faq/${faqId}`,
1211
1270
  query_params,
1212
1271
  undefined,
1213
- undefined,
1214
- { headers }
1272
+ requestHeaders,
1273
+ { responseHeaders }
1215
1274
  );
1216
1275
 
1217
1276
  let responseData = response;
1218
- if (headers) {
1277
+ if (responseHeaders) {
1219
1278
  responseData = response[0];
1220
1279
  }
1221
1280
 
@@ -1240,13 +1299,17 @@ class Content {
1240
1299
  * @param {ContentPlatformApplicationValidator.DeleteFaqCategoryParam} arg
1241
1300
  * - Arg object
1242
1301
  *
1302
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1243
1303
  * @param {import("../PlatformAPIClient").Options} - Options
1244
1304
  * @returns {Promise<ContentPlatformModel.FaqSchema>} - Success response
1245
1305
  * @name deleteFaqCategory
1246
1306
  * @summary: Delete an FAQ category
1247
1307
  * @description: Use this API to delete an FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteFaqCategory/).
1248
1308
  */
1249
- async deleteFaqCategory({ id } = {}, { headers } = { headers: false }) {
1309
+ async deleteFaqCategory(
1310
+ { id, requestHeaders } = { requestHeaders: {} },
1311
+ { responseHeaders } = { responseHeaders: false }
1312
+ ) {
1250
1313
  const {
1251
1314
  error,
1252
1315
  } = ContentPlatformApplicationValidator.deleteFaqCategory().validate(
@@ -1283,12 +1346,12 @@ class Content {
1283
1346
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${id}`,
1284
1347
  query_params,
1285
1348
  undefined,
1286
- undefined,
1287
- { headers }
1349
+ requestHeaders,
1350
+ { responseHeaders }
1288
1351
  );
1289
1352
 
1290
1353
  let responseData = response;
1291
- if (headers) {
1354
+ if (responseHeaders) {
1292
1355
  responseData = response[0];
1293
1356
  }
1294
1357
 
@@ -1313,13 +1376,17 @@ class Content {
1313
1376
  * @param {ContentPlatformApplicationValidator.DeleteLandingPageParam} arg
1314
1377
  * - Arg object
1315
1378
  *
1379
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1316
1380
  * @param {import("../PlatformAPIClient").Options} - Options
1317
1381
  * @returns {Promise<ContentPlatformModel.LandingPageSchema>} - Success response
1318
1382
  * @name deleteLandingPage
1319
1383
  * @summary: Delete a landing page
1320
1384
  * @description: Use this API to delete an existing landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteLandingPage/).
1321
1385
  */
1322
- async deleteLandingPage({ id } = {}, { headers } = { headers: false }) {
1386
+ async deleteLandingPage(
1387
+ { id, requestHeaders } = { requestHeaders: {} },
1388
+ { responseHeaders } = { responseHeaders: false }
1389
+ ) {
1323
1390
  const {
1324
1391
  error,
1325
1392
  } = ContentPlatformApplicationValidator.deleteLandingPage().validate(
@@ -1356,12 +1423,12 @@ class Content {
1356
1423
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/${id}`,
1357
1424
  query_params,
1358
1425
  undefined,
1359
- undefined,
1360
- { headers }
1426
+ requestHeaders,
1427
+ { responseHeaders }
1361
1428
  );
1362
1429
 
1363
1430
  let responseData = response;
1364
- if (headers) {
1431
+ if (responseHeaders) {
1365
1432
  responseData = response[0];
1366
1433
  }
1367
1434
 
@@ -1384,13 +1451,17 @@ class Content {
1384
1451
 
1385
1452
  /**
1386
1453
  * @param {ContentPlatformApplicationValidator.DeleteNavigationParam} arg - Arg object
1454
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1387
1455
  * @param {import("../PlatformAPIClient").Options} - Options
1388
1456
  * @returns {Promise<ContentPlatformModel.NavigationSchema>} - Success response
1389
1457
  * @name deleteNavigation
1390
1458
  * @summary: Delete a navigation
1391
1459
  * @description: Use this API to delete an existing navigation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteNavigation/).
1392
1460
  */
1393
- async deleteNavigation({ id } = {}, { headers } = { headers: false }) {
1461
+ async deleteNavigation(
1462
+ { id, requestHeaders } = { requestHeaders: {} },
1463
+ { responseHeaders } = { responseHeaders: false }
1464
+ ) {
1394
1465
  const {
1395
1466
  error,
1396
1467
  } = ContentPlatformApplicationValidator.deleteNavigation().validate(
@@ -1427,12 +1498,12 @@ class Content {
1427
1498
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/${id}`,
1428
1499
  query_params,
1429
1500
  undefined,
1430
- undefined,
1431
- { headers }
1501
+ requestHeaders,
1502
+ { responseHeaders }
1432
1503
  );
1433
1504
 
1434
1505
  let responseData = response;
1435
- if (headers) {
1506
+ if (responseHeaders) {
1436
1507
  responseData = response[0];
1437
1508
  }
1438
1509
 
@@ -1455,13 +1526,17 @@ class Content {
1455
1526
 
1456
1527
  /**
1457
1528
  * @param {ContentPlatformApplicationValidator.DeletePageParam} arg - Arg object
1529
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1458
1530
  * @param {import("../PlatformAPIClient").Options} - Options
1459
1531
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
1460
1532
  * @name deletePage
1461
1533
  * @summary: Delete a page
1462
1534
  * @description: Use this API to delete an existing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deletePage/).
1463
1535
  */
1464
- async deletePage({ id } = {}, { headers } = { headers: false }) {
1536
+ async deletePage(
1537
+ { id, requestHeaders } = { requestHeaders: {} },
1538
+ { responseHeaders } = { responseHeaders: false }
1539
+ ) {
1465
1540
  const { error } = ContentPlatformApplicationValidator.deletePage().validate(
1466
1541
  {
1467
1542
  id,
@@ -1496,12 +1571,12 @@ class Content {
1496
1571
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/${id}`,
1497
1572
  query_params,
1498
1573
  undefined,
1499
- undefined,
1500
- { headers }
1574
+ requestHeaders,
1575
+ { responseHeaders }
1501
1576
  );
1502
1577
 
1503
1578
  let responseData = response;
1504
- if (headers) {
1579
+ if (responseHeaders) {
1505
1580
  responseData = response[0];
1506
1581
  }
1507
1582
 
@@ -1526,6 +1601,7 @@ class Content {
1526
1601
  * @param {ContentPlatformApplicationValidator.DeletePathRedirectionRulesParam} arg
1527
1602
  * - Arg object
1528
1603
  *
1604
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1529
1605
  * @param {import("../PlatformAPIClient").Options} - Options
1530
1606
  * @returns {Promise<Object>} - Success response
1531
1607
  * @name deletePathRedirectionRules
@@ -1533,8 +1609,8 @@ class Content {
1533
1609
  * @description: Use this API to delete redirection rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deletePathRedirectionRules/).
1534
1610
  */
1535
1611
  async deletePathRedirectionRules(
1536
- { pathId } = {},
1537
- { headers } = { headers: false }
1612
+ { pathId, requestHeaders } = { requestHeaders: {} },
1613
+ { responseHeaders } = { responseHeaders: false }
1538
1614
  ) {
1539
1615
  const {
1540
1616
  error,
@@ -1572,12 +1648,12 @@ class Content {
1572
1648
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/path-mappings/${pathId}`,
1573
1649
  query_params,
1574
1650
  undefined,
1575
- undefined,
1576
- { headers }
1651
+ requestHeaders,
1652
+ { responseHeaders }
1577
1653
  );
1578
1654
 
1579
1655
  let responseData = response;
1580
- if (headers) {
1656
+ if (responseHeaders) {
1581
1657
  responseData = response[0];
1582
1658
  }
1583
1659
 
@@ -1598,13 +1674,17 @@ class Content {
1598
1674
 
1599
1675
  /**
1600
1676
  * @param {ContentPlatformApplicationValidator.DeleteSlideshowParam} arg - Arg object
1677
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1601
1678
  * @param {import("../PlatformAPIClient").Options} - Options
1602
1679
  * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
1603
1680
  * @name deleteSlideshow
1604
1681
  * @summary: Delete a slideshow
1605
1682
  * @description: Use this API to delete an existing slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/deleteSlideshow/).
1606
1683
  */
1607
- async deleteSlideshow({ id } = {}, { headers } = { headers: false }) {
1684
+ async deleteSlideshow(
1685
+ { id, requestHeaders } = { requestHeaders: {} },
1686
+ { responseHeaders } = { responseHeaders: false }
1687
+ ) {
1608
1688
  const {
1609
1689
  error,
1610
1690
  } = ContentPlatformApplicationValidator.deleteSlideshow().validate(
@@ -1641,12 +1721,12 @@ class Content {
1641
1721
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${id}`,
1642
1722
  query_params,
1643
1723
  undefined,
1644
- undefined,
1645
- { headers }
1724
+ requestHeaders,
1725
+ { responseHeaders }
1646
1726
  );
1647
1727
 
1648
1728
  let responseData = response;
1649
- if (headers) {
1729
+ if (responseHeaders) {
1650
1730
  responseData = response[0];
1651
1731
  }
1652
1732
 
@@ -1669,6 +1749,7 @@ class Content {
1669
1749
 
1670
1750
  /**
1671
1751
  * @param {ContentPlatformApplicationValidator.EditDataLoaderParam} arg - Arg object
1752
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1672
1753
  * @param {import("../PlatformAPIClient").Options} - Options
1673
1754
  * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
1674
1755
  * Success response
@@ -1677,8 +1758,8 @@ class Content {
1677
1758
  * @description: Use this API to edit the details of an existing data loader by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editDataLoader/).
1678
1759
  */
1679
1760
  async editDataLoader(
1680
- { dataLoaderId, body } = {},
1681
- { headers } = { headers: false }
1761
+ { dataLoaderId, body, requestHeaders } = { requestHeaders: {} },
1762
+ { responseHeaders } = { responseHeaders: false }
1682
1763
  ) {
1683
1764
  const {
1684
1765
  error,
@@ -1718,12 +1799,12 @@ class Content {
1718
1799
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}`,
1719
1800
  query_params,
1720
1801
  body,
1721
- undefined,
1722
- { headers }
1802
+ requestHeaders,
1803
+ { responseHeaders }
1723
1804
  );
1724
1805
 
1725
1806
  let responseData = response;
1726
- if (headers) {
1807
+ if (responseHeaders) {
1727
1808
  responseData = response[0];
1728
1809
  }
1729
1810
 
@@ -1748,6 +1829,7 @@ class Content {
1748
1829
  * @param {ContentPlatformApplicationValidator.EditInjectableTagParam} arg
1749
1830
  * - Arg object
1750
1831
  *
1832
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1751
1833
  * @param {import("../PlatformAPIClient").Options} - Options
1752
1834
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
1753
1835
  * @name editInjectableTag
@@ -1755,8 +1837,8 @@ class Content {
1755
1837
  * @description: Use this API to edit the details of an existing tag by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/editInjectableTag/).
1756
1838
  */
1757
1839
  async editInjectableTag(
1758
- { tagId, body } = {},
1759
- { headers } = { headers: false }
1840
+ { tagId, body, requestHeaders } = { requestHeaders: {} },
1841
+ { responseHeaders } = { responseHeaders: false }
1760
1842
  ) {
1761
1843
  const {
1762
1844
  error,
@@ -1796,12 +1878,12 @@ class Content {
1796
1878
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/edit/handpicked/${tagId}`,
1797
1879
  query_params,
1798
1880
  body,
1799
- undefined,
1800
- { headers }
1881
+ requestHeaders,
1882
+ { responseHeaders }
1801
1883
  );
1802
1884
 
1803
1885
  let responseData = response;
1804
- if (headers) {
1886
+ if (responseHeaders) {
1805
1887
  responseData = response[0];
1806
1888
  }
1807
1889
 
@@ -1824,6 +1906,7 @@ class Content {
1824
1906
 
1825
1907
  /**
1826
1908
  * @param {ContentPlatformApplicationValidator.GenerateSEOTitleParam} arg - Arg object
1909
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1827
1910
  * @param {import("../PlatformAPIClient").Options} - Options
1828
1911
  * @returns {Promise<ContentPlatformModel.GeneratedSEOContent>} - Success response
1829
1912
  * @name generateSEOTitle
@@ -1831,8 +1914,8 @@ class Content {
1831
1914
  * @description: Use this API to get GPT3 generated SEO meta tag title for content - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/generateSEOTitle/).
1832
1915
  */
1833
1916
  async generateSEOTitle(
1834
- { type, body } = {},
1835
- { headers } = { headers: false }
1917
+ { type, body, requestHeaders } = { requestHeaders: {} },
1918
+ { responseHeaders } = { responseHeaders: false }
1836
1919
  ) {
1837
1920
  const {
1838
1921
  error,
@@ -1872,12 +1955,12 @@ class Content {
1872
1955
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/generate-seo/${type}`,
1873
1956
  query_params,
1874
1957
  body,
1875
- undefined,
1876
- { headers }
1958
+ requestHeaders,
1959
+ { responseHeaders }
1877
1960
  );
1878
1961
 
1879
1962
  let responseData = response;
1880
- if (headers) {
1963
+ if (responseHeaders) {
1881
1964
  responseData = response[0];
1882
1965
  }
1883
1966
 
@@ -1902,6 +1985,7 @@ class Content {
1902
1985
  * @param {ContentPlatformApplicationValidator.GetAnnouncementByIdParam} arg
1903
1986
  * - Arg object
1904
1987
  *
1988
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1905
1989
  * @param {import("../PlatformAPIClient").Options} - Options
1906
1990
  * @returns {Promise<ContentPlatformModel.AdminAnnouncementSchema>} - Success response
1907
1991
  * @name getAnnouncementById
@@ -1909,8 +1993,8 @@ class Content {
1909
1993
  * @description: Use this API to retrieve an announcement and its details such as the target platform and pages on which it's applicable - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAnnouncementById/).
1910
1994
  */
1911
1995
  async getAnnouncementById(
1912
- { announcementId } = {},
1913
- { headers } = { headers: false }
1996
+ { announcementId, requestHeaders } = { requestHeaders: {} },
1997
+ { responseHeaders } = { responseHeaders: false }
1914
1998
  ) {
1915
1999
  const {
1916
2000
  error,
@@ -1948,12 +2032,12 @@ class Content {
1948
2032
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
1949
2033
  query_params,
1950
2034
  undefined,
1951
- undefined,
1952
- { headers }
2035
+ requestHeaders,
2036
+ { responseHeaders }
1953
2037
  );
1954
2038
 
1955
2039
  let responseData = response;
1956
- if (headers) {
2040
+ if (responseHeaders) {
1957
2041
  responseData = response[0];
1958
2042
  }
1959
2043
 
@@ -1978,6 +2062,7 @@ class Content {
1978
2062
  * @param {ContentPlatformApplicationValidator.GetAnnouncementsListParam} arg
1979
2063
  * - Arg object
1980
2064
  *
2065
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1981
2066
  * @param {import("../PlatformAPIClient").Options} - Options
1982
2067
  * @returns {Promise<ContentPlatformModel.GetAnnouncementListSchema>} -
1983
2068
  * Success response
@@ -1986,8 +2071,8 @@ class Content {
1986
2071
  * @description: Announcements are useful to highlight a message or information on top of a webpage. Use this API to retrieve a list of announcements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getAnnouncementsList/).
1987
2072
  */
1988
2073
  async getAnnouncementsList(
1989
- { pageNo, pageSize } = {},
1990
- { headers } = { headers: false }
2074
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
2075
+ { responseHeaders } = { responseHeaders: false }
1991
2076
  ) {
1992
2077
  const {
1993
2078
  error,
@@ -2029,12 +2114,12 @@ class Content {
2029
2114
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements`,
2030
2115
  query_params,
2031
2116
  undefined,
2032
- undefined,
2033
- { headers }
2117
+ requestHeaders,
2118
+ { responseHeaders }
2034
2119
  );
2035
2120
 
2036
2121
  let responseData = response;
2037
- if (headers) {
2122
+ if (responseHeaders) {
2038
2123
  responseData = response[0];
2039
2124
  }
2040
2125
 
@@ -2091,13 +2176,17 @@ class Content {
2091
2176
 
2092
2177
  /**
2093
2178
  * @param {ContentPlatformApplicationValidator.GetBlogBySlugParam} arg - Arg object
2179
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2094
2180
  * @param {import("../PlatformAPIClient").Options} - Options
2095
2181
  * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
2096
2182
  * @name getBlogBySlug
2097
2183
  * @summary: Get blog by slug
2098
2184
  * @description: Use this API to retrieve the components of a blog, such as title, slug, feature image, content, schedule, publish status, author, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogBySlug/).
2099
2185
  */
2100
- async getBlogBySlug({ slug } = {}, { headers } = { headers: false }) {
2186
+ async getBlogBySlug(
2187
+ { slug, requestHeaders } = { requestHeaders: {} },
2188
+ { responseHeaders } = { responseHeaders: false }
2189
+ ) {
2101
2190
  const {
2102
2191
  error,
2103
2192
  } = ContentPlatformApplicationValidator.getBlogBySlug().validate(
@@ -2134,12 +2223,12 @@ class Content {
2134
2223
  `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
2135
2224
  query_params,
2136
2225
  undefined,
2137
- undefined,
2138
- { headers }
2226
+ requestHeaders,
2227
+ { responseHeaders }
2139
2228
  );
2140
2229
 
2141
2230
  let responseData = response;
2142
- if (headers) {
2231
+ if (responseHeaders) {
2143
2232
  responseData = response[0];
2144
2233
  }
2145
2234
 
@@ -2162,13 +2251,17 @@ class Content {
2162
2251
 
2163
2252
  /**
2164
2253
  * @param {ContentPlatformApplicationValidator.GetBlogsParam} arg - Arg object
2254
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2165
2255
  * @param {import("../PlatformAPIClient").Options} - Options
2166
2256
  * @returns {Promise<ContentPlatformModel.BlogGetResponse>} - Success response
2167
2257
  * @name getBlogs
2168
2258
  * @summary: Get blogs
2169
2259
  * @description: Use this API to get a list of blogs along with their details, such as the title, reading time, publish status, feature image, tags, author, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getBlogs/).
2170
2260
  */
2171
- async getBlogs({ pageNo, pageSize } = {}, { headers } = { headers: false }) {
2261
+ async getBlogs(
2262
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
2263
+ { responseHeaders } = { responseHeaders: false }
2264
+ ) {
2172
2265
  const { error } = ContentPlatformApplicationValidator.getBlogs().validate(
2173
2266
  {
2174
2267
  pageNo,
@@ -2207,12 +2300,12 @@ class Content {
2207
2300
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/`,
2208
2301
  query_params,
2209
2302
  undefined,
2210
- undefined,
2211
- { headers }
2303
+ requestHeaders,
2304
+ { responseHeaders }
2212
2305
  );
2213
2306
 
2214
2307
  let responseData = response;
2215
- if (headers) {
2308
+ if (responseHeaders) {
2216
2309
  responseData = response[0];
2217
2310
  }
2218
2311
 
@@ -2269,13 +2362,17 @@ class Content {
2269
2362
 
2270
2363
  /**
2271
2364
  * @param {ContentPlatformApplicationValidator.GetComponentByIdParam} arg - Arg object
2365
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2272
2366
  * @param {import("../PlatformAPIClient").Options} - Options
2273
2367
  * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
2274
2368
  * @name getComponentById
2275
2369
  * @summary: Get components of a blog
2276
2370
  * @description: Use this API to retrieve the components of a blog, such as title, slug, feature image, content, schedule, publish status, author, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getComponentById/).
2277
2371
  */
2278
- async getComponentById({ slug } = {}, { headers } = { headers: false }) {
2372
+ async getComponentById(
2373
+ { slug, requestHeaders } = { requestHeaders: {} },
2374
+ { responseHeaders } = { responseHeaders: false }
2375
+ ) {
2279
2376
  const {
2280
2377
  error,
2281
2378
  } = ContentPlatformApplicationValidator.getComponentById().validate(
@@ -2312,12 +2409,12 @@ class Content {
2312
2409
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${slug}`,
2313
2410
  query_params,
2314
2411
  undefined,
2315
- undefined,
2316
- { headers }
2412
+ requestHeaders,
2413
+ { responseHeaders }
2317
2414
  );
2318
2415
 
2319
2416
  let responseData = response;
2320
- if (headers) {
2417
+ if (responseHeaders) {
2321
2418
  responseData = response[0];
2322
2419
  }
2323
2420
 
@@ -2339,13 +2436,18 @@ class Content {
2339
2436
  }
2340
2437
 
2341
2438
  /**
2439
+ * @param {ContentPlatformApplicationValidator.GetDataLoadersParam} arg - Arg object
2440
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2342
2441
  * @param {import("../PlatformAPIClient").Options} - Options
2343
2442
  * @returns {Promise<ContentPlatformModel.DataLoadersSchema>} - Success response
2344
2443
  * @name getDataLoaders
2345
2444
  * @summary: Get all the data loaders in an application
2346
2445
  * @description: Use this to get all data loaders of an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getDataLoaders/).
2347
2446
  */
2348
- async getDataLoaders({ headers } = { headers: false }) {
2447
+ async getDataLoaders(
2448
+ { requestHeaders } = { requestHeaders: {} },
2449
+ { responseHeaders } = { responseHeaders: false }
2450
+ ) {
2349
2451
  const {
2350
2452
  error,
2351
2453
  } = ContentPlatformApplicationValidator.getDataLoaders().validate(
@@ -2378,12 +2480,12 @@ class Content {
2378
2480
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader`,
2379
2481
  query_params,
2380
2482
  undefined,
2381
- undefined,
2382
- { headers }
2483
+ requestHeaders,
2484
+ { responseHeaders }
2383
2485
  );
2384
2486
 
2385
2487
  let responseData = response;
2386
- if (headers) {
2488
+ if (responseHeaders) {
2387
2489
  responseData = response[0];
2388
2490
  }
2389
2491
 
@@ -2405,6 +2507,10 @@ class Content {
2405
2507
  }
2406
2508
 
2407
2509
  /**
2510
+ * @param {ContentPlatformApplicationValidator.GetDefaultNavigationsParam} arg
2511
+ * - Arg object
2512
+ *
2513
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2408
2514
  * @param {import("../PlatformAPIClient").Options} - Options
2409
2515
  * @returns {Promise<ContentPlatformModel.DefaultNavigationResponse>} -
2410
2516
  * Success response
@@ -2412,7 +2518,10 @@ class Content {
2412
2518
  * @summary: Get default navigations
2413
2519
  * @description: On any website (application), there are navigations that are present by default. Use this API to retrieve those default navigations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getDefaultNavigations/).
2414
2520
  */
2415
- async getDefaultNavigations({ headers } = { headers: false }) {
2521
+ async getDefaultNavigations(
2522
+ { requestHeaders } = { requestHeaders: {} },
2523
+ { responseHeaders } = { responseHeaders: false }
2524
+ ) {
2416
2525
  const {
2417
2526
  error,
2418
2527
  } = ContentPlatformApplicationValidator.getDefaultNavigations().validate(
@@ -2445,12 +2554,12 @@ class Content {
2445
2554
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/default`,
2446
2555
  query_params,
2447
2556
  undefined,
2448
- undefined,
2449
- { headers }
2557
+ requestHeaders,
2558
+ { responseHeaders }
2450
2559
  );
2451
2560
 
2452
2561
  let responseData = response;
2453
- if (headers) {
2562
+ if (responseHeaders) {
2454
2563
  responseData = response[0];
2455
2564
  }
2456
2565
 
@@ -2473,13 +2582,17 @@ class Content {
2473
2582
 
2474
2583
  /**
2475
2584
  * @param {ContentPlatformApplicationValidator.GetFaqByIdOrSlugParam} arg - Arg object
2585
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2476
2586
  * @param {import("../PlatformAPIClient").Options} - Options
2477
2587
  * @returns {Promise<ContentPlatformModel.CreateFaqResponseSchema>} - Success response
2478
2588
  * @name getFaqByIdOrSlug
2479
2589
  * @summary: Get an FAQ
2480
2590
  * @description: Use this API to retrieve a specific FAQ. You will get the question and answer of that FAQ. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getFaqByIdOrSlug/).
2481
2591
  */
2482
- async getFaqByIdOrSlug({ idOrSlug } = {}, { headers } = { headers: false }) {
2592
+ async getFaqByIdOrSlug(
2593
+ { idOrSlug, requestHeaders } = { requestHeaders: {} },
2594
+ { responseHeaders } = { responseHeaders: false }
2595
+ ) {
2483
2596
  const {
2484
2597
  error,
2485
2598
  } = ContentPlatformApplicationValidator.getFaqByIdOrSlug().validate(
@@ -2516,12 +2629,12 @@ class Content {
2516
2629
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/${idOrSlug}`,
2517
2630
  query_params,
2518
2631
  undefined,
2519
- undefined,
2520
- { headers }
2632
+ requestHeaders,
2633
+ { responseHeaders }
2521
2634
  );
2522
2635
 
2523
2636
  let responseData = response;
2524
- if (headers) {
2637
+ if (responseHeaders) {
2525
2638
  responseData = response[0];
2526
2639
  }
2527
2640
 
@@ -2543,13 +2656,18 @@ class Content {
2543
2656
  }
2544
2657
 
2545
2658
  /**
2659
+ * @param {ContentPlatformApplicationValidator.GetFaqCategoriesParam} arg - Arg object
2660
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2546
2661
  * @param {import("../PlatformAPIClient").Options} - Options
2547
2662
  * @returns {Promise<ContentPlatformModel.GetFaqCategoriesSchema>} - Success response
2548
2663
  * @name getFaqCategories
2549
2664
  * @summary: Get a list of FAQ categories
2550
2665
  * @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/platform/content/getFaqCategories/).
2551
2666
  */
2552
- async getFaqCategories({ headers } = { headers: false }) {
2667
+ async getFaqCategories(
2668
+ { requestHeaders } = { requestHeaders: {} },
2669
+ { responseHeaders } = { responseHeaders: false }
2670
+ ) {
2553
2671
  const {
2554
2672
  error,
2555
2673
  } = ContentPlatformApplicationValidator.getFaqCategories().validate(
@@ -2582,12 +2700,12 @@ class Content {
2582
2700
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/categories`,
2583
2701
  query_params,
2584
2702
  undefined,
2585
- undefined,
2586
- { headers }
2703
+ requestHeaders,
2704
+ { responseHeaders }
2587
2705
  );
2588
2706
 
2589
2707
  let responseData = response;
2590
- if (headers) {
2708
+ if (responseHeaders) {
2591
2709
  responseData = response[0];
2592
2710
  }
2593
2711
 
@@ -2612,6 +2730,7 @@ class Content {
2612
2730
  * @param {ContentPlatformApplicationValidator.GetFaqCategoryBySlugOrIdParam} arg
2613
2731
  * - Arg object
2614
2732
  *
2733
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2615
2734
  * @param {import("../PlatformAPIClient").Options} - Options
2616
2735
  * @returns {Promise<ContentPlatformModel.GetFaqCategoryBySlugSchema>} -
2617
2736
  * Success response
@@ -2620,8 +2739,8 @@ class Content {
2620
2739
  * @description: FAQs can be divided into categories. Use this API to get an FAQ categories using its slug or ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getFaqCategoryBySlugOrId/).
2621
2740
  */
2622
2741
  async getFaqCategoryBySlugOrId(
2623
- { idOrSlug } = {},
2624
- { headers } = { headers: false }
2742
+ { idOrSlug, requestHeaders } = { requestHeaders: {} },
2743
+ { responseHeaders } = { responseHeaders: false }
2625
2744
  ) {
2626
2745
  const {
2627
2746
  error,
@@ -2659,12 +2778,12 @@ class Content {
2659
2778
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${idOrSlug}`,
2660
2779
  query_params,
2661
2780
  undefined,
2662
- undefined,
2663
- { headers }
2781
+ requestHeaders,
2782
+ { responseHeaders }
2664
2783
  );
2665
2784
 
2666
2785
  let responseData = response;
2667
- if (headers) {
2786
+ if (responseHeaders) {
2668
2787
  responseData = response[0];
2669
2788
  }
2670
2789
 
@@ -2689,6 +2808,7 @@ class Content {
2689
2808
  * @param {ContentPlatformApplicationValidator.GetFaqsByCategoryIdOrSlugParam} arg
2690
2809
  * - Arg object
2691
2810
  *
2811
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2692
2812
  * @param {import("../PlatformAPIClient").Options} - Options
2693
2813
  * @returns {Promise<ContentPlatformModel.GetFaqSchema>} - Success response
2694
2814
  * @name getFaqsByCategoryIdOrSlug
@@ -2696,8 +2816,8 @@ class Content {
2696
2816
  * @description: Use this API to retrieve all the commonly asked question and answers belonging to an FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getFaqsByCategoryIdOrSlug/).
2697
2817
  */
2698
2818
  async getFaqsByCategoryIdOrSlug(
2699
- { idOrSlug } = {},
2700
- { headers } = { headers: false }
2819
+ { idOrSlug, requestHeaders } = { requestHeaders: {} },
2820
+ { responseHeaders } = { responseHeaders: false }
2701
2821
  ) {
2702
2822
  const {
2703
2823
  error,
@@ -2735,12 +2855,12 @@ class Content {
2735
2855
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${idOrSlug}/faqs`,
2736
2856
  query_params,
2737
2857
  undefined,
2738
- undefined,
2739
- { headers }
2858
+ requestHeaders,
2859
+ { responseHeaders }
2740
2860
  );
2741
2861
 
2742
2862
  let responseData = response;
2743
- if (headers) {
2863
+ if (responseHeaders) {
2744
2864
  responseData = response[0];
2745
2865
  }
2746
2866
 
@@ -2762,13 +2882,20 @@ class Content {
2762
2882
  }
2763
2883
 
2764
2884
  /**
2885
+ * @param {ContentPlatformApplicationValidator.GetInjectableTagsParam} arg
2886
+ * - Arg object
2887
+ *
2888
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2765
2889
  * @param {import("../PlatformAPIClient").Options} - Options
2766
2890
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
2767
2891
  * @name getInjectableTags
2768
2892
  * @summary: Get all the tags in an application
2769
2893
  * @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/platform/content/getInjectableTags/).
2770
2894
  */
2771
- async getInjectableTags({ headers } = { headers: false }) {
2895
+ async getInjectableTags(
2896
+ { requestHeaders } = { requestHeaders: {} },
2897
+ { responseHeaders } = { responseHeaders: false }
2898
+ ) {
2772
2899
  const {
2773
2900
  error,
2774
2901
  } = ContentPlatformApplicationValidator.getInjectableTags().validate(
@@ -2801,12 +2928,12 @@ class Content {
2801
2928
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags`,
2802
2929
  query_params,
2803
2930
  undefined,
2804
- undefined,
2805
- { headers }
2931
+ requestHeaders,
2932
+ { responseHeaders }
2806
2933
  );
2807
2934
 
2808
2935
  let responseData = response;
2809
- if (headers) {
2936
+ if (responseHeaders) {
2810
2937
  responseData = response[0];
2811
2938
  }
2812
2939
 
@@ -2829,6 +2956,7 @@ class Content {
2829
2956
 
2830
2957
  /**
2831
2958
  * @param {ContentPlatformApplicationValidator.GetLandingPagesParam} arg - Arg object
2959
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2832
2960
  * @param {import("../PlatformAPIClient").Options} - Options
2833
2961
  * @returns {Promise<ContentPlatformModel.LandingPageGetResponse>} - Success response
2834
2962
  * @name getLandingPages
@@ -2836,8 +2964,8 @@ class Content {
2836
2964
  * @description: Landing page is the first page that a prospect lands upon while visiting a website. Use this API to fetch a list of landing pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getLandingPages/).
2837
2965
  */
2838
2966
  async getLandingPages(
2839
- { pageNo, pageSize } = {},
2840
- { headers } = { headers: false }
2967
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
2968
+ { responseHeaders } = { responseHeaders: false }
2841
2969
  ) {
2842
2970
  const {
2843
2971
  error,
@@ -2879,12 +3007,12 @@ class Content {
2879
3007
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/`,
2880
3008
  query_params,
2881
3009
  undefined,
2882
- undefined,
2883
- { headers }
3010
+ requestHeaders,
3011
+ { responseHeaders }
2884
3012
  );
2885
3013
 
2886
3014
  let responseData = response;
2887
- if (headers) {
3015
+ if (responseHeaders) {
2888
3016
  responseData = response[0];
2889
3017
  }
2890
3018
 
@@ -2940,13 +3068,20 @@ class Content {
2940
3068
  }
2941
3069
 
2942
3070
  /**
3071
+ * @param {ContentPlatformApplicationValidator.GetLegalInformationParam} arg
3072
+ * - Arg object
3073
+ *
3074
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2943
3075
  * @param {import("../PlatformAPIClient").Options} - Options
2944
3076
  * @returns {Promise<ContentPlatformModel.ApplicationLegal>} - Success response
2945
3077
  * @name getLegalInformation
2946
3078
  * @summary: Get legal information
2947
3079
  * @description: Use this API to get the legal information of an application, which includes Policy, Terms and Conditions, Shipping Policy and FAQ regarding the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getLegalInformation/).
2948
3080
  */
2949
- async getLegalInformation({ headers } = { headers: false }) {
3081
+ async getLegalInformation(
3082
+ { requestHeaders } = { requestHeaders: {} },
3083
+ { responseHeaders } = { responseHeaders: false }
3084
+ ) {
2950
3085
  const {
2951
3086
  error,
2952
3087
  } = ContentPlatformApplicationValidator.getLegalInformation().validate(
@@ -2979,12 +3114,12 @@ class Content {
2979
3114
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/legal`,
2980
3115
  query_params,
2981
3116
  undefined,
2982
- undefined,
2983
- { headers }
3117
+ requestHeaders,
3118
+ { responseHeaders }
2984
3119
  );
2985
3120
 
2986
3121
  let responseData = response;
2987
- if (headers) {
3122
+ if (responseHeaders) {
2988
3123
  responseData = response[0];
2989
3124
  }
2990
3125
 
@@ -3009,6 +3144,7 @@ class Content {
3009
3144
  * @param {ContentPlatformApplicationValidator.GetNavigationBySlugParam} arg
3010
3145
  * - Arg object
3011
3146
  *
3147
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3012
3148
  * @param {import("../PlatformAPIClient").Options} - Options
3013
3149
  * @returns {Promise<ContentPlatformModel.NavigationSchema>} - Success response
3014
3150
  * @name getNavigationBySlug
@@ -3016,8 +3152,8 @@ class Content {
3016
3152
  * @description: Use this API to retrieve a navigation by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigationBySlug/).
3017
3153
  */
3018
3154
  async getNavigationBySlug(
3019
- { slug, devicePlatform } = {},
3020
- { headers } = { headers: false }
3155
+ { slug, devicePlatform, requestHeaders } = { requestHeaders: {} },
3156
+ { responseHeaders } = { responseHeaders: false }
3021
3157
  ) {
3022
3158
  const {
3023
3159
  error,
@@ -3058,12 +3194,12 @@ class Content {
3058
3194
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/${slug}`,
3059
3195
  query_params,
3060
3196
  undefined,
3061
- undefined,
3062
- { headers }
3197
+ requestHeaders,
3198
+ { responseHeaders }
3063
3199
  );
3064
3200
 
3065
3201
  let responseData = response;
3066
- if (headers) {
3202
+ if (responseHeaders) {
3067
3203
  responseData = response[0];
3068
3204
  }
3069
3205
 
@@ -3086,6 +3222,7 @@ class Content {
3086
3222
 
3087
3223
  /**
3088
3224
  * @param {ContentPlatformApplicationValidator.GetNavigationsParam} arg - Arg object
3225
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3089
3226
  * @param {import("../PlatformAPIClient").Options} - Options
3090
3227
  * @returns {Promise<ContentPlatformModel.NavigationGetResponse>} - Success response
3091
3228
  * @name getNavigations
@@ -3093,8 +3230,10 @@ class Content {
3093
3230
  * @description: Use this API to fetch the navigations details which includes the items of the navigation pane. It also shows the orientation, links, sub-navigations, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getNavigations/).
3094
3231
  */
3095
3232
  async getNavigations(
3096
- { devicePlatform, pageNo, pageSize } = {},
3097
- { headers } = { headers: false }
3233
+ { devicePlatform, pageNo, pageSize, requestHeaders } = {
3234
+ requestHeaders: {},
3235
+ },
3236
+ { responseHeaders } = { responseHeaders: false }
3098
3237
  ) {
3099
3238
  const {
3100
3239
  error,
@@ -3139,12 +3278,12 @@ class Content {
3139
3278
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/`,
3140
3279
  query_params,
3141
3280
  undefined,
3142
- undefined,
3143
- { headers }
3281
+ requestHeaders,
3282
+ { responseHeaders }
3144
3283
  );
3145
3284
 
3146
3285
  let responseData = response;
3147
- if (headers) {
3286
+ if (responseHeaders) {
3148
3287
  responseData = response[0];
3149
3288
  }
3150
3289
 
@@ -3209,13 +3348,17 @@ class Content {
3209
3348
 
3210
3349
  /**
3211
3350
  * @param {ContentPlatformApplicationValidator.GetPageBySlugParam} arg - Arg object
3351
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3212
3352
  * @param {import("../PlatformAPIClient").Options} - Options
3213
3353
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
3214
3354
  * @name getPageBySlug
3215
3355
  * @summary: Get page by slug
3216
3356
  * @description: Use this API to retrieve the components of a page, such as its title, seo, publish status, feature image, tags, schedule, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageBySlug/).
3217
3357
  */
3218
- async getPageBySlug({ slug } = {}, { headers } = { headers: false }) {
3358
+ async getPageBySlug(
3359
+ { slug, requestHeaders } = { requestHeaders: {} },
3360
+ { responseHeaders } = { responseHeaders: false }
3361
+ ) {
3219
3362
  const {
3220
3363
  error,
3221
3364
  } = ContentPlatformApplicationValidator.getPageBySlug().validate(
@@ -3252,12 +3395,12 @@ class Content {
3252
3395
  `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/${slug}`,
3253
3396
  query_params,
3254
3397
  undefined,
3255
- undefined,
3256
- { headers }
3398
+ requestHeaders,
3399
+ { responseHeaders }
3257
3400
  );
3258
3401
 
3259
3402
  let responseData = response;
3260
- if (headers) {
3403
+ if (responseHeaders) {
3261
3404
  responseData = response[0];
3262
3405
  }
3263
3406
 
@@ -3279,13 +3422,18 @@ class Content {
3279
3422
  }
3280
3423
 
3281
3424
  /**
3425
+ * @param {ContentPlatformApplicationValidator.GetPageMetaParam} arg - Arg object
3426
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3282
3427
  * @param {import("../PlatformAPIClient").Options} - Options
3283
3428
  * @returns {Promise<ContentPlatformModel.PageMetaSchema>} - Success response
3284
3429
  * @name getPageMeta
3285
3430
  * @summary: Get page meta
3286
3431
  * @description: Use this API to get the meta of custom pages (blog, page) and default system pages (e.g. home/brand/category/collection). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageMeta/).
3287
3432
  */
3288
- async getPageMeta({ headers } = { headers: false }) {
3433
+ async getPageMeta(
3434
+ { requestHeaders } = { requestHeaders: {} },
3435
+ { responseHeaders } = { responseHeaders: false }
3436
+ ) {
3289
3437
  const {
3290
3438
  error,
3291
3439
  } = ContentPlatformApplicationValidator.getPageMeta().validate(
@@ -3318,12 +3466,12 @@ class Content {
3318
3466
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/meta`,
3319
3467
  query_params,
3320
3468
  undefined,
3321
- undefined,
3322
- { headers }
3469
+ requestHeaders,
3470
+ { responseHeaders }
3323
3471
  );
3324
3472
 
3325
3473
  let responseData = response;
3326
- if (headers) {
3474
+ if (responseHeaders) {
3327
3475
  responseData = response[0];
3328
3476
  }
3329
3477
 
@@ -3345,13 +3493,18 @@ class Content {
3345
3493
  }
3346
3494
 
3347
3495
  /**
3496
+ * @param {ContentPlatformApplicationValidator.GetPageSpecParam} arg - Arg object
3497
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3348
3498
  * @param {import("../PlatformAPIClient").Options} - Options
3349
3499
  * @returns {Promise<ContentPlatformModel.PageSpec>} - Success response
3350
3500
  * @name getPageSpec
3351
3501
  * @summary: Get page spec
3352
3502
  * @description: Use this API to get the specifications of a page, such as page type, display name, params and query. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPageSpec/).
3353
3503
  */
3354
- async getPageSpec({ headers } = { headers: false }) {
3504
+ async getPageSpec(
3505
+ { requestHeaders } = { requestHeaders: {} },
3506
+ { responseHeaders } = { responseHeaders: false }
3507
+ ) {
3355
3508
  const {
3356
3509
  error,
3357
3510
  } = ContentPlatformApplicationValidator.getPageSpec().validate(
@@ -3384,12 +3537,12 @@ class Content {
3384
3537
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/spec`,
3385
3538
  query_params,
3386
3539
  undefined,
3387
- undefined,
3388
- { headers }
3540
+ requestHeaders,
3541
+ { responseHeaders }
3389
3542
  );
3390
3543
 
3391
3544
  let responseData = response;
3392
- if (headers) {
3545
+ if (responseHeaders) {
3393
3546
  responseData = response[0];
3394
3547
  }
3395
3548
 
@@ -3412,13 +3565,17 @@ class Content {
3412
3565
 
3413
3566
  /**
3414
3567
  * @param {ContentPlatformApplicationValidator.GetPagesParam} arg - Arg object
3568
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3415
3569
  * @param {import("../PlatformAPIClient").Options} - Options
3416
3570
  * @returns {Promise<ContentPlatformModel.PageGetResponse>} - Success response
3417
3571
  * @name getPages
3418
3572
  * @summary: Get a list of pages
3419
3573
  * @description: Use this API to retrieve a list of pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPages/).
3420
3574
  */
3421
- async getPages({ pageNo, pageSize } = {}, { headers } = { headers: false }) {
3575
+ async getPages(
3576
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
3577
+ { responseHeaders } = { responseHeaders: false }
3578
+ ) {
3422
3579
  const { error } = ContentPlatformApplicationValidator.getPages().validate(
3423
3580
  {
3424
3581
  pageNo,
@@ -3457,12 +3614,12 @@ class Content {
3457
3614
  `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/`,
3458
3615
  query_params,
3459
3616
  undefined,
3460
- undefined,
3461
- { headers }
3617
+ requestHeaders,
3618
+ { responseHeaders }
3462
3619
  );
3463
3620
 
3464
3621
  let responseData = response;
3465
- if (headers) {
3622
+ if (responseHeaders) {
3466
3623
  responseData = response[0];
3467
3624
  }
3468
3625
 
@@ -3521,6 +3678,7 @@ class Content {
3521
3678
  * @param {ContentPlatformApplicationValidator.GetPathRedirectionRuleParam} arg
3522
3679
  * - Arg object
3523
3680
  *
3681
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3524
3682
  * @param {import("../PlatformAPIClient").Options} - Options
3525
3683
  * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
3526
3684
  * @name getPathRedirectionRule
@@ -3528,8 +3686,8 @@ class Content {
3528
3686
  * @description: Use this API to get path based redirection rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPathRedirectionRule/).
3529
3687
  */
3530
3688
  async getPathRedirectionRule(
3531
- { pathId } = {},
3532
- { headers } = { headers: false }
3689
+ { pathId, requestHeaders } = { requestHeaders: {} },
3690
+ { responseHeaders } = { responseHeaders: false }
3533
3691
  ) {
3534
3692
  const {
3535
3693
  error,
@@ -3567,12 +3725,12 @@ class Content {
3567
3725
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/path-mappings/${pathId}`,
3568
3726
  query_params,
3569
3727
  undefined,
3570
- undefined,
3571
- { headers }
3728
+ requestHeaders,
3729
+ { responseHeaders }
3572
3730
  );
3573
3731
 
3574
3732
  let responseData = response;
3575
- if (headers) {
3733
+ if (responseHeaders) {
3576
3734
  responseData = response[0];
3577
3735
  }
3578
3736
 
@@ -3597,6 +3755,7 @@ class Content {
3597
3755
  * @param {ContentPlatformApplicationValidator.GetPathRedirectionRulesParam} arg
3598
3756
  * - Arg object
3599
3757
  *
3758
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3600
3759
  * @param {import("../PlatformAPIClient").Options} - Options
3601
3760
  * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
3602
3761
  * @name getPathRedirectionRules
@@ -3604,8 +3763,8 @@ class Content {
3604
3763
  * @description: Use this API to get path based redirection rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getPathRedirectionRules/).
3605
3764
  */
3606
3765
  async getPathRedirectionRules(
3607
- { pageSize, pageNo } = {},
3608
- { headers } = { headers: false }
3766
+ { pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
3767
+ { responseHeaders } = { responseHeaders: false }
3609
3768
  ) {
3610
3769
  const {
3611
3770
  error,
@@ -3647,12 +3806,12 @@ class Content {
3647
3806
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/path-mappings`,
3648
3807
  query_params,
3649
3808
  undefined,
3650
- undefined,
3651
- { headers }
3809
+ requestHeaders,
3810
+ { responseHeaders }
3652
3811
  );
3653
3812
 
3654
3813
  let responseData = response;
3655
- if (headers) {
3814
+ if (responseHeaders) {
3656
3815
  responseData = response[0];
3657
3816
  }
3658
3817
 
@@ -3674,13 +3833,20 @@ class Content {
3674
3833
  }
3675
3834
 
3676
3835
  /**
3836
+ * @param {ContentPlatformApplicationValidator.GetSEOConfigurationParam} arg
3837
+ * - Arg object
3838
+ *
3839
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3677
3840
  * @param {import("../PlatformAPIClient").Options} - Options
3678
3841
  * @returns {Promise<ContentPlatformModel.SeoComponent>} - Success response
3679
3842
  * @name getSEOConfiguration
3680
3843
  * @summary: Get SEO configuration of an application
3681
3844
  * @description: Use this API to know how the SEO is configured in the application. This includes the sitemap, robot.txt, custom meta tags, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSEOConfiguration/).
3682
3845
  */
3683
- async getSEOConfiguration({ headers } = { headers: false }) {
3846
+ async getSEOConfiguration(
3847
+ { requestHeaders } = { requestHeaders: {} },
3848
+ { responseHeaders } = { responseHeaders: false }
3849
+ ) {
3684
3850
  const {
3685
3851
  error,
3686
3852
  } = ContentPlatformApplicationValidator.getSEOConfiguration().validate(
@@ -3713,12 +3879,12 @@ class Content {
3713
3879
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo`,
3714
3880
  query_params,
3715
3881
  undefined,
3716
- undefined,
3717
- { headers }
3882
+ requestHeaders,
3883
+ { responseHeaders }
3718
3884
  );
3719
3885
 
3720
3886
  let responseData = response;
3721
- if (headers) {
3887
+ if (responseHeaders) {
3722
3888
  responseData = response[0];
3723
3889
  }
3724
3890
 
@@ -3743,6 +3909,7 @@ class Content {
3743
3909
  * @param {ContentPlatformApplicationValidator.GetSlideshowBySlugParam} arg
3744
3910
  * - Arg object
3745
3911
  *
3912
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3746
3913
  * @param {import("../PlatformAPIClient").Options} - Options
3747
3914
  * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
3748
3915
  * @name getSlideshowBySlug
@@ -3750,8 +3917,8 @@ class Content {
3750
3917
  * @description: Use this API to retrieve the details of a slideshow by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshowBySlug/).
3751
3918
  */
3752
3919
  async getSlideshowBySlug(
3753
- { slug, devicePlatform } = {},
3754
- { headers } = { headers: false }
3920
+ { slug, devicePlatform, requestHeaders } = { requestHeaders: {} },
3921
+ { responseHeaders } = { responseHeaders: false }
3755
3922
  ) {
3756
3923
  const {
3757
3924
  error,
@@ -3792,12 +3959,12 @@ class Content {
3792
3959
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${slug}`,
3793
3960
  query_params,
3794
3961
  undefined,
3795
- undefined,
3796
- { headers }
3962
+ requestHeaders,
3963
+ { responseHeaders }
3797
3964
  );
3798
3965
 
3799
3966
  let responseData = response;
3800
- if (headers) {
3967
+ if (responseHeaders) {
3801
3968
  responseData = response[0];
3802
3969
  }
3803
3970
 
@@ -3820,6 +3987,7 @@ class Content {
3820
3987
 
3821
3988
  /**
3822
3989
  * @param {ContentPlatformApplicationValidator.GetSlideshowsParam} arg - Arg object
3990
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3823
3991
  * @param {import("../PlatformAPIClient").Options} - Options
3824
3992
  * @returns {Promise<ContentPlatformModel.SlideshowGetResponse>} - Success response
3825
3993
  * @name getSlideshows
@@ -3827,8 +3995,10 @@ class Content {
3827
3995
  * @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 list of slideshows. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSlideshows/).
3828
3996
  */
3829
3997
  async getSlideshows(
3830
- { devicePlatform, pageNo, pageSize } = {},
3831
- { headers } = { headers: false }
3998
+ { devicePlatform, pageNo, pageSize, requestHeaders } = {
3999
+ requestHeaders: {},
4000
+ },
4001
+ { responseHeaders } = { responseHeaders: false }
3832
4002
  ) {
3833
4003
  const {
3834
4004
  error,
@@ -3873,12 +4043,12 @@ class Content {
3873
4043
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/`,
3874
4044
  query_params,
3875
4045
  undefined,
3876
- undefined,
3877
- { headers }
4046
+ requestHeaders,
4047
+ { responseHeaders }
3878
4048
  );
3879
4049
 
3880
4050
  let responseData = response;
3881
- if (headers) {
4051
+ if (responseHeaders) {
3882
4052
  responseData = response[0];
3883
4053
  }
3884
4054
 
@@ -3942,13 +4112,20 @@ class Content {
3942
4112
  }
3943
4113
 
3944
4114
  /**
4115
+ * @param {ContentPlatformApplicationValidator.GetSupportInformationParam} arg
4116
+ * - Arg object
4117
+ *
4118
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3945
4119
  * @param {import("../PlatformAPIClient").Options} - Options
3946
4120
  * @returns {Promise<ContentPlatformModel.Support>} - Success response
3947
4121
  * @name getSupportInformation
3948
4122
  * @summary: Get support information
3949
4123
  * @description: Use this API to get the contact details for customer support, including emails and phone numbers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/getSupportInformation/).
3950
4124
  */
3951
- async getSupportInformation({ headers } = { headers: false }) {
4125
+ async getSupportInformation(
4126
+ { requestHeaders } = { requestHeaders: {} },
4127
+ { responseHeaders } = { responseHeaders: false }
4128
+ ) {
3952
4129
  const {
3953
4130
  error,
3954
4131
  } = ContentPlatformApplicationValidator.getSupportInformation().validate(
@@ -3981,12 +4158,12 @@ class Content {
3981
4158
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/support`,
3982
4159
  query_params,
3983
4160
  undefined,
3984
- undefined,
3985
- { headers }
4161
+ requestHeaders,
4162
+ { responseHeaders }
3986
4163
  );
3987
4164
 
3988
4165
  let responseData = response;
3989
- if (headers) {
4166
+ if (responseHeaders) {
3990
4167
  responseData = response[0];
3991
4168
  }
3992
4169
 
@@ -4011,6 +4188,7 @@ class Content {
4011
4188
  * @param {ContentPlatformApplicationValidator.RemoveInjectableTagParam} arg
4012
4189
  * - Arg object
4013
4190
  *
4191
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4014
4192
  * @param {import("../PlatformAPIClient").Options} - Options
4015
4193
  * @returns {Promise<ContentPlatformModel.TagDeleteSuccessResponse>} -
4016
4194
  * Success response
@@ -4018,7 +4196,10 @@ class Content {
4018
4196
  * @summary: Remove a tag
4019
4197
  * @description: Use this API to delete an existing tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/removeInjectableTag/).
4020
4198
  */
4021
- async removeInjectableTag({ body } = {}, { headers } = { headers: false }) {
4199
+ async removeInjectableTag(
4200
+ { body, requestHeaders } = { requestHeaders: {} },
4201
+ { responseHeaders } = { responseHeaders: false }
4202
+ ) {
4022
4203
  const {
4023
4204
  error,
4024
4205
  } = ContentPlatformApplicationValidator.removeInjectableTag().validate(
@@ -4055,12 +4236,12 @@ class Content {
4055
4236
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags/remove/handpicked`,
4056
4237
  query_params,
4057
4238
  body,
4058
- undefined,
4059
- { headers }
4239
+ requestHeaders,
4240
+ { responseHeaders }
4060
4241
  );
4061
4242
 
4062
4243
  let responseData = response;
4063
- if (headers) {
4244
+ if (responseHeaders) {
4064
4245
  responseData = response[0];
4065
4246
  }
4066
4247
 
@@ -4083,6 +4264,7 @@ class Content {
4083
4264
 
4084
4265
  /**
4085
4266
  * @param {ContentPlatformApplicationValidator.ResetDataLoaderParam} arg - Arg object
4267
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4086
4268
  * @param {import("../PlatformAPIClient").Options} - Options
4087
4269
  * @returns {Promise<ContentPlatformModel.DataLoaderResetResponseSchema>} -
4088
4270
  * Success response
@@ -4091,8 +4273,8 @@ class Content {
4091
4273
  * @description: Use this API to reselect a data loader. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/resetDataLoader/).
4092
4274
  */
4093
4275
  async resetDataLoader(
4094
- { service, operationId } = {},
4095
- { headers } = { headers: false }
4276
+ { service, operationId, requestHeaders } = { requestHeaders: {} },
4277
+ { responseHeaders } = { responseHeaders: false }
4096
4278
  ) {
4097
4279
  const {
4098
4280
  error,
@@ -4132,12 +4314,12 @@ class Content {
4132
4314
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${service}/${operationId}/reset`,
4133
4315
  query_params,
4134
4316
  undefined,
4135
- undefined,
4136
- { headers }
4317
+ requestHeaders,
4318
+ { responseHeaders }
4137
4319
  );
4138
4320
 
4139
4321
  let responseData = response;
4140
- if (headers) {
4322
+ if (responseHeaders) {
4141
4323
  responseData = response[0];
4142
4324
  }
4143
4325
 
@@ -4160,6 +4342,7 @@ class Content {
4160
4342
 
4161
4343
  /**
4162
4344
  * @param {ContentPlatformApplicationValidator.SelectDataLoaderParam} arg - Arg object
4345
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4163
4346
  * @param {import("../PlatformAPIClient").Options} - Options
4164
4347
  * @returns {Promise<ContentPlatformModel.DataLoaderResponseSchema>} -
4165
4348
  * Success response
@@ -4168,8 +4351,8 @@ class Content {
4168
4351
  * @description: Use this API to select a data loader to be used in applications. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/selectDataLoader/).
4169
4352
  */
4170
4353
  async selectDataLoader(
4171
- { dataLoaderId } = {},
4172
- { headers } = { headers: false }
4354
+ { dataLoaderId, requestHeaders } = { requestHeaders: {} },
4355
+ { responseHeaders } = { responseHeaders: false }
4173
4356
  ) {
4174
4357
  const {
4175
4358
  error,
@@ -4207,12 +4390,12 @@ class Content {
4207
4390
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/data-loader/${dataLoaderId}/select`,
4208
4391
  query_params,
4209
4392
  undefined,
4210
- undefined,
4211
- { headers }
4393
+ requestHeaders,
4394
+ { responseHeaders }
4212
4395
  );
4213
4396
 
4214
4397
  let responseData = response;
4215
- if (headers) {
4398
+ if (responseHeaders) {
4216
4399
  responseData = response[0];
4217
4400
  }
4218
4401
 
@@ -4237,6 +4420,7 @@ class Content {
4237
4420
  * @param {ContentPlatformApplicationValidator.UpdateAnnouncementParam} arg
4238
4421
  * - Arg object
4239
4422
  *
4423
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4240
4424
  * @param {import("../PlatformAPIClient").Options} - Options
4241
4425
  * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
4242
4426
  * Success response
@@ -4245,8 +4429,8 @@ class Content {
4245
4429
  * @description: Use this API to edit an existing announcement and its details such as the target platform and pages on which it's applicable - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAnnouncement/).
4246
4430
  */
4247
4431
  async updateAnnouncement(
4248
- { announcementId, body } = {},
4249
- { headers } = { headers: false }
4432
+ { announcementId, body, requestHeaders } = { requestHeaders: {} },
4433
+ { responseHeaders } = { responseHeaders: false }
4250
4434
  ) {
4251
4435
  const {
4252
4436
  error,
@@ -4286,12 +4470,12 @@ class Content {
4286
4470
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
4287
4471
  query_params,
4288
4472
  body,
4289
- undefined,
4290
- { headers }
4473
+ requestHeaders,
4474
+ { responseHeaders }
4291
4475
  );
4292
4476
 
4293
4477
  let responseData = response;
4294
- if (headers) {
4478
+ if (responseHeaders) {
4295
4479
  responseData = response[0];
4296
4480
  }
4297
4481
 
@@ -4316,6 +4500,7 @@ class Content {
4316
4500
  * @param {ContentPlatformApplicationValidator.UpdateAnnouncementScheduleParam} arg
4317
4501
  * - Arg object
4318
4502
  *
4503
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4319
4504
  * @param {import("../PlatformAPIClient").Options} - Options
4320
4505
  * @returns {Promise<ContentPlatformModel.CreateAnnouncementSchema>} -
4321
4506
  * Success response
@@ -4324,8 +4509,8 @@ class Content {
4324
4509
  * @description: Use this API to edit the duration, i.e. start date-time and end date-time of an announcement. Moreover, you can enable/disable an announcement using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateAnnouncementSchedule/).
4325
4510
  */
4326
4511
  async updateAnnouncementSchedule(
4327
- { announcementId, body } = {},
4328
- { headers } = { headers: false }
4512
+ { announcementId, body, requestHeaders } = { requestHeaders: {} },
4513
+ { responseHeaders } = { responseHeaders: false }
4329
4514
  ) {
4330
4515
  const {
4331
4516
  error,
@@ -4365,12 +4550,12 @@ class Content {
4365
4550
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/announcements/${announcementId}`,
4366
4551
  query_params,
4367
4552
  body,
4368
- undefined,
4369
- { headers }
4553
+ requestHeaders,
4554
+ { responseHeaders }
4370
4555
  );
4371
4556
 
4372
4557
  let responseData = response;
4373
- if (headers) {
4558
+ if (responseHeaders) {
4374
4559
  responseData = response[0];
4375
4560
  }
4376
4561
 
@@ -4393,13 +4578,17 @@ class Content {
4393
4578
 
4394
4579
  /**
4395
4580
  * @param {ContentPlatformApplicationValidator.UpdateBlogParam} arg - Arg object
4581
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4396
4582
  * @param {import("../PlatformAPIClient").Options} - Options
4397
4583
  * @returns {Promise<ContentPlatformModel.BlogSchema>} - Success response
4398
4584
  * @name updateBlog
4399
4585
  * @summary: Update a blog
4400
4586
  * @description: Use this API to update the details of an existing blog which includes title, feature image, content, SEO details, expiry, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateBlog/).
4401
4587
  */
4402
- async updateBlog({ id, body } = {}, { headers } = { headers: false }) {
4588
+ async updateBlog(
4589
+ { id, body, requestHeaders } = { requestHeaders: {} },
4590
+ { responseHeaders } = { responseHeaders: false }
4591
+ ) {
4403
4592
  const { error } = ContentPlatformApplicationValidator.updateBlog().validate(
4404
4593
  {
4405
4594
  id,
@@ -4436,12 +4625,12 @@ class Content {
4436
4625
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/blogs/${id}`,
4437
4626
  query_params,
4438
4627
  body,
4439
- undefined,
4440
- { headers }
4628
+ requestHeaders,
4629
+ { responseHeaders }
4441
4630
  );
4442
4631
 
4443
4632
  let responseData = response;
4444
- if (headers) {
4633
+ if (responseHeaders) {
4445
4634
  responseData = response[0];
4446
4635
  }
4447
4636
 
@@ -4464,6 +4653,7 @@ class Content {
4464
4653
 
4465
4654
  /**
4466
4655
  * @param {ContentPlatformApplicationValidator.UpdateFaqParam} arg - Arg object
4656
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4467
4657
  * @param {import("../PlatformAPIClient").Options} - Options
4468
4658
  * @returns {Promise<ContentPlatformModel.CreateFaqResponseSchema>} - Success response
4469
4659
  * @name updateFaq
@@ -4471,8 +4661,8 @@ class Content {
4471
4661
  * @description: Use this API to edit an existing FAQ. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateFaq/).
4472
4662
  */
4473
4663
  async updateFaq(
4474
- { categoryId, faqId, body } = {},
4475
- { headers } = { headers: false }
4664
+ { categoryId, faqId, body, requestHeaders } = { requestHeaders: {} },
4665
+ { responseHeaders } = { responseHeaders: false }
4476
4666
  ) {
4477
4667
  const { error } = ContentPlatformApplicationValidator.updateFaq().validate(
4478
4668
  {
@@ -4512,12 +4702,12 @@ class Content {
4512
4702
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${categoryId}/faq/${faqId}`,
4513
4703
  query_params,
4514
4704
  body,
4515
- undefined,
4516
- { headers }
4705
+ requestHeaders,
4706
+ { responseHeaders }
4517
4707
  );
4518
4708
 
4519
4709
  let responseData = response;
4520
- if (headers) {
4710
+ if (responseHeaders) {
4521
4711
  responseData = response[0];
4522
4712
  }
4523
4713
 
@@ -4542,13 +4732,17 @@ class Content {
4542
4732
  * @param {ContentPlatformApplicationValidator.UpdateFaqCategoryParam} arg
4543
4733
  * - Arg object
4544
4734
  *
4735
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4545
4736
  * @param {import("../PlatformAPIClient").Options} - Options
4546
4737
  * @returns {Promise<ContentPlatformModel.CreateFaqCategorySchema>} - Success response
4547
4738
  * @name updateFaqCategory
4548
4739
  * @summary: Update an FAQ category
4549
4740
  * @description: Use this API to edit an existing FAQ category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateFaqCategory/).
4550
4741
  */
4551
- async updateFaqCategory({ id, body } = {}, { headers } = { headers: false }) {
4742
+ async updateFaqCategory(
4743
+ { id, body, requestHeaders } = { requestHeaders: {} },
4744
+ { responseHeaders } = { responseHeaders: false }
4745
+ ) {
4552
4746
  const {
4553
4747
  error,
4554
4748
  } = ContentPlatformApplicationValidator.updateFaqCategory().validate(
@@ -4587,12 +4781,12 @@ class Content {
4587
4781
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/faq/category/${id}`,
4588
4782
  query_params,
4589
4783
  body,
4590
- undefined,
4591
- { headers }
4784
+ requestHeaders,
4785
+ { responseHeaders }
4592
4786
  );
4593
4787
 
4594
4788
  let responseData = response;
4595
- if (headers) {
4789
+ if (responseHeaders) {
4596
4790
  responseData = response[0];
4597
4791
  }
4598
4792
 
@@ -4617,13 +4811,17 @@ class Content {
4617
4811
  * @param {ContentPlatformApplicationValidator.UpdateInjectableTagParam} arg
4618
4812
  * - Arg object
4619
4813
  *
4814
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4620
4815
  * @param {import("../PlatformAPIClient").Options} - Options
4621
4816
  * @returns {Promise<ContentPlatformModel.TagsSchema>} - Success response
4622
4817
  * @name updateInjectableTag
4623
4818
  * @summary: Update a tag
4624
4819
  * @description: Use this API to edit the details of an existing tag. This includes the tag name, tag type (css/js), url and position of the tag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateInjectableTag/).
4625
4820
  */
4626
- async updateInjectableTag({ body } = {}, { headers } = { headers: false }) {
4821
+ async updateInjectableTag(
4822
+ { body, requestHeaders } = { requestHeaders: {} },
4823
+ { responseHeaders } = { responseHeaders: false }
4824
+ ) {
4627
4825
  const {
4628
4826
  error,
4629
4827
  } = ContentPlatformApplicationValidator.updateInjectableTag().validate(
@@ -4660,12 +4858,12 @@ class Content {
4660
4858
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/tags`,
4661
4859
  query_params,
4662
4860
  body,
4663
- undefined,
4664
- { headers }
4861
+ requestHeaders,
4862
+ { responseHeaders }
4665
4863
  );
4666
4864
 
4667
4865
  let responseData = response;
4668
- if (headers) {
4866
+ if (responseHeaders) {
4669
4867
  responseData = response[0];
4670
4868
  }
4671
4869
 
@@ -4690,13 +4888,17 @@ class Content {
4690
4888
  * @param {ContentPlatformApplicationValidator.UpdateLandingPageParam} arg
4691
4889
  * - Arg object
4692
4890
  *
4891
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4693
4892
  * @param {import("../PlatformAPIClient").Options} - Options
4694
4893
  * @returns {Promise<ContentPlatformModel.LandingPageSchema>} - Success response
4695
4894
  * @name updateLandingPage
4696
4895
  * @summary: Update a landing page
4697
4896
  * @description: Use this API to edit the details of an existing landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateLandingPage/).
4698
4897
  */
4699
- async updateLandingPage({ id, body } = {}, { headers } = { headers: false }) {
4898
+ async updateLandingPage(
4899
+ { id, body, requestHeaders } = { requestHeaders: {} },
4900
+ { responseHeaders } = { responseHeaders: false }
4901
+ ) {
4700
4902
  const {
4701
4903
  error,
4702
4904
  } = ContentPlatformApplicationValidator.updateLandingPage().validate(
@@ -4735,12 +4937,12 @@ class Content {
4735
4937
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/landing-page/${id}`,
4736
4938
  query_params,
4737
4939
  body,
4738
- undefined,
4739
- { headers }
4940
+ requestHeaders,
4941
+ { responseHeaders }
4740
4942
  );
4741
4943
 
4742
4944
  let responseData = response;
4743
- if (headers) {
4945
+ if (responseHeaders) {
4744
4946
  responseData = response[0];
4745
4947
  }
4746
4948
 
@@ -4765,6 +4967,7 @@ class Content {
4765
4967
  * @param {ContentPlatformApplicationValidator.UpdateLegalInformationParam} arg
4766
4968
  * - Arg object
4767
4969
  *
4970
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4768
4971
  * @param {import("../PlatformAPIClient").Options} - Options
4769
4972
  * @returns {Promise<ContentPlatformModel.ApplicationLegal>} - Success response
4770
4973
  * @name updateLegalInformation
@@ -4772,8 +4975,8 @@ class Content {
4772
4975
  * @description: Use this API to edit, update and save the legal information of an application, which includes Policy, Terms and Conditions, Shipping Policy and FAQ regarding the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateLegalInformation/).
4773
4976
  */
4774
4977
  async updateLegalInformation(
4775
- { body } = {},
4776
- { headers } = { headers: false }
4978
+ { body, requestHeaders } = { requestHeaders: {} },
4979
+ { responseHeaders } = { responseHeaders: false }
4777
4980
  ) {
4778
4981
  const {
4779
4982
  error,
@@ -4811,12 +5014,12 @@ class Content {
4811
5014
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/legal`,
4812
5015
  query_params,
4813
5016
  body,
4814
- undefined,
4815
- { headers }
5017
+ requestHeaders,
5018
+ { responseHeaders }
4816
5019
  );
4817
5020
 
4818
5021
  let responseData = response;
4819
- if (headers) {
5022
+ if (responseHeaders) {
4820
5023
  responseData = response[0];
4821
5024
  }
4822
5025
 
@@ -4839,13 +5042,17 @@ class Content {
4839
5042
 
4840
5043
  /**
4841
5044
  * @param {ContentPlatformApplicationValidator.UpdateNavigationParam} arg - Arg object
5045
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4842
5046
  * @param {import("../PlatformAPIClient").Options} - Options
4843
5047
  * @returns {Promise<ContentPlatformModel.NavigationSchema>} - Success response
4844
5048
  * @name updateNavigation
4845
5049
  * @summary: Update a navigation
4846
5050
  * @description: Use this API to edit the details of an existing navigation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateNavigation/).
4847
5051
  */
4848
- async updateNavigation({ id, body } = {}, { headers } = { headers: false }) {
5052
+ async updateNavigation(
5053
+ { id, body, requestHeaders } = { requestHeaders: {} },
5054
+ { responseHeaders } = { responseHeaders: false }
5055
+ ) {
4849
5056
  const {
4850
5057
  error,
4851
5058
  } = ContentPlatformApplicationValidator.updateNavigation().validate(
@@ -4884,12 +5091,12 @@ class Content {
4884
5091
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/navigations/${id}`,
4885
5092
  query_params,
4886
5093
  body,
4887
- undefined,
4888
- { headers }
5094
+ requestHeaders,
5095
+ { responseHeaders }
4889
5096
  );
4890
5097
 
4891
5098
  let responseData = response;
4892
- if (headers) {
5099
+ if (responseHeaders) {
4893
5100
  responseData = response[0];
4894
5101
  }
4895
5102
 
@@ -4912,13 +5119,17 @@ class Content {
4912
5119
 
4913
5120
  /**
4914
5121
  * @param {ContentPlatformApplicationValidator.UpdatePageParam} arg - Arg object
5122
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4915
5123
  * @param {import("../PlatformAPIClient").Options} - Options
4916
5124
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
4917
5125
  * @name updatePage
4918
5126
  * @summary: Update a page
4919
5127
  * @description: Use this API to edit the details of an existing page, such as its title, seo, publish status, feature image, tags, schedule, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updatePage/).
4920
5128
  */
4921
- async updatePage({ id, body } = {}, { headers } = { headers: false }) {
5129
+ async updatePage(
5130
+ { id, body, requestHeaders } = { requestHeaders: {} },
5131
+ { responseHeaders } = { responseHeaders: false }
5132
+ ) {
4922
5133
  const { error } = ContentPlatformApplicationValidator.updatePage().validate(
4923
5134
  {
4924
5135
  id,
@@ -4955,12 +5166,12 @@ class Content {
4955
5166
  `/service/platform/content/v2.0/company/${this.config.companyId}/application/${this.applicationId}/pages/${id}`,
4956
5167
  query_params,
4957
5168
  body,
4958
- undefined,
4959
- { headers }
5169
+ requestHeaders,
5170
+ { responseHeaders }
4960
5171
  );
4961
5172
 
4962
5173
  let responseData = response;
4963
- if (headers) {
5174
+ if (responseHeaders) {
4964
5175
  responseData = response[0];
4965
5176
  }
4966
5177
 
@@ -4985,6 +5196,7 @@ class Content {
4985
5196
  * @param {ContentPlatformApplicationValidator.UpdatePagePreviewParam} arg
4986
5197
  * - Arg object
4987
5198
  *
5199
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4988
5200
  * @param {import("../PlatformAPIClient").Options} - Options
4989
5201
  * @returns {Promise<ContentPlatformModel.PageSchema>} - Success response
4990
5202
  * @name updatePagePreview
@@ -4992,8 +5204,8 @@ class Content {
4992
5204
  * @description: Use this API to change the publish status of an existing page. Allows you to publish and unpublish the page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updatePagePreview/).
4993
5205
  */
4994
5206
  async updatePagePreview(
4995
- { slug, body } = {},
4996
- { headers } = { headers: false }
5207
+ { slug, body, requestHeaders } = { requestHeaders: {} },
5208
+ { responseHeaders } = { responseHeaders: false }
4997
5209
  ) {
4998
5210
  const {
4999
5211
  error,
@@ -5033,12 +5245,12 @@ class Content {
5033
5245
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/pages/publish/${slug}`,
5034
5246
  query_params,
5035
5247
  body,
5036
- undefined,
5037
- { headers }
5248
+ requestHeaders,
5249
+ { responseHeaders }
5038
5250
  );
5039
5251
 
5040
5252
  let responseData = response;
5041
- if (headers) {
5253
+ if (responseHeaders) {
5042
5254
  responseData = response[0];
5043
5255
  }
5044
5256
 
@@ -5063,6 +5275,7 @@ class Content {
5063
5275
  * @param {ContentPlatformApplicationValidator.UpdatePathRedirectionRulesParam} arg
5064
5276
  * - Arg object
5065
5277
  *
5278
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5066
5279
  * @param {import("../PlatformAPIClient").Options} - Options
5067
5280
  * @returns {Promise<ContentPlatformModel.PathMappingSchema>} - Success response
5068
5281
  * @name updatePathRedirectionRules
@@ -5070,8 +5283,8 @@ class Content {
5070
5283
  * @description: Use this API to update redirection rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updatePathRedirectionRules/).
5071
5284
  */
5072
5285
  async updatePathRedirectionRules(
5073
- { pathId, body } = {},
5074
- { headers } = { headers: false }
5286
+ { pathId, body, requestHeaders } = { requestHeaders: {} },
5287
+ { responseHeaders } = { responseHeaders: false }
5075
5288
  ) {
5076
5289
  const {
5077
5290
  error,
@@ -5111,12 +5324,12 @@ class Content {
5111
5324
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/path-mappings/${pathId}`,
5112
5325
  query_params,
5113
5326
  body,
5114
- undefined,
5115
- { headers }
5327
+ requestHeaders,
5328
+ { responseHeaders }
5116
5329
  );
5117
5330
 
5118
5331
  let responseData = response;
5119
- if (headers) {
5332
+ if (responseHeaders) {
5120
5333
  responseData = response[0];
5121
5334
  }
5122
5335
 
@@ -5141,6 +5354,7 @@ class Content {
5141
5354
  * @param {ContentPlatformApplicationValidator.UpdateSEOConfigurationParam} arg
5142
5355
  * - Arg object
5143
5356
  *
5357
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5144
5358
  * @param {import("../PlatformAPIClient").Options} - Options
5145
5359
  * @returns {Promise<ContentPlatformModel.SeoSchema>} - Success response
5146
5360
  * @name updateSEOConfiguration
@@ -5148,8 +5362,8 @@ class Content {
5148
5362
  * @description: Use this API to edit the SEO details of an application. This includes the sitemap, robot.txt, custom meta tags, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateSEOConfiguration/).
5149
5363
  */
5150
5364
  async updateSEOConfiguration(
5151
- { body } = {},
5152
- { headers } = { headers: false }
5365
+ { body, requestHeaders } = { requestHeaders: {} },
5366
+ { responseHeaders } = { responseHeaders: false }
5153
5367
  ) {
5154
5368
  const {
5155
5369
  error,
@@ -5187,12 +5401,12 @@ class Content {
5187
5401
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/seo`,
5188
5402
  query_params,
5189
5403
  body,
5190
- undefined,
5191
- { headers }
5404
+ requestHeaders,
5405
+ { responseHeaders }
5192
5406
  );
5193
5407
 
5194
5408
  let responseData = response;
5195
- if (headers) {
5409
+ if (responseHeaders) {
5196
5410
  responseData = response[0];
5197
5411
  }
5198
5412
 
@@ -5215,13 +5429,17 @@ class Content {
5215
5429
 
5216
5430
  /**
5217
5431
  * @param {ContentPlatformApplicationValidator.UpdateSlideshowParam} arg - Arg object
5432
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5218
5433
  * @param {import("../PlatformAPIClient").Options} - Options
5219
5434
  * @returns {Promise<ContentPlatformModel.SlideshowSchema>} - Success response
5220
5435
  * @name updateSlideshow
5221
5436
  * @summary: Update a slideshow
5222
5437
  * @description: Use this API to edit the details of an existing slideshow. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateSlideshow/).
5223
5438
  */
5224
- async updateSlideshow({ id, body } = {}, { headers } = { headers: false }) {
5439
+ async updateSlideshow(
5440
+ { id, body, requestHeaders } = { requestHeaders: {} },
5441
+ { responseHeaders } = { responseHeaders: false }
5442
+ ) {
5225
5443
  const {
5226
5444
  error,
5227
5445
  } = ContentPlatformApplicationValidator.updateSlideshow().validate(
@@ -5260,12 +5478,12 @@ class Content {
5260
5478
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/slideshows/${id}`,
5261
5479
  query_params,
5262
5480
  body,
5263
- undefined,
5264
- { headers }
5481
+ requestHeaders,
5482
+ { responseHeaders }
5265
5483
  );
5266
5484
 
5267
5485
  let responseData = response;
5268
- if (headers) {
5486
+ if (responseHeaders) {
5269
5487
  responseData = response[0];
5270
5488
  }
5271
5489
 
@@ -5290,6 +5508,7 @@ class Content {
5290
5508
  * @param {ContentPlatformApplicationValidator.UpdateSupportInformationParam} arg
5291
5509
  * - Arg object
5292
5510
  *
5511
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5293
5512
  * @param {import("../PlatformAPIClient").Options} - Options
5294
5513
  * @returns {Promise<ContentPlatformModel.Support>} - Success response
5295
5514
  * @name updateSupportInformation
@@ -5297,8 +5516,8 @@ class Content {
5297
5516
  * @description: Use this API to edit the existing contact details for customer support, including emails and phone numbers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/content/updateSupportInformation/).
5298
5517
  */
5299
5518
  async updateSupportInformation(
5300
- { body } = {},
5301
- { headers } = { headers: false }
5519
+ { body, requestHeaders } = { requestHeaders: {} },
5520
+ { responseHeaders } = { responseHeaders: false }
5302
5521
  ) {
5303
5522
  const {
5304
5523
  error,
@@ -5336,12 +5555,12 @@ class Content {
5336
5555
  `/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/support`,
5337
5556
  query_params,
5338
5557
  body,
5339
- undefined,
5340
- { headers }
5558
+ requestHeaders,
5559
+ { responseHeaders }
5341
5560
  );
5342
5561
 
5343
5562
  let responseData = response;
5344
- if (headers) {
5563
+ if (responseHeaders) {
5345
5564
  responseData = response[0];
5346
5565
  }
5347
5566