@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  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 +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -1,200 +1,382 @@
1
1
  export = WebhookPublicModel;
2
2
  /**
3
3
  * @typedef EventConfig
4
- * @property {number} [id]
5
- * @property {string} [event_name]
6
- * @property {string} [event_type]
7
- * @property {string} [event_category]
8
- * @property {Object} [event_schema]
9
- * @property {string} [version]
10
- * @property {string} [display_name]
11
- * @property {string} [description]
12
- * @property {string} [created_on]
13
- * @property {string} [updated_on]
14
- * @property {string} [group]
4
+ * @property {number} [id] - The unique identifier for the event configuration.
5
+ * @property {string} [event_name] - The name of the event.
6
+ * @property {string} [event_type] - The type of the event.
7
+ * @property {string} [event_category] - The category of the event.
8
+ * @property {Object} [event_schema] - The schema defining the event data structure.
9
+ * @property {string} [version] - The version of the event configuration.
10
+ * @property {string} [display_name] - A user-friendly name for the event.
11
+ * @property {string} [description] - A detailed description of the event.
12
+ * @property {string} [created_on] - The timestamp when the event configuration
13
+ * was created.
14
+ * @property {string} [updated_on] - The timestamp when the event configuration
15
+ * was last updated.
16
+ * @property {string} [group] - The group to which the event belongs.
17
+ * @property {string} [sunset_date] - The date and time after which the event is
18
+ * considered sunset. After this timestamp, the entity should no longer be
19
+ * actively used, referenced, or offered for new operations, even if it still exists.
20
+ * @property {string} [announcement_date] - The date and time when the
21
+ * deprecation of the event is officially announced. This marks the start of
22
+ * the deprecation notice period and indicates that the entity is planned to
23
+ * be retired in the future, but may still remain available until the sunset date.
24
+ * @property {string} [support_end_date] - The date and time after which
25
+ * official support for the event ends. Beyond this point, no guarantees are
26
+ * made for maintenance, updates, fixes, or issue resolution.
15
27
  */
16
28
  /**
17
- * @typedef EventConfigResponse
18
- * @property {EventConfig[]} [event_configs]
29
+ * @typedef EventDetails
30
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
19
31
  */
20
32
  /**
21
33
  * @typedef EventConfigBase
22
- * @property {string} [event_name]
23
- * @property {string} [event_type]
24
- * @property {string} [event_category]
25
- * @property {string} [version]
34
+ * @property {string} [event_name] - The name of the event.
35
+ * @property {string} [event_type] - The type of the event.
36
+ * @property {string} [event_category] - The category of the event.
37
+ * @property {string} [version] - The version of the event configuration.
26
38
  */
27
39
  /**
28
40
  * @typedef EventNotifier
29
- * @property {string} [message]
30
- * @property {string[]} [emails]
41
+ * @property {string} [message] - The message to be sent in the notification.
42
+ * @property {string[]} [emails] - List of email addresses to notify.
31
43
  */
32
44
  /**
33
45
  * @typedef EventSchema
34
- * @property {Object} [payload]
35
- * @property {Object} [meta]
46
+ * @property {Object} [payload] - The event data payload.
47
+ * @property {Object} [meta] - Metadata related to the event.
36
48
  */
37
49
  /**
38
50
  * @typedef InternalTransformEvent
39
- * @property {string[]} [trace_id]
40
- * @property {string} [name]
41
- * @property {string} [type]
42
- * @property {string} [version]
43
- * @property {number} [created_timestamp]
51
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
52
+ * @property {string} [name] - The name of the transformation event.
53
+ * @property {string} [type] - The type of the transformation event.
54
+ * @property {string} [version] - The version of the transformation event.
55
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
44
56
  */
45
57
  /**
46
58
  * @typedef TransformEventData
59
+ * @property {string} [region] - The region of the transformation event.
47
60
  * @property {InternalTransformEvent} [event]
48
- * @property {number} [company_id]
49
- * @property {string[]} [contains]
50
- * @property {Object} [payload]
61
+ * @property {number} [company_id] - The company ID associated with the event.
62
+ * @property {string[]} [contains] - List of strings related to the event.
63
+ * @property {Object} [payload] - Event data payload.
51
64
  */
52
65
  /**
53
66
  * @typedef TransformEventServiceMeta
54
- * @property {string} [name]
67
+ * @property {string} [name] - The name of the transformation service.
55
68
  */
56
69
  /**
57
70
  * @typedef TransformEventAssociation
58
- * @property {number} [company_id]
71
+ * @property {number} [company_id] - The company ID associated with the event.
59
72
  */
60
73
  /**
61
- * @typedef TransformEventRequest
62
- * @property {string} event_name
63
- * @property {string} event_type
64
- * @property {string} event_category
65
- * @property {string} event_version
74
+ * @typedef TransformEventPayload
75
+ * @property {string} event_name - The name of the event.
76
+ * @property {string} event_type - The type of the event.
77
+ * @property {string} event_category - The category of the event.
78
+ * @property {string} event_version - The version of the event.
66
79
  * @property {EventSchema} event
67
80
  */
68
81
  /**
69
- * @typedef ValidateSchemaRequest
70
- * @property {string} event_name
71
- * @property {string} event_type
72
- * @property {string} event_category
73
- * @property {string} event_version
82
+ * @typedef ValidateSchemaPayload
83
+ * @property {string} event_name - The name of the event to validate.
84
+ * @property {string} event_type - The type of the event.
85
+ * @property {string} event_category - The category of the event.
86
+ * @property {string} event_version - The version of the event to validate.
74
87
  * @property {EventSchema} event
75
- * @property {Object} event_schema
88
+ * @property {Object} event_schema - The schema defining the structure of the event.
76
89
  */
77
90
  /**
78
- * @typedef ValidateSchemaResponse
79
- * @property {boolean} [status]
80
- * @property {string} [message]
91
+ * @typedef ValidateSchemaResult
92
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
93
+ * or invalid (false).
94
+ * @property {string} [message] - A message providing additional details about
95
+ * the validation result.
81
96
  */
82
97
  /**
83
- * @typedef TransformEventResponse
84
- * @property {string[]} [event_trace_id]
98
+ * @typedef TransformEventResult
99
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
100
+ * transformation event.
85
101
  * @property {TransformEventData} [data]
86
- * @property {string} [event_name]
87
- * @property {string} [version]
88
- * @property {boolean} [status]
89
- * @property {string} [event_type]
102
+ * @property {string} [event_name] - The name of the transformation event.
103
+ * @property {string} [version] - The version of the transformation event.
104
+ * @property {boolean} [status] - The status of the event processing.
105
+ * @property {string} [event_type] - The type of the transformation event.
90
106
  * @property {TransformEventServiceMeta} [service_meta]
91
107
  * @property {TransformEventAssociation} [association]
92
108
  */
93
109
  declare class WebhookPublicModel {
94
110
  }
95
111
  declare namespace WebhookPublicModel {
96
- export { EventConfig, EventConfigResponse, EventConfigBase, EventNotifier, EventSchema, InternalTransformEvent, TransformEventData, TransformEventServiceMeta, TransformEventAssociation, TransformEventRequest, ValidateSchemaRequest, ValidateSchemaResponse, TransformEventResponse };
112
+ export { EventConfig, EventDetails, EventConfigBase, EventNotifier, EventSchema, InternalTransformEvent, TransformEventData, TransformEventServiceMeta, TransformEventAssociation, TransformEventPayload, ValidateSchemaPayload, ValidateSchemaResult, TransformEventResult };
97
113
  }
98
114
  /** @returns {EventConfig} */
99
115
  declare function EventConfig(): EventConfig;
100
116
  type EventConfig = {
117
+ /**
118
+ * - The unique identifier for the event configuration.
119
+ */
101
120
  id?: number;
121
+ /**
122
+ * - The name of the event.
123
+ */
102
124
  event_name?: string;
125
+ /**
126
+ * - The type of the event.
127
+ */
103
128
  event_type?: string;
129
+ /**
130
+ * - The category of the event.
131
+ */
104
132
  event_category?: string;
133
+ /**
134
+ * - The schema defining the event data structure.
135
+ */
105
136
  event_schema?: any;
137
+ /**
138
+ * - The version of the event configuration.
139
+ */
106
140
  version?: string;
141
+ /**
142
+ * - A user-friendly name for the event.
143
+ */
107
144
  display_name?: string;
145
+ /**
146
+ * - A detailed description of the event.
147
+ */
108
148
  description?: string;
149
+ /**
150
+ * - The timestamp when the event configuration
151
+ * was created.
152
+ */
109
153
  created_on?: string;
154
+ /**
155
+ * - The timestamp when the event configuration
156
+ * was last updated.
157
+ */
110
158
  updated_on?: string;
159
+ /**
160
+ * - The group to which the event belongs.
161
+ */
111
162
  group?: string;
163
+ /**
164
+ * - The date and time after which the event is
165
+ * considered sunset. After this timestamp, the entity should no longer be
166
+ * actively used, referenced, or offered for new operations, even if it still exists.
167
+ */
168
+ sunset_date?: string;
169
+ /**
170
+ * - The date and time when the
171
+ * deprecation of the event is officially announced. This marks the start of
172
+ * the deprecation notice period and indicates that the entity is planned to
173
+ * be retired in the future, but may still remain available until the sunset date.
174
+ */
175
+ announcement_date?: string;
176
+ /**
177
+ * - The date and time after which
178
+ * official support for the event ends. Beyond this point, no guarantees are
179
+ * made for maintenance, updates, fixes, or issue resolution.
180
+ */
181
+ support_end_date?: string;
112
182
  };
113
- /** @returns {EventConfigResponse} */
114
- declare function EventConfigResponse(): EventConfigResponse;
115
- type EventConfigResponse = {
183
+ /** @returns {EventDetails} */
184
+ declare function EventDetails(): EventDetails;
185
+ type EventDetails = {
186
+ /**
187
+ * - A list of event configuration details.
188
+ */
116
189
  event_configs?: EventConfig[];
117
190
  };
118
191
  /** @returns {EventConfigBase} */
119
192
  declare function EventConfigBase(): EventConfigBase;
120
193
  type EventConfigBase = {
194
+ /**
195
+ * - The name of the event.
196
+ */
121
197
  event_name?: string;
198
+ /**
199
+ * - The type of the event.
200
+ */
122
201
  event_type?: string;
202
+ /**
203
+ * - The category of the event.
204
+ */
123
205
  event_category?: string;
206
+ /**
207
+ * - The version of the event configuration.
208
+ */
124
209
  version?: string;
125
210
  };
126
211
  /** @returns {EventNotifier} */
127
212
  declare function EventNotifier(): EventNotifier;
128
213
  type EventNotifier = {
214
+ /**
215
+ * - The message to be sent in the notification.
216
+ */
129
217
  message?: string;
218
+ /**
219
+ * - List of email addresses to notify.
220
+ */
130
221
  emails?: string[];
131
222
  };
132
223
  /** @returns {EventSchema} */
133
224
  declare function EventSchema(): EventSchema;
134
225
  type EventSchema = {
226
+ /**
227
+ * - The event data payload.
228
+ */
135
229
  payload?: any;
230
+ /**
231
+ * - Metadata related to the event.
232
+ */
136
233
  meta?: any;
137
234
  };
138
235
  /** @returns {InternalTransformEvent} */
139
236
  declare function InternalTransformEvent(): InternalTransformEvent;
140
237
  type InternalTransformEvent = {
238
+ /**
239
+ * - List of trace IDs related to the event.
240
+ */
141
241
  trace_id?: string[];
242
+ /**
243
+ * - The name of the transformation event.
244
+ */
142
245
  name?: string;
246
+ /**
247
+ * - The type of the transformation event.
248
+ */
143
249
  type?: string;
250
+ /**
251
+ * - The version of the transformation event.
252
+ */
144
253
  version?: string;
254
+ /**
255
+ * - The timestamp when the event was created.
256
+ */
145
257
  created_timestamp?: number;
146
258
  };
147
259
  /** @returns {TransformEventData} */
148
260
  declare function TransformEventData(): TransformEventData;
149
261
  type TransformEventData = {
262
+ /**
263
+ * - The region of the transformation event.
264
+ */
265
+ region?: string;
150
266
  event?: InternalTransformEvent;
267
+ /**
268
+ * - The company ID associated with the event.
269
+ */
151
270
  company_id?: number;
271
+ /**
272
+ * - List of strings related to the event.
273
+ */
152
274
  contains?: string[];
275
+ /**
276
+ * - Event data payload.
277
+ */
153
278
  payload?: any;
154
279
  };
155
280
  /** @returns {TransformEventServiceMeta} */
156
281
  declare function TransformEventServiceMeta(): TransformEventServiceMeta;
157
282
  type TransformEventServiceMeta = {
283
+ /**
284
+ * - The name of the transformation service.
285
+ */
158
286
  name?: string;
159
287
  };
160
288
  /** @returns {TransformEventAssociation} */
161
289
  declare function TransformEventAssociation(): TransformEventAssociation;
162
290
  type TransformEventAssociation = {
291
+ /**
292
+ * - The company ID associated with the event.
293
+ */
163
294
  company_id?: number;
164
295
  };
165
- /** @returns {TransformEventRequest} */
166
- declare function TransformEventRequest(): TransformEventRequest;
167
- type TransformEventRequest = {
296
+ /** @returns {TransformEventPayload} */
297
+ declare function TransformEventPayload(): TransformEventPayload;
298
+ type TransformEventPayload = {
299
+ /**
300
+ * - The name of the event.
301
+ */
168
302
  event_name: string;
303
+ /**
304
+ * - The type of the event.
305
+ */
169
306
  event_type: string;
307
+ /**
308
+ * - The category of the event.
309
+ */
170
310
  event_category: string;
311
+ /**
312
+ * - The version of the event.
313
+ */
171
314
  event_version: string;
172
315
  event: EventSchema;
173
316
  };
174
- /** @returns {ValidateSchemaRequest} */
175
- declare function ValidateSchemaRequest(): ValidateSchemaRequest;
176
- type ValidateSchemaRequest = {
317
+ /** @returns {ValidateSchemaPayload} */
318
+ declare function ValidateSchemaPayload(): ValidateSchemaPayload;
319
+ type ValidateSchemaPayload = {
320
+ /**
321
+ * - The name of the event to validate.
322
+ */
177
323
  event_name: string;
324
+ /**
325
+ * - The type of the event.
326
+ */
178
327
  event_type: string;
328
+ /**
329
+ * - The category of the event.
330
+ */
179
331
  event_category: string;
332
+ /**
333
+ * - The version of the event to validate.
334
+ */
180
335
  event_version: string;
181
336
  event: EventSchema;
337
+ /**
338
+ * - The schema defining the structure of the event.
339
+ */
182
340
  event_schema: any;
183
341
  };
184
- /** @returns {ValidateSchemaResponse} */
185
- declare function ValidateSchemaResponse(): ValidateSchemaResponse;
186
- type ValidateSchemaResponse = {
342
+ /** @returns {ValidateSchemaResult} */
343
+ declare function ValidateSchemaResult(): ValidateSchemaResult;
344
+ type ValidateSchemaResult = {
345
+ /**
346
+ * - Indicates whether the schema is valid (true)
347
+ * or invalid (false).
348
+ */
187
349
  status?: boolean;
350
+ /**
351
+ * - A message providing additional details about
352
+ * the validation result.
353
+ */
188
354
  message?: string;
189
355
  };
190
- /** @returns {TransformEventResponse} */
191
- declare function TransformEventResponse(): TransformEventResponse;
192
- type TransformEventResponse = {
356
+ /** @returns {TransformEventResult} */
357
+ declare function TransformEventResult(): TransformEventResult;
358
+ type TransformEventResult = {
359
+ /**
360
+ * - List of trace IDs related to the
361
+ * transformation event.
362
+ */
193
363
  event_trace_id?: string[];
194
364
  data?: TransformEventData;
365
+ /**
366
+ * - The name of the transformation event.
367
+ */
195
368
  event_name?: string;
369
+ /**
370
+ * - The version of the transformation event.
371
+ */
196
372
  version?: string;
373
+ /**
374
+ * - The status of the event processing.
375
+ */
197
376
  status?: boolean;
377
+ /**
378
+ * - The type of the transformation event.
379
+ */
198
380
  event_type?: string;
199
381
  service_meta?: TransformEventServiceMeta;
200
382
  association?: TransformEventAssociation;
@@ -2,104 +2,120 @@ const Joi = require("joi");
2
2
 
3
3
  /**
4
4
  * @typedef EventConfig
5
- * @property {number} [id]
6
- * @property {string} [event_name]
7
- * @property {string} [event_type]
8
- * @property {string} [event_category]
9
- * @property {Object} [event_schema]
10
- * @property {string} [version]
11
- * @property {string} [display_name]
12
- * @property {string} [description]
13
- * @property {string} [created_on]
14
- * @property {string} [updated_on]
15
- * @property {string} [group]
5
+ * @property {number} [id] - The unique identifier for the event configuration.
6
+ * @property {string} [event_name] - The name of the event.
7
+ * @property {string} [event_type] - The type of the event.
8
+ * @property {string} [event_category] - The category of the event.
9
+ * @property {Object} [event_schema] - The schema defining the event data structure.
10
+ * @property {string} [version] - The version of the event configuration.
11
+ * @property {string} [display_name] - A user-friendly name for the event.
12
+ * @property {string} [description] - A detailed description of the event.
13
+ * @property {string} [created_on] - The timestamp when the event configuration
14
+ * was created.
15
+ * @property {string} [updated_on] - The timestamp when the event configuration
16
+ * was last updated.
17
+ * @property {string} [group] - The group to which the event belongs.
18
+ * @property {string} [sunset_date] - The date and time after which the event is
19
+ * considered sunset. After this timestamp, the entity should no longer be
20
+ * actively used, referenced, or offered for new operations, even if it still exists.
21
+ * @property {string} [announcement_date] - The date and time when the
22
+ * deprecation of the event is officially announced. This marks the start of
23
+ * the deprecation notice period and indicates that the entity is planned to
24
+ * be retired in the future, but may still remain available until the sunset date.
25
+ * @property {string} [support_end_date] - The date and time after which
26
+ * official support for the event ends. Beyond this point, no guarantees are
27
+ * made for maintenance, updates, fixes, or issue resolution.
16
28
  */
17
29
 
18
30
  /**
19
- * @typedef EventConfigResponse
20
- * @property {EventConfig[]} [event_configs]
31
+ * @typedef EventDetails
32
+ * @property {EventConfig[]} [event_configs] - A list of event configuration details.
21
33
  */
22
34
 
23
35
  /**
24
36
  * @typedef EventConfigBase
25
- * @property {string} [event_name]
26
- * @property {string} [event_type]
27
- * @property {string} [event_category]
28
- * @property {string} [version]
37
+ * @property {string} [event_name] - The name of the event.
38
+ * @property {string} [event_type] - The type of the event.
39
+ * @property {string} [event_category] - The category of the event.
40
+ * @property {string} [version] - The version of the event configuration.
29
41
  */
30
42
 
31
43
  /**
32
44
  * @typedef EventNotifier
33
- * @property {string} [message]
34
- * @property {string[]} [emails]
45
+ * @property {string} [message] - The message to be sent in the notification.
46
+ * @property {string[]} [emails] - List of email addresses to notify.
35
47
  */
36
48
 
37
49
  /**
38
50
  * @typedef EventSchema
39
- * @property {Object} [payload]
40
- * @property {Object} [meta]
51
+ * @property {Object} [payload] - The event data payload.
52
+ * @property {Object} [meta] - Metadata related to the event.
41
53
  */
42
54
 
43
55
  /**
44
56
  * @typedef InternalTransformEvent
45
- * @property {string[]} [trace_id]
46
- * @property {string} [name]
47
- * @property {string} [type]
48
- * @property {string} [version]
49
- * @property {number} [created_timestamp]
57
+ * @property {string[]} [trace_id] - List of trace IDs related to the event.
58
+ * @property {string} [name] - The name of the transformation event.
59
+ * @property {string} [type] - The type of the transformation event.
60
+ * @property {string} [version] - The version of the transformation event.
61
+ * @property {number} [created_timestamp] - The timestamp when the event was created.
50
62
  */
51
63
 
52
64
  /**
53
65
  * @typedef TransformEventData
66
+ * @property {string} [region] - The region of the transformation event.
54
67
  * @property {InternalTransformEvent} [event]
55
- * @property {number} [company_id]
56
- * @property {string[]} [contains]
57
- * @property {Object} [payload]
68
+ * @property {number} [company_id] - The company ID associated with the event.
69
+ * @property {string[]} [contains] - List of strings related to the event.
70
+ * @property {Object} [payload] - Event data payload.
58
71
  */
59
72
 
60
73
  /**
61
74
  * @typedef TransformEventServiceMeta
62
- * @property {string} [name]
75
+ * @property {string} [name] - The name of the transformation service.
63
76
  */
64
77
 
65
78
  /**
66
79
  * @typedef TransformEventAssociation
67
- * @property {number} [company_id]
80
+ * @property {number} [company_id] - The company ID associated with the event.
68
81
  */
69
82
 
70
83
  /**
71
- * @typedef TransformEventRequest
72
- * @property {string} event_name
73
- * @property {string} event_type
74
- * @property {string} event_category
75
- * @property {string} event_version
84
+ * @typedef TransformEventPayload
85
+ * @property {string} event_name - The name of the event.
86
+ * @property {string} event_type - The type of the event.
87
+ * @property {string} event_category - The category of the event.
88
+ * @property {string} event_version - The version of the event.
76
89
  * @property {EventSchema} event
77
90
  */
78
91
 
79
92
  /**
80
- * @typedef ValidateSchemaRequest
81
- * @property {string} event_name
82
- * @property {string} event_type
83
- * @property {string} event_category
84
- * @property {string} event_version
93
+ * @typedef ValidateSchemaPayload
94
+ * @property {string} event_name - The name of the event to validate.
95
+ * @property {string} event_type - The type of the event.
96
+ * @property {string} event_category - The category of the event.
97
+ * @property {string} event_version - The version of the event to validate.
85
98
  * @property {EventSchema} event
86
- * @property {Object} event_schema
99
+ * @property {Object} event_schema - The schema defining the structure of the event.
87
100
  */
88
101
 
89
102
  /**
90
- * @typedef ValidateSchemaResponse
91
- * @property {boolean} [status]
92
- * @property {string} [message]
103
+ * @typedef ValidateSchemaResult
104
+ * @property {boolean} [status] - Indicates whether the schema is valid (true)
105
+ * or invalid (false).
106
+ * @property {string} [message] - A message providing additional details about
107
+ * the validation result.
93
108
  */
94
109
 
95
110
  /**
96
- * @typedef TransformEventResponse
97
- * @property {string[]} [event_trace_id]
111
+ * @typedef TransformEventResult
112
+ * @property {string[]} [event_trace_id] - List of trace IDs related to the
113
+ * transformation event.
98
114
  * @property {TransformEventData} [data]
99
- * @property {string} [event_name]
100
- * @property {string} [version]
101
- * @property {boolean} [status]
102
- * @property {string} [event_type]
115
+ * @property {string} [event_name] - The name of the transformation event.
116
+ * @property {string} [version] - The version of the transformation event.
117
+ * @property {boolean} [status] - The status of the event processing.
118
+ * @property {string} [event_type] - The type of the transformation event.
103
119
  * @property {TransformEventServiceMeta} [service_meta]
104
120
  * @property {TransformEventAssociation} [association]
105
121
  */
@@ -119,11 +135,14 @@ class WebhookPublicModel {
119
135
  created_on: Joi.string().allow(""),
120
136
  updated_on: Joi.string().allow(""),
121
137
  group: Joi.string().allow("").allow(null),
138
+ sunset_date: Joi.string().allow("").allow(null),
139
+ announcement_date: Joi.string().allow("").allow(null),
140
+ support_end_date: Joi.string().allow("").allow(null),
122
141
  });
123
142
  }
124
143
 
125
- /** @returns {EventConfigResponse} */
126
- static EventConfigResponse() {
144
+ /** @returns {EventDetails} */
145
+ static EventDetails() {
127
146
  return Joi.object({
128
147
  event_configs: Joi.array().items(WebhookPublicModel.EventConfig()),
129
148
  });
@@ -169,6 +188,7 @@ class WebhookPublicModel {
169
188
  /** @returns {TransformEventData} */
170
189
  static TransformEventData() {
171
190
  return Joi.object({
191
+ region: Joi.string().allow(""),
172
192
  event: WebhookPublicModel.InternalTransformEvent(),
173
193
  company_id: Joi.number(),
174
194
  contains: Joi.array().items(Joi.string().allow("")),
@@ -190,8 +210,8 @@ class WebhookPublicModel {
190
210
  });
191
211
  }
192
212
 
193
- /** @returns {TransformEventRequest} */
194
- static TransformEventRequest() {
213
+ /** @returns {TransformEventPayload} */
214
+ static TransformEventPayload() {
195
215
  return Joi.object({
196
216
  event_name: Joi.string().allow("").required(),
197
217
  event_type: Joi.string().allow("").required(),
@@ -201,8 +221,8 @@ class WebhookPublicModel {
201
221
  });
202
222
  }
203
223
 
204
- /** @returns {ValidateSchemaRequest} */
205
- static ValidateSchemaRequest() {
224
+ /** @returns {ValidateSchemaPayload} */
225
+ static ValidateSchemaPayload() {
206
226
  return Joi.object({
207
227
  event_name: Joi.string().allow("").required(),
208
228
  event_type: Joi.string().allow("").required(),
@@ -213,16 +233,16 @@ class WebhookPublicModel {
213
233
  });
214
234
  }
215
235
 
216
- /** @returns {ValidateSchemaResponse} */
217
- static ValidateSchemaResponse() {
236
+ /** @returns {ValidateSchemaResult} */
237
+ static ValidateSchemaResult() {
218
238
  return Joi.object({
219
239
  status: Joi.boolean(),
220
240
  message: Joi.string().allow(""),
221
241
  });
222
242
  }
223
243
 
224
- /** @returns {TransformEventResponse} */
225
- static TransformEventResponse() {
244
+ /** @returns {TransformEventResult} */
245
+ static TransformEventResult() {
226
246
  return Joi.object({
227
247
  event_trace_id: Joi.array().items(Joi.string().allow("")),
228
248
  data: WebhookPublicModel.TransformEventData(),