@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
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 +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,583 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @typedef Association
|
|
5
|
-
* @property {string[]} [application_id]
|
|
6
|
-
* @property {number} [company_id]
|
|
7
|
-
* @property {string} [criteria]
|
|
8
|
-
* @property {string} [extension_id]
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @typedef AuthMeta
|
|
13
|
-
* @property {string} [secret]
|
|
14
|
-
* @property {string} [type]
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @typedef CancelDownloadResponse
|
|
19
|
-
* @property {string} [message]
|
|
20
|
-
* @property {string} [result]
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @typedef CdnObject
|
|
25
|
-
* @property {Url[]} [urls]
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @typedef DeliveryDetailsRequest
|
|
30
|
-
* @property {string} [company_id]
|
|
31
|
-
* @property {string} [end_date]
|
|
32
|
-
* @property {EventDeliveryDetailSchema[]} [event]
|
|
33
|
-
* @property {number} [page_no]
|
|
34
|
-
* @property {number} [page_size]
|
|
35
|
-
* @property {string} [start_date]
|
|
36
|
-
* @property {string} [status]
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @typedef DeliveryDetailsResponse
|
|
41
|
-
* @property {Page} [page]
|
|
42
|
-
* @property {EventProcessReportObject[]} [rows]
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @typedef DeliveryEventLevelSchema
|
|
47
|
-
* @property {string} [event]
|
|
48
|
-
* @property {number} [failed]
|
|
49
|
-
* @property {number} [failed_percentage]
|
|
50
|
-
* @property {number} [removed_webhooks]
|
|
51
|
-
* @property {number} [response_time]
|
|
52
|
-
* @property {number} [success]
|
|
53
|
-
* @property {number} [total]
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @typedef DeliverySummaryResponse
|
|
58
|
-
* @property {DeliveryEventLevelSchema[]} [delivery_event_level]
|
|
59
|
-
* @property {DeliverySummarySchema} [delivery_summary]
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @typedef DeliverySummarySchema
|
|
64
|
-
* @property {number} [failed_percentage]
|
|
65
|
-
* @property {number} [removed_webhooks]
|
|
66
|
-
* @property {number} [response_time]
|
|
67
|
-
* @property {number} [success]
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @typedef DeliveryTsResponse
|
|
72
|
-
* @property {DeliveryTsSchema[]} [delivery_ts]
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @typedef DeliveryTsSchema
|
|
77
|
-
* @property {number} [failed]
|
|
78
|
-
* @property {number} [removed_webhooks]
|
|
79
|
-
* @property {number} [success]
|
|
80
|
-
* @property {string} [timestamp]
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @typedef DownloadReponse
|
|
85
|
-
* @property {string} [file_name]
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @typedef EventConfigResponse
|
|
90
|
-
* @property {string} [created_on]
|
|
91
|
-
* @property {string} [description]
|
|
92
|
-
* @property {string} [display_name]
|
|
93
|
-
* @property {string} [event_category]
|
|
94
|
-
* @property {string} [event_name]
|
|
95
|
-
* @property {Object} [event_schema]
|
|
96
|
-
* @property {string} [event_type]
|
|
97
|
-
* @property {number} [id]
|
|
98
|
-
* @property {SubscriberEventMapping} [subscriber_event_mapping]
|
|
99
|
-
* @property {string} [updated_on]
|
|
100
|
-
* @property {string} [version]
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @typedef EventDeliveryDetailSchema
|
|
105
|
-
* @property {string} [event_category]
|
|
106
|
-
* @property {string} [event_name]
|
|
107
|
-
* @property {string} [event_type]
|
|
108
|
-
* @property {string} [version]
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @typedef EventProcessReportObject
|
|
113
|
-
* @property {number} [attempt] - The attempt number of the event.
|
|
114
|
-
* @property {Object} [data] - The data associated with the event.
|
|
115
|
-
* @property {string} [event_name] - The name of the processed event.
|
|
116
|
-
* @property {string} [event_trace_id]
|
|
117
|
-
* @property {number} [last_attempted_on] - The timestamp of the last attempted event.
|
|
118
|
-
* @property {string} [message_id]
|
|
119
|
-
* @property {string} [name] - The name of the event.
|
|
120
|
-
* @property {number} [response_code] - The response code of the event.
|
|
121
|
-
* @property {string} [response_message] - The response message of the event.
|
|
122
|
-
* @property {number} [response_time] - The response time of the event.
|
|
123
|
-
* @property {string} [status] - The status of the event (e.g., "FAILED").
|
|
124
|
-
* @property {string} [webhook_url] - The webhook URL associated with the event.
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @typedef FilterReportResponse
|
|
129
|
-
* @property {string} [filter_name]
|
|
130
|
-
* @property {Object[]} [values]
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @typedef HistoryAssociation
|
|
135
|
-
* @property {number} [company_id]
|
|
136
|
-
* @property {number[]} [subscriber_ids]
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @typedef HistoryFilters
|
|
141
|
-
* @property {string} [end_date] - The end date and time of the history report.
|
|
142
|
-
* @property {string[]} [events]
|
|
143
|
-
* @property {string} [search_text]
|
|
144
|
-
* @property {string} [start_date] - The start date and time of the history report.
|
|
145
|
-
* @property {string} [status] - The status of the history report (e.g., "FAILED").
|
|
146
|
-
* @property {number[]} [subscribers] - An array of subscriber IDs associated
|
|
147
|
-
* with the history report.
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @typedef HistoryItems
|
|
152
|
-
* @property {HistoryAssociation} [association]
|
|
153
|
-
* @property {string} [created_on] - The date and time when the history report
|
|
154
|
-
* was created.
|
|
155
|
-
* @property {string} [filename] - The filename of the history report.
|
|
156
|
-
* @property {HistoryFilters} [filters]
|
|
157
|
-
* @property {number} [id] - The ID of the history report.
|
|
158
|
-
* @property {string} [message] - A message related to the history report.
|
|
159
|
-
* @property {string} [status] - The status of the history report (e.g., "COMPLETED").
|
|
160
|
-
* @property {string} [updated_on] - The date and time when the history report
|
|
161
|
-
* was last updated.
|
|
162
|
-
* @property {UploadServiceObject} [upload_service_response]
|
|
163
|
-
*/
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* @typedef HistoryPayload
|
|
167
|
-
* @property {number} [company_id]
|
|
168
|
-
* @property {number} [page_no] - The page number of the history report.
|
|
169
|
-
* @property {number} [page_size] - The number of records per page.
|
|
170
|
-
* @property {string} [type] - The type of history report (e.g., "platform").
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @typedef HistoryResponse
|
|
175
|
-
* @property {HistoryItems[]} [items]
|
|
176
|
-
* @property {Page} [page]
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @typedef InvalidEventsRequest
|
|
181
|
-
* @property {string} [category]
|
|
182
|
-
* @property {string} [end_date]
|
|
183
|
-
* @property {string} [event_name]
|
|
184
|
-
* @property {string} [start_date]
|
|
185
|
-
* @property {string} [version]
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @typedef InvalidEventsResponse
|
|
190
|
-
* @property {string} [category]
|
|
191
|
-
* @property {number} [count]
|
|
192
|
-
* @property {string} [event_name]
|
|
193
|
-
* @property {string} [event_type]
|
|
194
|
-
* @property {string} [version]
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @typedef ItemSchema
|
|
199
|
-
* @property {Association} [association]
|
|
200
|
-
* @property {AuthMeta} [auth_meta]
|
|
201
|
-
* @property {string} [created_on]
|
|
202
|
-
* @property {Object} [custom_headers]
|
|
203
|
-
* @property {string} [email_id]
|
|
204
|
-
* @property {EventConfigResponse[]} [event_configs]
|
|
205
|
-
* @property {number[]} [event_id]
|
|
206
|
-
* @property {number} [id]
|
|
207
|
-
* @property {string} [modified_by]
|
|
208
|
-
* @property {string} [name]
|
|
209
|
-
* @property {string} [status]
|
|
210
|
-
* @property {string} [type]
|
|
211
|
-
* @property {string} [updated_on]
|
|
212
|
-
* @property {string} [webhook_url]
|
|
213
|
-
*/
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* @typedef Page
|
|
217
|
-
* @property {number} [current]
|
|
218
|
-
* @property {boolean} [has_next]
|
|
219
|
-
* @property {boolean} [has_previous]
|
|
220
|
-
* @property {number} [item_total]
|
|
221
|
-
* @property {string} [next_id]
|
|
222
|
-
* @property {number} [size]
|
|
223
|
-
* @property {string} type
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @typedef SubscriberConfigResponse
|
|
228
|
-
* @property {ItemSchema[]} [items]
|
|
229
|
-
* @property {Page} [page]
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* @typedef SubscriberEventMapping
|
|
234
|
-
* @property {string} [created_on]
|
|
235
|
-
* @property {number} [event_id]
|
|
236
|
-
* @property {number} [id]
|
|
237
|
-
* @property {number} [subscriber_id]
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @typedef UpdateSubscriberRequest
|
|
242
|
-
* @property {string} [status]
|
|
243
|
-
*/
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @typedef UpdateSubscriberResponse
|
|
247
|
-
* @property {string} [message]
|
|
248
|
-
*/
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @typedef UploadServiceObject
|
|
252
|
-
* @property {CdnObject} [cdn]
|
|
253
|
-
*/
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @typedef Url
|
|
257
|
-
* @property {string} [name] - The name of the uploaded report file.
|
|
258
|
-
* @property {string} [url] - The URL of the uploaded report file.
|
|
259
|
-
*/
|
|
260
|
-
|
|
261
|
-
class WebhookPartnerModel {
|
|
262
|
-
/** @returns {Association} */
|
|
263
|
-
static Association() {
|
|
264
|
-
return Joi.object({
|
|
265
|
-
application_id: Joi.array().items(Joi.string().allow("")),
|
|
266
|
-
company_id: Joi.number(),
|
|
267
|
-
criteria: Joi.string().allow(""),
|
|
268
|
-
extension_id: Joi.string().allow(""),
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/** @returns {AuthMeta} */
|
|
273
|
-
static AuthMeta() {
|
|
274
|
-
return Joi.object({
|
|
275
|
-
secret: Joi.string().allow(""),
|
|
276
|
-
type: Joi.string().allow(""),
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/** @returns {CancelDownloadResponse} */
|
|
281
|
-
static CancelDownloadResponse() {
|
|
282
|
-
return Joi.object({
|
|
283
|
-
message: Joi.string().allow(""),
|
|
284
|
-
result: Joi.string().allow(""),
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/** @returns {CdnObject} */
|
|
289
|
-
static CdnObject() {
|
|
290
|
-
return Joi.object({
|
|
291
|
-
urls: Joi.array().items(WebhookPartnerModel.Url()),
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/** @returns {DeliveryDetailsRequest} */
|
|
296
|
-
static DeliveryDetailsRequest() {
|
|
297
|
-
return Joi.object({
|
|
298
|
-
company_id: Joi.string().allow(""),
|
|
299
|
-
end_date: Joi.string().allow(""),
|
|
300
|
-
event: Joi.array().items(WebhookPartnerModel.EventDeliveryDetailSchema()),
|
|
301
|
-
page_no: Joi.number(),
|
|
302
|
-
page_size: Joi.number(),
|
|
303
|
-
start_date: Joi.string().allow(""),
|
|
304
|
-
status: Joi.string().allow(""),
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/** @returns {DeliveryDetailsResponse} */
|
|
309
|
-
static DeliveryDetailsResponse() {
|
|
310
|
-
return Joi.object({
|
|
311
|
-
page: WebhookPartnerModel.Page(),
|
|
312
|
-
rows: Joi.array().items(WebhookPartnerModel.EventProcessReportObject()),
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/** @returns {DeliveryEventLevelSchema} */
|
|
317
|
-
static DeliveryEventLevelSchema() {
|
|
318
|
-
return Joi.object({
|
|
319
|
-
event: Joi.string().allow(""),
|
|
320
|
-
failed: Joi.number(),
|
|
321
|
-
failed_percentage: Joi.number(),
|
|
322
|
-
removed_webhooks: Joi.number(),
|
|
323
|
-
response_time: Joi.number(),
|
|
324
|
-
success: Joi.number(),
|
|
325
|
-
total: Joi.number(),
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/** @returns {DeliverySummaryResponse} */
|
|
330
|
-
static DeliverySummaryResponse() {
|
|
331
|
-
return Joi.object({
|
|
332
|
-
delivery_event_level: Joi.array().items(
|
|
333
|
-
WebhookPartnerModel.DeliveryEventLevelSchema()
|
|
334
|
-
),
|
|
335
|
-
delivery_summary: WebhookPartnerModel.DeliverySummarySchema(),
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/** @returns {DeliverySummarySchema} */
|
|
340
|
-
static DeliverySummarySchema() {
|
|
341
|
-
return Joi.object({
|
|
342
|
-
failed_percentage: Joi.number(),
|
|
343
|
-
removed_webhooks: Joi.number(),
|
|
344
|
-
response_time: Joi.number(),
|
|
345
|
-
success: Joi.number(),
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/** @returns {DeliveryTsResponse} */
|
|
350
|
-
static DeliveryTsResponse() {
|
|
351
|
-
return Joi.object({
|
|
352
|
-
delivery_ts: Joi.array().items(WebhookPartnerModel.DeliveryTsSchema()),
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/** @returns {DeliveryTsSchema} */
|
|
357
|
-
static DeliveryTsSchema() {
|
|
358
|
-
return Joi.object({
|
|
359
|
-
failed: Joi.number(),
|
|
360
|
-
removed_webhooks: Joi.number(),
|
|
361
|
-
success: Joi.number(),
|
|
362
|
-
timestamp: Joi.string().allow(""),
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** @returns {DownloadReponse} */
|
|
367
|
-
static DownloadReponse() {
|
|
368
|
-
return Joi.object({
|
|
369
|
-
file_name: Joi.string().allow(""),
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
/** @returns {EventConfigResponse} */
|
|
374
|
-
static EventConfigResponse() {
|
|
375
|
-
return Joi.object({
|
|
376
|
-
created_on: Joi.string().allow(""),
|
|
377
|
-
description: Joi.string().allow("").allow(null),
|
|
378
|
-
display_name: Joi.string().allow(""),
|
|
379
|
-
event_category: Joi.string().allow(""),
|
|
380
|
-
event_name: Joi.string().allow(""),
|
|
381
|
-
event_schema: Joi.object().pattern(/\S/, Joi.any()),
|
|
382
|
-
event_type: Joi.string().allow(""),
|
|
383
|
-
id: Joi.number(),
|
|
384
|
-
subscriber_event_mapping: WebhookPartnerModel.SubscriberEventMapping(),
|
|
385
|
-
updated_on: Joi.string().allow(""),
|
|
386
|
-
version: Joi.string().allow(""),
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/** @returns {EventDeliveryDetailSchema} */
|
|
391
|
-
static EventDeliveryDetailSchema() {
|
|
392
|
-
return Joi.object({
|
|
393
|
-
event_category: Joi.string().allow(""),
|
|
394
|
-
event_name: Joi.string().allow(""),
|
|
395
|
-
event_type: Joi.string().allow(""),
|
|
396
|
-
version: Joi.string().allow(""),
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/** @returns {EventProcessReportObject} */
|
|
401
|
-
static EventProcessReportObject() {
|
|
402
|
-
return Joi.object({
|
|
403
|
-
attempt: Joi.number(),
|
|
404
|
-
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
405
|
-
event_name: Joi.string().allow(""),
|
|
406
|
-
event_trace_id: Joi.string().allow(""),
|
|
407
|
-
last_attempted_on: Joi.number(),
|
|
408
|
-
message_id: Joi.string().allow(""),
|
|
409
|
-
name: Joi.string().allow(""),
|
|
410
|
-
response_code: Joi.number(),
|
|
411
|
-
response_message: Joi.string().allow(""),
|
|
412
|
-
response_time: Joi.number(),
|
|
413
|
-
status: Joi.string().allow(""),
|
|
414
|
-
webhook_url: Joi.string().allow(""),
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
/** @returns {FilterReportResponse} */
|
|
419
|
-
static FilterReportResponse() {
|
|
420
|
-
return Joi.object({
|
|
421
|
-
filter_name: Joi.string().allow(""),
|
|
422
|
-
values: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/** @returns {HistoryAssociation} */
|
|
427
|
-
static HistoryAssociation() {
|
|
428
|
-
return Joi.object({
|
|
429
|
-
company_id: Joi.number(),
|
|
430
|
-
subscriber_ids: Joi.array().items(Joi.number()),
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/** @returns {HistoryFilters} */
|
|
435
|
-
static HistoryFilters() {
|
|
436
|
-
return Joi.object({
|
|
437
|
-
end_date: Joi.string().allow(""),
|
|
438
|
-
events: Joi.array().items(Joi.string().allow("")),
|
|
439
|
-
search_text: Joi.string().allow(""),
|
|
440
|
-
start_date: Joi.string().allow(""),
|
|
441
|
-
status: Joi.string().allow(""),
|
|
442
|
-
subscribers: Joi.array().items(Joi.number()),
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
/** @returns {HistoryItems} */
|
|
447
|
-
static HistoryItems() {
|
|
448
|
-
return Joi.object({
|
|
449
|
-
association: WebhookPartnerModel.HistoryAssociation(),
|
|
450
|
-
created_on: Joi.string().allow(""),
|
|
451
|
-
filename: Joi.string().allow(""),
|
|
452
|
-
filters: WebhookPartnerModel.HistoryFilters(),
|
|
453
|
-
id: Joi.number(),
|
|
454
|
-
message: Joi.string().allow(""),
|
|
455
|
-
status: Joi.string().allow(""),
|
|
456
|
-
updated_on: Joi.string().allow("").allow(null),
|
|
457
|
-
upload_service_response: WebhookPartnerModel.UploadServiceObject(),
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
/** @returns {HistoryPayload} */
|
|
462
|
-
static HistoryPayload() {
|
|
463
|
-
return Joi.object({
|
|
464
|
-
company_id: Joi.number(),
|
|
465
|
-
page_no: Joi.number(),
|
|
466
|
-
page_size: Joi.number(),
|
|
467
|
-
type: Joi.string().allow(""),
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
/** @returns {HistoryResponse} */
|
|
472
|
-
static HistoryResponse() {
|
|
473
|
-
return Joi.object({
|
|
474
|
-
items: Joi.array().items(WebhookPartnerModel.HistoryItems()),
|
|
475
|
-
page: WebhookPartnerModel.Page(),
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/** @returns {InvalidEventsRequest} */
|
|
480
|
-
static InvalidEventsRequest() {
|
|
481
|
-
return Joi.object({
|
|
482
|
-
category: Joi.string().allow(""),
|
|
483
|
-
end_date: Joi.string().allow(""),
|
|
484
|
-
event_name: Joi.string().allow(""),
|
|
485
|
-
start_date: Joi.string().allow(""),
|
|
486
|
-
version: Joi.string().allow(""),
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/** @returns {InvalidEventsResponse} */
|
|
491
|
-
static InvalidEventsResponse() {
|
|
492
|
-
return Joi.object({
|
|
493
|
-
category: Joi.string().allow(""),
|
|
494
|
-
count: Joi.number(),
|
|
495
|
-
event_name: Joi.string().allow(""),
|
|
496
|
-
event_type: Joi.string().allow(""),
|
|
497
|
-
version: Joi.string().allow(""),
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/** @returns {ItemSchema} */
|
|
502
|
-
static ItemSchema() {
|
|
503
|
-
return Joi.object({
|
|
504
|
-
association: WebhookPartnerModel.Association(),
|
|
505
|
-
auth_meta: WebhookPartnerModel.AuthMeta(),
|
|
506
|
-
created_on: Joi.string().allow(""),
|
|
507
|
-
custom_headers: Joi.any(),
|
|
508
|
-
email_id: Joi.string().allow(""),
|
|
509
|
-
event_configs: Joi.array().items(
|
|
510
|
-
WebhookPartnerModel.EventConfigResponse()
|
|
511
|
-
),
|
|
512
|
-
event_id: Joi.array().items(Joi.number()),
|
|
513
|
-
id: Joi.number(),
|
|
514
|
-
modified_by: Joi.string().allow(""),
|
|
515
|
-
name: Joi.string().allow(""),
|
|
516
|
-
status: Joi.string().allow(""),
|
|
517
|
-
type: Joi.string().allow("").allow(null),
|
|
518
|
-
updated_on: Joi.string().allow(""),
|
|
519
|
-
webhook_url: Joi.string().allow(""),
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/** @returns {Page} */
|
|
524
|
-
static Page() {
|
|
525
|
-
return Joi.object({
|
|
526
|
-
current: Joi.number(),
|
|
527
|
-
has_next: Joi.boolean(),
|
|
528
|
-
has_previous: Joi.boolean(),
|
|
529
|
-
item_total: Joi.number(),
|
|
530
|
-
next_id: Joi.string().allow(""),
|
|
531
|
-
size: Joi.number(),
|
|
532
|
-
type: Joi.string().allow("").required(),
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
/** @returns {SubscriberConfigResponse} */
|
|
537
|
-
static SubscriberConfigResponse() {
|
|
538
|
-
return Joi.object({
|
|
539
|
-
items: Joi.array().items(WebhookPartnerModel.ItemSchema()),
|
|
540
|
-
page: WebhookPartnerModel.Page(),
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/** @returns {SubscriberEventMapping} */
|
|
545
|
-
static SubscriberEventMapping() {
|
|
546
|
-
return Joi.object({
|
|
547
|
-
created_on: Joi.string().allow(""),
|
|
548
|
-
event_id: Joi.number(),
|
|
549
|
-
id: Joi.number(),
|
|
550
|
-
subscriber_id: Joi.number(),
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/** @returns {UpdateSubscriberRequest} */
|
|
555
|
-
static UpdateSubscriberRequest() {
|
|
556
|
-
return Joi.object({
|
|
557
|
-
status: Joi.string().allow(""),
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
/** @returns {UpdateSubscriberResponse} */
|
|
562
|
-
static UpdateSubscriberResponse() {
|
|
563
|
-
return Joi.object({
|
|
564
|
-
message: Joi.string().allow(""),
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/** @returns {UploadServiceObject} */
|
|
569
|
-
static UploadServiceObject() {
|
|
570
|
-
return Joi.object({
|
|
571
|
-
cdn: WebhookPartnerModel.CdnObject(),
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
/** @returns {Url} */
|
|
576
|
-
static Url() {
|
|
577
|
-
return Joi.object({
|
|
578
|
-
name: Joi.string().allow(""),
|
|
579
|
-
url: Joi.string().allow(""),
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
module.exports = WebhookPartnerModel;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export = WebhookValidator;
|
|
2
|
-
declare class WebhookValidator {
|
|
3
|
-
static fetchDeliverySummary(): any;
|
|
4
|
-
static getDeliveryDetailInsights(): any;
|
|
5
|
-
static fetchDeliveryTs(): any;
|
|
6
|
-
static fetchReportFilters(): any;
|
|
7
|
-
static cancelReportDownload(): any;
|
|
8
|
-
static getHistoricalReports(): any;
|
|
9
|
-
static getInvalidEventList(): any;
|
|
10
|
-
static fetchSubscribers(): any;
|
|
11
|
-
static updateSubscriber(): any;
|
|
12
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
const WebhookModel = require("./WebhookPartnerModel");
|
|
4
|
-
class WebhookValidator {
|
|
5
|
-
static fetchDeliverySummary() {
|
|
6
|
-
return Joi.object({
|
|
7
|
-
extensionId: Joi.string().allow("").required(),
|
|
8
|
-
startDate: Joi.string().allow("").required(),
|
|
9
|
-
endDate: Joi.string().allow("").required(),
|
|
10
|
-
}).required();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
static getDeliveryDetailInsights() {
|
|
14
|
-
return Joi.object({
|
|
15
|
-
extensionId: Joi.string().allow("").required(),
|
|
16
|
-
body: WebhookModel.DeliveryDetailsRequest().required(),
|
|
17
|
-
}).required();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
static fetchDeliveryTs() {
|
|
21
|
-
return Joi.object({
|
|
22
|
-
extensionId: Joi.string().allow("").required(),
|
|
23
|
-
startDate: Joi.string().allow("").required(),
|
|
24
|
-
endDate: Joi.string().allow("").required(),
|
|
25
|
-
}).required();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
static fetchReportFilters() {
|
|
29
|
-
return Joi.object({
|
|
30
|
-
extensionId: Joi.string().allow("").required(),
|
|
31
|
-
startDate: Joi.string().allow("").required(),
|
|
32
|
-
endDate: Joi.string().allow("").required(),
|
|
33
|
-
pageNo: Joi.number().required(),
|
|
34
|
-
pageSize: Joi.number().required(),
|
|
35
|
-
}).required();
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static cancelReportDownload() {
|
|
39
|
-
return Joi.object({
|
|
40
|
-
extensionId: Joi.string().allow("").required(),
|
|
41
|
-
filename: Joi.string().allow("").required(),
|
|
42
|
-
}).required();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
static getHistoricalReports() {
|
|
46
|
-
return Joi.object({
|
|
47
|
-
extensionId: Joi.string().allow("").required(),
|
|
48
|
-
body: WebhookModel.HistoryPayload().required(),
|
|
49
|
-
}).required();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static getInvalidEventList() {
|
|
53
|
-
return Joi.object({
|
|
54
|
-
extensionId: Joi.string().allow("").required(),
|
|
55
|
-
body: WebhookModel.InvalidEventsRequest().required(),
|
|
56
|
-
}).required();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
static fetchSubscribers() {
|
|
60
|
-
return Joi.object({
|
|
61
|
-
extensionId: Joi.string().allow("").required(),
|
|
62
|
-
}).required();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
static updateSubscriber() {
|
|
66
|
-
return Joi.object({
|
|
67
|
-
extensionId: Joi.string().allow("").required(),
|
|
68
|
-
subscriberId: Joi.number().required(),
|
|
69
|
-
body: WebhookModel.UpdateSubscriberRequest().required(),
|
|
70
|
-
}).required();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
module.exports = WebhookValidator;
|