@gofynd/fdk-client-javascript 1.4.13 → 1.4.14
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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- 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 +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- 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 +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- 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/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -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 +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -570,7 +570,7 @@ class Communication {
|
|
|
570
570
|
*
|
|
571
571
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
572
572
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
573
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
573
|
+
* @returns {Promise<CommunicationPlatformModel.EventSubscriptionsBulkUpdateResult>}
|
|
574
574
|
* - Success response
|
|
575
575
|
*
|
|
576
576
|
* @name createEventSubscriptions
|
|
@@ -628,7 +628,7 @@ class Communication {
|
|
|
628
628
|
|
|
629
629
|
const {
|
|
630
630
|
error: res_error,
|
|
631
|
-
} = CommunicationPlatformModel.
|
|
631
|
+
} = CommunicationPlatformModel.EventSubscriptionsBulkUpdateResult().validate(
|
|
632
632
|
responseData,
|
|
633
633
|
{ abortEarly: false, allowUnknown: true }
|
|
634
634
|
);
|
|
@@ -654,7 +654,7 @@ class Communication {
|
|
|
654
654
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
655
655
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
656
656
|
* @returns {Promise<
|
|
657
|
-
* CommunicationPlatformModel.
|
|
657
|
+
* CommunicationPlatformModel.EventSubscriptionsBulkUpdateResult[]
|
|
658
658
|
* >}
|
|
659
659
|
* - Success response
|
|
660
660
|
*
|
|
@@ -712,7 +712,7 @@ class Communication {
|
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
const { error: res_error } = Joi.array()
|
|
715
|
-
.items(CommunicationPlatformModel.
|
|
715
|
+
.items(CommunicationPlatformModel.EventSubscriptionsBulkUpdateResult())
|
|
716
716
|
.validate(responseData, { abortEarly: false, allowUnknown: true });
|
|
717
717
|
|
|
718
718
|
if (res_error) {
|
|
@@ -1462,7 +1462,7 @@ class Communication {
|
|
|
1462
1462
|
*
|
|
1463
1463
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1464
1464
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1465
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
1465
|
+
* @returns {Promise<CommunicationPlatformModel.EventSubscriptionsBulkUpdateResult>}
|
|
1466
1466
|
* - Success response
|
|
1467
1467
|
*
|
|
1468
1468
|
* @name editEventSubscriptions
|
|
@@ -1522,7 +1522,7 @@ class Communication {
|
|
|
1522
1522
|
|
|
1523
1523
|
const {
|
|
1524
1524
|
error: res_error,
|
|
1525
|
-
} = CommunicationPlatformModel.
|
|
1525
|
+
} = CommunicationPlatformModel.EventSubscriptionsBulkUpdateResult().validate(
|
|
1526
1526
|
responseData,
|
|
1527
1527
|
{ abortEarly: false, allowUnknown: true }
|
|
1528
1528
|
);
|
|
@@ -3043,7 +3043,7 @@ class Communication {
|
|
|
3043
3043
|
*
|
|
3044
3044
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3045
3045
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3046
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
3046
|
+
* @returns {Promise<CommunicationPlatformModel.GetGlobalVariablesResult>}
|
|
3047
3047
|
* - Success response
|
|
3048
3048
|
*
|
|
3049
3049
|
* @name getGlobalVariables
|
|
@@ -3097,7 +3097,7 @@ class Communication {
|
|
|
3097
3097
|
|
|
3098
3098
|
const {
|
|
3099
3099
|
error: res_error,
|
|
3100
|
-
} = CommunicationPlatformModel.
|
|
3100
|
+
} = CommunicationPlatformModel.GetGlobalVariablesResult().validate(
|
|
3101
3101
|
responseData,
|
|
3102
3102
|
{ abortEarly: false, allowUnknown: true }
|
|
3103
3103
|
);
|
|
@@ -4360,7 +4360,7 @@ class Communication {
|
|
|
4360
4360
|
*
|
|
4361
4361
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4362
4362
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4363
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
4363
|
+
* @returns {Promise<CommunicationPlatformModel.CreateGlobalVariablesResult>}
|
|
4364
4364
|
* - Success response
|
|
4365
4365
|
*
|
|
4366
4366
|
* @name postGlobalVariables
|
|
@@ -4418,7 +4418,7 @@ class Communication {
|
|
|
4418
4418
|
|
|
4419
4419
|
const {
|
|
4420
4420
|
error: res_error,
|
|
4421
|
-
} = CommunicationPlatformModel.
|
|
4421
|
+
} = CommunicationPlatformModel.CreateGlobalVariablesResult().validate(
|
|
4422
4422
|
responseData,
|
|
4423
4423
|
{ abortEarly: false, allowUnknown: true }
|
|
4424
4424
|
);
|
|
@@ -4443,7 +4443,7 @@ class Communication {
|
|
|
4443
4443
|
*
|
|
4444
4444
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4445
4445
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4446
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
4446
|
+
* @returns {Promise<CommunicationPlatformModel.EngineResult>} - Success response
|
|
4447
4447
|
* @name sendCommunicationAsynchronously
|
|
4448
4448
|
* @summary: Send communication asynchronously
|
|
4449
4449
|
* @description: Sends communications to sellers with deffered delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/sendCommunicationAsynchronously/).
|
|
@@ -4499,7 +4499,7 @@ class Communication {
|
|
|
4499
4499
|
|
|
4500
4500
|
const {
|
|
4501
4501
|
error: res_error,
|
|
4502
|
-
} = CommunicationPlatformModel.
|
|
4502
|
+
} = CommunicationPlatformModel.EngineResult().validate(responseData, {
|
|
4503
4503
|
abortEarly: false,
|
|
4504
4504
|
allowUnknown: true,
|
|
4505
4505
|
});
|
|
@@ -4524,7 +4524,7 @@ class Communication {
|
|
|
4524
4524
|
*
|
|
4525
4525
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4526
4526
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4527
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
4527
|
+
* @returns {Promise<CommunicationPlatformModel.EngineResult>} - Success response
|
|
4528
4528
|
* @name sendCommunicationSynchronously
|
|
4529
4529
|
* @summary: Send communication synchronously
|
|
4530
4530
|
* @description: Sends real-time communications to sellers with immediate delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/sendCommunicationSynchronously/).
|
|
@@ -4580,7 +4580,7 @@ class Communication {
|
|
|
4580
4580
|
|
|
4581
4581
|
const {
|
|
4582
4582
|
error: res_error,
|
|
4583
|
-
} = CommunicationPlatformModel.
|
|
4583
|
+
} = CommunicationPlatformModel.EngineResult().validate(responseData, {
|
|
4584
4584
|
abortEarly: false,
|
|
4585
4585
|
allowUnknown: true,
|
|
4586
4586
|
});
|
|
@@ -4684,8 +4684,7 @@ class Communication {
|
|
|
4684
4684
|
*
|
|
4685
4685
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4686
4686
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4687
|
-
* @returns {Promise<CommunicationPlatformModel.
|
|
4688
|
-
* Success response
|
|
4687
|
+
* @returns {Promise<CommunicationPlatformModel.TriggerJobResult>} - Success response
|
|
4689
4688
|
* @name triggerCampaignJob
|
|
4690
4689
|
* @summary: Trigger a campaign job
|
|
4691
4690
|
* @description: Initiates a job to execute a communication campaign. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/triggerCampaignJob/).
|
|
@@ -4741,7 +4740,7 @@ class Communication {
|
|
|
4741
4740
|
|
|
4742
4741
|
const {
|
|
4743
4742
|
error: res_error,
|
|
4744
|
-
} = CommunicationPlatformModel.
|
|
4743
|
+
} = CommunicationPlatformModel.TriggerJobResult().validate(responseData, {
|
|
4745
4744
|
abortEarly: false,
|
|
4746
4745
|
allowUnknown: true,
|
|
4747
4746
|
});
|
|
@@ -24,7 +24,7 @@ export = CommunicationPlatformApplicationValidator;
|
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* @typedef CreateEventSubscriptionsByBulkParam
|
|
27
|
-
* @property {CommunicationPlatformModel.
|
|
27
|
+
* @property {CommunicationPlatformModel.EventSubscriptionsBulkUpdatePayload} body
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
30
|
* @typedef CreateJobsParam
|
|
@@ -214,11 +214,11 @@ export = CommunicationPlatformApplicationValidator;
|
|
|
214
214
|
*/
|
|
215
215
|
/**
|
|
216
216
|
* @typedef SendCommunicationAsynchronouslyParam
|
|
217
|
-
* @property {CommunicationPlatformModel.
|
|
217
|
+
* @property {CommunicationPlatformModel.EnginePayload} body
|
|
218
218
|
*/
|
|
219
219
|
/**
|
|
220
220
|
* @typedef SendCommunicationSynchronouslyParam
|
|
221
|
-
* @property {CommunicationPlatformModel.
|
|
221
|
+
* @property {CommunicationPlatformModel.EnginePayload} body
|
|
222
222
|
*/
|
|
223
223
|
/**
|
|
224
224
|
* @typedef SendOtpParam
|
|
@@ -226,7 +226,7 @@ export = CommunicationPlatformApplicationValidator;
|
|
|
226
226
|
*/
|
|
227
227
|
/**
|
|
228
228
|
* @typedef TriggerCampaignJobParam
|
|
229
|
-
* @property {CommunicationPlatformModel.
|
|
229
|
+
* @property {CommunicationPlatformModel.TriggerJobPayload} body
|
|
230
230
|
*/
|
|
231
231
|
/**
|
|
232
232
|
* @typedef UpdateAppProvidersParam
|
|
@@ -422,7 +422,7 @@ type CreateEventSubscriptionsParam = {
|
|
|
422
422
|
body: CommunicationPlatformModel.SubscriptionsObject;
|
|
423
423
|
};
|
|
424
424
|
type CreateEventSubscriptionsByBulkParam = {
|
|
425
|
-
body: CommunicationPlatformModel.
|
|
425
|
+
body: CommunicationPlatformModel.EventSubscriptionsBulkUpdatePayload;
|
|
426
426
|
};
|
|
427
427
|
type CreateJobsParam = {
|
|
428
428
|
body: CommunicationPlatformModel.CreateJobsReq;
|
|
@@ -755,16 +755,16 @@ type PostGlobalVariablesParam = {
|
|
|
755
755
|
body: CommunicationPlatformModel.GlobalVariablesReq;
|
|
756
756
|
};
|
|
757
757
|
type SendCommunicationAsynchronouslyParam = {
|
|
758
|
-
body: CommunicationPlatformModel.
|
|
758
|
+
body: CommunicationPlatformModel.EnginePayload;
|
|
759
759
|
};
|
|
760
760
|
type SendCommunicationSynchronouslyParam = {
|
|
761
|
-
body: CommunicationPlatformModel.
|
|
761
|
+
body: CommunicationPlatformModel.EnginePayload;
|
|
762
762
|
};
|
|
763
763
|
type SendOtpParam = {
|
|
764
764
|
body: CommunicationPlatformModel.SendOtpCommsReq;
|
|
765
765
|
};
|
|
766
766
|
type TriggerCampaignJobParam = {
|
|
767
|
-
body: CommunicationPlatformModel.
|
|
767
|
+
body: CommunicationPlatformModel.TriggerJobPayload;
|
|
768
768
|
};
|
|
769
769
|
type UpdateAppProvidersParam = {
|
|
770
770
|
body: CommunicationPlatformModel.AppProviderReq;
|
|
@@ -35,7 +35,7 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @typedef CreateEventSubscriptionsByBulkParam
|
|
38
|
-
* @property {CommunicationPlatformModel.
|
|
38
|
+
* @property {CommunicationPlatformModel.EventSubscriptionsBulkUpdatePayload} body
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -271,12 +271,12 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* @typedef SendCommunicationAsynchronouslyParam
|
|
274
|
-
* @property {CommunicationPlatformModel.
|
|
274
|
+
* @property {CommunicationPlatformModel.EnginePayload} body
|
|
275
275
|
*/
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* @typedef SendCommunicationSynchronouslyParam
|
|
279
|
-
* @property {CommunicationPlatformModel.
|
|
279
|
+
* @property {CommunicationPlatformModel.EnginePayload} body
|
|
280
280
|
*/
|
|
281
281
|
|
|
282
282
|
/**
|
|
@@ -286,7 +286,7 @@ const CommunicationPlatformModel = require("./CommunicationPlatformModel");
|
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
288
|
* @typedef TriggerCampaignJobParam
|
|
289
|
-
* @property {CommunicationPlatformModel.
|
|
289
|
+
* @property {CommunicationPlatformModel.TriggerJobPayload} body
|
|
290
290
|
*/
|
|
291
291
|
|
|
292
292
|
/**
|
|
@@ -391,7 +391,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
391
391
|
/** @returns {CreateEventSubscriptionsByBulkParam} */
|
|
392
392
|
static createEventSubscriptionsByBulk() {
|
|
393
393
|
return Joi.object({
|
|
394
|
-
body: CommunicationPlatformModel.
|
|
394
|
+
body: CommunicationPlatformModel.EventSubscriptionsBulkUpdatePayload().required(),
|
|
395
395
|
}).required();
|
|
396
396
|
}
|
|
397
397
|
|
|
@@ -729,14 +729,14 @@ class CommunicationPlatformApplicationValidator {
|
|
|
729
729
|
/** @returns {SendCommunicationAsynchronouslyParam} */
|
|
730
730
|
static sendCommunicationAsynchronously() {
|
|
731
731
|
return Joi.object({
|
|
732
|
-
body: CommunicationPlatformModel.
|
|
732
|
+
body: CommunicationPlatformModel.EnginePayload().required(),
|
|
733
733
|
}).required();
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
/** @returns {SendCommunicationSynchronouslyParam} */
|
|
737
737
|
static sendCommunicationSynchronously() {
|
|
738
738
|
return Joi.object({
|
|
739
|
-
body: CommunicationPlatformModel.
|
|
739
|
+
body: CommunicationPlatformModel.EnginePayload().required(),
|
|
740
740
|
}).required();
|
|
741
741
|
}
|
|
742
742
|
|
|
@@ -750,7 +750,7 @@ class CommunicationPlatformApplicationValidator {
|
|
|
750
750
|
/** @returns {TriggerCampaignJobParam} */
|
|
751
751
|
static triggerCampaignJob() {
|
|
752
752
|
return Joi.object({
|
|
753
|
-
body: CommunicationPlatformModel.
|
|
753
|
+
body: CommunicationPlatformModel.TriggerJobPayload().required(),
|
|
754
754
|
}).required();
|
|
755
755
|
}
|
|
756
756
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export = CommunicationPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef EventSubscriptionsBulkUpdatePayload
|
|
4
4
|
* @property {SubscriptionsObject[]} [subscriptions]
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* @typedef
|
|
7
|
+
* @typedef EventSubscriptionsBulkUpdateResult
|
|
8
8
|
* @property {EventSubscriptionTemplate} [template]
|
|
9
9
|
* @property {string} [_id]
|
|
10
10
|
* @property {string} [application]
|
|
@@ -414,12 +414,12 @@ export = CommunicationPlatformModel;
|
|
|
414
414
|
* @property {string} [timestamp]
|
|
415
415
|
*/
|
|
416
416
|
/**
|
|
417
|
-
* @typedef
|
|
417
|
+
* @typedef EnginePayload
|
|
418
418
|
* @property {PayloadStructure} [payload]
|
|
419
419
|
* @property {MetaStructure} [meta]
|
|
420
420
|
*/
|
|
421
421
|
/**
|
|
422
|
-
* @typedef
|
|
422
|
+
* @typedef EngineResult
|
|
423
423
|
* @property {boolean} [success]
|
|
424
424
|
*/
|
|
425
425
|
/**
|
|
@@ -455,20 +455,20 @@ export = CommunicationPlatformModel;
|
|
|
455
455
|
* @property {Page} [page]
|
|
456
456
|
*/
|
|
457
457
|
/**
|
|
458
|
-
* @typedef
|
|
458
|
+
* @typedef TriggerJobResult
|
|
459
459
|
* @property {number} [status]
|
|
460
460
|
*/
|
|
461
461
|
/**
|
|
462
|
-
* @typedef
|
|
462
|
+
* @typedef TriggerJobPayload
|
|
463
463
|
* @property {string} [job_id]
|
|
464
464
|
*/
|
|
465
465
|
/**
|
|
466
|
-
* @typedef
|
|
466
|
+
* @typedef GetGlobalVariablesResult
|
|
467
467
|
* @property {Object} [read_only]
|
|
468
468
|
* @property {Object} [editable]
|
|
469
469
|
*/
|
|
470
470
|
/**
|
|
471
|
-
* @typedef
|
|
471
|
+
* @typedef CreateGlobalVariablesResult
|
|
472
472
|
* @property {string} [_id]
|
|
473
473
|
* @property {string} [category]
|
|
474
474
|
* @property {string} [application]
|
|
@@ -671,6 +671,8 @@ export = CommunicationPlatformModel;
|
|
|
671
671
|
* @property {number} [version_id] - The version ID for the test.
|
|
672
672
|
* @property {string} [sender_id] - The sender ID for the test.
|
|
673
673
|
* @property {string} [api_key] - The api_key for the test.
|
|
674
|
+
* @property {string} [tenant_name_1] - First part of jiocx url.
|
|
675
|
+
* @property {string} [tenant_name_2] - Second part of jiocx url.
|
|
674
676
|
*/
|
|
675
677
|
/**
|
|
676
678
|
* @typedef SmsProvider
|
|
@@ -856,16 +858,16 @@ export = CommunicationPlatformModel;
|
|
|
856
858
|
declare class CommunicationPlatformModel {
|
|
857
859
|
}
|
|
858
860
|
declare namespace CommunicationPlatformModel {
|
|
859
|
-
export {
|
|
861
|
+
export { EventSubscriptionsBulkUpdatePayload, EventSubscriptionsBulkUpdateResult, SubscriptionsObject, TemplateObject, CommunicationTemplate, AppProvider, AppProviderRes, AppProviderResVoice, AppProviderResObj, GlobalProviders, GlobalProvidersResObj, AppProviderReq, StatsImported, StatsProcessedEmail, StatsProcessedSms, StatsProcessed, Stats, GetStats, CampaignReq, RecipientHeaders, CampaignEmailTemplate, CampignEmailProvider, CampaignEmail, Campaign, Campaigns, BadRequestSchema, NotFound, AudienceReq, Audience, Audiences, GetNRecordsCsvReq, GetNRecordsCsvResItems, GetNRecordsCsvRes, DummyDatasources, DummyDatasourcesMeta, DummyDatasourcesMetaObj, EmailProviderReqFrom, EmailProviderReq, EmailProvider, EmailProviders, EmailTemplateKeys, EmailTemplateHeaders, EmailTemplateReq, TemplateAndType, EmailTemplate, SystemEmailTemplate, EmailTemplates, SystemEmailTemplates, PayloadEmailTemplateStructure, PayloadEmailProviderStructure, PayloadEmailStructure, PayloadSmsTemplateStructure, PayloadSmsProviderStructure, PayloadSmsStructure, PayloadStructure, MetaStructure, EnginePayload, EngineResult, EventSubscriptionTemplateSms, EventSubscriptionTemplateEmail, EventSubscriptionTemplate, EventSubscription, EventSubscriptions, TriggerJobResult, TriggerJobPayload, GetGlobalVariablesResult, CreateGlobalVariablesResult, GlobalVariablesReq, Job, Jobs, CreateJobsRes, CreateJobsReq, JobLog, JobLogs, LogEmail, LogPushnotification, LogMeta, Log, Logs, SendOtpSmsCommsTemplate, SendOtpSmsCommsProvider, SendOtpEmailCommsProvider, SendOtpEmailCommsTemplate, SendOtpCommsReqData, SendOtpCommsReqSms, SendOtpCommsReqEmail, SendOtpCommsResSms, SendOtpCommsResEmail, SendOtpCommsReq, SendOtpCommsRes, VerifyOtpCommsReq, VerifyOtpCommsSuccessRes, VerifyOtpCommsErrorRes, SmsProviderReq, SmsProvider, SmsProviders, DefaultSmsProviders, SmsTemplateMessage, SmsTemplates, SmsTemplate, SystemSmsTemplates, metaObj, SmsTemplateReq, Notification, SystemNotificationUser, SystemNotification, SystemNotifications, Page, GenericError, GenericDelete, Message, EnabledObj, OtpConfigurationExpiryDuration, OtpConfigurationExpiry, OtpConfiguration };
|
|
860
862
|
}
|
|
861
|
-
/** @returns {
|
|
862
|
-
declare function
|
|
863
|
-
type
|
|
863
|
+
/** @returns {EventSubscriptionsBulkUpdatePayload} */
|
|
864
|
+
declare function EventSubscriptionsBulkUpdatePayload(): EventSubscriptionsBulkUpdatePayload;
|
|
865
|
+
type EventSubscriptionsBulkUpdatePayload = {
|
|
864
866
|
subscriptions?: SubscriptionsObject[];
|
|
865
867
|
};
|
|
866
|
-
/** @returns {
|
|
867
|
-
declare function
|
|
868
|
-
type
|
|
868
|
+
/** @returns {EventSubscriptionsBulkUpdateResult} */
|
|
869
|
+
declare function EventSubscriptionsBulkUpdateResult(): EventSubscriptionsBulkUpdateResult;
|
|
870
|
+
type EventSubscriptionsBulkUpdateResult = {
|
|
869
871
|
template?: EventSubscriptionTemplate;
|
|
870
872
|
_id?: string;
|
|
871
873
|
application?: string;
|
|
@@ -1346,15 +1348,15 @@ type MetaStructure = {
|
|
|
1346
1348
|
trace?: string;
|
|
1347
1349
|
timestamp?: string;
|
|
1348
1350
|
};
|
|
1349
|
-
/** @returns {
|
|
1350
|
-
declare function
|
|
1351
|
-
type
|
|
1351
|
+
/** @returns {EnginePayload} */
|
|
1352
|
+
declare function EnginePayload(): EnginePayload;
|
|
1353
|
+
type EnginePayload = {
|
|
1352
1354
|
payload?: PayloadStructure;
|
|
1353
1355
|
meta?: MetaStructure;
|
|
1354
1356
|
};
|
|
1355
|
-
/** @returns {
|
|
1356
|
-
declare function
|
|
1357
|
-
type
|
|
1357
|
+
/** @returns {EngineResult} */
|
|
1358
|
+
declare function EngineResult(): EngineResult;
|
|
1359
|
+
type EngineResult = {
|
|
1358
1360
|
success?: boolean;
|
|
1359
1361
|
};
|
|
1360
1362
|
/** @returns {EventSubscriptionTemplateSms} */
|
|
@@ -1394,25 +1396,25 @@ type EventSubscriptions = {
|
|
|
1394
1396
|
items?: EventSubscription[];
|
|
1395
1397
|
page?: Page;
|
|
1396
1398
|
};
|
|
1397
|
-
/** @returns {
|
|
1398
|
-
declare function
|
|
1399
|
-
type
|
|
1399
|
+
/** @returns {TriggerJobResult} */
|
|
1400
|
+
declare function TriggerJobResult(): TriggerJobResult;
|
|
1401
|
+
type TriggerJobResult = {
|
|
1400
1402
|
status?: number;
|
|
1401
1403
|
};
|
|
1402
|
-
/** @returns {
|
|
1403
|
-
declare function
|
|
1404
|
-
type
|
|
1404
|
+
/** @returns {TriggerJobPayload} */
|
|
1405
|
+
declare function TriggerJobPayload(): TriggerJobPayload;
|
|
1406
|
+
type TriggerJobPayload = {
|
|
1405
1407
|
job_id?: string;
|
|
1406
1408
|
};
|
|
1407
|
-
/** @returns {
|
|
1408
|
-
declare function
|
|
1409
|
-
type
|
|
1409
|
+
/** @returns {GetGlobalVariablesResult} */
|
|
1410
|
+
declare function GetGlobalVariablesResult(): GetGlobalVariablesResult;
|
|
1411
|
+
type GetGlobalVariablesResult = {
|
|
1410
1412
|
read_only?: any;
|
|
1411
1413
|
editable?: any;
|
|
1412
1414
|
};
|
|
1413
|
-
/** @returns {
|
|
1414
|
-
declare function
|
|
1415
|
-
type
|
|
1415
|
+
/** @returns {CreateGlobalVariablesResult} */
|
|
1416
|
+
declare function CreateGlobalVariablesResult(): CreateGlobalVariablesResult;
|
|
1417
|
+
type CreateGlobalVariablesResult = {
|
|
1416
1418
|
_id?: string;
|
|
1417
1419
|
category?: string;
|
|
1418
1420
|
application?: string;
|
|
@@ -1678,6 +1680,14 @@ type SmsProviderReq = {
|
|
|
1678
1680
|
* - The api_key for the test.
|
|
1679
1681
|
*/
|
|
1680
1682
|
api_key?: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* - First part of jiocx url.
|
|
1685
|
+
*/
|
|
1686
|
+
tenant_name_1?: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* - Second part of jiocx url.
|
|
1689
|
+
*/
|
|
1690
|
+
tenant_name_2?: string;
|
|
1681
1691
|
};
|
|
1682
1692
|
/** @returns {SmsProvider} */
|
|
1683
1693
|
declare function SmsProvider(): SmsProvider;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef EventSubscriptionsBulkUpdatePayload
|
|
5
5
|
* @property {SubscriptionsObject[]} [subscriptions]
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
9
|
+
* @typedef EventSubscriptionsBulkUpdateResult
|
|
10
10
|
* @property {EventSubscriptionTemplate} [template]
|
|
11
11
|
* @property {string} [_id]
|
|
12
12
|
* @property {string} [application]
|
|
@@ -471,13 +471,13 @@ const Joi = require("joi");
|
|
|
471
471
|
*/
|
|
472
472
|
|
|
473
473
|
/**
|
|
474
|
-
* @typedef
|
|
474
|
+
* @typedef EnginePayload
|
|
475
475
|
* @property {PayloadStructure} [payload]
|
|
476
476
|
* @property {MetaStructure} [meta]
|
|
477
477
|
*/
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
|
-
* @typedef
|
|
480
|
+
* @typedef EngineResult
|
|
481
481
|
* @property {boolean} [success]
|
|
482
482
|
*/
|
|
483
483
|
|
|
@@ -519,23 +519,23 @@ const Joi = require("joi");
|
|
|
519
519
|
*/
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
|
-
* @typedef
|
|
522
|
+
* @typedef TriggerJobResult
|
|
523
523
|
* @property {number} [status]
|
|
524
524
|
*/
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
|
-
* @typedef
|
|
527
|
+
* @typedef TriggerJobPayload
|
|
528
528
|
* @property {string} [job_id]
|
|
529
529
|
*/
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
|
-
* @typedef
|
|
532
|
+
* @typedef GetGlobalVariablesResult
|
|
533
533
|
* @property {Object} [read_only]
|
|
534
534
|
* @property {Object} [editable]
|
|
535
535
|
*/
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
|
-
* @typedef
|
|
538
|
+
* @typedef CreateGlobalVariablesResult
|
|
539
539
|
* @property {string} [_id]
|
|
540
540
|
* @property {string} [category]
|
|
541
541
|
* @property {string} [application]
|
|
@@ -765,6 +765,8 @@ const Joi = require("joi");
|
|
|
765
765
|
* @property {number} [version_id] - The version ID for the test.
|
|
766
766
|
* @property {string} [sender_id] - The sender ID for the test.
|
|
767
767
|
* @property {string} [api_key] - The api_key for the test.
|
|
768
|
+
* @property {string} [tenant_name_1] - First part of jiocx url.
|
|
769
|
+
* @property {string} [tenant_name_2] - Second part of jiocx url.
|
|
768
770
|
*/
|
|
769
771
|
|
|
770
772
|
/**
|
|
@@ -970,8 +972,8 @@ const Joi = require("joi");
|
|
|
970
972
|
*/
|
|
971
973
|
|
|
972
974
|
class CommunicationPlatformModel {
|
|
973
|
-
/** @returns {
|
|
974
|
-
static
|
|
975
|
+
/** @returns {EventSubscriptionsBulkUpdatePayload} */
|
|
976
|
+
static EventSubscriptionsBulkUpdatePayload() {
|
|
975
977
|
return Joi.object({
|
|
976
978
|
subscriptions: Joi.array().items(
|
|
977
979
|
CommunicationPlatformModel.SubscriptionsObject()
|
|
@@ -979,8 +981,8 @@ class CommunicationPlatformModel {
|
|
|
979
981
|
});
|
|
980
982
|
}
|
|
981
983
|
|
|
982
|
-
/** @returns {
|
|
983
|
-
static
|
|
984
|
+
/** @returns {EventSubscriptionsBulkUpdateResult} */
|
|
985
|
+
static EventSubscriptionsBulkUpdateResult() {
|
|
984
986
|
return Joi.object({
|
|
985
987
|
template: CommunicationPlatformModel.EventSubscriptionTemplate(),
|
|
986
988
|
_id: Joi.string().allow(""),
|
|
@@ -1401,7 +1403,7 @@ class CommunicationPlatformModel {
|
|
|
1401
1403
|
reply_to: Joi.string().allow(""),
|
|
1402
1404
|
priority: Joi.string().allow(""),
|
|
1403
1405
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1404
|
-
template_variables: Joi.any(),
|
|
1406
|
+
template_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
1405
1407
|
published: Joi.boolean(),
|
|
1406
1408
|
subject: CommunicationPlatformModel.TemplateAndType(),
|
|
1407
1409
|
html: CommunicationPlatformModel.TemplateAndType(),
|
|
@@ -1443,7 +1445,7 @@ class CommunicationPlatformModel {
|
|
|
1443
1445
|
html: CommunicationPlatformModel.TemplateAndType(),
|
|
1444
1446
|
url_shorten: CommunicationPlatformModel.EnabledObj(),
|
|
1445
1447
|
priority: Joi.string().allow(""),
|
|
1446
|
-
template_variables: Joi.any(),
|
|
1448
|
+
template_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
1447
1449
|
published: Joi.boolean(),
|
|
1448
1450
|
category: Joi.string().allow(""),
|
|
1449
1451
|
_id: Joi.string().allow(""),
|
|
@@ -1475,7 +1477,7 @@ class CommunicationPlatformModel {
|
|
|
1475
1477
|
html: CommunicationPlatformModel.TemplateAndType(),
|
|
1476
1478
|
url_shorten: CommunicationPlatformModel.EnabledObj(),
|
|
1477
1479
|
priority: Joi.string().allow(""),
|
|
1478
|
-
template_variables: Joi.any(),
|
|
1480
|
+
template_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
1479
1481
|
published: Joi.boolean(),
|
|
1480
1482
|
category: Joi.string().allow(""),
|
|
1481
1483
|
_id: Joi.string().allow(""),
|
|
@@ -1574,16 +1576,16 @@ class CommunicationPlatformModel {
|
|
|
1574
1576
|
});
|
|
1575
1577
|
}
|
|
1576
1578
|
|
|
1577
|
-
/** @returns {
|
|
1578
|
-
static
|
|
1579
|
+
/** @returns {EnginePayload} */
|
|
1580
|
+
static EnginePayload() {
|
|
1579
1581
|
return Joi.object({
|
|
1580
1582
|
payload: CommunicationPlatformModel.PayloadStructure(),
|
|
1581
1583
|
meta: CommunicationPlatformModel.MetaStructure(),
|
|
1582
1584
|
});
|
|
1583
1585
|
}
|
|
1584
1586
|
|
|
1585
|
-
/** @returns {
|
|
1586
|
-
static
|
|
1587
|
+
/** @returns {EngineResult} */
|
|
1588
|
+
static EngineResult() {
|
|
1587
1589
|
return Joi.object({
|
|
1588
1590
|
success: Joi.boolean(),
|
|
1589
1591
|
});
|
|
@@ -1636,35 +1638,35 @@ class CommunicationPlatformModel {
|
|
|
1636
1638
|
});
|
|
1637
1639
|
}
|
|
1638
1640
|
|
|
1639
|
-
/** @returns {
|
|
1640
|
-
static
|
|
1641
|
+
/** @returns {TriggerJobResult} */
|
|
1642
|
+
static TriggerJobResult() {
|
|
1641
1643
|
return Joi.object({
|
|
1642
1644
|
status: Joi.number(),
|
|
1643
1645
|
});
|
|
1644
1646
|
}
|
|
1645
1647
|
|
|
1646
|
-
/** @returns {
|
|
1647
|
-
static
|
|
1648
|
+
/** @returns {TriggerJobPayload} */
|
|
1649
|
+
static TriggerJobPayload() {
|
|
1648
1650
|
return Joi.object({
|
|
1649
1651
|
job_id: Joi.string().allow(""),
|
|
1650
1652
|
});
|
|
1651
1653
|
}
|
|
1652
1654
|
|
|
1653
|
-
/** @returns {
|
|
1654
|
-
static
|
|
1655
|
+
/** @returns {GetGlobalVariablesResult} */
|
|
1656
|
+
static GetGlobalVariablesResult() {
|
|
1655
1657
|
return Joi.object({
|
|
1656
|
-
read_only: Joi.any(),
|
|
1657
|
-
editable: Joi.any(),
|
|
1658
|
+
read_only: Joi.object().pattern(/\S/, Joi.any()),
|
|
1659
|
+
editable: Joi.object().pattern(/\S/, Joi.any()),
|
|
1658
1660
|
});
|
|
1659
1661
|
}
|
|
1660
1662
|
|
|
1661
|
-
/** @returns {
|
|
1662
|
-
static
|
|
1663
|
+
/** @returns {CreateGlobalVariablesResult} */
|
|
1664
|
+
static CreateGlobalVariablesResult() {
|
|
1663
1665
|
return Joi.object({
|
|
1664
1666
|
_id: Joi.string().allow(""),
|
|
1665
1667
|
category: Joi.string().allow(""),
|
|
1666
1668
|
application: Joi.string().allow(""),
|
|
1667
|
-
global_variables: Joi.any(),
|
|
1669
|
+
global_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
1668
1670
|
created_at: Joi.string().allow(""),
|
|
1669
1671
|
});
|
|
1670
1672
|
}
|
|
@@ -1672,7 +1674,7 @@ class CommunicationPlatformModel {
|
|
|
1672
1674
|
/** @returns {GlobalVariablesReq} */
|
|
1673
1675
|
static GlobalVariablesReq() {
|
|
1674
1676
|
return Joi.object({
|
|
1675
|
-
global_variables: Joi.any(),
|
|
1677
|
+
global_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
1676
1678
|
});
|
|
1677
1679
|
}
|
|
1678
1680
|
|
|
@@ -1944,6 +1946,8 @@ class CommunicationPlatformModel {
|
|
|
1944
1946
|
version_id: Joi.number(),
|
|
1945
1947
|
sender_id: Joi.string().allow(""),
|
|
1946
1948
|
api_key: Joi.string().allow(""),
|
|
1949
|
+
tenant_name_1: Joi.string().allow(""),
|
|
1950
|
+
tenant_name_2: Joi.string().allow(""),
|
|
1947
1951
|
});
|
|
1948
1952
|
}
|
|
1949
1953
|
|
|
@@ -2018,7 +2022,7 @@ class CommunicationPlatformModel {
|
|
|
2018
2022
|
message: CommunicationPlatformModel.SmsTemplateMessage(),
|
|
2019
2023
|
priority: Joi.string().allow(""),
|
|
2020
2024
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2021
|
-
template_variables: Joi.any(),
|
|
2025
|
+
template_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
2022
2026
|
template_id: Joi.string().allow(""),
|
|
2023
2027
|
published: Joi.boolean(),
|
|
2024
2028
|
category: Joi.string().allow(""),
|
|
@@ -2041,7 +2045,7 @@ class CommunicationPlatformModel {
|
|
|
2041
2045
|
message: CommunicationPlatformModel.SmsTemplateMessage(),
|
|
2042
2046
|
priority: Joi.string().allow(""),
|
|
2043
2047
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2044
|
-
template_variables: Joi.any(),
|
|
2048
|
+
template_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
2045
2049
|
template_id: Joi.string().allow(""),
|
|
2046
2050
|
published: Joi.boolean(),
|
|
2047
2051
|
category: Joi.string().allow(""),
|
|
@@ -2069,7 +2073,7 @@ class CommunicationPlatformModel {
|
|
|
2069
2073
|
priority: Joi.string().allow(""),
|
|
2070
2074
|
template_id: Joi.string().allow(""),
|
|
2071
2075
|
meta: CommunicationPlatformModel.metaObj(),
|
|
2072
|
-
template_variables: Joi.any(),
|
|
2076
|
+
template_variables: Joi.object().pattern(/\S/, Joi.any()),
|
|
2073
2077
|
published: Joi.boolean(),
|
|
2074
2078
|
message: CommunicationPlatformModel.SmsTemplateMessage(),
|
|
2075
2079
|
});
|