@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -2,17 +2,16 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @typedef CreateAppPushtokenParam
|
|
7
|
+
* @property {CommunicationPlatformModel.PushtokenReq} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
/**
|
|
6
11
|
* @typedef CreateAudienceParam
|
|
7
12
|
* @property {CommunicationPlatformModel.AudienceReq} body
|
|
8
13
|
*/
|
|
9
14
|
|
|
10
|
-
/** @typedef CreateBigQueryHeadersParam */
|
|
11
|
-
|
|
12
|
-
/** @typedef CreateBigQueryNCountParam */
|
|
13
|
-
|
|
14
|
-
/** @typedef CreateBigQueryRowCountParam */
|
|
15
|
-
|
|
16
15
|
/**
|
|
17
16
|
* @typedef CreateCampaignParam
|
|
18
17
|
* @property {CommunicationPlatformModel.CampaignReq} body
|
|
@@ -35,7 +34,7 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* @typedef CreateEventSubscriptionsByBulkParam
|
|
38
|
-
* @property {CommunicationPlatformModel.
|
|
37
|
+
* @property {CommunicationPlatformModel.EventSubscriptionsBulkUpdateRequest} body
|
|
39
38
|
*/
|
|
40
39
|
|
|
41
40
|
/**
|
|
@@ -55,18 +54,23 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
56
|
* @typedef DeleteAudienceByIdParam
|
|
58
|
-
* @property {string} id -
|
|
57
|
+
* @property {string} id - Event subscription id
|
|
59
58
|
* @property {CommunicationPlatformModel.AudienceReq} body
|
|
60
59
|
*/
|
|
61
60
|
|
|
61
|
+
/**
|
|
62
|
+
* @typedef DeleteCampaignByIdParam
|
|
63
|
+
* @property {string} id - Event subscription id
|
|
64
|
+
*/
|
|
65
|
+
|
|
62
66
|
/**
|
|
63
67
|
* @typedef DeleteEmailProviderByIdParam
|
|
64
|
-
* @property {string} id -
|
|
68
|
+
* @property {string} id - Event subscription id
|
|
65
69
|
*/
|
|
66
70
|
|
|
67
71
|
/**
|
|
68
72
|
* @typedef DeleteEmailTemplateByIdParam
|
|
69
|
-
* @property {string} id -
|
|
73
|
+
* @property {string} id - Event subscription id
|
|
70
74
|
*/
|
|
71
75
|
|
|
72
76
|
/**
|
|
@@ -76,66 +80,58 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
76
80
|
|
|
77
81
|
/**
|
|
78
82
|
* @typedef DeleteSmsProviderByIdParam
|
|
79
|
-
* @property {string} id -
|
|
83
|
+
* @property {string} id - Event subscription id
|
|
80
84
|
*/
|
|
81
85
|
|
|
82
86
|
/**
|
|
83
87
|
* @typedef DeleteSmsTemplateByIdParam
|
|
84
|
-
* @property {string} id -
|
|
88
|
+
* @property {string} id - Event subscription id
|
|
85
89
|
*/
|
|
86
90
|
|
|
87
91
|
/**
|
|
88
92
|
* @typedef EditEventSubscriptionsParam
|
|
89
93
|
* @property {string} id - Event subscription id
|
|
90
|
-
* @property {CommunicationPlatformModel.
|
|
94
|
+
* @property {CommunicationPlatformModel.SubscriptionsObjectRequest} body
|
|
91
95
|
*/
|
|
92
96
|
|
|
93
97
|
/** @typedef GetAppProvidersParam */
|
|
94
98
|
|
|
95
99
|
/**
|
|
96
100
|
* @typedef GetAudienceByIdParam
|
|
97
|
-
* @property {string} id -
|
|
101
|
+
* @property {string} id - Event subscription id
|
|
98
102
|
*/
|
|
99
103
|
|
|
100
104
|
/**
|
|
101
105
|
* @typedef GetAudiencesParam
|
|
102
106
|
* @property {number} [pageNo] - Current page no
|
|
103
107
|
* @property {number} [pageSize] - Current request items count
|
|
104
|
-
* @property {
|
|
105
|
-
* @property {
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @typedef GetBigQueryHeadersByIdParam
|
|
110
|
-
* @property {string} id - Audience id
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @typedef GetBigQueryRowCountByIdParam
|
|
115
|
-
* @property {string} id - Audience id
|
|
108
|
+
* @property {string} [sort] - To sort based on created_at
|
|
109
|
+
* @property {string} [query] - To search based on plain text
|
|
116
110
|
*/
|
|
117
111
|
|
|
118
112
|
/**
|
|
119
113
|
* @typedef GetCampaignByIdParam
|
|
120
|
-
* @property {string} id -
|
|
114
|
+
* @property {string} id - Event subscription id
|
|
121
115
|
*/
|
|
122
116
|
|
|
123
117
|
/**
|
|
124
118
|
* @typedef GetCampaignsParam
|
|
125
|
-
* @property {
|
|
119
|
+
* @property {string} [query] - To search based on plain text
|
|
126
120
|
* @property {number} [pageNo] - Current page no
|
|
127
121
|
* @property {number} [pageSize] - Current request items count
|
|
128
|
-
* @property {
|
|
122
|
+
* @property {string} [sort] - To sort based on created_at
|
|
129
123
|
*/
|
|
130
124
|
|
|
131
125
|
/**
|
|
132
126
|
* @typedef GetCommunicationLogsParam
|
|
133
|
-
* @property {
|
|
127
|
+
* @property {number} [pageNo] - Current page no
|
|
134
128
|
* @property {number} [pageSize] - Current request items count
|
|
135
|
-
* @property {
|
|
129
|
+
* @property {string} [sort] - To sort based on created_at
|
|
136
130
|
* @property {Object} [query]
|
|
137
131
|
*/
|
|
138
132
|
|
|
133
|
+
/** @typedef GetDefaultEmailProvidersParam */
|
|
134
|
+
|
|
139
135
|
/** @typedef GetDefaultSmsProvidersParam */
|
|
140
136
|
|
|
141
137
|
/** @typedef GetDummyDatasourcesParam */
|
|
@@ -147,28 +143,28 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
147
143
|
|
|
148
144
|
/**
|
|
149
145
|
* @typedef GetEmailProviderByIdParam
|
|
150
|
-
* @property {string} id -
|
|
146
|
+
* @property {string} id - Event subscription id
|
|
151
147
|
*/
|
|
152
148
|
|
|
153
149
|
/**
|
|
154
150
|
* @typedef GetEmailProvidersParam
|
|
155
151
|
* @property {number} [pageNo] - Current page no
|
|
156
152
|
* @property {number} [pageSize] - Current request items count
|
|
157
|
-
* @property {
|
|
158
|
-
* @property {
|
|
153
|
+
* @property {string} [sort] - To sort based on created_at
|
|
154
|
+
* @property {string} [query] - To search based on plain text
|
|
159
155
|
*/
|
|
160
156
|
|
|
161
157
|
/**
|
|
162
158
|
* @typedef GetEmailTemplateByIdParam
|
|
163
|
-
* @property {string} id -
|
|
159
|
+
* @property {string} id - Event subscription id
|
|
164
160
|
*/
|
|
165
161
|
|
|
166
162
|
/**
|
|
167
163
|
* @typedef GetEmailTemplatesParam
|
|
168
164
|
* @property {number} [pageNo] - Current page no
|
|
169
165
|
* @property {number} [pageSize] - Current request items count
|
|
170
|
-
* @property {
|
|
171
|
-
* @property {
|
|
166
|
+
* @property {string} [sort] - To sort based on created_at
|
|
167
|
+
* @property {string} [query] - To search based on plain text
|
|
172
168
|
*/
|
|
173
169
|
|
|
174
170
|
/**
|
|
@@ -180,8 +176,8 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
180
176
|
|
|
181
177
|
/**
|
|
182
178
|
* @typedef GetEventSubscriptionsByIdParam
|
|
183
|
-
* @property {string} id - Event subscription id
|
|
184
179
|
* @property {string} [populate] - Populate Fields
|
|
180
|
+
* @property {string} id - Event subscription id
|
|
185
181
|
*/
|
|
186
182
|
|
|
187
183
|
/** @typedef GetGlobalProvidersParam */
|
|
@@ -192,16 +188,16 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
192
188
|
* @typedef GetJobLogsParam
|
|
193
189
|
* @property {number} [pageNo] - Current page no
|
|
194
190
|
* @property {number} [pageSize] - Current request items count
|
|
195
|
-
* @property {
|
|
196
|
-
* @property {
|
|
191
|
+
* @property {string} [sort] - To sort based on created_at
|
|
192
|
+
* @property {string} [query] - To search based on plain text
|
|
197
193
|
*/
|
|
198
194
|
|
|
199
195
|
/**
|
|
200
196
|
* @typedef GetJobsParam
|
|
201
197
|
* @property {number} [pageNo] - Current page no
|
|
202
198
|
* @property {number} [pageSize] - Current request items count
|
|
203
|
-
* @property {
|
|
204
|
-
* @property {
|
|
199
|
+
* @property {string} [sort] - To sort based on created_at
|
|
200
|
+
* @property {string} [query] - To search based on plain text
|
|
205
201
|
*/
|
|
206
202
|
|
|
207
203
|
/**
|
|
@@ -209,57 +205,60 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
209
205
|
* @property {CommunicationPlatformModel.GetNRecordsCsvReq} body
|
|
210
206
|
*/
|
|
211
207
|
|
|
212
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* @typedef GetNSampleRecordsFromCsvByGetParam
|
|
210
|
+
* @property {number} [count] - Number or records
|
|
211
|
+
* @property {boolean} [header] - Header needed
|
|
212
|
+
* @property {string} [url] - Url of file
|
|
213
|
+
*/
|
|
213
214
|
|
|
214
215
|
/** @typedef GetOtpConfigurationParam */
|
|
215
216
|
|
|
216
217
|
/**
|
|
217
218
|
* @typedef GetSmsProviderByIdParam
|
|
218
|
-
* @property {string} id -
|
|
219
|
+
* @property {string} id - Event subscription id
|
|
219
220
|
*/
|
|
220
221
|
|
|
221
222
|
/**
|
|
222
223
|
* @typedef GetSmsProvidersParam
|
|
223
224
|
* @property {number} [pageNo] - Current page no
|
|
224
225
|
* @property {number} [pageSize] - Current request items count
|
|
225
|
-
* @property {
|
|
226
|
-
* @property {
|
|
226
|
+
* @property {string} [sort] - To sort based on created_at
|
|
227
|
+
* @property {string} [query] - To search based on plain text
|
|
227
228
|
*/
|
|
228
229
|
|
|
229
230
|
/**
|
|
230
231
|
* @typedef GetSmsTemplateByIdParam
|
|
231
|
-
* @property {string} id -
|
|
232
|
+
* @property {string} id - Event subscription id
|
|
232
233
|
*/
|
|
233
234
|
|
|
234
235
|
/**
|
|
235
236
|
* @typedef GetSmsTemplatesParam
|
|
236
237
|
* @property {number} [pageNo] - Current page no
|
|
237
238
|
* @property {number} [pageSize] - Current request items count
|
|
238
|
-
* @property {
|
|
239
|
-
* @property {
|
|
239
|
+
* @property {string} [sort] - To sort based on created_at
|
|
240
|
+
* @property {string} [query] - To search based on plain text
|
|
240
241
|
*/
|
|
241
242
|
|
|
242
243
|
/**
|
|
243
244
|
* @typedef GetStatsOfCampaignByIdParam
|
|
244
|
-
* @property {string} id -
|
|
245
|
+
* @property {string} id - Event subscription id
|
|
245
246
|
*/
|
|
246
247
|
|
|
247
248
|
/**
|
|
248
249
|
* @typedef GetSubscribedEmailTemplatesParam
|
|
249
250
|
* @property {number} [pageNo] - Current page no
|
|
250
251
|
* @property {number} [pageSize] - Current request items count
|
|
251
|
-
* @property {
|
|
252
|
+
* @property {string} [query] - To search based on plain text
|
|
252
253
|
*/
|
|
253
254
|
|
|
254
255
|
/**
|
|
255
256
|
* @typedef GetSubscribedSmsTemplatesParam
|
|
256
257
|
* @property {number} [pageNo] - Current page no
|
|
257
258
|
* @property {number} [pageSize] - Current request items count
|
|
258
|
-
* @property {
|
|
259
|
+
* @property {string} [query] - To search based on plain text
|
|
259
260
|
*/
|
|
260
261
|
|
|
261
|
-
/** @typedef GetSystemAudiencesParam */
|
|
262
|
-
|
|
263
262
|
/** @typedef GetSystemEmailTemplatesParam */
|
|
264
263
|
|
|
265
264
|
/** @typedef GetSystemSmsTemplatesParam */
|
|
@@ -271,22 +270,28 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
271
270
|
|
|
272
271
|
/**
|
|
273
272
|
* @typedef SendCommunicationAsynchronouslyParam
|
|
274
|
-
* @property {CommunicationPlatformModel.
|
|
273
|
+
* @property {CommunicationPlatformModel.EngineRequest} body
|
|
275
274
|
*/
|
|
276
275
|
|
|
277
276
|
/**
|
|
278
277
|
* @typedef SendCommunicationSynchronouslyParam
|
|
279
|
-
* @property {CommunicationPlatformModel.
|
|
278
|
+
* @property {CommunicationPlatformModel.EngineRequest} body
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @typedef SendEngineCommunicationSynchronouslyParam
|
|
283
|
+
* @property {CommunicationPlatformModel.EngineRequest} body
|
|
280
284
|
*/
|
|
281
285
|
|
|
282
286
|
/**
|
|
283
287
|
* @typedef SendOtpParam
|
|
288
|
+
* @property {boolean} [ci] - Common Information
|
|
284
289
|
* @property {CommunicationPlatformModel.SendOtpCommsReq} body
|
|
285
290
|
*/
|
|
286
291
|
|
|
287
292
|
/**
|
|
288
293
|
* @typedef TriggerCampaignJobParam
|
|
289
|
-
* @property {CommunicationPlatformModel.
|
|
294
|
+
* @property {CommunicationPlatformModel.TriggerJobRequest} body
|
|
290
295
|
*/
|
|
291
296
|
|
|
292
297
|
/**
|
|
@@ -294,41 +299,49 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
294
299
|
* @property {CommunicationPlatformModel.AppProviderReq} body
|
|
295
300
|
*/
|
|
296
301
|
|
|
302
|
+
/**
|
|
303
|
+
* @typedef UpdateAppProvidersGlobalProviderParam
|
|
304
|
+
* @property {CommunicationPlatformModel.AppProvidersGlobalProviderRequest} body
|
|
305
|
+
*/
|
|
306
|
+
|
|
297
307
|
/**
|
|
298
308
|
* @typedef UpdateAudienceByIdParam
|
|
299
|
-
* @property {string} id -
|
|
309
|
+
* @property {string} id - Event subscription id
|
|
300
310
|
* @property {CommunicationPlatformModel.AudienceReq} body
|
|
301
311
|
*/
|
|
302
312
|
|
|
303
313
|
/**
|
|
304
314
|
* @typedef UpdateCampaignByIdParam
|
|
305
|
-
* @property {string} id -
|
|
315
|
+
* @property {string} id - Event subscription id
|
|
306
316
|
* @property {CommunicationPlatformModel.CampaignReq} body
|
|
307
317
|
*/
|
|
308
318
|
|
|
309
319
|
/**
|
|
310
320
|
* @typedef UpdateEmailProviderByIdParam
|
|
311
|
-
* @property {string} id -
|
|
321
|
+
* @property {string} id - Event subscription id
|
|
312
322
|
* @property {CommunicationPlatformModel.EmailProviderReq} body
|
|
313
323
|
*/
|
|
314
324
|
|
|
315
325
|
/**
|
|
316
326
|
* @typedef UpdateEmailTemplateByIdParam
|
|
317
|
-
* @property {string} id -
|
|
327
|
+
* @property {string} id - Event subscription id
|
|
318
328
|
* @property {CommunicationPlatformModel.EmailTemplateReq} body
|
|
319
329
|
*/
|
|
320
330
|
|
|
321
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* @typedef UpdateOtpConfigurationParam
|
|
333
|
+
* @property {CommunicationPlatformModel.OtpConfiguration} body
|
|
334
|
+
*/
|
|
322
335
|
|
|
323
336
|
/**
|
|
324
337
|
* @typedef UpdateSmsProviderByIdParam
|
|
325
|
-
* @property {string} id -
|
|
338
|
+
* @property {string} id - Event subscription id
|
|
326
339
|
* @property {CommunicationPlatformModel.SmsProviderReq} body
|
|
327
340
|
*/
|
|
328
341
|
|
|
329
342
|
/**
|
|
330
343
|
* @typedef UpdateSmsTemplateByIdParam
|
|
331
|
-
* @property {string} id -
|
|
344
|
+
* @property {string} id - Event subscription id
|
|
332
345
|
* @property {CommunicationPlatformModel.SmsTemplateReq} body
|
|
333
346
|
*/
|
|
334
347
|
|
|
@@ -338,6 +351,13 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
338
351
|
*/
|
|
339
352
|
|
|
340
353
|
class CommunicationPlatformApplicationValidator {
|
|
354
|
+
/** @returns {CreateAppPushtokenParam} */
|
|
355
|
+
static createAppPushtoken() {
|
|
356
|
+
return Joi.object({
|
|
357
|
+
body: CommunicationPlatformModel.PushtokenReq().required(),
|
|
358
|
+
}).required();
|
|
359
|
+
}
|
|
360
|
+
|
|
341
361
|
/** @returns {CreateAudienceParam} */
|
|
342
362
|
static createAudience() {
|
|
343
363
|
return Joi.object({
|
|
@@ -345,21 +365,6 @@ class CommunicationPlatformApplicationValidator {
|
|
|
345
365
|
}).required();
|
|
346
366
|
}
|
|
347
367
|
|
|
348
|
-
/** @returns {CreateBigQueryHeadersParam} */
|
|
349
|
-
static createBigQueryHeaders() {
|
|
350
|
-
return Joi.object({}).required();
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/** @returns {CreateBigQueryNCountParam} */
|
|
354
|
-
static createBigQueryNCount() {
|
|
355
|
-
return Joi.object({}).required();
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/** @returns {CreateBigQueryRowCountParam} */
|
|
359
|
-
static createBigQueryRowCount() {
|
|
360
|
-
return Joi.object({}).required();
|
|
361
|
-
}
|
|
362
|
-
|
|
363
368
|
/** @returns {CreateCampaignParam} */
|
|
364
369
|
static createCampaign() {
|
|
365
370
|
return Joi.object({
|
|
@@ -391,7 +396,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
391
396
|
/** @returns {CreateEventSubscriptionsByBulkParam} */
|
|
392
397
|
static createEventSubscriptionsByBulk() {
|
|
393
398
|
return Joi.object({
|
|
394
|
-
body: CommunicationPlatformModel.
|
|
399
|
+
body: CommunicationPlatformModel.EventSubscriptionsBulkUpdateRequest().required(),
|
|
395
400
|
}).required();
|
|
396
401
|
}
|
|
397
402
|
|
|
@@ -424,6 +429,13 @@ class CommunicationPlatformApplicationValidator {
|
|
|
424
429
|
}).required();
|
|
425
430
|
}
|
|
426
431
|
|
|
432
|
+
/** @returns {DeleteCampaignByIdParam} */
|
|
433
|
+
static deleteCampaignById() {
|
|
434
|
+
return Joi.object({
|
|
435
|
+
id: Joi.string().allow("").required(),
|
|
436
|
+
}).required();
|
|
437
|
+
}
|
|
438
|
+
|
|
427
439
|
/** @returns {DeleteEmailProviderByIdParam} */
|
|
428
440
|
static deleteEmailProviderById() {
|
|
429
441
|
return Joi.object({
|
|
@@ -463,7 +475,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
463
475
|
static editEventSubscriptions() {
|
|
464
476
|
return Joi.object({
|
|
465
477
|
id: Joi.string().allow("").required(),
|
|
466
|
-
body: CommunicationPlatformModel.
|
|
478
|
+
body: CommunicationPlatformModel.SubscriptionsObjectRequest().required(),
|
|
467
479
|
}).required();
|
|
468
480
|
}
|
|
469
481
|
|
|
@@ -484,22 +496,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
484
496
|
return Joi.object({
|
|
485
497
|
pageNo: Joi.number(),
|
|
486
498
|
pageSize: Joi.number(),
|
|
487
|
-
sort: Joi.
|
|
488
|
-
query: Joi.
|
|
489
|
-
}).required();
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
/** @returns {GetBigQueryHeadersByIdParam} */
|
|
493
|
-
static getBigQueryHeadersById() {
|
|
494
|
-
return Joi.object({
|
|
495
|
-
id: Joi.string().allow("").required(),
|
|
496
|
-
}).required();
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/** @returns {GetBigQueryRowCountByIdParam} */
|
|
500
|
-
static getBigQueryRowCountById() {
|
|
501
|
-
return Joi.object({
|
|
502
|
-
id: Joi.string().allow("").required(),
|
|
499
|
+
sort: Joi.string().allow(""),
|
|
500
|
+
query: Joi.string().allow(""),
|
|
503
501
|
}).required();
|
|
504
502
|
}
|
|
505
503
|
|
|
@@ -513,23 +511,28 @@ class CommunicationPlatformApplicationValidator {
|
|
|
513
511
|
/** @returns {GetCampaignsParam} */
|
|
514
512
|
static getCampaigns() {
|
|
515
513
|
return Joi.object({
|
|
516
|
-
query: Joi.
|
|
514
|
+
query: Joi.string().allow(""),
|
|
517
515
|
pageNo: Joi.number(),
|
|
518
516
|
pageSize: Joi.number(),
|
|
519
|
-
sort: Joi.
|
|
517
|
+
sort: Joi.string().allow(""),
|
|
520
518
|
}).required();
|
|
521
519
|
}
|
|
522
520
|
|
|
523
521
|
/** @returns {GetCommunicationLogsParam} */
|
|
524
522
|
static getCommunicationLogs() {
|
|
525
523
|
return Joi.object({
|
|
526
|
-
|
|
524
|
+
pageNo: Joi.number(),
|
|
527
525
|
pageSize: Joi.number(),
|
|
528
|
-
sort: Joi.
|
|
526
|
+
sort: Joi.string().allow(""),
|
|
529
527
|
query: Joi.any(),
|
|
530
528
|
}).required();
|
|
531
529
|
}
|
|
532
530
|
|
|
531
|
+
/** @returns {GetDefaultEmailProvidersParam} */
|
|
532
|
+
static getDefaultEmailProviders() {
|
|
533
|
+
return Joi.object({}).required();
|
|
534
|
+
}
|
|
535
|
+
|
|
533
536
|
/** @returns {GetDefaultSmsProvidersParam} */
|
|
534
537
|
static getDefaultSmsProviders() {
|
|
535
538
|
return Joi.object({}).required();
|
|
@@ -559,8 +562,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
559
562
|
return Joi.object({
|
|
560
563
|
pageNo: Joi.number(),
|
|
561
564
|
pageSize: Joi.number(),
|
|
562
|
-
sort: Joi.
|
|
563
|
-
query: Joi.
|
|
565
|
+
sort: Joi.string().allow(""),
|
|
566
|
+
query: Joi.string().allow(""),
|
|
564
567
|
}).required();
|
|
565
568
|
}
|
|
566
569
|
|
|
@@ -576,8 +579,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
576
579
|
return Joi.object({
|
|
577
580
|
pageNo: Joi.number(),
|
|
578
581
|
pageSize: Joi.number(),
|
|
579
|
-
sort: Joi.
|
|
580
|
-
query: Joi.
|
|
582
|
+
sort: Joi.string().allow(""),
|
|
583
|
+
query: Joi.string().allow(""),
|
|
581
584
|
}).required();
|
|
582
585
|
}
|
|
583
586
|
|
|
@@ -593,8 +596,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
593
596
|
/** @returns {GetEventSubscriptionsByIdParam} */
|
|
594
597
|
static getEventSubscriptionsById() {
|
|
595
598
|
return Joi.object({
|
|
596
|
-
id: Joi.string().allow("").required(),
|
|
597
599
|
populate: Joi.string().allow(""),
|
|
600
|
+
id: Joi.string().allow("").required(),
|
|
598
601
|
}).required();
|
|
599
602
|
}
|
|
600
603
|
|
|
@@ -613,8 +616,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
613
616
|
return Joi.object({
|
|
614
617
|
pageNo: Joi.number(),
|
|
615
618
|
pageSize: Joi.number(),
|
|
616
|
-
sort: Joi.
|
|
617
|
-
query: Joi.
|
|
619
|
+
sort: Joi.string().allow(""),
|
|
620
|
+
query: Joi.string().allow(""),
|
|
618
621
|
}).required();
|
|
619
622
|
}
|
|
620
623
|
|
|
@@ -623,8 +626,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
623
626
|
return Joi.object({
|
|
624
627
|
pageNo: Joi.number(),
|
|
625
628
|
pageSize: Joi.number(),
|
|
626
|
-
sort: Joi.
|
|
627
|
-
query: Joi.
|
|
629
|
+
sort: Joi.string().allow(""),
|
|
630
|
+
query: Joi.string().allow(""),
|
|
628
631
|
}).required();
|
|
629
632
|
}
|
|
630
633
|
|
|
@@ -637,7 +640,11 @@ class CommunicationPlatformApplicationValidator {
|
|
|
637
640
|
|
|
638
641
|
/** @returns {GetNSampleRecordsFromCsvByGetParam} */
|
|
639
642
|
static getNSampleRecordsFromCsvByGet() {
|
|
640
|
-
return Joi.object({
|
|
643
|
+
return Joi.object({
|
|
644
|
+
count: Joi.number(),
|
|
645
|
+
header: Joi.boolean(),
|
|
646
|
+
url: Joi.string().allow(""),
|
|
647
|
+
}).required();
|
|
641
648
|
}
|
|
642
649
|
|
|
643
650
|
/** @returns {GetOtpConfigurationParam} */
|
|
@@ -657,8 +664,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
657
664
|
return Joi.object({
|
|
658
665
|
pageNo: Joi.number(),
|
|
659
666
|
pageSize: Joi.number(),
|
|
660
|
-
sort: Joi.
|
|
661
|
-
query: Joi.
|
|
667
|
+
sort: Joi.string().allow(""),
|
|
668
|
+
query: Joi.string().allow(""),
|
|
662
669
|
}).required();
|
|
663
670
|
}
|
|
664
671
|
|
|
@@ -674,8 +681,8 @@ class CommunicationPlatformApplicationValidator {
|
|
|
674
681
|
return Joi.object({
|
|
675
682
|
pageNo: Joi.number(),
|
|
676
683
|
pageSize: Joi.number(),
|
|
677
|
-
sort: Joi.
|
|
678
|
-
query: Joi.
|
|
684
|
+
sort: Joi.string().allow(""),
|
|
685
|
+
query: Joi.string().allow(""),
|
|
679
686
|
}).required();
|
|
680
687
|
}
|
|
681
688
|
|
|
@@ -691,7 +698,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
691
698
|
return Joi.object({
|
|
692
699
|
pageNo: Joi.number(),
|
|
693
700
|
pageSize: Joi.number(),
|
|
694
|
-
query: Joi.
|
|
701
|
+
query: Joi.string().allow(""),
|
|
695
702
|
}).required();
|
|
696
703
|
}
|
|
697
704
|
|
|
@@ -700,15 +707,10 @@ class CommunicationPlatformApplicationValidator {
|
|
|
700
707
|
return Joi.object({
|
|
701
708
|
pageNo: Joi.number(),
|
|
702
709
|
pageSize: Joi.number(),
|
|
703
|
-
query: Joi.
|
|
710
|
+
query: Joi.string().allow(""),
|
|
704
711
|
}).required();
|
|
705
712
|
}
|
|
706
713
|
|
|
707
|
-
/** @returns {GetSystemAudiencesParam} */
|
|
708
|
-
static getSystemAudiences() {
|
|
709
|
-
return Joi.object({}).required();
|
|
710
|
-
}
|
|
711
|
-
|
|
712
714
|
/** @returns {GetSystemEmailTemplatesParam} */
|
|
713
715
|
static getSystemEmailTemplates() {
|
|
714
716
|
return Joi.object({}).required();
|
|
@@ -729,20 +731,28 @@ class CommunicationPlatformApplicationValidator {
|
|
|
729
731
|
/** @returns {SendCommunicationAsynchronouslyParam} */
|
|
730
732
|
static sendCommunicationAsynchronously() {
|
|
731
733
|
return Joi.object({
|
|
732
|
-
body: CommunicationPlatformModel.
|
|
734
|
+
body: CommunicationPlatformModel.EngineRequest().required(),
|
|
733
735
|
}).required();
|
|
734
736
|
}
|
|
735
737
|
|
|
736
738
|
/** @returns {SendCommunicationSynchronouslyParam} */
|
|
737
739
|
static sendCommunicationSynchronously() {
|
|
738
740
|
return Joi.object({
|
|
739
|
-
body: CommunicationPlatformModel.
|
|
741
|
+
body: CommunicationPlatformModel.EngineRequest().required(),
|
|
742
|
+
}).required();
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/** @returns {SendEngineCommunicationSynchronouslyParam} */
|
|
746
|
+
static sendEngineCommunicationSynchronously() {
|
|
747
|
+
return Joi.object({
|
|
748
|
+
body: CommunicationPlatformModel.EngineRequest().required(),
|
|
740
749
|
}).required();
|
|
741
750
|
}
|
|
742
751
|
|
|
743
752
|
/** @returns {SendOtpParam} */
|
|
744
753
|
static sendOtp() {
|
|
745
754
|
return Joi.object({
|
|
755
|
+
ci: Joi.boolean(),
|
|
746
756
|
body: CommunicationPlatformModel.SendOtpCommsReq().required(),
|
|
747
757
|
}).required();
|
|
748
758
|
}
|
|
@@ -750,7 +760,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
750
760
|
/** @returns {TriggerCampaignJobParam} */
|
|
751
761
|
static triggerCampaignJob() {
|
|
752
762
|
return Joi.object({
|
|
753
|
-
body: CommunicationPlatformModel.
|
|
763
|
+
body: CommunicationPlatformModel.TriggerJobRequest().required(),
|
|
754
764
|
}).required();
|
|
755
765
|
}
|
|
756
766
|
|
|
@@ -761,6 +771,13 @@ class CommunicationPlatformApplicationValidator {
|
|
|
761
771
|
}).required();
|
|
762
772
|
}
|
|
763
773
|
|
|
774
|
+
/** @returns {UpdateAppProvidersGlobalProviderParam} */
|
|
775
|
+
static updateAppProvidersGlobalProvider() {
|
|
776
|
+
return Joi.object({
|
|
777
|
+
body: CommunicationPlatformModel.AppProvidersGlobalProviderRequest().required(),
|
|
778
|
+
}).required();
|
|
779
|
+
}
|
|
780
|
+
|
|
764
781
|
/** @returns {UpdateAudienceByIdParam} */
|
|
765
782
|
static updateAudienceById() {
|
|
766
783
|
return Joi.object({
|
|
@@ -795,7 +812,9 @@ class CommunicationPlatformApplicationValidator {
|
|
|
795
812
|
|
|
796
813
|
/** @returns {UpdateOtpConfigurationParam} */
|
|
797
814
|
static updateOtpConfiguration() {
|
|
798
|
-
return Joi.object({
|
|
815
|
+
return Joi.object({
|
|
816
|
+
body: CommunicationPlatformModel.OtpConfiguration().required(),
|
|
817
|
+
}).required();
|
|
799
818
|
}
|
|
800
819
|
|
|
801
820
|
/** @returns {UpdateSmsProviderByIdParam} */
|