@gofynd/fdk-client-javascript 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -6,11 +6,34 @@ export = WebhookPlatformModel;
|
|
|
6
6
|
* @property {string} [criteria]
|
|
7
7
|
* @property {string} [extension_id]
|
|
8
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* @typedef AssociationDetails
|
|
11
|
+
* @property {number} [company_id]
|
|
12
|
+
*/
|
|
9
13
|
/**
|
|
10
14
|
* @typedef AuthMeta
|
|
11
15
|
* @property {string} [secret]
|
|
12
16
|
* @property {string} [type]
|
|
13
17
|
*/
|
|
18
|
+
/**
|
|
19
|
+
* @typedef CancelResponse
|
|
20
|
+
* @property {number} [code] - The HTTP status code of the response (e.g., 200).
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @typedef CdnObject
|
|
24
|
+
* @property {Url[]} [urls]
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @typedef Error
|
|
28
|
+
* @property {string} [error] - Error message describing the reason for the failure.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @typedef Event
|
|
32
|
+
* @property {string} [event_category]
|
|
33
|
+
* @property {string} [event_name]
|
|
34
|
+
* @property {string} [event_type]
|
|
35
|
+
* @property {string} [version]
|
|
36
|
+
*/
|
|
14
37
|
/**
|
|
15
38
|
* @typedef EventConfig
|
|
16
39
|
* @property {string} [created_on]
|
|
@@ -23,41 +46,103 @@ export = WebhookPlatformModel;
|
|
|
23
46
|
* @property {string} [version]
|
|
24
47
|
*/
|
|
25
48
|
/**
|
|
26
|
-
* @typedef
|
|
27
|
-
* @property {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* @
|
|
49
|
+
* @typedef EventConfigResponse
|
|
50
|
+
* @property {EventConfig[]} [event_configs]
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* @typedef EventCountItem
|
|
54
|
+
* @property {number} [count] - The count of events with the specified status
|
|
55
|
+
* @property {string} [status] - The status of the event (e.g., "FAILED").
|
|
31
56
|
*/
|
|
32
57
|
/**
|
|
33
|
-
* @typedef
|
|
34
|
-
* @property {
|
|
58
|
+
* @typedef EventProcessedSuccessResponse
|
|
59
|
+
* @property {string} [message]
|
|
60
|
+
* @property {boolean} [success]
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* @typedef EventProcessReportObject
|
|
64
|
+
* @property {number} [attempt] - The attempt number of the event.
|
|
65
|
+
* @property {string} [data] - The data associated with the event.
|
|
66
|
+
* @property {string} [event_name] - The name of the processed event.
|
|
67
|
+
* @property {number} [last_attempted_on] - The timestamp of the last attempted event.
|
|
68
|
+
* @property {string} [name] - The name of the event.
|
|
69
|
+
* @property {number} [response_code] - The response code of the event.
|
|
70
|
+
* @property {string} [response_message] - The response message of the event.
|
|
71
|
+
* @property {number} [response_time] - The response time of the event.
|
|
72
|
+
* @property {string} [status] - The status of the event (e.g., "FAILED").
|
|
73
|
+
* @property {string} [webhook_url] - The webhook URL associated with the event.
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* @typedef EventProcessReports
|
|
35
77
|
* @property {Page} [page]
|
|
78
|
+
* @property {EventProcessReportObject[]} [rows]
|
|
36
79
|
*/
|
|
37
80
|
/**
|
|
38
|
-
* @typedef
|
|
39
|
-
* @property {
|
|
81
|
+
* @typedef EventProcessRequest
|
|
82
|
+
* @property {string} [end_date]
|
|
83
|
+
* @property {Event[]} [event]
|
|
84
|
+
* @property {string} [search_text]
|
|
85
|
+
* @property {string} [start_date]
|
|
86
|
+
* @property {number[]} [subscriber_ids]
|
|
40
87
|
*/
|
|
41
88
|
/**
|
|
42
|
-
* @typedef
|
|
43
|
-
* @property {string} [
|
|
44
|
-
* @property {
|
|
45
|
-
* @property {string} [event_type]
|
|
46
|
-
* @property {number} [id]
|
|
47
|
-
* @property {string} [message_id]
|
|
48
|
-
* @property {boolean} [status]
|
|
49
|
-
* @property {string} [version]
|
|
89
|
+
* @typedef EventSuccessResponse
|
|
90
|
+
* @property {string} [message]
|
|
91
|
+
* @property {boolean} [success]
|
|
50
92
|
*/
|
|
51
93
|
/**
|
|
52
|
-
* @typedef
|
|
53
|
-
* @property {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* @
|
|
57
|
-
* @property {string} [
|
|
58
|
-
* @property {
|
|
59
|
-
|
|
60
|
-
|
|
94
|
+
* @typedef FailedEventsCountSuccessResponse
|
|
95
|
+
* @property {EventCountItem[]} [items]
|
|
96
|
+
*/
|
|
97
|
+
/**
|
|
98
|
+
* @typedef FilterResponseObject
|
|
99
|
+
* @property {string} [filter_name] - The name of the filter.
|
|
100
|
+
* @property {FilterValues[]} [values]
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* @typedef FilterValues
|
|
104
|
+
* @property {string} [text] - The display text for the filter value.
|
|
105
|
+
* @property {Object} [value] - The value associated with the filter value.
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* @typedef HistoryFilters
|
|
109
|
+
* @property {string} [end_date] - The end date and time of the history report.
|
|
110
|
+
* @property {string} [start_date] - The start date and time of the history report.
|
|
111
|
+
* @property {string} [status] - The status of the history report (e.g., "FAILED").
|
|
112
|
+
* @property {number[]} [subscribers] - An array of subscriber IDs associated
|
|
113
|
+
* with the history report.
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* @typedef HistoryPayload
|
|
117
|
+
* @property {number} [page_no] - The page number of the history report.
|
|
118
|
+
* @property {number} [page_size] - The number of records per page.
|
|
119
|
+
* @property {string} [type] - The type of history report (e.g., "platform").
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* @typedef HistoryResponse
|
|
123
|
+
* @property {HistoryResponseObject[]} [items]
|
|
124
|
+
*/
|
|
125
|
+
/**
|
|
126
|
+
* @typedef HistoryResponseObject
|
|
127
|
+
* @property {AssociationDetails} [association]
|
|
128
|
+
* @property {string} [created_on] - The date and time when the history report
|
|
129
|
+
* was created.
|
|
130
|
+
* @property {string} [filename] - The filename of the history report.
|
|
131
|
+
* @property {HistoryFilters} [filters]
|
|
132
|
+
* @property {number} [id] - The ID of the history report.
|
|
133
|
+
* @property {string} [message] - A message related to the history report.
|
|
134
|
+
* @property {string} [status] - The status of the history report (e.g., "COMPLETED").
|
|
135
|
+
* @property {string} [updated_on] - The date and time when the history report
|
|
136
|
+
* was last updated.
|
|
137
|
+
* @property {UploadServiceObject} [upload_service_response]
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* @typedef ManualRetryFailedResponse
|
|
141
|
+
* @property {string} [message]
|
|
142
|
+
* @property {Object} [meta]
|
|
143
|
+
* @property {string} [request_id]
|
|
144
|
+
* @property {string} [stack_trace]
|
|
145
|
+
* @property {boolean} [success]
|
|
61
146
|
*/
|
|
62
147
|
/**
|
|
63
148
|
* @typedef Page
|
|
@@ -69,6 +154,36 @@ export = WebhookPlatformModel;
|
|
|
69
154
|
* @property {number} [size]
|
|
70
155
|
* @property {string} type
|
|
71
156
|
*/
|
|
157
|
+
/**
|
|
158
|
+
* @typedef PingWebhook
|
|
159
|
+
* @property {Object} [auth_meta] - Authentication metadata (if required by the
|
|
160
|
+
* subscriber).
|
|
161
|
+
* @property {Object} [custom_headers] - Custom headers to include in the ping request.
|
|
162
|
+
* @property {string} [webhook_url] - The URL of the subscriber's webhook to ping.
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
* @typedef PingWebhookResponse
|
|
166
|
+
* @property {number} [code] - The HTTP status code of the ping response (e.g., 200).
|
|
167
|
+
* @property {string} [message] - An optional message related to the ping.
|
|
168
|
+
* @property {string} [status] - The status of the ping (e.g., "SUCCESS").
|
|
169
|
+
*/
|
|
170
|
+
/**
|
|
171
|
+
* @typedef ReportFilterResponse
|
|
172
|
+
* @property {FilterResponseObject[]} [items]
|
|
173
|
+
*/
|
|
174
|
+
/**
|
|
175
|
+
* @typedef ReportFiltersPayload
|
|
176
|
+
* @property {number[]} [subscriber_ids] - An array of subscriber IDs for
|
|
177
|
+
* filtering filters (optional).
|
|
178
|
+
*/
|
|
179
|
+
/**
|
|
180
|
+
* @typedef RetryStatusResponse
|
|
181
|
+
* @property {number} [failure_count] - The count of failed retry attempts.
|
|
182
|
+
* @property {string} [status] - The overall status of the retry process (e.g.,
|
|
183
|
+
* "completed").
|
|
184
|
+
* @property {number} [success_count] - The count of successfully retried events.
|
|
185
|
+
* @property {number} [total_event] - The total number of events that require retry.
|
|
186
|
+
*/
|
|
72
187
|
/**
|
|
73
188
|
* @typedef SubscriberConfig
|
|
74
189
|
* @property {Association} [association]
|
|
@@ -78,7 +193,9 @@ export = WebhookPlatformModel;
|
|
|
78
193
|
* @property {number[]} [event_id]
|
|
79
194
|
* @property {number} [id]
|
|
80
195
|
* @property {string} [name]
|
|
81
|
-
* @property {
|
|
196
|
+
* @property {string} [status] - Active: Status is active inactive: Status is
|
|
197
|
+
* inactive blocked: Subscriber is blocked by system due to multiple failed
|
|
198
|
+
* delivery attempts.
|
|
82
199
|
* @property {string} [webhook_url]
|
|
83
200
|
*/
|
|
84
201
|
/**
|
|
@@ -86,13 +203,6 @@ export = WebhookPlatformModel;
|
|
|
86
203
|
* @property {SubscriberResponse[]} [items]
|
|
87
204
|
* @property {Page} [page]
|
|
88
205
|
*/
|
|
89
|
-
/**
|
|
90
|
-
* @typedef SubscriberEvent
|
|
91
|
-
* @property {string} [created_date]
|
|
92
|
-
* @property {number} [event_id]
|
|
93
|
-
* @property {number} [id]
|
|
94
|
-
* @property {number} [subscriber_id]
|
|
95
|
-
*/
|
|
96
206
|
/**
|
|
97
207
|
* @typedef SubscriberResponse
|
|
98
208
|
* @property {Association} [association]
|
|
@@ -103,15 +213,25 @@ export = WebhookPlatformModel;
|
|
|
103
213
|
* @property {EventConfig[]} [event_configs]
|
|
104
214
|
* @property {number} [id]
|
|
105
215
|
* @property {string} [name]
|
|
106
|
-
* @property {
|
|
216
|
+
* @property {string} [status] - Active: Status is active inactive: Status is
|
|
217
|
+
* inactive blocked: Subscriber is blocked by system due to multiple failed
|
|
218
|
+
* delivery attempts.
|
|
107
219
|
* @property {string} [updated_on]
|
|
108
220
|
* @property {string} [webhook_url]
|
|
109
221
|
*/
|
|
110
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* @typedef UploadServiceObject
|
|
224
|
+
* @property {CdnObject} [cdn]
|
|
225
|
+
*/
|
|
226
|
+
/**
|
|
227
|
+
* @typedef Url
|
|
228
|
+
* @property {string} [name] - The name of the uploaded report file.
|
|
229
|
+
* @property {string} [url] - The URL of the uploaded report file.
|
|
230
|
+
*/
|
|
111
231
|
declare class WebhookPlatformModel {
|
|
112
232
|
}
|
|
113
233
|
declare namespace WebhookPlatformModel {
|
|
114
|
-
export { Association, AuthMeta,
|
|
234
|
+
export { Association, AssociationDetails, AuthMeta, CancelResponse, CdnObject, Error, Event, EventConfig, EventConfigResponse, EventCountItem, EventProcessedSuccessResponse, EventProcessReportObject, EventProcessReports, EventProcessRequest, EventSuccessResponse, FailedEventsCountSuccessResponse, FilterResponseObject, FilterValues, HistoryFilters, HistoryPayload, HistoryResponse, HistoryResponseObject, ManualRetryFailedResponse, Page, PingWebhook, PingWebhookResponse, ReportFilterResponse, ReportFiltersPayload, RetryStatusResponse, SubscriberConfig, SubscriberConfigList, SubscriberResponse, UploadServiceObject, Url };
|
|
115
235
|
}
|
|
116
236
|
/** @returns {Association} */
|
|
117
237
|
declare function Association(): Association;
|
|
@@ -121,12 +241,46 @@ type Association = {
|
|
|
121
241
|
criteria?: string;
|
|
122
242
|
extension_id?: string;
|
|
123
243
|
};
|
|
244
|
+
/** @returns {AssociationDetails} */
|
|
245
|
+
declare function AssociationDetails(): AssociationDetails;
|
|
246
|
+
type AssociationDetails = {
|
|
247
|
+
company_id?: number;
|
|
248
|
+
};
|
|
124
249
|
/** @returns {AuthMeta} */
|
|
125
250
|
declare function AuthMeta(): AuthMeta;
|
|
126
251
|
type AuthMeta = {
|
|
127
252
|
secret?: string;
|
|
128
253
|
type?: string;
|
|
129
254
|
};
|
|
255
|
+
/** @returns {CancelResponse} */
|
|
256
|
+
declare function CancelResponse(): CancelResponse;
|
|
257
|
+
type CancelResponse = {
|
|
258
|
+
/**
|
|
259
|
+
* - The HTTP status code of the response (e.g., 200).
|
|
260
|
+
*/
|
|
261
|
+
code?: number;
|
|
262
|
+
};
|
|
263
|
+
/** @returns {CdnObject} */
|
|
264
|
+
declare function CdnObject(): CdnObject;
|
|
265
|
+
type CdnObject = {
|
|
266
|
+
urls?: Url[];
|
|
267
|
+
};
|
|
268
|
+
/** @returns {Error} */
|
|
269
|
+
declare function Error(): Error;
|
|
270
|
+
type Error = {
|
|
271
|
+
/**
|
|
272
|
+
* - Error message describing the reason for the failure.
|
|
273
|
+
*/
|
|
274
|
+
error?: string;
|
|
275
|
+
};
|
|
276
|
+
/** @returns {Event} */
|
|
277
|
+
declare function Event(): Event;
|
|
278
|
+
type Event = {
|
|
279
|
+
event_category?: string;
|
|
280
|
+
event_name?: string;
|
|
281
|
+
event_type?: string;
|
|
282
|
+
version?: string;
|
|
283
|
+
};
|
|
130
284
|
/** @returns {EventConfig} */
|
|
131
285
|
declare function EventConfig(): EventConfig;
|
|
132
286
|
type EventConfig = {
|
|
@@ -139,47 +293,203 @@ type EventConfig = {
|
|
|
139
293
|
id?: number;
|
|
140
294
|
version?: string;
|
|
141
295
|
};
|
|
142
|
-
/** @returns {EventConfigBase} */
|
|
143
|
-
declare function EventConfigBase(): EventConfigBase;
|
|
144
|
-
type EventConfigBase = {
|
|
145
|
-
event_category?: string;
|
|
146
|
-
event_name?: string;
|
|
147
|
-
event_type?: string;
|
|
148
|
-
version?: string;
|
|
149
|
-
};
|
|
150
|
-
/** @returns {EventConfigList} */
|
|
151
|
-
declare function EventConfigList(): EventConfigList;
|
|
152
|
-
type EventConfigList = {
|
|
153
|
-
items?: EventConfig[];
|
|
154
|
-
page?: Page;
|
|
155
|
-
};
|
|
156
296
|
/** @returns {EventConfigResponse} */
|
|
157
297
|
declare function EventConfigResponse(): EventConfigResponse;
|
|
158
298
|
type EventConfigResponse = {
|
|
159
299
|
event_configs?: EventConfig[];
|
|
160
300
|
};
|
|
161
|
-
/** @returns {
|
|
162
|
-
declare function
|
|
163
|
-
type
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
301
|
+
/** @returns {EventCountItem} */
|
|
302
|
+
declare function EventCountItem(): EventCountItem;
|
|
303
|
+
type EventCountItem = {
|
|
304
|
+
/**
|
|
305
|
+
* - The count of events with the specified status
|
|
306
|
+
*/
|
|
307
|
+
count?: number;
|
|
308
|
+
/**
|
|
309
|
+
* - The status of the event (e.g., "FAILED").
|
|
310
|
+
*/
|
|
311
|
+
status?: string;
|
|
312
|
+
};
|
|
313
|
+
/** @returns {EventProcessedSuccessResponse} */
|
|
314
|
+
declare function EventProcessedSuccessResponse(): EventProcessedSuccessResponse;
|
|
315
|
+
type EventProcessedSuccessResponse = {
|
|
316
|
+
message?: string;
|
|
317
|
+
success?: boolean;
|
|
171
318
|
};
|
|
172
|
-
/** @returns {
|
|
173
|
-
declare function
|
|
174
|
-
type
|
|
319
|
+
/** @returns {EventProcessReportObject} */
|
|
320
|
+
declare function EventProcessReportObject(): EventProcessReportObject;
|
|
321
|
+
type EventProcessReportObject = {
|
|
322
|
+
/**
|
|
323
|
+
* - The attempt number of the event.
|
|
324
|
+
*/
|
|
175
325
|
attempt?: number;
|
|
326
|
+
/**
|
|
327
|
+
* - The data associated with the event.
|
|
328
|
+
*/
|
|
329
|
+
data?: string;
|
|
330
|
+
/**
|
|
331
|
+
* - The name of the processed event.
|
|
332
|
+
*/
|
|
333
|
+
event_name?: string;
|
|
334
|
+
/**
|
|
335
|
+
* - The timestamp of the last attempted event.
|
|
336
|
+
*/
|
|
337
|
+
last_attempted_on?: number;
|
|
338
|
+
/**
|
|
339
|
+
* - The name of the event.
|
|
340
|
+
*/
|
|
341
|
+
name?: string;
|
|
342
|
+
/**
|
|
343
|
+
* - The response code of the event.
|
|
344
|
+
*/
|
|
345
|
+
response_code?: number;
|
|
346
|
+
/**
|
|
347
|
+
* - The response message of the event.
|
|
348
|
+
*/
|
|
349
|
+
response_message?: string;
|
|
350
|
+
/**
|
|
351
|
+
* - The response time of the event.
|
|
352
|
+
*/
|
|
353
|
+
response_time?: number;
|
|
354
|
+
/**
|
|
355
|
+
* - The status of the event (e.g., "FAILED").
|
|
356
|
+
*/
|
|
357
|
+
status?: string;
|
|
358
|
+
/**
|
|
359
|
+
* - The webhook URL associated with the event.
|
|
360
|
+
*/
|
|
361
|
+
webhook_url?: string;
|
|
362
|
+
};
|
|
363
|
+
/** @returns {EventProcessReports} */
|
|
364
|
+
declare function EventProcessReports(): EventProcessReports;
|
|
365
|
+
type EventProcessReports = {
|
|
366
|
+
page?: Page;
|
|
367
|
+
rows?: EventProcessReportObject[];
|
|
368
|
+
};
|
|
369
|
+
/** @returns {EventProcessRequest} */
|
|
370
|
+
declare function EventProcessRequest(): EventProcessRequest;
|
|
371
|
+
type EventProcessRequest = {
|
|
372
|
+
end_date?: string;
|
|
373
|
+
event?: Event[];
|
|
374
|
+
search_text?: string;
|
|
375
|
+
start_date?: string;
|
|
376
|
+
subscriber_ids?: number[];
|
|
377
|
+
};
|
|
378
|
+
/** @returns {EventSuccessResponse} */
|
|
379
|
+
declare function EventSuccessResponse(): EventSuccessResponse;
|
|
380
|
+
type EventSuccessResponse = {
|
|
381
|
+
message?: string;
|
|
382
|
+
success?: boolean;
|
|
383
|
+
};
|
|
384
|
+
/** @returns {FailedEventsCountSuccessResponse} */
|
|
385
|
+
declare function FailedEventsCountSuccessResponse(): FailedEventsCountSuccessResponse;
|
|
386
|
+
type FailedEventsCountSuccessResponse = {
|
|
387
|
+
items?: EventCountItem[];
|
|
388
|
+
};
|
|
389
|
+
/** @returns {FilterResponseObject} */
|
|
390
|
+
declare function FilterResponseObject(): FilterResponseObject;
|
|
391
|
+
type FilterResponseObject = {
|
|
392
|
+
/**
|
|
393
|
+
* - The name of the filter.
|
|
394
|
+
*/
|
|
395
|
+
filter_name?: string;
|
|
396
|
+
values?: FilterValues[];
|
|
397
|
+
};
|
|
398
|
+
/** @returns {FilterValues} */
|
|
399
|
+
declare function FilterValues(): FilterValues;
|
|
400
|
+
type FilterValues = {
|
|
401
|
+
/**
|
|
402
|
+
* - The display text for the filter value.
|
|
403
|
+
*/
|
|
404
|
+
text?: string;
|
|
405
|
+
/**
|
|
406
|
+
* - The value associated with the filter value.
|
|
407
|
+
*/
|
|
408
|
+
value?: any;
|
|
409
|
+
};
|
|
410
|
+
/** @returns {HistoryFilters} */
|
|
411
|
+
declare function HistoryFilters(): HistoryFilters;
|
|
412
|
+
type HistoryFilters = {
|
|
413
|
+
/**
|
|
414
|
+
* - The end date and time of the history report.
|
|
415
|
+
*/
|
|
416
|
+
end_date?: string;
|
|
417
|
+
/**
|
|
418
|
+
* - The start date and time of the history report.
|
|
419
|
+
*/
|
|
420
|
+
start_date?: string;
|
|
421
|
+
/**
|
|
422
|
+
* - The status of the history report (e.g., "FAILED").
|
|
423
|
+
*/
|
|
424
|
+
status?: string;
|
|
425
|
+
/**
|
|
426
|
+
* - An array of subscriber IDs associated
|
|
427
|
+
* with the history report.
|
|
428
|
+
*/
|
|
429
|
+
subscribers?: number[];
|
|
430
|
+
};
|
|
431
|
+
/** @returns {HistoryPayload} */
|
|
432
|
+
declare function HistoryPayload(): HistoryPayload;
|
|
433
|
+
type HistoryPayload = {
|
|
434
|
+
/**
|
|
435
|
+
* - The page number of the history report.
|
|
436
|
+
*/
|
|
437
|
+
page_no?: number;
|
|
438
|
+
/**
|
|
439
|
+
* - The number of records per page.
|
|
440
|
+
*/
|
|
441
|
+
page_size?: number;
|
|
442
|
+
/**
|
|
443
|
+
* - The type of history report (e.g., "platform").
|
|
444
|
+
*/
|
|
445
|
+
type?: string;
|
|
446
|
+
};
|
|
447
|
+
/** @returns {HistoryResponse} */
|
|
448
|
+
declare function HistoryResponse(): HistoryResponse;
|
|
449
|
+
type HistoryResponse = {
|
|
450
|
+
items?: HistoryResponseObject[];
|
|
451
|
+
};
|
|
452
|
+
/** @returns {HistoryResponseObject} */
|
|
453
|
+
declare function HistoryResponseObject(): HistoryResponseObject;
|
|
454
|
+
type HistoryResponseObject = {
|
|
455
|
+
association?: AssociationDetails;
|
|
456
|
+
/**
|
|
457
|
+
* - The date and time when the history report
|
|
458
|
+
* was created.
|
|
459
|
+
*/
|
|
176
460
|
created_on?: string;
|
|
461
|
+
/**
|
|
462
|
+
* - The filename of the history report.
|
|
463
|
+
*/
|
|
464
|
+
filename?: string;
|
|
465
|
+
filters?: HistoryFilters;
|
|
466
|
+
/**
|
|
467
|
+
* - The ID of the history report.
|
|
468
|
+
*/
|
|
177
469
|
id?: number;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
470
|
+
/**
|
|
471
|
+
* - A message related to the history report.
|
|
472
|
+
*/
|
|
473
|
+
message?: string;
|
|
474
|
+
/**
|
|
475
|
+
* - The status of the history report (e.g., "COMPLETED").
|
|
476
|
+
*/
|
|
477
|
+
status?: string;
|
|
478
|
+
/**
|
|
479
|
+
* - The date and time when the history report
|
|
480
|
+
* was last updated.
|
|
481
|
+
*/
|
|
482
|
+
updated_on?: string;
|
|
483
|
+
upload_service_response?: UploadServiceObject;
|
|
484
|
+
};
|
|
485
|
+
/** @returns {ManualRetryFailedResponse} */
|
|
486
|
+
declare function ManualRetryFailedResponse(): ManualRetryFailedResponse;
|
|
487
|
+
type ManualRetryFailedResponse = {
|
|
488
|
+
message?: string;
|
|
489
|
+
meta?: any;
|
|
490
|
+
request_id?: string;
|
|
491
|
+
stack_trace?: string;
|
|
492
|
+
success?: boolean;
|
|
183
493
|
};
|
|
184
494
|
/** @returns {Page} */
|
|
185
495
|
declare function Page(): Page;
|
|
@@ -192,6 +502,74 @@ type Page = {
|
|
|
192
502
|
size?: number;
|
|
193
503
|
type: string;
|
|
194
504
|
};
|
|
505
|
+
/** @returns {PingWebhook} */
|
|
506
|
+
declare function PingWebhook(): PingWebhook;
|
|
507
|
+
type PingWebhook = {
|
|
508
|
+
/**
|
|
509
|
+
* - Authentication metadata (if required by the
|
|
510
|
+
* subscriber).
|
|
511
|
+
*/
|
|
512
|
+
auth_meta?: any;
|
|
513
|
+
/**
|
|
514
|
+
* - Custom headers to include in the ping request.
|
|
515
|
+
*/
|
|
516
|
+
custom_headers?: any;
|
|
517
|
+
/**
|
|
518
|
+
* - The URL of the subscriber's webhook to ping.
|
|
519
|
+
*/
|
|
520
|
+
webhook_url?: string;
|
|
521
|
+
};
|
|
522
|
+
/** @returns {PingWebhookResponse} */
|
|
523
|
+
declare function PingWebhookResponse(): PingWebhookResponse;
|
|
524
|
+
type PingWebhookResponse = {
|
|
525
|
+
/**
|
|
526
|
+
* - The HTTP status code of the ping response (e.g., 200).
|
|
527
|
+
*/
|
|
528
|
+
code?: number;
|
|
529
|
+
/**
|
|
530
|
+
* - An optional message related to the ping.
|
|
531
|
+
*/
|
|
532
|
+
message?: string;
|
|
533
|
+
/**
|
|
534
|
+
* - The status of the ping (e.g., "SUCCESS").
|
|
535
|
+
*/
|
|
536
|
+
status?: string;
|
|
537
|
+
};
|
|
538
|
+
/** @returns {ReportFilterResponse} */
|
|
539
|
+
declare function ReportFilterResponse(): ReportFilterResponse;
|
|
540
|
+
type ReportFilterResponse = {
|
|
541
|
+
items?: FilterResponseObject[];
|
|
542
|
+
};
|
|
543
|
+
/** @returns {ReportFiltersPayload} */
|
|
544
|
+
declare function ReportFiltersPayload(): ReportFiltersPayload;
|
|
545
|
+
type ReportFiltersPayload = {
|
|
546
|
+
/**
|
|
547
|
+
* - An array of subscriber IDs for
|
|
548
|
+
* filtering filters (optional).
|
|
549
|
+
*/
|
|
550
|
+
subscriber_ids?: number[];
|
|
551
|
+
};
|
|
552
|
+
/** @returns {RetryStatusResponse} */
|
|
553
|
+
declare function RetryStatusResponse(): RetryStatusResponse;
|
|
554
|
+
type RetryStatusResponse = {
|
|
555
|
+
/**
|
|
556
|
+
* - The count of failed retry attempts.
|
|
557
|
+
*/
|
|
558
|
+
failure_count?: number;
|
|
559
|
+
/**
|
|
560
|
+
* - The overall status of the retry process (e.g.,
|
|
561
|
+
* "completed").
|
|
562
|
+
*/
|
|
563
|
+
status?: string;
|
|
564
|
+
/**
|
|
565
|
+
* - The count of successfully retried events.
|
|
566
|
+
*/
|
|
567
|
+
success_count?: number;
|
|
568
|
+
/**
|
|
569
|
+
* - The total number of events that require retry.
|
|
570
|
+
*/
|
|
571
|
+
total_event?: number;
|
|
572
|
+
};
|
|
195
573
|
/** @returns {SubscriberConfig} */
|
|
196
574
|
declare function SubscriberConfig(): SubscriberConfig;
|
|
197
575
|
type SubscriberConfig = {
|
|
@@ -202,7 +580,12 @@ type SubscriberConfig = {
|
|
|
202
580
|
event_id?: number[];
|
|
203
581
|
id?: number;
|
|
204
582
|
name?: string;
|
|
205
|
-
|
|
583
|
+
/**
|
|
584
|
+
* - Active: Status is active inactive: Status is
|
|
585
|
+
* inactive blocked: Subscriber is blocked by system due to multiple failed
|
|
586
|
+
* delivery attempts.
|
|
587
|
+
*/
|
|
588
|
+
status?: string;
|
|
206
589
|
webhook_url?: string;
|
|
207
590
|
};
|
|
208
591
|
/** @returns {SubscriberConfigList} */
|
|
@@ -211,14 +594,6 @@ type SubscriberConfigList = {
|
|
|
211
594
|
items?: SubscriberResponse[];
|
|
212
595
|
page?: Page;
|
|
213
596
|
};
|
|
214
|
-
/** @returns {SubscriberEvent} */
|
|
215
|
-
declare function SubscriberEvent(): SubscriberEvent;
|
|
216
|
-
type SubscriberEvent = {
|
|
217
|
-
created_date?: string;
|
|
218
|
-
event_id?: number;
|
|
219
|
-
id?: number;
|
|
220
|
-
subscriber_id?: number;
|
|
221
|
-
};
|
|
222
597
|
/** @returns {SubscriberResponse} */
|
|
223
598
|
declare function SubscriberResponse(): SubscriberResponse;
|
|
224
599
|
type SubscriberResponse = {
|
|
@@ -230,14 +605,29 @@ type SubscriberResponse = {
|
|
|
230
605
|
event_configs?: EventConfig[];
|
|
231
606
|
id?: number;
|
|
232
607
|
name?: string;
|
|
233
|
-
|
|
608
|
+
/**
|
|
609
|
+
* - Active: Status is active inactive: Status is
|
|
610
|
+
* inactive blocked: Subscriber is blocked by system due to multiple failed
|
|
611
|
+
* delivery attempts.
|
|
612
|
+
*/
|
|
613
|
+
status?: string;
|
|
234
614
|
updated_on?: string;
|
|
235
615
|
webhook_url?: string;
|
|
236
616
|
};
|
|
237
|
-
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
617
|
+
/** @returns {UploadServiceObject} */
|
|
618
|
+
declare function UploadServiceObject(): UploadServiceObject;
|
|
619
|
+
type UploadServiceObject = {
|
|
620
|
+
cdn?: CdnObject;
|
|
621
|
+
};
|
|
622
|
+
/** @returns {Url} */
|
|
623
|
+
declare function Url(): Url;
|
|
624
|
+
type Url = {
|
|
625
|
+
/**
|
|
626
|
+
* - The name of the uploaded report file.
|
|
627
|
+
*/
|
|
628
|
+
name?: string;
|
|
629
|
+
/**
|
|
630
|
+
* - The URL of the uploaded report file.
|
|
631
|
+
*/
|
|
632
|
+
url?: string;
|
|
633
|
+
};
|