@gofynd/fdk-client-javascript 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +0 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -1
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +11 -2
  5. package/sdk/application/Catalog/CatalogApplicationValidator.js +2 -0
  6. package/sdk/application/Content/ContentApplicationModel.js +0 -4
  7. package/sdk/application/Lead/LeadApplicationModel.js +1 -0
  8. package/sdk/application/Order/OrderApplicationClient.d.ts +0 -15
  9. package/sdk/application/Order/OrderApplicationClient.js +0 -68
  10. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -17
  11. package/sdk/application/Order/OrderApplicationModel.js +0 -111
  12. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -1
  13. package/sdk/application/Order/OrderApplicationValidator.js +0 -7
  14. package/sdk/common/AxiosHelper.js +1 -1
  15. package/sdk/common/Constant.d.ts +0 -18
  16. package/sdk/common/Constant.js +0 -22
  17. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +29 -0
  18. package/sdk/platform/Cart/CartPlatformApplicationClient.js +181 -0
  19. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  20. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -0
  21. package/sdk/platform/Cart/CartPlatformModel.d.ts +4 -0
  22. package/sdk/platform/Cart/CartPlatformModel.js +37 -0
  23. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -1
  24. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +5 -0
  25. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
  26. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
  27. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  28. package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -7
  29. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +0 -183
  30. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +0 -417
  31. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +0 -10
  32. package/sdk/platform/Communication/CommunicationPlatformClient.js +0 -26
  33. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +4 -0
  34. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -22
  35. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +0 -56
  36. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +12 -1
  37. package/sdk/platform/Content/ContentPlatformApplicationClient.js +62 -2
  38. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
  39. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +6 -0
  40. package/sdk/platform/Content/ContentPlatformModel.js +0 -4
  41. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  42. package/sdk/platform/Discount/DiscountPlatformClient.js +1 -1
  43. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +1 -0
  44. package/sdk/platform/Discount/DiscountPlatformModel.js +15 -0
  45. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -1
  46. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +1 -1
  47. package/sdk/platform/Lead/LeadPlatformModel.js +1 -0
  48. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -47
  49. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -201
  50. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -3
  51. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -26
  52. package/sdk/platform/Order/OrderPlatformClient.d.ts +51 -183
  53. package/sdk/platform/Order/OrderPlatformClient.js +243 -931
  54. package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -20
  55. package/sdk/platform/Order/OrderPlatformModel.js +38 -182
  56. package/sdk/platform/Order/OrderPlatformValidator.d.ts +3 -12
  57. package/sdk/platform/Order/OrderPlatformValidator.js +19 -95
  58. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +24 -10
  59. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +111 -44
  60. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +2 -1
  61. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +13 -5
  62. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -0
  63. package/sdk/platform/Payment/PaymentPlatformModel.js +12 -0
  64. package/sdk/platform/PlatformApplicationClient.d.ts +12 -41
  65. package/sdk/platform/PlatformApplicationClient.js +13 -45
  66. package/sdk/platform/PlatformClient.d.ts +90 -264
  67. package/sdk/platform/PlatformClient.js +110 -316
  68. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -0
  69. package/sdk/platform/Share/SharePlatformApplicationClient.js +61 -0
  70. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -0
  71. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -0
  72. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
  73. package/sdk/platform/Share/SharePlatformModel.js +11 -0
  74. package/sdk/platform/index.d.ts +0 -1
  75. package/sdk/platform/index.js +0 -2
  76. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -109
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -558
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -11
  79. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -56
  80. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +0 -88
  81. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +0 -361
  82. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -23
  83. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -169
  84. package/sdk/platform/Analytics/AnalyticsPlatformValidator.d.ts +0 -7
  85. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +0 -38
@@ -204,6 +204,67 @@ class Cart {
204
204
  return response;
205
205
  }
206
206
 
207
+ /**
208
+ * @param {Object} arg - Arg object.
209
+ * @param {CartMetaConfigAdd} arg.body
210
+ * @returns {Promise<CartMetaConfigAdd>} - Success response
211
+ * @summary: Create new cart meta configuration
212
+ * @description: Create new cart meta configuration
213
+ */
214
+ async createCartMetaConfig({ body } = {}) {
215
+ const { error } = CartValidator.createCartMetaConfig().validate(
216
+ {
217
+ body,
218
+ },
219
+ { abortEarly: false, allowUnknown: true }
220
+ );
221
+ if (error) {
222
+ return Promise.reject(new FDKClientValidationError(error));
223
+ }
224
+
225
+ // Showing warrnings if extra unknown parameters are found
226
+ const { error: warrning } = CartValidator.createCartMetaConfig().validate(
227
+ {
228
+ body,
229
+ },
230
+ { abortEarly: false, allowUnknown: false }
231
+ );
232
+ if (warrning) {
233
+ Logger({
234
+ level: "WARN",
235
+ message: "Parameter Validation warrnings for createCartMetaConfig",
236
+ });
237
+ Logger({ level: "WARN", message: warrning });
238
+ }
239
+
240
+ const query_params = {};
241
+
242
+ const response = await PlatformAPIClient.execute(
243
+ this.config,
244
+ "post",
245
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`,
246
+ query_params,
247
+ body
248
+ );
249
+
250
+ const {
251
+ error: res_error,
252
+ } = CartModel.CartMetaConfigAdd().validate(response, {
253
+ abortEarly: false,
254
+ allowUnknown: false,
255
+ });
256
+
257
+ if (res_error) {
258
+ Logger({
259
+ level: "WARN",
260
+ message: "Response Validation Warnnings for createCartMetaConfig",
261
+ });
262
+ Logger({ level: "WARN", message: res_error });
263
+ }
264
+
265
+ return response;
266
+ }
267
+
207
268
  /**
208
269
  * @param {Object} arg - Arg object.
209
270
  * @param {CouponAdd} arg.body
@@ -385,6 +446,62 @@ class Cart {
385
446
  return response;
386
447
  }
387
448
 
449
+ /**
450
+ * @param {Object} arg - Arg object.
451
+ * @returns {Promise<CartMetaConfigAdd>} - Success response
452
+ * @summary: Fetch cart meta configuration
453
+ * @description: Fetch cart meta configuration
454
+ */
455
+ async fetchCartMetaConfig({} = {}) {
456
+ const { error } = CartValidator.fetchCartMetaConfig().validate(
457
+ {},
458
+ { abortEarly: false, allowUnknown: true }
459
+ );
460
+ if (error) {
461
+ return Promise.reject(new FDKClientValidationError(error));
462
+ }
463
+
464
+ // Showing warrnings if extra unknown parameters are found
465
+ const { error: warrning } = CartValidator.fetchCartMetaConfig().validate(
466
+ {},
467
+ { abortEarly: false, allowUnknown: false }
468
+ );
469
+ if (warrning) {
470
+ Logger({
471
+ level: "WARN",
472
+ message: "Parameter Validation warrnings for fetchCartMetaConfig",
473
+ });
474
+ Logger({ level: "WARN", message: warrning });
475
+ }
476
+
477
+ const query_params = {};
478
+
479
+ const response = await PlatformAPIClient.execute(
480
+ this.config,
481
+ "get",
482
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`,
483
+ query_params,
484
+ undefined
485
+ );
486
+
487
+ const {
488
+ error: res_error,
489
+ } = CartModel.CartMetaConfigAdd().validate(response, {
490
+ abortEarly: false,
491
+ allowUnknown: false,
492
+ });
493
+
494
+ if (res_error) {
495
+ Logger({
496
+ level: "WARN",
497
+ message: "Response Validation Warnnings for fetchCartMetaConfig",
498
+ });
499
+ Logger({ level: "WARN", message: res_error });
500
+ }
501
+
502
+ return response;
503
+ }
504
+
388
505
  /**
389
506
  * @param {Object} arg - Arg object.
390
507
  * @param {number} [arg.pageNo] -
@@ -1260,6 +1377,70 @@ class Cart {
1260
1377
  return response;
1261
1378
  }
1262
1379
 
1380
+ /**
1381
+ * @param {Object} arg - Arg object.
1382
+ * @param {string} arg.cartMetaId -
1383
+ * @param {CartMetaConfigUpdate} arg.body
1384
+ * @returns {Promise<CartMetaConfigUpdate>} - Success response
1385
+ * @summary: Update cart meta configuration
1386
+ * @description: Update cart meta configuration
1387
+ */
1388
+ async updateCartMetaConfig({ cartMetaId, body } = {}) {
1389
+ const { error } = CartValidator.updateCartMetaConfig().validate(
1390
+ {
1391
+ cartMetaId,
1392
+ body,
1393
+ },
1394
+ { abortEarly: false, allowUnknown: true }
1395
+ );
1396
+ if (error) {
1397
+ return Promise.reject(new FDKClientValidationError(error));
1398
+ }
1399
+
1400
+ // Showing warrnings if extra unknown parameters are found
1401
+ const { error: warrning } = CartValidator.updateCartMetaConfig().validate(
1402
+ {
1403
+ cartMetaId,
1404
+ body,
1405
+ },
1406
+ { abortEarly: false, allowUnknown: false }
1407
+ );
1408
+ if (warrning) {
1409
+ Logger({
1410
+ level: "WARN",
1411
+ message: "Parameter Validation warrnings for updateCartMetaConfig",
1412
+ });
1413
+ Logger({ level: "WARN", message: warrning });
1414
+ }
1415
+
1416
+ const query_params = {};
1417
+
1418
+ const response = await PlatformAPIClient.execute(
1419
+ this.config,
1420
+ "put",
1421
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`,
1422
+ query_params,
1423
+ body
1424
+ );
1425
+
1426
+ const {
1427
+ error: res_error,
1428
+ } = CartModel.CartMetaConfigUpdate().validate(response, {
1429
+ abortEarly: false,
1430
+ allowUnknown: false,
1431
+ });
1432
+
1433
+ if (res_error) {
1434
+ Logger({
1435
+ level: "WARN",
1436
+ message: "Response Validation Warnnings for updateCartMetaConfig",
1437
+ });
1438
+ Logger({ level: "WARN", message: res_error });
1439
+ }
1440
+
1441
+ return response;
1442
+ }
1443
+
1263
1444
  /**
1264
1445
  * @param {Object} arg - Arg object.
1265
1446
  * @param {string} arg.id -
@@ -3,9 +3,11 @@ declare class CartValidator {
3
3
  static addItems(): any;
4
4
  static checkCartServiceability(): any;
5
5
  static checkoutCart(): any;
6
+ static createCartMetaConfig(): any;
6
7
  static createCoupon(): any;
7
8
  static createPromotion(): any;
8
9
  static fetchAndvalidateCartItems(): any;
10
+ static fetchCartMetaConfig(): any;
9
11
  static getAbandonedCart(): any;
10
12
  static getAbandonedCartDetails(): any;
11
13
  static getCouponById(): any;
@@ -16,6 +18,7 @@ declare class CartValidator {
16
18
  static getPromotionCodeExists(): any;
17
19
  static getPromotions(): any;
18
20
  static updateCart(): any;
21
+ static updateCartMetaConfig(): any;
19
22
  static updateCoupon(): any;
20
23
  static updateCouponPartially(): any;
21
24
  static updatePromotion(): any;
@@ -22,6 +22,12 @@ class CartValidator {
22
22
  }).required();
23
23
  }
24
24
 
25
+ static createCartMetaConfig() {
26
+ return Joi.object({
27
+ body: CartModel.CartMetaConfigAdd().required(),
28
+ }).required();
29
+ }
30
+
25
31
  static createCoupon() {
26
32
  return Joi.object({
27
33
  body: CartModel.CouponAdd().required(),
@@ -40,6 +46,10 @@ class CartValidator {
40
46
  }).required();
41
47
  }
42
48
 
49
+ static fetchCartMetaConfig() {
50
+ return Joi.object({}).required();
51
+ }
52
+
43
53
  static getAbandonedCart() {
44
54
  return Joi.object({
45
55
  pageNo: Joi.number(),
@@ -122,6 +132,13 @@ class CartValidator {
122
132
  }).required();
123
133
  }
124
134
 
135
+ static updateCartMetaConfig() {
136
+ return Joi.object({
137
+ cartMetaId: Joi.string().allow("").required(),
138
+ body: CartModel.CartMetaConfigUpdate().required(),
139
+ }).required();
140
+ }
141
+
125
142
  static updateCoupon() {
126
143
  return Joi.object({
127
144
  id: Joi.string().allow("").required(),
@@ -16,10 +16,13 @@ declare class CartModel {
16
16
  static CartDetailResponse(): any;
17
17
  static CartItem(): any;
18
18
  static CartItemMeta(): any;
19
+ static CartMetaConfigAdd(): any;
20
+ static CartMetaConfigUpdate(): any;
19
21
  static CartProduct(): any;
20
22
  static CartProductIdentifer(): any;
21
23
  static CartProductInfo(): any;
22
24
  static CategoryInfo(): any;
25
+ static Charges(): any;
23
26
  static CompareObject(): any;
24
27
  static CouponAction(): any;
25
28
  static CouponAdd(): any;
@@ -30,6 +33,7 @@ declare class CartModel {
30
33
  static CouponSchedule(): any;
31
34
  static CouponsResponse(): any;
32
35
  static CouponUpdate(): any;
36
+ static DeliveryCharges(): any;
33
37
  static DiscountOffer(): any;
34
38
  static DiscountRule(): any;
35
39
  static DisplayBreakup(): any;
@@ -168,6 +168,30 @@ class CartModel {
168
168
  primary_item: Joi.boolean(),
169
169
  });
170
170
  }
171
+ static CartMetaConfigAdd() {
172
+ return Joi.object({
173
+ bulk_coupons: Joi.boolean(),
174
+ delivery_charges: CartModel.DeliveryCharges(),
175
+ enabled: Joi.boolean(),
176
+ gift_display_text: Joi.string().allow(""),
177
+ gift_pricing: Joi.number(),
178
+ max_cart_items: Joi.number(),
179
+ min_cart_value: Joi.number(),
180
+ revenue_engine_coupon: Joi.boolean(),
181
+ });
182
+ }
183
+ static CartMetaConfigUpdate() {
184
+ return Joi.object({
185
+ bulk_coupons: Joi.boolean(),
186
+ delivery_charges: CartModel.DeliveryCharges(),
187
+ enabled: Joi.boolean(),
188
+ gift_display_text: Joi.string().allow(""),
189
+ gift_pricing: Joi.number(),
190
+ max_cart_items: Joi.number(),
191
+ min_cart_value: Joi.number(),
192
+ revenue_engine_coupon: Joi.boolean(),
193
+ });
194
+ }
171
195
  static CartProduct() {
172
196
  return Joi.object({
173
197
  action: CartModel.ProductAction(),
@@ -213,6 +237,12 @@ class CartModel {
213
237
  uid: Joi.number(),
214
238
  });
215
239
  }
240
+ static Charges() {
241
+ return Joi.object({
242
+ charges: Joi.number(),
243
+ threshold: Joi.number(),
244
+ });
245
+ }
216
246
  static CompareObject() {
217
247
  return Joi.object({
218
248
  equals: Joi.number(),
@@ -311,6 +341,12 @@ class CartModel {
311
341
  validity: CartModel.Validity().required(),
312
342
  });
313
343
  }
344
+ static DeliveryCharges() {
345
+ return Joi.object({
346
+ charges: Joi.array().items(CartModel.Charges()),
347
+ enabled: Joi.boolean(),
348
+ });
349
+ }
314
350
  static DiscountOffer() {
315
351
  return Joi.object({
316
352
  code: Joi.string().allow(""),
@@ -837,6 +873,7 @@ class CartModel {
837
873
  return Joi.object({
838
874
  anonymous_users: Joi.boolean(),
839
875
  order_quantity: Joi.number(),
876
+ ordering_stores: Joi.array().items(Joi.number()),
840
877
  payments: Joi.array().items(CartModel.PromotionPaymentModes()),
841
878
  platforms: Joi.array().items(Joi.string().allow("")),
842
879
  post_order: CartModel.PostOrder1(),
@@ -278,6 +278,7 @@ declare class Catalog {
278
278
  * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
279
279
  * Department Ids
280
280
  * @param {string[]} [arg.tags] - Get multiple products filtered by tags
281
+ * @param {number[]} [arg.itemIds] - Get multiple products filtered by Item Ids
281
282
  * @param {number} [arg.pageNo] - The page number to navigate through the
282
283
  * given set of results
283
284
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
@@ -287,11 +288,12 @@ declare class Catalog {
287
288
  * @summary: Get applicationwise products
288
289
  * @description: Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered`
289
290
  */
290
- getAppProducts({ brandIds, categoryIds, departmentIds, tags, pageNo, pageSize, q, }?: {
291
+ getAppProducts({ brandIds, categoryIds, departmentIds, tags, itemIds, pageNo, pageSize, q, }?: {
291
292
  brandIds?: number[];
292
293
  categoryIds?: number[];
293
294
  departmentIds?: number[];
294
295
  tags?: string[];
296
+ itemIds?: number[];
295
297
  pageNo?: number;
296
298
  pageSize?: number;
297
299
  q?: string;
@@ -1313,6 +1313,7 @@ class Catalog {
1313
1313
  * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
1314
1314
  * Department Ids
1315
1315
  * @param {string[]} [arg.tags] - Get multiple products filtered by tags
1316
+ * @param {number[]} [arg.itemIds] - Get multiple products filtered by Item Ids
1316
1317
  * @param {number} [arg.pageNo] - The page number to navigate through the
1317
1318
  * given set of results
1318
1319
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
@@ -1327,6 +1328,7 @@ class Catalog {
1327
1328
  categoryIds,
1328
1329
  departmentIds,
1329
1330
  tags,
1331
+ itemIds,
1330
1332
  pageNo,
1331
1333
  pageSize,
1332
1334
  q,
@@ -1337,6 +1339,7 @@ class Catalog {
1337
1339
  categoryIds,
1338
1340
  departmentIds,
1339
1341
  tags,
1342
+ itemIds,
1340
1343
  pageNo,
1341
1344
  pageSize,
1342
1345
  q,
@@ -1354,6 +1357,7 @@ class Catalog {
1354
1357
  categoryIds,
1355
1358
  departmentIds,
1356
1359
  tags,
1360
+ itemIds,
1357
1361
  pageNo,
1358
1362
  pageSize,
1359
1363
  q,
@@ -1373,6 +1377,7 @@ class Catalog {
1373
1377
  query_params["category_ids"] = categoryIds;
1374
1378
  query_params["department_ids"] = departmentIds;
1375
1379
  query_params["tags"] = tags;
1380
+ query_params["item_ids"] = itemIds;
1376
1381
  query_params["page_no"] = pageNo;
1377
1382
  query_params["page_size"] = pageSize;
1378
1383
  query_params["q"] = q;
@@ -137,6 +137,7 @@ class CatalogValidator {
137
137
  categoryIds: Joi.array().items(Joi.number()),
138
138
  departmentIds: Joi.array().items(Joi.number()),
139
139
  tags: Joi.array().items(Joi.string().allow("")),
140
+ itemIds: Joi.array().items(Joi.number()),
140
141
  pageNo: Joi.number(),
141
142
  pageSize: Joi.number(),
142
143
  q: Joi.string().allow(""),
@@ -872,7 +872,7 @@ declare class Catalog {
872
872
  * @param {CategoryRequestBody} arg.body
873
873
  * @returns {Promise<CategoryUpdateResponse>} - Success response
874
874
  * @summary: Update product categories
875
- * @description: Update a product category using this apu
875
+ * @description: Update a product category using this api
876
876
  */
877
877
  updateCategory({ uid, body }?: {
878
878
  uid: string;
@@ -4754,7 +4754,7 @@ class Catalog {
4754
4754
  * @param {CategoryRequestBody} arg.body
4755
4755
  * @returns {Promise<CategoryUpdateResponse>} - Success response
4756
4756
  * @summary: Update product categories
4757
- * @description: Update a product category using this apu
4757
+ * @description: Update a product category using this api
4758
4758
  */
4759
4759
  async updateCategory({ uid, body } = {}) {
4760
4760
  const { error } = CatalogValidator.updateCategory().validate(
@@ -971,7 +971,7 @@ class CatalogModel {
971
971
  created_by: CatalogModel.UserDetail(),
972
972
  created_on: Joi.string().allow("").required(),
973
973
  is_active: Joi.boolean(),
974
- logo: Joi.string().allow("").required(),
974
+ logo: Joi.any().required(),
975
975
  modified_by: CatalogModel.UserDetail(),
976
976
  modified_on: Joi.string().allow("").required(),
977
977
  name: Joi.any().required(),
@@ -2288,7 +2288,7 @@ class CatalogModel {
2288
2288
  net_quantity: CatalogModel.NetQuantity(),
2289
2289
  no_of_boxes: Joi.number(),
2290
2290
  product_group_tag: Joi.array().items(Joi.string().allow("")),
2291
- product_publish: CatalogModel.ProductPublish1(),
2291
+ product_publish: CatalogModel.ProductPublish(),
2292
2292
  requester: Joi.string().allow(""),
2293
2293
  return_config: CatalogModel.ReturnConfig().required(),
2294
2294
  short_description: Joi.string().allow(""),
@@ -2504,7 +2504,7 @@ class CatalogModel {
2504
2504
  pending: Joi.string().allow(""),
2505
2505
  primary_color: Joi.string().allow(""),
2506
2506
  product_group_tag: Joi.array().items(Joi.string().allow("")),
2507
- product_publish: CatalogModel.ProductPublish(),
2507
+ product_publish: CatalogModel.ProductPublish1(),
2508
2508
  return_config: CatalogModel.ReturnConfigResponse(),
2509
2509
  short_description: Joi.string().allow(""),
2510
2510
  size_guide: Joi.string().allow(""),
@@ -3134,10 +3134,6 @@ class CatalogModel {
3134
3134
 
3135
3135
  "product",
3136
3136
 
3137
- "product-reviews",
3138
-
3139
- "add-product-review",
3140
-
3141
3137
  "product-request",
3142
3138
 
3143
3139
  "products",