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