@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -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.EventSubscriptionsBulkUpdateResponse>}
|
|
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.EventSubscriptionsBulkUpdateResponse().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.EventSubscriptionsBulkUpdateResponse[]
|
|
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.EventSubscriptionsBulkUpdateResponse())
|
|
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.EventSubscriptionsBulkUpdateResponse>}
|
|
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.EventSubscriptionsBulkUpdateResponse().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.GlobalVariablesGetResponse>}
|
|
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.GlobalVariablesGetResponse().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.GlobalVariablesPostResponse>}
|
|
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.GlobalVariablesPostResponse().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.EngineResponse>} - 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.EngineResponse().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.EngineResponse>} - 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.EngineResponse().validate(responseData, {
|
|
4584
4584
|
abortEarly: false,
|
|
4585
4585
|
allowUnknown: true,
|
|
4586
4586
|
});
|
|
@@ -4684,7 +4684,8 @@ 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.
|
|
4687
|
+
* @returns {Promise<CommunicationPlatformModel.TriggerJobResponse>} -
|
|
4688
|
+
* Success response
|
|
4688
4689
|
* @name triggerCampaignJob
|
|
4689
4690
|
* @summary: Trigger a campaign job
|
|
4690
4691
|
* @description: Initiates a job to execute a communication campaign. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/communication/triggerCampaignJob/).
|
|
@@ -4740,7 +4741,7 @@ class Communication {
|
|
|
4740
4741
|
|
|
4741
4742
|
const {
|
|
4742
4743
|
error: res_error,
|
|
4743
|
-
} = CommunicationPlatformModel.
|
|
4744
|
+
} = CommunicationPlatformModel.TriggerJobResponse().validate(responseData, {
|
|
4744
4745
|
abortEarly: false,
|
|
4745
4746
|
allowUnknown: true,
|
|
4746
4747
|
});
|
|
@@ -24,7 +24,7 @@ export = CommunicationPlatformApplicationValidator;
|
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* @typedef CreateEventSubscriptionsByBulkParam
|
|
27
|
-
* @property {CommunicationPlatformModel.
|
|
27
|
+
* @property {CommunicationPlatformModel.EventSubscriptionsBulkUpdateRequest} 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.EngineRequest} body
|
|
218
218
|
*/
|
|
219
219
|
/**
|
|
220
220
|
* @typedef SendCommunicationSynchronouslyParam
|
|
221
|
-
* @property {CommunicationPlatformModel.
|
|
221
|
+
* @property {CommunicationPlatformModel.EngineRequest} 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.TriggerJobRequest} 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.EventSubscriptionsBulkUpdateRequest;
|
|
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.EngineRequest;
|
|
759
759
|
};
|
|
760
760
|
type SendCommunicationSynchronouslyParam = {
|
|
761
|
-
body: CommunicationPlatformModel.
|
|
761
|
+
body: CommunicationPlatformModel.EngineRequest;
|
|
762
762
|
};
|
|
763
763
|
type SendOtpParam = {
|
|
764
764
|
body: CommunicationPlatformModel.SendOtpCommsReq;
|
|
765
765
|
};
|
|
766
766
|
type TriggerCampaignJobParam = {
|
|
767
|
-
body: CommunicationPlatformModel.
|
|
767
|
+
body: CommunicationPlatformModel.TriggerJobRequest;
|
|
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.EventSubscriptionsBulkUpdateRequest} 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.EngineRequest} body
|
|
275
275
|
*/
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* @typedef SendCommunicationSynchronouslyParam
|
|
279
|
-
* @property {CommunicationPlatformModel.
|
|
279
|
+
* @property {CommunicationPlatformModel.EngineRequest} 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.TriggerJobRequest} 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.EventSubscriptionsBulkUpdateRequest().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.EngineRequest().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.EngineRequest().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.TriggerJobRequest().required(),
|
|
754
754
|
}).required();
|
|
755
755
|
}
|
|
756
756
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export = CommunicationPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
3
|
+
* @typedef EventSubscriptionsBulkUpdateRequest
|
|
4
4
|
* @property {SubscriptionsObject[]} [subscriptions]
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* @typedef
|
|
7
|
+
* @typedef EventSubscriptionsBulkUpdateResponse
|
|
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 EngineRequest
|
|
418
418
|
* @property {PayloadStructure} [payload]
|
|
419
419
|
* @property {MetaStructure} [meta]
|
|
420
420
|
*/
|
|
421
421
|
/**
|
|
422
|
-
* @typedef
|
|
422
|
+
* @typedef EngineResponse
|
|
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 TriggerJobResponse
|
|
459
459
|
* @property {number} [status]
|
|
460
460
|
*/
|
|
461
461
|
/**
|
|
462
|
-
* @typedef
|
|
462
|
+
* @typedef TriggerJobRequest
|
|
463
463
|
* @property {string} [job_id]
|
|
464
464
|
*/
|
|
465
465
|
/**
|
|
466
|
-
* @typedef
|
|
466
|
+
* @typedef GlobalVariablesGetResponse
|
|
467
467
|
* @property {Object} [read_only]
|
|
468
468
|
* @property {Object} [editable]
|
|
469
469
|
*/
|
|
470
470
|
/**
|
|
471
|
-
* @typedef
|
|
471
|
+
* @typedef GlobalVariablesPostResponse
|
|
472
472
|
* @property {string} [_id]
|
|
473
473
|
* @property {string} [category]
|
|
474
474
|
* @property {string} [application]
|
|
@@ -671,8 +671,6 @@ 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.
|
|
676
674
|
*/
|
|
677
675
|
/**
|
|
678
676
|
* @typedef SmsProvider
|
|
@@ -858,16 +856,16 @@ export = CommunicationPlatformModel;
|
|
|
858
856
|
declare class CommunicationPlatformModel {
|
|
859
857
|
}
|
|
860
858
|
declare namespace CommunicationPlatformModel {
|
|
861
|
-
export {
|
|
859
|
+
export { EventSubscriptionsBulkUpdateRequest, EventSubscriptionsBulkUpdateResponse, 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, EngineRequest, EngineResponse, EventSubscriptionTemplateSms, EventSubscriptionTemplateEmail, EventSubscriptionTemplate, EventSubscription, EventSubscriptions, TriggerJobResponse, TriggerJobRequest, GlobalVariablesGetResponse, GlobalVariablesPostResponse, 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 };
|
|
862
860
|
}
|
|
863
|
-
/** @returns {
|
|
864
|
-
declare function
|
|
865
|
-
type
|
|
861
|
+
/** @returns {EventSubscriptionsBulkUpdateRequest} */
|
|
862
|
+
declare function EventSubscriptionsBulkUpdateRequest(): EventSubscriptionsBulkUpdateRequest;
|
|
863
|
+
type EventSubscriptionsBulkUpdateRequest = {
|
|
866
864
|
subscriptions?: SubscriptionsObject[];
|
|
867
865
|
};
|
|
868
|
-
/** @returns {
|
|
869
|
-
declare function
|
|
870
|
-
type
|
|
866
|
+
/** @returns {EventSubscriptionsBulkUpdateResponse} */
|
|
867
|
+
declare function EventSubscriptionsBulkUpdateResponse(): EventSubscriptionsBulkUpdateResponse;
|
|
868
|
+
type EventSubscriptionsBulkUpdateResponse = {
|
|
871
869
|
template?: EventSubscriptionTemplate;
|
|
872
870
|
_id?: string;
|
|
873
871
|
application?: string;
|
|
@@ -1348,15 +1346,15 @@ type MetaStructure = {
|
|
|
1348
1346
|
trace?: string;
|
|
1349
1347
|
timestamp?: string;
|
|
1350
1348
|
};
|
|
1351
|
-
/** @returns {
|
|
1352
|
-
declare function
|
|
1353
|
-
type
|
|
1349
|
+
/** @returns {EngineRequest} */
|
|
1350
|
+
declare function EngineRequest(): EngineRequest;
|
|
1351
|
+
type EngineRequest = {
|
|
1354
1352
|
payload?: PayloadStructure;
|
|
1355
1353
|
meta?: MetaStructure;
|
|
1356
1354
|
};
|
|
1357
|
-
/** @returns {
|
|
1358
|
-
declare function
|
|
1359
|
-
type
|
|
1355
|
+
/** @returns {EngineResponse} */
|
|
1356
|
+
declare function EngineResponse(): EngineResponse;
|
|
1357
|
+
type EngineResponse = {
|
|
1360
1358
|
success?: boolean;
|
|
1361
1359
|
};
|
|
1362
1360
|
/** @returns {EventSubscriptionTemplateSms} */
|
|
@@ -1396,25 +1394,25 @@ type EventSubscriptions = {
|
|
|
1396
1394
|
items?: EventSubscription[];
|
|
1397
1395
|
page?: Page;
|
|
1398
1396
|
};
|
|
1399
|
-
/** @returns {
|
|
1400
|
-
declare function
|
|
1401
|
-
type
|
|
1397
|
+
/** @returns {TriggerJobResponse} */
|
|
1398
|
+
declare function TriggerJobResponse(): TriggerJobResponse;
|
|
1399
|
+
type TriggerJobResponse = {
|
|
1402
1400
|
status?: number;
|
|
1403
1401
|
};
|
|
1404
|
-
/** @returns {
|
|
1405
|
-
declare function
|
|
1406
|
-
type
|
|
1402
|
+
/** @returns {TriggerJobRequest} */
|
|
1403
|
+
declare function TriggerJobRequest(): TriggerJobRequest;
|
|
1404
|
+
type TriggerJobRequest = {
|
|
1407
1405
|
job_id?: string;
|
|
1408
1406
|
};
|
|
1409
|
-
/** @returns {
|
|
1410
|
-
declare function
|
|
1411
|
-
type
|
|
1407
|
+
/** @returns {GlobalVariablesGetResponse} */
|
|
1408
|
+
declare function GlobalVariablesGetResponse(): GlobalVariablesGetResponse;
|
|
1409
|
+
type GlobalVariablesGetResponse = {
|
|
1412
1410
|
read_only?: any;
|
|
1413
1411
|
editable?: any;
|
|
1414
1412
|
};
|
|
1415
|
-
/** @returns {
|
|
1416
|
-
declare function
|
|
1417
|
-
type
|
|
1413
|
+
/** @returns {GlobalVariablesPostResponse} */
|
|
1414
|
+
declare function GlobalVariablesPostResponse(): GlobalVariablesPostResponse;
|
|
1415
|
+
type GlobalVariablesPostResponse = {
|
|
1418
1416
|
_id?: string;
|
|
1419
1417
|
category?: string;
|
|
1420
1418
|
application?: string;
|
|
@@ -1680,14 +1678,6 @@ type SmsProviderReq = {
|
|
|
1680
1678
|
* - The api_key for the test.
|
|
1681
1679
|
*/
|
|
1682
1680
|
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;
|
|
1691
1681
|
};
|
|
1692
1682
|
/** @returns {SmsProvider} */
|
|
1693
1683
|
declare function SmsProvider(): SmsProvider;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
4
|
+
* @typedef EventSubscriptionsBulkUpdateRequest
|
|
5
5
|
* @property {SubscriptionsObject[]} [subscriptions]
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @typedef
|
|
9
|
+
* @typedef EventSubscriptionsBulkUpdateResponse
|
|
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 EngineRequest
|
|
475
475
|
* @property {PayloadStructure} [payload]
|
|
476
476
|
* @property {MetaStructure} [meta]
|
|
477
477
|
*/
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
|
-
* @typedef
|
|
480
|
+
* @typedef EngineResponse
|
|
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 TriggerJobResponse
|
|
523
523
|
* @property {number} [status]
|
|
524
524
|
*/
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
|
-
* @typedef
|
|
527
|
+
* @typedef TriggerJobRequest
|
|
528
528
|
* @property {string} [job_id]
|
|
529
529
|
*/
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
|
-
* @typedef
|
|
532
|
+
* @typedef GlobalVariablesGetResponse
|
|
533
533
|
* @property {Object} [read_only]
|
|
534
534
|
* @property {Object} [editable]
|
|
535
535
|
*/
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
|
-
* @typedef
|
|
538
|
+
* @typedef GlobalVariablesPostResponse
|
|
539
539
|
* @property {string} [_id]
|
|
540
540
|
* @property {string} [category]
|
|
541
541
|
* @property {string} [application]
|
|
@@ -765,8 +765,6 @@ 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.
|
|
770
768
|
*/
|
|
771
769
|
|
|
772
770
|
/**
|
|
@@ -972,8 +970,8 @@ const Joi = require("joi");
|
|
|
972
970
|
*/
|
|
973
971
|
|
|
974
972
|
class CommunicationPlatformModel {
|
|
975
|
-
/** @returns {
|
|
976
|
-
static
|
|
973
|
+
/** @returns {EventSubscriptionsBulkUpdateRequest} */
|
|
974
|
+
static EventSubscriptionsBulkUpdateRequest() {
|
|
977
975
|
return Joi.object({
|
|
978
976
|
subscriptions: Joi.array().items(
|
|
979
977
|
CommunicationPlatformModel.SubscriptionsObject()
|
|
@@ -981,8 +979,8 @@ class CommunicationPlatformModel {
|
|
|
981
979
|
});
|
|
982
980
|
}
|
|
983
981
|
|
|
984
|
-
/** @returns {
|
|
985
|
-
static
|
|
982
|
+
/** @returns {EventSubscriptionsBulkUpdateResponse} */
|
|
983
|
+
static EventSubscriptionsBulkUpdateResponse() {
|
|
986
984
|
return Joi.object({
|
|
987
985
|
template: CommunicationPlatformModel.EventSubscriptionTemplate(),
|
|
988
986
|
_id: Joi.string().allow(""),
|
|
@@ -1403,7 +1401,7 @@ class CommunicationPlatformModel {
|
|
|
1403
1401
|
reply_to: Joi.string().allow(""),
|
|
1404
1402
|
priority: Joi.string().allow(""),
|
|
1405
1403
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
1406
|
-
template_variables: Joi.
|
|
1404
|
+
template_variables: Joi.any(),
|
|
1407
1405
|
published: Joi.boolean(),
|
|
1408
1406
|
subject: CommunicationPlatformModel.TemplateAndType(),
|
|
1409
1407
|
html: CommunicationPlatformModel.TemplateAndType(),
|
|
@@ -1445,7 +1443,7 @@ class CommunicationPlatformModel {
|
|
|
1445
1443
|
html: CommunicationPlatformModel.TemplateAndType(),
|
|
1446
1444
|
url_shorten: CommunicationPlatformModel.EnabledObj(),
|
|
1447
1445
|
priority: Joi.string().allow(""),
|
|
1448
|
-
template_variables: Joi.
|
|
1446
|
+
template_variables: Joi.any(),
|
|
1449
1447
|
published: Joi.boolean(),
|
|
1450
1448
|
category: Joi.string().allow(""),
|
|
1451
1449
|
_id: Joi.string().allow(""),
|
|
@@ -1477,7 +1475,7 @@ class CommunicationPlatformModel {
|
|
|
1477
1475
|
html: CommunicationPlatformModel.TemplateAndType(),
|
|
1478
1476
|
url_shorten: CommunicationPlatformModel.EnabledObj(),
|
|
1479
1477
|
priority: Joi.string().allow(""),
|
|
1480
|
-
template_variables: Joi.
|
|
1478
|
+
template_variables: Joi.any(),
|
|
1481
1479
|
published: Joi.boolean(),
|
|
1482
1480
|
category: Joi.string().allow(""),
|
|
1483
1481
|
_id: Joi.string().allow(""),
|
|
@@ -1576,16 +1574,16 @@ class CommunicationPlatformModel {
|
|
|
1576
1574
|
});
|
|
1577
1575
|
}
|
|
1578
1576
|
|
|
1579
|
-
/** @returns {
|
|
1580
|
-
static
|
|
1577
|
+
/** @returns {EngineRequest} */
|
|
1578
|
+
static EngineRequest() {
|
|
1581
1579
|
return Joi.object({
|
|
1582
1580
|
payload: CommunicationPlatformModel.PayloadStructure(),
|
|
1583
1581
|
meta: CommunicationPlatformModel.MetaStructure(),
|
|
1584
1582
|
});
|
|
1585
1583
|
}
|
|
1586
1584
|
|
|
1587
|
-
/** @returns {
|
|
1588
|
-
static
|
|
1585
|
+
/** @returns {EngineResponse} */
|
|
1586
|
+
static EngineResponse() {
|
|
1589
1587
|
return Joi.object({
|
|
1590
1588
|
success: Joi.boolean(),
|
|
1591
1589
|
});
|
|
@@ -1638,35 +1636,35 @@ class CommunicationPlatformModel {
|
|
|
1638
1636
|
});
|
|
1639
1637
|
}
|
|
1640
1638
|
|
|
1641
|
-
/** @returns {
|
|
1642
|
-
static
|
|
1639
|
+
/** @returns {TriggerJobResponse} */
|
|
1640
|
+
static TriggerJobResponse() {
|
|
1643
1641
|
return Joi.object({
|
|
1644
1642
|
status: Joi.number(),
|
|
1645
1643
|
});
|
|
1646
1644
|
}
|
|
1647
1645
|
|
|
1648
|
-
/** @returns {
|
|
1649
|
-
static
|
|
1646
|
+
/** @returns {TriggerJobRequest} */
|
|
1647
|
+
static TriggerJobRequest() {
|
|
1650
1648
|
return Joi.object({
|
|
1651
1649
|
job_id: Joi.string().allow(""),
|
|
1652
1650
|
});
|
|
1653
1651
|
}
|
|
1654
1652
|
|
|
1655
|
-
/** @returns {
|
|
1656
|
-
static
|
|
1653
|
+
/** @returns {GlobalVariablesGetResponse} */
|
|
1654
|
+
static GlobalVariablesGetResponse() {
|
|
1657
1655
|
return Joi.object({
|
|
1658
|
-
read_only: Joi.
|
|
1659
|
-
editable: Joi.
|
|
1656
|
+
read_only: Joi.any(),
|
|
1657
|
+
editable: Joi.any(),
|
|
1660
1658
|
});
|
|
1661
1659
|
}
|
|
1662
1660
|
|
|
1663
|
-
/** @returns {
|
|
1664
|
-
static
|
|
1661
|
+
/** @returns {GlobalVariablesPostResponse} */
|
|
1662
|
+
static GlobalVariablesPostResponse() {
|
|
1665
1663
|
return Joi.object({
|
|
1666
1664
|
_id: Joi.string().allow(""),
|
|
1667
1665
|
category: Joi.string().allow(""),
|
|
1668
1666
|
application: Joi.string().allow(""),
|
|
1669
|
-
global_variables: Joi.
|
|
1667
|
+
global_variables: Joi.any(),
|
|
1670
1668
|
created_at: Joi.string().allow(""),
|
|
1671
1669
|
});
|
|
1672
1670
|
}
|
|
@@ -1674,7 +1672,7 @@ class CommunicationPlatformModel {
|
|
|
1674
1672
|
/** @returns {GlobalVariablesReq} */
|
|
1675
1673
|
static GlobalVariablesReq() {
|
|
1676
1674
|
return Joi.object({
|
|
1677
|
-
global_variables: Joi.
|
|
1675
|
+
global_variables: Joi.any(),
|
|
1678
1676
|
});
|
|
1679
1677
|
}
|
|
1680
1678
|
|
|
@@ -1946,8 +1944,6 @@ class CommunicationPlatformModel {
|
|
|
1946
1944
|
version_id: Joi.number(),
|
|
1947
1945
|
sender_id: Joi.string().allow(""),
|
|
1948
1946
|
api_key: Joi.string().allow(""),
|
|
1949
|
-
tenant_name_1: Joi.string().allow(""),
|
|
1950
|
-
tenant_name_2: Joi.string().allow(""),
|
|
1951
1947
|
});
|
|
1952
1948
|
}
|
|
1953
1949
|
|
|
@@ -2022,7 +2018,7 @@ class CommunicationPlatformModel {
|
|
|
2022
2018
|
message: CommunicationPlatformModel.SmsTemplateMessage(),
|
|
2023
2019
|
priority: Joi.string().allow(""),
|
|
2024
2020
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2025
|
-
template_variables: Joi.
|
|
2021
|
+
template_variables: Joi.any(),
|
|
2026
2022
|
template_id: Joi.string().allow(""),
|
|
2027
2023
|
published: Joi.boolean(),
|
|
2028
2024
|
category: Joi.string().allow(""),
|
|
@@ -2045,7 +2041,7 @@ class CommunicationPlatformModel {
|
|
|
2045
2041
|
message: CommunicationPlatformModel.SmsTemplateMessage(),
|
|
2046
2042
|
priority: Joi.string().allow(""),
|
|
2047
2043
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
2048
|
-
template_variables: Joi.
|
|
2044
|
+
template_variables: Joi.any(),
|
|
2049
2045
|
template_id: Joi.string().allow(""),
|
|
2050
2046
|
published: Joi.boolean(),
|
|
2051
2047
|
category: Joi.string().allow(""),
|
|
@@ -2073,7 +2069,7 @@ class CommunicationPlatformModel {
|
|
|
2073
2069
|
priority: Joi.string().allow(""),
|
|
2074
2070
|
template_id: Joi.string().allow(""),
|
|
2075
2071
|
meta: CommunicationPlatformModel.metaObj(),
|
|
2076
|
-
template_variables: Joi.
|
|
2072
|
+
template_variables: Joi.any(),
|
|
2077
2073
|
published: Joi.boolean(),
|
|
2078
2074
|
message: CommunicationPlatformModel.SmsTemplateMessage(),
|
|
2079
2075
|
});
|