@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.3

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 (106) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +846 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +822 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2155 -2150
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1460 -1458
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationModel.d.ts +762 -762
  38. package/sdk/application/User/UserApplicationModel.js +738 -738
  39. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  40. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  41. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  42. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  43. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  45. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  46. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  49. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  50. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  51. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  52. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  53. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  54. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -1013
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +923 -923
  57. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  58. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  63. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  64. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  65. package/sdk/platform/Content/ContentPlatformModel.d.ts +1833 -1833
  66. package/sdk/platform/Content/ContentPlatformModel.js +1837 -1837
  67. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  68. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  69. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +865 -865
  70. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +877 -877
  71. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  72. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  73. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  74. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  75. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  76. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  77. package/sdk/platform/Order/OrderPlatformModel.d.ts +5180 -5176
  78. package/sdk/platform/Order/OrderPlatformModel.js +4740 -4736
  79. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  80. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  81. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2670 -2660
  82. package/sdk/platform/Payment/PaymentPlatformModel.js +1831 -1827
  83. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  84. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  85. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1505 -1507
  86. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1532 -1536
  87. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  88. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  89. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  90. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  91. package/sdk/platform/User/UserPlatformModel.d.ts +758 -758
  92. package/sdk/platform/User/UserPlatformModel.js +643 -643
  93. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  94. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  95. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  96. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  97. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  98. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  99. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  100. package/sdk/public/Content/ContentPublicModel.js +28 -28
  101. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  102. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  103. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  104. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  105. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  106. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -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]
@@ -1558,6 +1536,40 @@ const Joi = require("joi");
1558
1536
  * @property {Size[]} [sizes]
1559
1537
  */
1560
1538
 
1539
+ /**
1540
+ * @typedef GetCollectionDetailResponse
1541
+ * @property {Object} [_custom_json]
1542
+ * @property {Object} [_locale_language]
1543
+ * @property {CollectionSchedule} [_schedule]
1544
+ * @property {Object} [action]
1545
+ * @property {boolean} [allow_facets]
1546
+ * @property {boolean} [allow_sort]
1547
+ * @property {string} [app_id]
1548
+ * @property {CollectionBadge} [badge]
1549
+ * @property {ImageUrls} [banners]
1550
+ * @property {string} [description]
1551
+ * @property {boolean} [is_active]
1552
+ * @property {boolean} [is_visible]
1553
+ * @property {Media} [logo]
1554
+ * @property {Object} [meta]
1555
+ * @property {string} [name]
1556
+ * @property {number} [priority]
1557
+ * @property {boolean} [published]
1558
+ * @property {CollectionQuery[]} [query]
1559
+ * @property {SeoDetail} [seo]
1560
+ * @property {string} [slug]
1561
+ * @property {string} [sort_on]
1562
+ * @property {string[]} [tags]
1563
+ * @property {string} [type]
1564
+ * @property {string} [uid]
1565
+ * @property {string[]} [visible_facets_keys]
1566
+ */
1567
+
1568
+ /**
1569
+ * @typedef CommonResponseSchemaCollection
1570
+ * @property {string} [message]
1571
+ */
1572
+
1561
1573
  /**
1562
1574
  * @typedef GetQueryFiltersResponse
1563
1575
  * @property {ProductFilters[]} [filters]
@@ -1565,6 +1577,65 @@ const Joi = require("joi");
1565
1577
  * @property {ProductSortOn[]} [sort_on]
1566
1578
  */
1567
1579
 
1580
+ /**
1581
+ * @typedef GetCollectionItemsResponseSchemaV2
1582
+ * @property {ProductDetailV2[]} [items]
1583
+ * @property {Page1} [page]
1584
+ */
1585
+
1586
+ /**
1587
+ * @typedef Page1
1588
+ * @property {boolean} [ca]
1589
+ * @property {string} [department]
1590
+ * @property {number} [page_no]
1591
+ * @property {number} [page_size]
1592
+ * @property {string} [q]
1593
+ * @property {string} [sort]
1594
+ * @property {string} [sort_on]
1595
+ * @property {string} [type]
1596
+ * @property {string} [variant]
1597
+ */
1598
+
1599
+ /**
1600
+ * @typedef CollectionItemSchemaV2
1601
+ * @property {string} action
1602
+ * @property {number} item_id
1603
+ * @property {number} [priority]
1604
+ */
1605
+
1606
+ /**
1607
+ * @typedef CollectionItemUpdateSchemaV2
1608
+ * @property {boolean} [allow_facets]
1609
+ * @property {boolean} [allow_sort]
1610
+ * @property {CollectionItemSchemaV2[]} [items]
1611
+ * @property {CollectionQuerySchemaV2[]} [query]
1612
+ * @property {string} type
1613
+ * @property {string[]} [visible_facets_keys]
1614
+ */
1615
+
1616
+ /**
1617
+ * @typedef CollectionQuerySchemaV2
1618
+ * @property {string} attribute - The attribute of the collection query
1619
+ * @property {string} op - The operation to be performed on the attribute of the
1620
+ * collection query
1621
+ * @property {Object[]} value - The value of the attribute of the collection query
1622
+ */
1623
+
1624
+ /**
1625
+ * @typedef ProductDetailV2
1626
+ * @property {ProductBrand} [brand]
1627
+ * @property {boolean} [is_excluded]
1628
+ * @property {boolean} [is_pinned]
1629
+ * @property {string} [item_code]
1630
+ * @property {string} [item_type]
1631
+ * @property {Media[]} [medias]
1632
+ * @property {string} [name]
1633
+ * @property {number} [priority]
1634
+ * @property {string} [short_description]
1635
+ * @property {string} slug
1636
+ * @property {number} [uid]
1637
+ */
1638
+
1568
1639
  /**
1569
1640
  * @typedef GetSearchConfigurationResponse
1570
1641
  * @property {string} application_id - The application id where custom search
@@ -1618,15 +1689,35 @@ const Joi = require("joi");
1618
1689
  */
1619
1690
 
1620
1691
  /**
1621
- * @typedef GTIN
1622
- * @property {string} gtin_type
1623
- * @property {string} gtin_value
1624
- * @property {boolean} [primary]
1692
+ * @typedef Guide
1693
+ * @property {Meta} [meta]
1625
1694
  */
1626
1695
 
1627
1696
  /**
1628
- * @typedef Guide
1629
- * @property {Meta} [meta]
1697
+ * @typedef HSNCodesResponse
1698
+ * @property {HSNData} [data]
1699
+ * @property {string} [message]
1700
+ */
1701
+
1702
+ /**
1703
+ * @typedef HSNData
1704
+ * @property {string[]} [country_of_origin]
1705
+ * @property {string[]} [hsn_code]
1706
+ */
1707
+
1708
+ /**
1709
+ * @typedef HSNDataInsertV2
1710
+ * @property {string} country_code - Country code.
1711
+ * @property {Object} [created_by] - Details of the user who created the HSN data.
1712
+ * @property {string} [created_on] - Date and time when the HSN data was created.
1713
+ * @property {string} description - Description of the HSN data.
1714
+ * @property {string} hsn_code - HSN code.
1715
+ * @property {string} [hsn_code_id] - Unique identifier of the HSN code.
1716
+ * @property {Object} [modified_by] - Details of the user who last modified the HSN data.
1717
+ * @property {string} [modified_on] - Date and time when the HSN data was last modified.
1718
+ * @property {string} reporting_hsn - HSN code.
1719
+ * @property {TaxSlab[]} taxes - List of tax slabs.
1720
+ * @property {string} type - Type of HSN data (goods or services).
1630
1721
  */
1631
1722
 
1632
1723
  /**
@@ -1658,51 +1749,24 @@ const Joi = require("joi");
1658
1749
  * @property {string} [id] - The identifier of the HSN code.
1659
1750
  * @property {string} [modified_on] - The date and time when the HSN code was
1660
1751
  * 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
1752
  * @property {number} [tax1] - The first tax rate.
1664
1753
  * @property {number} [tax2] - The second tax rate.
1754
+ * @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
1755
+ * @property {boolean} [tax_on_mrp] - Flag indicating whether tax is applicable on MRP.
1665
1756
  * @property {number} [threshold1] - The threshold for the first tax rate.
1666
1757
  * @property {number} [threshold2] - The threshold for the second tax rate.
1667
1758
  */
1668
1759
 
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
1760
  /**
1697
1761
  * @typedef HsnUpsert
1698
1762
  * @property {number} company_id - The ID of the company.
1699
1763
  * @property {string} hs2_code - The HS2 code.
1700
1764
  * @property {string} hsn_code - The HSN code.
1701
1765
  * @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
1766
  * @property {number} tax1 - The first tax rate.
1705
1767
  * @property {number} [tax2] - The second tax rate.
1768
+ * @property {boolean} [tax_on_esp] - Flag indicating whether tax is applicable on ESP.
1769
+ * @property {boolean} tax_on_mrp - Flag indicating whether tax is applicable on MRP.
1706
1770
  * @property {number} threshold1 - The threshold for the first tax rate.
1707
1771
  * @property {number} [threshold2] - The threshold for the second tax rate.
1708
1772
  * @property {number} [uid] - The unique identifier.
@@ -1722,6 +1786,29 @@ const Joi = require("joi");
1722
1786
  * @property {BannerImage} [portrait]
1723
1787
  */
1724
1788
 
1789
+ /**
1790
+ * @typedef InvSize
1791
+ * @property {string} currency - The currency used for the item price.
1792
+ * @property {string} [expiration_date]
1793
+ * @property {GTIN[]} identifiers
1794
+ * @property {boolean} [is_set]
1795
+ * @property {string} [item_dimensions_unit_of_measure] - The unit of measure
1796
+ * for the item dimensions.
1797
+ * @property {number} [item_height] - The height of the item.
1798
+ * @property {number} [item_length] - The length of the item.
1799
+ * @property {number} [item_weight] - The weight of the item.
1800
+ * @property {string} [item_weight_unit_of_measure] - The unit of measure for
1801
+ * the item weight.
1802
+ * @property {number} [item_width] - The width of the item.
1803
+ * @property {number} [price]
1804
+ * @property {number} price_effective
1805
+ * @property {number} [price_transfer]
1806
+ * @property {number} quantity
1807
+ * @property {InventorySet} [set]
1808
+ * @property {string} size
1809
+ * @property {string} store_code
1810
+ */
1811
+
1725
1812
  /**
1726
1813
  * @typedef InventoryBulkRequest
1727
1814
  * @property {string} batch_id
@@ -2026,29 +2113,6 @@ const Joi = require("joi");
2026
2113
  * @property {InvoiceCredSerializer} [e_waybill]
2027
2114
  */
2028
2115
 
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
2116
  /**
2053
2117
  * @typedef ItemQuery
2054
2118
  * @property {number} [brand_uid]
@@ -2140,6 +2204,13 @@ const Joi = require("joi");
2140
2204
  * @property {string} [url]
2141
2205
  */
2142
2206
 
2207
+ /**
2208
+ * @typedef MOQData
2209
+ * @property {number} [increment_unit]
2210
+ * @property {number} [maximum]
2211
+ * @property {number} [minimum]
2212
+ */
2213
+
2143
2214
  /**
2144
2215
  * @typedef ManufacturerResponse
2145
2216
  * @property {string} address - The address of the manufacturer.
@@ -2154,22 +2225,6 @@ const Joi = require("joi");
2154
2225
  * @property {string} [name]
2155
2226
  */
2156
2227
 
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
2228
  /**
2174
2229
  * @typedef Media
2175
2230
  * @property {Object} [meta]
@@ -2236,19 +2291,6 @@ const Joi = require("joi");
2236
2291
  * string and length should not exceed 100 characters.
2237
2292
  */
2238
2293
 
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
2294
  /**
2253
2295
  * @typedef NetQuantity
2254
2296
  * @property {string} [unit] - The unit of measurement used for the net quantity
@@ -2268,6 +2310,16 @@ const Joi = require("joi");
2268
2310
  * @property {string} [start]
2269
2311
  */
2270
2312
 
2313
+ /**
2314
+ * @typedef OptInPostRequest
2315
+ * @property {number[]} [brand_ids]
2316
+ * @property {number} [company_id]
2317
+ * @property {boolean} [enabled]
2318
+ * @property {string} opt_level
2319
+ * @property {string} [platform]
2320
+ * @property {number[]} [store_ids]
2321
+ */
2322
+
2271
2323
  /**
2272
2324
  * @typedef OptinCompanyBrandDetailsView
2273
2325
  * @property {CompanyBrandDetail[]} [items]
@@ -2289,16 +2341,6 @@ const Joi = require("joi");
2289
2341
  * @property {number} [store]
2290
2342
  */
2291
2343
 
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
2344
  /**
2303
2345
  * @typedef OptinStoreDetails
2304
2346
  * @property {StoreDetail[]} [items]
@@ -2314,28 +2356,24 @@ const Joi = require("joi");
2314
2356
  * @property {SEOData} [seo]
2315
2357
  */
2316
2358
 
2359
+ /**
2360
+ * @typedef PTErrorResponse
2361
+ * @property {string} [code]
2362
+ * @property {Object} [errors]
2363
+ * @property {string} [message]
2364
+ * @property {Object} [meta]
2365
+ * @property {number} [status]
2366
+ */
2367
+
2317
2368
  /**
2318
2369
  * @typedef Page
2319
- * @property {number} [current]
2320
- * @property {boolean} [has_next]
2321
- * @property {boolean} [has_previous]
2322
2370
  * @property {number} [item_total]
2323
2371
  * @property {string} [next_id]
2324
- * @property {number} [size]
2372
+ * @property {boolean} [has_previous]
2373
+ * @property {boolean} [has_next]
2374
+ * @property {number} [current]
2325
2375
  * @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]
2376
+ * @property {number} [size]
2339
2377
  */
2340
2378
 
2341
2379
  /**
@@ -2658,21 +2696,6 @@ const Joi = require("joi");
2658
2696
  * @property {string} [title]
2659
2697
  */
2660
2698
 
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
2699
  /**
2677
2700
  * @typedef ProductDownloadsResponse
2678
2701
  * @property {ProductTemplateExportResponse[]} [items] - The items of the job.
@@ -2775,6 +2798,12 @@ const Joi = require("joi");
2775
2798
  * @property {number} [product_online_date]
2776
2799
  */
2777
2800
 
2801
+ /**
2802
+ * @typedef ProductReturnConfigSerializer
2803
+ * @property {boolean} [on_same_store]
2804
+ * @property {number} [store_uid]
2805
+ */
2806
+
2778
2807
  /**
2779
2808
  * @typedef ProductReturnConfigBaseSerializer
2780
2809
  * @property {boolean} returnable - Boolean Flag for item returnable
@@ -2782,12 +2811,6 @@ const Joi = require("joi");
2782
2811
  * @property {string} unit - Unit of return config days|hours
2783
2812
  */
2784
2813
 
2785
- /**
2786
- * @typedef ProductReturnConfigSerializer
2787
- * @property {boolean} [on_same_store]
2788
- * @property {number} [store_uid]
2789
- */
2790
-
2791
2814
  /**
2792
2815
  * @typedef ProductSchemaV2
2793
2816
  * @property {Object} [_custom_json]
@@ -2989,15 +3012,6 @@ const Joi = require("joi");
2989
3012
  * @property {Object} [variants]
2990
3013
  */
2991
3014
 
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
3015
  /**
3002
3016
  * @typedef Quantities
3003
3017
  * @property {QuantityBase} [damaged]
@@ -3025,78 +3039,6 @@ const Joi = require("joi");
3025
3039
  * @property {string} [updated_at]
3026
3040
  */
3027
3041
 
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
3042
  /**
3101
3043
  * @typedef ReturnConfig
3102
3044
  * @property {boolean} returnable
@@ -3125,6 +3067,64 @@ const Joi = require("joi");
3125
3067
  * @property {string} [unit]
3126
3068
  */
3127
3069
 
3070
+ /**
3071
+ * @typedef Sitemap
3072
+ * @property {number} [priority]
3073
+ * @property {string} [frequency]
3074
+ */
3075
+
3076
+ /**
3077
+ * @typedef ApplicationItemSeoAction
3078
+ * @property {Object} [page]
3079
+ * @property {string} [type]
3080
+ */
3081
+
3082
+ /**
3083
+ * @typedef ApplicationItemSeoBreadcrumbs
3084
+ * @property {string} [url]
3085
+ * @property {ApplicationItemSeoAction[]} [action]
3086
+ */
3087
+
3088
+ /**
3089
+ * @typedef ApplicationItemSeoMetaTagItem
3090
+ * @property {string} [key]
3091
+ * @property {string} [value]
3092
+ */
3093
+
3094
+ /**
3095
+ * @typedef ApplicationItemSeoMetaTags
3096
+ * @property {string} [title]
3097
+ * @property {ApplicationItemSeoMetaTagItem[]} [items]
3098
+ */
3099
+
3100
+ /**
3101
+ * @typedef Metatags
3102
+ * @property {string} [title]
3103
+ * @property {ApplicationItemSeoMetaTags[]} [items]
3104
+ */
3105
+
3106
+ /**
3107
+ * @typedef SizePromotionThreshold
3108
+ * @property {string} [threshold_type]
3109
+ * @property {number} [threshold_value]
3110
+ */
3111
+
3112
+ /**
3113
+ * @typedef SEOData
3114
+ * @property {string} [description]
3115
+ * @property {string} [title]
3116
+ * @property {Sitemap} [sitemap]
3117
+ * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
3118
+ * @property {Metatags[]} [meta_tags]
3119
+ * @property {string} [canonical_url]
3120
+ */
3121
+
3122
+ /**
3123
+ * @typedef SearchKeywordResult
3124
+ * @property {Object} query
3125
+ * @property {string} sort_on
3126
+ */
3127
+
3128
3128
  /**
3129
3129
  * @typedef SearchableAttribute
3130
3130
  * @property {string} key - The attribute key to search on. This key matches the
@@ -3135,12 +3135,6 @@ const Joi = require("joi");
3135
3135
  * kick in. Higher the priority, higher the weight considered while searching
3136
3136
  */
3137
3137
 
3138
- /**
3139
- * @typedef SearchKeywordResult
3140
- * @property {Object} query
3141
- * @property {string} sort_on
3142
- */
3143
-
3144
3138
  /**
3145
3139
  * @typedef SecondLevelChild
3146
3140
  * @property {Object} [_custom_json]
@@ -3159,23 +3153,13 @@ const Joi = require("joi");
3159
3153
  */
3160
3154
 
3161
3155
  /**
3162
- * @typedef SEOData
3163
- * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
3164
- * @property {string} [canonical_url]
3156
+ * @typedef SeoDetail
3165
3157
  * @property {string} [description]
3166
- * @property {Metatags[]} [meta_tags]
3167
- * @property {Sitemap} [sitemap]
3168
3158
  * @property {string} [title]
3169
- */
3170
-
3171
- /**
3172
- * @typedef SeoDetail
3159
+ * @property {Object} [sitemap]
3173
3160
  * @property {ApplicationItemSeoBreadcrumbs[]} [breadcrumbs]
3174
- * @property {string} [canonical_url]
3175
- * @property {string} [description]
3176
3161
  * @property {Metatags[]} [meta_tags]
3177
- * @property {Object} [sitemap]
3178
- * @property {string} [title]
3162
+ * @property {string} [canonical_url]
3179
3163
  */
3180
3164
 
3181
3165
  /**
@@ -3194,12 +3178,6 @@ const Joi = require("joi");
3194
3178
  * @property {ProductSchemaV2} [data]
3195
3179
  */
3196
3180
 
3197
- /**
3198
- * @typedef Sitemap
3199
- * @property {string} [frequency]
3200
- * @property {number} [priority]
3201
- */
3202
-
3203
3181
  /**
3204
3182
  * @typedef Size
3205
3183
  * @property {string} [display]
@@ -3230,12 +3208,6 @@ const Joi = require("joi");
3230
3208
  * @property {string} [title]
3231
3209
  */
3232
3210
 
3233
- /**
3234
- * @typedef SizePromotionThreshold
3235
- * @property {string} [threshold_type]
3236
- * @property {number} [threshold_value]
3237
- */
3238
-
3239
3211
  /**
3240
3212
  * @typedef StoreAssignResponse
3241
3213
  * @property {string} [_id]
@@ -3328,6 +3300,12 @@ const Joi = require("joi");
3328
3300
  * @property {string} [tag]
3329
3301
  */
3330
3302
 
3303
+ /**
3304
+ * @typedef TemplateValidationData
3305
+ * @property {GlobalValidation} [global_validation]
3306
+ * @property {Object} [template_validation]
3307
+ */
3308
+
3331
3309
  /**
3332
3310
  * @typedef TemplatesResponse
3333
3311
  * @property {ProductTemplate} [items]
@@ -3340,12 +3318,6 @@ const Joi = require("joi");
3340
3318
  * @property {TemplateDetails} [template_details]
3341
3319
  */
3342
3320
 
3343
- /**
3344
- * @typedef TemplateValidationData
3345
- * @property {GlobalValidation} [global_validation]
3346
- * @property {Object} [template_validation]
3347
- */
3348
-
3349
3321
  /**
3350
3322
  * @typedef ThirdLevelChild
3351
3323
  * @property {Object} [_custom_json]
@@ -3405,35 +3377,6 @@ const Joi = require("joi");
3405
3377
  * @property {string[]} [visible_facets_keys]
3406
3378
  */
3407
3379
 
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
3380
  /**
3438
3381
  * @typedef UpdateSearchConfigurationRequest
3439
3382
  * @property {string} application_id - The application id where custom search
@@ -3459,6 +3402,12 @@ const Joi = require("joi");
3459
3402
  * @property {boolean} [success]
3460
3403
  */
3461
3404
 
3405
+ /**
3406
+ * @typedef UpdatedResponse
3407
+ * @property {number[]} [items_not_updated]
3408
+ * @property {string} [message]
3409
+ */
3410
+
3462
3411
  /**
3463
3412
  * @typedef UserCommon
3464
3413
  * @property {number} [company_id]
@@ -3578,13 +3527,64 @@ const Joi = require("joi");
3578
3527
  */
3579
3528
 
3580
3529
  /**
3581
- * @typedef {| "about-us"
3582
- * | "addresses"
3583
- * | "blog"
3584
- * | "brands"
3585
- * | "cards"
3586
- * | "cart"
3587
- * | "categories"
3530
+ * @typedef CreatedBy
3531
+ * @property {string} [username]
3532
+ * @property {string} [user_id]
3533
+ */
3534
+
3535
+ /**
3536
+ * @typedef Marketplaces
3537
+ * @property {number[]} [brand_ids]
3538
+ * @property {string} [app_id]
3539
+ * @property {boolean} [enabled]
3540
+ * @property {CreatedBy} [created_by]
3541
+ * @property {Object} [created_on]
3542
+ * @property {string} [opt_level]
3543
+ * @property {number} [company_id]
3544
+ * @property {CreatedBy} [modified_by]
3545
+ * @property {number[]} [store_ids]
3546
+ * @property {Object} [modified_on]
3547
+ * @property {string} [platforms]
3548
+ * @property {string} [_id]
3549
+ */
3550
+
3551
+ /**
3552
+ * @typedef GetAllMarketplaces
3553
+ * @property {Marketplaces[]} [items]
3554
+ * @property {Page} [page]
3555
+ */
3556
+
3557
+ /**
3558
+ * @typedef UpdateMarketplaceOptinRequest
3559
+ * @property {number[]} [brand_ids]
3560
+ * @property {number} [company_id]
3561
+ * @property {boolean} [enabled]
3562
+ * @property {string} [opt_level]
3563
+ * @property {string} [platform]
3564
+ * @property {number[]} [store_ids]
3565
+ */
3566
+
3567
+ /**
3568
+ * @typedef UpdateMarketplaceOptinResponse
3569
+ * @property {number[]} [brand_ids]
3570
+ * @property {number} [company_id]
3571
+ * @property {string} [app_id]
3572
+ * @property {boolean} [enabled]
3573
+ * @property {string} [opt_level]
3574
+ * @property {string} [platform]
3575
+ * @property {number[]} [store_ids]
3576
+ * @property {CreatedBy} [created_by]
3577
+ * @property {CreatedBy} [modified_by]
3578
+ */
3579
+
3580
+ /**
3581
+ * @typedef {| "about-us"
3582
+ * | "addresses"
3583
+ * | "blog"
3584
+ * | "brands"
3585
+ * | "cards"
3586
+ * | "cart"
3587
+ * | "categories"
3588
3588
  * | "brand"
3589
3589
  * | "category"
3590
3590
  * | "collection"
@@ -3647,15 +3647,8 @@ class CatalogPlatformModel {
3647
3647
  /\S/,
3648
3648
  Joi.array().items(Joi.string().allow(""))
3649
3649
  ),
3650
- type: CatalogPlatformModel.PageType().required(),
3651
3650
  url: Joi.string().allow(""),
3652
- });
3653
- }
3654
-
3655
- /** @returns {AllowSingleRequest} */
3656
- static AllowSingleRequest() {
3657
- return Joi.object({
3658
- allow_single: Joi.boolean().required(),
3651
+ type: CatalogPlatformModel.PageType().required(),
3659
3652
  });
3660
3653
  }
3661
3654
 
@@ -3673,6 +3666,13 @@ class CatalogPlatformModel {
3673
3666
  });
3674
3667
  }
3675
3668
 
3669
+ /** @returns {AllowSingleRequest} */
3670
+ static AllowSingleRequest() {
3671
+ return Joi.object({
3672
+ allow_single: Joi.boolean().required(),
3673
+ });
3674
+ }
3675
+
3676
3676
  /** @returns {AppCatalogConfiguration} */
3677
3677
  static AppCatalogConfiguration() {
3678
3678
  return Joi.object({
@@ -3797,6 +3797,15 @@ class CatalogPlatformModel {
3797
3797
  });
3798
3798
  }
3799
3799
 
3800
+ /** @returns {ApplicationItemMOQ} */
3801
+ static ApplicationItemMOQ() {
3802
+ return Joi.object({
3803
+ increment_unit: Joi.number(),
3804
+ maximum: Joi.number(),
3805
+ minimum: Joi.number(),
3806
+ });
3807
+ }
3808
+
3800
3809
  /** @returns {ApplicationItemMeta} */
3801
3810
  static ApplicationItemMeta() {
3802
3811
  return Joi.object({
@@ -3811,15 +3820,6 @@ class CatalogPlatformModel {
3811
3820
  });
3812
3821
  }
3813
3822
 
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
3823
  /** @returns {ApplicationItemSEO} */
3824
3824
  static ApplicationItemSEO() {
3825
3825
  return Joi.object({
@@ -3828,42 +3828,6 @@ class CatalogPlatformModel {
3828
3828
  });
3829
3829
  }
3830
3830
 
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
3831
  /** @returns {ApplicationProductListingResponse} */
3868
3832
  static ApplicationProductListingResponse() {
3869
3833
  return Joi.object({
@@ -4047,20 +4011,20 @@ class CatalogPlatformModel {
4047
4011
  });
4048
4012
  }
4049
4013
 
4050
- /** @returns {AutocompleteAction} */
4051
- static AutocompleteAction() {
4014
+ /** @returns {AutoCompleteMedia} */
4015
+ static AutoCompleteMedia() {
4052
4016
  return Joi.object({
4053
- page: CatalogPlatformModel.AutocompletePageAction(),
4017
+ aspect_ratio: Joi.string().allow(""),
4054
4018
  type: Joi.string().allow(""),
4019
+ url: Joi.string().allow(""),
4055
4020
  });
4056
4021
  }
4057
4022
 
4058
- /** @returns {AutoCompleteMedia} */
4059
- static AutoCompleteMedia() {
4023
+ /** @returns {AutocompleteAction} */
4024
+ static AutocompleteAction() {
4060
4025
  return Joi.object({
4061
- aspect_ratio: Joi.string().allow(""),
4026
+ page: CatalogPlatformModel.AutocompletePageAction(),
4062
4027
  type: Joi.string().allow(""),
4063
- url: Joi.string().allow(""),
4064
4028
  });
4065
4029
  }
4066
4030
 
@@ -4432,6 +4396,7 @@ class CatalogPlatformModel {
4432
4396
  /** @returns {CollectionCreateResponse} */
4433
4397
  static CollectionCreateResponse() {
4434
4398
  return Joi.object({
4399
+ uid: Joi.string().allow(""),
4435
4400
  _schedule: Joi.any(),
4436
4401
  allow_facets: Joi.boolean(),
4437
4402
  allow_sort: Joi.boolean(),
@@ -4450,7 +4415,6 @@ class CatalogPlatformModel {
4450
4415
  sort_on: Joi.string().allow(""),
4451
4416
  tag: Joi.array().items(Joi.string().allow("")),
4452
4417
  type: Joi.string().allow(""),
4453
- uid: Joi.string().allow(""),
4454
4418
  visible_facets_keys: Joi.array().items(Joi.string().allow("")),
4455
4419
  });
4456
4420
  }
@@ -4497,15 +4461,6 @@ class CatalogPlatformModel {
4497
4461
  });
4498
4462
  }
4499
4463
 
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
4464
  /** @returns {CollectionItemUpdate} */
4510
4465
  static CollectionItemUpdate() {
4511
4466
  return Joi.object({
@@ -4518,18 +4473,6 @@ class CatalogPlatformModel {
4518
4473
  });
4519
4474
  }
4520
4475
 
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
4476
  /** @returns {CollectionListingFilter} */
4534
4477
  static CollectionListingFilter() {
4535
4478
  return Joi.object({
@@ -4569,15 +4512,6 @@ class CatalogPlatformModel {
4569
4512
  });
4570
4513
  }
4571
4514
 
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
4515
  /** @returns {CollectionSchedule} */
4582
4516
  static CollectionSchedule() {
4583
4517
  return Joi.object({
@@ -4589,13 +4523,6 @@ class CatalogPlatformModel {
4589
4523
  });
4590
4524
  }
4591
4525
 
4592
- /** @returns {CommonResponseSchemaCollection} */
4593
- static CommonResponseSchemaCollection() {
4594
- return Joi.object({
4595
- message: Joi.string().allow(""),
4596
- });
4597
- }
4598
-
4599
4526
  /** @returns {CompanyBrandDetail} */
4600
4527
  static CompanyBrandDetail() {
4601
4528
  return Joi.object({
@@ -4831,14 +4758,6 @@ class CatalogPlatformModel {
4831
4758
  });
4832
4759
  }
4833
4760
 
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
4761
  /** @returns {CreateSearchConfigurationRequest} */
4843
4762
  static CreateSearchConfigurationRequest() {
4844
4763
  return Joi.object({
@@ -5118,30 +5037,115 @@ class CatalogPlatformModel {
5118
5037
  });
5119
5038
  }
5120
5039
 
5121
- /** @returns {GenderDetail} */
5122
- static GenderDetail() {
5040
+ /** @returns {RawProduct} */
5041
+ static RawProduct() {
5123
5042
  return Joi.object({
5124
- departments: Joi.array().items(Joi.string().allow("")),
5043
+ _custom_json: Joi.any(),
5044
+ all_company_ids: Joi.array().items(Joi.number()),
5045
+ all_identifiers: Joi.array().items(Joi.string().allow("")),
5046
+ all_sizes: Joi.array().items(Joi.any()),
5047
+ attributes: Joi.any(),
5048
+ brand: CatalogPlatformModel.Brand(),
5049
+ brand_uid: Joi.number(),
5050
+ category: Joi.any(),
5051
+ category_slug: Joi.string().allow(""),
5052
+ category_uid: Joi.number(),
5053
+ color: Joi.string().allow(""),
5054
+ company_id: Joi.number(),
5055
+ country_of_origin: Joi.string().allow(""),
5056
+ created_by: Joi.any(),
5057
+ created_on: Joi.string().allow(""),
5058
+ currency: Joi.string().allow(""),
5059
+ custom_order: Joi.any(),
5060
+ departments: Joi.array().items(Joi.number()),
5125
5061
  description: Joi.string().allow(""),
5126
- details: CatalogPlatformModel.AttributeMasterDetails(),
5127
- enabled_for_end_consumer: Joi.boolean(),
5128
- filters: CatalogPlatformModel.AttributeMasterFilter(),
5062
+ highlights: Joi.array().items(Joi.string().allow("")),
5063
+ hsn_code: Joi.string().allow(""),
5129
5064
  id: Joi.string().allow(""),
5130
- is_nested: Joi.boolean(),
5131
- logo: Joi.string().allow(""),
5132
- meta: CatalogPlatformModel.AttributeMasterMeta(),
5065
+ image_nature: Joi.string().allow(""),
5066
+ images: Joi.array().items(Joi.string().allow("")),
5067
+ is_active: Joi.boolean(),
5068
+ is_dependent: Joi.boolean(),
5069
+ is_expirable: Joi.boolean(),
5070
+ is_image_less_product: Joi.boolean(),
5071
+ is_physical: Joi.boolean(),
5072
+ is_set: Joi.boolean(),
5073
+ item_code: Joi.string().allow(""),
5074
+ item_type: Joi.string().allow(""),
5075
+ l3_mapping: Joi.array().items(Joi.string().allow("")),
5076
+ media: Joi.array().items(CatalogPlatformModel.Media()),
5077
+ modified_by: Joi.any(),
5078
+ modified_on: Joi.string().allow(""),
5079
+ moq: Joi.any(),
5080
+ multi_size: Joi.boolean(),
5133
5081
  name: Joi.string().allow(""),
5134
- schema: CatalogPlatformModel.AttributeMaster(),
5082
+ net_quantity: CatalogPlatformModel.NetQuantityResponse(),
5083
+ no_of_boxes: Joi.number(),
5084
+ pending: Joi.string().allow(""),
5085
+ primary_color: Joi.string().allow(""),
5086
+ product_group_tag: Joi.array().items(Joi.string().allow("")),
5087
+ product_publish: CatalogPlatformModel.ProductPublished(),
5088
+ return_config: CatalogPlatformModel.ReturnConfigResponse(),
5089
+ short_description: Joi.string().allow(""),
5090
+ size_guide: Joi.string().allow(""),
5091
+ sizes: Joi.array().items(Joi.any()),
5135
5092
  slug: Joi.string().allow(""),
5136
- });
5137
- }
5138
-
5139
- /** @returns {GetAddressSerializer} */
5140
- static GetAddressSerializer() {
5141
- return Joi.object({
5142
- address_type: Joi.string().allow(""),
5143
- address1: Joi.string().allow(""),
5144
- address2: Joi.string().allow(""),
5093
+ stage: Joi.string().allow(""),
5094
+ tags: Joi.array().items(Joi.string().allow("")),
5095
+ tax_identifier: Joi.any(),
5096
+ teaser_tag: Joi.any(),
5097
+ template_tag: Joi.string().allow(""),
5098
+ trader: Joi.array().items(CatalogPlatformModel.Trader()),
5099
+ uid: Joi.number(),
5100
+ variant_group: Joi.any(),
5101
+ variant_media: Joi.any(),
5102
+ variants: Joi.any(),
5103
+ verified_by: CatalogPlatformModel.VerifiedBy(),
5104
+ verified_on: Joi.string().allow(""),
5105
+ });
5106
+ }
5107
+
5108
+ /** @returns {RawProductListingResponse} */
5109
+ static RawProductListingResponse() {
5110
+ return Joi.object({
5111
+ items: Joi.array().items(CatalogPlatformModel.RawProduct()),
5112
+ page: CatalogPlatformModel.Page(),
5113
+ });
5114
+ }
5115
+
5116
+ /** @returns {GTIN} */
5117
+ static GTIN() {
5118
+ return Joi.object({
5119
+ gtin_type: Joi.string().allow("").required(),
5120
+ gtin_value: Joi.string().allow("").required(),
5121
+ primary: Joi.boolean(),
5122
+ });
5123
+ }
5124
+
5125
+ /** @returns {GenderDetail} */
5126
+ static GenderDetail() {
5127
+ return Joi.object({
5128
+ departments: Joi.array().items(Joi.string().allow("")),
5129
+ description: Joi.string().allow(""),
5130
+ details: CatalogPlatformModel.AttributeMasterDetails(),
5131
+ enabled_for_end_consumer: Joi.boolean(),
5132
+ filters: CatalogPlatformModel.AttributeMasterFilter(),
5133
+ id: Joi.string().allow(""),
5134
+ is_nested: Joi.boolean(),
5135
+ logo: Joi.string().allow(""),
5136
+ meta: CatalogPlatformModel.AttributeMasterMeta(),
5137
+ name: Joi.string().allow(""),
5138
+ schema: CatalogPlatformModel.AttributeMaster(),
5139
+ slug: Joi.string().allow(""),
5140
+ });
5141
+ }
5142
+
5143
+ /** @returns {GetAddressSerializer} */
5144
+ static GetAddressSerializer() {
5145
+ return Joi.object({
5146
+ address1: Joi.string().allow(""),
5147
+ address2: Joi.string().allow(""),
5148
+ address_type: Joi.string().allow(""),
5145
5149
  city: Joi.string().allow(""),
5146
5150
  country: Joi.string().allow(""),
5147
5151
  country_code: Joi.string().allow(""),
@@ -5153,14 +5157,6 @@ class CatalogPlatformModel {
5153
5157
  });
5154
5158
  }
5155
5159
 
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
5160
  /** @returns {GetAllSizes} */
5165
5161
  static GetAllSizes() {
5166
5162
  return Joi.object({
@@ -5255,37 +5251,6 @@ class CatalogPlatformModel {
5255
5251
  });
5256
5252
  }
5257
5253
 
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
5254
  /** @returns {GetCollectionItemsResponse} */
5290
5255
  static GetCollectionItemsResponse() {
5291
5256
  return Joi.object({
@@ -5296,14 +5261,6 @@ class CatalogPlatformModel {
5296
5261
  });
5297
5262
  }
5298
5263
 
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
5264
  /** @returns {GetCollectionListingResponse} */
5308
5265
  static GetCollectionListingResponse() {
5309
5266
  return Joi.object({
@@ -5531,6 +5488,44 @@ class CatalogPlatformModel {
5531
5488
  });
5532
5489
  }
5533
5490
 
5491
+ /** @returns {GetCollectionDetailResponse} */
5492
+ static GetCollectionDetailResponse() {
5493
+ return Joi.object({
5494
+ _custom_json: Joi.any(),
5495
+ _locale_language: Joi.any(),
5496
+ _schedule: CatalogPlatformModel.CollectionSchedule(),
5497
+ action: Joi.any(),
5498
+ allow_facets: Joi.boolean(),
5499
+ allow_sort: Joi.boolean(),
5500
+ app_id: Joi.string().allow(""),
5501
+ badge: CatalogPlatformModel.CollectionBadge(),
5502
+ banners: CatalogPlatformModel.ImageUrls(),
5503
+ description: Joi.string().allow(""),
5504
+ is_active: Joi.boolean(),
5505
+ is_visible: Joi.boolean(),
5506
+ logo: CatalogPlatformModel.Media(),
5507
+ meta: Joi.any(),
5508
+ name: Joi.string().allow(""),
5509
+ priority: Joi.number(),
5510
+ published: Joi.boolean(),
5511
+ query: Joi.array().items(CatalogPlatformModel.CollectionQuery()),
5512
+ seo: CatalogPlatformModel.SeoDetail(),
5513
+ slug: Joi.string().allow(""),
5514
+ sort_on: Joi.string().allow(""),
5515
+ tags: Joi.array().items(Joi.string().allow("")),
5516
+ type: Joi.string().allow(""),
5517
+ uid: Joi.string().allow(""),
5518
+ visible_facets_keys: Joi.array().items(Joi.string().allow("")),
5519
+ });
5520
+ }
5521
+
5522
+ /** @returns {CommonResponseSchemaCollection} */
5523
+ static CommonResponseSchemaCollection() {
5524
+ return Joi.object({
5525
+ message: Joi.string().allow(""),
5526
+ });
5527
+ }
5528
+
5534
5529
  /** @returns {GetQueryFiltersResponse} */
5535
5530
  static GetQueryFiltersResponse() {
5536
5531
  return Joi.object({
@@ -5540,6 +5535,76 @@ class CatalogPlatformModel {
5540
5535
  });
5541
5536
  }
5542
5537
 
5538
+ /** @returns {GetCollectionItemsResponseSchemaV2} */
5539
+ static GetCollectionItemsResponseSchemaV2() {
5540
+ return Joi.object({
5541
+ items: Joi.array().items(CatalogPlatformModel.ProductDetailV2()),
5542
+ page: CatalogPlatformModel.Page1(),
5543
+ });
5544
+ }
5545
+
5546
+ /** @returns {Page1} */
5547
+ static Page1() {
5548
+ return Joi.object({
5549
+ ca: Joi.boolean(),
5550
+ department: Joi.string().allow(""),
5551
+ page_no: Joi.number(),
5552
+ page_size: Joi.number(),
5553
+ q: Joi.string().allow(""),
5554
+ sort: Joi.string().allow(""),
5555
+ sort_on: Joi.string().allow(""),
5556
+ type: Joi.string().allow(""),
5557
+ variant: Joi.string().allow(""),
5558
+ });
5559
+ }
5560
+
5561
+ /** @returns {CollectionItemSchemaV2} */
5562
+ static CollectionItemSchemaV2() {
5563
+ return Joi.object({
5564
+ action: Joi.string().allow("").required(),
5565
+ item_id: Joi.number().required(),
5566
+ priority: Joi.number(),
5567
+ });
5568
+ }
5569
+
5570
+ /** @returns {CollectionItemUpdateSchemaV2} */
5571
+ static CollectionItemUpdateSchemaV2() {
5572
+ return Joi.object({
5573
+ allow_facets: Joi.boolean(),
5574
+ allow_sort: Joi.boolean(),
5575
+ items: Joi.array().items(CatalogPlatformModel.CollectionItemSchemaV2()),
5576
+ query: Joi.array().items(CatalogPlatformModel.CollectionQuerySchemaV2()),
5577
+ type: Joi.string().allow("").required(),
5578
+ visible_facets_keys: Joi.array().items(Joi.string().allow("")),
5579
+ });
5580
+ }
5581
+
5582
+ /** @returns {CollectionQuerySchemaV2} */
5583
+ static CollectionQuerySchemaV2() {
5584
+ return Joi.object({
5585
+ attribute: Joi.string().allow("").required(),
5586
+ op: Joi.string().allow("").required(),
5587
+ value: Joi.array().items(Joi.any()).required(),
5588
+ });
5589
+ }
5590
+
5591
+ /** @returns {ProductDetailV2} */
5592
+ static ProductDetailV2() {
5593
+ return Joi.object({
5594
+ brand: CatalogPlatformModel.ProductBrand(),
5595
+ is_excluded: Joi.boolean(),
5596
+ is_pinned: Joi.boolean(),
5597
+ item_code: Joi.string().allow(""),
5598
+ item_type: Joi.string().allow(""),
5599
+ medias: Joi.array().items(CatalogPlatformModel.Media()),
5600
+ name: Joi.string().allow(""),
5601
+ priority: Joi.number(),
5602
+ short_description: Joi.string().allow(""),
5603
+ slug: Joi.string().allow("").required(),
5604
+ uid: Joi.number(),
5605
+ });
5606
+ }
5607
+
5543
5608
  /** @returns {GetSearchConfigurationResponse} */
5544
5609
  static GetSearchConfigurationResponse() {
5545
5610
  return Joi.object({
@@ -5597,19 +5662,43 @@ class CatalogPlatformModel {
5597
5662
  });
5598
5663
  }
5599
5664
 
5600
- /** @returns {GTIN} */
5601
- static GTIN() {
5665
+ /** @returns {Guide} */
5666
+ static Guide() {
5602
5667
  return Joi.object({
5603
- gtin_type: Joi.string().allow("").required(),
5604
- gtin_value: Joi.string().allow("").required(),
5605
- primary: Joi.boolean(),
5668
+ meta: CatalogPlatformModel.Meta(),
5606
5669
  });
5607
5670
  }
5608
5671
 
5609
- /** @returns {Guide} */
5610
- static Guide() {
5672
+ /** @returns {HSNCodesResponse} */
5673
+ static HSNCodesResponse() {
5611
5674
  return Joi.object({
5612
- meta: CatalogPlatformModel.Meta(),
5675
+ data: CatalogPlatformModel.HSNData(),
5676
+ message: Joi.string().allow(""),
5677
+ });
5678
+ }
5679
+
5680
+ /** @returns {HSNData} */
5681
+ static HSNData() {
5682
+ return Joi.object({
5683
+ country_of_origin: Joi.array().items(Joi.string().allow("")),
5684
+ hsn_code: Joi.array().items(Joi.string().allow("")),
5685
+ });
5686
+ }
5687
+
5688
+ /** @returns {HSNDataInsertV2} */
5689
+ static HSNDataInsertV2() {
5690
+ return Joi.object({
5691
+ country_code: Joi.string().allow("").required(),
5692
+ created_by: Joi.any(),
5693
+ created_on: Joi.string().allow(""),
5694
+ description: Joi.string().allow("").required(),
5695
+ hsn_code: Joi.string().allow("").required(),
5696
+ hsn_code_id: Joi.string().allow(""),
5697
+ modified_by: Joi.any(),
5698
+ modified_on: Joi.string().allow(""),
5699
+ reporting_hsn: Joi.string().allow("").required(),
5700
+ taxes: Joi.array().items(CatalogPlatformModel.TaxSlab()).required(),
5701
+ type: Joi.string().allow("").required(),
5613
5702
  });
5614
5703
  }
5615
5704
 
@@ -5645,48 +5734,15 @@ class CatalogPlatformModel {
5645
5734
  hsn_code: Joi.string().allow(""),
5646
5735
  id: Joi.string().allow(""),
5647
5736
  modified_on: Joi.string().allow(""),
5648
- tax_on_esp: Joi.boolean(),
5649
- tax_on_mrp: Joi.boolean(),
5650
5737
  tax1: Joi.number(),
5651
5738
  tax2: Joi.number(),
5739
+ tax_on_esp: Joi.boolean(),
5740
+ tax_on_mrp: Joi.boolean(),
5652
5741
  threshold1: Joi.number(),
5653
5742
  threshold2: Joi.number(),
5654
5743
  });
5655
5744
  }
5656
5745
 
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
5746
  /** @returns {HsnUpsert} */
5691
5747
  static HsnUpsert() {
5692
5748
  return Joi.object({
@@ -5694,10 +5750,10 @@ class CatalogPlatformModel {
5694
5750
  hs2_code: Joi.string().allow("").allow(null).required(),
5695
5751
  hsn_code: Joi.string().allow("").required(),
5696
5752
  is_active: Joi.boolean(),
5697
- tax_on_esp: Joi.boolean(),
5698
- tax_on_mrp: Joi.boolean().required(),
5699
5753
  tax1: Joi.number().required(),
5700
5754
  tax2: Joi.number(),
5755
+ tax_on_esp: Joi.boolean(),
5756
+ tax_on_mrp: Joi.boolean().required(),
5701
5757
  threshold1: Joi.number().required(),
5702
5758
  threshold2: Joi.number(),
5703
5759
  uid: Joi.number(),
@@ -5722,6 +5778,29 @@ class CatalogPlatformModel {
5722
5778
  });
5723
5779
  }
5724
5780
 
5781
+ /** @returns {InvSize} */
5782
+ static InvSize() {
5783
+ return Joi.object({
5784
+ currency: Joi.string().allow("").required(),
5785
+ expiration_date: Joi.string().allow(""),
5786
+ identifiers: Joi.array().items(CatalogPlatformModel.GTIN()).required(),
5787
+ is_set: Joi.boolean(),
5788
+ item_dimensions_unit_of_measure: Joi.string().allow("").allow(null),
5789
+ item_height: Joi.number().allow(null),
5790
+ item_length: Joi.number().allow(null),
5791
+ item_weight: Joi.number().allow(null),
5792
+ item_weight_unit_of_measure: Joi.string().allow("").allow(null),
5793
+ item_width: Joi.number().allow(null),
5794
+ price: Joi.number(),
5795
+ price_effective: Joi.number().required(),
5796
+ price_transfer: Joi.number().allow(null),
5797
+ quantity: Joi.number().required(),
5798
+ set: CatalogPlatformModel.InventorySet(),
5799
+ size: Joi.string().allow("").required(),
5800
+ store_code: Joi.string().allow("").required(),
5801
+ });
5802
+ }
5803
+
5725
5804
  /** @returns {InventoryBulkRequest} */
5726
5805
  static InventoryBulkRequest() {
5727
5806
  return Joi.object({
@@ -6064,29 +6143,6 @@ class CatalogPlatformModel {
6064
6143
  });
6065
6144
  }
6066
6145
 
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
6146
  /** @returns {ItemQuery} */
6091
6147
  static ItemQuery() {
6092
6148
  return Joi.object({
@@ -6198,6 +6254,15 @@ class CatalogPlatformModel {
6198
6254
  });
6199
6255
  }
6200
6256
 
6257
+ /** @returns {MOQData} */
6258
+ static MOQData() {
6259
+ return Joi.object({
6260
+ increment_unit: Joi.number(),
6261
+ maximum: Joi.number(),
6262
+ minimum: Joi.number(),
6263
+ });
6264
+ }
6265
+
6201
6266
  /** @returns {ManufacturerResponse} */
6202
6267
  static ManufacturerResponse() {
6203
6268
  return Joi.object({
@@ -6216,24 +6281,6 @@ class CatalogPlatformModel {
6216
6281
  });
6217
6282
  }
6218
6283
 
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
6284
  /** @returns {Media} */
6238
6285
  static Media() {
6239
6286
  return Joi.object({
@@ -6322,25 +6369,6 @@ class CatalogPlatformModel {
6322
6369
  });
6323
6370
  }
6324
6371
 
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
6372
  /** @returns {NetQuantity} */
6345
6373
  static NetQuantity() {
6346
6374
  return Joi.object({
@@ -6365,6 +6393,18 @@ class CatalogPlatformModel {
6365
6393
  });
6366
6394
  }
6367
6395
 
6396
+ /** @returns {OptInPostRequest} */
6397
+ static OptInPostRequest() {
6398
+ return Joi.object({
6399
+ brand_ids: Joi.array().items(Joi.number()),
6400
+ company_id: Joi.number(),
6401
+ enabled: Joi.boolean(),
6402
+ opt_level: Joi.string().allow("").required(),
6403
+ platform: Joi.string().allow(""),
6404
+ store_ids: Joi.array().items(Joi.number()),
6405
+ });
6406
+ }
6407
+
6368
6408
  /** @returns {OptinCompanyBrandDetailsView} */
6369
6409
  static OptinCompanyBrandDetailsView() {
6370
6410
  return Joi.object({
@@ -6392,18 +6432,6 @@ class CatalogPlatformModel {
6392
6432
  });
6393
6433
  }
6394
6434
 
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
6435
  /** @returns {OptinStoreDetails} */
6408
6436
  static OptinStoreDetails() {
6409
6437
  return Joi.object({
@@ -6423,31 +6451,27 @@ class CatalogPlatformModel {
6423
6451
  });
6424
6452
  }
6425
6453
 
6454
+ /** @returns {PTErrorResponse} */
6455
+ static PTErrorResponse() {
6456
+ return Joi.object({
6457
+ code: Joi.string().allow(""),
6458
+ errors: Joi.any(),
6459
+ message: Joi.string().allow(""),
6460
+ meta: Joi.any(),
6461
+ status: Joi.number(),
6462
+ });
6463
+ }
6464
+
6426
6465
  /** @returns {Page} */
6427
6466
  static Page() {
6428
6467
  return Joi.object({
6429
- current: Joi.number(),
6430
- has_next: Joi.boolean(),
6431
- has_previous: Joi.boolean(),
6432
6468
  item_total: Joi.number(),
6433
6469
  next_id: Joi.string().allow(""),
6434
- size: Joi.number(),
6470
+ has_previous: Joi.boolean(),
6471
+ has_next: Joi.boolean(),
6472
+ current: Joi.number(),
6435
6473
  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(""),
6474
+ size: Joi.number(),
6451
6475
  });
6452
6476
  }
6453
6477
 
@@ -6821,23 +6845,6 @@ class CatalogPlatformModel {
6821
6845
  });
6822
6846
  }
6823
6847
 
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
6848
  /** @returns {ProductDownloadsResponse} */
6842
6849
  static ProductDownloadsResponse() {
6843
6850
  return Joi.object({
@@ -6968,6 +6975,14 @@ class CatalogPlatformModel {
6968
6975
  });
6969
6976
  }
6970
6977
 
6978
+ /** @returns {ProductReturnConfigSerializer} */
6979
+ static ProductReturnConfigSerializer() {
6980
+ return Joi.object({
6981
+ on_same_store: Joi.boolean(),
6982
+ store_uid: Joi.number(),
6983
+ });
6984
+ }
6985
+
6971
6986
  /** @returns {ProductReturnConfigBaseSerializer} */
6972
6987
  static ProductReturnConfigBaseSerializer() {
6973
6988
  return Joi.object({
@@ -6977,14 +6992,6 @@ class CatalogPlatformModel {
6977
6992
  });
6978
6993
  }
6979
6994
 
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
6995
  /** @returns {ProductSchemaV2} */
6989
6996
  static ProductSchemaV2() {
6990
6997
  return Joi.object({
@@ -7207,17 +7214,6 @@ class CatalogPlatformModel {
7207
7214
  });
7208
7215
  }
7209
7216
 
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
7217
  /** @returns {Quantities} */
7222
7218
  static Quantities() {
7223
7219
  return Joi.object({
@@ -7238,94 +7234,18 @@ class CatalogPlatformModel {
7238
7234
  });
7239
7235
  }
7240
7236
 
7241
- /** @returns {Quantity} */
7242
- static Quantity() {
7243
- return Joi.object({
7244
- count: Joi.number(),
7245
- });
7246
- }
7247
-
7248
- /** @returns {QuantityBase} */
7249
- static QuantityBase() {
7250
- return Joi.object({
7251
- count: Joi.number(),
7252
- updated_at: Joi.string().allow(""),
7253
- });
7254
- }
7255
-
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(""),
7237
+ /** @returns {Quantity} */
7238
+ static Quantity() {
7239
+ return Joi.object({
7240
+ count: Joi.number(),
7321
7241
  });
7322
7242
  }
7323
7243
 
7324
- /** @returns {RawProductListingResponse} */
7325
- static RawProductListingResponse() {
7244
+ /** @returns {QuantityBase} */
7245
+ static QuantityBase() {
7326
7246
  return Joi.object({
7327
- items: Joi.array().items(CatalogPlatformModel.RawProduct()),
7328
- page: CatalogPlatformModel.Page(),
7247
+ count: Joi.number(),
7248
+ updated_at: Joi.string().allow(""),
7329
7249
  });
7330
7250
  }
7331
7251
 
@@ -7365,12 +7285,79 @@ class CatalogPlatformModel {
7365
7285
  });
7366
7286
  }
7367
7287
 
7368
- /** @returns {SearchableAttribute} */
7369
- static SearchableAttribute() {
7288
+ /** @returns {Sitemap} */
7289
+ static Sitemap() {
7370
7290
  return Joi.object({
7371
- key: Joi.string().allow("").required(),
7372
- name: Joi.string().allow("").required(),
7373
- priority: Joi.number().required(),
7291
+ priority: Joi.number(),
7292
+ frequency: Joi.string().allow(""),
7293
+ });
7294
+ }
7295
+
7296
+ /** @returns {ApplicationItemSeoAction} */
7297
+ static ApplicationItemSeoAction() {
7298
+ return Joi.object({
7299
+ page: Joi.any(),
7300
+ type: Joi.string().allow(""),
7301
+ });
7302
+ }
7303
+
7304
+ /** @returns {ApplicationItemSeoBreadcrumbs} */
7305
+ static ApplicationItemSeoBreadcrumbs() {
7306
+ return Joi.object({
7307
+ url: Joi.string().allow(""),
7308
+ action: Joi.array().items(
7309
+ CatalogPlatformModel.ApplicationItemSeoAction()
7310
+ ),
7311
+ });
7312
+ }
7313
+
7314
+ /** @returns {ApplicationItemSeoMetaTagItem} */
7315
+ static ApplicationItemSeoMetaTagItem() {
7316
+ return Joi.object({
7317
+ key: Joi.string().allow(""),
7318
+ value: Joi.string().allow(""),
7319
+ });
7320
+ }
7321
+
7322
+ /** @returns {ApplicationItemSeoMetaTags} */
7323
+ static ApplicationItemSeoMetaTags() {
7324
+ return Joi.object({
7325
+ title: Joi.string().allow(""),
7326
+ items: Joi.array().items(
7327
+ CatalogPlatformModel.ApplicationItemSeoMetaTagItem()
7328
+ ),
7329
+ });
7330
+ }
7331
+
7332
+ /** @returns {Metatags} */
7333
+ static Metatags() {
7334
+ return Joi.object({
7335
+ title: Joi.string().allow(""),
7336
+ items: Joi.array().items(
7337
+ CatalogPlatformModel.ApplicationItemSeoMetaTags()
7338
+ ),
7339
+ });
7340
+ }
7341
+
7342
+ /** @returns {SizePromotionThreshold} */
7343
+ static SizePromotionThreshold() {
7344
+ return Joi.object({
7345
+ threshold_type: Joi.string().allow(""),
7346
+ threshold_value: Joi.number(),
7347
+ });
7348
+ }
7349
+
7350
+ /** @returns {SEOData} */
7351
+ static SEOData() {
7352
+ return Joi.object({
7353
+ description: Joi.string().allow(""),
7354
+ title: Joi.string().allow(""),
7355
+ sitemap: CatalogPlatformModel.Sitemap(),
7356
+ breadcrumbs: Joi.array().items(
7357
+ CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
7358
+ ),
7359
+ meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
7360
+ canonical_url: Joi.string().allow(""),
7374
7361
  });
7375
7362
  }
7376
7363
 
@@ -7382,6 +7369,15 @@ class CatalogPlatformModel {
7382
7369
  });
7383
7370
  }
7384
7371
 
7372
+ /** @returns {SearchableAttribute} */
7373
+ static SearchableAttribute() {
7374
+ return Joi.object({
7375
+ key: Joi.string().allow("").required(),
7376
+ name: Joi.string().allow("").required(),
7377
+ priority: Joi.number().required(),
7378
+ });
7379
+ }
7380
+
7385
7381
  /** @returns {SecondLevelChild} */
7386
7382
  static SecondLevelChild() {
7387
7383
  return Joi.object({
@@ -7403,31 +7399,17 @@ class CatalogPlatformModel {
7403
7399
  });
7404
7400
  }
7405
7401
 
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
7402
  /** @returns {SeoDetail} */
7421
7403
  static SeoDetail() {
7422
7404
  return Joi.object({
7405
+ description: Joi.string().allow(""),
7406
+ title: Joi.string().allow(""),
7407
+ sitemap: Joi.any(),
7423
7408
  breadcrumbs: Joi.array().items(
7424
7409
  CatalogPlatformModel.ApplicationItemSeoBreadcrumbs()
7425
7410
  ),
7426
- canonical_url: Joi.string().allow(""),
7427
- description: Joi.string().allow(""),
7428
7411
  meta_tags: Joi.array().items(CatalogPlatformModel.Metatags()),
7429
- sitemap: Joi.any(),
7430
- title: Joi.string().allow(""),
7412
+ canonical_url: Joi.string().allow(""),
7431
7413
  });
7432
7414
  }
7433
7415
 
@@ -7453,14 +7435,6 @@ class CatalogPlatformModel {
7453
7435
  });
7454
7436
  }
7455
7437
 
7456
- /** @returns {Sitemap} */
7457
- static Sitemap() {
7458
- return Joi.object({
7459
- frequency: Joi.string().allow(""),
7460
- priority: Joi.number(),
7461
- });
7462
- }
7463
-
7464
7438
  /** @returns {Size} */
7465
7439
  static Size() {
7466
7440
  return Joi.object({
@@ -7497,14 +7471,6 @@ class CatalogPlatformModel {
7497
7471
  });
7498
7472
  }
7499
7473
 
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
7474
  /** @returns {StoreAssignResponse} */
7509
7475
  static StoreAssignResponse() {
7510
7476
  return Joi.object({
@@ -7615,6 +7581,14 @@ class CatalogPlatformModel {
7615
7581
  });
7616
7582
  }
7617
7583
 
7584
+ /** @returns {TemplateValidationData} */
7585
+ static TemplateValidationData() {
7586
+ return Joi.object({
7587
+ global_validation: CatalogPlatformModel.GlobalValidation(),
7588
+ template_validation: Joi.any(),
7589
+ });
7590
+ }
7591
+
7618
7592
  /** @returns {TemplatesResponse} */
7619
7593
  static TemplatesResponse() {
7620
7594
  return Joi.object({
@@ -7631,14 +7605,6 @@ class CatalogPlatformModel {
7631
7605
  });
7632
7606
  }
7633
7607
 
7634
- /** @returns {TemplateValidationData} */
7635
- static TemplateValidationData() {
7636
- return Joi.object({
7637
- global_validation: CatalogPlatformModel.GlobalValidation(),
7638
- template_validation: Joi.any(),
7639
- });
7640
- }
7641
-
7642
7608
  /** @returns {ThirdLevelChild} */
7643
7609
  static ThirdLevelChild() {
7644
7610
  return Joi.object({
@@ -7708,41 +7674,6 @@ class CatalogPlatformModel {
7708
7674
  });
7709
7675
  }
7710
7676
 
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
7677
  /** @returns {UpdateSearchConfigurationRequest} */
7747
7678
  static UpdateSearchConfigurationRequest() {
7748
7679
  return Joi.object({
@@ -7767,6 +7698,14 @@ class CatalogPlatformModel {
7767
7698
  });
7768
7699
  }
7769
7700
 
7701
+ /** @returns {UpdatedResponse} */
7702
+ static UpdatedResponse() {
7703
+ return Joi.object({
7704
+ items_not_updated: Joi.array().items(Joi.number()),
7705
+ message: Joi.string().allow(""),
7706
+ });
7707
+ }
7708
+
7770
7709
  /** @returns {UserCommon} */
7771
7710
  static UserCommon() {
7772
7711
  return Joi.object({
@@ -7915,6 +7854,67 @@ class CatalogPlatformModel {
7915
7854
  });
7916
7855
  }
7917
7856
 
7857
+ /** @returns {CreatedBy} */
7858
+ static CreatedBy() {
7859
+ return Joi.object({
7860
+ username: Joi.string().allow(""),
7861
+ user_id: Joi.string().allow(""),
7862
+ });
7863
+ }
7864
+
7865
+ /** @returns {Marketplaces} */
7866
+ static Marketplaces() {
7867
+ return Joi.object({
7868
+ brand_ids: Joi.array().items(Joi.number()),
7869
+ app_id: Joi.string().allow(""),
7870
+ enabled: Joi.boolean(),
7871
+ created_by: CatalogPlatformModel.CreatedBy(),
7872
+ created_on: Joi.any(),
7873
+ opt_level: Joi.string().allow(""),
7874
+ company_id: Joi.number(),
7875
+ modified_by: CatalogPlatformModel.CreatedBy(),
7876
+ store_ids: Joi.array().items(Joi.number()),
7877
+ modified_on: Joi.any(),
7878
+ platforms: Joi.string().allow(""),
7879
+ _id: Joi.string().allow(""),
7880
+ });
7881
+ }
7882
+
7883
+ /** @returns {GetAllMarketplaces} */
7884
+ static GetAllMarketplaces() {
7885
+ return Joi.object({
7886
+ items: Joi.array().items(CatalogPlatformModel.Marketplaces()),
7887
+ page: CatalogPlatformModel.Page(),
7888
+ });
7889
+ }
7890
+
7891
+ /** @returns {UpdateMarketplaceOptinRequest} */
7892
+ static UpdateMarketplaceOptinRequest() {
7893
+ return Joi.object({
7894
+ brand_ids: Joi.array().items(Joi.number()),
7895
+ company_id: Joi.number(),
7896
+ enabled: Joi.boolean(),
7897
+ opt_level: Joi.string().allow(""),
7898
+ platform: Joi.string().allow(""),
7899
+ store_ids: Joi.array().items(Joi.number()),
7900
+ });
7901
+ }
7902
+
7903
+ /** @returns {UpdateMarketplaceOptinResponse} */
7904
+ static UpdateMarketplaceOptinResponse() {
7905
+ return Joi.object({
7906
+ brand_ids: Joi.array().items(Joi.number()),
7907
+ company_id: Joi.number(),
7908
+ app_id: Joi.string().allow(""),
7909
+ enabled: Joi.boolean(),
7910
+ opt_level: Joi.string().allow(""),
7911
+ platform: Joi.string().allow(""),
7912
+ store_ids: Joi.array().items(Joi.number()),
7913
+ created_by: CatalogPlatformModel.CreatedBy(),
7914
+ modified_by: CatalogPlatformModel.CreatedBy(),
7915
+ });
7916
+ }
7917
+
7918
7918
  /**
7919
7919
  * Enum: PageType Used By: Catalog
7920
7920
  *