@gofynd/fdk-client-javascript 1.1.6 → 1.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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,61 +1,303 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef CreateAudienceParam
|
|
7
|
+
* @property {CommunicationPlatformModel.AudienceReq} body
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef CreateCampaignParam
|
|
12
|
+
* @property {CommunicationPlatformModel.CampaignReq} body
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @typedef CreateEmailProviderParam
|
|
17
|
+
* @property {CommunicationPlatformModel.EmailProviderReq} body
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef CreateEmailTemplateParam
|
|
22
|
+
* @property {CommunicationPlatformModel.EmailTemplateReq} body
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef CreateSmsProviderParam
|
|
27
|
+
* @property {CommunicationPlatformModel.SmsProviderReq} body
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @typedef CreateSmsTemplateParam
|
|
32
|
+
* @property {CommunicationPlatformModel.SmsTemplateReq} body
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef DeleteEmailTemplateByIdParam
|
|
37
|
+
* @property {string} id - Email template id
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @typedef DeleteSmsTemplateByIdParam
|
|
42
|
+
* @property {string} id - Sms template id
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef GetAudienceByIdParam
|
|
47
|
+
* @property {string} id - Audience id
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @typedef GetAudiencesParam
|
|
52
|
+
* @property {number} [pageNo] - Current page no
|
|
53
|
+
* @property {number} [pageSize] - Current request items count
|
|
54
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @typedef GetBigqueryHeadersParam
|
|
59
|
+
* @property {CommunicationPlatformModel.BigqueryHeadersReq} body
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @typedef GetCampaignByIdParam
|
|
64
|
+
* @property {string} id - Campaign id
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @typedef GetCampaignsParam
|
|
69
|
+
* @property {number} [pageNo] - Current page no
|
|
70
|
+
* @property {number} [pageSize] - Current request items count
|
|
71
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef GetCommunicationLogsParam
|
|
76
|
+
* @property {string} [pageId] - Current page no
|
|
77
|
+
* @property {number} [pageSize] - Current request items count
|
|
78
|
+
* @property {Object} [sort] - To sort based on _id
|
|
79
|
+
* @property {Object} [query]
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @typedef GetEmailProviderByIdParam
|
|
84
|
+
* @property {string} id - Email provider id
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @typedef GetEmailProvidersParam
|
|
89
|
+
* @property {number} [pageNo] - Current page no
|
|
90
|
+
* @property {number} [pageSize] - Current request items count
|
|
91
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @typedef GetEmailTemplateByIdParam
|
|
96
|
+
* @property {string} id - Email template id
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @typedef GetEmailTemplatesParam
|
|
101
|
+
* @property {number} [pageNo] - Current page no
|
|
102
|
+
* @property {number} [pageSize] - Current request items count
|
|
103
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef GetEventSubscriptionsParam
|
|
108
|
+
* @property {number} [pageNo] - Current page no
|
|
109
|
+
* @property {number} [pageSize] - Current request items count
|
|
110
|
+
* @property {string} [populate] - Populate fields
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @typedef GetJobLogsParam
|
|
115
|
+
* @property {number} [pageNo] - Current page no
|
|
116
|
+
* @property {number} [pageSize] - Current request items count
|
|
117
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @typedef GetJobsParam
|
|
122
|
+
* @property {number} [pageNo] - Current page no
|
|
123
|
+
* @property {number} [pageSize] - Current request items count
|
|
124
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @typedef GetNSampleRecordsFromCsvParam
|
|
129
|
+
* @property {CommunicationPlatformModel.GetNRecordsCsvReq} body
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @typedef GetSmsProviderByIdParam
|
|
134
|
+
* @property {string} id - Sms provider id
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @typedef GetSmsProvidersParam
|
|
139
|
+
* @property {number} [pageNo] - Current page no
|
|
140
|
+
* @property {number} [pageSize] - Current request items count
|
|
141
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef GetSmsTemplateByIdParam
|
|
146
|
+
* @property {string} id - Sms template id
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @typedef GetSmsTemplatesParam
|
|
151
|
+
* @property {number} [pageNo] - Current page no
|
|
152
|
+
* @property {number} [pageSize] - Current request items count
|
|
153
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @typedef GetStatsOfCampaignByIdParam
|
|
158
|
+
* @property {string} id - Campaign id
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @typedef GetSystemEmailTemplatesParam
|
|
163
|
+
* @property {number} [pageNo] - Current page no
|
|
164
|
+
* @property {number} [pageSize] - Current request items count
|
|
165
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @typedef GetSystemSystemTemplatesParam
|
|
170
|
+
* @property {number} [pageNo] - Current page no
|
|
171
|
+
* @property {number} [pageSize] - Current request items count
|
|
172
|
+
* @property {Object} [sort] - To sort based on created_at
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @typedef SendCommunicationAsynchronouslyParam
|
|
177
|
+
* @property {CommunicationPlatformModel.EngineRequest} body
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @typedef SendCommunicationSynchronouslyParam
|
|
182
|
+
* @property {CommunicationPlatformModel.EngineRequest} body
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @typedef SendOtpParam
|
|
187
|
+
* @property {CommunicationPlatformModel.SendOtpCommsReq} body
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @typedef TriggerCampaignJobParam
|
|
192
|
+
* @property {CommunicationPlatformModel.TriggerJobRequest} body
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @typedef UpdateAudienceByIdParam
|
|
197
|
+
* @property {string} id - Audience id
|
|
198
|
+
* @property {CommunicationPlatformModel.AudienceReq} body
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @typedef UpdateCampaignByIdParam
|
|
203
|
+
* @property {string} id - Campaign id
|
|
204
|
+
* @property {CommunicationPlatformModel.CampaignReq} body
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @typedef UpdateEmailProviderByIdParam
|
|
209
|
+
* @property {string} id - Email provider id
|
|
210
|
+
* @property {CommunicationPlatformModel.EmailProviderReq} body
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @typedef UpdateEmailTemplateByIdParam
|
|
215
|
+
* @property {string} id - Email template id
|
|
216
|
+
* @property {CommunicationPlatformModel.EmailTemplateReq} body
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @typedef UpdateSmsProviderByIdParam
|
|
221
|
+
* @property {string} id - Sms provider id
|
|
222
|
+
* @property {CommunicationPlatformModel.SmsProviderReq} body
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @typedef UpdateSmsTemplateByIdParam
|
|
227
|
+
* @property {string} id - Sms template id
|
|
228
|
+
* @property {CommunicationPlatformModel.SmsTemplateReq} body
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @typedef VerfiyOtpParam
|
|
233
|
+
* @property {CommunicationPlatformModel.VerifyOtpCommsReq} body
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
class CommunicationPlatformApplicationValidator {
|
|
237
|
+
/** @returns {CreateAudienceParam} */
|
|
5
238
|
static createAudience() {
|
|
6
239
|
return Joi.object({
|
|
7
|
-
body:
|
|
240
|
+
body: CommunicationPlatformModel.AudienceReq().required(),
|
|
8
241
|
}).required();
|
|
9
242
|
}
|
|
10
243
|
|
|
244
|
+
/** @returns {CreateCampaignParam} */
|
|
11
245
|
static createCampaign() {
|
|
12
246
|
return Joi.object({
|
|
13
|
-
body:
|
|
247
|
+
body: CommunicationPlatformModel.CampaignReq().required(),
|
|
14
248
|
}).required();
|
|
15
249
|
}
|
|
16
250
|
|
|
251
|
+
/** @returns {CreateEmailProviderParam} */
|
|
17
252
|
static createEmailProvider() {
|
|
18
253
|
return Joi.object({
|
|
19
|
-
body:
|
|
254
|
+
body: CommunicationPlatformModel.EmailProviderReq().required(),
|
|
20
255
|
}).required();
|
|
21
256
|
}
|
|
22
257
|
|
|
258
|
+
/** @returns {CreateEmailTemplateParam} */
|
|
23
259
|
static createEmailTemplate() {
|
|
24
260
|
return Joi.object({
|
|
25
|
-
body:
|
|
261
|
+
body: CommunicationPlatformModel.EmailTemplateReq().required(),
|
|
26
262
|
}).required();
|
|
27
263
|
}
|
|
28
264
|
|
|
265
|
+
/** @returns {CreateSmsProviderParam} */
|
|
29
266
|
static createSmsProvider() {
|
|
30
267
|
return Joi.object({
|
|
31
|
-
body:
|
|
268
|
+
body: CommunicationPlatformModel.SmsProviderReq().required(),
|
|
32
269
|
}).required();
|
|
33
270
|
}
|
|
34
271
|
|
|
272
|
+
/** @returns {CreateSmsTemplateParam} */
|
|
35
273
|
static createSmsTemplate() {
|
|
36
274
|
return Joi.object({
|
|
37
|
-
body:
|
|
275
|
+
body: CommunicationPlatformModel.SmsTemplateReq().required(),
|
|
38
276
|
}).required();
|
|
39
277
|
}
|
|
40
278
|
|
|
279
|
+
/** @returns {DeleteEmailTemplateByIdParam} */
|
|
41
280
|
static deleteEmailTemplateById() {
|
|
42
281
|
return Joi.object({
|
|
43
282
|
id: Joi.string().allow("").required(),
|
|
44
283
|
}).required();
|
|
45
284
|
}
|
|
46
285
|
|
|
286
|
+
/** @returns {DeleteSmsTemplateByIdParam} */
|
|
47
287
|
static deleteSmsTemplateById() {
|
|
48
288
|
return Joi.object({
|
|
49
289
|
id: Joi.string().allow("").required(),
|
|
50
290
|
}).required();
|
|
51
291
|
}
|
|
52
292
|
|
|
293
|
+
/** @returns {GetAudienceByIdParam} */
|
|
53
294
|
static getAudienceById() {
|
|
54
295
|
return Joi.object({
|
|
55
296
|
id: Joi.string().allow("").required(),
|
|
56
297
|
}).required();
|
|
57
298
|
}
|
|
58
299
|
|
|
300
|
+
/** @returns {GetAudiencesParam} */
|
|
59
301
|
static getAudiences() {
|
|
60
302
|
return Joi.object({
|
|
61
303
|
pageNo: Joi.number(),
|
|
@@ -64,18 +306,21 @@ class CommunicationValidator {
|
|
|
64
306
|
}).required();
|
|
65
307
|
}
|
|
66
308
|
|
|
309
|
+
/** @returns {GetBigqueryHeadersParam} */
|
|
67
310
|
static getBigqueryHeaders() {
|
|
68
311
|
return Joi.object({
|
|
69
|
-
body:
|
|
312
|
+
body: CommunicationPlatformModel.BigqueryHeadersReq().required(),
|
|
70
313
|
}).required();
|
|
71
314
|
}
|
|
72
315
|
|
|
316
|
+
/** @returns {GetCampaignByIdParam} */
|
|
73
317
|
static getCampaignById() {
|
|
74
318
|
return Joi.object({
|
|
75
319
|
id: Joi.string().allow("").required(),
|
|
76
320
|
}).required();
|
|
77
321
|
}
|
|
78
322
|
|
|
323
|
+
/** @returns {GetCampaignsParam} */
|
|
79
324
|
static getCampaigns() {
|
|
80
325
|
return Joi.object({
|
|
81
326
|
pageNo: Joi.number(),
|
|
@@ -84,6 +329,7 @@ class CommunicationValidator {
|
|
|
84
329
|
}).required();
|
|
85
330
|
}
|
|
86
331
|
|
|
332
|
+
/** @returns {GetCommunicationLogsParam} */
|
|
87
333
|
static getCommunicationLogs() {
|
|
88
334
|
return Joi.object({
|
|
89
335
|
pageId: Joi.string().allow(""),
|
|
@@ -93,12 +339,14 @@ class CommunicationValidator {
|
|
|
93
339
|
}).required();
|
|
94
340
|
}
|
|
95
341
|
|
|
342
|
+
/** @returns {GetEmailProviderByIdParam} */
|
|
96
343
|
static getEmailProviderById() {
|
|
97
344
|
return Joi.object({
|
|
98
345
|
id: Joi.string().allow("").required(),
|
|
99
346
|
}).required();
|
|
100
347
|
}
|
|
101
348
|
|
|
349
|
+
/** @returns {GetEmailProvidersParam} */
|
|
102
350
|
static getEmailProviders() {
|
|
103
351
|
return Joi.object({
|
|
104
352
|
pageNo: Joi.number(),
|
|
@@ -107,12 +355,14 @@ class CommunicationValidator {
|
|
|
107
355
|
}).required();
|
|
108
356
|
}
|
|
109
357
|
|
|
358
|
+
/** @returns {GetEmailTemplateByIdParam} */
|
|
110
359
|
static getEmailTemplateById() {
|
|
111
360
|
return Joi.object({
|
|
112
361
|
id: Joi.string().allow("").required(),
|
|
113
362
|
}).required();
|
|
114
363
|
}
|
|
115
364
|
|
|
365
|
+
/** @returns {GetEmailTemplatesParam} */
|
|
116
366
|
static getEmailTemplates() {
|
|
117
367
|
return Joi.object({
|
|
118
368
|
pageNo: Joi.number(),
|
|
@@ -121,6 +371,7 @@ class CommunicationValidator {
|
|
|
121
371
|
}).required();
|
|
122
372
|
}
|
|
123
373
|
|
|
374
|
+
/** @returns {GetEventSubscriptionsParam} */
|
|
124
375
|
static getEventSubscriptions() {
|
|
125
376
|
return Joi.object({
|
|
126
377
|
pageNo: Joi.number(),
|
|
@@ -129,6 +380,7 @@ class CommunicationValidator {
|
|
|
129
380
|
}).required();
|
|
130
381
|
}
|
|
131
382
|
|
|
383
|
+
/** @returns {GetJobLogsParam} */
|
|
132
384
|
static getJobLogs() {
|
|
133
385
|
return Joi.object({
|
|
134
386
|
pageNo: Joi.number(),
|
|
@@ -137,6 +389,7 @@ class CommunicationValidator {
|
|
|
137
389
|
}).required();
|
|
138
390
|
}
|
|
139
391
|
|
|
392
|
+
/** @returns {GetJobsParam} */
|
|
140
393
|
static getJobs() {
|
|
141
394
|
return Joi.object({
|
|
142
395
|
pageNo: Joi.number(),
|
|
@@ -145,18 +398,21 @@ class CommunicationValidator {
|
|
|
145
398
|
}).required();
|
|
146
399
|
}
|
|
147
400
|
|
|
401
|
+
/** @returns {GetNSampleRecordsFromCsvParam} */
|
|
148
402
|
static getNSampleRecordsFromCsv() {
|
|
149
403
|
return Joi.object({
|
|
150
|
-
body:
|
|
404
|
+
body: CommunicationPlatformModel.GetNRecordsCsvReq().required(),
|
|
151
405
|
}).required();
|
|
152
406
|
}
|
|
153
407
|
|
|
408
|
+
/** @returns {GetSmsProviderByIdParam} */
|
|
154
409
|
static getSmsProviderById() {
|
|
155
410
|
return Joi.object({
|
|
156
411
|
id: Joi.string().allow("").required(),
|
|
157
412
|
}).required();
|
|
158
413
|
}
|
|
159
414
|
|
|
415
|
+
/** @returns {GetSmsProvidersParam} */
|
|
160
416
|
static getSmsProviders() {
|
|
161
417
|
return Joi.object({
|
|
162
418
|
pageNo: Joi.number(),
|
|
@@ -165,12 +421,14 @@ class CommunicationValidator {
|
|
|
165
421
|
}).required();
|
|
166
422
|
}
|
|
167
423
|
|
|
424
|
+
/** @returns {GetSmsTemplateByIdParam} */
|
|
168
425
|
static getSmsTemplateById() {
|
|
169
426
|
return Joi.object({
|
|
170
427
|
id: Joi.string().allow("").required(),
|
|
171
428
|
}).required();
|
|
172
429
|
}
|
|
173
430
|
|
|
431
|
+
/** @returns {GetSmsTemplatesParam} */
|
|
174
432
|
static getSmsTemplates() {
|
|
175
433
|
return Joi.object({
|
|
176
434
|
pageNo: Joi.number(),
|
|
@@ -179,12 +437,14 @@ class CommunicationValidator {
|
|
|
179
437
|
}).required();
|
|
180
438
|
}
|
|
181
439
|
|
|
440
|
+
/** @returns {GetStatsOfCampaignByIdParam} */
|
|
182
441
|
static getStatsOfCampaignById() {
|
|
183
442
|
return Joi.object({
|
|
184
443
|
id: Joi.string().allow("").required(),
|
|
185
444
|
}).required();
|
|
186
445
|
}
|
|
187
446
|
|
|
447
|
+
/** @returns {GetSystemEmailTemplatesParam} */
|
|
188
448
|
static getSystemEmailTemplates() {
|
|
189
449
|
return Joi.object({
|
|
190
450
|
pageNo: Joi.number(),
|
|
@@ -193,6 +453,7 @@ class CommunicationValidator {
|
|
|
193
453
|
}).required();
|
|
194
454
|
}
|
|
195
455
|
|
|
456
|
+
/** @returns {GetSystemSystemTemplatesParam} */
|
|
196
457
|
static getSystemSystemTemplates() {
|
|
197
458
|
return Joi.object({
|
|
198
459
|
pageNo: Joi.number(),
|
|
@@ -201,77 +462,88 @@ class CommunicationValidator {
|
|
|
201
462
|
}).required();
|
|
202
463
|
}
|
|
203
464
|
|
|
465
|
+
/** @returns {SendCommunicationAsynchronouslyParam} */
|
|
204
466
|
static sendCommunicationAsynchronously() {
|
|
205
467
|
return Joi.object({
|
|
206
|
-
body:
|
|
468
|
+
body: CommunicationPlatformModel.EngineRequest().required(),
|
|
207
469
|
}).required();
|
|
208
470
|
}
|
|
209
471
|
|
|
472
|
+
/** @returns {SendCommunicationSynchronouslyParam} */
|
|
210
473
|
static sendCommunicationSynchronously() {
|
|
211
474
|
return Joi.object({
|
|
212
|
-
body:
|
|
475
|
+
body: CommunicationPlatformModel.EngineRequest().required(),
|
|
213
476
|
}).required();
|
|
214
477
|
}
|
|
215
478
|
|
|
479
|
+
/** @returns {SendOtpParam} */
|
|
216
480
|
static sendOtp() {
|
|
217
481
|
return Joi.object({
|
|
218
|
-
body:
|
|
482
|
+
body: CommunicationPlatformModel.SendOtpCommsReq().required(),
|
|
219
483
|
}).required();
|
|
220
484
|
}
|
|
221
485
|
|
|
486
|
+
/** @returns {TriggerCampaignJobParam} */
|
|
222
487
|
static triggerCampaignJob() {
|
|
223
488
|
return Joi.object({
|
|
224
|
-
body:
|
|
489
|
+
body: CommunicationPlatformModel.TriggerJobRequest().required(),
|
|
225
490
|
}).required();
|
|
226
491
|
}
|
|
227
492
|
|
|
493
|
+
/** @returns {UpdateAudienceByIdParam} */
|
|
228
494
|
static updateAudienceById() {
|
|
229
495
|
return Joi.object({
|
|
230
496
|
id: Joi.string().allow("").required(),
|
|
231
|
-
body:
|
|
497
|
+
body: CommunicationPlatformModel.AudienceReq().required(),
|
|
232
498
|
}).required();
|
|
233
499
|
}
|
|
234
500
|
|
|
501
|
+
/** @returns {UpdateCampaignByIdParam} */
|
|
235
502
|
static updateCampaignById() {
|
|
236
503
|
return Joi.object({
|
|
237
504
|
id: Joi.string().allow("").required(),
|
|
238
|
-
body:
|
|
505
|
+
body: CommunicationPlatformModel.CampaignReq().required(),
|
|
239
506
|
}).required();
|
|
240
507
|
}
|
|
241
508
|
|
|
509
|
+
/** @returns {UpdateEmailProviderByIdParam} */
|
|
242
510
|
static updateEmailProviderById() {
|
|
243
511
|
return Joi.object({
|
|
244
512
|
id: Joi.string().allow("").required(),
|
|
245
|
-
body:
|
|
513
|
+
body: CommunicationPlatformModel.EmailProviderReq().required(),
|
|
246
514
|
}).required();
|
|
247
515
|
}
|
|
248
516
|
|
|
517
|
+
/** @returns {UpdateEmailTemplateByIdParam} */
|
|
249
518
|
static updateEmailTemplateById() {
|
|
250
519
|
return Joi.object({
|
|
251
520
|
id: Joi.string().allow("").required(),
|
|
252
|
-
body:
|
|
521
|
+
body: CommunicationPlatformModel.EmailTemplateReq().required(),
|
|
253
522
|
}).required();
|
|
254
523
|
}
|
|
255
524
|
|
|
525
|
+
/** @returns {UpdateSmsProviderByIdParam} */
|
|
256
526
|
static updateSmsProviderById() {
|
|
257
527
|
return Joi.object({
|
|
258
528
|
id: Joi.string().allow("").required(),
|
|
259
|
-
body:
|
|
529
|
+
body: CommunicationPlatformModel.SmsProviderReq().required(),
|
|
260
530
|
}).required();
|
|
261
531
|
}
|
|
262
532
|
|
|
533
|
+
/** @returns {UpdateSmsTemplateByIdParam} */
|
|
263
534
|
static updateSmsTemplateById() {
|
|
264
535
|
return Joi.object({
|
|
265
536
|
id: Joi.string().allow("").required(),
|
|
266
|
-
body:
|
|
537
|
+
body: CommunicationPlatformModel.SmsTemplateReq().required(),
|
|
267
538
|
}).required();
|
|
268
539
|
}
|
|
269
540
|
|
|
541
|
+
/** @returns {VerfiyOtpParam} */
|
|
270
542
|
static verfiyOtp() {
|
|
271
543
|
return Joi.object({
|
|
272
|
-
body:
|
|
544
|
+
body: CommunicationPlatformModel.VerifyOtpCommsReq().required(),
|
|
273
545
|
}).required();
|
|
274
546
|
}
|
|
275
547
|
}
|
|
276
548
|
|
|
277
|
-
module.exports =
|
|
549
|
+
module.exports = CommunicationPlatformApplicationValidator;
|
|
@@ -2,16 +2,29 @@ export = Communication;
|
|
|
2
2
|
declare class Communication {
|
|
3
3
|
constructor(config: any);
|
|
4
4
|
config: any;
|
|
5
|
+
/**
|
|
6
|
+
* @param {CommunicationPlatformValidator.GetSystemNotificationsParam} arg
|
|
7
|
+
* - Arg object
|
|
8
|
+
*
|
|
9
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
|
+
* @returns {Promise<CommunicationPlatformModel.SystemNotifications>} -
|
|
11
|
+
* Success response
|
|
12
|
+
* @name getSystemNotifications
|
|
13
|
+
* @summary: Get system notifications
|
|
14
|
+
* @description: Get system notifications - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/getSystemNotifications/).
|
|
15
|
+
*/
|
|
16
|
+
getSystemNotifications({ pageNo, pageSize }?: CommunicationPlatformValidator.GetSystemNotificationsParam, { headers }?: import("../PlatformAPIClient").Options): Promise<CommunicationPlatformModel.SystemNotifications>;
|
|
5
17
|
/**
|
|
6
18
|
* @param {Object} arg - Arg object.
|
|
7
|
-
* @param {number} [arg.pageNo] -
|
|
8
19
|
* @param {number} [arg.pageSize] -
|
|
9
|
-
* @returns {
|
|
20
|
+
* @returns {Paginator<CommunicationPlatformModel.SystemNotifications>}
|
|
10
21
|
* @summary: Get system notifications
|
|
11
22
|
* @description: Get system notifications
|
|
12
23
|
*/
|
|
13
|
-
|
|
14
|
-
pageNo?: number;
|
|
24
|
+
getSystemNotificationsPaginator({ pageSize }?: {
|
|
15
25
|
pageSize?: number;
|
|
16
|
-
}):
|
|
26
|
+
}): Paginator<CommunicationPlatformModel.SystemNotifications>;
|
|
17
27
|
}
|
|
28
|
+
import CommunicationPlatformValidator = require("./CommunicationPlatformValidator");
|
|
29
|
+
import CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
30
|
+
import Paginator = require("../../common/Paginator");
|