@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9

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 (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  111. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
  113. package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/PublicClient.d.ts +0 -4
  175. package/sdk/public/PublicClient.js +0 -8
  176. package/sdk/public/index.d.ts +0 -2
  177. package/sdk/public/index.js +0 -4
  178. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
  179. package/sdk/public/Billing/BillingPublicClient.js +0 -269
  180. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
  181. package/sdk/public/Billing/BillingPublicModel.js +0 -395
  182. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
  183. package/sdk/public/Billing/BillingPublicValidator.js +0 -38
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -5,24 +5,25 @@ export = ContentApplicationValidator;
5
5
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
6
6
  * a blog. You can get slug value from the endpoint
7
7
  * /service/application/content/v1.0/blogs/.
8
- * @property {string} [rootId] - ID given to the HTML element
8
+ * @property {string} [rootId] - ID given to the HTML element.
9
9
  */
10
10
  /**
11
11
  * @typedef GetBlogsParam
12
12
  * @property {number} [pageNo] - The page number to navigate through the given
13
- * set of results. Default value is 1.
13
+ * set of results. Default value is 1. .
14
14
  * @property {number} [pageSize] - The number of items to retrieve in each page.
15
15
  * @property {string} [tags] - Blogs retrieve based on the list of tags passed.
16
16
  * @property {string} [search] - Blogs retrieve based on the title.
17
17
  */
18
18
  /**
19
19
  * @typedef GetCustomFieldsParam
20
- * @property {string} resource
21
- * @property {string} resourceId
20
+ * @property {string} resource - This is the name of resource for which you want
21
+ * to fetch custom fields eg. product, collection, customer etc.
22
+ * @property {string} resourceId - This is the resource id for which custom fields created
22
23
  */
23
24
  /**
24
25
  * @typedef GetCustomObjectParam
25
- * @property {string} metaobjectId
26
+ * @property {string} metaobjectId - This is meta object id
26
27
  */
27
28
  /** @typedef GetDataLoadersParam */
28
29
  /**
@@ -50,7 +51,7 @@ export = ContentApplicationValidator;
50
51
  /**
51
52
  * @typedef GetNavigationsParam
52
53
  * @property {number} [pageNo] - The page number to navigate through the given
53
- * set of results. Default value is 1.
54
+ * set of results. Default value is 1. .
54
55
  * @property {number} [pageSize] - The number of items to retrieve in each page.
55
56
  */
56
57
  /**
@@ -58,19 +59,19 @@ export = ContentApplicationValidator;
58
59
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
59
60
  * a page. You can get slug value from the endpoint
60
61
  * /service/application/content/v2.0/pages/.
61
- * @property {string} [rootId] - ID given to the HTML element
62
+ * @property {string} [rootId] - ID given to the HTML element.
62
63
  */
63
64
  /**
64
65
  * @typedef GetPagesParam
65
66
  * @property {number} [pageNo] - The page number to navigate through the given
66
- * set of results. Default value is 1.
67
+ * set of results. Default value is 1. .
67
68
  * @property {number} [pageSize] - The number of items to retrieve in each page.
68
69
  */
69
70
  /** @typedef GetSEOConfigurationParam */
70
71
  /**
71
72
  * @typedef GetSEOMarkupSchemasParam
72
73
  * @property {string} [pageType] - The type of page against which schema
73
- * template was created
74
+ * template was created.
74
75
  * @property {boolean} [active] - Boolean value for fetching seo schema.
75
76
  */
76
77
  /**
@@ -82,7 +83,7 @@ export = ContentApplicationValidator;
82
83
  /**
83
84
  * @typedef GetSlideshowsParam
84
85
  * @property {number} [pageNo] - The page number to navigate through the given
85
- * set of results. Default value is 1.
86
+ * set of results. Default value is 1. .
86
87
  * @property {number} [pageSize] - The number of items to retrieve in each page.
87
88
  */
88
89
  /** @typedef GetSupportInformationParam */
@@ -144,14 +145,14 @@ type GetBlogParam = {
144
145
  */
145
146
  slug: string;
146
147
  /**
147
- * - ID given to the HTML element
148
+ * - ID given to the HTML element.
148
149
  */
149
150
  rootId?: string;
150
151
  };
151
152
  type GetBlogsParam = {
152
153
  /**
153
154
  * - The page number to navigate through the given
154
- * set of results. Default value is 1.
155
+ * set of results. Default value is 1. .
155
156
  */
156
157
  pageNo?: number;
157
158
  /**
@@ -168,10 +169,20 @@ type GetBlogsParam = {
168
169
  search?: string;
169
170
  };
170
171
  type GetCustomFieldsParam = {
172
+ /**
173
+ * - This is the name of resource for which you want
174
+ * to fetch custom fields eg. product, collection, customer etc.
175
+ */
171
176
  resource: string;
177
+ /**
178
+ * - This is the resource id for which custom fields created
179
+ */
172
180
  resourceId: string;
173
181
  };
174
182
  type GetCustomObjectParam = {
183
+ /**
184
+ * - This is meta object id
185
+ */
175
186
  metaobjectId: string;
176
187
  };
177
188
  type GetFaqBySlugParam = {
@@ -201,7 +212,7 @@ type GetFaqsByCategorySlugParam = {
201
212
  type GetNavigationsParam = {
202
213
  /**
203
214
  * - The page number to navigate through the given
204
- * set of results. Default value is 1.
215
+ * set of results. Default value is 1. .
205
216
  */
206
217
  pageNo?: number;
207
218
  /**
@@ -217,14 +228,14 @@ type GetPageParam = {
217
228
  */
218
229
  slug: string;
219
230
  /**
220
- * - ID given to the HTML element
231
+ * - ID given to the HTML element.
221
232
  */
222
233
  rootId?: string;
223
234
  };
224
235
  type GetPagesParam = {
225
236
  /**
226
237
  * - The page number to navigate through the given
227
- * set of results. Default value is 1.
238
+ * set of results. Default value is 1. .
228
239
  */
229
240
  pageNo?: number;
230
241
  /**
@@ -235,7 +246,7 @@ type GetPagesParam = {
235
246
  type GetSEOMarkupSchemasParam = {
236
247
  /**
237
248
  * - The type of page against which schema
238
- * template was created
249
+ * template was created.
239
250
  */
240
251
  pageType?: string;
241
252
  /**
@@ -254,7 +265,7 @@ type GetSlideshowParam = {
254
265
  type GetSlideshowsParam = {
255
266
  /**
256
267
  * - The page number to navigate through the given
257
- * set of results. Default value is 1.
268
+ * set of results. Default value is 1. .
258
269
  */
259
270
  pageNo?: number;
260
271
  /**
@@ -9,13 +9,13 @@ const ContentApplicationModel = require("./ContentApplicationModel");
9
9
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
10
10
  * a blog. You can get slug value from the endpoint
11
11
  * /service/application/content/v1.0/blogs/.
12
- * @property {string} [rootId] - ID given to the HTML element
12
+ * @property {string} [rootId] - ID given to the HTML element.
13
13
  */
14
14
 
15
15
  /**
16
16
  * @typedef GetBlogsParam
17
17
  * @property {number} [pageNo] - The page number to navigate through the given
18
- * set of results. Default value is 1.
18
+ * set of results. Default value is 1. .
19
19
  * @property {number} [pageSize] - The number of items to retrieve in each page.
20
20
  * @property {string} [tags] - Blogs retrieve based on the list of tags passed.
21
21
  * @property {string} [search] - Blogs retrieve based on the title.
@@ -23,13 +23,14 @@ const ContentApplicationModel = require("./ContentApplicationModel");
23
23
 
24
24
  /**
25
25
  * @typedef GetCustomFieldsParam
26
- * @property {string} resource
27
- * @property {string} resourceId
26
+ * @property {string} resource - This is the name of resource for which you want
27
+ * to fetch custom fields eg. product, collection, customer etc.
28
+ * @property {string} resourceId - This is the resource id for which custom fields created
28
29
  */
29
30
 
30
31
  /**
31
32
  * @typedef GetCustomObjectParam
32
- * @property {string} metaobjectId
33
+ * @property {string} metaobjectId - This is meta object id
33
34
  */
34
35
 
35
36
  /** @typedef GetDataLoadersParam */
@@ -66,7 +67,7 @@ const ContentApplicationModel = require("./ContentApplicationModel");
66
67
  /**
67
68
  * @typedef GetNavigationsParam
68
69
  * @property {number} [pageNo] - The page number to navigate through the given
69
- * set of results. Default value is 1.
70
+ * set of results. Default value is 1. .
70
71
  * @property {number} [pageSize] - The number of items to retrieve in each page.
71
72
  */
72
73
 
@@ -75,13 +76,13 @@ const ContentApplicationModel = require("./ContentApplicationModel");
75
76
  * @property {string} slug - A short, human-readable, URL-friendly identifier of
76
77
  * a page. You can get slug value from the endpoint
77
78
  * /service/application/content/v2.0/pages/.
78
- * @property {string} [rootId] - ID given to the HTML element
79
+ * @property {string} [rootId] - ID given to the HTML element.
79
80
  */
80
81
 
81
82
  /**
82
83
  * @typedef GetPagesParam
83
84
  * @property {number} [pageNo] - The page number to navigate through the given
84
- * set of results. Default value is 1.
85
+ * set of results. Default value is 1. .
85
86
  * @property {number} [pageSize] - The number of items to retrieve in each page.
86
87
  */
87
88
 
@@ -90,7 +91,7 @@ const ContentApplicationModel = require("./ContentApplicationModel");
90
91
  /**
91
92
  * @typedef GetSEOMarkupSchemasParam
92
93
  * @property {string} [pageType] - The type of page against which schema
93
- * template was created
94
+ * template was created.
94
95
  * @property {boolean} [active] - Boolean value for fetching seo schema.
95
96
  */
96
97
 
@@ -104,7 +105,7 @@ const ContentApplicationModel = require("./ContentApplicationModel");
104
105
  /**
105
106
  * @typedef GetSlideshowsParam
106
107
  * @property {number} [pageNo] - The page number to navigate through the given
107
- * set of results. Default value is 1.
108
+ * set of results. Default value is 1. .
108
109
  * @property {number} [pageSize] - The number of items to retrieve in each page.
109
110
  */
110
111
 
@@ -16,7 +16,7 @@ declare class FileStorage {
16
16
  * @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
17
17
  * @name completeUpload
18
18
  * @summary: Complete file upload
19
- * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
19
+ * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
20
20
  */
21
21
  completeUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.CompleteUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.CompleteResponse>;
22
22
  /**
@@ -35,8 +35,8 @@ declare class FileStorage {
35
35
  * @param {import("../ApplicationAPIClient").Options} - Options
36
36
  * @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
37
37
  * @name startUpload
38
- * @summary: Initiate file upload
39
- * @description: Get a signed url for uploading a file - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
38
+ * @summary: Initiates file upload
39
+ * @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
40
40
  */
41
41
  startUpload({ namespace, body, requestHeaders }?: FileStorageApplicationValidator.StartUploadParam, { responseHeaders }?: object): Promise<FileStorageApplicationModel.StartResponse>;
42
42
  /**
@@ -44,7 +44,7 @@ class FileStorage {
44
44
  * @returns {Promise<FileStorageApplicationModel.CompleteResponse>} - Success response
45
45
  * @name completeUpload
46
46
  * @summary: Complete file upload
47
- * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
47
+ * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
48
48
  */
49
49
  async completeUpload(
50
50
  { namespace, body, requestHeaders } = { requestHeaders: {} },
@@ -199,8 +199,8 @@ class FileStorage {
199
199
  * @param {import("../ApplicationAPIClient").Options} - Options
200
200
  * @returns {Promise<FileStorageApplicationModel.StartResponse>} - Success response
201
201
  * @name startUpload
202
- * @summary: Initiate file upload
203
- * @description: Get a signed url for uploading a file - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
202
+ * @summary: Initiates file upload
203
+ * @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
204
204
  */
205
205
  async startUpload(
206
206
  { namespace, body, requestHeaders } = { requestHeaders: {} },
@@ -1,75 +1,77 @@
1
1
  export = FileStorageApplicationModel;
2
2
  /**
3
3
  * @typedef CDN
4
- * @property {string} url
5
- * @property {string} absolute_url
6
- * @property {string} relative_url
4
+ * @property {string} url - The CDN URL for accessing the file.
5
+ * @property {string} absolute_url - The absolute URL of the file.
6
+ * @property {string} relative_url - The relative URL of the file.
7
7
  */
8
8
  /**
9
9
  * @typedef Upload
10
- * @property {number} expiry
11
- * @property {string} url
10
+ * @property {number} expiry - The expiration time for the signed URL.
11
+ * @property {string} url - The signed URL for uploading the file.
12
12
  */
13
13
  /**
14
14
  * @typedef StartResponse
15
- * @property {string} file_name
16
- * @property {string} file_path
17
- * @property {string} content_type
18
- * @property {string} [method]
19
- * @property {string} namespace
20
- * @property {string} operation
21
- * @property {number} size
15
+ * @property {string} file_name - The name of the file that was uploaded.
16
+ * @property {string} file_path - The path to the file in the storage location.
17
+ * @property {string} content_type - The content type of the file.
18
+ * @property {string} [method] - The HTTP method to be used for uploading the file.
19
+ * @property {string} namespace - The namespace associated with the file.
20
+ * @property {string} operation - The operation to be performed on the storage service.
21
+ * @property {number} size - The size of the file in bytes.
22
22
  * @property {Upload} upload
23
23
  * @property {CDN} cdn
24
- * @property {string[]} [tags]
24
+ * @property {string[]} [tags] - Tags associated with the file.
25
25
  */
26
26
  /**
27
27
  * @typedef Params
28
- * @property {string} [subpath] - The subpath for the file.
28
+ * @property {string} [subpath] - Specifies a particular directory or location
29
+ * within the storage structure where the file should be placed or is located.
29
30
  */
30
31
  /**
31
32
  * @typedef StartRequest
32
- * @property {string} file_name
33
- * @property {string} content_type
34
- * @property {number} size
35
- * @property {string[]} [tags]
33
+ * @property {string} file_name - The name of the file to be uploaded.
34
+ * @property {string} content_type - The name of the file to be uploaded.
35
+ * @property {number} size - The size of the file in bytes.
36
+ * @property {string[]} [tags] - Tags associated with the file.
36
37
  * @property {Params} [params]
37
38
  */
38
39
  /**
39
40
  * @typedef CreatedBy
40
- * @property {string} [username]
41
+ * @property {string} [username] - The username of the user who created the file.
41
42
  */
42
43
  /**
43
44
  * @typedef CompleteResponse
44
- * @property {string} _id
45
- * @property {string} file_name
46
- * @property {string} file_path
47
- * @property {string} content_type
48
- * @property {string} namespace
49
- * @property {string} operation
50
- * @property {number} size
45
+ * @property {string} _id - The unique identifier of the uploaded file.
46
+ * @property {string} file_name - The name of the file that was uploaded.
47
+ * @property {string} file_path - The path to the file in the storage location.
48
+ * @property {string} content_type - The content type of the file.
49
+ * @property {string} namespace - The namespace associated with the file.
50
+ * @property {string} operation - The operation performed on the storage service.
51
+ * @property {number} size - The size of the file in bytes.
51
52
  * @property {Upload} upload
52
53
  * @property {CDN} cdn
53
- * @property {boolean} success
54
- * @property {string[]} [tags]
55
- * @property {string} created_on
56
- * @property {string} modified_on
54
+ * @property {boolean} success - The success status of the upload operation.
55
+ * @property {string[]} [tags] - Tags associated with the file.
56
+ * @property {string} created_on - The timestamp when the file was created.
57
+ * @property {string} modified_on - The timestamp when the file was last modified.
57
58
  * @property {CreatedBy} [created_by]
58
59
  */
59
60
  /**
60
61
  * @typedef Urls
61
- * @property {string} url
62
- * @property {string} signed_url
63
- * @property {number} expiry
62
+ * @property {string} url - This is the original asset URL provided in the
63
+ * request. This is the URL for which a signed URL has been generated.
64
+ * @property {string} signed_url - Generated signed URL.
65
+ * @property {number} expiry - The expiration time for the signed URL.
64
66
  */
65
67
  /**
66
68
  * @typedef SignUrlResponse
67
- * @property {Urls[]} urls
69
+ * @property {Urls[]} urls - Signed URL object.
68
70
  */
69
71
  /**
70
72
  * @typedef SignUrlRequest
71
- * @property {number} expiry
72
- * @property {string[]} urls
73
+ * @property {number} expiry - The expiration time for the signed URL.
74
+ * @property {string[]} urls - List of asset URLs to be signed. .
73
75
  */
74
76
  declare class FileStorageApplicationModel {
75
77
  }
@@ -79,85 +81,192 @@ declare namespace FileStorageApplicationModel {
79
81
  /** @returns {CDN} */
80
82
  declare function CDN(): CDN;
81
83
  type CDN = {
84
+ /**
85
+ * - The CDN URL for accessing the file.
86
+ */
82
87
  url: string;
88
+ /**
89
+ * - The absolute URL of the file.
90
+ */
83
91
  absolute_url: string;
92
+ /**
93
+ * - The relative URL of the file.
94
+ */
84
95
  relative_url: string;
85
96
  };
86
97
  /** @returns {Upload} */
87
98
  declare function Upload(): Upload;
88
99
  type Upload = {
100
+ /**
101
+ * - The expiration time for the signed URL.
102
+ */
89
103
  expiry: number;
104
+ /**
105
+ * - The signed URL for uploading the file.
106
+ */
90
107
  url: string;
91
108
  };
92
109
  /** @returns {StartResponse} */
93
110
  declare function StartResponse(): StartResponse;
94
111
  type StartResponse = {
112
+ /**
113
+ * - The name of the file that was uploaded.
114
+ */
95
115
  file_name: string;
116
+ /**
117
+ * - The path to the file in the storage location.
118
+ */
96
119
  file_path: string;
120
+ /**
121
+ * - The content type of the file.
122
+ */
97
123
  content_type: string;
124
+ /**
125
+ * - The HTTP method to be used for uploading the file.
126
+ */
98
127
  method?: string;
128
+ /**
129
+ * - The namespace associated with the file.
130
+ */
99
131
  namespace: string;
132
+ /**
133
+ * - The operation to be performed on the storage service.
134
+ */
100
135
  operation: string;
136
+ /**
137
+ * - The size of the file in bytes.
138
+ */
101
139
  size: number;
102
140
  upload: Upload;
103
141
  cdn: CDN;
142
+ /**
143
+ * - Tags associated with the file.
144
+ */
104
145
  tags?: string[];
105
146
  };
106
147
  /** @returns {Params} */
107
148
  declare function Params(): Params;
108
149
  type Params = {
109
150
  /**
110
- * - The subpath for the file.
151
+ * - Specifies a particular directory or location
152
+ * within the storage structure where the file should be placed or is located.
111
153
  */
112
154
  subpath?: string;
113
155
  };
114
156
  /** @returns {StartRequest} */
115
157
  declare function StartRequest(): StartRequest;
116
158
  type StartRequest = {
159
+ /**
160
+ * - The name of the file to be uploaded.
161
+ */
117
162
  file_name: string;
163
+ /**
164
+ * - The name of the file to be uploaded.
165
+ */
118
166
  content_type: string;
167
+ /**
168
+ * - The size of the file in bytes.
169
+ */
119
170
  size: number;
171
+ /**
172
+ * - Tags associated with the file.
173
+ */
120
174
  tags?: string[];
121
175
  params?: Params;
122
176
  };
123
177
  /** @returns {CreatedBy} */
124
178
  declare function CreatedBy(): CreatedBy;
125
179
  type CreatedBy = {
180
+ /**
181
+ * - The username of the user who created the file.
182
+ */
126
183
  username?: string;
127
184
  };
128
185
  /** @returns {CompleteResponse} */
129
186
  declare function CompleteResponse(): CompleteResponse;
130
187
  type CompleteResponse = {
188
+ /**
189
+ * - The unique identifier of the uploaded file.
190
+ */
131
191
  _id: string;
192
+ /**
193
+ * - The name of the file that was uploaded.
194
+ */
132
195
  file_name: string;
196
+ /**
197
+ * - The path to the file in the storage location.
198
+ */
133
199
  file_path: string;
200
+ /**
201
+ * - The content type of the file.
202
+ */
134
203
  content_type: string;
204
+ /**
205
+ * - The namespace associated with the file.
206
+ */
135
207
  namespace: string;
208
+ /**
209
+ * - The operation performed on the storage service.
210
+ */
136
211
  operation: string;
212
+ /**
213
+ * - The size of the file in bytes.
214
+ */
137
215
  size: number;
138
216
  upload: Upload;
139
217
  cdn: CDN;
218
+ /**
219
+ * - The success status of the upload operation.
220
+ */
140
221
  success: boolean;
222
+ /**
223
+ * - Tags associated with the file.
224
+ */
141
225
  tags?: string[];
226
+ /**
227
+ * - The timestamp when the file was created.
228
+ */
142
229
  created_on: string;
230
+ /**
231
+ * - The timestamp when the file was last modified.
232
+ */
143
233
  modified_on: string;
144
234
  created_by?: CreatedBy;
145
235
  };
146
236
  /** @returns {Urls} */
147
237
  declare function Urls(): Urls;
148
238
  type Urls = {
239
+ /**
240
+ * - This is the original asset URL provided in the
241
+ * request. This is the URL for which a signed URL has been generated.
242
+ */
149
243
  url: string;
244
+ /**
245
+ * - Generated signed URL.
246
+ */
150
247
  signed_url: string;
248
+ /**
249
+ * - The expiration time for the signed URL.
250
+ */
151
251
  expiry: number;
152
252
  };
153
253
  /** @returns {SignUrlResponse} */
154
254
  declare function SignUrlResponse(): SignUrlResponse;
155
255
  type SignUrlResponse = {
256
+ /**
257
+ * - Signed URL object.
258
+ */
156
259
  urls: Urls[];
157
260
  };
158
261
  /** @returns {SignUrlRequest} */
159
262
  declare function SignUrlRequest(): SignUrlRequest;
160
263
  type SignUrlRequest = {
264
+ /**
265
+ * - The expiration time for the signed URL.
266
+ */
161
267
  expiry: number;
268
+ /**
269
+ * - List of asset URLs to be signed. .
270
+ */
162
271
  urls: string[];
163
272
  };