@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-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 (298) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
  6. package/sdk/application/Cart/CartApplicationClient.js +270 -139
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +197 -36
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  20. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  26. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  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 +14 -14
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  32. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  33. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  34. package/sdk/application/User/UserApplicationClient.js +9 -57
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  37. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  41. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  42. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  43. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  44. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  45. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  46. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  47. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  48. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  56. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  58. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  59. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  66. package/sdk/partner/PartnerClient.d.ts +6 -0
  67. package/sdk/partner/PartnerClient.js +9 -0
  68. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  69. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  70. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  71. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  72. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  73. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  74. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  75. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  76. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  77. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  78. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  79. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  80. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  81. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  82. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
  84. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  85. package/sdk/partner/index.d.ts +3 -0
  86. package/sdk/partner/index.js +6 -0
  87. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  88. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  89. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  90. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  95. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  97. package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
  98. package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
  99. package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
  100. package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
  102. package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
  104. package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
  105. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  106. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  107. package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
  108. package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
  111. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
  112. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
  113. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
  114. package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
  115. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
  116. package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
  117. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
  118. package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
  119. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  120. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  121. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  122. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
  125. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  126. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  127. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  128. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
  131. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  132. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  137. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  138. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  141. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  142. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  143. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  144. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  145. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
  146. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
  147. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  148. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  149. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
  150. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
  151. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  152. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  153. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  154. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  155. package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
  156. package/sdk/platform/Content/ContentPlatformModel.js +893 -582
  157. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  158. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  159. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  160. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  161. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  162. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  163. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  164. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  167. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  168. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  169. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  170. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  171. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  172. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  173. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  174. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  175. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  176. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  177. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  178. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  179. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  180. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  181. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  182. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  183. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  184. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  185. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  186. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  187. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  188. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  189. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  190. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  191. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  192. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  193. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  194. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  195. package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
  196. package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
  197. package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
  198. package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
  199. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  200. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  201. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  202. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  203. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  204. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  205. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  206. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  207. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  208. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  209. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  210. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  211. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
  212. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
  213. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  214. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  215. package/sdk/platform/PlatformClient.d.ts +2 -0
  216. package/sdk/platform/PlatformClient.js +4 -0
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  220. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  221. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  222. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
  231. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
  232. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
  233. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  234. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  235. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  236. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  237. package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
  238. package/sdk/platform/Share/SharePlatformModel.js +3 -43
  239. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
  240. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
  241. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
  242. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
  243. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  244. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  246. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  247. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  248. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  249. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
  253. package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
  254. package/sdk/platform/User/UserPlatformModel.js +204 -65
  255. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  256. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  257. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
  259. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  260. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  261. package/sdk/platform/index.d.ts +1 -0
  262. package/sdk/platform/index.js +2 -0
  263. package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
  264. package/sdk/public/Billing/BillingPublicClient.js +397 -0
  265. package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
  266. package/sdk/public/Billing/BillingPublicModel.js +560 -0
  267. package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
  268. package/sdk/public/Billing/BillingPublicValidator.js +50 -0
  269. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  270. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  271. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  272. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  273. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  274. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  275. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  276. package/sdk/public/Content/ContentPublicClient.js +183 -0
  277. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  278. package/sdk/public/Content/ContentPublicModel.js +47 -1
  279. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  280. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  281. package/sdk/public/PublicClient.d.ts +2 -2
  282. package/sdk/public/PublicClient.js +2 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  286. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/public/index.d.ts +1 -1
  290. package/sdk/public/index.js +1 -1
  291. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  292. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  293. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  294. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  295. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  296. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  297. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  298. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -1,329 +1,370 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef Page
5
- * @property {number} [item_total] - The total number of items on the page.
6
- * @property {string} [next_id] - The identifier for the next page.
7
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
8
- * @property {boolean} [has_next] - Indicates whether there is a next page.
9
- * @property {number} [current] - The current page number.
10
- * @property {string} type - The type of the page, such as 'PageType'.
11
- * @property {number} [size] - The number of items per page.
4
+ * @typedef Event
5
+ * @property {string} [event_name]
6
+ * @property {string} [event_type]
7
+ * @property {string} [event_category]
8
+ * @property {string} [version]
12
9
  */
13
10
 
14
11
  /**
15
- * @typedef BroadcasterConfig
16
- * @property {string} [topic] - The name of the topic for the broadcaster configuration.
17
- * @property {string} [queue] - The name of the queue for the broadcaster configuration.
18
- * @property {string} [event_bridge_name] - The name of the event bridge
19
- * associated with the broadcaster.
20
- * @property {string} [workflow_name] - The name of the workflow related to the
21
- * broadcaster.
22
- * @property {string} [account_id] - The account ID associated with the broadcaster.
23
- * @property {string} [detail_type] - The type of detail for the broadcaster
24
- * configuration.
12
+ * @typedef EventProcessRequest
13
+ * @property {string} [search_text]
14
+ * @property {string} end_date
15
+ * @property {string} start_date
16
+ * @property {number[]} [subscriber_ids]
17
+ * @property {string} [status]
18
+ * @property {Event[]} [event]
25
19
  */
26
20
 
27
21
  /**
28
- * @typedef SubscriberEventMapping
29
- * @property {number} [id] - The unique identifier for the subscriber event mapping.
30
- * @property {number} [event_id] - The ID of the event associated with the subscriber.
31
- * @property {number} [subscriber_id] - The ID of the subscriber.
32
- * @property {BroadcasterConfig} [broadcaster_config]
33
- * @property {string} [created_on] - The date and time when the subscriber event
34
- * mapping was created.
22
+ * @typedef DownloadReportResponse
23
+ * @property {string} [file_name]
35
24
  */
36
25
 
37
26
  /**
38
- * @typedef EventConfig
39
- * @property {number} [id] - The unique identifier for the event configuration.
40
- * @property {string} [type] - The type of event configuration, which may be null.
41
- * @property {string} [event_name] - The name of the event.
42
- * @property {string} [event_type] - The type of the event.
43
- * @property {string} [event_category] - The category of the event.
44
- * @property {string} [modified_by] - The identifier of the user who last
45
- * modified the event configuration.
46
- * @property {SubscriberEventMapping} [subscriber_event_mapping]
47
- * @property {Object} [event_schema] - The schema for the event, allowing for
48
- * additional properties and may be null.
49
- * @property {string} [group] - The group associated with the event
50
- * configuration, which may be null.
51
- * @property {string} [version] - The version of the event configuration.
52
- * @property {string} [display_name] - The display name of the event configuration.
53
- * @property {string} [description] - A description of the event configuration,
54
- * which may be null.
55
- * @property {string} [created_on] - The date and time when the event
56
- * configuration was created.
57
- * @property {string} [updated_on] - The date and time when the event
58
- * configuration was last updated.
27
+ * @typedef EventProcessReports
28
+ * @property {EventProcessReportObject[]} [rows]
29
+ * @property {Page} [page]
59
30
  */
60
31
 
61
32
  /**
62
- * @typedef EventConfigResult
63
- * @property {EventConfig[]} [event_configs] - List of event configurations.
33
+ * @typedef EventProcessReportObject
34
+ * @property {string} [event_name] - The name of the processed event.
35
+ * @property {number} [response_code] - The response code of the event.
36
+ * @property {string} [response_message] - The response message of the event.
37
+ * @property {string} [data] - The data associated with the event.
38
+ * @property {number} [attempt] - The attempt number of the event.
39
+ * @property {number} [last_attempted_on] - The timestamp of the last attempted event.
40
+ * @property {string} [status] - The status of the event (e.g., "FAILED").
41
+ * @property {string} [name] - The name of the event.
42
+ * @property {string} [webhook_url] - The webhook URL associated with the event.
43
+ * @property {number} [response_time] - The response time of the event.
44
+ * @property {string} [message_id]
45
+ * @property {string} [event_trace_id]
64
46
  */
65
47
 
66
48
  /**
67
- * @typedef Association
68
- * @property {string[]} [application_id] - A list of application IDs associated
69
- * with the association.
70
- * @property {string} [extension_id] - The extension ID associated with the association.
71
- * @property {string} [criteria] - The criteria for the association, such as
72
- * "ALL", "EMPTY", or "SPECIFIC-EVENTS".
49
+ * @typedef Page
50
+ * @property {number} [item_total] - The total number of items on the page.
51
+ * @property {string} [next_id] - The identifier for the next page.
52
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
53
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
54
+ * @property {number} [current] - The current page number.
55
+ * @property {string} type - The type of the page, such as 'PageType'.
56
+ * @property {number} [size] - The number of items per page.
57
+ * @property {number} [total] - Total number of items.
73
58
  */
74
59
 
75
60
  /**
76
- * @typedef AssociationResp
77
- * @property {number} [company_id] - The ID of the company associated with the response.
78
- * @property {string[]} [application_id] - A list of application IDs associated
79
- * with the response.
80
- * @property {string} [extension_id] - The extension ID associated with the response.
81
- * @property {string} [criteria] - The criteria for the response, such as "ALL",
82
- * "EMPTY", or "SPECIFIC-EVENTS".
61
+ * @typedef PingWebhook
62
+ * @property {string} webhook_url - The URL of the subscriber's webhook to ping.
63
+ * @property {Object} [auth_meta] - Authentication metadata (if required by the
64
+ * subscriber).
65
+ * @property {Object} [custom_headers] - Custom headers to include in the ping request.
83
66
  */
84
67
 
85
68
  /**
86
- * @typedef AuthMeta
87
- * @property {string} [type] - The type of authentication method used.
88
- * @property {string} [secret] - The secret key or token used for authentication.
69
+ * @typedef PingWebhookResponse
70
+ * @property {string} [status] - The status of the ping (e.g., "SUCCESS").
71
+ * @property {string} [message] - An optional message related to the ping.
72
+ * @property {number} [code] - The HTTP status code of the ping response (e.g., 200).
89
73
  */
90
74
 
91
75
  /**
92
- * @typedef SubscriberDetails
93
- * @property {number} [id] - The unique identifier of the subscriber.
94
- * @property {string} [modified_by] - The identifier of the user who last
95
- * modified the subscriber details.
96
- * @property {string} [name] - The name of the subscriber.
97
- * @property {string} [provider] - The provider of the subscriber.
98
- * @property {string} [webhook_url] - The URL for the subscriber's webhook.
99
- * @property {AssociationResp} [association]
100
- * @property {Object} [custom_headers] - Custom headers for the subscriber.
101
- * @property {SubscriberStatus} [status]
102
- * @property {string} [email_id] - The email ID associated with the subscriber.
103
- * @property {string} [updated_on] - The date and time when the subscriber
104
- * details were last updated.
105
- * @property {string} [created_on] - The date and time when the subscriber was created.
106
- * @property {string} [type] - The type of subscriber, which can either be passed as null.
107
- * @property {AuthMeta} [auth_meta]
108
- * @property {EventConfig[]} [event_configs] - List of event configurations.
76
+ * @typedef SubscriberEventMapping
77
+ * @property {number} [id]
78
+ * @property {number} [event_id]
79
+ * @property {number} [subscriber_id]
80
+ * @property {string} [topic]
81
+ * @property {string} [created_on]
109
82
  */
110
83
 
111
84
  /**
112
- * @typedef Events
113
- * @property {string} [slug] - The slug or identifier for the event.
114
- * @property {string} [topic] - The topic associated with the event.
115
- * @property {string} [queue] - The queue associated with the event in case of
116
- * provider as Pub/Sub.
117
- * @property {string} [event_bridge_name] - The name of the event bridge
118
- * associated with the event in case of provider as AWS event bridge.
119
- * @property {string} [workflow_name] - The name of the workflow related to the
120
- * event in case of provider as temporal.
121
- * @property {string} [detail_type] - The type of detail for the event.
85
+ * @typedef EventConfig
86
+ * @property {number} [id]
87
+ * @property {string} [event_name]
88
+ * @property {string} [event_type]
89
+ * @property {string} [event_category]
90
+ * @property {SubscriberEventMapping} [subscriber_event_mapping]
91
+ * @property {Object} [event_schema]
92
+ * @property {string} [group]
93
+ * @property {string} [version]
94
+ * @property {string} [display_name]
95
+ * @property {string} [description]
96
+ * @property {string} [created_on]
97
+ * @property {string} [updated_on]
122
98
  */
123
99
 
124
100
  /**
125
- * @typedef SubscriberConfigPostRequestV2
126
- * @property {string} name - The name of the subscriber.
127
- * @property {string} [type] - The type of the subscriber, which may be null.
128
- * @property {string} [webhook_url] - The URL for the subscriber's webhook.
129
- * @property {string} provider - The provider of the subscriber.
130
- * @property {Association} association
131
- * @property {Object} [custom_headers] - Custom headers for the subscriber.
132
- * @property {SubscriberStatus} status
133
- * @property {string} email_id - The email ID associated with the subscriber.
134
- * @property {AuthMeta} [auth_meta]
135
- * @property {Events[]} events - The list of events associated with the subscriber.
101
+ * @typedef EventConfigResponse
102
+ * @property {EventConfig[]} [event_configs]
136
103
  */
137
104
 
138
105
  /**
139
- * @typedef SubscriberConfigUpdateRequestV2
140
- * @property {number} id - The unique identifier of the subscriber to be updated.
141
- * @property {string} [name] - The name of the subscriber.
142
- * @property {string} [type] - The type of the subscriber, which may be null.
143
- * @property {string} [webhook_url] - The URL for the subscriber's webhook.
144
- * @property {string} provider - The provider of the subscriber.
145
- * @property {Association} [association]
146
- * @property {Object} [custom_headers] - Custom headers for the subscriber.
147
- * @property {SubscriberStatus} status
148
- * @property {string} [email_id] - The email ID associated with the subscriber.
149
- * @property {AuthMeta} [auth_meta]
150
- * @property {Events[]} [events] - The list of events associated with the subscriber.
106
+ * @typedef ReportFiltersPayload
107
+ * @property {number[]} subscriber_ids - An array of subscriber IDs for
108
+ * filtering filters (optional).
151
109
  */
152
110
 
153
111
  /**
154
- * @typedef SubscriberConfigPost
155
- * @property {string} name - The name of the subscriber.
156
- * @property {string} [type] - The type of the subscriber, which can be null.
157
- * @property {string} webhook_url - The URL for the subscriber's webhook.
158
- * @property {Association} association
159
- * @property {Object} [custom_headers] - Custom headers for the subscriber.
160
- * @property {SubscriberStatus} status
161
- * @property {string} email_id - The email ID associated with the subscriber.
162
- * @property {AuthMeta} [auth_meta]
163
- * @property {number[]} event_id - The list of event IDs associated with the subscriber.
112
+ * @typedef ReportFilterResponse
113
+ * @property {string} [filter_name] - The name of the filter.
114
+ * @property {Object[]} [values]
164
115
  */
165
116
 
166
117
  /**
167
- * @typedef SubscriberConfigUpdate
168
- * @property {number} id - The unique identifier of the subscriber to be updated.
169
- * @property {string} [name] - The name of the subscriber.
170
- * @property {string} [type] - The type of the subscriber, which can be null.
171
- * @property {string} [webhook_url] - The URL for the subscriber's webhook.
172
- * @property {Association} [association]
173
- * @property {Object} [custom_headers] - Custom headers for the subscriber.
174
- * @property {SubscriberStatus} [status]
175
- * @property {string} [email_id] - The email ID associated with the subscriber.
176
- * @property {AuthMeta} [auth_meta]
177
- * @property {number[]} event_id - The list of event IDs associated with the subscriber.
118
+ * @typedef HistoryPayload
119
+ * @property {string} type - The type of history report (e.g., "platform").
120
+ * @property {number} [page_no] - The page number of the history report.
121
+ * @property {number} [page_size] - The number of records per page.
178
122
  */
179
123
 
180
124
  /**
181
- * @typedef SubscriberConfigResult
182
- * @property {number} [id] - The unique identifier of the subscriber configuration.
183
- * @property {string} [modified_by] - The identifier of the user who last
184
- * modified the subscriber configuration.
185
- * @property {string} [name] - The name of the subscriber.
186
- * @property {string} [webhook_url] - The URL for the subscriber's webhook.
187
- * @property {string} [provider] - The provider of the subscriber.
188
- * @property {AssociationResp} [association]
189
- * @property {Object} [custom_headers] - Custom headers for the subscriber.
190
- * @property {SubscriberStatus} [status]
191
- * @property {string} [email_id] - The email ID associated with the subscriber.
192
- * @property {string} [updated_on] - The date and time when the subscriber was
193
- * last updated.
194
- * @property {string} [created_on] - The date and time when the subscriber was created.
195
- * @property {string} [type] - The type of the subscriber, which can be null.
196
- * @property {AuthMeta} [auth_meta]
197
- * @property {number[]} [event_id] - The list of event IDs associated with the subscriber.
125
+ * @typedef HistoryFilters
126
+ * @property {string[]} [events]
127
+ * @property {string} [search_text]
128
+ * @property {string} [status] - The status of the history report (e.g., "FAILED").
129
+ * @property {string} [end_date] - The end date and time of the history report.
130
+ * @property {string} [start_date] - The start date and time of the history report.
131
+ * @property {number[]} [subscribers] - An array of subscriber IDs associated
132
+ * with the history report.
133
+ * @property {string[]} [webhook_type] - An array of webhook type to identify
134
+ * thetype of subscriber i.e (KAFKA or REST).
198
135
  */
199
136
 
200
137
  /**
201
- * @typedef SubscriberConfigList
202
- * @property {SubscriberDetails[]} [items] - List of subscriber details.
203
- * @property {Page} [page]
138
+ * @typedef Url
139
+ * @property {string} [url] - The URL of the uploaded report file.
140
+ * @property {string} [name] - The name of the uploaded report file.
204
141
  */
205
142
 
206
143
  /**
207
- * @typedef RestEventData
208
- * @property {string} event_category - The category of the event.
209
- * @property {string} event_name - The name of the event.
210
- * @property {string} event_type - The type of the event.
211
- * @property {number} version - The version number of the event.
144
+ * @typedef CdnObject
145
+ * @property {Url[]} [urls]
212
146
  */
213
147
 
214
148
  /**
215
- * @typedef RestConfig
216
- * @property {string} webhook_url - The URL for the webhook.
217
- * @property {string} type - The type of the configuration.
218
- * @property {Object} [custom_headers] - Custom headers for the configuration.
219
- * @property {AuthMeta} [auth_meta]
220
- * @property {RestEventData[]} events - List of event data for configuration.
149
+ * @typedef UploadServiceObject
150
+ * @property {CdnObject} [cdn]
221
151
  */
222
152
 
223
153
  /**
224
- * @typedef QueueEventData
225
- * @property {string} event_category - The category of the event.
226
- * @property {string} event_name - The name of the event.
227
- * @property {string} event_type - The type of the event.
228
- * @property {number} version - The version number of the event.
229
- * @property {string} topic - The topic associated with the event.
154
+ * @typedef HistoryAssociation
155
+ * @property {number} [company_id]
156
+ * @property {number[]} [subscriber_ids]
230
157
  */
231
158
 
232
159
  /**
233
- * @typedef KafkaConfig
234
- * @property {string} [type] - Type of Kafka configuration (optional).
235
- * @property {QueueEventData[]} events - List of event data for configuration.
160
+ * @typedef HistoryItems
161
+ * @property {number} [id] - The ID of the history report.
162
+ * @property {HistoryAssociation} [association]
163
+ * @property {HistoryFilters} [filters]
164
+ * @property {string} [filename] - The filename of the history report.
165
+ * @property {string} [status] - The status of the history report (e.g., "COMPLETED").
166
+ * @property {UploadServiceObject} [upload_service_response]
167
+ * @property {string} [created_on] - The date and time when the history report
168
+ * was created.
169
+ * @property {string} [updated_on] - The date and time when the history report
170
+ * was last updated.
171
+ * @property {string} [message] - A message related to the history report.
236
172
  */
237
173
 
238
174
  /**
239
- * @typedef PubSubConfig
240
- * @property {string} [type] - Type of Pub/Sub configuration (optional).
241
- * @property {QueueEventData[]} events - List of event data for configuration.
175
+ * @typedef HistoryResponse
176
+ * @property {HistoryItems[]} [items]
177
+ * @property {Page} [page]
242
178
  */
243
179
 
244
180
  /**
245
- * @typedef TemporalEventData
246
- * @property {string} event_category - The category of the event.
247
- * @property {string} event_name - The name of the event.
248
- * @property {string} event_type - The type of the event.
249
- * @property {number} version - The version number of the event.
250
- * @property {string} [queue] - The queue associated with the event.
251
- * @property {string} [workflow_name] - The workflow name related to the event.
181
+ * @typedef CancelResponse
182
+ * @property {string} [message] - The HTTP status code of the response (e.g., 200).
252
183
  */
253
184
 
254
185
  /**
255
- * @typedef TemporalConfig
256
- * @property {string} [type] - Type of Temporal configuration (optional).
257
- * @property {TemporalEventData[]} events - List of event data for configuration.
186
+ * @typedef Association
187
+ * @property {string[]} [application_id]
188
+ * @property {string} [extension_id]
189
+ * @property {string} [criteria]
258
190
  */
259
191
 
260
192
  /**
261
- * @typedef SqsEventData
262
- * @property {string} event_category - The category of the event.
263
- * @property {string} event_name - The name of the event.
264
- * @property {string} event_type - The type of the event.
265
- * @property {number} version - The version number of the event.
266
- * @property {string} [queue] - The queue name associated with the event in SQS.
193
+ * @typedef AssociationResp
194
+ * @property {number} [company_id]
195
+ * @property {string[]} [application_id]
196
+ * @property {string} [extension_id]
197
+ * @property {string} [criteria]
267
198
  */
268
199
 
269
200
  /**
270
- * @typedef SqsConfig
271
- * @property {string} [type] - Type of SQS configuration (optional).
272
- * @property {SqsEventData[]} events - List of event data for configuration.
201
+ * @typedef AuthMeta
202
+ * @property {string} [type]
203
+ * @property {string} [secret]
273
204
  */
274
205
 
275
206
  /**
276
- * @typedef EventBridgeData
277
- * @property {string} event_category - The category of the event.
278
- * @property {string} event_name - The name of the event.
279
- * @property {string} event_type - The type of the event.
280
- * @property {number} version - The version number of the event.
281
- * @property {string} [event_bridge_name] - The name of the event bridge related
282
- * to the event.
207
+ * @typedef SubscriberResponse
208
+ * @property {number} [id]
209
+ * @property {string} [modified_by]
210
+ * @property {string} [name]
211
+ * @property {string} [provider]
212
+ * @property {string} [webhook_url]
213
+ * @property {AssociationResp} [association]
214
+ * @property {Object} [custom_headers]
215
+ * @property {SubscriberStatus} [status]
216
+ * @property {string} [email_id]
217
+ * @property {string} [updated_on]
218
+ * @property {string} [created_on]
219
+ * @property {string} [type]
220
+ * @property {AuthMeta} [auth_meta]
221
+ * @property {EventConfig[]} [event_configs]
283
222
  */
284
223
 
285
224
  /**
286
- * @typedef EventBridgeConfig
287
- * @property {string} [type] - Type of event configuration (optional).
288
- * @property {EventBridgeData[]} events - List of event data for EventBridge
289
- * configuration.
225
+ * @typedef Events
226
+ * @property {string} [slug]
227
+ * @property {string} [topic]
290
228
  */
291
229
 
292
230
  /**
293
- * @typedef EventMapBody
294
- * @property {RestConfig} [rest]
295
- * @property {KafkaConfig} [kafka]
296
- * @property {PubSubConfig} [pub_sub]
297
- * @property {TemporalConfig} [temporal]
298
- * @property {SqsConfig} [sqs]
299
- * @property {EventBridgeConfig} [event_bridge]
231
+ * @typedef SubscriberConfigPostRequestV2
232
+ * @property {string} name
233
+ * @property {string} [type]
234
+ * @property {string} [webhook_url]
235
+ * @property {string} provider
236
+ * @property {Association} association
237
+ * @property {Object} [custom_headers]
238
+ * @property {SubscriberStatus} status
239
+ * @property {string} email_id
240
+ * @property {AuthMeta} [auth_meta]
241
+ * @property {Events[]} events
300
242
  */
301
243
 
302
244
  /**
303
- * @typedef WebhookConfig
304
- * @property {string} [notification_email] - The email address for notifications.
305
- * @property {string} [name] - The name of the webhook configuration.
306
- * @property {string} [status] - The status of the webhook (e.g., active or inactive).
245
+ * @typedef SubscriberConfigUpdateRequestV2
246
+ * @property {number} id
247
+ * @property {string} [name]
248
+ * @property {string} [type]
249
+ * @property {string} [webhook_url]
250
+ * @property {string} provider
251
+ * @property {Association} [association]
252
+ * @property {Object} [custom_headers]
253
+ * @property {SubscriberStatus} status
254
+ * @property {string} [email_id]
255
+ * @property {AuthMeta} [auth_meta]
256
+ * @property {Events[]} [events]
257
+ */
258
+
259
+ /**
260
+ * @typedef SubscriberConfigPost
261
+ * @property {string} name
262
+ * @property {string} [type]
263
+ * @property {string} webhook_url
264
+ * @property {Association} association
265
+ * @property {Object} [custom_headers]
266
+ * @property {SubscriberStatus} status
267
+ * @property {string} email_id
268
+ * @property {AuthMeta} [auth_meta]
269
+ * @property {number[]} event_id
270
+ */
271
+
272
+ /**
273
+ * @typedef SubscriberConfigUpdate
274
+ * @property {number} id
275
+ * @property {string} [name]
276
+ * @property {string} [type]
277
+ * @property {string} [webhook_url]
307
278
  * @property {Association} [association]
308
- * @property {EventMapBody} [event_map]
279
+ * @property {Object} [custom_headers]
280
+ * @property {SubscriberStatus} [status]
281
+ * @property {string} [email_id]
282
+ * @property {AuthMeta} [auth_meta]
283
+ * @property {number[]} event_id
309
284
  */
310
285
 
311
286
  /**
312
- * @typedef UpsertSubscriberConfig
313
- * @property {WebhookConfig} webhook_config
287
+ * @typedef SubscriberConfigResponse
288
+ * @property {number} [id]
289
+ * @property {string} [modified_by]
290
+ * @property {string} [name]
291
+ * @property {string} [webhook_url]
292
+ * @property {string} [provider]
293
+ * @property {AssociationResp} [association]
294
+ * @property {Object} [custom_headers]
295
+ * @property {SubscriberStatus} [status]
296
+ * @property {string} [email_id]
297
+ * @property {string} [updated_on]
298
+ * @property {string} [created_on]
299
+ * @property {string} [type]
300
+ * @property {AuthMeta} [auth_meta]
301
+ * @property {number[]} [event_id]
314
302
  */
315
303
 
316
304
  /**
317
- * @typedef UpsertSubscriberConfigResult
318
- * @property {boolean} [status] - The status of the upsert operation (e.g.,
319
- * success or failure).
320
- * @property {string} [message] - A message providing details about the upsert
321
- * operation result.
305
+ * @typedef SubscriberConfigList
306
+ * @property {SubscriberResponse[]} [items]
307
+ * @property {Page} [page]
322
308
  */
323
309
 
324
310
  /** @typedef {"active" | "inactive"} SubscriberStatus */
325
311
 
326
312
  class WebhookPlatformModel {
313
+ /** @returns {Event} */
314
+ static Event() {
315
+ return Joi.object({
316
+ event_name: Joi.string().allow(""),
317
+ event_type: Joi.string().allow(""),
318
+ event_category: Joi.string().allow(""),
319
+ version: Joi.string().allow(""),
320
+ });
321
+ }
322
+
323
+ /** @returns {EventProcessRequest} */
324
+ static EventProcessRequest() {
325
+ return Joi.object({
326
+ search_text: Joi.string().allow(""),
327
+ end_date: Joi.string().allow("").required(),
328
+ start_date: Joi.string().allow("").required(),
329
+ subscriber_ids: Joi.array().items(Joi.number()),
330
+ status: Joi.string().allow(""),
331
+ event: Joi.array().items(WebhookPlatformModel.Event()),
332
+ });
333
+ }
334
+
335
+ /** @returns {DownloadReportResponse} */
336
+ static DownloadReportResponse() {
337
+ return Joi.object({
338
+ file_name: Joi.string().allow(""),
339
+ });
340
+ }
341
+
342
+ /** @returns {EventProcessReports} */
343
+ static EventProcessReports() {
344
+ return Joi.object({
345
+ rows: Joi.array().items(WebhookPlatformModel.EventProcessReportObject()),
346
+ page: WebhookPlatformModel.Page(),
347
+ });
348
+ }
349
+
350
+ /** @returns {EventProcessReportObject} */
351
+ static EventProcessReportObject() {
352
+ return Joi.object({
353
+ event_name: Joi.string().allow(""),
354
+ response_code: Joi.number(),
355
+ response_message: Joi.string().allow(""),
356
+ data: Joi.string().allow(""),
357
+ attempt: Joi.number(),
358
+ last_attempted_on: Joi.number(),
359
+ status: Joi.string().allow(""),
360
+ name: Joi.string().allow(""),
361
+ webhook_url: Joi.string().allow(""),
362
+ response_time: Joi.number(),
363
+ message_id: Joi.string().allow(""),
364
+ event_trace_id: Joi.string().allow(""),
365
+ });
366
+ }
367
+
327
368
  /** @returns {Page} */
328
369
  static Page() {
329
370
  return Joi.object({
@@ -334,19 +375,26 @@ class WebhookPlatformModel {
334
375
  current: Joi.number(),
335
376
  type: Joi.string().allow("").required(),
336
377
  size: Joi.number(),
378
+ total: Joi.number(),
337
379
  });
338
380
  }
339
381
 
340
- /** @returns {BroadcasterConfig} */
341
- static BroadcasterConfig() {
382
+ /** @returns {PingWebhook} */
383
+ static PingWebhook() {
342
384
  return Joi.object({
343
- topic: Joi.string().allow(""),
344
- queue: Joi.string().allow(""),
345
- event_bridge_name: Joi.string().allow(""),
346
- workflow_name: Joi.string().allow(""),
347
- account_id: Joi.string().allow(""),
348
- detail_type: Joi.string().allow(""),
349
- }).allow(null);
385
+ webhook_url: Joi.string().allow("").required(),
386
+ auth_meta: Joi.any(),
387
+ custom_headers: Joi.any(),
388
+ });
389
+ }
390
+
391
+ /** @returns {PingWebhookResponse} */
392
+ static PingWebhookResponse() {
393
+ return Joi.object({
394
+ status: Joi.string().allow(""),
395
+ message: Joi.string().allow(""),
396
+ code: Joi.number(),
397
+ });
350
398
  }
351
399
 
352
400
  /** @returns {SubscriberEventMapping} */
@@ -355,7 +403,7 @@ class WebhookPlatformModel {
355
403
  id: Joi.number(),
356
404
  event_id: Joi.number(),
357
405
  subscriber_id: Joi.number(),
358
- broadcaster_config: WebhookPlatformModel.BroadcasterConfig(),
406
+ topic: Joi.string().allow("").allow(null),
359
407
  created_on: Joi.string().allow(""),
360
408
  });
361
409
  }
@@ -364,11 +412,9 @@ class WebhookPlatformModel {
364
412
  static EventConfig() {
365
413
  return Joi.object({
366
414
  id: Joi.number(),
367
- type: Joi.string().allow("").allow(null),
368
415
  event_name: Joi.string().allow(""),
369
416
  event_type: Joi.string().allow(""),
370
417
  event_category: Joi.string().allow(""),
371
- modified_by: Joi.string().allow(""),
372
418
  subscriber_event_mapping: WebhookPlatformModel.SubscriberEventMapping(),
373
419
  event_schema: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
374
420
  group: Joi.string().allow("").allow(null),
@@ -380,13 +426,110 @@ class WebhookPlatformModel {
380
426
  });
381
427
  }
382
428
 
383
- /** @returns {EventConfigResult} */
384
- static EventConfigResult() {
429
+ /** @returns {EventConfigResponse} */
430
+ static EventConfigResponse() {
385
431
  return Joi.object({
386
432
  event_configs: Joi.array().items(WebhookPlatformModel.EventConfig()),
387
433
  });
388
434
  }
389
435
 
436
+ /** @returns {ReportFiltersPayload} */
437
+ static ReportFiltersPayload() {
438
+ return Joi.object({
439
+ subscriber_ids: Joi.array().items(Joi.number()).required(),
440
+ });
441
+ }
442
+
443
+ /** @returns {ReportFilterResponse} */
444
+ static ReportFilterResponse() {
445
+ return Joi.object({
446
+ filter_name: Joi.string().allow(""),
447
+ values: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
448
+ });
449
+ }
450
+
451
+ /** @returns {HistoryPayload} */
452
+ static HistoryPayload() {
453
+ return Joi.object({
454
+ type: Joi.string().allow("").required(),
455
+ page_no: Joi.number(),
456
+ page_size: Joi.number(),
457
+ });
458
+ }
459
+
460
+ /** @returns {HistoryFilters} */
461
+ static HistoryFilters() {
462
+ return Joi.object({
463
+ events: Joi.array().items(Joi.string().allow("")),
464
+ search_text: Joi.string().allow(""),
465
+ status: Joi.string().allow(""),
466
+ end_date: Joi.string().allow(""),
467
+ start_date: Joi.string().allow(""),
468
+ subscribers: Joi.array().items(Joi.number()),
469
+ webhook_type: Joi.array().items(Joi.string().allow("")),
470
+ });
471
+ }
472
+
473
+ /** @returns {Url} */
474
+ static Url() {
475
+ return Joi.object({
476
+ url: Joi.string().allow(""),
477
+ name: Joi.string().allow(""),
478
+ });
479
+ }
480
+
481
+ /** @returns {CdnObject} */
482
+ static CdnObject() {
483
+ return Joi.object({
484
+ urls: Joi.array().items(WebhookPlatformModel.Url()),
485
+ });
486
+ }
487
+
488
+ /** @returns {UploadServiceObject} */
489
+ static UploadServiceObject() {
490
+ return Joi.object({
491
+ cdn: WebhookPlatformModel.CdnObject(),
492
+ }).allow(null);
493
+ }
494
+
495
+ /** @returns {HistoryAssociation} */
496
+ static HistoryAssociation() {
497
+ return Joi.object({
498
+ company_id: Joi.number(),
499
+ subscriber_ids: Joi.array().items(Joi.number()),
500
+ });
501
+ }
502
+
503
+ /** @returns {HistoryItems} */
504
+ static HistoryItems() {
505
+ return Joi.object({
506
+ id: Joi.number(),
507
+ association: WebhookPlatformModel.HistoryAssociation(),
508
+ filters: WebhookPlatformModel.HistoryFilters(),
509
+ filename: Joi.string().allow(""),
510
+ status: Joi.string().allow(""),
511
+ upload_service_response: WebhookPlatformModel.UploadServiceObject(),
512
+ created_on: Joi.string().allow(""),
513
+ updated_on: Joi.string().allow("").allow(null),
514
+ message: Joi.string().allow(""),
515
+ });
516
+ }
517
+
518
+ /** @returns {HistoryResponse} */
519
+ static HistoryResponse() {
520
+ return Joi.object({
521
+ items: Joi.array().items(WebhookPlatformModel.HistoryItems()),
522
+ page: WebhookPlatformModel.Page(),
523
+ });
524
+ }
525
+
526
+ /** @returns {CancelResponse} */
527
+ static CancelResponse() {
528
+ return Joi.object({
529
+ message: Joi.string().allow(""),
530
+ });
531
+ }
532
+
390
533
  /** @returns {Association} */
391
534
  static Association() {
392
535
  return Joi.object({
@@ -414,8 +557,8 @@ class WebhookPlatformModel {
414
557
  });
415
558
  }
416
559
 
417
- /** @returns {SubscriberDetails} */
418
- static SubscriberDetails() {
560
+ /** @returns {SubscriberResponse} */
561
+ static SubscriberResponse() {
419
562
  return Joi.object({
420
563
  id: Joi.number(),
421
564
  modified_by: Joi.string().allow(""),
@@ -423,7 +566,7 @@ class WebhookPlatformModel {
423
566
  provider: Joi.string().allow(""),
424
567
  webhook_url: Joi.string().allow(""),
425
568
  association: WebhookPlatformModel.AssociationResp(),
426
- custom_headers: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
569
+ custom_headers: Joi.any(),
427
570
  status: WebhookPlatformModel.SubscriberStatus(),
428
571
  email_id: Joi.string().allow(""),
429
572
  updated_on: Joi.string().allow(""),
@@ -439,10 +582,6 @@ class WebhookPlatformModel {
439
582
  return Joi.object({
440
583
  slug: Joi.string().allow(""),
441
584
  topic: Joi.string().allow(""),
442
- queue: Joi.string().allow(""),
443
- event_bridge_name: Joi.string().allow(""),
444
- workflow_name: Joi.string().allow(""),
445
- detail_type: Joi.string().allow(""),
446
585
  });
447
586
  }
448
587
 
@@ -454,7 +593,7 @@ class WebhookPlatformModel {
454
593
  webhook_url: Joi.string().allow(""),
455
594
  provider: Joi.string().allow("").required(),
456
595
  association: WebhookPlatformModel.Association().required(),
457
- custom_headers: Joi.object().pattern(/\S/, Joi.any()),
596
+ custom_headers: Joi.any(),
458
597
  status: WebhookPlatformModel.SubscriberStatus().required(),
459
598
  email_id: Joi.string().allow("").required(),
460
599
  auth_meta: WebhookPlatformModel.AuthMeta(),
@@ -471,7 +610,7 @@ class WebhookPlatformModel {
471
610
  webhook_url: Joi.string().allow(""),
472
611
  provider: Joi.string().allow("").required(),
473
612
  association: WebhookPlatformModel.Association(),
474
- custom_headers: Joi.object().pattern(/\S/, Joi.any()),
613
+ custom_headers: Joi.any(),
475
614
  status: WebhookPlatformModel.SubscriberStatus().required(),
476
615
  email_id: Joi.string().allow(""),
477
616
  auth_meta: WebhookPlatformModel.AuthMeta(),
@@ -486,7 +625,7 @@ class WebhookPlatformModel {
486
625
  type: Joi.string().allow("").allow(null),
487
626
  webhook_url: Joi.string().allow("").required(),
488
627
  association: WebhookPlatformModel.Association().required(),
489
- custom_headers: Joi.object().pattern(/\S/, Joi.any()),
628
+ custom_headers: Joi.any(),
490
629
  status: WebhookPlatformModel.SubscriberStatus().required(),
491
630
  email_id: Joi.string().allow("").required(),
492
631
  auth_meta: WebhookPlatformModel.AuthMeta(),
@@ -502,7 +641,7 @@ class WebhookPlatformModel {
502
641
  type: Joi.string().allow("").allow(null),
503
642
  webhook_url: Joi.string().allow(""),
504
643
  association: WebhookPlatformModel.Association(),
505
- custom_headers: Joi.object().pattern(/\S/, Joi.any()),
644
+ custom_headers: Joi.any(),
506
645
  status: WebhookPlatformModel.SubscriberStatus(),
507
646
  email_id: Joi.string().allow(""),
508
647
  auth_meta: WebhookPlatformModel.AuthMeta(),
@@ -510,8 +649,8 @@ class WebhookPlatformModel {
510
649
  });
511
650
  }
512
651
 
513
- /** @returns {SubscriberConfigResult} */
514
- static SubscriberConfigResult() {
652
+ /** @returns {SubscriberConfigResponse} */
653
+ static SubscriberConfigResponse() {
515
654
  return Joi.object({
516
655
  id: Joi.number(),
517
656
  modified_by: Joi.string().allow(""),
@@ -519,7 +658,7 @@ class WebhookPlatformModel {
519
658
  webhook_url: Joi.string().allow(""),
520
659
  provider: Joi.string().allow(""),
521
660
  association: WebhookPlatformModel.AssociationResp(),
522
- custom_headers: Joi.object().pattern(/\S/, Joi.any()),
661
+ custom_headers: Joi.any(),
523
662
  status: WebhookPlatformModel.SubscriberStatus(),
524
663
  email_id: Joi.string().allow(""),
525
664
  updated_on: Joi.string().allow(""),
@@ -533,165 +672,11 @@ class WebhookPlatformModel {
533
672
  /** @returns {SubscriberConfigList} */
534
673
  static SubscriberConfigList() {
535
674
  return Joi.object({
536
- items: Joi.array().items(WebhookPlatformModel.SubscriberDetails()),
675
+ items: Joi.array().items(WebhookPlatformModel.SubscriberResponse()),
537
676
  page: WebhookPlatformModel.Page(),
538
677
  });
539
678
  }
540
679
 
541
- /** @returns {RestEventData} */
542
- static RestEventData() {
543
- return Joi.object({
544
- event_category: Joi.string().allow("").required(),
545
- event_name: Joi.string().allow("").required(),
546
- event_type: Joi.string().allow("").required(),
547
- version: Joi.number().required(),
548
- });
549
- }
550
-
551
- /** @returns {RestConfig} */
552
- static RestConfig() {
553
- return Joi.object({
554
- webhook_url: Joi.string().allow("").required(),
555
- type: Joi.string().allow("").required(),
556
- custom_headers: Joi.object().pattern(/\S/, Joi.any()),
557
- auth_meta: WebhookPlatformModel.AuthMeta(),
558
- events: Joi.array()
559
- .items(WebhookPlatformModel.RestEventData())
560
- .required(),
561
- });
562
- }
563
-
564
- /** @returns {QueueEventData} */
565
- static QueueEventData() {
566
- return Joi.object({
567
- event_category: Joi.string().allow("").required(),
568
- event_name: Joi.string().allow("").required(),
569
- event_type: Joi.string().allow("").required(),
570
- version: Joi.number().required(),
571
- topic: Joi.string().allow("").required(),
572
- });
573
- }
574
-
575
- /** @returns {KafkaConfig} */
576
- static KafkaConfig() {
577
- return Joi.object({
578
- type: Joi.string().allow("").allow(null),
579
- events: Joi.array()
580
- .items(WebhookPlatformModel.QueueEventData())
581
- .required(),
582
- });
583
- }
584
-
585
- /** @returns {PubSubConfig} */
586
- static PubSubConfig() {
587
- return Joi.object({
588
- type: Joi.string().allow("").allow(null),
589
- events: Joi.array()
590
- .items(WebhookPlatformModel.QueueEventData())
591
- .required(),
592
- });
593
- }
594
-
595
- /** @returns {TemporalEventData} */
596
- static TemporalEventData() {
597
- return Joi.object({
598
- event_category: Joi.string().allow("").required(),
599
- event_name: Joi.string().allow("").required(),
600
- event_type: Joi.string().allow("").required(),
601
- version: Joi.number().required(),
602
- queue: Joi.string().allow(""),
603
- workflow_name: Joi.string().allow(""),
604
- });
605
- }
606
-
607
- /** @returns {TemporalConfig} */
608
- static TemporalConfig() {
609
- return Joi.object({
610
- type: Joi.string().allow("").allow(null),
611
- events: Joi.array()
612
- .items(WebhookPlatformModel.TemporalEventData())
613
- .required(),
614
- });
615
- }
616
-
617
- /** @returns {SqsEventData} */
618
- static SqsEventData() {
619
- return Joi.object({
620
- event_category: Joi.string().allow("").required(),
621
- event_name: Joi.string().allow("").required(),
622
- event_type: Joi.string().allow("").required(),
623
- version: Joi.number().required(),
624
- queue: Joi.string().allow(""),
625
- });
626
- }
627
-
628
- /** @returns {SqsConfig} */
629
- static SqsConfig() {
630
- return Joi.object({
631
- type: Joi.string().allow("").allow(null),
632
- events: Joi.array().items(WebhookPlatformModel.SqsEventData()).required(),
633
- });
634
- }
635
-
636
- /** @returns {EventBridgeData} */
637
- static EventBridgeData() {
638
- return Joi.object({
639
- event_category: Joi.string().allow("").required(),
640
- event_name: Joi.string().allow("").required(),
641
- event_type: Joi.string().allow("").required(),
642
- version: Joi.number().required(),
643
- event_bridge_name: Joi.string().allow(""),
644
- });
645
- }
646
-
647
- /** @returns {EventBridgeConfig} */
648
- static EventBridgeConfig() {
649
- return Joi.object({
650
- type: Joi.string().allow("").allow(null),
651
- events: Joi.array()
652
- .items(WebhookPlatformModel.EventBridgeData())
653
- .required(),
654
- });
655
- }
656
-
657
- /** @returns {EventMapBody} */
658
- static EventMapBody() {
659
- return Joi.object({
660
- rest: WebhookPlatformModel.RestConfig(),
661
- kafka: WebhookPlatformModel.KafkaConfig(),
662
- pub_sub: WebhookPlatformModel.PubSubConfig(),
663
- temporal: WebhookPlatformModel.TemporalConfig(),
664
- sqs: WebhookPlatformModel.SqsConfig(),
665
- event_bridge: WebhookPlatformModel.EventBridgeConfig(),
666
- });
667
- }
668
-
669
- /** @returns {WebhookConfig} */
670
- static WebhookConfig() {
671
- return Joi.object({
672
- notification_email: Joi.string().allow(""),
673
- name: Joi.string().allow(""),
674
- status: Joi.string().allow(""),
675
- association: WebhookPlatformModel.Association(),
676
- event_map: WebhookPlatformModel.EventMapBody(),
677
- });
678
- }
679
-
680
- /** @returns {UpsertSubscriberConfig} */
681
- static UpsertSubscriberConfig() {
682
- return Joi.object({
683
- webhook_config: WebhookPlatformModel.WebhookConfig().required(),
684
- });
685
- }
686
-
687
- /** @returns {UpsertSubscriberConfigResult} */
688
- static UpsertSubscriberConfigResult() {
689
- return Joi.object({
690
- status: Joi.boolean(),
691
- message: Joi.string().allow(""),
692
- });
693
- }
694
-
695
680
  /**
696
681
  * Enum: SubscriberStatus Used By: Webhook
697
682
  *