@gofynd/fdk-client-javascript 3.3.5 → 3.4.0

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 (166) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +30 -30
  4. package/sdk/application/Cart/CartApplicationClient.js +30 -30
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +36 -33
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +54 -35
  7. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  8. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  9. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  10. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +16 -16
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +24 -24
  14. package/sdk/application/Content/ContentApplicationClient.js +24 -24
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +2 -2
  18. package/sdk/application/Finance/FinanceApplicationClient.js +2 -2
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +5 -5
  20. package/sdk/application/Lead/LeadApplicationClient.js +5 -5
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +19 -9
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +53 -9
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +12 -12
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -46
  26. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +7 -7
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  32. package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
  33. package/sdk/application/User/UserApplicationClient.d.ts +47 -47
  34. package/sdk/application/User/UserApplicationClient.js +47 -47
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +6 -6
  38. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +6 -6
  39. package/sdk/partner/Lead/LeadPartnerClient.d.ts +7 -7
  40. package/sdk/partner/Lead/LeadPartnerClient.js +7 -7
  41. package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +25 -25
  44. package/sdk/partner/Logistics/LogisticsPartnerClient.js +25 -25
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +6 -6
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +3 -3
  47. package/sdk/partner/Theme/ThemePartnerClient.d.ts +24 -24
  48. package/sdk/partner/Theme/ThemePartnerClient.js +24 -24
  49. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +10 -10
  50. package/sdk/partner/Webhook/WebhookPartnerClient.js +10 -10
  51. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +7 -2
  52. package/sdk/partner/Webhook/WebhookPartnerModel.js +3 -1
  53. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +3 -3
  54. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -3
  55. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
  56. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  57. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +1 -1
  58. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +1 -1
  59. package/sdk/platform/Billing/BillingPlatformClient.d.ts +5 -5
  60. package/sdk/platform/Billing/BillingPlatformClient.js +5 -5
  61. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +62 -62
  62. package/sdk/platform/Cart/CartPlatformApplicationClient.js +62 -62
  63. package/sdk/platform/Cart/CartPlatformModel.d.ts +233 -3
  64. package/sdk/platform/Cart/CartPlatformModel.js +147 -1
  65. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +66 -66
  66. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +66 -66
  67. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +81 -79
  68. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -80
  69. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +89 -5
  70. package/sdk/platform/Catalog/CatalogPlatformModel.js +57 -3
  71. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +7 -2
  72. package/sdk/platform/Catalog/CatalogPlatformValidator.js +4 -2
  73. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
  74. package/sdk/platform/Common/CommonPlatformClient.js +2 -2
  75. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +67 -67
  76. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +67 -67
  77. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  78. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  79. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
  80. package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
  81. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +14 -14
  82. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +14 -14
  83. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
  84. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
  85. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +32 -32
  86. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
  87. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +11 -11
  88. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +11 -11
  89. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +19 -3
  90. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +16 -1
  91. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +107 -107
  92. package/sdk/platform/Content/ContentPlatformApplicationClient.js +107 -107
  93. package/sdk/platform/Content/ContentPlatformClient.d.ts +40 -40
  94. package/sdk/platform/Content/ContentPlatformClient.js +40 -40
  95. package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -2
  96. package/sdk/platform/Content/ContentPlatformModel.js +1 -1
  97. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +11 -11
  98. package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
  99. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
  100. package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
  101. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -4
  102. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -4
  103. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +6 -6
  104. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
  105. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  106. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  107. package/sdk/platform/Lead/LeadPlatformClient.d.ts +9 -9
  108. package/sdk/platform/Lead/LeadPlatformClient.js +9 -9
  109. package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
  110. package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
  111. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +5 -5
  112. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -5
  113. package/sdk/platform/Order/OrderPlatformClient.d.ts +58 -58
  114. package/sdk/platform/Order/OrderPlatformClient.js +58 -58
  115. package/sdk/platform/Order/OrderPlatformModel.d.ts +29 -10
  116. package/sdk/platform/Order/OrderPlatformModel.js +28 -6
  117. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
  118. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
  119. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +51 -51
  120. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +51 -51
  121. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +10 -10
  122. package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
  123. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -2
  124. package/sdk/platform/Payment/PaymentPlatformModel.js +1 -1
  125. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +12 -12
  126. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  127. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
  128. package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
  129. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +162 -39
  130. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +840 -73
  131. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +139 -1
  132. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +125 -0
  133. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +30 -30
  134. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +36 -30
  135. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +936 -62
  136. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +591 -33
  137. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +12 -0
  138. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +5 -0
  139. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  140. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  141. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
  142. package/sdk/platform/Share/SharePlatformModel.js +1 -1
  143. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +22 -22
  144. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +22 -22
  145. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  146. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  147. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +70 -34
  148. package/sdk/platform/User/UserPlatformApplicationClient.js +285 -34
  149. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +38 -1
  150. package/sdk/platform/User/UserPlatformApplicationValidator.js +42 -0
  151. package/sdk/platform/User/UserPlatformModel.d.ts +430 -10
  152. package/sdk/platform/User/UserPlatformModel.js +276 -7
  153. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +9 -9
  154. package/sdk/platform/Webhook/WebhookPlatformClient.js +9 -9
  155. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +12 -2
  156. package/sdk/platform/Webhook/WebhookPlatformModel.js +5 -1
  157. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  158. package/sdk/public/Catalog/CatalogPublicClient.js +1 -1
  159. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
  160. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
  161. package/sdk/public/Content/ContentPublicClient.d.ts +14 -14
  162. package/sdk/public/Content/ContentPublicClient.js +14 -14
  163. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  164. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  165. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -5
  166. package/sdk/public/Webhook/WebhookPublicClient.js +5 -5
@@ -13,7 +13,14 @@ const Joi = require("joi");
13
13
  * @property {string} [description] - The description of the attribute.
14
14
  * @property {string} [application_id] - The application ID.
15
15
  * @property {string} [type] - The attribute type.
16
- * @property {boolean} [multi_value] - Whether the attribute supports multiple values.
16
+ * @property {string} [icon] - Optional icon representation for this attribute.
17
+ * Defaults to an empty string.
18
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
19
+ * attribute should be visible.
20
+ * @property {AttributeMaskingProperties} [masking]
21
+ * @property {AttributeRegistrationProperties} [registration]
22
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
23
+ * multiple values.
17
24
  * @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
18
25
  * @property {boolean} [encrypted] - Whether the attribute is encrypted.
19
26
  * @property {boolean} [pinned] - Whether the attribute is pinned.
@@ -33,7 +40,14 @@ const Joi = require("joi");
33
40
  * @property {string} [description] - The description of the attribute.
34
41
  * @property {string} [application_id] - The application ID.
35
42
  * @property {string} [type] - The attribute type.
36
- * @property {boolean} [multi_value] - Whether the attribute supports multiple values.
43
+ * @property {string} [icon] - Optional icon representation for this attribute.
44
+ * Defaults to an empty string.
45
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
46
+ * attribute should be visible.
47
+ * @property {AttributeMaskingProperties} [masking]
48
+ * @property {AttributeRegistrationProperties} [registration]
49
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
50
+ * multiple values.
37
51
  * @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
38
52
  * @property {boolean} [encrypted] - Whether the attribute is encrypted.
39
53
  * @property {boolean} [pinned] - Whether the attribute is pinned.
@@ -47,24 +61,67 @@ const Joi = require("joi");
47
61
  * attribute definition.
48
62
  */
49
63
 
64
+ /**
65
+ * @typedef AttributeMaskingProperties
66
+ * @property {boolean} [enabled] - Indicates if PII masking is editable for this
67
+ * attribute.
68
+ * @property {string} [type] - Indicates the PII masking options available
69
+ * default or others
70
+ */
71
+
72
+ /**
73
+ * @typedef AttributeRegistrationProperties
74
+ * @property {boolean} [enabled] - Indicates if an attribute is editable when
75
+ * customer registers for a storefront.
76
+ * @property {string} [type] - Indicates if this attribute is mandatory or
77
+ * optional when customer registers for a storefront.
78
+ */
79
+
50
80
  /**
51
81
  * @typedef UserAttributeDefinitionValidation
52
82
  * @property {string} [type] - The type of validation.
53
83
  * @property {Object} [value] - The validation value.
54
84
  */
55
85
 
86
+ /**
87
+ * @typedef BulkUserAttribute
88
+ * @property {boolean} [success] - This describes the status of the API response
89
+ * @property {UserAttribute[]} [attributes]
90
+ */
91
+
56
92
  /**
57
93
  * @typedef UserAttribute
58
94
  * @property {string} [_id] - The unique identifier for the attribute definition.
59
95
  * @property {string} [name] - The name of user attribute definition.
60
96
  * @property {string} [user_id] - The unique identifier for the user.
61
97
  * @property {string} [application_id] - The application ID.
98
+ * @property {string} [user_attribute_definition_id] - The unique id of the
99
+ * attribute definition.
100
+ * @property {string} [created_at] - The time when attribute value is created
101
+ * for a user in ISO format.
102
+ * @property {string} [updated_at] - The time when attribute value is updated
103
+ * for a user in ISO format.
62
104
  * @property {string} [type] - The attribute type.
63
105
  * @property {boolean} [customer_overridden] - Whether the attribute is customer-editable.
64
106
  * @property {Object} [attribute]
65
107
  * @property {string} [updated_by]
66
108
  */
67
109
 
110
+ /**
111
+ * @typedef CreateBulkUserAttribute
112
+ * @property {BulkUserAttributeRequestBody[]} attributes - This is an array of
113
+ * objects containing id of attribute definitions and the respective values to
114
+ * created or updated
115
+ */
116
+
117
+ /**
118
+ * @typedef BulkUserAttributeRequestBody
119
+ * @property {string} definition_id - Theis is an unique id of user attribute definition
120
+ * @property {Object} value - Attribute values to be create or updated. Can be a
121
+ * single value or an array of values. Types supported: string, number, array
122
+ * of string, or array of number.
123
+ */
124
+
68
125
  /**
69
126
  * @typedef CreateUserAttribute
70
127
  * @property {boolean} [customer_overridden]
@@ -76,8 +133,15 @@ const Joi = require("joi");
76
133
  * @property {string} [name]
77
134
  * @property {string} [slug]
78
135
  * @property {string} [description]
79
- * @property {string} [type]
80
- * @property {boolean} [multi_value]
136
+ * @property {string} [type] - The attribute type.
137
+ * @property {string} [icon] - Optional icon representation for this attribute.
138
+ * Defaults to an empty string.
139
+ * @property {string[]} [ordering_channels] - Ordering Channels where this
140
+ * attribute should be visible.
141
+ * @property {AttributeMaskingProperties} [masking]
142
+ * @property {AttributeRegistrationProperties} [registration]
143
+ * @property {boolean} [is_multi_value] - Indicates if this attribute can accept
144
+ * multiple values.
81
145
  * @property {boolean} [customer_editable]
82
146
  * @property {boolean} [encrypted]
83
147
  * @property {boolean} [pinned]
@@ -205,6 +269,7 @@ const Joi = require("joi");
205
269
  /**
206
270
  * @typedef PaginationSchema
207
271
  * @property {number} [size] - The number of items per page.
272
+ * @property {number} [total] - The total number of items across all pages.
208
273
  * @property {number} [item_total] - The total number of items across all pages.
209
274
  * @property {boolean} [has_next] - Indicates whether there are more pages to retrieve.
210
275
  * @property {string} [type] - The type of pagination used (eg Number).
@@ -294,6 +359,82 @@ const Joi = require("joi");
294
359
  * @property {string} [value]
295
360
  */
296
361
 
362
+ /**
363
+ * @typedef DeleteBulkUserAttribute
364
+ * @property {string[]} [definition_ids] - List of user attribute definition IDs
365
+ * for which the corresponding values should be deleted.
366
+ */
367
+
368
+ /**
369
+ * @typedef UserAttributeFilter
370
+ * @property {UserAttributeFilterQuery} [query]
371
+ */
372
+
373
+ /**
374
+ * @typedef UserAttributeFilterQuery
375
+ * @property {string} type - Logical condition type to apply between multiple
376
+ * attribute filters.
377
+ * @property {number} limit - Number of results to return per page.
378
+ * @property {number} page - Page number to fetch.
379
+ * @property {string} [email] - Filter users by their exact email address.
380
+ * @property {string} [phone] - Filter users by their exact phone number.
381
+ * @property {string[]} [definition_ids] - List of user attribute definition IDs
382
+ * to fetch attributes values available for each user.
383
+ * @property {UserAttributeFilterRequestConditions[]} conditions - List of
384
+ * filtering conditions to apply on user attributes.
385
+ */
386
+
387
+ /**
388
+ * @typedef UserAttributeFilterRequestConditions
389
+ * @property {string} definition_id - ID of the user attribute definition to filter on.
390
+ * @property {string} type - Filter operation to apply on the attribute value.
391
+ * Supported operations include:
392
+ *
393
+ * - `eq`: Equal to - `ne`: Not equal to - `gt`: Greater than (or is after for
394
+ * dates) - `lt`: Less than (or is before for dates) - `gte`: Greater than
395
+ * or equal to - `lte`: Less than or equal to - `cnt`: Contains (for
396
+ * strings) - `nct`: Does not contain (for strings) - `is`: Matches
397
+ * exactly (for strings) - `nis`: Does not match exactly (for strings) -
398
+ * `sw`: Starts with (for strings) - `ew`: Ends with (for strings) -
399
+ * `btw`: Between two values (for date and datetime types) - `in`: Value
400
+ * exists in given list - `nin`: Value does not exist in given list
401
+ *
402
+ * @property {Object} value - Values to be used in filtering the attribute. Can
403
+ * be a single value or an array of values. Types supported: string, number,
404
+ * array of string, or array of number.
405
+ */
406
+
407
+ /**
408
+ * @typedef UserAttributeFiltered
409
+ * @property {UserAttributeFilteredList[]} [items] - List of user objects that
410
+ * match the filter criteria.
411
+ * @property {PaginationSchema} [page]
412
+ */
413
+
414
+ /**
415
+ * @typedef UserAttributeFilteredList
416
+ * @property {string} [_id] - Unique ID of the user.
417
+ * @property {string} [username] - Generated username for the user.
418
+ * @property {UserPhoneNumbers[]} [phone_numbers] - List of phone numbers
419
+ * associated with the user.
420
+ * @property {UserEmails[]} [emails] - List of emails associated with the user.
421
+ * @property {string} [gender] - Gender of the user.
422
+ * @property {boolean} [active] - Whether the user account is active.
423
+ * @property {boolean} [archive] - Whether the user account is archived.
424
+ * @property {string} [status] - Status of the user account.
425
+ * @property {UserAttribute[]} [attributes]
426
+ * @property {string} [first_name] - First name of the user.
427
+ * @property {string} [last_name] - Last name of the user.
428
+ * @property {string} [account_type] - Type of user account.
429
+ * @property {string} [profile_pic_url] - URL to user's profile picture.
430
+ * @property {boolean} [has_old_password_hash] - Whether user has legacy password format.
431
+ * @property {string} [user_id] - Unique user ID.
432
+ * @property {string} [application_id] - Application ID associated with the user.
433
+ * @property {boolean} [is_encrypted] - Whether the user data is encrypted.
434
+ * @property {string} [created_at] - Timestamp of user creation.
435
+ * @property {string} [updated_at] - Timestamp of last update.
436
+ */
437
+
297
438
  /**
298
439
  * @typedef CreateUserGroup
299
440
  * @property {ConditionsSchema[]} [conditions]
@@ -648,7 +789,11 @@ class UserPlatformModel {
648
789
  description: Joi.string().allow(""),
649
790
  application_id: Joi.string().allow(""),
650
791
  type: Joi.string().allow(""),
651
- multi_value: Joi.boolean(),
792
+ icon: Joi.string().allow(""),
793
+ ordering_channels: Joi.array().items(Joi.string().allow("")),
794
+ masking: UserPlatformModel.AttributeMaskingProperties(),
795
+ registration: UserPlatformModel.AttributeRegistrationProperties(),
796
+ is_multi_value: Joi.boolean(),
652
797
  customer_editable: Joi.boolean(),
653
798
  encrypted: Joi.boolean(),
654
799
  pinned: Joi.boolean(),
@@ -670,7 +815,11 @@ class UserPlatformModel {
670
815
  description: Joi.string().allow(""),
671
816
  application_id: Joi.string().allow(""),
672
817
  type: Joi.string().allow(""),
673
- multi_value: Joi.boolean(),
818
+ icon: Joi.string().allow(""),
819
+ ordering_channels: Joi.array().items(Joi.string().allow("")),
820
+ masking: UserPlatformModel.AttributeMaskingProperties(),
821
+ registration: UserPlatformModel.AttributeRegistrationProperties(),
822
+ is_multi_value: Joi.boolean(),
674
823
  customer_editable: Joi.boolean(),
675
824
  encrypted: Joi.boolean(),
676
825
  pinned: Joi.boolean(),
@@ -686,6 +835,22 @@ class UserPlatformModel {
686
835
  });
687
836
  }
688
837
 
838
+ /** @returns {AttributeMaskingProperties} */
839
+ static AttributeMaskingProperties() {
840
+ return Joi.object({
841
+ enabled: Joi.boolean(),
842
+ type: Joi.string().allow(""),
843
+ });
844
+ }
845
+
846
+ /** @returns {AttributeRegistrationProperties} */
847
+ static AttributeRegistrationProperties() {
848
+ return Joi.object({
849
+ enabled: Joi.boolean(),
850
+ type: Joi.string().allow(""),
851
+ });
852
+ }
853
+
689
854
  /** @returns {UserAttributeDefinitionValidation} */
690
855
  static UserAttributeDefinitionValidation() {
691
856
  return Joi.object({
@@ -694,6 +859,14 @@ class UserPlatformModel {
694
859
  });
695
860
  }
696
861
 
862
+ /** @returns {BulkUserAttribute} */
863
+ static BulkUserAttribute() {
864
+ return Joi.object({
865
+ success: Joi.boolean(),
866
+ attributes: Joi.array().items(UserPlatformModel.UserAttribute()),
867
+ });
868
+ }
869
+
697
870
  /** @returns {UserAttribute} */
698
871
  static UserAttribute() {
699
872
  return Joi.object({
@@ -701,6 +874,9 @@ class UserPlatformModel {
701
874
  name: Joi.string().allow(""),
702
875
  user_id: Joi.string().allow(""),
703
876
  application_id: Joi.string().allow(""),
877
+ user_attribute_definition_id: Joi.string().allow(""),
878
+ created_at: Joi.string().allow(""),
879
+ updated_at: Joi.string().allow(""),
704
880
  type: Joi.string().allow(""),
705
881
  customer_overridden: Joi.boolean(),
706
882
  attribute: Joi.object().pattern(/\S/, Joi.any()),
@@ -708,6 +884,23 @@ class UserPlatformModel {
708
884
  });
709
885
  }
710
886
 
887
+ /** @returns {CreateBulkUserAttribute} */
888
+ static CreateBulkUserAttribute() {
889
+ return Joi.object({
890
+ attributes: Joi.array()
891
+ .items(UserPlatformModel.BulkUserAttributeRequestBody())
892
+ .required(),
893
+ });
894
+ }
895
+
896
+ /** @returns {BulkUserAttributeRequestBody} */
897
+ static BulkUserAttributeRequestBody() {
898
+ return Joi.object({
899
+ definition_id: Joi.string().allow("").required(),
900
+ value: Joi.any().required(),
901
+ });
902
+ }
903
+
711
904
  /** @returns {CreateUserAttribute} */
712
905
  static CreateUserAttribute() {
713
906
  return Joi.object({
@@ -723,7 +916,11 @@ class UserPlatformModel {
723
916
  slug: Joi.string().allow(""),
724
917
  description: Joi.string().allow(""),
725
918
  type: Joi.string().allow(""),
726
- multi_value: Joi.boolean(),
919
+ icon: Joi.string().allow(""),
920
+ ordering_channels: Joi.array().items(Joi.string().allow("")),
921
+ masking: UserPlatformModel.AttributeMaskingProperties(),
922
+ registration: UserPlatformModel.AttributeRegistrationProperties(),
923
+ is_multi_value: Joi.boolean(),
727
924
  customer_editable: Joi.boolean(),
728
925
  encrypted: Joi.boolean(),
729
926
  pinned: Joi.boolean(),
@@ -873,6 +1070,7 @@ class UserPlatformModel {
873
1070
  static PaginationSchema() {
874
1071
  return Joi.object({
875
1072
  size: Joi.number(),
1073
+ total: Joi.number(),
876
1074
  item_total: Joi.number(),
877
1075
  has_next: Joi.boolean(),
878
1076
  type: Joi.string().allow(""),
@@ -983,6 +1181,77 @@ class UserPlatformModel {
983
1181
  });
984
1182
  }
985
1183
 
1184
+ /** @returns {DeleteBulkUserAttribute} */
1185
+ static DeleteBulkUserAttribute() {
1186
+ return Joi.object({
1187
+ definition_ids: Joi.array().items(Joi.string().allow("")),
1188
+ });
1189
+ }
1190
+
1191
+ /** @returns {UserAttributeFilter} */
1192
+ static UserAttributeFilter() {
1193
+ return Joi.object({
1194
+ query: UserPlatformModel.UserAttributeFilterQuery(),
1195
+ });
1196
+ }
1197
+
1198
+ /** @returns {UserAttributeFilterQuery} */
1199
+ static UserAttributeFilterQuery() {
1200
+ return Joi.object({
1201
+ type: Joi.string().allow("").required(),
1202
+ limit: Joi.number().required(),
1203
+ page: Joi.number().required(),
1204
+ email: Joi.string().allow(""),
1205
+ phone: Joi.string().allow(""),
1206
+ definition_ids: Joi.array().items(Joi.string().allow("")),
1207
+ conditions: Joi.array()
1208
+ .items(UserPlatformModel.UserAttributeFilterRequestConditions())
1209
+ .required(),
1210
+ });
1211
+ }
1212
+
1213
+ /** @returns {UserAttributeFilterRequestConditions} */
1214
+ static UserAttributeFilterRequestConditions() {
1215
+ return Joi.object({
1216
+ definition_id: Joi.string().allow("").required(),
1217
+ type: Joi.string().allow("").required(),
1218
+ value: Joi.any().required(),
1219
+ });
1220
+ }
1221
+
1222
+ /** @returns {UserAttributeFiltered} */
1223
+ static UserAttributeFiltered() {
1224
+ return Joi.object({
1225
+ items: Joi.array().items(UserPlatformModel.UserAttributeFilteredList()),
1226
+ page: UserPlatformModel.PaginationSchema(),
1227
+ });
1228
+ }
1229
+
1230
+ /** @returns {UserAttributeFilteredList} */
1231
+ static UserAttributeFilteredList() {
1232
+ return Joi.object({
1233
+ _id: Joi.string().allow(""),
1234
+ username: Joi.string().allow(""),
1235
+ phone_numbers: Joi.array().items(UserPlatformModel.UserPhoneNumbers()),
1236
+ emails: Joi.array().items(UserPlatformModel.UserEmails()),
1237
+ gender: Joi.string().allow(""),
1238
+ active: Joi.boolean(),
1239
+ archive: Joi.boolean(),
1240
+ status: Joi.string().allow(""),
1241
+ attributes: Joi.array().items(UserPlatformModel.UserAttribute()),
1242
+ first_name: Joi.string().allow(""),
1243
+ last_name: Joi.string().allow(""),
1244
+ account_type: Joi.string().allow(""),
1245
+ profile_pic_url: Joi.string().allow(""),
1246
+ has_old_password_hash: Joi.boolean(),
1247
+ user_id: Joi.string().allow(""),
1248
+ application_id: Joi.string().allow(""),
1249
+ is_encrypted: Joi.boolean(),
1250
+ created_at: Joi.string().allow(""),
1251
+ updated_at: Joi.string().allow(""),
1252
+ });
1253
+ }
1254
+
986
1255
  /** @returns {CreateUserGroup} */
987
1256
  static CreateUserGroup() {
988
1257
  return Joi.object({
@@ -9,7 +9,7 @@ declare class Webhook {
9
9
  * @returns {Promise<WebhookPlatformModel.EventConfigResult>} - Success response
10
10
  * @name fetchAllEventConfigurations
11
11
  * @summary: List event configurations
12
- * @description: Retrieve all configurations for event handling. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/fetchAllEventConfigurations/).
12
+ * @description: Retrieve all configurations for event handling. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/fetchAllEventConfigurations/).
13
13
  */
14
14
  fetchAllEventConfigurations({ requestHeaders }?: any, { responseHeaders }?: object): Promise<WebhookPlatformModel.EventConfigResult>;
15
15
  /**
@@ -19,7 +19,7 @@ declare class Webhook {
19
19
  * @returns {Promise<WebhookPlatformModel.SubscriberDetails>} - Success response
20
20
  * @name getSubscriberById
21
21
  * @summary: Get a subscriber
22
- * @description: Retrieve a subscriber's details by their unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscriberById/).
22
+ * @description: Retrieve a subscriber's details by their unique identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/getSubscriberById/).
23
23
  */
24
24
  getSubscriberById({ subscriberId, requestHeaders }?: WebhookPlatformValidator.GetSubscriberByIdParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberDetails>;
25
25
  /**
@@ -29,7 +29,7 @@ declare class Webhook {
29
29
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigList>} - Success response
30
30
  * @name getSubscribersByCompany
31
31
  * @summary: List subscribers by company
32
- * @description: Retrieve subscribers associated with a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByCompany/).
32
+ * @description: Retrieve subscribers associated with a company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/getSubscribersByCompany/).
33
33
  */
34
34
  getSubscribersByCompany({ pageNo, pageSize, extensionId, requestHeaders }?: WebhookPlatformValidator.GetSubscribersByCompanyParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigList>;
35
35
  /**
@@ -39,7 +39,7 @@ declare class Webhook {
39
39
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigList>} - Success response
40
40
  * @name getSubscribersByExtensionId
41
41
  * @summary: List subscribers by extension ID
42
- * @description: Retrieve subscribers associated with a specific extension. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByExtensionId/).
42
+ * @description: Retrieve subscribers associated with a specific extension. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/getSubscribersByExtensionId/).
43
43
  */
44
44
  getSubscribersByExtensionId({ extensionId, pageNo, pageSize, requestHeaders }?: WebhookPlatformValidator.GetSubscribersByExtensionIdParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigList>;
45
45
  /**
@@ -49,7 +49,7 @@ declare class Webhook {
49
49
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigResult>} - Success response
50
50
  * @name registerSubscriberToEvent
51
51
  * @summary: Register subscriber to event
52
- * @description: Add a subscriber to receive events of a specific type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEvent/).
52
+ * @description: Add a subscriber to receive events of a specific type. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/registerSubscriberToEvent/).
53
53
  */
54
54
  registerSubscriberToEvent({ body, requestHeaders }?: WebhookPlatformValidator.RegisterSubscriberToEventParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResult>;
55
55
  /**
@@ -60,7 +60,7 @@ declare class Webhook {
60
60
  * @name registerSubscriberToEventV2
61
61
  * @summary: Register Subscriber.
62
62
  * @description: Register Subscriber.
63
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEventV2/).
63
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/registerSubscriberToEventV2/).
64
64
  */
65
65
  registerSubscriberToEventV2({ body, requestHeaders }?: WebhookPlatformValidator.RegisterSubscriberToEventV2Param, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResult>;
66
66
  /**
@@ -70,7 +70,7 @@ declare class Webhook {
70
70
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigResult>} - Success response
71
71
  * @name updateSubscriberConfig
72
72
  * @summary: Update a subscriber config
73
- * @description: Modify and update subscriber configuration settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberConfig/).
73
+ * @description: Modify and update subscriber configuration settings. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/updateSubscriberConfig/).
74
74
  */
75
75
  updateSubscriberConfig({ body, requestHeaders }?: WebhookPlatformValidator.UpdateSubscriberConfigParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResult>;
76
76
  /**
@@ -81,7 +81,7 @@ declare class Webhook {
81
81
  * @name updateSubscriberV2
82
82
  * @summary: Update Subscriber.
83
83
  * @description: Update Subscriber.
84
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberV2/).
84
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/updateSubscriberV2/).
85
85
  */
86
86
  updateSubscriberV2({ body, requestHeaders }?: WebhookPlatformValidator.UpdateSubscriberV2Param, { responseHeaders }?: object): Promise<WebhookPlatformModel.SubscriberConfigResult>;
87
87
  /**
@@ -93,7 +93,7 @@ declare class Webhook {
93
93
  * @name upsertSubscriberEvent
94
94
  * @summary: Register Subscriber.
95
95
  * @description: Register Subscriber.
96
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/upsertSubscriberEvent/).
96
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/upsertSubscriberEvent/).
97
97
  */
98
98
  upsertSubscriberEvent({ body, requestHeaders }?: WebhookPlatformValidator.UpsertSubscriberEventParam, { responseHeaders }?: object): Promise<WebhookPlatformModel.UpsertSubscriberConfigResult>;
99
99
  }
@@ -21,7 +21,7 @@ class Webhook {
21
21
  * @returns {Promise<WebhookPlatformModel.EventConfigResult>} - Success response
22
22
  * @name fetchAllEventConfigurations
23
23
  * @summary: List event configurations
24
- * @description: Retrieve all configurations for event handling. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/fetchAllEventConfigurations/).
24
+ * @description: Retrieve all configurations for event handling. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/fetchAllEventConfigurations/).
25
25
  */
26
26
  async fetchAllEventConfigurations(
27
27
  { requestHeaders } = { requestHeaders: {} },
@@ -98,7 +98,7 @@ class Webhook {
98
98
  * @returns {Promise<WebhookPlatformModel.SubscriberDetails>} - Success response
99
99
  * @name getSubscriberById
100
100
  * @summary: Get a subscriber
101
- * @description: Retrieve a subscriber's details by their unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscriberById/).
101
+ * @description: Retrieve a subscriber's details by their unique identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/getSubscriberById/).
102
102
  */
103
103
  async getSubscriberById(
104
104
  { subscriberId, requestHeaders } = { requestHeaders: {} },
@@ -177,7 +177,7 @@ class Webhook {
177
177
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigList>} - Success response
178
178
  * @name getSubscribersByCompany
179
179
  * @summary: List subscribers by company
180
- * @description: Retrieve subscribers associated with a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByCompany/).
180
+ * @description: Retrieve subscribers associated with a company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/getSubscribersByCompany/).
181
181
  */
182
182
  async getSubscribersByCompany(
183
183
  { pageNo, pageSize, extensionId, requestHeaders } = { requestHeaders: {} },
@@ -265,7 +265,7 @@ class Webhook {
265
265
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigList>} - Success response
266
266
  * @name getSubscribersByExtensionId
267
267
  * @summary: List subscribers by extension ID
268
- * @description: Retrieve subscribers associated with a specific extension. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/getSubscribersByExtensionId/).
268
+ * @description: Retrieve subscribers associated with a specific extension. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/getSubscribersByExtensionId/).
269
269
  */
270
270
  async getSubscribersByExtensionId(
271
271
  { extensionId, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
@@ -352,7 +352,7 @@ class Webhook {
352
352
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigResult>} - Success response
353
353
  * @name registerSubscriberToEvent
354
354
  * @summary: Register subscriber to event
355
- * @description: Add a subscriber to receive events of a specific type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEvent/).
355
+ * @description: Add a subscriber to receive events of a specific type. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/registerSubscriberToEvent/).
356
356
  */
357
357
  async registerSubscriberToEvent(
358
358
  { body, requestHeaders } = { requestHeaders: {} },
@@ -434,7 +434,7 @@ class Webhook {
434
434
  * @name registerSubscriberToEventV2
435
435
  * @summary: Register Subscriber.
436
436
  * @description: Register Subscriber.
437
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/registerSubscriberToEventV2/).
437
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/registerSubscriberToEventV2/).
438
438
  */
439
439
  async registerSubscriberToEventV2(
440
440
  { body, requestHeaders } = { requestHeaders: {} },
@@ -515,7 +515,7 @@ class Webhook {
515
515
  * @returns {Promise<WebhookPlatformModel.SubscriberConfigResult>} - Success response
516
516
  * @name updateSubscriberConfig
517
517
  * @summary: Update a subscriber config
518
- * @description: Modify and update subscriber configuration settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberConfig/).
518
+ * @description: Modify and update subscriber configuration settings. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/updateSubscriberConfig/).
519
519
  */
520
520
  async updateSubscriberConfig(
521
521
  { body, requestHeaders } = { requestHeaders: {} },
@@ -597,7 +597,7 @@ class Webhook {
597
597
  * @name updateSubscriberV2
598
598
  * @summary: Update Subscriber.
599
599
  * @description: Update Subscriber.
600
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/updateSubscriberV2/).
600
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/updateSubscriberV2/).
601
601
  */
602
602
  async updateSubscriberV2(
603
603
  { body, requestHeaders } = { requestHeaders: {} },
@@ -678,7 +678,7 @@ class Webhook {
678
678
  * @name upsertSubscriberEvent
679
679
  * @summary: Register Subscriber.
680
680
  * @description: Register Subscriber.
681
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/webhook/upsertSubscriberEvent/).
681
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/webhook/upsertSubscriberEvent/).
682
682
  */
683
683
  async upsertSubscriberEvent(
684
684
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1,7 +1,7 @@
1
1
  export = WebhookPlatformModel;
2
2
  /**
3
3
  * @typedef Page
4
- * @property {number} [item_total] - The total number of items on the page.
4
+ * @property {number} [item_total] - The total number of all items across all pages.
5
5
  * @property {string} [next_id] - The identifier for the next page.
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.
@@ -109,6 +109,7 @@ export = WebhookPlatformModel;
109
109
  * @property {string} [name] - The name of the subscriber.
110
110
  * @property {string} [provider] - The provider of the subscriber.
111
111
  * @property {string} [webhook_url] - The URL for the subscriber's webhook.
112
+ * @property {string} [source] - Source that subscriber belongs to.
112
113
  * @property {AssociationResp} [association]
113
114
  * @property {Object} [custom_headers] - Custom headers for the subscriber.
114
115
  * @property {SubscriberStatus} [status]
@@ -195,6 +196,7 @@ export = WebhookPlatformModel;
195
196
  * @property {AssociationResp} [association]
196
197
  * @property {Object} [custom_headers] - Custom headers for the subscriber.
197
198
  * @property {SubscriberStatus} [status]
199
+ * @property {string} [source] - Source that subscriber belongs to.
198
200
  * @property {string} [email_id] - The email ID associated with the subscriber.
199
201
  * @property {string} [updated_on] - The date and time when the subscriber was
200
202
  * last updated.
@@ -321,7 +323,7 @@ declare namespace WebhookPlatformModel {
321
323
  declare function Page(): Page;
322
324
  type Page = {
323
325
  /**
324
- * - The total number of items on the page.
326
+ * - The total number of all items across all pages.
325
327
  */
326
328
  item_total?: number;
327
329
  /**
@@ -590,6 +592,10 @@ type SubscriberDetails = {
590
592
  * - The URL for the subscriber's webhook.
591
593
  */
592
594
  webhook_url?: string;
595
+ /**
596
+ * - Source that subscriber belongs to.
597
+ */
598
+ source?: string;
593
599
  association?: AssociationResp;
594
600
  /**
595
601
  * - Custom headers for the subscriber.
@@ -820,6 +826,10 @@ type SubscriberConfigResult = {
820
826
  */
821
827
  custom_headers?: any;
822
828
  status?: SubscriberStatus;
829
+ /**
830
+ * - Source that subscriber belongs to.
831
+ */
832
+ source?: string;
823
833
  /**
824
834
  * - The email ID associated with the subscriber.
825
835
  */
@@ -2,7 +2,7 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef Page
5
- * @property {number} [item_total] - The total number of items on the page.
5
+ * @property {number} [item_total] - The total number of all items across all pages.
6
6
  * @property {string} [next_id] - The identifier for the next page.
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.
@@ -119,6 +119,7 @@ const Joi = require("joi");
119
119
  * @property {string} [name] - The name of the subscriber.
120
120
  * @property {string} [provider] - The provider of the subscriber.
121
121
  * @property {string} [webhook_url] - The URL for the subscriber's webhook.
122
+ * @property {string} [source] - Source that subscriber belongs to.
122
123
  * @property {AssociationResp} [association]
123
124
  * @property {Object} [custom_headers] - Custom headers for the subscriber.
124
125
  * @property {SubscriberStatus} [status]
@@ -211,6 +212,7 @@ const Joi = require("joi");
211
212
  * @property {AssociationResp} [association]
212
213
  * @property {Object} [custom_headers] - Custom headers for the subscriber.
213
214
  * @property {SubscriberStatus} [status]
215
+ * @property {string} [source] - Source that subscriber belongs to.
214
216
  * @property {string} [email_id] - The email ID associated with the subscriber.
215
217
  * @property {string} [updated_on] - The date and time when the subscriber was
216
218
  * last updated.
@@ -458,6 +460,7 @@ class WebhookPlatformModel {
458
460
  name: Joi.string().allow(""),
459
461
  provider: Joi.string().allow(""),
460
462
  webhook_url: Joi.string().allow(""),
463
+ source: Joi.string().allow("").allow(null),
461
464
  association: WebhookPlatformModel.AssociationResp(),
462
465
  custom_headers: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
463
466
  status: WebhookPlatformModel.SubscriberStatus(),
@@ -557,6 +560,7 @@ class WebhookPlatformModel {
557
560
  association: WebhookPlatformModel.AssociationResp(),
558
561
  custom_headers: Joi.object().pattern(/\S/, Joi.any()),
559
562
  status: WebhookPlatformModel.SubscriberStatus(),
563
+ source: Joi.string().allow("").allow(null),
560
564
  email_id: Joi.string().allow(""),
561
565
  updated_on: Joi.string().allow(""),
562
566
  created_on: Joi.string().allow(""),
@@ -14,7 +14,7 @@ declare class Catalog {
14
14
  * @returns {Promise<CatalogPublicModel.TaxonomyResponseSchema>} - Success response
15
15
  * @name getTaxonomyByLevel
16
16
  * @summary: Get Taxonomy Information by Level
17
- * @description: Get Taxonomy Details for a given level - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/catalog/getTaxonomyByLevel/).
17
+ * @description: Get Taxonomy Details for a given level - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/public/catalog/getTaxonomyByLevel/).
18
18
  */
19
19
  getTaxonomyByLevel({ level, l0Slug, l1Slug, l2Slug, l3Slug, limit, requestHeaders }?: CatalogPublicValidator.GetTaxonomyByLevelParam, { responseHeaders }?: object, ...args: any[]): Promise<CatalogPublicModel.TaxonomyResponseSchema>;
20
20
  }