@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2
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 +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- 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 +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- 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 +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- 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 +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -1,122 +1,89 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string} [status]
|
|
4
|
+
* @typedef UpdateSubscriberRequest
|
|
5
|
+
* @property {string} [status]
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
10
|
-
* @property {string} [message]
|
|
11
|
-
* the subscriber update operation.
|
|
9
|
+
* @typedef UpdateSubscriberResponse
|
|
10
|
+
* @property {string} [message]
|
|
12
11
|
*/
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* @typedef Association
|
|
16
|
-
* @property {number} [company_id]
|
|
17
|
-
*
|
|
18
|
-
* @property {string
|
|
19
|
-
*
|
|
20
|
-
* @property {string} [extension_id] - The identifier for the extension related
|
|
21
|
-
* to the configuration.
|
|
22
|
-
* @property {string} [criteria] - Defines the criteria for the association,
|
|
23
|
-
* including options for all events, empty criteria, or specific events.
|
|
15
|
+
* @property {number} [company_id]
|
|
16
|
+
* @property {string[]} [application_id]
|
|
17
|
+
* @property {string} [extension_id]
|
|
18
|
+
* @property {string} [criteria]
|
|
24
19
|
*/
|
|
25
20
|
|
|
26
21
|
/**
|
|
27
22
|
* @typedef AuthMeta
|
|
28
|
-
* @property {string} [type]
|
|
29
|
-
* @property {string} [secret]
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @typedef BroadcasterConfig
|
|
34
|
-
* @property {string} [topic] - The topic associated with the broadcaster configuration.
|
|
35
|
-
* @property {string} [queue] - The queue name used by the broadcaster.
|
|
36
|
-
* @property {string} [event_bridge_name] - The name of the event bridge used in
|
|
37
|
-
* the broadcaster configuration.
|
|
38
|
-
* @property {string} [workflow_name] - The name of the workflow related to the
|
|
39
|
-
* broadcaster.
|
|
40
|
-
* @property {string} [account_id] - The account ID associated with the
|
|
41
|
-
* broadcaster configuration.
|
|
42
|
-
* @property {string} [detail_type] - Specifies the type of detail for the
|
|
43
|
-
* broadcaster, allowing for custom or non-enumerated values.
|
|
23
|
+
* @property {string} [type]
|
|
24
|
+
* @property {string} [secret]
|
|
44
25
|
*/
|
|
45
26
|
|
|
46
27
|
/**
|
|
47
28
|
* @typedef SubscriberEventMapping
|
|
48
|
-
* @property {number} [id]
|
|
49
|
-
* @property {number} [event_id]
|
|
50
|
-
*
|
|
51
|
-
* @property {
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* @
|
|
60
|
-
* @property {
|
|
61
|
-
* @property {
|
|
62
|
-
* @property {string} [
|
|
63
|
-
*
|
|
64
|
-
* @property {string} [
|
|
65
|
-
*
|
|
66
|
-
* @property {
|
|
67
|
-
*
|
|
68
|
-
* @property {string} [version] - The version number of the event configuration.
|
|
69
|
-
* @property {string} [display_name] - The display name for the event configuration.
|
|
70
|
-
* @property {string} [description] - A description of the event configuration,
|
|
71
|
-
* if provided.
|
|
72
|
-
* @property {string} [created_on] - The timestamp indicating when the event
|
|
73
|
-
* configuration was created.
|
|
74
|
-
* @property {string} [updated_on] - The timestamp indicating when the event
|
|
75
|
-
* configuration was last updated.
|
|
76
|
-
* @property {string} [group] - The group to which the event configuration
|
|
77
|
-
* belongs, if applicable.
|
|
29
|
+
* @property {number} [id]
|
|
30
|
+
* @property {number} [event_id]
|
|
31
|
+
* @property {number} [subscriber_id]
|
|
32
|
+
* @property {string} [topic]
|
|
33
|
+
* @property {string} [created_on]
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @typedef EventConfigResponse
|
|
38
|
+
* @property {number} [id]
|
|
39
|
+
* @property {string} [event_name]
|
|
40
|
+
* @property {string} [event_type]
|
|
41
|
+
* @property {string} [event_category]
|
|
42
|
+
* @property {Object} [event_schema]
|
|
43
|
+
* @property {string} [version]
|
|
44
|
+
* @property {string} [display_name]
|
|
45
|
+
* @property {string} [description]
|
|
46
|
+
* @property {string} [created_on]
|
|
47
|
+
* @property {string} [updated_on]
|
|
48
|
+
* @property {string} [group]
|
|
78
49
|
* @property {SubscriberEventMapping} [subscriber_event_mapping]
|
|
79
50
|
*/
|
|
80
51
|
|
|
81
52
|
/**
|
|
82
|
-
* @typedef
|
|
83
|
-
* @property {ItemSchema[]} [items]
|
|
84
|
-
* configurations.
|
|
53
|
+
* @typedef SubscriberConfigResponse
|
|
54
|
+
* @property {ItemSchema[]} [items]
|
|
85
55
|
* @property {Page} [page]
|
|
86
56
|
*/
|
|
87
57
|
|
|
88
58
|
/**
|
|
89
|
-
* @typedef
|
|
90
|
-
* @property {string} [event_name]
|
|
91
|
-
* @property {string} [version]
|
|
92
|
-
* @property {string} [category]
|
|
93
|
-
* @property {string} [start_date]
|
|
94
|
-
*
|
|
95
|
-
* @property {string} [end_date] - The end date and time for the period during
|
|
96
|
-
* which events were considered invalid.
|
|
59
|
+
* @typedef InvalidEventsRequest
|
|
60
|
+
* @property {string} [event_name]
|
|
61
|
+
* @property {string} [version]
|
|
62
|
+
* @property {string} [category]
|
|
63
|
+
* @property {string} [start_date]
|
|
64
|
+
* @property {string} [end_date]
|
|
97
65
|
*/
|
|
98
66
|
|
|
99
67
|
/**
|
|
100
|
-
* @typedef
|
|
101
|
-
* @property {string} [event_name]
|
|
102
|
-
* @property {string} [event_type]
|
|
103
|
-
*
|
|
104
|
-
* @property {string} [
|
|
105
|
-
* @property {
|
|
106
|
-
* @property {number} [count] - The number of occurrences of the invalid event.
|
|
68
|
+
* @typedef InvalidEventsResponse
|
|
69
|
+
* @property {string} [event_name]
|
|
70
|
+
* @property {string} [event_type]
|
|
71
|
+
* @property {string} [version]
|
|
72
|
+
* @property {string} [category]
|
|
73
|
+
* @property {number} [count]
|
|
107
74
|
*/
|
|
108
75
|
|
|
109
76
|
/**
|
|
110
77
|
* @typedef HistoryFilters
|
|
111
|
-
* @property {string[]} [events]
|
|
112
|
-
* @property {string} [search_text]
|
|
78
|
+
* @property {string[]} [events]
|
|
79
|
+
* @property {string} [search_text]
|
|
113
80
|
* @property {string} [status] - The status of the history report (e.g., "FAILED").
|
|
114
81
|
* @property {string} [end_date] - The end date and time of the history report.
|
|
115
82
|
* @property {string} [start_date] - The start date and time of the history report.
|
|
116
83
|
* @property {number[]} [subscribers] - An array of subscriber IDs associated
|
|
117
84
|
* with the history report.
|
|
118
|
-
* @property {string[]} [webhook_type] - An array of webhook
|
|
119
|
-
*
|
|
85
|
+
* @property {string[]} [webhook_type] - An array of webhook type to identify
|
|
86
|
+
* thetype of subscriber i.e (KAFKA or REST).
|
|
120
87
|
*/
|
|
121
88
|
|
|
122
89
|
/**
|
|
@@ -127,8 +94,7 @@ const Joi = require("joi");
|
|
|
127
94
|
|
|
128
95
|
/**
|
|
129
96
|
* @typedef CdnObject
|
|
130
|
-
* @property {Url[]} [urls]
|
|
131
|
-
* location of the uploaded report files.
|
|
97
|
+
* @property {Url[]} [urls]
|
|
132
98
|
*/
|
|
133
99
|
|
|
134
100
|
/**
|
|
@@ -138,119 +104,103 @@ const Joi = require("joi");
|
|
|
138
104
|
|
|
139
105
|
/**
|
|
140
106
|
* @typedef HistoryAssociation
|
|
141
|
-
* @property {number} [company_id]
|
|
142
|
-
*
|
|
143
|
-
* @property {number[]} [subscriber_ids] - A list of subscriber IDs related to
|
|
144
|
-
* the history report.
|
|
107
|
+
* @property {number} [company_id]
|
|
108
|
+
* @property {number[]} [subscriber_ids]
|
|
145
109
|
*/
|
|
146
110
|
|
|
147
111
|
/**
|
|
148
112
|
* @typedef HistoryItems
|
|
149
|
-
* @property {number} [id] - The
|
|
113
|
+
* @property {number} [id] - The ID of the history report.
|
|
150
114
|
* @property {HistoryAssociation} [association]
|
|
151
115
|
* @property {HistoryFilters} [filters]
|
|
152
|
-
* @property {string} [filename] - The
|
|
153
|
-
* @property {string} [status] - The
|
|
154
|
-
* "COMPLETED").
|
|
116
|
+
* @property {string} [filename] - The filename of the history report.
|
|
117
|
+
* @property {string} [status] - The status of the history report (e.g., "COMPLETED").
|
|
155
118
|
* @property {UploadServiceObject} [upload_service_response]
|
|
156
119
|
* @property {string} [created_on] - The date and time when the history report
|
|
157
|
-
* was
|
|
120
|
+
* was created.
|
|
158
121
|
* @property {string} [updated_on] - The date and time when the history report
|
|
159
122
|
* was last updated.
|
|
160
123
|
* @property {string} [message] - A message related to the history report.
|
|
161
124
|
*/
|
|
162
125
|
|
|
163
126
|
/**
|
|
164
|
-
* @typedef
|
|
165
|
-
* @property {HistoryItems[]} [items]
|
|
127
|
+
* @typedef HistoryResponse
|
|
128
|
+
* @property {HistoryItems[]} [items]
|
|
166
129
|
* @property {Page} [page]
|
|
167
130
|
*/
|
|
168
131
|
|
|
169
132
|
/**
|
|
170
133
|
* @typedef HistoryPayload
|
|
171
|
-
* @property {number} [company_id]
|
|
172
|
-
*
|
|
173
|
-
* @property {
|
|
174
|
-
*
|
|
175
|
-
* @property {number} [page_no] - The page number of the history report results.
|
|
176
|
-
* @property {number} [page_size] - The number of records to display per page in
|
|
177
|
-
* the history report.
|
|
134
|
+
* @property {number} [company_id]
|
|
135
|
+
* @property {string} [type] - The type of history report (e.g., "platform").
|
|
136
|
+
* @property {number} [page_no] - The page number of the history report.
|
|
137
|
+
* @property {number} [page_size] - The number of records per page.
|
|
178
138
|
*/
|
|
179
139
|
|
|
180
140
|
/**
|
|
181
|
-
* @typedef
|
|
182
|
-
* @property {string} [message]
|
|
183
|
-
*
|
|
184
|
-
* @property {string} [result] - The outcome of the cancel download operation.
|
|
141
|
+
* @typedef CancelDownloadResponse
|
|
142
|
+
* @property {string} [message]
|
|
143
|
+
* @property {string} [result]
|
|
185
144
|
*/
|
|
186
145
|
|
|
187
146
|
/**
|
|
188
|
-
* @typedef
|
|
189
|
-
* @property {string} [filter_name]
|
|
190
|
-
* @property {Object[]} [values]
|
|
147
|
+
* @typedef FilterReportResponse
|
|
148
|
+
* @property {string} [filter_name]
|
|
149
|
+
* @property {Object[]} [values]
|
|
191
150
|
*/
|
|
192
151
|
|
|
193
152
|
/**
|
|
194
|
-
* @typedef
|
|
153
|
+
* @typedef DeliveryTsResponse
|
|
195
154
|
* @property {DeliveryTsSchema[]} [delivery_ts]
|
|
196
155
|
*/
|
|
197
156
|
|
|
198
157
|
/**
|
|
199
158
|
* @typedef DeliveryTsSchema
|
|
200
|
-
* @property {string} [timestamp]
|
|
201
|
-
* @property {number} [failed]
|
|
202
|
-
* @property {number} [removed_webhooks]
|
|
203
|
-
* @property {number} [success]
|
|
159
|
+
* @property {string} [timestamp]
|
|
160
|
+
* @property {number} [failed]
|
|
161
|
+
* @property {number} [removed_webhooks]
|
|
162
|
+
* @property {number} [success]
|
|
204
163
|
*/
|
|
205
164
|
|
|
206
165
|
/**
|
|
207
|
-
* @typedef
|
|
208
|
-
* @property {string} [company_id]
|
|
209
|
-
*
|
|
210
|
-
* @property {number} [
|
|
211
|
-
* @property {
|
|
212
|
-
* @property {string} [
|
|
213
|
-
*
|
|
214
|
-
* @property {string} [
|
|
215
|
-
* @property {EventDeliveryDetailSchema[]} [event] - A list of event delivery details.
|
|
216
|
-
* @property {string} [status] - The status of the delivery details request.
|
|
166
|
+
* @typedef DeliveryDetailsRequest
|
|
167
|
+
* @property {string} [company_id]
|
|
168
|
+
* @property {number} [page_no]
|
|
169
|
+
* @property {number} [page_size]
|
|
170
|
+
* @property {string} [start_date]
|
|
171
|
+
* @property {string} [end_date]
|
|
172
|
+
* @property {EventDeliveryDetailSchema[]} [event]
|
|
173
|
+
* @property {string} [status]
|
|
217
174
|
*/
|
|
218
175
|
|
|
219
176
|
/**
|
|
220
177
|
* @typedef EventDeliveryDetailSchema
|
|
221
|
-
* @property {string} [event_name]
|
|
222
|
-
*
|
|
223
|
-
* @property {string} [
|
|
224
|
-
*
|
|
225
|
-
* @property {string} [event_category] - The category of the event, allowing for
|
|
226
|
-
* custom or non-enumerated values.
|
|
227
|
-
* @property {string} [version] - The version of the event related to the
|
|
228
|
-
* delivery details.
|
|
178
|
+
* @property {string} [event_name]
|
|
179
|
+
* @property {string} [event_type]
|
|
180
|
+
* @property {string} [event_category]
|
|
181
|
+
* @property {string} [version]
|
|
229
182
|
*/
|
|
230
183
|
|
|
231
184
|
/**
|
|
232
|
-
* @typedef
|
|
233
|
-
* @property {EventProcessReportObject[]} [rows]
|
|
234
|
-
* reports with delivery details.
|
|
185
|
+
* @typedef DeliveryDetailsResponse
|
|
186
|
+
* @property {EventProcessReportObject[]} [rows]
|
|
235
187
|
* @property {Page} [page]
|
|
236
188
|
*/
|
|
237
189
|
|
|
238
190
|
/**
|
|
239
191
|
* @typedef EventProcessReportObject
|
|
240
192
|
* @property {string} [event_name] - The name of the processed event.
|
|
241
|
-
* @property {number} [response_code] - The response code
|
|
242
|
-
*
|
|
243
|
-
* @property {string} [
|
|
244
|
-
* @property {
|
|
245
|
-
* @property {number} [
|
|
246
|
-
* @property {
|
|
247
|
-
* process the event.
|
|
248
|
-
* @property {string} [status] - The status of the event processing (e.g., "FAILED").
|
|
193
|
+
* @property {number} [response_code] - The response code of the event.
|
|
194
|
+
* @property {string} [response_message] - The response message of the event.
|
|
195
|
+
* @property {string} [data] - The data associated with the event.
|
|
196
|
+
* @property {number} [attempt] - The attempt number of the event.
|
|
197
|
+
* @property {number} [last_attempted_on] - The timestamp of the last attempted event.
|
|
198
|
+
* @property {string} [status] - The status of the event (e.g., "FAILED").
|
|
249
199
|
* @property {string} [name] - The name of the event.
|
|
250
|
-
* @property {string} [webhook_url] - The URL
|
|
251
|
-
* @property {number} [response_time] - The time
|
|
252
|
-
* @property {string} [message_id]
|
|
253
|
-
* @property {string} [event_trace_id]
|
|
200
|
+
* @property {string} [webhook_url] - The webhook URL associated with the event.
|
|
201
|
+
* @property {number} [response_time] - The response time of the event.
|
|
202
|
+
* @property {string} [message_id]
|
|
203
|
+
* @property {string} [event_trace_id]
|
|
254
204
|
*/
|
|
255
205
|
|
|
256
206
|
/**
|
|
@@ -266,79 +216,58 @@ const Joi = require("joi");
|
|
|
266
216
|
|
|
267
217
|
/**
|
|
268
218
|
* @typedef DeliveryEventLevelSchema
|
|
269
|
-
* @property {string} [event]
|
|
270
|
-
* @property {number} [success]
|
|
271
|
-
* @property {number} [failed]
|
|
272
|
-
* @property {number} [failed_percentage]
|
|
273
|
-
*
|
|
274
|
-
* @property {number} [
|
|
275
|
-
*
|
|
276
|
-
* @property {number} [total] - The total number of delivery attempts for the event.
|
|
277
|
-
* @property {number} [response_time] - The average response time for the event
|
|
278
|
-
* deliveries.
|
|
219
|
+
* @property {string} [event]
|
|
220
|
+
* @property {number} [success]
|
|
221
|
+
* @property {number} [failed]
|
|
222
|
+
* @property {number} [failed_percentage]
|
|
223
|
+
* @property {number} [removed_webhooks]
|
|
224
|
+
* @property {number} [total]
|
|
225
|
+
* @property {number} [response_time]
|
|
279
226
|
*/
|
|
280
227
|
|
|
281
228
|
/**
|
|
282
|
-
* @typedef
|
|
283
|
-
* @property {AvgResponseTime[]} [avg_response_time_ts]
|
|
284
|
-
*/
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @typedef AvgResponseTime
|
|
288
|
-
* @property {string} [last_attempted_on] - The timestamp of the last attempt,
|
|
289
|
-
* formatted as a string.
|
|
290
|
-
* @property {number} [response_code] - The response code returned for the
|
|
291
|
-
* delivery attempt, allowing for custom or non-enumerated values.
|
|
292
|
-
* @property {string} [response_time] - The response time for the delivery
|
|
293
|
-
* attempt, formatted as a string.
|
|
294
|
-
* @property {number} [attempt] - The attempt number for the delivery.
|
|
295
|
-
* @property {number} [total] - The total count of deliveries attempted.
|
|
296
|
-
*/
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* @typedef DeliverySummaryResult
|
|
229
|
+
* @typedef DeliverySummaryResponse
|
|
300
230
|
* @property {DeliveryEventLevelSchema[]} [delivery_event_level]
|
|
301
231
|
* @property {DeliverySummarySchema} [delivery_summary]
|
|
302
232
|
*/
|
|
303
233
|
|
|
304
234
|
/**
|
|
305
235
|
* @typedef DeliverySummarySchema
|
|
306
|
-
* @property {number} [success]
|
|
307
|
-
* @property {number} [response_time]
|
|
308
|
-
* @property {number} [failed_percentage]
|
|
309
|
-
* @property {number} [removed_webhooks]
|
|
236
|
+
* @property {number} [success]
|
|
237
|
+
* @property {number} [response_time]
|
|
238
|
+
* @property {number} [failed_percentage]
|
|
239
|
+
* @property {number} [removed_webhooks]
|
|
310
240
|
*/
|
|
311
241
|
|
|
312
242
|
/**
|
|
313
243
|
* @typedef ItemSchema
|
|
314
|
-
* @property {number} [id]
|
|
315
|
-
* @property {string} [modified_by]
|
|
316
|
-
* @property {string} [name]
|
|
317
|
-
* @property {string} [webhook_url]
|
|
318
|
-
* @property {string} [provider]
|
|
244
|
+
* @property {number} [id]
|
|
245
|
+
* @property {string} [modified_by]
|
|
246
|
+
* @property {string} [name]
|
|
247
|
+
* @property {string} [webhook_url]
|
|
248
|
+
* @property {string} [provider]
|
|
319
249
|
* @property {Association} [association]
|
|
320
|
-
* @property {Object} [custom_headers]
|
|
321
|
-
* @property {string} [status]
|
|
322
|
-
* @property {string} [email_id]
|
|
323
|
-
* @property {string} [updated_on]
|
|
324
|
-
* @property {string} [created_on]
|
|
325
|
-
* @property {string} [type]
|
|
250
|
+
* @property {Object} [custom_headers]
|
|
251
|
+
* @property {string} [status]
|
|
252
|
+
* @property {string} [email_id]
|
|
253
|
+
* @property {string} [updated_on]
|
|
254
|
+
* @property {string} [created_on]
|
|
255
|
+
* @property {string} [type]
|
|
326
256
|
* @property {AuthMeta} [auth_meta]
|
|
327
|
-
* @property {
|
|
328
|
-
*
|
|
329
|
-
* @property {number[]} [event_id] - A list of event IDs associated with the item.
|
|
257
|
+
* @property {EventConfigResponse[]} [event_configs]
|
|
258
|
+
* @property {number[]} [event_id]
|
|
330
259
|
*/
|
|
331
260
|
|
|
332
261
|
class WebhookPartnerModel {
|
|
333
|
-
/** @returns {
|
|
334
|
-
static
|
|
262
|
+
/** @returns {UpdateSubscriberRequest} */
|
|
263
|
+
static UpdateSubscriberRequest() {
|
|
335
264
|
return Joi.object({
|
|
336
265
|
status: Joi.string().allow(""),
|
|
337
266
|
});
|
|
338
267
|
}
|
|
339
268
|
|
|
340
|
-
/** @returns {
|
|
341
|
-
static
|
|
269
|
+
/** @returns {UpdateSubscriberResponse} */
|
|
270
|
+
static UpdateSubscriberResponse() {
|
|
342
271
|
return Joi.object({
|
|
343
272
|
message: Joi.string().allow(""),
|
|
344
273
|
});
|
|
@@ -362,31 +291,19 @@ class WebhookPartnerModel {
|
|
|
362
291
|
});
|
|
363
292
|
}
|
|
364
293
|
|
|
365
|
-
/** @returns {BroadcasterConfig} */
|
|
366
|
-
static BroadcasterConfig() {
|
|
367
|
-
return Joi.object({
|
|
368
|
-
topic: Joi.string().allow(""),
|
|
369
|
-
queue: Joi.string().allow(""),
|
|
370
|
-
event_bridge_name: Joi.string().allow(""),
|
|
371
|
-
workflow_name: Joi.string().allow(""),
|
|
372
|
-
account_id: Joi.string().allow(""),
|
|
373
|
-
detail_type: Joi.string().allow(""),
|
|
374
|
-
}).allow(null);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
294
|
/** @returns {SubscriberEventMapping} */
|
|
378
295
|
static SubscriberEventMapping() {
|
|
379
296
|
return Joi.object({
|
|
380
297
|
id: Joi.number(),
|
|
381
298
|
event_id: Joi.number(),
|
|
382
299
|
subscriber_id: Joi.number(),
|
|
383
|
-
|
|
300
|
+
topic: Joi.string().allow("").allow(null),
|
|
384
301
|
created_on: Joi.string().allow(""),
|
|
385
302
|
});
|
|
386
303
|
}
|
|
387
304
|
|
|
388
|
-
/** @returns {
|
|
389
|
-
static
|
|
305
|
+
/** @returns {EventConfigResponse} */
|
|
306
|
+
static EventConfigResponse() {
|
|
390
307
|
return Joi.object({
|
|
391
308
|
id: Joi.number(),
|
|
392
309
|
event_name: Joi.string().allow(""),
|
|
@@ -403,16 +320,16 @@ class WebhookPartnerModel {
|
|
|
403
320
|
});
|
|
404
321
|
}
|
|
405
322
|
|
|
406
|
-
/** @returns {
|
|
407
|
-
static
|
|
323
|
+
/** @returns {SubscriberConfigResponse} */
|
|
324
|
+
static SubscriberConfigResponse() {
|
|
408
325
|
return Joi.object({
|
|
409
326
|
items: Joi.array().items(WebhookPartnerModel.ItemSchema()),
|
|
410
327
|
page: WebhookPartnerModel.Page(),
|
|
411
328
|
});
|
|
412
329
|
}
|
|
413
330
|
|
|
414
|
-
/** @returns {
|
|
415
|
-
static
|
|
331
|
+
/** @returns {InvalidEventsRequest} */
|
|
332
|
+
static InvalidEventsRequest() {
|
|
416
333
|
return Joi.object({
|
|
417
334
|
event_name: Joi.string().allow(""),
|
|
418
335
|
version: Joi.string().allow(""),
|
|
@@ -422,8 +339,8 @@ class WebhookPartnerModel {
|
|
|
422
339
|
});
|
|
423
340
|
}
|
|
424
341
|
|
|
425
|
-
/** @returns {
|
|
426
|
-
static
|
|
342
|
+
/** @returns {InvalidEventsResponse} */
|
|
343
|
+
static InvalidEventsResponse() {
|
|
427
344
|
return Joi.object({
|
|
428
345
|
event_name: Joi.string().allow(""),
|
|
429
346
|
event_type: Joi.string().allow(""),
|
|
@@ -491,8 +408,8 @@ class WebhookPartnerModel {
|
|
|
491
408
|
});
|
|
492
409
|
}
|
|
493
410
|
|
|
494
|
-
/** @returns {
|
|
495
|
-
static
|
|
411
|
+
/** @returns {HistoryResponse} */
|
|
412
|
+
static HistoryResponse() {
|
|
496
413
|
return Joi.object({
|
|
497
414
|
items: Joi.array().items(WebhookPartnerModel.HistoryItems()),
|
|
498
415
|
page: WebhookPartnerModel.Page(),
|
|
@@ -509,24 +426,24 @@ class WebhookPartnerModel {
|
|
|
509
426
|
});
|
|
510
427
|
}
|
|
511
428
|
|
|
512
|
-
/** @returns {
|
|
513
|
-
static
|
|
429
|
+
/** @returns {CancelDownloadResponse} */
|
|
430
|
+
static CancelDownloadResponse() {
|
|
514
431
|
return Joi.object({
|
|
515
432
|
message: Joi.string().allow(""),
|
|
516
433
|
result: Joi.string().allow(""),
|
|
517
434
|
});
|
|
518
435
|
}
|
|
519
436
|
|
|
520
|
-
/** @returns {
|
|
521
|
-
static
|
|
437
|
+
/** @returns {FilterReportResponse} */
|
|
438
|
+
static FilterReportResponse() {
|
|
522
439
|
return Joi.object({
|
|
523
440
|
filter_name: Joi.string().allow(""),
|
|
524
441
|
values: Joi.array().items(Joi.object().pattern(/\S/, Joi.any())),
|
|
525
442
|
});
|
|
526
443
|
}
|
|
527
444
|
|
|
528
|
-
/** @returns {
|
|
529
|
-
static
|
|
445
|
+
/** @returns {DeliveryTsResponse} */
|
|
446
|
+
static DeliveryTsResponse() {
|
|
530
447
|
return Joi.object({
|
|
531
448
|
delivery_ts: Joi.array().items(WebhookPartnerModel.DeliveryTsSchema()),
|
|
532
449
|
});
|
|
@@ -542,8 +459,8 @@ class WebhookPartnerModel {
|
|
|
542
459
|
});
|
|
543
460
|
}
|
|
544
461
|
|
|
545
|
-
/** @returns {
|
|
546
|
-
static
|
|
462
|
+
/** @returns {DeliveryDetailsRequest} */
|
|
463
|
+
static DeliveryDetailsRequest() {
|
|
547
464
|
return Joi.object({
|
|
548
465
|
company_id: Joi.string().allow(""),
|
|
549
466
|
page_no: Joi.number(),
|
|
@@ -565,8 +482,8 @@ class WebhookPartnerModel {
|
|
|
565
482
|
});
|
|
566
483
|
}
|
|
567
484
|
|
|
568
|
-
/** @returns {
|
|
569
|
-
static
|
|
485
|
+
/** @returns {DeliveryDetailsResponse} */
|
|
486
|
+
static DeliveryDetailsResponse() {
|
|
570
487
|
return Joi.object({
|
|
571
488
|
rows: Joi.array().items(WebhookPartnerModel.EventProcessReportObject()),
|
|
572
489
|
page: WebhookPartnerModel.Page(),
|
|
@@ -617,28 +534,8 @@ class WebhookPartnerModel {
|
|
|
617
534
|
});
|
|
618
535
|
}
|
|
619
536
|
|
|
620
|
-
/** @returns {
|
|
621
|
-
static
|
|
622
|
-
return Joi.object({
|
|
623
|
-
avg_response_time_ts: Joi.array().items(
|
|
624
|
-
WebhookPartnerModel.AvgResponseTime()
|
|
625
|
-
),
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/** @returns {AvgResponseTime} */
|
|
630
|
-
static AvgResponseTime() {
|
|
631
|
-
return Joi.object({
|
|
632
|
-
last_attempted_on: Joi.string().allow(""),
|
|
633
|
-
response_code: Joi.number(),
|
|
634
|
-
response_time: Joi.string().allow(""),
|
|
635
|
-
attempt: Joi.number(),
|
|
636
|
-
total: Joi.number(),
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/** @returns {DeliverySummaryResult} */
|
|
641
|
-
static DeliverySummaryResult() {
|
|
537
|
+
/** @returns {DeliverySummaryResponse} */
|
|
538
|
+
static DeliverySummaryResponse() {
|
|
642
539
|
return Joi.object({
|
|
643
540
|
delivery_event_level: Joi.array().items(
|
|
644
541
|
WebhookPartnerModel.DeliveryEventLevelSchema()
|
|
@@ -666,7 +563,7 @@ class WebhookPartnerModel {
|
|
|
666
563
|
webhook_url: Joi.string().allow(""),
|
|
667
564
|
provider: Joi.string().allow(""),
|
|
668
565
|
association: WebhookPartnerModel.Association(),
|
|
669
|
-
custom_headers: Joi.
|
|
566
|
+
custom_headers: Joi.any(),
|
|
670
567
|
status: Joi.string().allow(""),
|
|
671
568
|
email_id: Joi.string().allow(""),
|
|
672
569
|
updated_on: Joi.string().allow(""),
|
|
@@ -674,7 +571,7 @@ class WebhookPartnerModel {
|
|
|
674
571
|
type: Joi.string().allow("").allow(null),
|
|
675
572
|
auth_meta: WebhookPartnerModel.AuthMeta(),
|
|
676
573
|
event_configs: Joi.array().items(
|
|
677
|
-
WebhookPartnerModel.
|
|
574
|
+
WebhookPartnerModel.EventConfigResponse()
|
|
678
575
|
),
|
|
679
576
|
event_id: Joi.array().items(Joi.number()),
|
|
680
577
|
});
|