@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10

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 (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -11,13 +11,8 @@ const Joi = require("joi");
11
11
  * @typedef ActionPage
12
12
  * @property {Object} [params]
13
13
  * @property {Object} [query]
14
- * @property {PageType} type
15
14
  * @property {string} [url]
16
- */
17
-
18
- /**
19
- * @typedef AllowSingleRequest
20
- * @property {boolean} allow_single
15
+ * @property {PageType} type
21
16
  */
22
17
 
23
18
  /**
@@ -32,6 +27,11 @@ const Joi = require("joi");
32
27
  * @property {string} size
33
28
  */
34
29
 
30
+ /**
31
+ * @typedef AllowSingleRequest
32
+ * @property {boolean} allow_single
33
+ */
34
+
35
35
  /**
36
36
  * @typedef AppCatalogConfiguration
37
37
  * @property {string} app_id
@@ -133,6 +133,14 @@ const Joi = require("joi");
133
133
  * @property {Page} page
134
134
  */
135
135
 
136
+ /**
137
+ * @typedef ApplicationItemMOQ
138
+ * @property {number} [increment_unit] - The minimum quantity increment in which
139
+ * the item can be purchased.
140
+ * @property {number} [maximum] - The maximum quantity allowed for purchase.
141
+ * @property {number} [minimum] - The minimum quantity required for purchase.
142
+ */
143
+
136
144
  /**
137
145
  * @typedef ApplicationItemMeta
138
146
  * @property {Object} [_custom_json] - Custom JSON data for the item
@@ -148,44 +156,12 @@ const Joi = require("joi");
148
156
  * promotion limitation information for item
149
157
  */
150
158
 
151
- /**
152
- * @typedef ApplicationItemMOQ
153
- * @property {number} [increment_unit] - The minimum quantity increment in which
154
- * the item can be purchased.
155
- * @property {number} [maximum] - The maximum quantity allowed for purchase.
156
- * @property {number} [minimum] - The minimum quantity required for purchase.
157
- */
158
-
159
159
  /**
160
160
  * @typedef ApplicationItemSEO
161
161
  * @property {string} [description] - The SEO description of the item
162
162
  * @property {string} [title] - The SEO title of the item
163
163
  */
164
164
 
165
- /**
166
- * @typedef ApplicationItemSeoAction
167
- * @property {Object} [page]
168
- * @property {string} [type]
169
- */
170
-
171
- /**
172
- * @typedef ApplicationItemSeoBreadcrumbs
173
- * @property {ApplicationItemSeoAction[]} [action]
174
- * @property {string} [url]
175
- */
176
-
177
- /**
178
- * @typedef ApplicationItemSeoMetaTagItem
179
- * @property {string} [key]
180
- * @property {string} [value]
181
- */
182
-
183
- /**
184
- * @typedef ApplicationItemSeoMetaTags
185
- * @property {ApplicationItemSeoMetaTagItem[]} [items]
186
- * @property {string} [title]
187
- */
188
-
189
165
  /**
190
166
  * @typedef ApplicationProductListingResponse
191
167
  * @property {ProductFilters[]} [filters]
@@ -336,16 +312,16 @@ const Joi = require("joi");
336
312
  */
337
313
 
338
314
  /**
339
- * @typedef AutocompleteAction
340
- * @property {AutocompletePageAction} [page]
315
+ * @typedef AutoCompleteMedia
316
+ * @property {string} [aspect_ratio]
341
317
  * @property {string} [type]
318
+ * @property {string} [url]
342
319
  */
343
320
 
344
321
  /**
345
- * @typedef AutoCompleteMedia
346
- * @property {string} [aspect_ratio]
322
+ * @typedef AutocompleteAction
323
+ * @property {AutocompletePageAction} [page]
347
324
  * @property {string} [type]
348
- * @property {string} [url]
349
325
  */
350
326
 
351
327
  /**
@@ -655,6 +631,7 @@ const Joi = require("joi");
655
631
 
656
632
  /**
657
633
  * @typedef CollectionCreateResponse
634
+ * @property {string} [uid]
658
635
  * @property {Object} [_schedule]
659
636
  * @property {boolean} [allow_facets]
660
637
  * @property {boolean} [allow_sort]
@@ -673,7 +650,6 @@ const Joi = require("joi");
673
650
  * @property {string} [sort_on]
674
651
  * @property {string[]} [tag]
675
652
  * @property {string} [type]
676
- * @property {string} [uid]
677
653
  * @property {string[]} [visible_facets_keys]
678
654
  */
679
655
 
@@ -713,13 +689,6 @@ const Joi = require("joi");
713
689
  * @property {number} [priority]
714
690
  */
715
691
 
716
- /**
717
- * @typedef CollectionItemSchemaV2
718
- * @property {string} action
719
- * @property {number} item_id
720
- * @property {number} [priority]
721
- */
722
-
723
692
  /**
724
693
  * @typedef CollectionItemUpdate
725
694
  * @property {boolean} [allow_facets]
@@ -730,16 +699,6 @@ const Joi = require("joi");
730
699
  * @property {string[]} [visible_facets_keys]
731
700
  */
732
701
 
733
- /**
734
- * @typedef CollectionItemUpdateSchemaV2
735
- * @property {boolean} [allow_facets]
736
- * @property {boolean} [allow_sort]
737
- * @property {CollectionItemSchemaV2[]} [items]
738
- * @property {CollectionQuerySchemaV2[]} [query]
739
- * @property {string} type
740
- * @property {string[]} [visible_facets_keys]
741
- */
742
-
743
702
  /**
744
703
  * @typedef CollectionListingFilter
745
704
  * @property {CollectionListingFilterTag[]} [tags]
@@ -768,14 +727,6 @@ const Joi = require("joi");
768
727
  * @property {Object[]} value - The value of the attribute of the collection query
769
728
  */
770
729
 
771
- /**
772
- * @typedef CollectionQuerySchemaV2
773
- * @property {string} attribute - The attribute of the collection query
774
- * @property {string} op - The operation to be performed on the attribute of the
775
- * collection query
776
- * @property {Object[]} value - The value of the attribute of the collection query
777
- */
778
-
779
730
  /**
780
731
  * @typedef CollectionSchedule
781
732
  * @property {string} [cron]
@@ -785,11 +736,6 @@ const Joi = require("joi");
785
736
  * @property {string} [start]
786
737
  */
787
738
 
788
- /**
789
- * @typedef CommonResponseSchemaCollection
790
- * @property {string} [message]
791
- */
792
-
793
739
  /**
794
740
  * @typedef CompanyBrandDetail
795
741
  * @property {number} [brand_id]
@@ -973,12 +919,6 @@ const Joi = require("joi");
973
919
  * @property {string[]} [visible_facets_keys]
974
920
  */
975
921
 
976
- /**
977
- * @typedef CreatedBy
978
- * @property {string} [user_id]
979
- * @property {string} [username]
980
- */
981
-
982
922
  /**
983
923
  * @typedef CreateSearchConfigurationRequest
984
924
  * @property {string} application_id - The application id where custom search
@@ -1211,6 +1151,85 @@ const Joi = require("joi");
1211
1151
  * @property {string} [value]
1212
1152
  */
1213
1153
 
1154
+ /**
1155
+ * @typedef RawProduct
1156
+ * @property {Object} [_custom_json]
1157
+ * @property {number[]} [all_company_ids]
1158
+ * @property {string[]} [all_identifiers]
1159
+ * @property {Object[]} [all_sizes]
1160
+ * @property {Object} [attributes]
1161
+ * @property {Brand} [brand]
1162
+ * @property {number} [brand_uid]
1163
+ * @property {Object} [category]
1164
+ * @property {string} [category_slug]
1165
+ * @property {number} [category_uid]
1166
+ * @property {string} [color]
1167
+ * @property {number} [company_id]
1168
+ * @property {string} [country_of_origin]
1169
+ * @property {Object} [created_by]
1170
+ * @property {string} [created_on]
1171
+ * @property {string} [currency]
1172
+ * @property {Object} [custom_order]
1173
+ * @property {number[]} [departments]
1174
+ * @property {string} [description]
1175
+ * @property {string[]} [highlights]
1176
+ * @property {string} [hsn_code]
1177
+ * @property {string} [id]
1178
+ * @property {string} [image_nature]
1179
+ * @property {string[]} [images]
1180
+ * @property {boolean} [is_active]
1181
+ * @property {boolean} [is_dependent]
1182
+ * @property {boolean} [is_expirable]
1183
+ * @property {boolean} [is_image_less_product]
1184
+ * @property {boolean} [is_physical]
1185
+ * @property {boolean} [is_set]
1186
+ * @property {string} [item_code]
1187
+ * @property {string} [item_type]
1188
+ * @property {string[]} [l3_mapping]
1189
+ * @property {Media[]} [media]
1190
+ * @property {Object} [modified_by]
1191
+ * @property {string} [modified_on]
1192
+ * @property {Object} [moq]
1193
+ * @property {boolean} [multi_size]
1194
+ * @property {string} [name]
1195
+ * @property {NetQuantityResponse} [net_quantity]
1196
+ * @property {number} [no_of_boxes]
1197
+ * @property {string} [pending]
1198
+ * @property {string} [primary_color]
1199
+ * @property {string[]} [product_group_tag]
1200
+ * @property {ProductPublished} [product_publish]
1201
+ * @property {ReturnConfigResponse} [return_config]
1202
+ * @property {string} [short_description]
1203
+ * @property {string} [size_guide]
1204
+ * @property {Object[]} [sizes]
1205
+ * @property {string} [slug]
1206
+ * @property {string} [stage]
1207
+ * @property {string[]} [tags]
1208
+ * @property {Object} [tax_identifier]
1209
+ * @property {Object} [teaser_tag]
1210
+ * @property {string} [template_tag]
1211
+ * @property {Trader[]} [trader]
1212
+ * @property {number} [uid]
1213
+ * @property {Object} [variant_group]
1214
+ * @property {Object} [variant_media]
1215
+ * @property {Object} [variants]
1216
+ * @property {VerifiedBy} [verified_by]
1217
+ * @property {string} [verified_on]
1218
+ */
1219
+
1220
+ /**
1221
+ * @typedef RawProductListingResponse
1222
+ * @property {RawProduct[]} [items]
1223
+ * @property {Page} [page]
1224
+ */
1225
+
1226
+ /**
1227
+ * @typedef GTIN
1228
+ * @property {string} gtin_type
1229
+ * @property {string} gtin_value
1230
+ * @property {boolean} [primary]
1231
+ */
1232
+
1214
1233
  /**
1215
1234
  * @typedef GenderDetail
1216
1235
  * @property {string[]} [departments]
@@ -1229,9 +1248,9 @@ const Joi = require("joi");
1229
1248
 
1230
1249
  /**
1231
1250
  * @typedef GetAddressSerializer
1232
- * @property {string} [address_type]
1233
1251
  * @property {string} [address1]
1234
1252
  * @property {string} [address2]
1253
+ * @property {string} [address_type]
1235
1254
  * @property {string} [city]
1236
1255
  * @property {string} [country]
1237
1256
  * @property {string} [country_code]
@@ -1242,12 +1261,6 @@ const Joi = require("joi");
1242
1261
  * @property {string} [state]
1243
1262
  */
1244
1263
 
1245
- /**
1246
- * @typedef GetAllMarketplaces
1247
- * @property {Marketplaces[]} [items]
1248
- * @property {Page} [page]
1249
- */
1250
-
1251
1264
  /**
1252
1265
  * @typedef GetAllSizes
1253
1266
  * @property {AllSizes[]} [all_sizes]
@@ -1324,35 +1337,6 @@ const Joi = require("joi");
1324
1337
  * @property {string[]} [visible_facets_keys]
1325
1338
  */
1326
1339
 
1327
- /**
1328
- * @typedef GetCollectionDetailResponse
1329
- * @property {Object} [_custom_json]
1330
- * @property {Object} [_locale_language]
1331
- * @property {CollectionSchedule} [_schedule]
1332
- * @property {Object} [action]
1333
- * @property {boolean} [allow_facets]
1334
- * @property {boolean} [allow_sort]
1335
- * @property {string} [app_id]
1336
- * @property {CollectionBadge} [badge]
1337
- * @property {ImageUrls} [banners]
1338
- * @property {string} [description]
1339
- * @property {boolean} [is_active]
1340
- * @property {boolean} [is_visible]
1341
- * @property {Media} [logo]
1342
- * @property {Object} [meta]
1343
- * @property {string} [name]
1344
- * @property {number} [priority]
1345
- * @property {boolean} [published]
1346
- * @property {CollectionQuery[]} [query]
1347
- * @property {SeoDetail} [seo]
1348
- * @property {string} [slug]
1349
- * @property {string} [sort_on]
1350
- * @property {string[]} [tags]
1351
- * @property {string} [type]
1352
- * @property {string} [uid]
1353
- * @property {string[]} [visible_facets_keys]
1354
- */
1355
-
1356
1340
  /**
1357
1341
  * @typedef GetCollectionItemsResponse
1358
1342
  * @property {ProductFilters[]} [filters]
@@ -1361,12 +1345,6 @@ const Joi = require("joi");
1361
1345
  * @property {ProductSortOn[]} [sort_on]
1362
1346
  */
1363
1347
 
1364
- /**
1365
- * @typedef GetCollectionItemsResponseSchemaV2
1366
- * @property {ProductDetailV2[]} [items]
1367
- * @property {Page1} [page]
1368
- */
1369
-
1370
1348
  /**
1371
1349
  * @typedef GetCollectionListingResponse
1372
1350
  * @property {CollectionListingFilter} [filters]
@@ -1402,7 +1380,6 @@ const Joi = require("joi");
1402
1380
  * @typedef GetConfigMetadataResponse
1403
1381
  * @property {Object[]} [condition]
1404
1382
  * @property {Object[]} data
1405
- * @property {Page} [page]
1406
1383
  * @property {Object[]} [values]
1407
1384
  */
1408
1385
 
@@ -1558,13 +1535,6 @@ const Joi = require("joi");
1558
1535
  * @property {Size[]} [sizes]
1559
1536
  */
1560
1537
 
1561
- /**
1562
- * @typedef GetQueryFiltersResponse
1563
- * @property {ProductFilters[]} [filters]
1564
- * @property {Object} operators
1565
- * @property {ProductSortOn[]} [sort_on]
1566
- */
1567
-
1568
1538
  /**
1569
1539
  * @typedef GetSearchConfigurationResponse
1570
1540
  * @property {string} application_id - The application id where custom search
@@ -1618,15 +1588,35 @@ const Joi = require("joi");
1618
1588
  */
1619
1589
 
1620
1590
  /**
1621
- * @typedef GTIN
1622
- * @property {string} gtin_type
1623
- * @property {string} gtin_value
1624
- * @property {boolean} [primary]
1591
+ * @typedef Guide
1592
+ * @property {Meta} [meta]
1625
1593
  */
1626
1594
 
1627
1595
  /**
1628
- * @typedef Guide
1629
- * @property {Meta} [meta]
1596
+ * @typedef HSNCodesResponse
1597
+ * @property {HSNData} [data]
1598
+ * @property {string} [message]
1599
+ */
1600
+
1601
+ /**
1602
+ * @typedef HSNData
1603
+ * @property {string[]} [country_of_origin]
1604
+ * @property {string[]} [hsn_code]
1605
+ */
1606
+
1607
+ /**
1608
+ * @typedef HSNDataInsertV2
1609
+ * @property {string} country_code - Country code.
1610
+ * @property {Object} [created_by] - Details of the user who created the HSN data.
1611
+ * @property {string} [created_on] - Date and time when the HSN data was created.
1612
+ * @property {string} description - Description of the HSN data.
1613
+ * @property {string} hsn_code - HSN code.
1614
+ * @property {string} [hsn_code_id] - Unique identifier of the HSN code.
1615
+ * @property {Object} [modified_by] - Details of the user who last modified the HSN data.
1616
+ * @property {string} [modified_on] - Date and time when the HSN data was last modified.
1617
+ * @property {string} reporting_hsn - HSN code.
1618
+ * @property {TaxSlab[]} taxes - List of tax slabs.
1619
+ * @property {string} type - Type of HSN data (goods or services).
1630
1620
  */
1631
1621
 
1632
1622
  /**
@@ -1658,51 +1648,24 @@ const Joi = require("joi");
1658
1648
  * @property {string} [id] - The identifier of the HSN code.
1659
1649
  * @property {string} [modified_on] - The date and time when the HSN code was
1660
1650
  * last modified.
1661
- * @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
1662
- * @property {boolean} [tax_on_mrp] - Flag indicating whether tax is applicable on MRP.
1663
1651
  * @property {number} [tax1] - The first tax rate.
1664
1652
  * @property {number} [tax2] - The second tax rate.
1653
+ * @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
1654
+ * @property {boolean} [tax_on_mrp] - Flag indicating whether tax is applicable on MRP.
1665
1655
  * @property {number} [threshold1] - The threshold for the first tax rate.
1666
1656
  * @property {number} [threshold2] - The threshold for the second tax rate.
1667
1657
  */
1668
1658
 
1669
- /**
1670
- * @typedef HSNCodesResponse
1671
- * @property {HSNData} [data]
1672
- * @property {string} [message]
1673
- */
1674
-
1675
- /**
1676
- * @typedef HSNData
1677
- * @property {string[]} [country_of_origin]
1678
- * @property {string[]} [hsn_code]
1679
- */
1680
-
1681
- /**
1682
- * @typedef HSNDataInsertV2
1683
- * @property {string} country_code - Country code.
1684
- * @property {Object} [created_by] - Details of the user who created the HSN data.
1685
- * @property {string} [created_on] - Date and time when the HSN data was created.
1686
- * @property {string} description - Description of the HSN data.
1687
- * @property {string} hsn_code - HSN code.
1688
- * @property {string} [hsn_code_id] - Unique identifier of the HSN code.
1689
- * @property {Object} [modified_by] - Details of the user who last modified the HSN data.
1690
- * @property {string} [modified_on] - Date and time when the HSN data was last modified.
1691
- * @property {string} reporting_hsn - HSN code.
1692
- * @property {TaxSlab[]} taxes - List of tax slabs.
1693
- * @property {string} type - Type of HSN data (goods or services).
1694
- */
1695
-
1696
1659
  /**
1697
1660
  * @typedef HsnUpsert
1698
1661
  * @property {number} company_id - The ID of the company.
1699
1662
  * @property {string} hs2_code - The HS2 code.
1700
1663
  * @property {string} hsn_code - The HSN code.
1701
1664
  * @property {boolean} [is_active] - Flag indicating whether the entry is active.
1702
- * @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
1703
- * @property {boolean} tax_on_mrp - Flag indicating whether tax is applicable on MRP.
1704
1665
  * @property {number} tax1 - The first tax rate.
1705
1666
  * @property {number} [tax2] - The second tax rate.
1667
+ * @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
1668
+ * @property {boolean} tax_on_mrp - Flag indicating whether tax is applicable on MRP.
1706
1669
  * @property {number} threshold1 - The threshold for the first tax rate.
1707
1670
  * @property {number} [threshold2] - The threshold for the second tax rate.
1708
1671
  * @property {number} [uid] - The unique identifier.
@@ -1722,6 +1685,29 @@ const Joi = require("joi");
1722
1685
  * @property {BannerImage} [portrait]
1723
1686
  */
1724
1687
 
1688
+ /**
1689
+ * @typedef InvSize
1690
+ * @property {string} currency - The currency used for the item price.
1691
+ * @property {string} [expiration_date]
1692
+ * @property {GTIN[]} identifiers
1693
+ * @property {boolean} [is_set]
1694
+ * @property {string} [item_dimensions_unit_of_measure] - The unit of measure
1695
+ * for the item dimensions.
1696
+ * @property {number} [item_height] - The height of the item.
1697
+ * @property {number} [item_length] - The length of the item.
1698
+ * @property {number} [item_weight] - The weight of the item.
1699
+ * @property {string} [item_weight_unit_of_measure] - The unit of measure for
1700
+ * the item weight.
1701
+ * @property {number} [item_width] - The width of the item.
1702
+ * @property {number} [price]
1703
+ * @property {number} price_effective
1704
+ * @property {number} [price_transfer]
1705
+ * @property {number} quantity
1706
+ * @property {InventorySet} [set]
1707
+ * @property {string} size
1708
+ * @property {string} store_code
1709
+ */
1710
+
1725
1711
  /**
1726
1712
  * @typedef InventoryBulkRequest
1727
1713
  * @property {string} batch_id
@@ -2026,29 +2012,6 @@ const Joi = require("joi");
2026
2012
  * @property {InvoiceCredSerializer} [e_waybill]
2027
2013
  */
2028
2014
 
2029
- /**
2030
- * @typedef InvSize
2031
- * @property {string} currency - The currency used for the item price.
2032
- * @property {string} [expiration_date]
2033
- * @property {GTIN[]} identifiers
2034
- * @property {boolean} [is_set]
2035
- * @property {string} [item_dimensions_unit_of_measure] - The unit of measure
2036
- * for the item dimensions.
2037
- * @property {number} [item_height] - The height of the item.
2038
- * @property {number} [item_length] - The length of the item.
2039
- * @property {number} [item_weight] - The weight of the item.
2040
- * @property {string} [item_weight_unit_of_measure] - The unit of measure for
2041
- * the item weight.
2042
- * @property {number} [item_width] - The width of the item.
2043
- * @property {number} [price]
2044
- * @property {number} price_effective
2045
- * @property {number} [price_transfer]
2046
- * @property {number} quantity
2047
- * @property {InventorySet} [set]
2048
- * @property {string} size
2049
- * @property {string} store_code
2050
- */
2051
-
2052
2015
  /**
2053
2016
  * @typedef ItemQuery
2054
2017
  * @property {number} [brand_uid]
@@ -2140,6 +2103,13 @@ const Joi = require("joi");
2140
2103
  * @property {string} [url]
2141
2104
  */
2142
2105
 
2106
+ /**
2107
+ * @typedef MOQData
2108
+ * @property {number} [increment_unit]
2109
+ * @property {number} [maximum]
2110
+ * @property {number} [minimum]
2111
+ */
2112
+
2143
2113
  /**
2144
2114
  * @typedef ManufacturerResponse
2145
2115
  * @property {string} address - The address of the manufacturer.
@@ -2154,22 +2124,6 @@ const Joi = require("joi");
2154
2124
  * @property {string} [name]
2155
2125
  */
2156
2126
 
2157
- /**
2158
- * @typedef Marketplaces
2159
- * @property {string} [_id]
2160
- * @property {string} [app_id]
2161
- * @property {number[]} [brand_ids]
2162
- * @property {number} [company_id]
2163
- * @property {CreatedBy} [created_by]
2164
- * @property {Object} [created_on]
2165
- * @property {boolean} [enabled]
2166
- * @property {CreatedBy} [modified_by]
2167
- * @property {Object} [modified_on]
2168
- * @property {string} [opt_level]
2169
- * @property {string} [platforms]
2170
- * @property {number[]} [store_ids]
2171
- */
2172
-
2173
2127
  /**
2174
2128
  * @typedef Media
2175
2129
  * @property {Object} [meta]
@@ -2236,19 +2190,6 @@ const Joi = require("joi");
2236
2190
  * string and length should not exceed 100 characters.
2237
2191
  */
2238
2192
 
2239
- /**
2240
- * @typedef Metatags
2241
- * @property {ApplicationItemSeoMetaTags[]} [items]
2242
- * @property {string} [title]
2243
- */
2244
-
2245
- /**
2246
- * @typedef MOQData
2247
- * @property {number} [increment_unit]
2248
- * @property {number} [maximum]
2249
- * @property {number} [minimum]
2250
- */
2251
-
2252
2193
  /**
2253
2194
  * @typedef NetQuantity
2254
2195
  * @property {string} [unit] - The unit of measurement used for the net quantity
@@ -2268,6 +2209,16 @@ const Joi = require("joi");
2268
2209
  * @property {string} [start]
2269
2210
  */
2270
2211
 
2212
+ /**
2213
+ * @typedef OptInPostRequest
2214
+ * @property {number[]} [brand_ids]
2215
+ * @property {number} [company_id]
2216
+ * @property {boolean} [enabled]
2217
+ * @property {string} opt_level
2218
+ * @property {string} [platform]
2219
+ * @property {number[]} [store_ids]
2220
+ */
2221
+
2271
2222
  /**
2272
2223
  * @typedef OptinCompanyBrandDetailsView
2273
2224
  * @property {CompanyBrandDetail[]} [items]
@@ -2289,16 +2240,6 @@ const Joi = require("joi");
2289
2240
  * @property {number} [store]
2290
2241
  */
2291
2242
 
2292
- /**
2293
- * @typedef OptInPostRequest
2294
- * @property {number[]} [brand_ids]
2295
- * @property {number} [company_id]
2296
- * @property {boolean} [enabled]
2297
- * @property {string} opt_level
2298
- * @property {string} [platform]
2299
- * @property {number[]} [store_ids]
2300
- */
2301
-
2302
2243
  /**
2303
2244
  * @typedef OptinStoreDetails
2304
2245
  * @property {StoreDetail[]} [items]
@@ -2314,28 +2255,24 @@ const Joi = require("joi");
2314
2255
  * @property {SEOData} [seo]
2315
2256
  */
2316
2257
 
2258
+ /**
2259
+ * @typedef PTErrorResponse
2260
+ * @property {string} [code]
2261
+ * @property {Object} [errors]
2262
+ * @property {string} [message]
2263
+ * @property {Object} [meta]
2264
+ * @property {number} [status]
2265
+ */
2266
+
2317
2267
  /**
2318
2268
  * @typedef Page
2319
- * @property {number} [current]
2320
- * @property {boolean} [has_next]
2321
- * @property {boolean} [has_previous]
2322
2269
  * @property {number} [item_total]
2323
2270
  * @property {string} [next_id]
2324
- * @property {number} [size]
2271
+ * @property {boolean} [has_previous]
2272
+ * @property {boolean} [has_next]
2273
+ * @property {number} [current]
2325
2274
  * @property {string} type
2326
- */
2327
-
2328
- /**
2329
- * @typedef Page1
2330
- * @property {boolean} [ca]
2331
- * @property {string} [department]
2332
- * @property {number} [page_no]
2333
- * @property {number} [page_size]
2334
- * @property {string} [q]
2335
- * @property {string} [sort]
2336
- * @property {string} [sort_on]
2337
- * @property {string} [type]
2338
- * @property {string} [variant]
2275
+ * @property {number} [size]
2339
2276
  */
2340
2277
 
2341
2278
  /**
@@ -2658,21 +2595,6 @@ const Joi = require("joi");
2658
2595
  * @property {string} [title]
2659
2596
  */
2660
2597
 
2661
- /**
2662
- * @typedef ProductDetailV2
2663
- * @property {ProductBrand} [brand]
2664
- * @property {boolean} [is_excluded]
2665
- * @property {boolean} [is_pinned]
2666
- * @property {string} [item_code]
2667
- * @property {string} [item_type]
2668
- * @property {Media[]} [medias]
2669
- * @property {string} [name]
2670
- * @property {number} [priority]
2671
- * @property {string} [short_description]
2672
- * @property {string} slug
2673
- * @property {number} [uid]
2674
- */
2675
-
2676
2598
  /**
2677
2599
  * @typedef ProductDownloadsResponse
2678
2600
  * @property {ProductTemplateExportResponse[]} [items] - The items of the job.
@@ -2775,6 +2697,12 @@ const Joi = require("joi");
2775
2697
  * @property {number} [product_online_date]
2776
2698
  */
2777
2699
 
2700
+ /**
2701
+ * @typedef ProductReturnConfigSerializer
2702
+ * @property {boolean} [on_same_store]
2703
+ * @property {number} [store_uid]
2704
+ */
2705
+
2778
2706
  /**
2779
2707
  * @typedef ProductReturnConfigBaseSerializer
2780
2708
  * @property {boolean} returnable - Boolean Flag for item returnable
@@ -2782,12 +2710,6 @@ const Joi = require("joi");
2782
2710
  * @property {string} unit - Unit of return config days|hours
2783
2711
  */
2784
2712
 
2785
- /**
2786
- * @typedef ProductReturnConfigSerializer
2787
- * @property {boolean} [on_same_store]
2788
- * @property {number} [store_uid]
2789
- */
2790
-
2791
2713
  /**
2792
2714
  * @typedef ProductSchemaV2
2793
2715
  * @property {Object} [_custom_json]
@@ -2989,15 +2911,6 @@ const Joi = require("joi");
2989
2911
  * @property {Object} [variants]
2990
2912
  */
2991
2913
 
2992
- /**
2993
- * @typedef PTErrorResponse
2994
- * @property {string} [code]
2995
- * @property {Object} [errors]
2996
- * @property {string} [message]
2997
- * @property {Object} [meta]
2998
- * @property {number} [status]
2999
- */
3000
-
3001
2914
  /**
3002
2915
  * @typedef Quantities
3003
2916
  * @property {QuantityBase} [damaged]
@@ -3025,78 +2938,6 @@ const Joi = require("joi");
3025
2938
  * @property {string} [updated_at]
3026
2939
  */
3027
2940
 
3028
- /**
3029
- * @typedef RawProduct
3030
- * @property {Object} [_custom_json]
3031
- * @property {number[]} [all_company_ids]
3032
- * @property {string[]} [all_identifiers]
3033
- * @property {Object[]} [all_sizes]
3034
- * @property {Object} [attributes]
3035
- * @property {Brand} [brand]
3036
- * @property {number} [brand_uid]
3037
- * @property {Object} [category]
3038
- * @property {string} [category_slug]
3039
- * @property {number} [category_uid]
3040
- * @property {string} [color]
3041
- * @property {number} [company_id]
3042
- * @property {string} [country_of_origin]
3043
- * @property {Object} [created_by]
3044
- * @property {string} [created_on]
3045
- * @property {string} [currency]
3046
- * @property {Object} [custom_order]
3047
- * @property {number[]} [departments]
3048
- * @property {string} [description]
3049
- * @property {string[]} [highlights]
3050
- * @property {string} [hsn_code]
3051
- * @property {string} [id]
3052
- * @property {string} [image_nature]
3053
- * @property {string[]} [images]
3054
- * @property {boolean} [is_active]
3055
- * @property {boolean} [is_dependent]
3056
- * @property {boolean} [is_expirable]
3057
- * @property {boolean} [is_image_less_product]
3058
- * @property {boolean} [is_physical]
3059
- * @property {boolean} [is_set]
3060
- * @property {string} [item_code]
3061
- * @property {string} [item_type]
3062
- * @property {string[]} [l3_mapping]
3063
- * @property {Media[]} [media]
3064
- * @property {Object} [modified_by]
3065
- * @property {string} [modified_on]
3066
- * @property {Object} [moq]
3067
- * @property {boolean} [multi_size]
3068
- * @property {string} [name]
3069
- * @property {NetQuantityResponse} [net_quantity]
3070
- * @property {number} [no_of_boxes]
3071
- * @property {string} [pending]
3072
- * @property {string} [primary_color]
3073
- * @property {string[]} [product_group_tag]
3074
- * @property {ProductPublished} [product_publish]
3075
- * @property {ReturnConfigResponse} [return_config]
3076
- * @property {string} [short_description]
3077
- * @property {string} [size_guide]
3078
- * @property {Object[]} [sizes]
3079
- * @property {string} [slug]
3080
- * @property {string} [stage]
3081
- * @property {string[]} [tags]
3082
- * @property {Object} [tax_identifier]
3083
- * @property {Object} [teaser_tag]
3084
- * @property {string} [template_tag]
3085
- * @property {Trader[]} [trader]
3086
- * @property {number} [uid]
3087
- * @property {Object} [variant_group]
3088
- * @property {Object} [variant_media]
3089
- * @property {Object} [variants]
3090
- * @property {VerifiedBy} [verified_by]
3091
- * @property {string} [verified_on]
3092
- */
3093
-
3094
- /**
3095
- * @typedef RawProductListingResponse
3096
- * @property {RawProduct[]} [items]
3097
- * @property {Page} [page]
3098
- */
3099
-
3100
2941
  /**
3101
2942
  * @typedef ReturnConfig
3102
2943
  * @property {boolean} returnable
@@ -3126,13 +2967,54 @@ const Joi = require("joi");
3126
2967
  */
3127
2968
 
3128
2969
  /**
3129
- * @typedef SearchableAttribute
3130
- * @property {string} key - The attribute key to search on. This key matches the
3131
- * solr document key
3132
- * @property {string} name - The name of key to search on. This is for
3133
- * displaying purposes on platform
3134
- * @property {number} priority - Order in which the searchable attribute should
3135
- * kick in. Higher the priority, higher the weight considered while searching
2970
+ * @typedef Sitemap
2971
+ * @property {number} [priority]
2972
+ * @property {string} [frequency]
2973
+ */
2974
+
2975
+ /**
2976
+ * @typedef ApplicationItemSeoAction
2977
+ * @property {Object} [page]
2978
+ * @property {string} [type]
2979
+ */
2980
+
2981
+ /**
2982
+ * @typedef ApplicationItemSeoBreadcrumbs
2983
+ * @property {string} [url]
2984
+ * @property {ApplicationItemSeoAction[]} [action]
2985
+ */
2986
+
2987
+ /**
2988
+ * @typedef ApplicationItemSeoMetaTagItem
2989
+ * @property {string} [key]
2990
+ * @property {string} [value]
2991
+ */
2992
+
2993
+ /**
2994
+ * @typedef ApplicationItemSeoMetaTags
2995
+ * @property {string} [title]
2996
+ * @property {ApplicationItemSeoMetaTagItem[]} [items]
2997
+ */
2998
+
2999
+ /**
3000
+ * @typedef Metatags
3001
+ * @property {string} [title]
3002
+ * @property {ApplicationItemSeoMetaTags[]} [items]
3003
+ */
3004
+
3005
+ /**
3006
+ * @typedef SizePromotionThreshold
3007
+ * @property {string} [threshold_type]
3008
+ * @property {number} [threshold_value]
3009
+ */
3010
+
3011
+ /**
3012
+ * @typedef SEOData
3013
+ * @property {string} [description]
3014
+ * @property {string} [title]
3015
+ * @property {Sitemap} [sitemap]
3016
+ * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
3017
+ * @property {Metatags[]} [meta_tags]
3136
3018
  */
3137
3019
 
3138
3020
  /**
@@ -3141,6 +3023,16 @@ const Joi = require("joi");
3141
3023
  * @property {string} sort_on
3142
3024
  */
3143
3025
 
3026
+ /**
3027
+ * @typedef SearchableAttribute
3028
+ * @property {string} key - The attribute key to search on. This key matches the
3029
+ * solr document key
3030
+ * @property {string} name - The name of key to search on. This is for
3031
+ * displaying purposes on platform
3032
+ * @property {number} priority - Order in which the searchable attribute should
3033
+ * kick in. Higher the priority, higher the weight considered while searching
3034
+ */
3035
+
3144
3036
  /**
3145
3037
  * @typedef SecondLevelChild
3146
3038
  * @property {Object} [_custom_json]
@@ -3159,23 +3051,12 @@ const Joi = require("joi");
3159
3051
  */
3160
3052
 
3161
3053
  /**
3162
- * @typedef SEOData
3163
- * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
3164
- * @property {string} [canonical_url]
3054
+ * @typedef SeoDetail
3165
3055
  * @property {string} [description]
3166
- * @property {Metatags[]} [meta_tags]
3167
- * @property {Sitemap} [sitemap]
3168
3056
  * @property {string} [title]
3169
- */
3170
-
3171
- /**
3172
- * @typedef SeoDetail
3057
+ * @property {Object} [sitemap]
3173
3058
  * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
3174
- * @property {string} [canonical_url]
3175
- * @property {string} [description]
3176
3059
  * @property {Metatags[]} [meta_tags]
3177
- * @property {Object} [sitemap]
3178
- * @property {string} [title]
3179
3060
  */
3180
3061
 
3181
3062
  /**
@@ -3194,12 +3075,6 @@ const Joi = require("joi");
3194
3075
  * @property {ProductSchemaV2} [data]
3195
3076
  */
3196
3077
 
3197
- /**
3198
- * @typedef Sitemap
3199
- * @property {string} [frequency]
3200
- * @property {number} [priority]
3201
- */
3202
-
3203
3078
  /**
3204
3079
  * @typedef Size
3205
3080
  * @property {string} [display]
@@ -3230,12 +3105,6 @@ const Joi = require("joi");
3230
3105
  * @property {string} [title]
3231
3106
  */
3232
3107
 
3233
- /**
3234
- * @typedef SizePromotionThreshold
3235
- * @property {string} [threshold_type]
3236
- * @property {number} [threshold_value]
3237
- */
3238
-
3239
3108
  /**
3240
3109
  * @typedef StoreAssignResponse
3241
3110
  * @property {string} [_id]
@@ -3328,6 +3197,12 @@ const Joi = require("joi");
3328
3197
  * @property {string} [tag]
3329
3198
  */
3330
3199
 
3200
+ /**
3201
+ * @typedef TemplateValidationData
3202
+ * @property {GlobalValidation} [global_validation]
3203
+ * @property {Object} [template_validation]
3204
+ */
3205
+
3331
3206
  /**
3332
3207
  * @typedef TemplatesResponse
3333
3208
  * @property {ProductTemplate} [items]
@@ -3340,12 +3215,6 @@ const Joi = require("joi");
3340
3215
  * @property {TemplateDetails} [template_details]
3341
3216
  */
3342
3217
 
3343
- /**
3344
- * @typedef TemplateValidationData
3345
- * @property {GlobalValidation} [global_validation]
3346
- * @property {Object} [template_validation]
3347
- */
3348
-
3349
3218
  /**
3350
3219
  * @typedef ThirdLevelChild
3351
3220
  * @property {Object} [_custom_json]
@@ -3405,35 +3274,6 @@ const Joi = require("joi");
3405
3274
  * @property {string[]} [visible_facets_keys]
3406
3275
  */
3407
3276
 
3408
- /**
3409
- * @typedef UpdatedResponse
3410
- * @property {number[]} [items_not_updated]
3411
- * @property {string} [message]
3412
- */
3413
-
3414
- /**
3415
- * @typedef UpdateMarketplaceOptinRequest
3416
- * @property {number[]} [brand_ids]
3417
- * @property {number} [company_id]
3418
- * @property {boolean} [enabled]
3419
- * @property {string} [opt_level]
3420
- * @property {string} [platform]
3421
- * @property {number[]} [store_ids]
3422
- */
3423
-
3424
- /**
3425
- * @typedef UpdateMarketplaceOptinResponse
3426
- * @property {string} [app_id]
3427
- * @property {number[]} [brand_ids]
3428
- * @property {number} [company_id]
3429
- * @property {CreatedBy} [created_by]
3430
- * @property {boolean} [enabled]
3431
- * @property {CreatedBy} [modified_by]
3432
- * @property {string} [opt_level]
3433
- * @property {string} [platform]
3434
- * @property {number[]} [store_ids]
3435
- */
3436
-
3437
3277
  /**
3438
3278
  * @typedef UpdateSearchConfigurationRequest
3439
3279
  * @property {string} application_id - The application id where custom search
@@ -3459,6 +3299,12 @@ const Joi = require("joi");
3459
3299
  * @property {boolean} [success]
3460
3300
  */
3461
3301
 
3302
+ /**
3303
+ * @typedef UpdatedResponse
3304
+ * @property {number[]} [items_not_updated]
3305
+ * @property {string} [message]
3306
+ */
3307
+
3462
3308
  /**
3463
3309
  * @typedef UserCommon
3464
3310
  * @property {number} [company_id]
@@ -3647,15 +3493,8 @@ class CatalogPlatformModel {
3647
3493
  /\S/,
3648
3494
  Joi.array().items(Joi.string().allow(""))
3649
3495
  ),
3650
- type: CatalogPlatformModel.PageType().required(),
3651
3496
  url: Joi.string().allow(""),
3652
- });
3653
- }
3654
-
3655
- /** @returns {AllowSingleRequest} */
3656
- static AllowSingleRequest() {
3657
- return Joi.object({
3658
- allow_single: Joi.boolean().required(),
3497
+ type: CatalogPlatformModel.PageType().required(),
3659
3498
  });
3660
3499
  }
3661
3500
 
@@ -3673,6 +3512,13 @@ class CatalogPlatformModel {
3673
3512
  });
3674
3513
  }
3675
3514
 
3515
+ /** @returns {AllowSingleRequest} */
3516
+ static AllowSingleRequest() {
3517
+ return Joi.object({
3518
+ allow_single: Joi.boolean().required(),
3519
+ });
3520
+ }
3521
+
3676
3522
  /** @returns {AppCatalogConfiguration} */
3677
3523
  static AppCatalogConfiguration() {
3678
3524
  return Joi.object({
@@ -3797,6 +3643,15 @@ class CatalogPlatformModel {
3797
3643
  });
3798
3644
  }
3799
3645
 
3646
+ /** @returns {ApplicationItemMOQ} */
3647
+ static ApplicationItemMOQ() {
3648
+ return Joi.object({
3649
+ increment_unit: Joi.number(),
3650
+ maximum: Joi.number(),
3651
+ minimum: Joi.number(),
3652
+ });
3653
+ }
3654
+
3800
3655
  /** @returns {ApplicationItemMeta} */
3801
3656
  static ApplicationItemMeta() {
3802
3657
  return Joi.object({
@@ -3811,15 +3666,6 @@ class CatalogPlatformModel {
3811
3666
  });
3812
3667
  }
3813
3668
 
3814
- /** @returns {ApplicationItemMOQ} */
3815
- static ApplicationItemMOQ() {
3816
- return Joi.object({
3817
- increment_unit: Joi.number(),
3818
- maximum: Joi.number(),
3819
- minimum: Joi.number(),
3820
- });
3821
- }
3822
-
3823
3669
  /** @returns {ApplicationItemSEO} */
3824
3670
  static ApplicationItemSEO() {
3825
3671
  return Joi.object({
@@ -3828,42 +3674,6 @@ class CatalogPlatformModel {
3828
3674
  });
3829
3675
  }
3830
3676
 
3831
- /** @returns {ApplicationItemSeoAction} */
3832
- static ApplicationItemSeoAction() {
3833
- return Joi.object({
3834
- page: Joi.any(),
3835
- type: Joi.string().allow(""),
3836
- });
3837
- }
3838
-
3839
- /** @returns {ApplicationItemSeoBreadcrumbs} */
3840
- static ApplicationItemSeoBreadcrumbs() {
3841
- return Joi.object({
3842
- action: Joi.array().items(
3843
- CatalogPlatformModel.ApplicationItemSeoAction()
3844
- ),
3845
- url: Joi.string().allow(""),
3846
- });
3847
- }
3848
-
3849
- /** @returns {ApplicationItemSeoMetaTagItem} */
3850
- static ApplicationItemSeoMetaTagItem() {
3851
- return Joi.object({
3852
- key: Joi.string().allow(""),
3853
- value: Joi.string().allow(""),
3854
- });
3855
- }
3856
-
3857
- /** @returns {ApplicationItemSeoMetaTags} */
3858
- static ApplicationItemSeoMetaTags() {
3859
- return Joi.object({
3860
- items: Joi.array().items(
3861
- CatalogPlatformModel.ApplicationItemSeoMetaTagItem()
3862
- ),
3863
- title: Joi.string().allow(""),
3864
- });
3865
- }
3866
-
3867
3677
  /** @returns {ApplicationProductListingResponse} */
3868
3678
  static ApplicationProductListingResponse() {
3869
3679
  return Joi.object({
@@ -4047,20 +3857,20 @@ class CatalogPlatformModel {
4047
3857
  });
4048
3858
  }
4049
3859
 
4050
- /** @returns {AutocompleteAction} */
4051
- static AutocompleteAction() {
3860
+ /** @returns {AutoCompleteMedia} */
3861
+ static AutoCompleteMedia() {
4052
3862
  return Joi.object({
4053
- page: CatalogPlatformModel.AutocompletePageAction(),
3863
+ aspect_ratio: Joi.string().allow(""),
4054
3864
  type: Joi.string().allow(""),
3865
+ url: Joi.string().allow(""),
4055
3866
  });
4056
3867
  }
4057
3868
 
4058
- /** @returns {AutoCompleteMedia} */
4059
- static AutoCompleteMedia() {
3869
+ /** @returns {AutocompleteAction} */
3870
+ static AutocompleteAction() {
4060
3871
  return Joi.object({
4061
- aspect_ratio: Joi.string().allow(""),
3872
+ page: CatalogPlatformModel.AutocompletePageAction(),
4062
3873
  type: Joi.string().allow(""),
4063
- url: Joi.string().allow(""),
4064
3874
  });
4065
3875
  }
4066
3876
 
@@ -4432,6 +4242,7 @@ class CatalogPlatformModel {
4432
4242
  /** @returns {CollectionCreateResponse} */
4433
4243
  static CollectionCreateResponse() {
4434
4244
  return Joi.object({
4245
+ uid: Joi.string().allow(""),
4435
4246
  _schedule: Joi.any(),
4436
4247
  allow_facets: Joi.boolean(),
4437
4248
  allow_sort: Joi.boolean(),
@@ -4450,7 +4261,6 @@ class CatalogPlatformModel {
4450
4261
  sort_on: Joi.string().allow(""),
4451
4262
  tag: Joi.array().items(Joi.string().allow("")),
4452
4263
  type: Joi.string().allow(""),
4453
- uid: Joi.string().allow(""),
4454
4264
  visible_facets_keys: Joi.array().items(Joi.string().allow("")),
4455
4265
  });
4456
4266
  }
@@ -4497,15 +4307,6 @@ class CatalogPlatformModel {
4497
4307
  });
4498
4308
  }
4499
4309
 
4500
- /** @returns {CollectionItemSchemaV2} */
4501
- static CollectionItemSchemaV2() {
4502
- return Joi.object({
4503
- action: Joi.string().allow("").required(),
4504
- item_id: Joi.number().required(),
4505
- priority: Joi.number(),
4506
- });
4507
- }
4508
-
4509
4310
  /** @returns {CollectionItemUpdate} */
4510
4311
  static CollectionItemUpdate() {
4511
4312
  return Joi.object({
@@ -4518,18 +4319,6 @@ class CatalogPlatformModel {
4518
4319
  });
4519
4320
  }
4520
4321
 
4521
- /** @returns {CollectionItemUpdateSchemaV2} */
4522
- static CollectionItemUpdateSchemaV2() {
4523
- return Joi.object({
4524
- allow_facets: Joi.boolean(),
4525
- allow_sort: Joi.boolean(),
4526
- items: Joi.array().items(CatalogPlatformModel.CollectionItemSchemaV2()),
4527
- query: Joi.array().items(CatalogPlatformModel.CollectionQuerySchemaV2()),
4528
- type: Joi.string().allow("").required(),
4529
- visible_facets_keys: Joi.array().items(Joi.string().allow("")),
4530
- });
4531
- }
4532
-
4533
4322
  /** @returns {CollectionListingFilter} */
4534
4323
  static CollectionListingFilter() {
4535
4324
  return Joi.object({
@@ -4569,15 +4358,6 @@ class CatalogPlatformModel {
4569
4358
  });
4570
4359
  }
4571
4360
 
4572
- /** @returns {CollectionQuerySchemaV2} */
4573
- static CollectionQuerySchemaV2() {
4574
- return Joi.object({
4575
- attribute: Joi.string().allow("").required(),
4576
- op: Joi.string().allow("").required(),
4577
- value: Joi.array().items(Joi.any()).required(),
4578
- });
4579
- }
4580
-
4581
4361
  /** @returns {CollectionSchedule} */
4582
4362
  static CollectionSchedule() {
4583
4363
  return Joi.object({
@@ -4589,13 +4369,6 @@ class CatalogPlatformModel {
4589
4369
  });
4590
4370
  }
4591
4371
 
4592
- /** @returns {CommonResponseSchemaCollection} */
4593
- static CommonResponseSchemaCollection() {
4594
- return Joi.object({
4595
- message: Joi.string().allow(""),
4596
- });
4597
- }
4598
-
4599
4372
  /** @returns {CompanyBrandDetail} */
4600
4373
  static CompanyBrandDetail() {
4601
4374
  return Joi.object({
@@ -4831,14 +4604,6 @@ class CatalogPlatformModel {
4831
4604
  });
4832
4605
  }
4833
4606
 
4834
- /** @returns {CreatedBy} */
4835
- static CreatedBy() {
4836
- return Joi.object({
4837
- user_id: Joi.string().allow(""),
4838
- username: Joi.string().allow(""),
4839
- });
4840
- }
4841
-
4842
4607
  /** @returns {CreateSearchConfigurationRequest} */
4843
4608
  static CreateSearchConfigurationRequest() {
4844
4609
  return Joi.object({
@@ -5118,15 +4883,100 @@ class CatalogPlatformModel {
5118
4883
  });
5119
4884
  }
5120
4885
 
5121
- /** @returns {GenderDetail} */
5122
- static GenderDetail() {
4886
+ /** @returns {RawProduct} */
4887
+ static RawProduct() {
5123
4888
  return Joi.object({
5124
- departments: Joi.array().items(Joi.string().allow("")),
5125
- description: Joi.string().allow(""),
5126
- details: CatalogPlatformModel.AttributeMasterDetails(),
5127
- enabled_for_end_consumer: Joi.boolean(),
5128
- filters: CatalogPlatformModel.AttributeMasterFilter(),
5129
- id: Joi.string().allow(""),
4889
+ _custom_json: Joi.any(),
4890
+ all_company_ids: Joi.array().items(Joi.number()),
4891
+ all_identifiers: Joi.array().items(Joi.string().allow("")),
4892
+ all_sizes: Joi.array().items(Joi.any()),
4893
+ attributes: Joi.any(),
4894
+ brand: CatalogPlatformModel.Brand(),
4895
+ brand_uid: Joi.number(),
4896
+ category: Joi.any(),
4897
+ category_slug: Joi.string().allow(""),
4898
+ category_uid: Joi.number(),
4899
+ color: Joi.string().allow(""),
4900
+ company_id: Joi.number(),
4901
+ country_of_origin: Joi.string().allow(""),
4902
+ created_by: Joi.any(),
4903
+ created_on: Joi.string().allow(""),
4904
+ currency: Joi.string().allow(""),
4905
+ custom_order: Joi.any(),
4906
+ departments: Joi.array().items(Joi.number()),
4907
+ description: Joi.string().allow(""),
4908
+ highlights: Joi.array().items(Joi.string().allow("")),
4909
+ hsn_code: Joi.string().allow(""),
4910
+ id: Joi.string().allow(""),
4911
+ image_nature: Joi.string().allow(""),
4912
+ images: Joi.array().items(Joi.string().allow("")),
4913
+ is_active: Joi.boolean(),
4914
+ is_dependent: Joi.boolean(),
4915
+ is_expirable: Joi.boolean(),
4916
+ is_image_less_product: Joi.boolean(),
4917
+ is_physical: Joi.boolean(),
4918
+ is_set: Joi.boolean(),
4919
+ item_code: Joi.string().allow(""),
4920
+ item_type: Joi.string().allow(""),
4921
+ l3_mapping: Joi.array().items(Joi.string().allow("")),
4922
+ media: Joi.array().items(CatalogPlatformModel.Media()),
4923
+ modified_by: Joi.any(),
4924
+ modified_on: Joi.string().allow(""),
4925
+ moq: Joi.any(),
4926
+ multi_size: Joi.boolean(),
4927
+ name: Joi.string().allow(""),
4928
+ net_quantity: CatalogPlatformModel.NetQuantityResponse(),
4929
+ no_of_boxes: Joi.number(),
4930
+ pending: Joi.string().allow(""),
4931
+ primary_color: Joi.string().allow(""),
4932
+ product_group_tag: Joi.array().items(Joi.string().allow("")),
4933
+ product_publish: CatalogPlatformModel.ProductPublished(),
4934
+ return_config: CatalogPlatformModel.ReturnConfigResponse(),
4935
+ short_description: Joi.string().allow(""),
4936
+ size_guide: Joi.string().allow(""),
4937
+ sizes: Joi.array().items(Joi.any()),
4938
+ slug: Joi.string().allow(""),
4939
+ stage: Joi.string().allow(""),
4940
+ tags: Joi.array().items(Joi.string().allow("")),
4941
+ tax_identifier: Joi.any(),
4942
+ teaser_tag: Joi.any(),
4943
+ template_tag: Joi.string().allow(""),
4944
+ trader: Joi.array().items(CatalogPlatformModel.Trader()),
4945
+ uid: Joi.number(),
4946
+ variant_group: Joi.any(),
4947
+ variant_media: Joi.any(),
4948
+ variants: Joi.any(),
4949
+ verified_by: CatalogPlatformModel.VerifiedBy(),
4950
+ verified_on: Joi.string().allow(""),
4951
+ });
4952
+ }
4953
+
4954
+ /** @returns {RawProductListingResponse} */
4955
+ static RawProductListingResponse() {
4956
+ return Joi.object({
4957
+ items: Joi.array().items(CatalogPlatformModel.RawProduct()),
4958
+ page: CatalogPlatformModel.Page(),
4959
+ });
4960
+ }
4961
+
4962
+ /** @returns {GTIN} */
4963
+ static GTIN() {
4964
+ return Joi.object({
4965
+ gtin_type: Joi.string().allow("").required(),
4966
+ gtin_value: Joi.string().allow("").required(),
4967
+ primary: Joi.boolean(),
4968
+ });
4969
+ }
4970
+
4971
+ /** @returns {GenderDetail} */
4972
+ static GenderDetail() {
4973
+ return Joi.object({
4974
+ departments: Joi.array().items(Joi.string().allow("")),
4975
+ description: Joi.string().allow(""),
4976
+ details: CatalogPlatformModel.AttributeMasterDetails(),
4977
+ enabled_for_end_consumer: Joi.boolean(),
4978
+ filters: CatalogPlatformModel.AttributeMasterFilter(),
4979
+ id: Joi.string().allow(""),
5130
4980
  is_nested: Joi.boolean(),
5131
4981
  logo: Joi.string().allow(""),
5132
4982
  meta: CatalogPlatformModel.AttributeMasterMeta(),
@@ -5139,9 +4989,9 @@ class CatalogPlatformModel {
5139
4989
  /** @returns {GetAddressSerializer} */
5140
4990
  static GetAddressSerializer() {
5141
4991
  return Joi.object({
5142
- address_type: Joi.string().allow(""),
5143
4992
  address1: Joi.string().allow(""),
5144
4993
  address2: Joi.string().allow(""),
4994
+ address_type: Joi.string().allow(""),
5145
4995
  city: Joi.string().allow(""),
5146
4996
  country: Joi.string().allow(""),
5147
4997
  country_code: Joi.string().allow(""),
@@ -5153,14 +5003,6 @@ class CatalogPlatformModel {
5153
5003
  });
5154
5004
  }
5155
5005
 
5156
- /** @returns {GetAllMarketplaces} */
5157
- static GetAllMarketplaces() {
5158
- return Joi.object({
5159
- items: Joi.array().items(CatalogPlatformModel.Marketplaces()),
5160
- page: CatalogPlatformModel.Page(),
5161
- });
5162
- }
5163
-
5164
5006
  /** @returns {GetAllSizes} */
5165
5007
  static GetAllSizes() {
5166
5008
  return Joi.object({
@@ -5255,37 +5097,6 @@ class CatalogPlatformModel {
5255
5097
  });
5256
5098
  }
5257
5099
 
5258
- /** @returns {GetCollectionDetailResponse} */
5259
- static GetCollectionDetailResponse() {
5260
- return Joi.object({
5261
- _custom_json: Joi.any(),
5262
- _locale_language: Joi.any(),
5263
- _schedule: CatalogPlatformModel.CollectionSchedule(),
5264
- action: Joi.any(),
5265
- allow_facets: Joi.boolean(),
5266
- allow_sort: Joi.boolean(),
5267
- app_id: Joi.string().allow(""),
5268
- badge: CatalogPlatformModel.CollectionBadge(),
5269
- banners: CatalogPlatformModel.ImageUrls(),
5270
- description: Joi.string().allow(""),
5271
- is_active: Joi.boolean(),
5272
- is_visible: Joi.boolean(),
5273
- logo: CatalogPlatformModel.Media(),
5274
- meta: Joi.any(),
5275
- name: Joi.string().allow(""),
5276
- priority: Joi.number(),
5277
- published: Joi.boolean(),
5278
- query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
5279
- seo: CatalogPlatformModel.SeoDetail(),
5280
- slug: Joi.string().allow(""),
5281
- sort_on: Joi.string().allow(""),
5282
- tags: Joi.array().items(Joi.string().allow("")),
5283
- type: Joi.string().allow(""),
5284
- uid: Joi.string().allow(""),
5285
- visible_facets_keys: Joi.array().items(Joi.string().allow("")),
5286
- });
5287
- }
5288
-
5289
5100
  /** @returns {GetCollectionItemsResponse} */
5290
5101
  static GetCollectionItemsResponse() {
5291
5102
  return Joi.object({
@@ -5296,14 +5107,6 @@ class CatalogPlatformModel {
5296
5107
  });
5297
5108
  }
5298
5109
 
5299
- /** @returns {GetCollectionItemsResponseSchemaV2} */
5300
- static GetCollectionItemsResponseSchemaV2() {
5301
- return Joi.object({
5302
- items: Joi.array().items(CatalogPlatformModel.ProductDetailV2()),
5303
- page: CatalogPlatformModel.Page1(),
5304
- });
5305
- }
5306
-
5307
5110
  /** @returns {GetCollectionListingResponse} */
5308
5111
  static GetCollectionListingResponse() {
5309
5112
  return Joi.object({
@@ -5346,7 +5149,6 @@ class CatalogPlatformModel {
5346
5149
  return Joi.object({
5347
5150
  condition: Joi.array().items(Joi.any()),
5348
5151
  data: Joi.array().items(Joi.any()).required(),
5349
- page: CatalogPlatformModel.Page(),
5350
5152
  values: Joi.array().items(Joi.any()),
5351
5153
  });
5352
5154
  }
@@ -5531,15 +5333,6 @@ class CatalogPlatformModel {
5531
5333
  });
5532
5334
  }
5533
5335
 
5534
- /** @returns {GetQueryFiltersResponse} */
5535
- static GetQueryFiltersResponse() {
5536
- return Joi.object({
5537
- filters: Joi.array().items(CatalogPlatformModel.ProductFilters()),
5538
- operators: Joi.object().pattern(/\S/, Joi.string().allow("")).required(),
5539
- sort_on: Joi.array().items(CatalogPlatformModel.ProductSortOn()),
5540
- });
5541
- }
5542
-
5543
5336
  /** @returns {GetSearchConfigurationResponse} */
5544
5337
  static GetSearchConfigurationResponse() {
5545
5338
  return Joi.object({
@@ -5597,19 +5390,43 @@ class CatalogPlatformModel {
5597
5390
  });
5598
5391
  }
5599
5392
 
5600
- /** @returns {GTIN} */
5601
- static GTIN() {
5393
+ /** @returns {Guide} */
5394
+ static Guide() {
5602
5395
  return Joi.object({
5603
- gtin_type: Joi.string().allow("").required(),
5604
- gtin_value: Joi.string().allow("").required(),
5605
- primary: Joi.boolean(),
5396
+ meta: CatalogPlatformModel.Meta(),
5606
5397
  });
5607
5398
  }
5608
5399
 
5609
- /** @returns {Guide} */
5610
- static Guide() {
5400
+ /** @returns {HSNCodesResponse} */
5401
+ static HSNCodesResponse() {
5611
5402
  return Joi.object({
5612
- meta: CatalogPlatformModel.Meta(),
5403
+ data: CatalogPlatformModel.HSNData(),
5404
+ message: Joi.string().allow(""),
5405
+ });
5406
+ }
5407
+
5408
+ /** @returns {HSNData} */
5409
+ static HSNData() {
5410
+ return Joi.object({
5411
+ country_of_origin: Joi.array().items(Joi.string().allow("")),
5412
+ hsn_code: Joi.array().items(Joi.string().allow("")),
5413
+ });
5414
+ }
5415
+
5416
+ /** @returns {HSNDataInsertV2} */
5417
+ static HSNDataInsertV2() {
5418
+ return Joi.object({
5419
+ country_code: Joi.string().allow("").required(),
5420
+ created_by: Joi.any(),
5421
+ created_on: Joi.string().allow(""),
5422
+ description: Joi.string().allow("").required(),
5423
+ hsn_code: Joi.string().allow("").required(),
5424
+ hsn_code_id: Joi.string().allow(""),
5425
+ modified_by: Joi.any(),
5426
+ modified_on: Joi.string().allow(""),
5427
+ reporting_hsn: Joi.string().allow("").required(),
5428
+ taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(),
5429
+ type: Joi.string().allow("").required(),
5613
5430
  });
5614
5431
  }
5615
5432
 
@@ -5645,48 +5462,15 @@ class CatalogPlatformModel {
5645
5462
  hsn_code: Joi.string().allow(""),
5646
5463
  id: Joi.string().allow(""),
5647
5464
  modified_on: Joi.string().allow(""),
5648
- tax_on_esp: Joi.boolean(),
5649
- tax_on_mrp: Joi.boolean(),
5650
5465
  tax1: Joi.number(),
5651
5466
  tax2: Joi.number(),
5467
+ tax_on_esp: Joi.boolean(),
5468
+ tax_on_mrp: Joi.boolean(),
5652
5469
  threshold1: Joi.number(),
5653
5470
  threshold2: Joi.number(),
5654
5471
  });
5655
5472
  }
5656
5473
 
5657
- /** @returns {HSNCodesResponse} */
5658
- static HSNCodesResponse() {
5659
- return Joi.object({
5660
- data: CatalogPlatformModel.HSNData(),
5661
- message: Joi.string().allow(""),
5662
- });
5663
- }
5664
-
5665
- /** @returns {HSNData} */
5666
- static HSNData() {
5667
- return Joi.object({
5668
- country_of_origin: Joi.array().items(Joi.string().allow("")),
5669
- hsn_code: Joi.array().items(Joi.string().allow("")),
5670
- });
5671
- }
5672
-
5673
- /** @returns {HSNDataInsertV2} */
5674
- static HSNDataInsertV2() {
5675
- return Joi.object({
5676
- country_code: Joi.string().allow("").required(),
5677
- created_by: Joi.any(),
5678
- created_on: Joi.string().allow(""),
5679
- description: Joi.string().allow("").required(),
5680
- hsn_code: Joi.string().allow("").required(),
5681
- hsn_code_id: Joi.string().allow(""),
5682
- modified_by: Joi.any(),
5683
- modified_on: Joi.string().allow(""),
5684
- reporting_hsn: Joi.string().allow("").required(),
5685
- taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(),
5686
- type: Joi.string().allow("").required(),
5687
- });
5688
- }
5689
-
5690
5474
  /** @returns {HsnUpsert} */
5691
5475
  static HsnUpsert() {
5692
5476
  return Joi.object({
@@ -5694,10 +5478,10 @@ class CatalogPlatformModel {
5694
5478
  hs2_code: Joi.string().allow("").allow(null).required(),
5695
5479
  hsn_code: Joi.string().allow("").required(),
5696
5480
  is_active: Joi.boolean(),
5697
- tax_on_esp: Joi.boolean(),
5698
- tax_on_mrp: Joi.boolean().required(),
5699
5481
  tax1: Joi.number().required(),
5700
5482
  tax2: Joi.number(),
5483
+ tax_on_esp: Joi.boolean(),
5484
+ tax_on_mrp: Joi.boolean().required(),
5701
5485
  threshold1: Joi.number().required(),
5702
5486
  threshold2: Joi.number(),
5703
5487
  uid: Joi.number(),
@@ -5722,6 +5506,29 @@ class CatalogPlatformModel {
5722
5506
  });
5723
5507
  }
5724
5508
 
5509
+ /** @returns {InvSize} */
5510
+ static InvSize() {
5511
+ return Joi.object({
5512
+ currency: Joi.string().allow("").required(),
5513
+ expiration_date: Joi.string().allow(""),
5514
+ identifiers: Joi.array().items(CatalogPlatformModel.GTIN()).required(),
5515
+ is_set: Joi.boolean(),
5516
+ item_dimensions_unit_of_measure: Joi.string().allow("").allow(null),
5517
+ item_height: Joi.number().allow(null),
5518
+ item_length: Joi.number().allow(null),
5519
+ item_weight: Joi.number().allow(null),
5520
+ item_weight_unit_of_measure: Joi.string().allow("").allow(null),
5521
+ item_width: Joi.number().allow(null),
5522
+ price: Joi.number(),
5523
+ price_effective: Joi.number().required(),
5524
+ price_transfer: Joi.number().allow(null),
5525
+ quantity: Joi.number().required(),
5526
+ set: CatalogPlatformModel.InventorySet(),
5527
+ size: Joi.string().allow("").required(),
5528
+ store_code: Joi.string().allow("").required(),
5529
+ });
5530
+ }
5531
+
5725
5532
  /** @returns {InventoryBulkRequest} */
5726
5533
  static InventoryBulkRequest() {
5727
5534
  return Joi.object({
@@ -6064,31 +5871,8 @@ class CatalogPlatformModel {
6064
5871
  });
6065
5872
  }
6066
5873
 
6067
- /** @returns {InvSize} */
6068
- static InvSize() {
6069
- return Joi.object({
6070
- currency: Joi.string().allow("").required(),
6071
- expiration_date: Joi.string().allow(""),
6072
- identifiers: Joi.array().items(CatalogPlatformModel.GTIN()).required(),
6073
- is_set: Joi.boolean(),
6074
- item_dimensions_unit_of_measure: Joi.string().allow("").allow(null),
6075
- item_height: Joi.number().allow(null),
6076
- item_length: Joi.number().allow(null),
6077
- item_weight: Joi.number().allow(null),
6078
- item_weight_unit_of_measure: Joi.string().allow("").allow(null),
6079
- item_width: Joi.number().allow(null),
6080
- price: Joi.number(),
6081
- price_effective: Joi.number().required(),
6082
- price_transfer: Joi.number().allow(null),
6083
- quantity: Joi.number().required(),
6084
- set: CatalogPlatformModel.InventorySet(),
6085
- size: Joi.string().allow("").required(),
6086
- store_code: Joi.string().allow("").required(),
6087
- });
6088
- }
6089
-
6090
- /** @returns {ItemQuery} */
6091
- static ItemQuery() {
5874
+ /** @returns {ItemQuery} */
5875
+ static ItemQuery() {
6092
5876
  return Joi.object({
6093
5877
  brand_uid: Joi.number(),
6094
5878
  item_code: Joi.string().allow(""),
@@ -6198,6 +5982,15 @@ class CatalogPlatformModel {
6198
5982
  });
6199
5983
  }
6200
5984
 
5985
+ /** @returns {MOQData} */
5986
+ static MOQData() {
5987
+ return Joi.object({
5988
+ increment_unit: Joi.number(),
5989
+ maximum: Joi.number(),
5990
+ minimum: Joi.number(),
5991
+ });
5992
+ }
5993
+
6201
5994
  /** @returns {ManufacturerResponse} */
6202
5995
  static ManufacturerResponse() {
6203
5996
  return Joi.object({
@@ -6216,24 +6009,6 @@ class CatalogPlatformModel {
6216
6009
  });
6217
6010
  }
6218
6011
 
6219
- /** @returns {Marketplaces} */
6220
- static Marketplaces() {
6221
- return Joi.object({
6222
- _id: Joi.string().allow(""),
6223
- app_id: Joi.string().allow(""),
6224
- brand_ids: Joi.array().items(Joi.number()),
6225
- company_id: Joi.number(),
6226
- created_by: CatalogPlatformModel.CreatedBy(),
6227
- created_on: Joi.any(),
6228
- enabled: Joi.boolean(),
6229
- modified_by: CatalogPlatformModel.CreatedBy(),
6230
- modified_on: Joi.any(),
6231
- opt_level: Joi.string().allow(""),
6232
- platforms: Joi.string().allow(""),
6233
- store_ids: Joi.array().items(Joi.number()),
6234
- });
6235
- }
6236
-
6237
6012
  /** @returns {Media} */
6238
6013
  static Media() {
6239
6014
  return Joi.object({
@@ -6322,25 +6097,6 @@ class CatalogPlatformModel {
6322
6097
  });
6323
6098
  }
6324
6099
 
6325
- /** @returns {Metatags} */
6326
- static Metatags() {
6327
- return Joi.object({
6328
- items: Joi.array().items(
6329
- CatalogPlatformModel.ApplicationItemSeoMetaTags()
6330
- ),
6331
- title: Joi.string().allow(""),
6332
- });
6333
- }
6334
-
6335
- /** @returns {MOQData} */
6336
- static MOQData() {
6337
- return Joi.object({
6338
- increment_unit: Joi.number(),
6339
- maximum: Joi.number(),
6340
- minimum: Joi.number(),
6341
- });
6342
- }
6343
-
6344
6100
  /** @returns {NetQuantity} */
6345
6101
  static NetQuantity() {
6346
6102
  return Joi.object({
@@ -6365,6 +6121,18 @@ class CatalogPlatformModel {
6365
6121
  });
6366
6122
  }
6367
6123
 
6124
+ /** @returns {OptInPostRequest} */
6125
+ static OptInPostRequest() {
6126
+ return Joi.object({
6127
+ brand_ids: Joi.array().items(Joi.number()),
6128
+ company_id: Joi.number(),
6129
+ enabled: Joi.boolean(),
6130
+ opt_level: Joi.string().allow("").required(),
6131
+ platform: Joi.string().allow(""),
6132
+ store_ids: Joi.array().items(Joi.number()),
6133
+ });
6134
+ }
6135
+
6368
6136
  /** @returns {OptinCompanyBrandDetailsView} */
6369
6137
  static OptinCompanyBrandDetailsView() {
6370
6138
  return Joi.object({
@@ -6392,18 +6160,6 @@ class CatalogPlatformModel {
6392
6160
  });
6393
6161
  }
6394
6162
 
6395
- /** @returns {OptInPostRequest} */
6396
- static OptInPostRequest() {
6397
- return Joi.object({
6398
- brand_ids: Joi.array().items(Joi.number()),
6399
- company_id: Joi.number(),
6400
- enabled: Joi.boolean(),
6401
- opt_level: Joi.string().allow("").required(),
6402
- platform: Joi.string().allow(""),
6403
- store_ids: Joi.array().items(Joi.number()),
6404
- });
6405
- }
6406
-
6407
6163
  /** @returns {OptinStoreDetails} */
6408
6164
  static OptinStoreDetails() {
6409
6165
  return Joi.object({
@@ -6423,31 +6179,27 @@ class CatalogPlatformModel {
6423
6179
  });
6424
6180
  }
6425
6181
 
6182
+ /** @returns {PTErrorResponse} */
6183
+ static PTErrorResponse() {
6184
+ return Joi.object({
6185
+ code: Joi.string().allow(""),
6186
+ errors: Joi.any(),
6187
+ message: Joi.string().allow(""),
6188
+ meta: Joi.any(),
6189
+ status: Joi.number(),
6190
+ });
6191
+ }
6192
+
6426
6193
  /** @returns {Page} */
6427
6194
  static Page() {
6428
6195
  return Joi.object({
6429
- current: Joi.number(),
6430
- has_next: Joi.boolean(),
6431
- has_previous: Joi.boolean(),
6432
6196
  item_total: Joi.number(),
6433
6197
  next_id: Joi.string().allow(""),
6434
- size: Joi.number(),
6198
+ has_previous: Joi.boolean(),
6199
+ has_next: Joi.boolean(),
6200
+ current: Joi.number(),
6435
6201
  type: Joi.string().allow("").required(),
6436
- });
6437
- }
6438
-
6439
- /** @returns {Page1} */
6440
- static Page1() {
6441
- return Joi.object({
6442
- ca: Joi.boolean(),
6443
- department: Joi.string().allow(""),
6444
- page_no: Joi.number(),
6445
- page_size: Joi.number(),
6446
- q: Joi.string().allow(""),
6447
- sort: Joi.string().allow(""),
6448
- sort_on: Joi.string().allow(""),
6449
- type: Joi.string().allow(""),
6450
- variant: Joi.string().allow(""),
6202
+ size: Joi.number(),
6451
6203
  });
6452
6204
  }
6453
6205
 
@@ -6821,23 +6573,6 @@ class CatalogPlatformModel {
6821
6573
  });
6822
6574
  }
6823
6575
 
6824
- /** @returns {ProductDetailV2} */
6825
- static ProductDetailV2() {
6826
- return Joi.object({
6827
- brand: CatalogPlatformModel.ProductBrand(),
6828
- is_excluded: Joi.boolean(),
6829
- is_pinned: Joi.boolean(),
6830
- item_code: Joi.string().allow(""),
6831
- item_type: Joi.string().allow(""),
6832
- medias: Joi.array().items(CatalogPlatformModel.Media()),
6833
- name: Joi.string().allow(""),
6834
- priority: Joi.number(),
6835
- short_description: Joi.string().allow(""),
6836
- slug: Joi.string().allow("").required(),
6837
- uid: Joi.number(),
6838
- });
6839
- }
6840
-
6841
6576
  /** @returns {ProductDownloadsResponse} */
6842
6577
  static ProductDownloadsResponse() {
6843
6578
  return Joi.object({
@@ -6968,6 +6703,14 @@ class CatalogPlatformModel {
6968
6703
  });
6969
6704
  }
6970
6705
 
6706
+ /** @returns {ProductReturnConfigSerializer} */
6707
+ static ProductReturnConfigSerializer() {
6708
+ return Joi.object({
6709
+ on_same_store: Joi.boolean(),
6710
+ store_uid: Joi.number(),
6711
+ });
6712
+ }
6713
+
6971
6714
  /** @returns {ProductReturnConfigBaseSerializer} */
6972
6715
  static ProductReturnConfigBaseSerializer() {
6973
6716
  return Joi.object({
@@ -6977,14 +6720,6 @@ class CatalogPlatformModel {
6977
6720
  });
6978
6721
  }
6979
6722
 
6980
- /** @returns {ProductReturnConfigSerializer} */
6981
- static ProductReturnConfigSerializer() {
6982
- return Joi.object({
6983
- on_same_store: Joi.boolean(),
6984
- store_uid: Joi.number(),
6985
- });
6986
- }
6987
-
6988
6723
  /** @returns {ProductSchemaV2} */
6989
6724
  static ProductSchemaV2() {
6990
6725
  return Joi.object({
@@ -7207,17 +6942,6 @@ class CatalogPlatformModel {
7207
6942
  });
7208
6943
  }
7209
6944
 
7210
- /** @returns {PTErrorResponse} */
7211
- static PTErrorResponse() {
7212
- return Joi.object({
7213
- code: Joi.string().allow(""),
7214
- errors: Joi.any(),
7215
- message: Joi.string().allow(""),
7216
- meta: Joi.any(),
7217
- status: Joi.number(),
7218
- });
7219
- }
7220
-
7221
6945
  /** @returns {Quantities} */
7222
6946
  static Quantities() {
7223
6947
  return Joi.object({
@@ -7253,82 +6977,6 @@ class CatalogPlatformModel {
7253
6977
  });
7254
6978
  }
7255
6979
 
7256
- /** @returns {RawProduct} */
7257
- static RawProduct() {
7258
- return Joi.object({
7259
- _custom_json: Joi.any(),
7260
- all_company_ids: Joi.array().items(Joi.number()),
7261
- all_identifiers: Joi.array().items(Joi.string().allow("")),
7262
- all_sizes: Joi.array().items(Joi.any()),
7263
- attributes: Joi.any(),
7264
- brand: CatalogPlatformModel.Brand(),
7265
- brand_uid: Joi.number(),
7266
- category: Joi.any(),
7267
- category_slug: Joi.string().allow(""),
7268
- category_uid: Joi.number(),
7269
- color: Joi.string().allow(""),
7270
- company_id: Joi.number(),
7271
- country_of_origin: Joi.string().allow(""),
7272
- created_by: Joi.any(),
7273
- created_on: Joi.string().allow(""),
7274
- currency: Joi.string().allow(""),
7275
- custom_order: Joi.any(),
7276
- departments: Joi.array().items(Joi.number()),
7277
- description: Joi.string().allow(""),
7278
- highlights: Joi.array().items(Joi.string().allow("")),
7279
- hsn_code: Joi.string().allow(""),
7280
- id: Joi.string().allow(""),
7281
- image_nature: Joi.string().allow(""),
7282
- images: Joi.array().items(Joi.string().allow("")),
7283
- is_active: Joi.boolean(),
7284
- is_dependent: Joi.boolean(),
7285
- is_expirable: Joi.boolean(),
7286
- is_image_less_product: Joi.boolean(),
7287
- is_physical: Joi.boolean(),
7288
- is_set: Joi.boolean(),
7289
- item_code: Joi.string().allow(""),
7290
- item_type: Joi.string().allow(""),
7291
- l3_mapping: Joi.array().items(Joi.string().allow("")),
7292
- media: Joi.array().items(CatalogPlatformModel.Media()),
7293
- modified_by: Joi.any(),
7294
- modified_on: Joi.string().allow(""),
7295
- moq: Joi.any(),
7296
- multi_size: Joi.boolean(),
7297
- name: Joi.string().allow(""),
7298
- net_quantity: CatalogPlatformModel.NetQuantityResponse(),
7299
- no_of_boxes: Joi.number(),
7300
- pending: Joi.string().allow(""),
7301
- primary_color: Joi.string().allow(""),
7302
- product_group_tag: Joi.array().items(Joi.string().allow("")),
7303
- product_publish: CatalogPlatformModel.ProductPublished(),
7304
- return_config: CatalogPlatformModel.ReturnConfigResponse(),
7305
- short_description: Joi.string().allow(""),
7306
- size_guide: Joi.string().allow(""),
7307
- sizes: Joi.array().items(Joi.any()),
7308
- slug: Joi.string().allow(""),
7309
- stage: Joi.string().allow(""),
7310
- tags: Joi.array().items(Joi.string().allow("")),
7311
- tax_identifier: Joi.any(),
7312
- teaser_tag: Joi.any(),
7313
- template_tag: Joi.string().allow(""),
7314
- trader: Joi.array().items(CatalogPlatformModel.Trader()),
7315
- uid: Joi.number(),
7316
- variant_group: Joi.any(),
7317
- variant_media: Joi.any(),
7318
- variants: Joi.any(),
7319
- verified_by: CatalogPlatformModel.VerifiedBy(),
7320
- verified_on: Joi.string().allow(""),
7321
- });
7322
- }
7323
-
7324
- /** @returns {RawProductListingResponse} */
7325
- static RawProductListingResponse() {
7326
- return Joi.object({
7327
- items: Joi.array().items(CatalogPlatformModel.RawProduct()),
7328
- page: CatalogPlatformModel.Page(),
7329
- });
7330
- }
7331
-
7332
6980
  /** @returns {ReturnConfig} */
7333
6981
  static ReturnConfig() {
7334
6982
  return Joi.object({
@@ -7365,12 +7013,78 @@ class CatalogPlatformModel {
7365
7013
  });
7366
7014
  }
7367
7015
 
7368
- /** @returns {SearchableAttribute} */
7369
- static SearchableAttribute() {
7016
+ /** @returns {Sitemap} */
7017
+ static Sitemap() {
7370
7018
  return Joi.object({
7371
- key: Joi.string().allow("").required(),
7372
- name: Joi.string().allow("").required(),
7373
- priority: Joi.number().required(),
7019
+ priority: Joi.number(),
7020
+ frequency: Joi.string().allow(""),
7021
+ });
7022
+ }
7023
+
7024
+ /** @returns {ApplicationItemSeoAction} */
7025
+ static ApplicationItemSeoAction() {
7026
+ return Joi.object({
7027
+ page: Joi.any(),
7028
+ type: Joi.string().allow(""),
7029
+ });
7030
+ }
7031
+
7032
+ /** @returns {ApplicationItemSeoBreadcrumbs} */
7033
+ static ApplicationItemSeoBreadcrumbs() {
7034
+ return Joi.object({
7035
+ url: Joi.string().allow(""),
7036
+ action: Joi.array().items(
7037
+ CatalogPlatformModel.ApplicationItemSeoAction()
7038
+ ),
7039
+ });
7040
+ }
7041
+
7042
+ /** @returns {ApplicationItemSeoMetaTagItem} */
7043
+ static ApplicationItemSeoMetaTagItem() {
7044
+ return Joi.object({
7045
+ key: Joi.string().allow(""),
7046
+ value: Joi.string().allow(""),
7047
+ });
7048
+ }
7049
+
7050
+ /** @returns {ApplicationItemSeoMetaTags} */
7051
+ static ApplicationItemSeoMetaTags() {
7052
+ return Joi.object({
7053
+ title: Joi.string().allow(""),
7054
+ items: Joi.array().items(
7055
+ CatalogPlatformModel.ApplicationItemSeoMetaTagItem()
7056
+ ),
7057
+ });
7058
+ }
7059
+
7060
+ /** @returns {Metatags} */
7061
+ static Metatags() {
7062
+ return Joi.object({
7063
+ title: Joi.string().allow(""),
7064
+ items: Joi.array().items(
7065
+ CatalogPlatformModel.ApplicationItemSeoMetaTags()
7066
+ ),
7067
+ });
7068
+ }
7069
+
7070
+ /** @returns {SizePromotionThreshold} */
7071
+ static SizePromotionThreshold() {
7072
+ return Joi.object({
7073
+ threshold_type: Joi.string().allow(""),
7074
+ threshold_value: Joi.number(),
7075
+ });
7076
+ }
7077
+
7078
+ /** @returns {SEOData} */
7079
+ static SEOData() {
7080
+ return Joi.object({
7081
+ description: Joi.string().allow(""),
7082
+ title: Joi.string().allow(""),
7083
+ sitemap: CatalogPlatformModel.Sitemap(),
7084
+ breadcrumbs: Joi.array().items(
7085
+ CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
7086
+ ),
7087
+ meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
7374
7088
  });
7375
7089
  }
7376
7090
 
@@ -7382,6 +7096,15 @@ class CatalogPlatformModel {
7382
7096
  });
7383
7097
  }
7384
7098
 
7099
+ /** @returns {SearchableAttribute} */
7100
+ static SearchableAttribute() {
7101
+ return Joi.object({
7102
+ key: Joi.string().allow("").required(),
7103
+ name: Joi.string().allow("").required(),
7104
+ priority: Joi.number().required(),
7105
+ });
7106
+ }
7107
+
7385
7108
  /** @returns {SecondLevelChild} */
7386
7109
  static SecondLevelChild() {
7387
7110
  return Joi.object({
@@ -7403,31 +7126,16 @@ class CatalogPlatformModel {
7403
7126
  });
7404
7127
  }
7405
7128
 
7406
- /** @returns {SEOData} */
7407
- static SEOData() {
7408
- return Joi.object({
7409
- breadcrumbs: Joi.array().items(
7410
- CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
7411
- ),
7412
- canonical_url: Joi.string().allow(""),
7413
- description: Joi.string().allow(""),
7414
- meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
7415
- sitemap: CatalogPlatformModel.Sitemap(),
7416
- title: Joi.string().allow(""),
7417
- });
7418
- }
7419
-
7420
7129
  /** @returns {SeoDetail} */
7421
7130
  static SeoDetail() {
7422
7131
  return Joi.object({
7132
+ description: Joi.string().allow(""),
7133
+ title: Joi.string().allow(""),
7134
+ sitemap: Joi.any(),
7423
7135
  breadcrumbs: Joi.array().items(
7424
7136
  CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
7425
7137
  ),
7426
- canonical_url: Joi.string().allow(""),
7427
- description: Joi.string().allow(""),
7428
7138
  meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
7429
- sitemap: Joi.any(),
7430
- title: Joi.string().allow(""),
7431
7139
  });
7432
7140
  }
7433
7141
 
@@ -7453,14 +7161,6 @@ class CatalogPlatformModel {
7453
7161
  });
7454
7162
  }
7455
7163
 
7456
- /** @returns {Sitemap} */
7457
- static Sitemap() {
7458
- return Joi.object({
7459
- frequency: Joi.string().allow(""),
7460
- priority: Joi.number(),
7461
- });
7462
- }
7463
-
7464
7164
  /** @returns {Size} */
7465
7165
  static Size() {
7466
7166
  return Joi.object({
@@ -7497,14 +7197,6 @@ class CatalogPlatformModel {
7497
7197
  });
7498
7198
  }
7499
7199
 
7500
- /** @returns {SizePromotionThreshold} */
7501
- static SizePromotionThreshold() {
7502
- return Joi.object({
7503
- threshold_type: Joi.string().allow(""),
7504
- threshold_value: Joi.number(),
7505
- });
7506
- }
7507
-
7508
7200
  /** @returns {StoreAssignResponse} */
7509
7201
  static StoreAssignResponse() {
7510
7202
  return Joi.object({
@@ -7615,6 +7307,14 @@ class CatalogPlatformModel {
7615
7307
  });
7616
7308
  }
7617
7309
 
7310
+ /** @returns {TemplateValidationData} */
7311
+ static TemplateValidationData() {
7312
+ return Joi.object({
7313
+ global_validation: CatalogPlatformModel.GlobalValidation(),
7314
+ template_validation: Joi.any(),
7315
+ });
7316
+ }
7317
+
7618
7318
  /** @returns {TemplatesResponse} */
7619
7319
  static TemplatesResponse() {
7620
7320
  return Joi.object({
@@ -7631,14 +7331,6 @@ class CatalogPlatformModel {
7631
7331
  });
7632
7332
  }
7633
7333
 
7634
- /** @returns {TemplateValidationData} */
7635
- static TemplateValidationData() {
7636
- return Joi.object({
7637
- global_validation: CatalogPlatformModel.GlobalValidation(),
7638
- template_validation: Joi.any(),
7639
- });
7640
- }
7641
-
7642
7334
  /** @returns {ThirdLevelChild} */
7643
7335
  static ThirdLevelChild() {
7644
7336
  return Joi.object({
@@ -7708,41 +7400,6 @@ class CatalogPlatformModel {
7708
7400
  });
7709
7401
  }
7710
7402
 
7711
- /** @returns {UpdatedResponse} */
7712
- static UpdatedResponse() {
7713
- return Joi.object({
7714
- items_not_updated: Joi.array().items(Joi.number()),
7715
- message: Joi.string().allow(""),
7716
- });
7717
- }
7718
-
7719
- /** @returns {UpdateMarketplaceOptinRequest} */
7720
- static UpdateMarketplaceOptinRequest() {
7721
- return Joi.object({
7722
- brand_ids: Joi.array().items(Joi.number()),
7723
- company_id: Joi.number(),
7724
- enabled: Joi.boolean(),
7725
- opt_level: Joi.string().allow(""),
7726
- platform: Joi.string().allow(""),
7727
- store_ids: Joi.array().items(Joi.number()),
7728
- });
7729
- }
7730
-
7731
- /** @returns {UpdateMarketplaceOptinResponse} */
7732
- static UpdateMarketplaceOptinResponse() {
7733
- return Joi.object({
7734
- app_id: Joi.string().allow(""),
7735
- brand_ids: Joi.array().items(Joi.number()),
7736
- company_id: Joi.number(),
7737
- created_by: CatalogPlatformModel.CreatedBy(),
7738
- enabled: Joi.boolean(),
7739
- modified_by: CatalogPlatformModel.CreatedBy(),
7740
- opt_level: Joi.string().allow(""),
7741
- platform: Joi.string().allow(""),
7742
- store_ids: Joi.array().items(Joi.number()),
7743
- });
7744
- }
7745
-
7746
7403
  /** @returns {UpdateSearchConfigurationRequest} */
7747
7404
  static UpdateSearchConfigurationRequest() {
7748
7405
  return Joi.object({
@@ -7767,6 +7424,14 @@ class CatalogPlatformModel {
7767
7424
  });
7768
7425
  }
7769
7426
 
7427
+ /** @returns {UpdatedResponse} */
7428
+ static UpdatedResponse() {
7429
+ return Joi.object({
7430
+ items_not_updated: Joi.array().items(Joi.number()),
7431
+ message: Joi.string().allow(""),
7432
+ });
7433
+ }
7434
+
7770
7435
  /** @returns {UserCommon} */
7771
7436
  static UserCommon() {
7772
7437
  return Joi.object({