@gofynd/fdk-client-javascript 3.15.0 → 3.16.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 (64) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -1
  4. package/sdk/application/Order/OrderApplicationClient.js +50 -1
  5. package/sdk/application/Payment/PaymentApplicationClient.d.ts +0 -20
  6. package/sdk/application/Payment/PaymentApplicationClient.js +0 -77
  7. package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
  8. package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
  9. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2 -2
  10. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1 -1
  11. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
  12. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  13. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
  14. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  15. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +10 -0
  16. package/sdk/platform/Cart/CartPlatformApplicationClient.js +95 -0
  17. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +47 -1
  18. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +29 -0
  19. package/sdk/platform/Cart/CartPlatformModel.d.ts +39 -7
  20. package/sdk/platform/Cart/CartPlatformModel.js +24 -3
  21. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
  22. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +13 -16
  23. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +17 -20
  24. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +10 -11
  25. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  26. package/sdk/platform/Catalog/CatalogPlatformClient.js +1 -1
  27. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -37
  28. package/sdk/platform/Catalog/CatalogPlatformModel.js +33 -28
  29. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +2 -2
  30. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -2
  31. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
  32. package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
  33. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
  34. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
  35. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -2
  36. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1 -1
  37. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +11 -1
  38. package/sdk/platform/Content/ContentPlatformApplicationClient.js +85 -1
  39. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +24 -1
  40. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +15 -0
  41. package/sdk/platform/Content/ContentPlatformModel.d.ts +243 -3
  42. package/sdk/platform/Content/ContentPlatformModel.js +164 -1
  43. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
  44. package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
  45. package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
  46. package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
  47. package/sdk/platform/Order/OrderPlatformModel.d.ts +2 -2
  48. package/sdk/platform/Order/OrderPlatformModel.js +1 -1
  49. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +0 -23
  50. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +0 -161
  51. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -19
  52. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +0 -24
  53. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1 -159
  54. package/sdk/platform/Payment/PaymentPlatformModel.js +0 -112
  55. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
  56. package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
  57. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +67 -49
  58. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +45 -42
  59. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
  60. package/sdk/platform/Share/SharePlatformModel.js +1 -1
  61. package/sdk/platform/User/UserPlatformModel.d.ts +14 -0
  62. package/sdk/platform/User/UserPlatformModel.js +6 -0
  63. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
  64. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
@@ -35,7 +35,8 @@ const Joi = require("joi");
35
35
  * @property {boolean} [is_default] - Whether this is the default fulfillment option.
36
36
  * @property {string} [type] - Type of fulfillment option.
37
37
  * @property {string} [status] - Status of the fulfillment option.
38
- * @property {BusinessUnit[]} [business_unit]
38
+ * @property {BusinessUnit[]} [business_unit] - Name of the ordering-channel or
39
+ * business, e.g. storefront, storeos.
39
40
  * @property {FulfillmentStores} [fulfillment_stores]
40
41
  * @property {FulfillmentProducts} [products]
41
42
  * @property {CourierPartnerSchemes} [cp_schemes]
@@ -298,14 +299,14 @@ const Joi = require("joi");
298
299
  * @typedef PincodeMopBulkError
299
300
  * @property {string} [batch_id] - A unique identifier for the performed batch operation.
300
301
  * @property {number} [status_code] - Status code for the error.
301
- * @property {Object} [error]
302
+ * @property {Error[]} [error] - An array containing error details.
302
303
  * @property {boolean} [success] - Whether operation was successful.
303
304
  */
304
305
 
305
306
  /**
306
307
  * @typedef CommonError
307
308
  * @property {number} [status_code] - Status code for the error.
308
- * @property {Object} [error]
309
+ * @property {Error[]} [error] - An array containing error details.
309
310
  * @property {boolean} [success] - Whether operation was successful.
310
311
  */
311
312
 
@@ -545,8 +546,8 @@ const Joi = require("joi");
545
546
  * @property {string} name - Name for the courier partner rule.
546
547
  * @property {string[]} manual_priority - Has the list of courier partner
547
548
  * account Ids that are to be given priority.
548
- * @property {string} filters - Denotes weather specific filters are applied to
549
- * courier partner accounts or all accounts are considered.
549
+ * @property {string} [filters] - Denotes weather specific filters are applied
550
+ * to courier partner accounts or all accounts are considered.
550
551
  * @property {CourierPartnerRuleConditions} conditions
551
552
  * @property {string[]} sort - Sort Strategy for the courier partners.
552
553
  * @property {string} [type] - Denotes the type of the rule.
@@ -1302,7 +1303,7 @@ const Joi = require("joi");
1302
1303
  * @typedef PlatformLocationArticles
1303
1304
  * @property {PlatformLocationArticle[]} articles - List of articles for this
1304
1305
  * fulfillment location.
1305
- * @property {number} [fulfillment_location_id] - Unique identifier for the
1306
+ * @property {number} fulfillment_location_id - Unique identifier for the
1306
1307
  * fulfillment location.
1307
1308
  * @property {string[]} [fulfillment_tags] - Tags associated with the
1308
1309
  * fulfillment location.
@@ -1360,6 +1361,9 @@ const Joi = require("joi");
1360
1361
  * fulfillment location.
1361
1362
  * @property {ShipmentsCourierPartner[]} [courier_partners] - List of courier
1362
1363
  * partners handling the shipment.
1364
+ * @property {number} [count] - The number of items in the shipment.
1365
+ * @property {boolean} [is_cod_available] - Flag indicating whether Cash on
1366
+ * Delivery (COD) is available for the shipment.
1363
1367
  */
1364
1368
 
1365
1369
  /**
@@ -1678,7 +1682,7 @@ const Joi = require("joi");
1678
1682
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
1679
1683
  * @property {boolean} [has_next] - Indicates whether there is a next page.
1680
1684
  * @property {number} [current] - The current page number.
1681
- * @property {string} type - The type of the page, such as 'PageType'.
1685
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
1682
1686
  * @property {number} [size] - The number of items per page.
1683
1687
  * @property {number} [page_size] - The number of items per page.
1684
1688
  */
@@ -1749,8 +1753,8 @@ const Joi = require("joi");
1749
1753
  * @property {ListViewProduct} product
1750
1754
  * @property {number} company_id - The unique identifier of the company.
1751
1755
  * @property {string} application_id - The unique identifier of the application.
1752
- * @property {CreatedBy} created_by
1753
- * @property {ModifiedBy} modified_by
1756
+ * @property {CreatedBy} [created_by]
1757
+ * @property {ModifiedBy} [modified_by]
1754
1758
  * @property {string} created_on - The timestamp when the record was created.
1755
1759
  * @property {string} modified_on - The timestamp when the record last modified.
1756
1760
  * @property {string} [stage] - Current stage of the zone.
@@ -1927,7 +1931,7 @@ const Joi = require("joi");
1927
1931
  * @property {StringComparisonOperations} [zone_ids]
1928
1932
  * @property {IntComparisonOperations} [department_ids]
1929
1933
  * @property {IntComparisonOperations} [brand_ids]
1930
- * @property {ArithmeticOperations} [order_place_date]
1934
+ * @property {DateOperations} [order_place_date]
1931
1935
  * @property {IntComparisonOperations} [store_ids]
1932
1936
  * @property {StringComparisonOperations} [store_type]
1933
1937
  * @property {StringComparisonOperations} [store_tags]
@@ -1970,6 +1974,12 @@ const Joi = require("joi");
1970
1974
  * the comparison.
1971
1975
  */
1972
1976
 
1977
+ /**
1978
+ * @typedef DateOperations
1979
+ * @property {string} lte - Less than or equal to condition for date.
1980
+ * @property {string} gte - Greater than or equal to condition for date.
1981
+ */
1982
+
1973
1983
  /**
1974
1984
  * @typedef ArithmeticOperations
1975
1985
  * @property {number} [lt] - Specifies a less than operation, comparing values
@@ -2276,14 +2286,6 @@ const Joi = require("joi");
2276
2286
  * @property {number} [gte] - The greater-than-or-equal comparison value for the radius.
2277
2287
  */
2278
2288
 
2279
- /**
2280
- * @typedef DateOperations
2281
- * @property {string} [lt] - Less than condition for date.
2282
- * @property {string} [gt] - Greater than condition for date.
2283
- * @property {string} [lte] - Less than or equal to condition for date.
2284
- * @property {string} [gte] - Greater than or equal to condition for date.
2285
- */
2286
-
2287
2289
  /**
2288
2290
  * @typedef CourierPartnerSchemeModel
2289
2291
  * @property {string} extension_id - Unique identifier of courier partner extension.
@@ -2556,7 +2558,8 @@ const Joi = require("joi");
2556
2558
 
2557
2559
  /**
2558
2560
  * @typedef ApplicationFields
2559
- * @property {GetCountryFieldsAddress[]} [address]
2561
+ * @property {GetCountryFieldsAddress[]} [address] - List of address-related
2562
+ * fields for the application.
2560
2563
  * @property {string[]} [serviceability_fields] - An array of strings
2561
2564
  * representing fields related to the serviceability of the country.
2562
2565
  * @property {GetCountryFieldsAddressTemplateApplication} [address_template]
@@ -3088,7 +3091,7 @@ class ServiceabilityPlatformModel {
3088
3091
  return Joi.object({
3089
3092
  batch_id: Joi.string().allow(""),
3090
3093
  status_code: Joi.number(),
3091
- error: Joi.any(),
3094
+ error: Joi.array().items(ServiceabilityPlatformModel.Error()),
3092
3095
  success: Joi.boolean(),
3093
3096
  });
3094
3097
  }
@@ -3097,7 +3100,7 @@ class ServiceabilityPlatformModel {
3097
3100
  static CommonError() {
3098
3101
  return Joi.object({
3099
3102
  status_code: Joi.number(),
3100
- error: Joi.any(),
3103
+ error: Joi.array().items(ServiceabilityPlatformModel.Error()),
3101
3104
  success: Joi.boolean(),
3102
3105
  });
3103
3106
  }
@@ -3336,7 +3339,7 @@ class ServiceabilityPlatformModel {
3336
3339
  application_id: Joi.string().allow(""),
3337
3340
  company_id: Joi.number(),
3338
3341
  manual_priority: Joi.array().items(Joi.string().allow("")),
3339
- filters: Joi.string().allow(""),
3342
+ filters: Joi.string().allow("").allow(null),
3340
3343
  conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
3341
3344
  sort: Joi.array().items(Joi.string().allow("")),
3342
3345
  created_by: ServiceabilityPlatformModel.CreatedBy(),
@@ -3360,7 +3363,7 @@ class ServiceabilityPlatformModel {
3360
3363
  ),
3361
3364
  name: Joi.string().allow("").required(),
3362
3365
  manual_priority: Joi.array().items(Joi.string().allow("")).required(),
3363
- filters: Joi.string().allow("").required(),
3366
+ filters: Joi.string().allow("").allow(null),
3364
3367
  conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions().required(),
3365
3368
  sort: Joi.array().items(Joi.string().allow("")).required(),
3366
3369
  type: Joi.string().allow(""),
@@ -3504,7 +3507,7 @@ class ServiceabilityPlatformModel {
3504
3507
  manual_priority: Joi.array().items(Joi.number()),
3505
3508
  meta_sort_priority: Joi.object().pattern(/\S/, Joi.any()),
3506
3509
  meta_conditions: Joi.object().pattern(/\S/, Joi.any()),
3507
- filters: Joi.string().allow(""),
3510
+ filters: Joi.string().allow("").allow(null),
3508
3511
  company_id: Joi.number(),
3509
3512
  application_id: Joi.string().allow(""),
3510
3513
  type_based_priority: Joi.array().items(Joi.string().allow("")),
@@ -3535,7 +3538,7 @@ class ServiceabilityPlatformModel {
3535
3538
  manual_priority: Joi.array().items(Joi.number()),
3536
3539
  meta_sort_priority: Joi.object().pattern(/\S/, Joi.any()),
3537
3540
  meta_conditions: Joi.object().pattern(/\S/, Joi.any()),
3538
- filters: Joi.string().allow(""),
3541
+ filters: Joi.string().allow("").allow(null),
3539
3542
  is_active: Joi.boolean(),
3540
3543
  conditions: ServiceabilityPlatformModel.StoreRuleConditionSchema(),
3541
3544
  type_based_priority: Joi.array().items(Joi.string().allow("")),
@@ -3555,7 +3558,7 @@ class ServiceabilityPlatformModel {
3555
3558
  manual_priority: Joi.array().items(Joi.number()),
3556
3559
  meta_sort_priority: Joi.object().pattern(/\S/, Joi.any()),
3557
3560
  meta_conditions: Joi.object().pattern(/\S/, Joi.any()),
3558
- filters: Joi.string().allow(""),
3561
+ filters: Joi.string().allow("").allow(null),
3559
3562
  type: Joi.string().allow(""),
3560
3563
  type_based_priority: Joi.array().items(Joi.string().allow("")),
3561
3564
  tag_based_priority: Joi.array().items(Joi.string().allow("")),
@@ -3576,7 +3579,7 @@ class ServiceabilityPlatformModel {
3576
3579
  manual_priority: Joi.array().items(Joi.number()),
3577
3580
  meta_sort_priority: Joi.object().pattern(/\S/, Joi.any()),
3578
3581
  meta_conditions: Joi.object().pattern(/\S/, Joi.any()),
3579
- filters: Joi.string().allow(""),
3582
+ filters: Joi.string().allow("").allow(null),
3580
3583
  type: Joi.string().allow(""),
3581
3584
  type_based_priority: Joi.array().items(Joi.string().allow("")),
3582
3585
  tag_based_priority: Joi.array().items(Joi.string().allow("")),
@@ -4137,7 +4140,7 @@ class ServiceabilityPlatformModel {
4137
4140
  articles: Joi.array()
4138
4141
  .items(ServiceabilityPlatformModel.PlatformLocationArticle())
4139
4142
  .required(),
4140
- fulfillment_location_id: Joi.number(),
4143
+ fulfillment_location_id: Joi.number().required(),
4141
4144
  fulfillment_tags: Joi.array().items(Joi.string().allow("")),
4142
4145
  fulfillment_type: Joi.string().allow("").required(),
4143
4146
  });
@@ -4198,6 +4201,8 @@ class ServiceabilityPlatformModel {
4198
4201
  courier_partners: Joi.array().items(
4199
4202
  ServiceabilityPlatformModel.ShipmentsCourierPartner()
4200
4203
  ),
4204
+ count: Joi.number(),
4205
+ is_cod_available: Joi.boolean(),
4201
4206
  });
4202
4207
  }
4203
4208
 
@@ -4540,7 +4545,7 @@ class ServiceabilityPlatformModel {
4540
4545
  is_set: Joi.boolean(),
4541
4546
  track_inventory: Joi.boolean(),
4542
4547
  identifiers: Joi.array().items(ServiceabilityPlatformModel.Identifier()),
4543
- _custom_json: Joi.any(),
4548
+ _custom_json: Joi.object().pattern(/\S/, Joi.any()),
4544
4549
  });
4545
4550
  }
4546
4551
 
@@ -4646,8 +4651,8 @@ class ServiceabilityPlatformModel {
4646
4651
  product: ServiceabilityPlatformModel.ListViewProduct().required(),
4647
4652
  company_id: Joi.number().required(),
4648
4653
  application_id: Joi.string().allow("").required(),
4649
- created_by: ServiceabilityPlatformModel.CreatedBy().required(),
4650
- modified_by: ServiceabilityPlatformModel.ModifiedBy().required(),
4654
+ created_by: ServiceabilityPlatformModel.CreatedBy(),
4655
+ modified_by: ServiceabilityPlatformModel.ModifiedBy(),
4651
4656
  created_on: Joi.string().allow("").required(),
4652
4657
  modified_on: Joi.string().allow("").required(),
4653
4658
  stage: Joi.string().allow(""),
@@ -4859,7 +4864,7 @@ class ServiceabilityPlatformModel {
4859
4864
  zone_ids: ServiceabilityPlatformModel.StringComparisonOperations(),
4860
4865
  department_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
4861
4866
  brand_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
4862
- order_place_date: ServiceabilityPlatformModel.ArithmeticOperations(),
4867
+ order_place_date: ServiceabilityPlatformModel.DateOperations(),
4863
4868
  store_ids: ServiceabilityPlatformModel.IntComparisonOperations(),
4864
4869
  store_type: ServiceabilityPlatformModel.StringComparisonOperations(),
4865
4870
  store_tags: ServiceabilityPlatformModel.StringComparisonOperations(),
@@ -4907,6 +4912,14 @@ class ServiceabilityPlatformModel {
4907
4912
  });
4908
4913
  }
4909
4914
 
4915
+ /** @returns {DateOperations} */
4916
+ static DateOperations() {
4917
+ return Joi.object({
4918
+ lte: Joi.string().allow("").required(),
4919
+ gte: Joi.string().allow("").required(),
4920
+ });
4921
+ }
4922
+
4910
4923
  /** @returns {ArithmeticOperations} */
4911
4924
  static ArithmeticOperations() {
4912
4925
  return Joi.object({
@@ -5220,16 +5233,6 @@ class ServiceabilityPlatformModel {
5220
5233
  });
5221
5234
  }
5222
5235
 
5223
- /** @returns {DateOperations} */
5224
- static DateOperations() {
5225
- return Joi.object({
5226
- lt: Joi.string().allow("").allow(null),
5227
- gt: Joi.string().allow("").allow(null),
5228
- lte: Joi.string().allow("").allow(null),
5229
- gte: Joi.string().allow("").allow(null),
5230
- });
5231
- }
5232
-
5233
5236
  /** @returns {CourierPartnerSchemeModel} */
5234
5237
  static CourierPartnerSchemeModel() {
5235
5238
  return Joi.object({
@@ -104,7 +104,7 @@ export = SharePlatformModel;
104
104
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
105
105
  * @property {boolean} [has_next] - Indicates whether there is a next page.
106
106
  * @property {number} [current] - The current page number.
107
- * @property {string} type - The type of the page, such as 'PageType'.
107
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
108
108
  * @property {number} [size] - The number of items per page.
109
109
  * @property {number} [page_size] - The number of items per page.
110
110
  */
@@ -283,7 +283,7 @@ type Page = {
283
283
  */
284
284
  current?: number;
285
285
  /**
286
- * - The type of the page, such as 'PageType'.
286
+ * - The type of the page, can be 'cursor' or 'number'.
287
287
  */
288
288
  type: string;
289
289
  /**
@@ -117,7 +117,7 @@ const Joi = require("joi");
117
117
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
118
118
  * @property {boolean} [has_next] - Indicates whether there is a next page.
119
119
  * @property {number} [current] - The current page number.
120
- * @property {string} type - The type of the page, such as 'PageType'.
120
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
121
121
  * @property {number} [size] - The number of items per page.
122
122
  * @property {number} [page_size] - The number of items per page.
123
123
  */
@@ -341,6 +341,10 @@ export = UserPlatformModel;
341
341
  * @property {number} limit - Number of results to return per page.
342
342
  * @property {number} page - Page number to fetch.
343
343
  * @property {string} [email] - Filter users by their exact email address.
344
+ * @property {boolean} [has_email] - Apply a filter to retrieve users who have a
345
+ * valid email address specified in their profile.
346
+ * @property {boolean} [has_phone] - Apply a filter to retrieve users who have a
347
+ * valid phone number specified in their profile.
344
348
  * @property {string} [phone] - Filter users by their exact phone number.
345
349
  * @property {string[]} [definition_ids] - List of user attribute definition IDs
346
350
  * to fetch attributes values available for each user.
@@ -1360,6 +1364,16 @@ type UserAttributeFilterQuery = {
1360
1364
  * - Filter users by their exact email address.
1361
1365
  */
1362
1366
  email?: string;
1367
+ /**
1368
+ * - Apply a filter to retrieve users who have a
1369
+ * valid email address specified in their profile.
1370
+ */
1371
+ has_email?: boolean;
1372
+ /**
1373
+ * - Apply a filter to retrieve users who have a
1374
+ * valid phone number specified in their profile.
1375
+ */
1376
+ has_phone?: boolean;
1363
1377
  /**
1364
1378
  * - Filter users by their exact phone number.
1365
1379
  */
@@ -384,6 +384,10 @@ const Joi = require("joi");
384
384
  * @property {number} limit - Number of results to return per page.
385
385
  * @property {number} page - Page number to fetch.
386
386
  * @property {string} [email] - Filter users by their exact email address.
387
+ * @property {boolean} [has_email] - Apply a filter to retrieve users who have a
388
+ * valid email address specified in their profile.
389
+ * @property {boolean} [has_phone] - Apply a filter to retrieve users who have a
390
+ * valid phone number specified in their profile.
387
391
  * @property {string} [phone] - Filter users by their exact phone number.
388
392
  * @property {string[]} [definition_ids] - List of user attribute definition IDs
389
393
  * to fetch attributes values available for each user.
@@ -1217,6 +1221,8 @@ class UserPlatformModel {
1217
1221
  limit: Joi.number().required(),
1218
1222
  page: Joi.number().required(),
1219
1223
  email: Joi.string().allow(""),
1224
+ has_email: Joi.boolean(),
1225
+ has_phone: Joi.boolean(),
1220
1226
  phone: Joi.string().allow(""),
1221
1227
  definition_ids: Joi.array().items(Joi.string().allow("")),
1222
1228
  conditions: Joi.array()
@@ -6,7 +6,7 @@ export = WebhookPlatformModel;
6
6
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
7
7
  * @property {boolean} [has_next] - Indicates whether there is a next page.
8
8
  * @property {number} [current] - The current page number.
9
- * @property {string} type - The type of the page, such as 'PageType'.
9
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
10
10
  * @property {number} [size] - The number of items per page.
11
11
  * @property {number} [page_size] - The number of items per page.
12
12
  */
@@ -343,7 +343,7 @@ type Page = {
343
343
  */
344
344
  current?: number;
345
345
  /**
346
- * - The type of the page, such as 'PageType'.
346
+ * - The type of the page, can be 'cursor' or 'number'.
347
347
  */
348
348
  type: string;
349
349
  /**
@@ -7,7 +7,7 @@ const Joi = require("joi");
7
7
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
8
8
  * @property {boolean} [has_next] - Indicates whether there is a next page.
9
9
  * @property {number} [current] - The current page number.
10
- * @property {string} type - The type of the page, such as 'PageType'.
10
+ * @property {string} type - The type of the page, can be 'cursor' or 'number'.
11
11
  * @property {number} [size] - The number of items per page.
12
12
  * @property {number} [page_size] - The number of items per page.
13
13
  */