@gofynd/fdk-client-javascript 1.3.3-beta.3 → 1.3.4-beta.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 (32) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +4 -0
  4. package/sdk/application/Cart/CartApplicationModel.js +4 -0
  5. package/sdk/application/Theme/ThemeApplicationModel.d.ts +6 -8
  6. package/sdk/application/Theme/ThemeApplicationModel.js +6 -8
  7. package/sdk/common/AxiosHelper.js +10 -0
  8. package/sdk/partner/PartnerConfig.js +3 -5
  9. package/sdk/platform/Cart/CartPlatformModel.d.ts +4 -0
  10. package/sdk/platform/Cart/CartPlatformModel.js +4 -0
  11. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +56 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +308 -0
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -1
  14. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +38 -0
  15. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +1 -1
  16. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  17. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +344 -66
  18. package/sdk/platform/Catalog/CatalogPlatformModel.js +247 -65
  19. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +26 -0
  20. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +152 -0
  21. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +14 -1
  22. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -0
  23. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +22 -1
  24. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +24 -0
  25. package/sdk/platform/Order/OrderPlatformModel.d.ts +4 -4
  26. package/sdk/platform/Order/OrderPlatformModel.js +4 -4
  27. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -0
  28. package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
  29. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -1
  30. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -0
  31. package/sdk/platform/User/UserPlatformModel.d.ts +63 -1
  32. package/sdk/platform/User/UserPlatformModel.js +44 -0
@@ -27,9 +27,9 @@ const Joi = require("joi");
27
27
  * @property {number} item_height
28
28
  * @property {number} item_length
29
29
  * @property {number} item_weight
30
- * @property {Object} item_weight_unit_of_measure
30
+ * @property {string} item_weight_unit_of_measure
31
31
  * @property {number} item_width
32
- * @property {Object} size
32
+ * @property {string} size
33
33
  */
34
34
 
35
35
  /**
@@ -140,8 +140,8 @@ const Joi = require("joi");
140
140
 
141
141
  /**
142
142
  * @typedef ApplicationItemSEO
143
- * @property {Object} [description] - The SEO description of the item
144
- * @property {Object} [title] - The SEO title of the item
143
+ * @property {string} [description] - The SEO description of the item
144
+ * @property {string} [title] - The SEO title of the item
145
145
  */
146
146
 
147
147
  /**
@@ -407,7 +407,7 @@ const Joi = require("joi");
407
407
  * @property {Object[]} [failed_records]
408
408
  * @property {string} [file_path]
409
409
  * @property {boolean} [is_active] - Whether the item is active or not.
410
- * @property {UserInfo1} [modified_by] - The user who last modified the item.
410
+ * @property {string} [modified_by] - The user who last modified the item.
411
411
  * @property {string} [modified_on] - The date and time when the item was last modified.
412
412
  * @property {string} [stage]
413
413
  * @property {number} [succeed]
@@ -874,6 +874,31 @@ const Joi = require("joi");
874
874
  * @property {string[]} [visible_facets_keys]
875
875
  */
876
876
 
877
+ /**
878
+ * @typedef CreateSearchConfigurationRequest
879
+ * @property {string} application_id - The application id where custom search
880
+ * configuration is set
881
+ * @property {number} company_id - The company id where custom search configuration is set
882
+ * @property {UserSerializer} [created_by] - The user who created the search
883
+ * configuration.
884
+ * @property {string} [created_on] - The date and time when the search
885
+ * configuration was created.
886
+ * @property {boolean} [is_proximity_enabled] - Flag indicating if proximity
887
+ * search is enabled for this attribute.
888
+ * @property {UserSerializer} [modified_by] - The user who modified the search
889
+ * configuration.
890
+ * @property {string} [modified_on] - The date and time when the search
891
+ * configuration was last modified.
892
+ * @property {number} [proximity] - Proximity distance configuration
893
+ * @property {SearchableAttribute[]} [searchable_attributes] - The searchable
894
+ * attributes defined on the application.
895
+ */
896
+
897
+ /**
898
+ * @typedef CreateSearchConfigurationResponse
899
+ * @property {boolean} [success]
900
+ */
901
+
877
902
  /**
878
903
  * @typedef CreateSearchKeyword
879
904
  * @property {Object} [_custom_json]
@@ -920,6 +945,11 @@ const Joi = require("joi");
920
945
  * @property {string} [message]
921
946
  */
922
947
 
948
+ /**
949
+ * @typedef DeleteSearchConfigurationResponse
950
+ * @property {boolean} [success]
951
+ */
952
+
923
953
  /**
924
954
  * @typedef Department
925
955
  * @property {Media2} [logo]
@@ -978,20 +1008,20 @@ const Joi = require("joi");
978
1008
 
979
1009
  /**
980
1010
  * @typedef DepartmentModel
981
- * @property {Object} [_cls]
1011
+ * @property {string} [_cls]
982
1012
  * @property {Object} [_custom_json]
983
- * @property {Object} [_id]
1013
+ * @property {string} [_id]
984
1014
  * @property {UserDetail} [created_by] - User details of the creator of the document
985
1015
  * @property {string} created_on - Timestamp of the creation of the document
986
1016
  * @property {boolean} [is_active] - Whether the department is currently active
987
- * @property {Object} logo - The URL of the department's logo
1017
+ * @property {string} logo - The URL of the department's logo
988
1018
  * @property {UserDetail} [modified_by] - User details of the last modifier of
989
1019
  * the document
990
1020
  * @property {string} modified_on - Timestamp of the last modification of the document
991
- * @property {Object} name - The name of the department
1021
+ * @property {string} name - The name of the department
992
1022
  * @property {number} priority_order - The priority order of the department
993
- * @property {Object} slug - The unique slug identifier for the department
994
- * @property {Object[]} [synonyms] - A list of synonyms for the department name
1023
+ * @property {string} slug - The unique slug identifier for the department
1024
+ * @property {string[]} [synonyms] - A list of synonyms for the department name
995
1025
  * @property {number} uid - The unique ID for the department
996
1026
  * @property {UserDetail} [verified_by] - User details of the verifier of the
997
1027
  * document, if applicable
@@ -1195,15 +1225,15 @@ const Joi = require("joi");
1195
1225
  * @property {GetAddressSerializer[]} [addresses]
1196
1226
  * @property {string} [business_type]
1197
1227
  * @property {string} [company_type]
1198
- * @property {UserSerializer1} [created_by]
1228
+ * @property {UserSerializer2} [created_by]
1199
1229
  * @property {string} [created_on]
1200
- * @property {UserSerializer1} [modified_by]
1230
+ * @property {UserSerializer2} [modified_by]
1201
1231
  * @property {string} [modified_on]
1202
1232
  * @property {string} [name]
1203
1233
  * @property {string} [reject_reason]
1204
1234
  * @property {string} [stage]
1205
1235
  * @property {number} [uid]
1206
- * @property {UserSerializer1} [verified_by]
1236
+ * @property {UserSerializer2} [verified_by]
1207
1237
  * @property {string} [verified_on]
1208
1238
  */
1209
1239
 
@@ -1222,12 +1252,12 @@ const Joi = require("joi");
1222
1252
 
1223
1253
  /**
1224
1254
  * @typedef GetDepartment
1225
- * @property {UserSerializer} [created_by]
1255
+ * @property {UserSerializer1} [created_by]
1226
1256
  * @property {string} [created_on]
1227
1257
  * @property {boolean} [is_active]
1228
1258
  * @property {string} [item_type]
1229
1259
  * @property {string} [logo]
1230
- * @property {UserSerializer} [modified_by]
1260
+ * @property {UserSerializer1} [modified_by]
1231
1261
  * @property {string} [modified_on]
1232
1262
  * @property {string} [name]
1233
1263
  * @property {number} [page_no]
@@ -1244,7 +1274,7 @@ const Joi = require("joi");
1244
1274
  * @property {BrandMeta1} [brand]
1245
1275
  * @property {CompanyMeta1} [company]
1246
1276
  * @property {string} [country_of_origin]
1247
- * @property {UserSerializer} [created_by]
1277
+ * @property {UserSerializer1} [created_by]
1248
1278
  * @property {DateMeta} [date_meta]
1249
1279
  * @property {DimensionResponse1} [dimension]
1250
1280
  * @property {string} [expiration_date]
@@ -1254,7 +1284,7 @@ const Joi = require("joi");
1254
1284
  * @property {boolean} [is_set]
1255
1285
  * @property {number} [item_id]
1256
1286
  * @property {ManufacturerResponse1} [manufacturer]
1257
- * @property {UserSerializer} [modified_by]
1287
+ * @property {UserSerializer1} [modified_by]
1258
1288
  * @property {Object} [platforms]
1259
1289
  * @property {PriceArticle} [price]
1260
1290
  * @property {QuantitiesArticle} [quantities]
@@ -1286,14 +1316,14 @@ const Joi = require("joi");
1286
1316
  * @property {string} code
1287
1317
  * @property {GetCompanySerializer} [company]
1288
1318
  * @property {SellerPhoneNumber[]} [contact_numbers]
1289
- * @property {UserSerializer2} [created_by]
1319
+ * @property {UserSerializer3} [created_by]
1290
1320
  * @property {string} [created_on]
1291
1321
  * @property {string} display_name
1292
1322
  * @property {Document[]} [documents]
1293
1323
  * @property {InvoiceDetailsSerializer} [gst_credentials]
1294
1324
  * @property {LocationIntegrationType} [integration_type]
1295
1325
  * @property {LocationManagerSerializer} [manager]
1296
- * @property {UserSerializer2} [modified_by]
1326
+ * @property {UserSerializer3} [modified_by]
1297
1327
  * @property {string} [modified_on]
1298
1328
  * @property {string} name
1299
1329
  * @property {string[]} [notification_emails]
@@ -1303,7 +1333,7 @@ const Joi = require("joi");
1303
1333
  * @property {string} [store_type]
1304
1334
  * @property {LocationDayWiseSerializer[]} [timing]
1305
1335
  * @property {number} [uid]
1306
- * @property {UserSerializer2} [verified_by]
1336
+ * @property {UserSerializer3} [verified_by]
1307
1337
  * @property {string} [verified_on]
1308
1338
  * @property {Object} [warnings]
1309
1339
  */
@@ -1366,6 +1396,26 @@ const Joi = require("joi");
1366
1396
  * @property {Size[]} [sizes]
1367
1397
  */
1368
1398
 
1399
+ /**
1400
+ * @typedef GetSearchConfigurationResponse
1401
+ * @property {string} application_id - The application id where custom search
1402
+ * configuration is set
1403
+ * @property {number} company_id - The company id where custom search configuration is set
1404
+ * @property {UserSerializer} [created_by] - The user who created the search
1405
+ * configuration.
1406
+ * @property {string} [created_on] - The date and time when the search
1407
+ * configuration was created.
1408
+ * @property {boolean} [is_proximity_enabled] - Flag indicating if proximity
1409
+ * search is enabled for this attribute.
1410
+ * @property {UserSerializer} [modified_by] - The user who modified the search
1411
+ * configuration.
1412
+ * @property {string} [modified_on] - The date and time when the search
1413
+ * configuration was last modified.
1414
+ * @property {number} [proximity] - Proximity distance configuration
1415
+ * @property {SearchableAttribute[]} [searchable_attributes] - The searchable
1416
+ * attributes defined on the application.
1417
+ */
1418
+
1369
1419
  /**
1370
1420
  * @typedef GetSearchWordsData
1371
1421
  * @property {Object} [_custom_json]
@@ -1401,7 +1451,7 @@ const Joi = require("joi");
1401
1451
  /**
1402
1452
  * @typedef GTIN
1403
1453
  * @property {string} gtin_type
1404
- * @property {Object} gtin_value
1454
+ * @property {string} gtin_value
1405
1455
  * @property {boolean} [primary]
1406
1456
  */
1407
1457
 
@@ -1620,7 +1670,7 @@ const Joi = require("joi");
1620
1670
  * @property {string[]} [notification_emails] - User email to get notification
1621
1671
  * post completion of the job.
1622
1672
  * @property {number} seller_id - This ID of the company.
1623
- * @property {Object} [status] - This tells you the current status of the export job.
1673
+ * @property {string} [status] - This tells you the current status of the export job.
1624
1674
  * @property {string} task_id - This is the task id of the jobs that is used for search.
1625
1675
  * @property {string} [type] - This is the file type of the export.
1626
1676
  * @property {string} url - This is the url to download the export.
@@ -1826,7 +1876,7 @@ const Joi = require("joi");
1826
1876
  * @property {number} [price_transfer]
1827
1877
  * @property {number} quantity
1828
1878
  * @property {InventorySet} [set]
1829
- * @property {Object} size
1879
+ * @property {string} size
1830
1880
  * @property {string} store_code
1831
1881
  */
1832
1882
 
@@ -1995,9 +2045,9 @@ const Joi = require("joi");
1995
2045
 
1996
2046
  /**
1997
2047
  * @typedef MetaFields
1998
- * @property {Object} key - The key of the metadata. Should be a non-empty
2048
+ * @property {string} key - The key of the metadata. Should be a non-empty
1999
2049
  * string and length should not exceed 30 characters.
2000
- * @property {Object} value - The value of the metadata. Should be a non-empty
2050
+ * @property {string} value - The value of the metadata. Should be a non-empty
2001
2051
  * string and length should not exceed 100 characters.
2002
2052
  */
2003
2053
 
@@ -2336,7 +2386,7 @@ const Joi = require("joi");
2336
2386
  * @property {NetQuantity} [net_quantity]
2337
2387
  * @property {number} [no_of_boxes]
2338
2388
  * @property {string[]} [product_group_tag]
2339
- * @property {ProductPublish} [product_publish]
2389
+ * @property {ProductPublish1} [product_publish]
2340
2390
  * @property {string} [requester]
2341
2391
  * @property {ReturnConfig} return_config
2342
2392
  * @property {string} [short_description]
@@ -2548,7 +2598,7 @@ const Joi = require("joi");
2548
2598
  * @property {string} [pending]
2549
2599
  * @property {string} [primary_color]
2550
2600
  * @property {string[]} [product_group_tag]
2551
- * @property {ProductPublish1} [product_publish]
2601
+ * @property {ProductPublish} [product_publish]
2552
2602
  * @property {ReturnConfigResponse} [return_config]
2553
2603
  * @property {string} [short_description]
2554
2604
  * @property {string} [size_guide]
@@ -2839,6 +2889,16 @@ const Joi = require("joi");
2839
2889
  * @property {string} [unit]
2840
2890
  */
2841
2891
 
2892
+ /**
2893
+ * @typedef SearchableAttribute
2894
+ * @property {string} key - The attribute key to search on. This key matches the
2895
+ * solr document key
2896
+ * @property {string} name - The name of key to search on. This is for
2897
+ * displaying purposes on platform
2898
+ * @property {number} priority - Order in which the searchable attribute should
2899
+ * kick in. Higher the priority, higher the weight considered while searching
2900
+ */
2901
+
2842
2902
  /**
2843
2903
  * @typedef SearchKeywordResult
2844
2904
  * @property {Object} query
@@ -2864,8 +2924,8 @@ const Joi = require("joi");
2864
2924
 
2865
2925
  /**
2866
2926
  * @typedef SEOData
2867
- * @property {Object} [description]
2868
- * @property {Object} [title]
2927
+ * @property {string} [description]
2928
+ * @property {string} [title]
2869
2929
  */
2870
2930
 
2871
2931
  /**
@@ -3076,7 +3136,7 @@ const Joi = require("joi");
3076
3136
  * @property {boolean} [is_visible]
3077
3137
  * @property {CollectionImage} [logo]
3078
3138
  * @property {Object} [meta]
3079
- * @property {string} [modified_by]
3139
+ * @property {string} [modified_by] - User info.
3080
3140
  * @property {string} [name]
3081
3141
  * @property {number} [priority]
3082
3142
  * @property {boolean} [published]
@@ -3095,6 +3155,31 @@ const Joi = require("joi");
3095
3155
  * @property {string} [message]
3096
3156
  */
3097
3157
 
3158
+ /**
3159
+ * @typedef UpdateSearchConfigurationRequest
3160
+ * @property {string} application_id - The application id where custom search
3161
+ * configuration is set
3162
+ * @property {number} company_id - The company id where custom search configuration is set
3163
+ * @property {UserSerializer} [created_by] - The user who created the search
3164
+ * configuration.
3165
+ * @property {string} [created_on] - The date and time when the search
3166
+ * configuration was created.
3167
+ * @property {boolean} [is_proximity_enabled] - Flag indicating if proximity
3168
+ * search is enabled for this attribute.
3169
+ * @property {UserSerializer} [modified_by] - The user who modified the search
3170
+ * configuration.
3171
+ * @property {string} [modified_on] - The date and time when the search
3172
+ * configuration was last modified.
3173
+ * @property {number} [proximity] - Proximity distance configuration
3174
+ * @property {SearchableAttribute[]} [searchable_attributes] - The searchable
3175
+ * attributes defined on the application.
3176
+ */
3177
+
3178
+ /**
3179
+ * @typedef UpdateSearchConfigurationResponse
3180
+ * @property {boolean} [success]
3181
+ */
3182
+
3098
3183
  /**
3099
3184
  * @typedef UserCommon
3100
3185
  * @property {number} [company_id]
@@ -3135,6 +3220,13 @@ const Joi = require("joi");
3135
3220
 
3136
3221
  /**
3137
3222
  * @typedef UserSerializer
3223
+ * @property {string} [contact] - The contact information of the user.
3224
+ * @property {string} [user_id] - The unique ID of the user.
3225
+ * @property {string} [username] - The username of the user.
3226
+ */
3227
+
3228
+ /**
3229
+ * @typedef UserSerializer1
3138
3230
  * @property {string} [_id]
3139
3231
  * @property {string} [contact]
3140
3232
  * @property {string} [uid]
@@ -3143,14 +3235,14 @@ const Joi = require("joi");
3143
3235
  */
3144
3236
 
3145
3237
  /**
3146
- * @typedef UserSerializer1
3238
+ * @typedef UserSerializer2
3147
3239
  * @property {string} [contact]
3148
3240
  * @property {string} [user_id]
3149
3241
  * @property {string} [username]
3150
3242
  */
3151
3243
 
3152
3244
  /**
3153
- * @typedef UserSerializer2
3245
+ * @typedef UserSerializer3
3154
3246
  * @property {string} [contact]
3155
3247
  * @property {string} [user_id]
3156
3248
  * @property {string} [username]
@@ -3296,9 +3388,9 @@ class CatalogPlatformModel {
3296
3388
  item_height: Joi.number().required(),
3297
3389
  item_length: Joi.number().required(),
3298
3390
  item_weight: Joi.number().required(),
3299
- item_weight_unit_of_measure: Joi.any().required(),
3391
+ item_weight_unit_of_measure: Joi.string().allow("").required(),
3300
3392
  item_width: Joi.number().required(),
3301
- size: Joi.any().required(),
3393
+ size: Joi.string().allow("").required(),
3302
3394
  });
3303
3395
  }
3304
3396
 
@@ -3432,8 +3524,8 @@ class CatalogPlatformModel {
3432
3524
  /** @returns {ApplicationItemSEO} */
3433
3525
  static ApplicationItemSEO() {
3434
3526
  return Joi.object({
3435
- description: Joi.any(),
3436
- title: Joi.any(),
3527
+ description: Joi.string().allow(""),
3528
+ title: Joi.string().allow(""),
3437
3529
  });
3438
3530
  }
3439
3531
 
@@ -3764,7 +3856,7 @@ class CatalogPlatformModel {
3764
3856
  failed_records: Joi.array().items(Joi.any()),
3765
3857
  file_path: Joi.string().allow(""),
3766
3858
  is_active: Joi.boolean(),
3767
- modified_by: CatalogPlatformModel.UserInfo1(),
3859
+ modified_by: Joi.string().allow("").allow(null),
3768
3860
  modified_on: Joi.string().allow(""),
3769
3861
  stage: Joi.string().allow(""),
3770
3862
  succeed: Joi.number(),
@@ -4332,6 +4424,30 @@ class CatalogPlatformModel {
4332
4424
  });
4333
4425
  }
4334
4426
 
4427
+ /** @returns {CreateSearchConfigurationRequest} */
4428
+ static CreateSearchConfigurationRequest() {
4429
+ return Joi.object({
4430
+ application_id: Joi.string().allow("").required(),
4431
+ company_id: Joi.number().required(),
4432
+ created_by: CatalogPlatformModel.UserSerializer(),
4433
+ created_on: Joi.string().allow(""),
4434
+ is_proximity_enabled: Joi.boolean(),
4435
+ modified_by: CatalogPlatformModel.UserSerializer(),
4436
+ modified_on: Joi.string().allow(""),
4437
+ proximity: Joi.number(),
4438
+ searchable_attributes: Joi.array().items(
4439
+ CatalogPlatformModel.SearchableAttribute()
4440
+ ),
4441
+ });
4442
+ }
4443
+
4444
+ /** @returns {CreateSearchConfigurationResponse} */
4445
+ static CreateSearchConfigurationResponse() {
4446
+ return Joi.object({
4447
+ success: Joi.boolean(),
4448
+ });
4449
+ }
4450
+
4335
4451
  /** @returns {CreateSearchKeyword} */
4336
4452
  static CreateSearchKeyword() {
4337
4453
  return Joi.object({
@@ -4392,6 +4508,13 @@ class CatalogPlatformModel {
4392
4508
  });
4393
4509
  }
4394
4510
 
4511
+ /** @returns {DeleteSearchConfigurationResponse} */
4512
+ static DeleteSearchConfigurationResponse() {
4513
+ return Joi.object({
4514
+ success: Joi.boolean(),
4515
+ });
4516
+ }
4517
+
4395
4518
  /** @returns {Department} */
4396
4519
  static Department() {
4397
4520
  return Joi.object({
@@ -4465,19 +4588,19 @@ class CatalogPlatformModel {
4465
4588
  /** @returns {DepartmentModel} */
4466
4589
  static DepartmentModel() {
4467
4590
  return Joi.object({
4468
- _cls: Joi.any(),
4591
+ _cls: Joi.string().allow(""),
4469
4592
  _custom_json: Joi.any(),
4470
- _id: Joi.any(),
4593
+ _id: Joi.string().allow(""),
4471
4594
  created_by: CatalogPlatformModel.UserDetail(),
4472
4595
  created_on: Joi.string().allow("").required(),
4473
4596
  is_active: Joi.boolean(),
4474
- logo: Joi.any().required(),
4597
+ logo: Joi.string().allow("").required(),
4475
4598
  modified_by: CatalogPlatformModel.UserDetail(),
4476
4599
  modified_on: Joi.string().allow("").required(),
4477
- name: Joi.any().required(),
4600
+ name: Joi.string().allow("").required(),
4478
4601
  priority_order: Joi.number().required(),
4479
- slug: Joi.any().required(),
4480
- synonyms: Joi.array().items(Joi.any()),
4602
+ slug: Joi.string().allow("").required(),
4603
+ synonyms: Joi.array().items(Joi.string().allow("")),
4481
4604
  uid: Joi.number().required(),
4482
4605
  verified_by: CatalogPlatformModel.UserDetail(),
4483
4606
  verified_on: Joi.string().allow(""),
@@ -4725,15 +4848,15 @@ class CatalogPlatformModel {
4725
4848
  addresses: Joi.array().items(CatalogPlatformModel.GetAddressSerializer()),
4726
4849
  business_type: Joi.string().allow(""),
4727
4850
  company_type: Joi.string().allow(""),
4728
- created_by: CatalogPlatformModel.UserSerializer1(),
4851
+ created_by: CatalogPlatformModel.UserSerializer2(),
4729
4852
  created_on: Joi.string().allow(""),
4730
- modified_by: CatalogPlatformModel.UserSerializer1(),
4853
+ modified_by: CatalogPlatformModel.UserSerializer2(),
4731
4854
  modified_on: Joi.string().allow(""),
4732
4855
  name: Joi.string().allow(""),
4733
4856
  reject_reason: Joi.string().allow(""),
4734
4857
  stage: Joi.string().allow(""),
4735
4858
  uid: Joi.number(),
4736
- verified_by: CatalogPlatformModel.UserSerializer1(),
4859
+ verified_by: CatalogPlatformModel.UserSerializer2(),
4737
4860
  verified_on: Joi.string().allow(""),
4738
4861
  });
4739
4862
  }
@@ -4758,12 +4881,12 @@ class CatalogPlatformModel {
4758
4881
  /** @returns {GetDepartment} */
4759
4882
  static GetDepartment() {
4760
4883
  return Joi.object({
4761
- created_by: CatalogPlatformModel.UserSerializer(),
4884
+ created_by: CatalogPlatformModel.UserSerializer1(),
4762
4885
  created_on: Joi.string().allow(""),
4763
4886
  is_active: Joi.boolean(),
4764
4887
  item_type: Joi.string().allow(""),
4765
4888
  logo: Joi.string().allow(""),
4766
- modified_by: CatalogPlatformModel.UserSerializer(),
4889
+ modified_by: CatalogPlatformModel.UserSerializer1(),
4767
4890
  modified_on: Joi.string().allow(""),
4768
4891
  name: Joi.string().allow(""),
4769
4892
  page_no: Joi.number(),
@@ -4782,7 +4905,7 @@ class CatalogPlatformModel {
4782
4905
  brand: CatalogPlatformModel.BrandMeta1(),
4783
4906
  company: CatalogPlatformModel.CompanyMeta1(),
4784
4907
  country_of_origin: Joi.string().allow(""),
4785
- created_by: CatalogPlatformModel.UserSerializer(),
4908
+ created_by: CatalogPlatformModel.UserSerializer1(),
4786
4909
  date_meta: CatalogPlatformModel.DateMeta(),
4787
4910
  dimension: CatalogPlatformModel.DimensionResponse1(),
4788
4911
  expiration_date: Joi.string().allow(""),
@@ -4792,7 +4915,7 @@ class CatalogPlatformModel {
4792
4915
  is_set: Joi.boolean(),
4793
4916
  item_id: Joi.number(),
4794
4917
  manufacturer: CatalogPlatformModel.ManufacturerResponse1(),
4795
- modified_by: CatalogPlatformModel.UserSerializer(),
4918
+ modified_by: CatalogPlatformModel.UserSerializer1(),
4796
4919
  platforms: Joi.any(),
4797
4920
  price: CatalogPlatformModel.PriceArticle(),
4798
4921
  quantities: CatalogPlatformModel.QuantitiesArticle(),
@@ -4830,14 +4953,14 @@ class CatalogPlatformModel {
4830
4953
  contact_numbers: Joi.array().items(
4831
4954
  CatalogPlatformModel.SellerPhoneNumber()
4832
4955
  ),
4833
- created_by: CatalogPlatformModel.UserSerializer2(),
4956
+ created_by: CatalogPlatformModel.UserSerializer3(),
4834
4957
  created_on: Joi.string().allow(""),
4835
4958
  display_name: Joi.string().allow("").required(),
4836
4959
  documents: Joi.array().items(CatalogPlatformModel.Document()),
4837
4960
  gst_credentials: CatalogPlatformModel.InvoiceDetailsSerializer(),
4838
4961
  integration_type: CatalogPlatformModel.LocationIntegrationType(),
4839
4962
  manager: CatalogPlatformModel.LocationManagerSerializer(),
4840
- modified_by: CatalogPlatformModel.UserSerializer2(),
4963
+ modified_by: CatalogPlatformModel.UserSerializer3(),
4841
4964
  modified_on: Joi.string().allow(""),
4842
4965
  name: Joi.string().allow("").required(),
4843
4966
  notification_emails: Joi.array().items(Joi.string().allow("")),
@@ -4849,7 +4972,7 @@ class CatalogPlatformModel {
4849
4972
  CatalogPlatformModel.LocationDayWiseSerializer()
4850
4973
  ),
4851
4974
  uid: Joi.number(),
4852
- verified_by: CatalogPlatformModel.UserSerializer2(),
4975
+ verified_by: CatalogPlatformModel.UserSerializer3(),
4853
4976
  verified_on: Joi.string().allow(""),
4854
4977
  warnings: Joi.any(),
4855
4978
  });
@@ -4927,6 +5050,23 @@ class CatalogPlatformModel {
4927
5050
  });
4928
5051
  }
4929
5052
 
5053
+ /** @returns {GetSearchConfigurationResponse} */
5054
+ static GetSearchConfigurationResponse() {
5055
+ return Joi.object({
5056
+ application_id: Joi.string().allow("").required(),
5057
+ company_id: Joi.number().required(),
5058
+ created_by: CatalogPlatformModel.UserSerializer(),
5059
+ created_on: Joi.string().allow(""),
5060
+ is_proximity_enabled: Joi.boolean(),
5061
+ modified_by: CatalogPlatformModel.UserSerializer(),
5062
+ modified_on: Joi.string().allow(""),
5063
+ proximity: Joi.number(),
5064
+ searchable_attributes: Joi.array().items(
5065
+ CatalogPlatformModel.SearchableAttribute()
5066
+ ),
5067
+ });
5068
+ }
5069
+
4930
5070
  /** @returns {GetSearchWordsData} */
4931
5071
  static GetSearchWordsData() {
4932
5072
  return Joi.object({
@@ -4971,7 +5111,7 @@ class CatalogPlatformModel {
4971
5111
  static GTIN() {
4972
5112
  return Joi.object({
4973
5113
  gtin_type: Joi.string().allow("").required(),
4974
- gtin_value: Joi.any().required(),
5114
+ gtin_value: Joi.string().allow("").required(),
4975
5115
  primary: Joi.boolean(),
4976
5116
  });
4977
5117
  }
@@ -5219,7 +5359,7 @@ class CatalogPlatformModel {
5219
5359
  modified_on: Joi.string().allow(""),
5220
5360
  notification_emails: Joi.array().items(Joi.string().allow("")),
5221
5361
  seller_id: Joi.number().required(),
5222
- status: Joi.any(),
5362
+ status: Joi.string().allow(""),
5223
5363
  task_id: Joi.string().allow("").required(),
5224
5364
  type: Joi.string().allow("").allow(null),
5225
5365
  url: Joi.string().allow("").required(),
@@ -5452,7 +5592,7 @@ class CatalogPlatformModel {
5452
5592
  price_transfer: Joi.number().allow(null),
5453
5593
  quantity: Joi.number().required(),
5454
5594
  set: CatalogPlatformModel.InventorySet(),
5455
- size: Joi.any().required(),
5595
+ size: Joi.string().allow("").required(),
5456
5596
  store_code: Joi.string().allow("").required(),
5457
5597
  });
5458
5598
  }
@@ -5669,8 +5809,8 @@ class CatalogPlatformModel {
5669
5809
  /** @returns {MetaFields} */
5670
5810
  static MetaFields() {
5671
5811
  return Joi.object({
5672
- key: Joi.any().required(),
5673
- value: Joi.any().required(),
5812
+ key: Joi.string().allow("").required(),
5813
+ value: Joi.string().allow("").required(),
5674
5814
  });
5675
5815
  }
5676
5816
 
@@ -6069,7 +6209,7 @@ class CatalogPlatformModel {
6069
6209
  net_quantity: CatalogPlatformModel.NetQuantity(),
6070
6210
  no_of_boxes: Joi.number(),
6071
6211
  product_group_tag: Joi.array().items(Joi.string().allow("")),
6072
- product_publish: CatalogPlatformModel.ProductPublish(),
6212
+ product_publish: CatalogPlatformModel.ProductPublish1(),
6073
6213
  requester: Joi.string().allow(""),
6074
6214
  return_config: CatalogPlatformModel.ReturnConfig().required(),
6075
6215
  short_description: Joi.string().allow(""),
@@ -6321,7 +6461,7 @@ class CatalogPlatformModel {
6321
6461
  pending: Joi.string().allow(""),
6322
6462
  primary_color: Joi.string().allow(""),
6323
6463
  product_group_tag: Joi.array().items(Joi.string().allow("")),
6324
- product_publish: CatalogPlatformModel.ProductPublish1(),
6464
+ product_publish: CatalogPlatformModel.ProductPublish(),
6325
6465
  return_config: CatalogPlatformModel.ReturnConfigResponse(),
6326
6466
  short_description: Joi.string().allow(""),
6327
6467
  size_guide: Joi.string().allow(""),
@@ -6654,6 +6794,15 @@ class CatalogPlatformModel {
6654
6794
  });
6655
6795
  }
6656
6796
 
6797
+ /** @returns {SearchableAttribute} */
6798
+ static SearchableAttribute() {
6799
+ return Joi.object({
6800
+ key: Joi.string().allow("").required(),
6801
+ name: Joi.string().allow("").required(),
6802
+ priority: Joi.number().required(),
6803
+ });
6804
+ }
6805
+
6657
6806
  /** @returns {SearchKeywordResult} */
6658
6807
  static SearchKeywordResult() {
6659
6808
  return Joi.object({
@@ -6686,8 +6835,8 @@ class CatalogPlatformModel {
6686
6835
  /** @returns {SEOData} */
6687
6836
  static SEOData() {
6688
6837
  return Joi.object({
6689
- description: Joi.any(),
6690
- title: Joi.any(),
6838
+ description: Joi.string().allow(""),
6839
+ title: Joi.string().allow(""),
6691
6840
  });
6692
6841
  }
6693
6842
 
@@ -6968,6 +7117,30 @@ class CatalogPlatformModel {
6968
7117
  });
6969
7118
  }
6970
7119
 
7120
+ /** @returns {UpdateSearchConfigurationRequest} */
7121
+ static UpdateSearchConfigurationRequest() {
7122
+ return Joi.object({
7123
+ application_id: Joi.string().allow("").required(),
7124
+ company_id: Joi.number().required(),
7125
+ created_by: CatalogPlatformModel.UserSerializer(),
7126
+ created_on: Joi.string().allow(""),
7127
+ is_proximity_enabled: Joi.boolean(),
7128
+ modified_by: CatalogPlatformModel.UserSerializer(),
7129
+ modified_on: Joi.string().allow(""),
7130
+ proximity: Joi.number(),
7131
+ searchable_attributes: Joi.array().items(
7132
+ CatalogPlatformModel.SearchableAttribute()
7133
+ ),
7134
+ });
7135
+ }
7136
+
7137
+ /** @returns {UpdateSearchConfigurationResponse} */
7138
+ static UpdateSearchConfigurationResponse() {
7139
+ return Joi.object({
7140
+ success: Joi.boolean(),
7141
+ });
7142
+ }
7143
+
6971
7144
  /** @returns {UserCommon} */
6972
7145
  static UserCommon() {
6973
7146
  return Joi.object({
@@ -7019,9 +7192,7 @@ class CatalogPlatformModel {
7019
7192
  /** @returns {UserSerializer} */
7020
7193
  static UserSerializer() {
7021
7194
  return Joi.object({
7022
- _id: Joi.string().allow(""),
7023
7195
  contact: Joi.string().allow(""),
7024
- uid: Joi.string().allow(""),
7025
7196
  user_id: Joi.string().allow(""),
7026
7197
  username: Joi.string().allow(""),
7027
7198
  });
@@ -7030,7 +7201,9 @@ class CatalogPlatformModel {
7030
7201
  /** @returns {UserSerializer1} */
7031
7202
  static UserSerializer1() {
7032
7203
  return Joi.object({
7204
+ _id: Joi.string().allow(""),
7033
7205
  contact: Joi.string().allow(""),
7206
+ uid: Joi.string().allow(""),
7034
7207
  user_id: Joi.string().allow(""),
7035
7208
  username: Joi.string().allow(""),
7036
7209
  });
@@ -7045,6 +7218,15 @@ class CatalogPlatformModel {
7045
7218
  });
7046
7219
  }
7047
7220
 
7221
+ /** @returns {UserSerializer3} */
7222
+ static UserSerializer3() {
7223
+ return Joi.object({
7224
+ contact: Joi.string().allow(""),
7225
+ user_id: Joi.string().allow(""),
7226
+ username: Joi.string().allow(""),
7227
+ });
7228
+ }
7229
+
7048
7230
  /** @returns {ValidateIdentifier} */
7049
7231
  static ValidateIdentifier() {
7050
7232
  return Joi.object({