@gofynd/fdk-client-javascript 1.6.4 → 3.1.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 +100 -80
- package/sdk/application/Cart/CartApplicationClient.js +257 -126
- 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 +61 -21
- package/sdk/application/Content/ContentApplicationClient.js +250 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
- 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 +0 -10
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
- 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 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- 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 +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
- package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
- 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 -238
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
- 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 +506 -270
- package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -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 +1206 -459
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
- 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 +871 -1315
- package/sdk/platform/Content/ContentPlatformModel.js +940 -599
- 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 +486 -277
- package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
- package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
- 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 +3531 -1292
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
- 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 +2188 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
- 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 +11 -50
- package/sdk/platform/Share/SharePlatformModel.js +5 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
- 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 +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- 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/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 +0 -2
- package/sdk/public/PublicClient.js +0 -4
- 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 +0 -1
- package/sdk/public/index.js +0 -2
- 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,4 +1,44 @@
|
|
|
1
1
|
export = WebhookPlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef Event
|
|
4
|
+
* @property {string} [event_name]
|
|
5
|
+
* @property {string} [event_type]
|
|
6
|
+
* @property {string} [event_category]
|
|
7
|
+
* @property {string} [version]
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @typedef EventProcessRequest
|
|
11
|
+
* @property {string} [search_text]
|
|
12
|
+
* @property {string} end_date
|
|
13
|
+
* @property {string} start_date
|
|
14
|
+
* @property {number[]} [subscriber_ids]
|
|
15
|
+
* @property {string} [status]
|
|
16
|
+
* @property {Event[]} [event]
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @typedef DownloadReportResponse
|
|
20
|
+
* @property {string} [file_name]
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @typedef EventProcessReports
|
|
24
|
+
* @property {EventProcessReportObject[]} [rows]
|
|
25
|
+
* @property {Page} [page]
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* @typedef EventProcessReportObject
|
|
29
|
+
* @property {string} [event_name] - The name of the processed event.
|
|
30
|
+
* @property {number} [response_code] - The response code of the event.
|
|
31
|
+
* @property {string} [response_message] - The response message of the event.
|
|
32
|
+
* @property {string} [data] - The data associated with the event.
|
|
33
|
+
* @property {number} [attempt] - The attempt number of the event.
|
|
34
|
+
* @property {number} [last_attempted_on] - The timestamp of the last attempted event.
|
|
35
|
+
* @property {string} [status] - The status of the event (e.g., "FAILED").
|
|
36
|
+
* @property {string} [name] - The name of the event.
|
|
37
|
+
* @property {string} [webhook_url] - The webhook URL associated with the event.
|
|
38
|
+
* @property {number} [response_time] - The response time of the event.
|
|
39
|
+
* @property {string} [message_id]
|
|
40
|
+
* @property {string} [event_trace_id]
|
|
41
|
+
*/
|
|
2
42
|
/**
|
|
3
43
|
* @typedef Page
|
|
4
44
|
* @property {number} [item_total] - The total number of items on the page.
|
|
@@ -8,314 +48,312 @@ export = WebhookPlatformModel;
|
|
|
8
48
|
* @property {number} [current] - The current page number.
|
|
9
49
|
* @property {string} type - The type of the page, such as 'PageType'.
|
|
10
50
|
* @property {number} [size] - The number of items per page.
|
|
51
|
+
* @property {number} [total] - Total number of items.
|
|
11
52
|
*/
|
|
12
53
|
/**
|
|
13
|
-
* @typedef
|
|
14
|
-
* @property {string}
|
|
15
|
-
* @property {
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @property {string} [workflow_name] - The name of the workflow related to the
|
|
19
|
-
* broadcaster.
|
|
20
|
-
* @property {string} [account_id] - The account ID associated with the broadcaster.
|
|
21
|
-
* @property {string} [detail_type] - The type of detail for the broadcaster
|
|
22
|
-
* configuration.
|
|
54
|
+
* @typedef PingWebhook
|
|
55
|
+
* @property {string} webhook_url - The URL of the subscriber's webhook to ping.
|
|
56
|
+
* @property {Object} [auth_meta] - Authentication metadata (if required by the
|
|
57
|
+
* subscriber).
|
|
58
|
+
* @property {Object} [custom_headers] - Custom headers to include in the ping request.
|
|
23
59
|
*/
|
|
24
60
|
/**
|
|
25
|
-
* @typedef
|
|
26
|
-
* @property {
|
|
27
|
-
* @property {
|
|
28
|
-
* @property {number} [
|
|
29
|
-
* @property {FilterSchema} [filters]
|
|
30
|
-
* @property {Object} [reducer] - The reducer property allows users to customize
|
|
31
|
-
* the JSON structure of the webhook payload using JSONPath queries. They can
|
|
32
|
-
* also create new properties by mapping existing ones. Note that it overrides
|
|
33
|
-
* the entire JSON structure of the webhook payload sent via the webhook. See
|
|
34
|
-
* the partner documentation's filter and reducer section for details.
|
|
35
|
-
* @property {BroadcasterConfig} [broadcaster_config]
|
|
36
|
-
* @property {string} [created_on] - The date and time when the subscriber event
|
|
37
|
-
* mapping was created.
|
|
61
|
+
* @typedef PingWebhookResponse
|
|
62
|
+
* @property {string} [status] - The status of the ping (e.g., "SUCCESS").
|
|
63
|
+
* @property {string} [message] - An optional message related to the ping.
|
|
64
|
+
* @property {number} [code] - The HTTP status code of the ping response (e.g., 200).
|
|
38
65
|
*/
|
|
39
66
|
/**
|
|
40
|
-
* @typedef
|
|
41
|
-
* @property {
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @property {string} [
|
|
45
|
-
*
|
|
46
|
-
* function determines whether the filter passes based on its return value.
|
|
47
|
-
* @property {string} [logic] - Logical operator used to combine multiple
|
|
48
|
-
* conditions in the `conditions` array. Supported values are `AND` and `OR`.
|
|
49
|
-
* @property {Object[]} [conditions] - An array of filter objects to be
|
|
50
|
-
* evaluated using the specified logical operator. This array will contain
|
|
51
|
-
* more filters including a combination of single condition mode and logical
|
|
52
|
-
* group mode filters.
|
|
67
|
+
* @typedef SubscriberEventMapping
|
|
68
|
+
* @property {number} [id]
|
|
69
|
+
* @property {number} [event_id]
|
|
70
|
+
* @property {number} [subscriber_id]
|
|
71
|
+
* @property {string} [topic]
|
|
72
|
+
* @property {string} [created_on]
|
|
53
73
|
*/
|
|
54
74
|
/**
|
|
55
75
|
* @typedef EventConfig
|
|
56
|
-
* @property {number} [id]
|
|
57
|
-
* @property {string} [
|
|
58
|
-
* @property {string} [
|
|
59
|
-
* @property {string} [
|
|
60
|
-
* @property {string} [event_category] - The category of the event.
|
|
61
|
-
* @property {string} [modified_by] - The identifier of the user who last
|
|
62
|
-
* modified the event configuration.
|
|
76
|
+
* @property {number} [id]
|
|
77
|
+
* @property {string} [event_name]
|
|
78
|
+
* @property {string} [event_type]
|
|
79
|
+
* @property {string} [event_category]
|
|
63
80
|
* @property {SubscriberEventMapping} [subscriber_event_mapping]
|
|
64
|
-
* @property {Object} [event_schema]
|
|
65
|
-
*
|
|
66
|
-
* @property {string} [
|
|
67
|
-
*
|
|
68
|
-
* @property {string} [
|
|
69
|
-
* @property {string} [
|
|
70
|
-
* @property {string} [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
* @property {
|
|
75
|
-
|
|
81
|
+
* @property {Object} [event_schema]
|
|
82
|
+
* @property {string} [group]
|
|
83
|
+
* @property {string} [version]
|
|
84
|
+
* @property {string} [display_name]
|
|
85
|
+
* @property {string} [description]
|
|
86
|
+
* @property {string} [created_on]
|
|
87
|
+
* @property {string} [updated_on]
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @typedef EventConfigResponse
|
|
91
|
+
* @property {EventConfig[]} [event_configs]
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @typedef ReportFiltersPayload
|
|
95
|
+
* @property {number[]} subscriber_ids - An array of subscriber IDs for
|
|
96
|
+
* filtering filters (optional).
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* @typedef ReportFilterResponse
|
|
100
|
+
* @property {string} [filter_name] - The name of the filter.
|
|
101
|
+
* @property {Object[]} [values]
|
|
102
|
+
*/
|
|
103
|
+
/**
|
|
104
|
+
* @typedef HistoryPayload
|
|
105
|
+
* @property {string} type - The type of history report (e.g., "platform").
|
|
106
|
+
* @property {number} [page_no] - The page number of the history report.
|
|
107
|
+
* @property {number} [page_size] - The number of records per page.
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* @typedef HistoryFilters
|
|
111
|
+
* @property {string[]} [events]
|
|
112
|
+
* @property {string} [search_text]
|
|
113
|
+
* @property {string} [status] - The status of the history report (e.g., "FAILED").
|
|
114
|
+
* @property {string} [end_date] - The end date and time of the history report.
|
|
115
|
+
* @property {string} [start_date] - The start date and time of the history report.
|
|
116
|
+
* @property {number[]} [subscribers] - An array of subscriber IDs associated
|
|
117
|
+
* with the history report.
|
|
118
|
+
* @property {string[]} [webhook_type] - An array of webhook type to identify
|
|
119
|
+
* thetype of subscriber i.e (KAFKA or REST).
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* @typedef Url
|
|
123
|
+
* @property {string} [url] - The URL of the uploaded report file.
|
|
124
|
+
* @property {string} [name] - The name of the uploaded report file.
|
|
125
|
+
*/
|
|
126
|
+
/**
|
|
127
|
+
* @typedef CdnObject
|
|
128
|
+
* @property {Url[]} [urls]
|
|
76
129
|
*/
|
|
77
130
|
/**
|
|
78
|
-
* @typedef
|
|
79
|
-
* @property {
|
|
131
|
+
* @typedef UploadServiceObject
|
|
132
|
+
* @property {CdnObject} [cdn]
|
|
133
|
+
*/
|
|
134
|
+
/**
|
|
135
|
+
* @typedef HistoryAssociation
|
|
136
|
+
* @property {number} [company_id]
|
|
137
|
+
* @property {number[]} [subscriber_ids]
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* @typedef HistoryItems
|
|
141
|
+
* @property {number} [id] - The ID of the history report.
|
|
142
|
+
* @property {HistoryAssociation} [association]
|
|
143
|
+
* @property {HistoryFilters} [filters]
|
|
144
|
+
* @property {string} [filename] - The filename of the history report.
|
|
145
|
+
* @property {string} [status] - The status of the history report (e.g., "COMPLETED").
|
|
146
|
+
* @property {UploadServiceObject} [upload_service_response]
|
|
147
|
+
* @property {string} [created_on] - The date and time when the history report
|
|
148
|
+
* was created.
|
|
149
|
+
* @property {string} [updated_on] - The date and time when the history report
|
|
150
|
+
* was last updated.
|
|
151
|
+
* @property {string} [message] - A message related to the history report.
|
|
152
|
+
*/
|
|
153
|
+
/**
|
|
154
|
+
* @typedef HistoryResponse
|
|
155
|
+
* @property {HistoryItems[]} [items]
|
|
156
|
+
* @property {Page} [page]
|
|
157
|
+
*/
|
|
158
|
+
/**
|
|
159
|
+
* @typedef CancelResponse
|
|
160
|
+
* @property {string} [message] - The HTTP status code of the response (e.g., 200).
|
|
80
161
|
*/
|
|
81
162
|
/**
|
|
82
163
|
* @typedef Association
|
|
83
|
-
* @property {string[]} [application_id]
|
|
84
|
-
*
|
|
85
|
-
* @property {string} [
|
|
86
|
-
* @property {string} [criteria] - The criteria for the association, such as
|
|
87
|
-
* "ALL", "EMPTY", or "SPECIFIC-EVENTS".
|
|
164
|
+
* @property {string[]} [application_id]
|
|
165
|
+
* @property {string} [extension_id]
|
|
166
|
+
* @property {string} [criteria]
|
|
88
167
|
*/
|
|
89
168
|
/**
|
|
90
169
|
* @typedef AssociationResp
|
|
91
|
-
* @property {number} [company_id]
|
|
92
|
-
* @property {string[]} [application_id]
|
|
93
|
-
*
|
|
94
|
-
* @property {string} [
|
|
95
|
-
* @property {string} [criteria] - The criteria for the response, such as "ALL",
|
|
96
|
-
* "EMPTY", or "SPECIFIC-EVENTS".
|
|
170
|
+
* @property {number} [company_id]
|
|
171
|
+
* @property {string[]} [application_id]
|
|
172
|
+
* @property {string} [extension_id]
|
|
173
|
+
* @property {string} [criteria]
|
|
97
174
|
*/
|
|
98
175
|
/**
|
|
99
176
|
* @typedef AuthMeta
|
|
100
|
-
* @property {string} [type]
|
|
101
|
-
* @property {string} [secret]
|
|
177
|
+
* @property {string} [type]
|
|
178
|
+
* @property {string} [secret]
|
|
102
179
|
*/
|
|
103
180
|
/**
|
|
104
|
-
* @typedef
|
|
105
|
-
* @property {number} [id]
|
|
106
|
-
* @property {string} [modified_by]
|
|
107
|
-
*
|
|
108
|
-
* @property {string} [
|
|
109
|
-
* @property {string} [
|
|
110
|
-
* @property {string} [webhook_url] - The URL for the subscriber's webhook.
|
|
181
|
+
* @typedef SubscriberResponse
|
|
182
|
+
* @property {number} [id]
|
|
183
|
+
* @property {string} [modified_by]
|
|
184
|
+
* @property {string} [name]
|
|
185
|
+
* @property {string} [provider]
|
|
186
|
+
* @property {string} [webhook_url]
|
|
111
187
|
* @property {AssociationResp} [association]
|
|
112
|
-
* @property {Object} [custom_headers]
|
|
188
|
+
* @property {Object} [custom_headers]
|
|
113
189
|
* @property {SubscriberStatus} [status]
|
|
114
|
-
* @property {string} [email_id]
|
|
115
|
-
* @property {string} [updated_on]
|
|
116
|
-
*
|
|
117
|
-
* @property {string} [
|
|
118
|
-
* @property {string} [type] - The type of subscriber, which can either be passed as null.
|
|
190
|
+
* @property {string} [email_id]
|
|
191
|
+
* @property {string} [updated_on]
|
|
192
|
+
* @property {string} [created_on]
|
|
193
|
+
* @property {string} [type]
|
|
119
194
|
* @property {AuthMeta} [auth_meta]
|
|
120
|
-
* @property {EventConfig[]} [event_configs]
|
|
195
|
+
* @property {EventConfig[]} [event_configs]
|
|
121
196
|
*/
|
|
122
197
|
/**
|
|
123
198
|
* @typedef Events
|
|
124
|
-
* @property {string} [slug]
|
|
125
|
-
* @property {string} [topic]
|
|
126
|
-
* @property {string} [queue] - The queue associated with the event in case of
|
|
127
|
-
* provider as Pub/Sub.
|
|
128
|
-
* @property {string} [event_bridge_name] - The name of the event bridge
|
|
129
|
-
* associated with the event in case of provider as AWS event bridge.
|
|
130
|
-
* @property {string} [workflow_name] - The name of the workflow related to the
|
|
131
|
-
* event in case of provider as temporal.
|
|
132
|
-
* @property {string} [detail_type] - The type of detail for the event.
|
|
199
|
+
* @property {string} [slug]
|
|
200
|
+
* @property {string} [topic]
|
|
133
201
|
*/
|
|
134
202
|
/**
|
|
135
203
|
* @typedef SubscriberConfigPostRequestV2
|
|
136
|
-
* @property {string} name
|
|
137
|
-
* @property {string} [type]
|
|
138
|
-
* @property {string} [webhook_url]
|
|
139
|
-
* @property {string} provider
|
|
204
|
+
* @property {string} name
|
|
205
|
+
* @property {string} [type]
|
|
206
|
+
* @property {string} [webhook_url]
|
|
207
|
+
* @property {string} provider
|
|
140
208
|
* @property {Association} association
|
|
141
|
-
* @property {Object} [custom_headers]
|
|
209
|
+
* @property {Object} [custom_headers]
|
|
142
210
|
* @property {SubscriberStatus} status
|
|
143
|
-
* @property {string} email_id
|
|
211
|
+
* @property {string} email_id
|
|
144
212
|
* @property {AuthMeta} [auth_meta]
|
|
145
|
-
* @property {Events[]} events
|
|
213
|
+
* @property {Events[]} events
|
|
146
214
|
*/
|
|
147
215
|
/**
|
|
148
216
|
* @typedef SubscriberConfigUpdateRequestV2
|
|
149
|
-
* @property {number} id
|
|
150
|
-
* @property {string} [name]
|
|
151
|
-
* @property {string} [type]
|
|
152
|
-
* @property {string} [webhook_url]
|
|
153
|
-
* @property {string} provider
|
|
217
|
+
* @property {number} id
|
|
218
|
+
* @property {string} [name]
|
|
219
|
+
* @property {string} [type]
|
|
220
|
+
* @property {string} [webhook_url]
|
|
221
|
+
* @property {string} provider
|
|
154
222
|
* @property {Association} [association]
|
|
155
|
-
* @property {Object} [custom_headers]
|
|
223
|
+
* @property {Object} [custom_headers]
|
|
156
224
|
* @property {SubscriberStatus} status
|
|
157
|
-
* @property {string} [email_id]
|
|
225
|
+
* @property {string} [email_id]
|
|
158
226
|
* @property {AuthMeta} [auth_meta]
|
|
159
|
-
* @property {Events[]} [events]
|
|
227
|
+
* @property {Events[]} [events]
|
|
160
228
|
*/
|
|
161
229
|
/**
|
|
162
230
|
* @typedef SubscriberConfigPost
|
|
163
|
-
* @property {string} name
|
|
164
|
-
* @property {string} [type]
|
|
165
|
-
* @property {string} webhook_url
|
|
231
|
+
* @property {string} name
|
|
232
|
+
* @property {string} [type]
|
|
233
|
+
* @property {string} webhook_url
|
|
166
234
|
* @property {Association} association
|
|
167
|
-
* @property {Object} [custom_headers]
|
|
235
|
+
* @property {Object} [custom_headers]
|
|
168
236
|
* @property {SubscriberStatus} status
|
|
169
|
-
* @property {string} email_id
|
|
237
|
+
* @property {string} email_id
|
|
170
238
|
* @property {AuthMeta} [auth_meta]
|
|
171
|
-
* @property {number[]} event_id
|
|
239
|
+
* @property {number[]} event_id
|
|
172
240
|
*/
|
|
173
241
|
/**
|
|
174
242
|
* @typedef SubscriberConfigUpdate
|
|
175
|
-
* @property {number} id
|
|
176
|
-
* @property {string} [name]
|
|
177
|
-
* @property {string} [type]
|
|
178
|
-
* @property {string} [webhook_url]
|
|
243
|
+
* @property {number} id
|
|
244
|
+
* @property {string} [name]
|
|
245
|
+
* @property {string} [type]
|
|
246
|
+
* @property {string} [webhook_url]
|
|
179
247
|
* @property {Association} [association]
|
|
180
|
-
* @property {Object} [custom_headers]
|
|
248
|
+
* @property {Object} [custom_headers]
|
|
181
249
|
* @property {SubscriberStatus} [status]
|
|
182
|
-
* @property {string} [email_id]
|
|
250
|
+
* @property {string} [email_id]
|
|
183
251
|
* @property {AuthMeta} [auth_meta]
|
|
184
|
-
* @property {number[]} event_id
|
|
252
|
+
* @property {number[]} event_id
|
|
185
253
|
*/
|
|
186
254
|
/**
|
|
187
|
-
* @typedef
|
|
188
|
-
* @property {number} [id]
|
|
189
|
-
* @property {string} [modified_by]
|
|
190
|
-
*
|
|
191
|
-
* @property {string} [
|
|
192
|
-
* @property {string} [
|
|
193
|
-
* @property {string} [provider] - The provider of the subscriber.
|
|
255
|
+
* @typedef SubscriberConfigResponse
|
|
256
|
+
* @property {number} [id]
|
|
257
|
+
* @property {string} [modified_by]
|
|
258
|
+
* @property {string} [name]
|
|
259
|
+
* @property {string} [webhook_url]
|
|
260
|
+
* @property {string} [provider]
|
|
194
261
|
* @property {AssociationResp} [association]
|
|
195
|
-
* @property {Object} [custom_headers]
|
|
262
|
+
* @property {Object} [custom_headers]
|
|
196
263
|
* @property {SubscriberStatus} [status]
|
|
197
|
-
* @property {string} [email_id]
|
|
198
|
-
* @property {string} [updated_on]
|
|
199
|
-
*
|
|
200
|
-
* @property {string} [
|
|
201
|
-
* @property {string} [type] - The type of the subscriber, which can be null.
|
|
264
|
+
* @property {string} [email_id]
|
|
265
|
+
* @property {string} [updated_on]
|
|
266
|
+
* @property {string} [created_on]
|
|
267
|
+
* @property {string} [type]
|
|
202
268
|
* @property {AuthMeta} [auth_meta]
|
|
203
|
-
* @property {number[]} [event_id]
|
|
269
|
+
* @property {number[]} [event_id]
|
|
204
270
|
*/
|
|
205
271
|
/**
|
|
206
272
|
* @typedef SubscriberConfigList
|
|
207
|
-
* @property {
|
|
273
|
+
* @property {SubscriberResponse[]} [items]
|
|
208
274
|
* @property {Page} [page]
|
|
209
275
|
*/
|
|
210
|
-
/**
|
|
211
|
-
* @typedef RestEventData
|
|
212
|
-
* @property {string} event_category - The category of the event.
|
|
213
|
-
* @property {string} event_name - The name of the event.
|
|
214
|
-
* @property {string} event_type - The type of the event.
|
|
215
|
-
* @property {number} version - The version number of the event.
|
|
216
|
-
*/
|
|
217
|
-
/**
|
|
218
|
-
* @typedef RestConfig
|
|
219
|
-
* @property {string} webhook_url - The URL for the webhook.
|
|
220
|
-
* @property {string} type - The type of the configuration.
|
|
221
|
-
* @property {Object} [custom_headers] - Custom headers for the configuration.
|
|
222
|
-
* @property {AuthMeta} [auth_meta]
|
|
223
|
-
* @property {RestEventData[]} events - List of event data for configuration.
|
|
224
|
-
*/
|
|
225
|
-
/**
|
|
226
|
-
* @typedef QueueEventData
|
|
227
|
-
* @property {string} event_category - The category of the event.
|
|
228
|
-
* @property {string} event_name - The name of the event.
|
|
229
|
-
* @property {string} event_type - The type of the event.
|
|
230
|
-
* @property {number} version - The version number of the event.
|
|
231
|
-
* @property {string} topic - The topic associated with the event.
|
|
232
|
-
*/
|
|
233
|
-
/**
|
|
234
|
-
* @typedef KafkaConfig
|
|
235
|
-
* @property {string} [type] - Type of Kafka configuration (optional).
|
|
236
|
-
* @property {QueueEventData[]} events - List of event data for configuration.
|
|
237
|
-
*/
|
|
238
|
-
/**
|
|
239
|
-
* @typedef PubSubConfig
|
|
240
|
-
* @property {string} [type] - Type of Pub/Sub configuration (optional).
|
|
241
|
-
* @property {QueueEventData[]} events - List of event data for configuration.
|
|
242
|
-
*/
|
|
243
|
-
/**
|
|
244
|
-
* @typedef TemporalEventData
|
|
245
|
-
* @property {string} event_category - The category of the event.
|
|
246
|
-
* @property {string} event_name - The name of the event.
|
|
247
|
-
* @property {string} event_type - The type of the event.
|
|
248
|
-
* @property {number} version - The version number of the event.
|
|
249
|
-
* @property {string} [queue] - The queue associated with the event.
|
|
250
|
-
* @property {string} [workflow_name] - The workflow name related to the event.
|
|
251
|
-
*/
|
|
252
|
-
/**
|
|
253
|
-
* @typedef TemporalConfig
|
|
254
|
-
* @property {string} [type] - Type of Temporal configuration (optional).
|
|
255
|
-
* @property {TemporalEventData[]} events - List of event data for configuration.
|
|
256
|
-
*/
|
|
257
|
-
/**
|
|
258
|
-
* @typedef SqsEventData
|
|
259
|
-
* @property {string} event_category - The category of the event.
|
|
260
|
-
* @property {string} event_name - The name of the event.
|
|
261
|
-
* @property {string} event_type - The type of the event.
|
|
262
|
-
* @property {number} version - The version number of the event.
|
|
263
|
-
* @property {string} [queue] - The queue name associated with the event in SQS.
|
|
264
|
-
*/
|
|
265
|
-
/**
|
|
266
|
-
* @typedef SqsConfig
|
|
267
|
-
* @property {string} [type] - Type of SQS configuration (optional).
|
|
268
|
-
* @property {SqsEventData[]} events - List of event data for configuration.
|
|
269
|
-
*/
|
|
270
|
-
/**
|
|
271
|
-
* @typedef EventBridgeData
|
|
272
|
-
* @property {string} event_category - The category of the event.
|
|
273
|
-
* @property {string} event_name - The name of the event.
|
|
274
|
-
* @property {string} event_type - The type of the event.
|
|
275
|
-
* @property {number} version - The version number of the event.
|
|
276
|
-
* @property {string} [event_bridge_name] - The name of the event bridge related
|
|
277
|
-
* to the event.
|
|
278
|
-
*/
|
|
279
|
-
/**
|
|
280
|
-
* @typedef EventBridgeConfig
|
|
281
|
-
* @property {string} [type] - Type of event configuration (optional).
|
|
282
|
-
* @property {EventBridgeData[]} events - List of event data for EventBridge
|
|
283
|
-
* configuration.
|
|
284
|
-
*/
|
|
285
|
-
/**
|
|
286
|
-
* @typedef EventMapBody
|
|
287
|
-
* @property {RestConfig} [rest]
|
|
288
|
-
* @property {KafkaConfig} [kafka]
|
|
289
|
-
* @property {PubSubConfig} [pub_sub]
|
|
290
|
-
* @property {TemporalConfig} [temporal]
|
|
291
|
-
* @property {SqsConfig} [sqs]
|
|
292
|
-
* @property {EventBridgeConfig} [event_bridge]
|
|
293
|
-
*/
|
|
294
|
-
/**
|
|
295
|
-
* @typedef WebhookConfig
|
|
296
|
-
* @property {string} [notification_email] - The email address for notifications.
|
|
297
|
-
* @property {string} [name] - The name of the webhook configuration.
|
|
298
|
-
* @property {string} [status] - The status of the webhook (e.g., active or inactive).
|
|
299
|
-
* @property {Association} [association]
|
|
300
|
-
* @property {EventMapBody} [event_map]
|
|
301
|
-
*/
|
|
302
|
-
/**
|
|
303
|
-
* @typedef UpsertSubscriberConfig
|
|
304
|
-
* @property {WebhookConfig} webhook_config
|
|
305
|
-
*/
|
|
306
|
-
/**
|
|
307
|
-
* @typedef UpsertSubscriberConfigResult
|
|
308
|
-
* @property {boolean} [status] - The status of the upsert operation (e.g.,
|
|
309
|
-
* success or failure).
|
|
310
|
-
* @property {string} [message] - A message providing details about the upsert
|
|
311
|
-
* operation result.
|
|
312
|
-
*/
|
|
313
276
|
/** @typedef {"active" | "inactive"} SubscriberStatus */
|
|
314
277
|
declare class WebhookPlatformModel {
|
|
315
278
|
}
|
|
316
279
|
declare namespace WebhookPlatformModel {
|
|
317
|
-
export {
|
|
280
|
+
export { Event, EventProcessRequest, DownloadReportResponse, EventProcessReports, EventProcessReportObject, Page, PingWebhook, PingWebhookResponse, SubscriberEventMapping, EventConfig, EventConfigResponse, ReportFiltersPayload, ReportFilterResponse, HistoryPayload, HistoryFilters, Url, CdnObject, UploadServiceObject, HistoryAssociation, HistoryItems, HistoryResponse, CancelResponse, Association, AssociationResp, AuthMeta, SubscriberResponse, Events, SubscriberConfigPostRequestV2, SubscriberConfigUpdateRequestV2, SubscriberConfigPost, SubscriberConfigUpdate, SubscriberConfigResponse, SubscriberConfigList, SubscriberStatus };
|
|
318
281
|
}
|
|
282
|
+
/** @returns {Event} */
|
|
283
|
+
declare function Event(): Event;
|
|
284
|
+
type Event = {
|
|
285
|
+
event_name?: string;
|
|
286
|
+
event_type?: string;
|
|
287
|
+
event_category?: string;
|
|
288
|
+
version?: string;
|
|
289
|
+
};
|
|
290
|
+
/** @returns {EventProcessRequest} */
|
|
291
|
+
declare function EventProcessRequest(): EventProcessRequest;
|
|
292
|
+
type EventProcessRequest = {
|
|
293
|
+
search_text?: string;
|
|
294
|
+
end_date: string;
|
|
295
|
+
start_date: string;
|
|
296
|
+
subscriber_ids?: number[];
|
|
297
|
+
status?: string;
|
|
298
|
+
event?: Event[];
|
|
299
|
+
};
|
|
300
|
+
/** @returns {DownloadReportResponse} */
|
|
301
|
+
declare function DownloadReportResponse(): DownloadReportResponse;
|
|
302
|
+
type DownloadReportResponse = {
|
|
303
|
+
file_name?: string;
|
|
304
|
+
};
|
|
305
|
+
/** @returns {EventProcessReports} */
|
|
306
|
+
declare function EventProcessReports(): EventProcessReports;
|
|
307
|
+
type EventProcessReports = {
|
|
308
|
+
rows?: EventProcessReportObject[];
|
|
309
|
+
page?: Page;
|
|
310
|
+
};
|
|
311
|
+
/** @returns {EventProcessReportObject} */
|
|
312
|
+
declare function EventProcessReportObject(): EventProcessReportObject;
|
|
313
|
+
type EventProcessReportObject = {
|
|
314
|
+
/**
|
|
315
|
+
* - The name of the processed event.
|
|
316
|
+
*/
|
|
317
|
+
event_name?: string;
|
|
318
|
+
/**
|
|
319
|
+
* - The response code of the event.
|
|
320
|
+
*/
|
|
321
|
+
response_code?: number;
|
|
322
|
+
/**
|
|
323
|
+
* - The response message of the event.
|
|
324
|
+
*/
|
|
325
|
+
response_message?: string;
|
|
326
|
+
/**
|
|
327
|
+
* - The data associated with the event.
|
|
328
|
+
*/
|
|
329
|
+
data?: string;
|
|
330
|
+
/**
|
|
331
|
+
* - The attempt number of the event.
|
|
332
|
+
*/
|
|
333
|
+
attempt?: number;
|
|
334
|
+
/**
|
|
335
|
+
* - The timestamp of the last attempted event.
|
|
336
|
+
*/
|
|
337
|
+
last_attempted_on?: number;
|
|
338
|
+
/**
|
|
339
|
+
* - The status of the event (e.g., "FAILED").
|
|
340
|
+
*/
|
|
341
|
+
status?: string;
|
|
342
|
+
/**
|
|
343
|
+
* - The name of the event.
|
|
344
|
+
*/
|
|
345
|
+
name?: string;
|
|
346
|
+
/**
|
|
347
|
+
* - The webhook URL associated with the event.
|
|
348
|
+
*/
|
|
349
|
+
webhook_url?: string;
|
|
350
|
+
/**
|
|
351
|
+
* - The response time of the event.
|
|
352
|
+
*/
|
|
353
|
+
response_time?: number;
|
|
354
|
+
message_id?: string;
|
|
355
|
+
event_trace_id?: string;
|
|
356
|
+
};
|
|
319
357
|
/** @returns {Page} */
|
|
320
358
|
declare function Page(): Page;
|
|
321
359
|
type Page = {
|
|
@@ -347,756 +385,336 @@ type Page = {
|
|
|
347
385
|
* - The number of items per page.
|
|
348
386
|
*/
|
|
349
387
|
size?: number;
|
|
388
|
+
/**
|
|
389
|
+
* - Total number of items.
|
|
390
|
+
*/
|
|
391
|
+
total?: number;
|
|
350
392
|
};
|
|
351
|
-
/** @returns {
|
|
352
|
-
declare function
|
|
353
|
-
type
|
|
393
|
+
/** @returns {PingWebhook} */
|
|
394
|
+
declare function PingWebhook(): PingWebhook;
|
|
395
|
+
type PingWebhook = {
|
|
354
396
|
/**
|
|
355
|
-
* - The
|
|
397
|
+
* - The URL of the subscriber's webhook to ping.
|
|
356
398
|
*/
|
|
357
|
-
|
|
399
|
+
webhook_url: string;
|
|
358
400
|
/**
|
|
359
|
-
* -
|
|
401
|
+
* - Authentication metadata (if required by the
|
|
402
|
+
* subscriber).
|
|
360
403
|
*/
|
|
361
|
-
|
|
404
|
+
auth_meta?: any;
|
|
362
405
|
/**
|
|
363
|
-
* -
|
|
364
|
-
* associated with the broadcaster.
|
|
406
|
+
* - Custom headers to include in the ping request.
|
|
365
407
|
*/
|
|
366
|
-
|
|
408
|
+
custom_headers?: any;
|
|
409
|
+
};
|
|
410
|
+
/** @returns {PingWebhookResponse} */
|
|
411
|
+
declare function PingWebhookResponse(): PingWebhookResponse;
|
|
412
|
+
type PingWebhookResponse = {
|
|
367
413
|
/**
|
|
368
|
-
* - The
|
|
369
|
-
* broadcaster.
|
|
414
|
+
* - The status of the ping (e.g., "SUCCESS").
|
|
370
415
|
*/
|
|
371
|
-
|
|
416
|
+
status?: string;
|
|
372
417
|
/**
|
|
373
|
-
* -
|
|
418
|
+
* - An optional message related to the ping.
|
|
374
419
|
*/
|
|
375
|
-
|
|
420
|
+
message?: string;
|
|
376
421
|
/**
|
|
377
|
-
* - The
|
|
378
|
-
* configuration.
|
|
422
|
+
* - The HTTP status code of the ping response (e.g., 200).
|
|
379
423
|
*/
|
|
380
|
-
|
|
424
|
+
code?: number;
|
|
381
425
|
};
|
|
382
426
|
/** @returns {SubscriberEventMapping} */
|
|
383
427
|
declare function SubscriberEventMapping(): SubscriberEventMapping;
|
|
384
428
|
type SubscriberEventMapping = {
|
|
385
|
-
/**
|
|
386
|
-
* - The unique identifier for the subscriber event mapping.
|
|
387
|
-
*/
|
|
388
429
|
id?: number;
|
|
389
|
-
/**
|
|
390
|
-
* - The ID of the event associated with the subscriber.
|
|
391
|
-
*/
|
|
392
430
|
event_id?: number;
|
|
393
|
-
/**
|
|
394
|
-
* - The ID of the subscriber.
|
|
395
|
-
*/
|
|
396
431
|
subscriber_id?: number;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
432
|
+
topic?: string;
|
|
433
|
+
created_on?: string;
|
|
434
|
+
};
|
|
435
|
+
/** @returns {EventConfig} */
|
|
436
|
+
declare function EventConfig(): EventConfig;
|
|
437
|
+
type EventConfig = {
|
|
438
|
+
id?: number;
|
|
439
|
+
event_name?: string;
|
|
440
|
+
event_type?: string;
|
|
441
|
+
event_category?: string;
|
|
442
|
+
subscriber_event_mapping?: SubscriberEventMapping;
|
|
443
|
+
event_schema?: any;
|
|
444
|
+
group?: string;
|
|
445
|
+
version?: string;
|
|
446
|
+
display_name?: string;
|
|
447
|
+
description?: string;
|
|
411
448
|
created_on?: string;
|
|
449
|
+
updated_on?: string;
|
|
412
450
|
};
|
|
413
|
-
/** @returns {
|
|
414
|
-
declare function
|
|
415
|
-
type
|
|
451
|
+
/** @returns {EventConfigResponse} */
|
|
452
|
+
declare function EventConfigResponse(): EventConfigResponse;
|
|
453
|
+
type EventConfigResponse = {
|
|
454
|
+
event_configs?: EventConfig[];
|
|
455
|
+
};
|
|
456
|
+
/** @returns {ReportFiltersPayload} */
|
|
457
|
+
declare function ReportFiltersPayload(): ReportFiltersPayload;
|
|
458
|
+
type ReportFiltersPayload = {
|
|
416
459
|
/**
|
|
417
|
-
* -
|
|
418
|
-
*
|
|
419
|
-
* within the payload.
|
|
460
|
+
* - An array of subscriber IDs for
|
|
461
|
+
* filtering filters (optional).
|
|
420
462
|
*/
|
|
421
|
-
|
|
463
|
+
subscriber_ids: number[];
|
|
464
|
+
};
|
|
465
|
+
/** @returns {ReportFilterResponse} */
|
|
466
|
+
declare function ReportFilterResponse(): ReportFilterResponse;
|
|
467
|
+
type ReportFilterResponse = {
|
|
422
468
|
/**
|
|
423
|
-
* -
|
|
424
|
-
* specified property in the webhook payload against a condition. This
|
|
425
|
-
* function determines whether the filter passes based on its return value.
|
|
469
|
+
* - The name of the filter.
|
|
426
470
|
*/
|
|
427
|
-
|
|
471
|
+
filter_name?: string;
|
|
472
|
+
values?: any[];
|
|
473
|
+
};
|
|
474
|
+
/** @returns {HistoryPayload} */
|
|
475
|
+
declare function HistoryPayload(): HistoryPayload;
|
|
476
|
+
type HistoryPayload = {
|
|
428
477
|
/**
|
|
429
|
-
* -
|
|
430
|
-
* conditions in the `conditions` array. Supported values are `AND` and `OR`.
|
|
478
|
+
* - The type of history report (e.g., "platform").
|
|
431
479
|
*/
|
|
432
|
-
|
|
480
|
+
type: string;
|
|
433
481
|
/**
|
|
434
|
-
* -
|
|
435
|
-
* evaluated using the specified logical operator. This array will contain
|
|
436
|
-
* more filters including a combination of single condition mode and logical
|
|
437
|
-
* group mode filters.
|
|
482
|
+
* - The page number of the history report.
|
|
438
483
|
*/
|
|
439
|
-
|
|
440
|
-
};
|
|
441
|
-
/** @returns {EventConfig} */
|
|
442
|
-
declare function EventConfig(): EventConfig;
|
|
443
|
-
type EventConfig = {
|
|
484
|
+
page_no?: number;
|
|
444
485
|
/**
|
|
445
|
-
* - The
|
|
486
|
+
* - The number of records per page.
|
|
446
487
|
*/
|
|
447
|
-
|
|
488
|
+
page_size?: number;
|
|
489
|
+
};
|
|
490
|
+
/** @returns {HistoryFilters} */
|
|
491
|
+
declare function HistoryFilters(): HistoryFilters;
|
|
492
|
+
type HistoryFilters = {
|
|
493
|
+
events?: string[];
|
|
494
|
+
search_text?: string;
|
|
448
495
|
/**
|
|
449
|
-
* - The
|
|
496
|
+
* - The status of the history report (e.g., "FAILED").
|
|
450
497
|
*/
|
|
451
|
-
|
|
498
|
+
status?: string;
|
|
452
499
|
/**
|
|
453
|
-
* - The
|
|
500
|
+
* - The end date and time of the history report.
|
|
454
501
|
*/
|
|
455
|
-
|
|
502
|
+
end_date?: string;
|
|
456
503
|
/**
|
|
457
|
-
* - The
|
|
504
|
+
* - The start date and time of the history report.
|
|
458
505
|
*/
|
|
459
|
-
|
|
506
|
+
start_date?: string;
|
|
460
507
|
/**
|
|
461
|
-
* -
|
|
508
|
+
* - An array of subscriber IDs associated
|
|
509
|
+
* with the history report.
|
|
462
510
|
*/
|
|
463
|
-
|
|
511
|
+
subscribers?: number[];
|
|
464
512
|
/**
|
|
465
|
-
* -
|
|
466
|
-
*
|
|
513
|
+
* - An array of webhook type to identify
|
|
514
|
+
* thetype of subscriber i.e (KAFKA or REST).
|
|
467
515
|
*/
|
|
468
|
-
|
|
469
|
-
|
|
516
|
+
webhook_type?: string[];
|
|
517
|
+
};
|
|
518
|
+
/** @returns {Url} */
|
|
519
|
+
declare function Url(): Url;
|
|
520
|
+
type Url = {
|
|
470
521
|
/**
|
|
471
|
-
* - The
|
|
472
|
-
* additional properties and may be null.
|
|
522
|
+
* - The URL of the uploaded report file.
|
|
473
523
|
*/
|
|
474
|
-
|
|
524
|
+
url?: string;
|
|
475
525
|
/**
|
|
476
|
-
* - The
|
|
477
|
-
* configuration, which may be null.
|
|
526
|
+
* - The name of the uploaded report file.
|
|
478
527
|
*/
|
|
479
|
-
|
|
528
|
+
name?: string;
|
|
529
|
+
};
|
|
530
|
+
/** @returns {CdnObject} */
|
|
531
|
+
declare function CdnObject(): CdnObject;
|
|
532
|
+
type CdnObject = {
|
|
533
|
+
urls?: Url[];
|
|
534
|
+
};
|
|
535
|
+
/** @returns {UploadServiceObject} */
|
|
536
|
+
declare function UploadServiceObject(): UploadServiceObject;
|
|
537
|
+
type UploadServiceObject = {
|
|
538
|
+
cdn?: CdnObject;
|
|
539
|
+
};
|
|
540
|
+
/** @returns {HistoryAssociation} */
|
|
541
|
+
declare function HistoryAssociation(): HistoryAssociation;
|
|
542
|
+
type HistoryAssociation = {
|
|
543
|
+
company_id?: number;
|
|
544
|
+
subscriber_ids?: number[];
|
|
545
|
+
};
|
|
546
|
+
/** @returns {HistoryItems} */
|
|
547
|
+
declare function HistoryItems(): HistoryItems;
|
|
548
|
+
type HistoryItems = {
|
|
480
549
|
/**
|
|
481
|
-
* - The
|
|
550
|
+
* - The ID of the history report.
|
|
482
551
|
*/
|
|
483
|
-
|
|
552
|
+
id?: number;
|
|
553
|
+
association?: HistoryAssociation;
|
|
554
|
+
filters?: HistoryFilters;
|
|
484
555
|
/**
|
|
485
|
-
* - The
|
|
556
|
+
* - The filename of the history report.
|
|
486
557
|
*/
|
|
487
|
-
|
|
558
|
+
filename?: string;
|
|
488
559
|
/**
|
|
489
|
-
* -
|
|
490
|
-
* which may be null.
|
|
560
|
+
* - The status of the history report (e.g., "COMPLETED").
|
|
491
561
|
*/
|
|
492
|
-
|
|
562
|
+
status?: string;
|
|
563
|
+
upload_service_response?: UploadServiceObject;
|
|
493
564
|
/**
|
|
494
|
-
* - The date and time when the
|
|
495
|
-
*
|
|
565
|
+
* - The date and time when the history report
|
|
566
|
+
* was created.
|
|
496
567
|
*/
|
|
497
568
|
created_on?: string;
|
|
498
569
|
/**
|
|
499
|
-
* - The date and time when the
|
|
500
|
-
*
|
|
570
|
+
* - The date and time when the history report
|
|
571
|
+
* was last updated.
|
|
501
572
|
*/
|
|
502
573
|
updated_on?: string;
|
|
574
|
+
/**
|
|
575
|
+
* - A message related to the history report.
|
|
576
|
+
*/
|
|
577
|
+
message?: string;
|
|
503
578
|
};
|
|
504
|
-
/** @returns {
|
|
505
|
-
declare function
|
|
506
|
-
type
|
|
579
|
+
/** @returns {HistoryResponse} */
|
|
580
|
+
declare function HistoryResponse(): HistoryResponse;
|
|
581
|
+
type HistoryResponse = {
|
|
582
|
+
items?: HistoryItems[];
|
|
583
|
+
page?: Page;
|
|
584
|
+
};
|
|
585
|
+
/** @returns {CancelResponse} */
|
|
586
|
+
declare function CancelResponse(): CancelResponse;
|
|
587
|
+
type CancelResponse = {
|
|
507
588
|
/**
|
|
508
|
-
* -
|
|
589
|
+
* - The HTTP status code of the response (e.g., 200).
|
|
509
590
|
*/
|
|
510
|
-
|
|
591
|
+
message?: string;
|
|
511
592
|
};
|
|
512
593
|
/** @returns {Association} */
|
|
513
594
|
declare function Association(): Association;
|
|
514
595
|
type Association = {
|
|
515
|
-
/**
|
|
516
|
-
* - A list of application IDs associated
|
|
517
|
-
* with the association.
|
|
518
|
-
*/
|
|
519
596
|
application_id?: string[];
|
|
520
|
-
/**
|
|
521
|
-
* - The extension ID associated with the association.
|
|
522
|
-
*/
|
|
523
597
|
extension_id?: string;
|
|
524
|
-
/**
|
|
525
|
-
* - The criteria for the association, such as
|
|
526
|
-
* "ALL", "EMPTY", or "SPECIFIC-EVENTS".
|
|
527
|
-
*/
|
|
528
598
|
criteria?: string;
|
|
529
599
|
};
|
|
530
600
|
/** @returns {AssociationResp} */
|
|
531
601
|
declare function AssociationResp(): AssociationResp;
|
|
532
602
|
type AssociationResp = {
|
|
533
|
-
/**
|
|
534
|
-
* - The ID of the company associated with the response.
|
|
535
|
-
*/
|
|
536
603
|
company_id?: number;
|
|
537
|
-
/**
|
|
538
|
-
* - A list of application IDs associated
|
|
539
|
-
* with the response.
|
|
540
|
-
*/
|
|
541
604
|
application_id?: string[];
|
|
542
|
-
/**
|
|
543
|
-
* - The extension ID associated with the response.
|
|
544
|
-
*/
|
|
545
605
|
extension_id?: string;
|
|
546
|
-
/**
|
|
547
|
-
* - The criteria for the response, such as "ALL",
|
|
548
|
-
* "EMPTY", or "SPECIFIC-EVENTS".
|
|
549
|
-
*/
|
|
550
606
|
criteria?: string;
|
|
551
607
|
};
|
|
552
608
|
/** @returns {AuthMeta} */
|
|
553
609
|
declare function AuthMeta(): AuthMeta;
|
|
554
610
|
type AuthMeta = {
|
|
555
|
-
/**
|
|
556
|
-
* - The type of authentication method used.
|
|
557
|
-
*/
|
|
558
611
|
type?: string;
|
|
559
|
-
/**
|
|
560
|
-
* - The secret key or token used for authentication.
|
|
561
|
-
*/
|
|
562
612
|
secret?: string;
|
|
563
613
|
};
|
|
564
|
-
/** @returns {
|
|
565
|
-
declare function
|
|
566
|
-
type
|
|
567
|
-
/**
|
|
568
|
-
* - The unique identifier of the subscriber.
|
|
569
|
-
*/
|
|
614
|
+
/** @returns {SubscriberResponse} */
|
|
615
|
+
declare function SubscriberResponse(): SubscriberResponse;
|
|
616
|
+
type SubscriberResponse = {
|
|
570
617
|
id?: number;
|
|
571
|
-
/**
|
|
572
|
-
* - The identifier of the user who last
|
|
573
|
-
* modified the subscriber details.
|
|
574
|
-
*/
|
|
575
618
|
modified_by?: string;
|
|
576
|
-
/**
|
|
577
|
-
* - The name of the subscriber.
|
|
578
|
-
*/
|
|
579
619
|
name?: string;
|
|
580
|
-
/**
|
|
581
|
-
* - The provider of the subscriber.
|
|
582
|
-
*/
|
|
583
620
|
provider?: string;
|
|
584
|
-
/**
|
|
585
|
-
* - The URL for the subscriber's webhook.
|
|
586
|
-
*/
|
|
587
621
|
webhook_url?: string;
|
|
588
622
|
association?: AssociationResp;
|
|
589
|
-
/**
|
|
590
|
-
* - Custom headers for the subscriber.
|
|
591
|
-
*/
|
|
592
623
|
custom_headers?: any;
|
|
593
624
|
status?: SubscriberStatus;
|
|
594
|
-
/**
|
|
595
|
-
* - The email ID associated with the subscriber.
|
|
596
|
-
*/
|
|
597
625
|
email_id?: string;
|
|
598
|
-
/**
|
|
599
|
-
* - The date and time when the subscriber
|
|
600
|
-
* details were last updated.
|
|
601
|
-
*/
|
|
602
626
|
updated_on?: string;
|
|
603
|
-
/**
|
|
604
|
-
* - The date and time when the subscriber was created.
|
|
605
|
-
*/
|
|
606
627
|
created_on?: string;
|
|
607
|
-
/**
|
|
608
|
-
* - The type of subscriber, which can either be passed as null.
|
|
609
|
-
*/
|
|
610
628
|
type?: string;
|
|
611
629
|
auth_meta?: AuthMeta;
|
|
612
|
-
/**
|
|
613
|
-
* - List of event configurations.
|
|
614
|
-
*/
|
|
615
630
|
event_configs?: EventConfig[];
|
|
616
631
|
};
|
|
617
632
|
/** @returns {Events} */
|
|
618
633
|
declare function Events(): Events;
|
|
619
634
|
type Events = {
|
|
620
|
-
/**
|
|
621
|
-
* - The slug or identifier for the event.
|
|
622
|
-
*/
|
|
623
635
|
slug?: string;
|
|
624
|
-
/**
|
|
625
|
-
* - The topic associated with the event.
|
|
626
|
-
*/
|
|
627
636
|
topic?: string;
|
|
628
|
-
/**
|
|
629
|
-
* - The queue associated with the event in case of
|
|
630
|
-
* provider as Pub/Sub.
|
|
631
|
-
*/
|
|
632
|
-
queue?: string;
|
|
633
|
-
/**
|
|
634
|
-
* - The name of the event bridge
|
|
635
|
-
* associated with the event in case of provider as AWS event bridge.
|
|
636
|
-
*/
|
|
637
|
-
event_bridge_name?: string;
|
|
638
|
-
/**
|
|
639
|
-
* - The name of the workflow related to the
|
|
640
|
-
* event in case of provider as temporal.
|
|
641
|
-
*/
|
|
642
|
-
workflow_name?: string;
|
|
643
|
-
/**
|
|
644
|
-
* - The type of detail for the event.
|
|
645
|
-
*/
|
|
646
|
-
detail_type?: string;
|
|
647
637
|
};
|
|
648
638
|
/** @returns {SubscriberConfigPostRequestV2} */
|
|
649
639
|
declare function SubscriberConfigPostRequestV2(): SubscriberConfigPostRequestV2;
|
|
650
640
|
type SubscriberConfigPostRequestV2 = {
|
|
651
|
-
/**
|
|
652
|
-
* - The name of the subscriber.
|
|
653
|
-
*/
|
|
654
641
|
name: string;
|
|
655
|
-
/**
|
|
656
|
-
* - The type of the subscriber, which may be null.
|
|
657
|
-
*/
|
|
658
642
|
type?: string;
|
|
659
|
-
/**
|
|
660
|
-
* - The URL for the subscriber's webhook.
|
|
661
|
-
*/
|
|
662
643
|
webhook_url?: string;
|
|
663
|
-
/**
|
|
664
|
-
* - The provider of the subscriber.
|
|
665
|
-
*/
|
|
666
644
|
provider: string;
|
|
667
645
|
association: Association;
|
|
668
|
-
/**
|
|
669
|
-
* - Custom headers for the subscriber.
|
|
670
|
-
*/
|
|
671
646
|
custom_headers?: any;
|
|
672
647
|
status: SubscriberStatus;
|
|
673
|
-
/**
|
|
674
|
-
* - The email ID associated with the subscriber.
|
|
675
|
-
*/
|
|
676
648
|
email_id: string;
|
|
677
649
|
auth_meta?: AuthMeta;
|
|
678
|
-
/**
|
|
679
|
-
* - The list of events associated with the subscriber.
|
|
680
|
-
*/
|
|
681
650
|
events: Events[];
|
|
682
651
|
};
|
|
683
652
|
/** @returns {SubscriberConfigUpdateRequestV2} */
|
|
684
653
|
declare function SubscriberConfigUpdateRequestV2(): SubscriberConfigUpdateRequestV2;
|
|
685
654
|
type SubscriberConfigUpdateRequestV2 = {
|
|
686
|
-
/**
|
|
687
|
-
* - The unique identifier of the subscriber to be updated.
|
|
688
|
-
*/
|
|
689
655
|
id: number;
|
|
690
|
-
/**
|
|
691
|
-
* - The name of the subscriber.
|
|
692
|
-
*/
|
|
693
656
|
name?: string;
|
|
694
|
-
/**
|
|
695
|
-
* - The type of the subscriber, which may be null.
|
|
696
|
-
*/
|
|
697
657
|
type?: string;
|
|
698
|
-
/**
|
|
699
|
-
* - The URL for the subscriber's webhook.
|
|
700
|
-
*/
|
|
701
658
|
webhook_url?: string;
|
|
702
|
-
/**
|
|
703
|
-
* - The provider of the subscriber.
|
|
704
|
-
*/
|
|
705
659
|
provider: string;
|
|
706
660
|
association?: Association;
|
|
707
|
-
/**
|
|
708
|
-
* - Custom headers for the subscriber.
|
|
709
|
-
*/
|
|
710
661
|
custom_headers?: any;
|
|
711
662
|
status: SubscriberStatus;
|
|
712
|
-
/**
|
|
713
|
-
* - The email ID associated with the subscriber.
|
|
714
|
-
*/
|
|
715
663
|
email_id?: string;
|
|
716
664
|
auth_meta?: AuthMeta;
|
|
717
|
-
/**
|
|
718
|
-
* - The list of events associated with the subscriber.
|
|
719
|
-
*/
|
|
720
665
|
events?: Events[];
|
|
721
666
|
};
|
|
722
667
|
/** @returns {SubscriberConfigPost} */
|
|
723
668
|
declare function SubscriberConfigPost(): SubscriberConfigPost;
|
|
724
669
|
type SubscriberConfigPost = {
|
|
725
|
-
/**
|
|
726
|
-
* - The name of the subscriber.
|
|
727
|
-
*/
|
|
728
670
|
name: string;
|
|
729
|
-
/**
|
|
730
|
-
* - The type of the subscriber, which can be null.
|
|
731
|
-
*/
|
|
732
671
|
type?: string;
|
|
733
|
-
/**
|
|
734
|
-
* - The URL for the subscriber's webhook.
|
|
735
|
-
*/
|
|
736
672
|
webhook_url: string;
|
|
737
673
|
association: Association;
|
|
738
|
-
/**
|
|
739
|
-
* - Custom headers for the subscriber.
|
|
740
|
-
*/
|
|
741
674
|
custom_headers?: any;
|
|
742
675
|
status: SubscriberStatus;
|
|
743
|
-
/**
|
|
744
|
-
* - The email ID associated with the subscriber.
|
|
745
|
-
*/
|
|
746
676
|
email_id: string;
|
|
747
677
|
auth_meta?: AuthMeta;
|
|
748
|
-
/**
|
|
749
|
-
* - The list of event IDs associated with the subscriber.
|
|
750
|
-
*/
|
|
751
678
|
event_id: number[];
|
|
752
679
|
};
|
|
753
680
|
/** @returns {SubscriberConfigUpdate} */
|
|
754
681
|
declare function SubscriberConfigUpdate(): SubscriberConfigUpdate;
|
|
755
682
|
type SubscriberConfigUpdate = {
|
|
756
|
-
/**
|
|
757
|
-
* - The unique identifier of the subscriber to be updated.
|
|
758
|
-
*/
|
|
759
683
|
id: number;
|
|
760
|
-
/**
|
|
761
|
-
* - The name of the subscriber.
|
|
762
|
-
*/
|
|
763
684
|
name?: string;
|
|
764
|
-
/**
|
|
765
|
-
* - The type of the subscriber, which can be null.
|
|
766
|
-
*/
|
|
767
685
|
type?: string;
|
|
768
|
-
/**
|
|
769
|
-
* - The URL for the subscriber's webhook.
|
|
770
|
-
*/
|
|
771
686
|
webhook_url?: string;
|
|
772
687
|
association?: Association;
|
|
773
|
-
/**
|
|
774
|
-
* - Custom headers for the subscriber.
|
|
775
|
-
*/
|
|
776
688
|
custom_headers?: any;
|
|
777
689
|
status?: SubscriberStatus;
|
|
778
|
-
/**
|
|
779
|
-
* - The email ID associated with the subscriber.
|
|
780
|
-
*/
|
|
781
690
|
email_id?: string;
|
|
782
691
|
auth_meta?: AuthMeta;
|
|
783
|
-
/**
|
|
784
|
-
* - The list of event IDs associated with the subscriber.
|
|
785
|
-
*/
|
|
786
692
|
event_id: number[];
|
|
787
693
|
};
|
|
788
|
-
/** @returns {
|
|
789
|
-
declare function
|
|
790
|
-
type
|
|
791
|
-
/**
|
|
792
|
-
* - The unique identifier of the subscriber configuration.
|
|
793
|
-
*/
|
|
694
|
+
/** @returns {SubscriberConfigResponse} */
|
|
695
|
+
declare function SubscriberConfigResponse(): SubscriberConfigResponse;
|
|
696
|
+
type SubscriberConfigResponse = {
|
|
794
697
|
id?: number;
|
|
795
|
-
/**
|
|
796
|
-
* - The identifier of the user who last
|
|
797
|
-
* modified the subscriber configuration.
|
|
798
|
-
*/
|
|
799
698
|
modified_by?: string;
|
|
800
|
-
/**
|
|
801
|
-
* - The name of the subscriber.
|
|
802
|
-
*/
|
|
803
699
|
name?: string;
|
|
804
|
-
/**
|
|
805
|
-
* - The URL for the subscriber's webhook.
|
|
806
|
-
*/
|
|
807
700
|
webhook_url?: string;
|
|
808
|
-
/**
|
|
809
|
-
* - The provider of the subscriber.
|
|
810
|
-
*/
|
|
811
701
|
provider?: string;
|
|
812
702
|
association?: AssociationResp;
|
|
813
|
-
/**
|
|
814
|
-
* - Custom headers for the subscriber.
|
|
815
|
-
*/
|
|
816
703
|
custom_headers?: any;
|
|
817
704
|
status?: SubscriberStatus;
|
|
818
|
-
/**
|
|
819
|
-
* - The email ID associated with the subscriber.
|
|
820
|
-
*/
|
|
821
705
|
email_id?: string;
|
|
822
|
-
/**
|
|
823
|
-
* - The date and time when the subscriber was
|
|
824
|
-
* last updated.
|
|
825
|
-
*/
|
|
826
706
|
updated_on?: string;
|
|
827
|
-
/**
|
|
828
|
-
* - The date and time when the subscriber was created.
|
|
829
|
-
*/
|
|
830
707
|
created_on?: string;
|
|
831
|
-
/**
|
|
832
|
-
* - The type of the subscriber, which can be null.
|
|
833
|
-
*/
|
|
834
708
|
type?: string;
|
|
835
709
|
auth_meta?: AuthMeta;
|
|
836
|
-
/**
|
|
837
|
-
* - The list of event IDs associated with the subscriber.
|
|
838
|
-
*/
|
|
839
710
|
event_id?: number[];
|
|
840
711
|
};
|
|
841
712
|
/** @returns {SubscriberConfigList} */
|
|
842
713
|
declare function SubscriberConfigList(): SubscriberConfigList;
|
|
843
714
|
type SubscriberConfigList = {
|
|
844
|
-
|
|
845
|
-
* - List of subscriber details.
|
|
846
|
-
*/
|
|
847
|
-
items?: SubscriberDetails[];
|
|
715
|
+
items?: SubscriberResponse[];
|
|
848
716
|
page?: Page;
|
|
849
717
|
};
|
|
850
|
-
/** @returns {RestEventData} */
|
|
851
|
-
declare function RestEventData(): RestEventData;
|
|
852
|
-
type RestEventData = {
|
|
853
|
-
/**
|
|
854
|
-
* - The category of the event.
|
|
855
|
-
*/
|
|
856
|
-
event_category: string;
|
|
857
|
-
/**
|
|
858
|
-
* - The name of the event.
|
|
859
|
-
*/
|
|
860
|
-
event_name: string;
|
|
861
|
-
/**
|
|
862
|
-
* - The type of the event.
|
|
863
|
-
*/
|
|
864
|
-
event_type: string;
|
|
865
|
-
/**
|
|
866
|
-
* - The version number of the event.
|
|
867
|
-
*/
|
|
868
|
-
version: number;
|
|
869
|
-
};
|
|
870
|
-
/** @returns {RestConfig} */
|
|
871
|
-
declare function RestConfig(): RestConfig;
|
|
872
|
-
type RestConfig = {
|
|
873
|
-
/**
|
|
874
|
-
* - The URL for the webhook.
|
|
875
|
-
*/
|
|
876
|
-
webhook_url: string;
|
|
877
|
-
/**
|
|
878
|
-
* - The type of the configuration.
|
|
879
|
-
*/
|
|
880
|
-
type: string;
|
|
881
|
-
/**
|
|
882
|
-
* - Custom headers for the configuration.
|
|
883
|
-
*/
|
|
884
|
-
custom_headers?: any;
|
|
885
|
-
auth_meta?: AuthMeta;
|
|
886
|
-
/**
|
|
887
|
-
* - List of event data for configuration.
|
|
888
|
-
*/
|
|
889
|
-
events: RestEventData[];
|
|
890
|
-
};
|
|
891
|
-
/** @returns {QueueEventData} */
|
|
892
|
-
declare function QueueEventData(): QueueEventData;
|
|
893
|
-
type QueueEventData = {
|
|
894
|
-
/**
|
|
895
|
-
* - The category of the event.
|
|
896
|
-
*/
|
|
897
|
-
event_category: string;
|
|
898
|
-
/**
|
|
899
|
-
* - The name of the event.
|
|
900
|
-
*/
|
|
901
|
-
event_name: string;
|
|
902
|
-
/**
|
|
903
|
-
* - The type of the event.
|
|
904
|
-
*/
|
|
905
|
-
event_type: string;
|
|
906
|
-
/**
|
|
907
|
-
* - The version number of the event.
|
|
908
|
-
*/
|
|
909
|
-
version: number;
|
|
910
|
-
/**
|
|
911
|
-
* - The topic associated with the event.
|
|
912
|
-
*/
|
|
913
|
-
topic: string;
|
|
914
|
-
};
|
|
915
|
-
/** @returns {KafkaConfig} */
|
|
916
|
-
declare function KafkaConfig(): KafkaConfig;
|
|
917
|
-
type KafkaConfig = {
|
|
918
|
-
/**
|
|
919
|
-
* - Type of Kafka configuration (optional).
|
|
920
|
-
*/
|
|
921
|
-
type?: string;
|
|
922
|
-
/**
|
|
923
|
-
* - List of event data for configuration.
|
|
924
|
-
*/
|
|
925
|
-
events: QueueEventData[];
|
|
926
|
-
};
|
|
927
|
-
/** @returns {PubSubConfig} */
|
|
928
|
-
declare function PubSubConfig(): PubSubConfig;
|
|
929
|
-
type PubSubConfig = {
|
|
930
|
-
/**
|
|
931
|
-
* - Type of Pub/Sub configuration (optional).
|
|
932
|
-
*/
|
|
933
|
-
type?: string;
|
|
934
|
-
/**
|
|
935
|
-
* - List of event data for configuration.
|
|
936
|
-
*/
|
|
937
|
-
events: QueueEventData[];
|
|
938
|
-
};
|
|
939
|
-
/** @returns {TemporalEventData} */
|
|
940
|
-
declare function TemporalEventData(): TemporalEventData;
|
|
941
|
-
type TemporalEventData = {
|
|
942
|
-
/**
|
|
943
|
-
* - The category of the event.
|
|
944
|
-
*/
|
|
945
|
-
event_category: string;
|
|
946
|
-
/**
|
|
947
|
-
* - The name of the event.
|
|
948
|
-
*/
|
|
949
|
-
event_name: string;
|
|
950
|
-
/**
|
|
951
|
-
* - The type of the event.
|
|
952
|
-
*/
|
|
953
|
-
event_type: string;
|
|
954
|
-
/**
|
|
955
|
-
* - The version number of the event.
|
|
956
|
-
*/
|
|
957
|
-
version: number;
|
|
958
|
-
/**
|
|
959
|
-
* - The queue associated with the event.
|
|
960
|
-
*/
|
|
961
|
-
queue?: string;
|
|
962
|
-
/**
|
|
963
|
-
* - The workflow name related to the event.
|
|
964
|
-
*/
|
|
965
|
-
workflow_name?: string;
|
|
966
|
-
};
|
|
967
|
-
/** @returns {TemporalConfig} */
|
|
968
|
-
declare function TemporalConfig(): TemporalConfig;
|
|
969
|
-
type TemporalConfig = {
|
|
970
|
-
/**
|
|
971
|
-
* - Type of Temporal configuration (optional).
|
|
972
|
-
*/
|
|
973
|
-
type?: string;
|
|
974
|
-
/**
|
|
975
|
-
* - List of event data for configuration.
|
|
976
|
-
*/
|
|
977
|
-
events: TemporalEventData[];
|
|
978
|
-
};
|
|
979
|
-
/** @returns {SqsEventData} */
|
|
980
|
-
declare function SqsEventData(): SqsEventData;
|
|
981
|
-
type SqsEventData = {
|
|
982
|
-
/**
|
|
983
|
-
* - The category of the event.
|
|
984
|
-
*/
|
|
985
|
-
event_category: string;
|
|
986
|
-
/**
|
|
987
|
-
* - The name of the event.
|
|
988
|
-
*/
|
|
989
|
-
event_name: string;
|
|
990
|
-
/**
|
|
991
|
-
* - The type of the event.
|
|
992
|
-
*/
|
|
993
|
-
event_type: string;
|
|
994
|
-
/**
|
|
995
|
-
* - The version number of the event.
|
|
996
|
-
*/
|
|
997
|
-
version: number;
|
|
998
|
-
/**
|
|
999
|
-
* - The queue name associated with the event in SQS.
|
|
1000
|
-
*/
|
|
1001
|
-
queue?: string;
|
|
1002
|
-
};
|
|
1003
|
-
/** @returns {SqsConfig} */
|
|
1004
|
-
declare function SqsConfig(): SqsConfig;
|
|
1005
|
-
type SqsConfig = {
|
|
1006
|
-
/**
|
|
1007
|
-
* - Type of SQS configuration (optional).
|
|
1008
|
-
*/
|
|
1009
|
-
type?: string;
|
|
1010
|
-
/**
|
|
1011
|
-
* - List of event data for configuration.
|
|
1012
|
-
*/
|
|
1013
|
-
events: SqsEventData[];
|
|
1014
|
-
};
|
|
1015
|
-
/** @returns {EventBridgeData} */
|
|
1016
|
-
declare function EventBridgeData(): EventBridgeData;
|
|
1017
|
-
type EventBridgeData = {
|
|
1018
|
-
/**
|
|
1019
|
-
* - The category of the event.
|
|
1020
|
-
*/
|
|
1021
|
-
event_category: string;
|
|
1022
|
-
/**
|
|
1023
|
-
* - The name of the event.
|
|
1024
|
-
*/
|
|
1025
|
-
event_name: string;
|
|
1026
|
-
/**
|
|
1027
|
-
* - The type of the event.
|
|
1028
|
-
*/
|
|
1029
|
-
event_type: string;
|
|
1030
|
-
/**
|
|
1031
|
-
* - The version number of the event.
|
|
1032
|
-
*/
|
|
1033
|
-
version: number;
|
|
1034
|
-
/**
|
|
1035
|
-
* - The name of the event bridge related
|
|
1036
|
-
* to the event.
|
|
1037
|
-
*/
|
|
1038
|
-
event_bridge_name?: string;
|
|
1039
|
-
};
|
|
1040
|
-
/** @returns {EventBridgeConfig} */
|
|
1041
|
-
declare function EventBridgeConfig(): EventBridgeConfig;
|
|
1042
|
-
type EventBridgeConfig = {
|
|
1043
|
-
/**
|
|
1044
|
-
* - Type of event configuration (optional).
|
|
1045
|
-
*/
|
|
1046
|
-
type?: string;
|
|
1047
|
-
/**
|
|
1048
|
-
* - List of event data for EventBridge
|
|
1049
|
-
* configuration.
|
|
1050
|
-
*/
|
|
1051
|
-
events: EventBridgeData[];
|
|
1052
|
-
};
|
|
1053
|
-
/** @returns {EventMapBody} */
|
|
1054
|
-
declare function EventMapBody(): EventMapBody;
|
|
1055
|
-
type EventMapBody = {
|
|
1056
|
-
rest?: RestConfig;
|
|
1057
|
-
kafka?: KafkaConfig;
|
|
1058
|
-
pub_sub?: PubSubConfig;
|
|
1059
|
-
temporal?: TemporalConfig;
|
|
1060
|
-
sqs?: SqsConfig;
|
|
1061
|
-
event_bridge?: EventBridgeConfig;
|
|
1062
|
-
};
|
|
1063
|
-
/** @returns {WebhookConfig} */
|
|
1064
|
-
declare function WebhookConfig(): WebhookConfig;
|
|
1065
|
-
type WebhookConfig = {
|
|
1066
|
-
/**
|
|
1067
|
-
* - The email address for notifications.
|
|
1068
|
-
*/
|
|
1069
|
-
notification_email?: string;
|
|
1070
|
-
/**
|
|
1071
|
-
* - The name of the webhook configuration.
|
|
1072
|
-
*/
|
|
1073
|
-
name?: string;
|
|
1074
|
-
/**
|
|
1075
|
-
* - The status of the webhook (e.g., active or inactive).
|
|
1076
|
-
*/
|
|
1077
|
-
status?: string;
|
|
1078
|
-
association?: Association;
|
|
1079
|
-
event_map?: EventMapBody;
|
|
1080
|
-
};
|
|
1081
|
-
/** @returns {UpsertSubscriberConfig} */
|
|
1082
|
-
declare function UpsertSubscriberConfig(): UpsertSubscriberConfig;
|
|
1083
|
-
type UpsertSubscriberConfig = {
|
|
1084
|
-
webhook_config: WebhookConfig;
|
|
1085
|
-
};
|
|
1086
|
-
/** @returns {UpsertSubscriberConfigResult} */
|
|
1087
|
-
declare function UpsertSubscriberConfigResult(): UpsertSubscriberConfigResult;
|
|
1088
|
-
type UpsertSubscriberConfigResult = {
|
|
1089
|
-
/**
|
|
1090
|
-
* - The status of the upsert operation (e.g.,
|
|
1091
|
-
* success or failure).
|
|
1092
|
-
*/
|
|
1093
|
-
status?: boolean;
|
|
1094
|
-
/**
|
|
1095
|
-
* - A message providing details about the upsert
|
|
1096
|
-
* operation result.
|
|
1097
|
-
*/
|
|
1098
|
-
message?: string;
|
|
1099
|
-
};
|
|
1100
718
|
/**
|
|
1101
719
|
* Enum: SubscriberStatus Used By: Webhook
|
|
1102
720
|
*
|