@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -1,329 +1,370 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {string} [
|
|
7
|
-
* @property {
|
|
8
|
-
* @property {
|
|
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
|
|
16
|
-
* @property {string} [
|
|
17
|
-
* @property {string}
|
|
18
|
-
* @property {string}
|
|
19
|
-
*
|
|
20
|
-
* @property {string} [
|
|
21
|
-
*
|
|
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
|
|
29
|
-
* @property {
|
|
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
|
|
39
|
-
* @property {
|
|
40
|
-
* @property {
|
|
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
|
|
63
|
-
* @property {
|
|
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
|
|
68
|
-
* @property {
|
|
69
|
-
*
|
|
70
|
-
* @property {
|
|
71
|
-
* @property {
|
|
72
|
-
*
|
|
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
|
|
77
|
-
* @property {
|
|
78
|
-
* @property {
|
|
79
|
-
*
|
|
80
|
-
* @property {
|
|
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
|
|
87
|
-
* @property {string} [
|
|
88
|
-
* @property {string} [
|
|
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
|
|
93
|
-
* @property {number} [id]
|
|
94
|
-
* @property {
|
|
95
|
-
*
|
|
96
|
-
* @property {string} [
|
|
97
|
-
* @property {string} [
|
|
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
|
|
113
|
-
* @property {
|
|
114
|
-
* @property {string} [
|
|
115
|
-
* @property {string} [
|
|
116
|
-
*
|
|
117
|
-
* @property {
|
|
118
|
-
*
|
|
119
|
-
* @property {string} [
|
|
120
|
-
*
|
|
121
|
-
* @property {string} [
|
|
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
|
|
126
|
-
* @property {
|
|
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
|
|
140
|
-
* @property {number}
|
|
141
|
-
*
|
|
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
|
|
155
|
-
* @property {string}
|
|
156
|
-
* @property {
|
|
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
|
|
168
|
-
* @property {
|
|
169
|
-
* @property {
|
|
170
|
-
* @property {
|
|
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
|
|
182
|
-
* @property {
|
|
183
|
-
* @property {string} [
|
|
184
|
-
*
|
|
185
|
-
* @property {string} [
|
|
186
|
-
* @property {string} [
|
|
187
|
-
* @property {
|
|
188
|
-
*
|
|
189
|
-
* @property {
|
|
190
|
-
*
|
|
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
|
|
202
|
-
* @property {
|
|
203
|
-
* @property {
|
|
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
|
|
208
|
-
* @property {
|
|
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
|
|
216
|
-
* @property {
|
|
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
|
|
225
|
-
* @property {
|
|
226
|
-
* @property {
|
|
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
|
|
234
|
-
* @property {
|
|
235
|
-
* @property {
|
|
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
|
|
240
|
-
* @property {
|
|
241
|
-
* @property {
|
|
175
|
+
* @typedef HistoryResponse
|
|
176
|
+
* @property {HistoryItems[]} [items]
|
|
177
|
+
* @property {Page} [page]
|
|
242
178
|
*/
|
|
243
179
|
|
|
244
180
|
/**
|
|
245
|
-
* @typedef
|
|
246
|
-
* @property {string}
|
|
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
|
|
256
|
-
* @property {string} [
|
|
257
|
-
* @property {
|
|
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
|
|
262
|
-
* @property {
|
|
263
|
-
* @property {string}
|
|
264
|
-
* @property {string}
|
|
265
|
-
* @property {
|
|
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
|
|
271
|
-
* @property {string} [type]
|
|
272
|
-
* @property {
|
|
201
|
+
* @typedef AuthMeta
|
|
202
|
+
* @property {string} [type]
|
|
203
|
+
* @property {string} [secret]
|
|
273
204
|
*/
|
|
274
205
|
|
|
275
206
|
/**
|
|
276
|
-
* @typedef
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {string}
|
|
279
|
-
* @property {string}
|
|
280
|
-
* @property {
|
|
281
|
-
* @property {string} [
|
|
282
|
-
*
|
|
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
|
|
287
|
-
* @property {string} [
|
|
288
|
-
* @property {
|
|
289
|
-
* configuration.
|
|
225
|
+
* @typedef Events
|
|
226
|
+
* @property {string} [slug]
|
|
227
|
+
* @property {string} [topic]
|
|
290
228
|
*/
|
|
291
229
|
|
|
292
230
|
/**
|
|
293
|
-
* @typedef
|
|
294
|
-
* @property {
|
|
295
|
-
* @property {
|
|
296
|
-
* @property {
|
|
297
|
-
* @property {
|
|
298
|
-
* @property {
|
|
299
|
-
* @property {
|
|
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
|
|
304
|
-
* @property {
|
|
305
|
-
* @property {string} [name]
|
|
306
|
-
* @property {string} [
|
|
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 {
|
|
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
|
|
313
|
-
* @property {
|
|
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
|
|
318
|
-
* @property {
|
|
319
|
-
*
|
|
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 {
|
|
341
|
-
static
|
|
382
|
+
/** @returns {PingWebhook} */
|
|
383
|
+
static PingWebhook() {
|
|
342
384
|
return Joi.object({
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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
|
-
|
|
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 {
|
|
384
|
-
static
|
|
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 {
|
|
418
|
-
static
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 {
|
|
514
|
-
static
|
|
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.
|
|
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.
|
|
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
|
*
|