@gofynd/fdk-client-javascript 1.1.6 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -3
- package/index.js +0 -3
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +12 -3
- package/sdk/application/ApplicationClient.d.ts +36 -6
- package/sdk/application/ApplicationClient.js +30 -43
- package/sdk/application/ApplicationConfig.d.ts +92 -12
- package/sdk/application/ApplicationConfig.js +48 -14
- package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
- package/sdk/application/Cart/CartApplicationClient.js +711 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
- package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
- package/sdk/application/Common/CommonApplicationClient.js +52 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
- package/sdk/application/Common/CommonApplicationModel.js +192 -40
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
- package/sdk/application/Content/ContentApplicationClient.js +489 -278
- package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
- package/sdk/application/Content/ContentApplicationModel.js +737 -396
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
- package/sdk/application/Lead/LeadApplicationClient.js +188 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
- package/sdk/application/Lead/LeadApplicationModel.js +330 -244
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
- package/sdk/application/Order/OrderApplicationClient.js +329 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
- package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
- package/sdk/application/Share/ShareApplicationClient.js +185 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
- package/sdk/application/Share/ShareApplicationModel.js +131 -31
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +260 -305
- package/sdk/application/User/UserApplicationClient.js +910 -522
- package/sdk/application/User/UserApplicationModel.d.ts +992 -101
- package/sdk/application/User/UserApplicationModel.js +699 -248
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +7 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +16 -1
- package/sdk/partner/PartnerAPIClient.js +12 -2
- package/sdk/partner/PartnerClient.d.ts +22 -3
- package/sdk/partner/PartnerClient.js +20 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
- package/sdk/platform/Common/CommonPlatformClient.js +50 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
- package/sdk/platform/Common/CommonPlatformModel.js +214 -40
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
- package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
- package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
- package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
- package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +31 -12581
- package/sdk/platform/PlatformClient.js +30 -15089
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
- package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +167 -19
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
- package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
- package/sdk/platform/User/UserPlatformModel.js +467 -424
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
- package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +21 -3
- package/sdk/public/PublicClient.js +20 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -3
- package/sdk/application/ApplicationModels.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
|
@@ -1,103 +1,1709 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
1
|
+
export = CommunicationPlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef AppProvider
|
|
4
|
+
* @property {number} [__v]
|
|
5
|
+
* @property {string} [_id]
|
|
6
|
+
* @property {string} [application]
|
|
7
|
+
* @property {string} [created_at]
|
|
8
|
+
* @property {AppProviderRes} [email]
|
|
9
|
+
* @property {AppProviderRes} [sms]
|
|
10
|
+
* @property {string} [updated_at]
|
|
11
|
+
* @property {AppProviderResVoice} [voice]
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @typedef AppProviderReq
|
|
15
|
+
* @property {AppProviderRes} [email]
|
|
16
|
+
* @property {AppProviderRes} [sms]
|
|
17
|
+
* @property {AppProviderResVoice} [voice]
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @typedef AppProviderRes
|
|
21
|
+
* @property {AppProviderResObj} [otp]
|
|
22
|
+
* @property {AppProviderResObj} [promotional]
|
|
23
|
+
* @property {AppProviderResObj} [transaction]
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @typedef AppProviderResObj
|
|
27
|
+
* @property {string} [provider]
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* @typedef AppProviderResVoice
|
|
31
|
+
* @property {AppProviderResObj} [otp]
|
|
32
|
+
* @property {AppProviderResObj} [transaction]
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* @typedef Audience
|
|
36
|
+
* @property {number} [__v]
|
|
37
|
+
* @property {string} [_id]
|
|
38
|
+
* @property {string} [application]
|
|
39
|
+
* @property {string} [created_at]
|
|
40
|
+
* @property {string} [description]
|
|
41
|
+
* @property {string} [file_url]
|
|
42
|
+
* @property {string[]} [headers]
|
|
43
|
+
* @property {boolean} [is_active]
|
|
44
|
+
* @property {string} [name]
|
|
45
|
+
* @property {number} [records_count]
|
|
46
|
+
* @property {string} [slug]
|
|
47
|
+
* @property {string[]} [tags]
|
|
48
|
+
* @property {string} [type]
|
|
49
|
+
* @property {string} [updated_at]
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @typedef AudienceReq
|
|
53
|
+
* @property {string} [description]
|
|
54
|
+
* @property {string} [file_url]
|
|
55
|
+
* @property {string[]} [headers]
|
|
56
|
+
* @property {string} [name]
|
|
57
|
+
* @property {number} [records_count]
|
|
58
|
+
* @property {string[]} [tags]
|
|
59
|
+
* @property {string} [type]
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* @typedef Audiences
|
|
63
|
+
* @property {Audience[]} [items]
|
|
64
|
+
* @property {Page} [page]
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* @typedef BadRequestSchema
|
|
68
|
+
* @property {string} [message] - Failure message.
|
|
69
|
+
* @property {string} [status] - Response status.
|
|
70
|
+
*/
|
|
71
|
+
/**
|
|
72
|
+
* @typedef Campaign
|
|
73
|
+
* @property {number} [__v]
|
|
74
|
+
* @property {string} [_id]
|
|
75
|
+
* @property {string} [application]
|
|
76
|
+
* @property {string} [created_at]
|
|
77
|
+
* @property {string} [datasource]
|
|
78
|
+
* @property {string} [description]
|
|
79
|
+
* @property {CampaignEmail} [email]
|
|
80
|
+
* @property {boolean} [is_active]
|
|
81
|
+
* @property {string} [name]
|
|
82
|
+
* @property {RecipientHeaders} [recipient_headers]
|
|
83
|
+
* @property {string} [slug]
|
|
84
|
+
* @property {Object[]} [tags]
|
|
85
|
+
* @property {string} [type]
|
|
86
|
+
* @property {string} [updated_at]
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* @typedef CampaignEmail
|
|
90
|
+
* @property {CampignEmailProvider} [provider]
|
|
91
|
+
* @property {CampaignEmailTemplate} [template]
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @typedef CampaignEmailTemplate
|
|
95
|
+
* @property {string} [key]
|
|
96
|
+
* @property {string} [value]
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* @typedef CampaignReq
|
|
100
|
+
* @property {string} [application]
|
|
101
|
+
* @property {string} [description]
|
|
102
|
+
* @property {string} [file_url]
|
|
103
|
+
* @property {string[]} [headers]
|
|
104
|
+
* @property {boolean} [is_active]
|
|
105
|
+
* @property {string} [name]
|
|
106
|
+
* @property {number} [records_count]
|
|
107
|
+
* @property {string[]} [tags]
|
|
108
|
+
* @property {string} [type]
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* @typedef Campaigns
|
|
112
|
+
* @property {Campaign[]} [items]
|
|
113
|
+
* @property {Page} [page]
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* @typedef CampignEmailProvider
|
|
117
|
+
* @property {string} [_id]
|
|
118
|
+
* @property {string} [from_email]
|
|
119
|
+
* @property {string} [from_name]
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* @typedef DefaultSmsProviders
|
|
123
|
+
* @property {string} [_id]
|
|
124
|
+
* @property {boolean} [is_default]
|
|
125
|
+
* @property {string} [name]
|
|
126
|
+
*/
|
|
127
|
+
/**
|
|
128
|
+
* @typedef DummyDatasources
|
|
129
|
+
* @property {number} [id]
|
|
130
|
+
* @property {string} [name]
|
|
131
|
+
*/
|
|
132
|
+
/**
|
|
133
|
+
* @typedef DummyDatasourcesMeta
|
|
134
|
+
* @property {DummyDatasourcesMetaObj} [data]
|
|
135
|
+
* @property {number} [id]
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* @typedef DummyDatasourcesMetaObj
|
|
139
|
+
* @property {number} [b]
|
|
140
|
+
*/
|
|
141
|
+
/**
|
|
142
|
+
* @typedef EmailProvider
|
|
143
|
+
* @property {number} [__v]
|
|
144
|
+
* @property {string} [_id]
|
|
145
|
+
* @property {string} [api_key]
|
|
146
|
+
* @property {string} [application]
|
|
147
|
+
* @property {string} [created_at]
|
|
148
|
+
* @property {string} [description]
|
|
149
|
+
* @property {EmailProviderReqFrom[]} [from_address]
|
|
150
|
+
* @property {string} [name]
|
|
151
|
+
* @property {string} [provider]
|
|
152
|
+
* @property {string} [slug]
|
|
153
|
+
* @property {string} [type]
|
|
154
|
+
* @property {string} [updated_at]
|
|
155
|
+
*/
|
|
156
|
+
/**
|
|
157
|
+
* @typedef EmailProviderReq
|
|
158
|
+
* @property {string} [api_key]
|
|
159
|
+
* @property {string} [description]
|
|
160
|
+
* @property {EmailProviderReqFrom[]} [from_address]
|
|
161
|
+
* @property {string} [name]
|
|
162
|
+
* @property {string} [provider]
|
|
163
|
+
* @property {string} [type]
|
|
164
|
+
*/
|
|
165
|
+
/**
|
|
166
|
+
* @typedef EmailProviderReqFrom
|
|
167
|
+
* @property {string} [email]
|
|
168
|
+
* @property {boolean} [is_default]
|
|
169
|
+
* @property {string} [name]
|
|
170
|
+
*/
|
|
171
|
+
/**
|
|
172
|
+
* @typedef EmailProviders
|
|
173
|
+
* @property {EmailProvider[]} [items]
|
|
174
|
+
* @property {Page} [page]
|
|
175
|
+
*/
|
|
176
|
+
/**
|
|
177
|
+
* @typedef EmailTemplate
|
|
178
|
+
* @property {number} [__v]
|
|
179
|
+
* @property {string} [_id]
|
|
180
|
+
* @property {string} [application]
|
|
181
|
+
* @property {number[]} [attachments]
|
|
182
|
+
* @property {string} [category]
|
|
183
|
+
* @property {string} [created_at]
|
|
184
|
+
* @property {string} [description]
|
|
185
|
+
* @property {string} [editor_meta]
|
|
186
|
+
* @property {string} [editor_type]
|
|
187
|
+
* @property {string} [from_name]
|
|
188
|
+
* @property {EmailTemplateHeaders[]} [headers]
|
|
189
|
+
* @property {TemplateAndType} [html]
|
|
190
|
+
* @property {boolean} [is_internal]
|
|
191
|
+
* @property {boolean} [is_system]
|
|
192
|
+
* @property {string} [name]
|
|
193
|
+
* @property {string} [priority]
|
|
194
|
+
* @property {boolean} [published]
|
|
195
|
+
* @property {string} [reply_to]
|
|
196
|
+
* @property {string} [slug]
|
|
197
|
+
* @property {string[]} [static_bcc]
|
|
198
|
+
* @property {string[]} [static_cc]
|
|
199
|
+
* @property {string[]} [static_to]
|
|
200
|
+
* @property {TemplateAndType} [subject]
|
|
201
|
+
* @property {string[]} [tags]
|
|
202
|
+
* @property {Object} [template_variables]
|
|
203
|
+
* @property {TemplateAndType} [text]
|
|
204
|
+
* @property {string} [updated_at]
|
|
205
|
+
* @property {EnabledObj} [url_shorten]
|
|
206
|
+
*/
|
|
207
|
+
/**
|
|
208
|
+
* @typedef EmailTemplateHeaders
|
|
209
|
+
* @property {string} [key]
|
|
210
|
+
* @property {string} [value]
|
|
211
|
+
*/
|
|
212
|
+
/**
|
|
213
|
+
* @typedef EmailTemplateKeys
|
|
214
|
+
* @property {string} [bcc]
|
|
215
|
+
* @property {string} [cc]
|
|
216
|
+
* @property {string} [to]
|
|
217
|
+
*/
|
|
218
|
+
/**
|
|
219
|
+
* @typedef EmailTemplateReq
|
|
220
|
+
* @property {number[]} [attachments]
|
|
221
|
+
* @property {string} [description]
|
|
222
|
+
* @property {string} [editor_meta]
|
|
223
|
+
* @property {string} [editor_type]
|
|
224
|
+
* @property {string} [from_name]
|
|
225
|
+
* @property {EmailTemplateHeaders[]} [headers]
|
|
226
|
+
* @property {TemplateAndType} [html]
|
|
227
|
+
* @property {EmailTemplateKeys} [keys]
|
|
228
|
+
* @property {string} name
|
|
229
|
+
* @property {string} [priority]
|
|
230
|
+
* @property {boolean} [published]
|
|
231
|
+
* @property {string} [reply_to]
|
|
232
|
+
* @property {string[]} [static_bcc]
|
|
233
|
+
* @property {string[]} [static_cc]
|
|
234
|
+
* @property {string[]} [static_to]
|
|
235
|
+
* @property {TemplateAndType} [subject]
|
|
236
|
+
* @property {string[]} [tags]
|
|
237
|
+
* @property {Object} [template_variables]
|
|
238
|
+
* @property {TemplateAndType} [text]
|
|
239
|
+
*/
|
|
240
|
+
/**
|
|
241
|
+
* @typedef EmailTemplates
|
|
242
|
+
* @property {EmailTemplate[]} [items]
|
|
243
|
+
* @property {Page} [page]
|
|
244
|
+
*/
|
|
245
|
+
/**
|
|
246
|
+
* @typedef EnabledObj
|
|
247
|
+
* @property {boolean} [enabled]
|
|
248
|
+
*/
|
|
249
|
+
/**
|
|
250
|
+
* @typedef EngineRequest
|
|
251
|
+
* @property {MetaStructure} [meta]
|
|
252
|
+
* @property {PayloadStructure} [payload]
|
|
253
|
+
*/
|
|
254
|
+
/**
|
|
255
|
+
* @typedef EngineResponse
|
|
256
|
+
* @property {boolean} [success]
|
|
257
|
+
*/
|
|
258
|
+
/**
|
|
259
|
+
* @typedef EventSubscription
|
|
260
|
+
* @property {number} [__v]
|
|
261
|
+
* @property {string} [_id]
|
|
262
|
+
* @property {string} [application]
|
|
263
|
+
* @property {string} [created_at]
|
|
264
|
+
* @property {string} [event]
|
|
265
|
+
* @property {boolean} [is_default]
|
|
266
|
+
* @property {string} [slug]
|
|
267
|
+
* @property {EventSubscriptionTemplate} [template]
|
|
268
|
+
* @property {string} [updated_at]
|
|
269
|
+
*/
|
|
270
|
+
/**
|
|
271
|
+
* @typedef EventSubscriptions
|
|
272
|
+
* @property {EventSubscription[]} [items]
|
|
273
|
+
* @property {Page} [page]
|
|
274
|
+
*/
|
|
275
|
+
/**
|
|
276
|
+
* @typedef EventSubscriptionTemplate
|
|
277
|
+
* @property {EventSubscriptionTemplateEmail} [email]
|
|
278
|
+
* @property {EventSubscriptionTemplateSms} [sms]
|
|
279
|
+
*/
|
|
280
|
+
/**
|
|
281
|
+
* @typedef EventSubscriptionTemplateEmail
|
|
282
|
+
* @property {boolean} [subscribed]
|
|
283
|
+
* @property {string} [template]
|
|
284
|
+
*/
|
|
285
|
+
/**
|
|
286
|
+
* @typedef EventSubscriptionTemplateSms
|
|
287
|
+
* @property {boolean} [subscribed]
|
|
288
|
+
* @property {string} [template]
|
|
289
|
+
*/
|
|
290
|
+
/**
|
|
291
|
+
* @typedef GenericDelete
|
|
292
|
+
* @property {boolean} [acknowledged]
|
|
293
|
+
* @property {number} [affected]
|
|
294
|
+
* @property {string} [message]
|
|
295
|
+
* @property {string} [operation]
|
|
296
|
+
*/
|
|
297
|
+
/**
|
|
298
|
+
* @typedef GenericError
|
|
299
|
+
* @property {Message} [message]
|
|
300
|
+
* @property {string} [sentry]
|
|
301
|
+
*/
|
|
302
|
+
/**
|
|
303
|
+
* @typedef GetNRecordsCsvReq
|
|
304
|
+
* @property {number} [count]
|
|
305
|
+
* @property {boolean} [header]
|
|
306
|
+
* @property {string} [url]
|
|
307
|
+
*/
|
|
308
|
+
/**
|
|
309
|
+
* @typedef GetNRecordsCsvRes
|
|
310
|
+
* @property {GetNRecordsCsvResItems[]} [items]
|
|
311
|
+
*/
|
|
312
|
+
/**
|
|
313
|
+
* @typedef GetNRecordsCsvResItems
|
|
314
|
+
* @property {string} [email]
|
|
315
|
+
* @property {string} [firstname]
|
|
316
|
+
* @property {string} [lastname]
|
|
317
|
+
* @property {string} [orderid]
|
|
318
|
+
* @property {string} [phone_number]
|
|
319
|
+
*/
|
|
320
|
+
/**
|
|
321
|
+
* @typedef GetStats
|
|
322
|
+
* @property {Stats[]} [items]
|
|
323
|
+
*/
|
|
324
|
+
/**
|
|
325
|
+
* @typedef GlobalProviders
|
|
326
|
+
* @property {GlobalProvidersResObj[]} [email]
|
|
327
|
+
* @property {GlobalProvidersResObj[]} [sms]
|
|
328
|
+
* @property {GlobalProvidersResObj[]} [voice]
|
|
329
|
+
*/
|
|
330
|
+
/**
|
|
331
|
+
* @typedef GlobalProvidersResObj
|
|
332
|
+
* @property {string} [_id]
|
|
333
|
+
* @property {string} [name]
|
|
334
|
+
*/
|
|
335
|
+
/**
|
|
336
|
+
* @typedef GlobalVariablesGetResponse
|
|
337
|
+
* @property {Object} [editable]
|
|
338
|
+
* @property {Object} [read_only]
|
|
339
|
+
*/
|
|
340
|
+
/**
|
|
341
|
+
* @typedef GlobalVariablesPostResponse
|
|
342
|
+
* @property {string} [_id]
|
|
343
|
+
* @property {string} [application]
|
|
344
|
+
* @property {string} [category]
|
|
345
|
+
* @property {string} [created_at]
|
|
346
|
+
* @property {Object} [global_variables]
|
|
347
|
+
*/
|
|
348
|
+
/**
|
|
349
|
+
* @typedef GlobalVariablesReq
|
|
350
|
+
* @property {Object} [global_variables]
|
|
351
|
+
*/
|
|
352
|
+
/**
|
|
353
|
+
* @typedef Job
|
|
354
|
+
* @property {number} [__v]
|
|
355
|
+
* @property {string} [_id]
|
|
356
|
+
* @property {string} [application]
|
|
357
|
+
* @property {string} [campaign]
|
|
358
|
+
* @property {boolean} [completed]
|
|
359
|
+
* @property {string} [created_at]
|
|
360
|
+
* @property {boolean} [is_active]
|
|
361
|
+
* @property {string} [updated_at]
|
|
362
|
+
*/
|
|
363
|
+
/**
|
|
364
|
+
* @typedef JobLog
|
|
365
|
+
* @property {number} [__v]
|
|
366
|
+
* @property {string} [_id]
|
|
367
|
+
* @property {string} [campaign]
|
|
368
|
+
* @property {string} [created_at]
|
|
369
|
+
* @property {Object} [imported]
|
|
370
|
+
* @property {string} [job]
|
|
371
|
+
* @property {Object} [processed]
|
|
372
|
+
* @property {string} [updated_at]
|
|
373
|
+
*/
|
|
374
|
+
/**
|
|
375
|
+
* @typedef JobLogs
|
|
376
|
+
* @property {JobLog[]} [items]
|
|
377
|
+
* @property {Page} [page]
|
|
378
|
+
*/
|
|
379
|
+
/**
|
|
380
|
+
* @typedef Jobs
|
|
381
|
+
* @property {Job[]} [items]
|
|
382
|
+
* @property {Page} [page]
|
|
383
|
+
*/
|
|
384
|
+
/**
|
|
385
|
+
* @typedef Log
|
|
386
|
+
* @property {string} [_id]
|
|
387
|
+
* @property {string} [application]
|
|
388
|
+
* @property {string} [created_at]
|
|
389
|
+
* @property {Object} [data]
|
|
390
|
+
* @property {LogEmail} [email]
|
|
391
|
+
* @property {string} [expire_at]
|
|
392
|
+
* @property {LogMeta} [meta]
|
|
393
|
+
* @property {LogPushnotification} [pushnotification]
|
|
394
|
+
* @property {string} [service]
|
|
395
|
+
* @property {string} [status]
|
|
396
|
+
* @property {string} [step]
|
|
397
|
+
*/
|
|
398
|
+
/**
|
|
399
|
+
* @typedef LogEmail
|
|
400
|
+
* @property {string} [template]
|
|
401
|
+
*/
|
|
402
|
+
/**
|
|
403
|
+
* @typedef LogMeta
|
|
404
|
+
* @property {string} [identifier]
|
|
405
|
+
* @property {string} [key]
|
|
406
|
+
* @property {string} [offset]
|
|
407
|
+
* @property {string} [partition]
|
|
408
|
+
* @property {string} [topic]
|
|
409
|
+
* @property {string} [type]
|
|
410
|
+
*/
|
|
411
|
+
/**
|
|
412
|
+
* @typedef LogPushnotification
|
|
413
|
+
* @property {string[]} [pushtokens]
|
|
414
|
+
*/
|
|
415
|
+
/**
|
|
416
|
+
* @typedef Logs
|
|
417
|
+
* @property {Log[]} [items]
|
|
418
|
+
* @property {Page} [page]
|
|
419
|
+
*/
|
|
420
|
+
/**
|
|
421
|
+
* @typedef Message
|
|
422
|
+
* @property {string} [info]
|
|
423
|
+
* @property {string} [message]
|
|
424
|
+
* @property {string} [operation]
|
|
425
|
+
* @property {boolean} [success]
|
|
426
|
+
*/
|
|
427
|
+
/**
|
|
428
|
+
* @typedef metaObj
|
|
429
|
+
* @property {boolean} [is_system]
|
|
430
|
+
* @property {string} [template]
|
|
431
|
+
* @property {string} [type]
|
|
432
|
+
*/
|
|
433
|
+
/**
|
|
434
|
+
* @typedef MetaStructure
|
|
435
|
+
* @property {string} [action]
|
|
436
|
+
* @property {string} [job_type]
|
|
437
|
+
* @property {string} [timestamp]
|
|
438
|
+
* @property {string} [trace]
|
|
439
|
+
*/
|
|
440
|
+
/**
|
|
441
|
+
* @typedef NotFound
|
|
442
|
+
* @property {string} [message] - Failure message.
|
|
443
|
+
*/
|
|
444
|
+
/**
|
|
445
|
+
* @typedef Notification
|
|
446
|
+
* @property {string} [body]
|
|
447
|
+
* @property {string} [click_action]
|
|
448
|
+
* @property {string} [deeplink]
|
|
449
|
+
* @property {string} [icon]
|
|
450
|
+
* @property {string} [subtitle]
|
|
451
|
+
* @property {string} [title]
|
|
452
|
+
*/
|
|
453
|
+
/**
|
|
454
|
+
* @typedef Page
|
|
455
|
+
* @property {number} [current]
|
|
456
|
+
* @property {boolean} [has_next]
|
|
457
|
+
* @property {boolean} [has_previous]
|
|
458
|
+
* @property {number} [item_total]
|
|
459
|
+
* @property {string} [next_id]
|
|
460
|
+
* @property {number} [size]
|
|
461
|
+
* @property {string} type
|
|
462
|
+
*/
|
|
463
|
+
/**
|
|
464
|
+
* @typedef PayloadEmailProviderStructure
|
|
465
|
+
* @property {string} [_id]
|
|
466
|
+
*/
|
|
467
|
+
/**
|
|
468
|
+
* @typedef PayloadEmailStructure
|
|
469
|
+
* @property {PayloadEmailProviderStructure} [provider]
|
|
470
|
+
* @property {PayloadEmailTemplateStructure} [template]
|
|
471
|
+
*/
|
|
472
|
+
/**
|
|
473
|
+
* @typedef PayloadEmailTemplateStructure
|
|
474
|
+
* @property {string} [key]
|
|
475
|
+
* @property {Object} [value]
|
|
476
|
+
*/
|
|
477
|
+
/**
|
|
478
|
+
* @typedef PayloadSmsProviderStructure
|
|
479
|
+
* @property {string} [_id]
|
|
480
|
+
*/
|
|
481
|
+
/**
|
|
482
|
+
* @typedef PayloadSmsStructure
|
|
483
|
+
* @property {PayloadSmsProviderStructure} [provider]
|
|
484
|
+
* @property {PayloadSmsTemplateStructure} [template]
|
|
485
|
+
*/
|
|
486
|
+
/**
|
|
487
|
+
* @typedef PayloadSmsTemplateStructure
|
|
488
|
+
* @property {string} [key]
|
|
489
|
+
* @property {Object} [value]
|
|
490
|
+
*/
|
|
491
|
+
/**
|
|
492
|
+
* @typedef PayloadStructure
|
|
493
|
+
* @property {string} [application]
|
|
494
|
+
* @property {Object[]} [data]
|
|
495
|
+
* @property {PayloadEmailStructure} [email]
|
|
496
|
+
* @property {PayloadSmsStructure} [sms]
|
|
497
|
+
*/
|
|
498
|
+
/**
|
|
499
|
+
* @typedef RecipientHeaders
|
|
500
|
+
* @property {string} [email]
|
|
501
|
+
*/
|
|
502
|
+
/**
|
|
503
|
+
* @typedef SendOtpCommsReq
|
|
504
|
+
* @property {SendOtpCommsReqData} [data]
|
|
505
|
+
* @property {SendOtpCommsReqEmail} [email]
|
|
506
|
+
* @property {SendOtpCommsReqSms} [sms]
|
|
507
|
+
*/
|
|
508
|
+
/**
|
|
509
|
+
* @typedef SendOtpCommsReqData
|
|
510
|
+
* @property {string} [country_code]
|
|
511
|
+
* @property {string} [mobile]
|
|
512
|
+
* @property {boolean} [send_same_otp_to_channel]
|
|
513
|
+
* @property {string} [to]
|
|
514
|
+
*/
|
|
515
|
+
/**
|
|
516
|
+
* @typedef SendOtpCommsReqEmail
|
|
517
|
+
* @property {number} [expiry]
|
|
518
|
+
* @property {number} [otp_length]
|
|
519
|
+
* @property {SendOtpEmailCommsTemplate} [template]
|
|
520
|
+
*/
|
|
521
|
+
/**
|
|
522
|
+
* @typedef SendOtpCommsReqSms
|
|
523
|
+
* @property {number} [expiry]
|
|
524
|
+
* @property {number} [otp_length]
|
|
525
|
+
* @property {SendOtpSmsCommsProvider} [provider]
|
|
526
|
+
* @property {SendOtpSmsCommsTemplate} [template]
|
|
527
|
+
*/
|
|
528
|
+
/**
|
|
529
|
+
* @typedef SendOtpCommsRes
|
|
530
|
+
* @property {SendOtpCommsResEmail} [email]
|
|
531
|
+
* @property {SendOtpCommsResSms} [sms]
|
|
532
|
+
*/
|
|
533
|
+
/**
|
|
534
|
+
* @typedef SendOtpCommsResEmail
|
|
535
|
+
* @property {string} [message]
|
|
536
|
+
* @property {string} [request_id]
|
|
537
|
+
* @property {number} [resend_timer]
|
|
538
|
+
* @property {boolean} [success]
|
|
539
|
+
* @property {string} [to]
|
|
540
|
+
*/
|
|
541
|
+
/**
|
|
542
|
+
* @typedef SendOtpCommsResSms
|
|
543
|
+
* @property {string} [country_code]
|
|
544
|
+
* @property {string} [message]
|
|
545
|
+
* @property {string} [mobile]
|
|
546
|
+
* @property {string} [request_id]
|
|
547
|
+
* @property {number} [resend_timer]
|
|
548
|
+
* @property {boolean} [success]
|
|
549
|
+
*/
|
|
550
|
+
/**
|
|
551
|
+
* @typedef SendOtpEmailCommsTemplate
|
|
552
|
+
* @property {string} [key]
|
|
553
|
+
* @property {Object} [value]
|
|
554
|
+
*/
|
|
555
|
+
/**
|
|
556
|
+
* @typedef SendOtpSmsCommsProvider
|
|
557
|
+
* @property {string} [_id]
|
|
558
|
+
* @property {string} [slug]
|
|
559
|
+
*/
|
|
560
|
+
/**
|
|
561
|
+
* @typedef SendOtpSmsCommsTemplate
|
|
562
|
+
* @property {string} [key]
|
|
563
|
+
* @property {Object} [value]
|
|
564
|
+
*/
|
|
565
|
+
/**
|
|
566
|
+
* @typedef SmsProvider
|
|
567
|
+
* @property {number} [__v]
|
|
568
|
+
* @property {string} [_id]
|
|
569
|
+
* @property {string} [application]
|
|
570
|
+
* @property {string} [authkey]
|
|
571
|
+
* @property {string} [created_at]
|
|
572
|
+
* @property {string} [description]
|
|
573
|
+
* @property {string} [name]
|
|
574
|
+
* @property {string} [provider]
|
|
575
|
+
* @property {number} [rpt]
|
|
576
|
+
* @property {string} [sender]
|
|
577
|
+
* @property {string} [slug]
|
|
578
|
+
* @property {string} [type]
|
|
579
|
+
* @property {string} [updated_at]
|
|
580
|
+
* @property {string} [username]
|
|
581
|
+
*/
|
|
582
|
+
/**
|
|
583
|
+
* @typedef SmsProviderReq
|
|
584
|
+
* @property {string} [api_key] - The api_key for the test.
|
|
585
|
+
* @property {string} [apikey] - The apikey for the test.
|
|
586
|
+
* @property {string} [authkey]
|
|
587
|
+
* @property {string} [description]
|
|
588
|
+
* @property {string} [entity_id] - The entity ID for the test.
|
|
589
|
+
* @property {string} [entityid] - The entity ID for the test.
|
|
590
|
+
* @property {string} [feedid] - The feed ID for the test.
|
|
591
|
+
* @property {string} [host] - The host for the test.
|
|
592
|
+
* @property {string} [name]
|
|
593
|
+
* @property {boolean} [override_dnd] - Whether to override Do Not Disturb.
|
|
594
|
+
* @property {string} [password] - The password for the test.
|
|
595
|
+
* @property {number} [port] - The port for the test.
|
|
596
|
+
* @property {string} [provider]
|
|
597
|
+
* @property {string} [sender]
|
|
598
|
+
* @property {string} [sender_id] - The sender ID for the test.
|
|
599
|
+
* @property {string} [senderid] - The sender ID for the test.
|
|
600
|
+
* @property {string} [type]
|
|
601
|
+
* @property {string} [username]
|
|
602
|
+
* @property {number} [version_id] - The version ID for the test.
|
|
603
|
+
*/
|
|
604
|
+
/**
|
|
605
|
+
* @typedef SmsProviders
|
|
606
|
+
* @property {SmsProvider[]} [items]
|
|
607
|
+
* @property {Page} [page]
|
|
608
|
+
*/
|
|
609
|
+
/**
|
|
610
|
+
* @typedef SmsTemplate
|
|
611
|
+
* @property {number} [__v]
|
|
612
|
+
* @property {string} [_id]
|
|
613
|
+
* @property {string} [application]
|
|
614
|
+
* @property {string} [category]
|
|
615
|
+
* @property {string} [created_at]
|
|
616
|
+
* @property {string} [description]
|
|
617
|
+
* @property {boolean} [is_internal]
|
|
618
|
+
* @property {boolean} [is_system]
|
|
619
|
+
* @property {SmsTemplateMessage} [message]
|
|
620
|
+
* @property {metaObj} [meta]
|
|
621
|
+
* @property {string} [name]
|
|
622
|
+
* @property {string} [priority]
|
|
623
|
+
* @property {boolean} [published]
|
|
624
|
+
* @property {string} [slug]
|
|
625
|
+
* @property {string[]} [tags]
|
|
626
|
+
* @property {string} [template_id]
|
|
627
|
+
* @property {Object} [template_variables]
|
|
628
|
+
* @property {string} [updated_at]
|
|
629
|
+
* @property {EnabledObj} [url_shorten]
|
|
630
|
+
*/
|
|
631
|
+
/**
|
|
632
|
+
* @typedef SmsTemplateMessage
|
|
633
|
+
* @property {string} [template]
|
|
634
|
+
* @property {string} [template_type]
|
|
635
|
+
*/
|
|
636
|
+
/**
|
|
637
|
+
* @typedef SmsTemplateReq
|
|
638
|
+
* @property {string} [description]
|
|
639
|
+
* @property {SmsTemplateMessage} [message]
|
|
640
|
+
* @property {metaObj} [meta]
|
|
641
|
+
* @property {string} name
|
|
642
|
+
* @property {string} [priority]
|
|
643
|
+
* @property {boolean} [published]
|
|
644
|
+
* @property {string} [template_id]
|
|
645
|
+
* @property {Object} [template_variables]
|
|
646
|
+
*/
|
|
647
|
+
/**
|
|
648
|
+
* @typedef SmsTemplates
|
|
649
|
+
* @property {SmsTemplate[]} [items]
|
|
650
|
+
* @property {Page} [page]
|
|
651
|
+
*/
|
|
652
|
+
/**
|
|
653
|
+
* @typedef Stats
|
|
654
|
+
* @property {string} [_id]
|
|
655
|
+
* @property {Object} [imported]
|
|
656
|
+
* @property {Object} [processed]
|
|
657
|
+
*/
|
|
658
|
+
/**
|
|
659
|
+
* @typedef StatsImported
|
|
660
|
+
* @property {number} [count]
|
|
661
|
+
*/
|
|
662
|
+
/**
|
|
663
|
+
* @typedef StatsProcessed
|
|
664
|
+
* @property {StatsProcessedEmail} [email]
|
|
665
|
+
* @property {StatsProcessedSms} [sms]
|
|
666
|
+
*/
|
|
667
|
+
/**
|
|
668
|
+
* @typedef StatsProcessedEmail
|
|
669
|
+
* @property {number} [failed]
|
|
670
|
+
* @property {number} [success]
|
|
671
|
+
* @property {number} [suppressed]
|
|
672
|
+
*/
|
|
673
|
+
/**
|
|
674
|
+
* @typedef StatsProcessedSms
|
|
675
|
+
* @property {number} [failed]
|
|
676
|
+
* @property {number} [success]
|
|
677
|
+
* @property {number} [suppressed]
|
|
678
|
+
*/
|
|
679
|
+
/**
|
|
680
|
+
* @typedef SystemEmailTemplate
|
|
681
|
+
* @property {number} [__v]
|
|
682
|
+
* @property {string} [_id]
|
|
683
|
+
* @property {number[]} [attachments]
|
|
684
|
+
* @property {string} [category]
|
|
685
|
+
* @property {string} [created_at]
|
|
686
|
+
* @property {string} [description]
|
|
687
|
+
* @property {EmailTemplateHeaders[]} [headers]
|
|
688
|
+
* @property {TemplateAndType} [html]
|
|
689
|
+
* @property {boolean} [is_internal]
|
|
690
|
+
* @property {boolean} [is_system]
|
|
691
|
+
* @property {string} [name]
|
|
692
|
+
* @property {string} [priority]
|
|
693
|
+
* @property {boolean} [published]
|
|
694
|
+
* @property {string} [slug]
|
|
695
|
+
* @property {string[]} [static_bcc]
|
|
696
|
+
* @property {string[]} [static_cc]
|
|
697
|
+
* @property {string[]} [static_to]
|
|
698
|
+
* @property {TemplateAndType} [subject]
|
|
699
|
+
* @property {string[]} [tags]
|
|
700
|
+
* @property {Object} [template_variables]
|
|
701
|
+
* @property {TemplateAndType} [text]
|
|
702
|
+
* @property {string} [updated_at]
|
|
703
|
+
* @property {EnabledObj} [url_shorten]
|
|
704
|
+
*/
|
|
705
|
+
/**
|
|
706
|
+
* @typedef SystemEmailTemplates
|
|
707
|
+
* @property {SystemEmailTemplate[]} [items]
|
|
708
|
+
*/
|
|
709
|
+
/**
|
|
710
|
+
* @typedef SystemNotification
|
|
711
|
+
* @property {string} [_id]
|
|
712
|
+
* @property {string} [created_at]
|
|
713
|
+
* @property {string} [group]
|
|
714
|
+
* @property {Notification} [notification]
|
|
715
|
+
* @property {SystemNotificationUser} [settings]
|
|
716
|
+
* @property {SystemNotificationUser} [user]
|
|
717
|
+
*/
|
|
718
|
+
/**
|
|
719
|
+
* @typedef SystemNotifications
|
|
720
|
+
* @property {SystemNotification[]} [items]
|
|
721
|
+
* @property {number} [last_read_anchor]
|
|
722
|
+
* @property {Page} [page]
|
|
723
|
+
*/
|
|
724
|
+
/**
|
|
725
|
+
* @typedef SystemNotificationUser
|
|
726
|
+
* @property {string} [type]
|
|
727
|
+
* @property {string} [value]
|
|
728
|
+
*/
|
|
729
|
+
/**
|
|
730
|
+
* @typedef SystemSmsTemplates
|
|
731
|
+
* @property {number} [__v]
|
|
732
|
+
* @property {string} [_id]
|
|
733
|
+
* @property {string} [category]
|
|
734
|
+
* @property {string} [created_at]
|
|
735
|
+
* @property {string} [description]
|
|
736
|
+
* @property {boolean} [is_internal]
|
|
737
|
+
* @property {boolean} [is_system]
|
|
738
|
+
* @property {SmsTemplateMessage} [message]
|
|
739
|
+
* @property {string} [name]
|
|
740
|
+
* @property {string} [priority]
|
|
741
|
+
* @property {boolean} [published]
|
|
742
|
+
* @property {string} [slug]
|
|
743
|
+
* @property {string[]} [tags]
|
|
744
|
+
* @property {string} [template_id]
|
|
745
|
+
* @property {Object} [template_variables]
|
|
746
|
+
* @property {string} [updated_at]
|
|
747
|
+
* @property {EnabledObj} [url_shorten]
|
|
748
|
+
*/
|
|
749
|
+
/**
|
|
750
|
+
* @typedef TemplateAndType
|
|
751
|
+
* @property {string} [template]
|
|
752
|
+
* @property {string} [template_type]
|
|
753
|
+
*/
|
|
754
|
+
/**
|
|
755
|
+
* @typedef TriggerJobRequest
|
|
756
|
+
* @property {string} [job_id]
|
|
757
|
+
*/
|
|
758
|
+
/**
|
|
759
|
+
* @typedef TriggerJobResponse
|
|
760
|
+
* @property {number} [status]
|
|
761
|
+
*/
|
|
762
|
+
/**
|
|
763
|
+
* @typedef VerifyOtpCommsErrorRes
|
|
764
|
+
* @property {string} [message]
|
|
765
|
+
* @property {boolean} [success]
|
|
766
|
+
*/
|
|
767
|
+
/**
|
|
768
|
+
* @typedef VerifyOtpCommsReq
|
|
769
|
+
* @property {string} [otp]
|
|
770
|
+
* @property {string} [request_id]
|
|
771
|
+
*/
|
|
772
|
+
/**
|
|
773
|
+
* @typedef VerifyOtpCommsSuccessRes
|
|
774
|
+
* @property {string} [country_code]
|
|
775
|
+
* @property {string} [message]
|
|
776
|
+
* @property {string} [mobile]
|
|
777
|
+
* @property {boolean} [success]
|
|
778
|
+
*/
|
|
779
|
+
declare class CommunicationPlatformModel {
|
|
103
780
|
}
|
|
781
|
+
declare namespace CommunicationPlatformModel {
|
|
782
|
+
export { AppProvider, AppProviderReq, AppProviderRes, AppProviderResObj, AppProviderResVoice, Audience, AudienceReq, Audiences, BadRequestSchema, Campaign, CampaignEmail, CampaignEmailTemplate, CampaignReq, Campaigns, CampignEmailProvider, DefaultSmsProviders, DummyDatasources, DummyDatasourcesMeta, DummyDatasourcesMetaObj, EmailProvider, EmailProviderReq, EmailProviderReqFrom, EmailProviders, EmailTemplate, EmailTemplateHeaders, EmailTemplateKeys, EmailTemplateReq, EmailTemplates, EnabledObj, EngineRequest, EngineResponse, EventSubscription, EventSubscriptions, EventSubscriptionTemplate, EventSubscriptionTemplateEmail, EventSubscriptionTemplateSms, GenericDelete, GenericError, GetNRecordsCsvReq, GetNRecordsCsvRes, GetNRecordsCsvResItems, GetStats, GlobalProviders, GlobalProvidersResObj, GlobalVariablesGetResponse, GlobalVariablesPostResponse, GlobalVariablesReq, Job, JobLog, JobLogs, Jobs, Log, LogEmail, LogMeta, LogPushnotification, Logs, Message, metaObj, MetaStructure, NotFound, Notification, Page, PayloadEmailProviderStructure, PayloadEmailStructure, PayloadEmailTemplateStructure, PayloadSmsProviderStructure, PayloadSmsStructure, PayloadSmsTemplateStructure, PayloadStructure, RecipientHeaders, SendOtpCommsReq, SendOtpCommsReqData, SendOtpCommsReqEmail, SendOtpCommsReqSms, SendOtpCommsRes, SendOtpCommsResEmail, SendOtpCommsResSms, SendOtpEmailCommsTemplate, SendOtpSmsCommsProvider, SendOtpSmsCommsTemplate, SmsProvider, SmsProviderReq, SmsProviders, SmsTemplate, SmsTemplateMessage, SmsTemplateReq, SmsTemplates, Stats, StatsImported, StatsProcessed, StatsProcessedEmail, StatsProcessedSms, SystemEmailTemplate, SystemEmailTemplates, SystemNotification, SystemNotifications, SystemNotificationUser, SystemSmsTemplates, TemplateAndType, TriggerJobRequest, TriggerJobResponse, VerifyOtpCommsErrorRes, VerifyOtpCommsReq, VerifyOtpCommsSuccessRes };
|
|
783
|
+
}
|
|
784
|
+
/** @returns {AppProvider} */
|
|
785
|
+
declare function AppProvider(): AppProvider;
|
|
786
|
+
type AppProvider = {
|
|
787
|
+
__v?: number;
|
|
788
|
+
_id?: string;
|
|
789
|
+
application?: string;
|
|
790
|
+
created_at?: string;
|
|
791
|
+
email?: AppProviderRes;
|
|
792
|
+
sms?: AppProviderRes;
|
|
793
|
+
updated_at?: string;
|
|
794
|
+
voice?: AppProviderResVoice;
|
|
795
|
+
};
|
|
796
|
+
/** @returns {AppProviderReq} */
|
|
797
|
+
declare function AppProviderReq(): AppProviderReq;
|
|
798
|
+
type AppProviderReq = {
|
|
799
|
+
email?: AppProviderRes;
|
|
800
|
+
sms?: AppProviderRes;
|
|
801
|
+
voice?: AppProviderResVoice;
|
|
802
|
+
};
|
|
803
|
+
/** @returns {AppProviderRes} */
|
|
804
|
+
declare function AppProviderRes(): AppProviderRes;
|
|
805
|
+
type AppProviderRes = {
|
|
806
|
+
otp?: AppProviderResObj;
|
|
807
|
+
promotional?: AppProviderResObj;
|
|
808
|
+
transaction?: AppProviderResObj;
|
|
809
|
+
};
|
|
810
|
+
/** @returns {AppProviderResObj} */
|
|
811
|
+
declare function AppProviderResObj(): AppProviderResObj;
|
|
812
|
+
type AppProviderResObj = {
|
|
813
|
+
provider?: string;
|
|
814
|
+
};
|
|
815
|
+
/** @returns {AppProviderResVoice} */
|
|
816
|
+
declare function AppProviderResVoice(): AppProviderResVoice;
|
|
817
|
+
type AppProviderResVoice = {
|
|
818
|
+
otp?: AppProviderResObj;
|
|
819
|
+
transaction?: AppProviderResObj;
|
|
820
|
+
};
|
|
821
|
+
/** @returns {Audience} */
|
|
822
|
+
declare function Audience(): Audience;
|
|
823
|
+
type Audience = {
|
|
824
|
+
__v?: number;
|
|
825
|
+
_id?: string;
|
|
826
|
+
application?: string;
|
|
827
|
+
created_at?: string;
|
|
828
|
+
description?: string;
|
|
829
|
+
file_url?: string;
|
|
830
|
+
headers?: string[];
|
|
831
|
+
is_active?: boolean;
|
|
832
|
+
name?: string;
|
|
833
|
+
records_count?: number;
|
|
834
|
+
slug?: string;
|
|
835
|
+
tags?: string[];
|
|
836
|
+
type?: string;
|
|
837
|
+
updated_at?: string;
|
|
838
|
+
};
|
|
839
|
+
/** @returns {AudienceReq} */
|
|
840
|
+
declare function AudienceReq(): AudienceReq;
|
|
841
|
+
type AudienceReq = {
|
|
842
|
+
description?: string;
|
|
843
|
+
file_url?: string;
|
|
844
|
+
headers?: string[];
|
|
845
|
+
name?: string;
|
|
846
|
+
records_count?: number;
|
|
847
|
+
tags?: string[];
|
|
848
|
+
type?: string;
|
|
849
|
+
};
|
|
850
|
+
/** @returns {Audiences} */
|
|
851
|
+
declare function Audiences(): Audiences;
|
|
852
|
+
type Audiences = {
|
|
853
|
+
items?: Audience[];
|
|
854
|
+
page?: Page;
|
|
855
|
+
};
|
|
856
|
+
/** @returns {BadRequestSchema} */
|
|
857
|
+
declare function BadRequestSchema(): BadRequestSchema;
|
|
858
|
+
type BadRequestSchema = {
|
|
859
|
+
/**
|
|
860
|
+
* - Failure message.
|
|
861
|
+
*/
|
|
862
|
+
message?: string;
|
|
863
|
+
/**
|
|
864
|
+
* - Response status.
|
|
865
|
+
*/
|
|
866
|
+
status?: string;
|
|
867
|
+
};
|
|
868
|
+
/** @returns {Campaign} */
|
|
869
|
+
declare function Campaign(): Campaign;
|
|
870
|
+
type Campaign = {
|
|
871
|
+
__v?: number;
|
|
872
|
+
_id?: string;
|
|
873
|
+
application?: string;
|
|
874
|
+
created_at?: string;
|
|
875
|
+
datasource?: string;
|
|
876
|
+
description?: string;
|
|
877
|
+
email?: CampaignEmail;
|
|
878
|
+
is_active?: boolean;
|
|
879
|
+
name?: string;
|
|
880
|
+
recipient_headers?: RecipientHeaders;
|
|
881
|
+
slug?: string;
|
|
882
|
+
tags?: any[];
|
|
883
|
+
type?: string;
|
|
884
|
+
updated_at?: string;
|
|
885
|
+
};
|
|
886
|
+
/** @returns {CampaignEmail} */
|
|
887
|
+
declare function CampaignEmail(): CampaignEmail;
|
|
888
|
+
type CampaignEmail = {
|
|
889
|
+
provider?: CampignEmailProvider;
|
|
890
|
+
template?: CampaignEmailTemplate;
|
|
891
|
+
};
|
|
892
|
+
/** @returns {CampaignEmailTemplate} */
|
|
893
|
+
declare function CampaignEmailTemplate(): CampaignEmailTemplate;
|
|
894
|
+
type CampaignEmailTemplate = {
|
|
895
|
+
key?: string;
|
|
896
|
+
value?: string;
|
|
897
|
+
};
|
|
898
|
+
/** @returns {CampaignReq} */
|
|
899
|
+
declare function CampaignReq(): CampaignReq;
|
|
900
|
+
type CampaignReq = {
|
|
901
|
+
application?: string;
|
|
902
|
+
description?: string;
|
|
903
|
+
file_url?: string;
|
|
904
|
+
headers?: string[];
|
|
905
|
+
is_active?: boolean;
|
|
906
|
+
name?: string;
|
|
907
|
+
records_count?: number;
|
|
908
|
+
tags?: string[];
|
|
909
|
+
type?: string;
|
|
910
|
+
};
|
|
911
|
+
/** @returns {Campaigns} */
|
|
912
|
+
declare function Campaigns(): Campaigns;
|
|
913
|
+
type Campaigns = {
|
|
914
|
+
items?: Campaign[];
|
|
915
|
+
page?: Page;
|
|
916
|
+
};
|
|
917
|
+
/** @returns {CampignEmailProvider} */
|
|
918
|
+
declare function CampignEmailProvider(): CampignEmailProvider;
|
|
919
|
+
type CampignEmailProvider = {
|
|
920
|
+
_id?: string;
|
|
921
|
+
from_email?: string;
|
|
922
|
+
from_name?: string;
|
|
923
|
+
};
|
|
924
|
+
/** @returns {DefaultSmsProviders} */
|
|
925
|
+
declare function DefaultSmsProviders(): DefaultSmsProviders;
|
|
926
|
+
type DefaultSmsProviders = {
|
|
927
|
+
_id?: string;
|
|
928
|
+
is_default?: boolean;
|
|
929
|
+
name?: string;
|
|
930
|
+
};
|
|
931
|
+
/** @returns {DummyDatasources} */
|
|
932
|
+
declare function DummyDatasources(): DummyDatasources;
|
|
933
|
+
type DummyDatasources = {
|
|
934
|
+
id?: number;
|
|
935
|
+
name?: string;
|
|
936
|
+
};
|
|
937
|
+
/** @returns {DummyDatasourcesMeta} */
|
|
938
|
+
declare function DummyDatasourcesMeta(): DummyDatasourcesMeta;
|
|
939
|
+
type DummyDatasourcesMeta = {
|
|
940
|
+
data?: DummyDatasourcesMetaObj;
|
|
941
|
+
id?: number;
|
|
942
|
+
};
|
|
943
|
+
/** @returns {DummyDatasourcesMetaObj} */
|
|
944
|
+
declare function DummyDatasourcesMetaObj(): DummyDatasourcesMetaObj;
|
|
945
|
+
type DummyDatasourcesMetaObj = {
|
|
946
|
+
b?: number;
|
|
947
|
+
};
|
|
948
|
+
/** @returns {EmailProvider} */
|
|
949
|
+
declare function EmailProvider(): EmailProvider;
|
|
950
|
+
type EmailProvider = {
|
|
951
|
+
__v?: number;
|
|
952
|
+
_id?: string;
|
|
953
|
+
api_key?: string;
|
|
954
|
+
application?: string;
|
|
955
|
+
created_at?: string;
|
|
956
|
+
description?: string;
|
|
957
|
+
from_address?: EmailProviderReqFrom[];
|
|
958
|
+
name?: string;
|
|
959
|
+
provider?: string;
|
|
960
|
+
slug?: string;
|
|
961
|
+
type?: string;
|
|
962
|
+
updated_at?: string;
|
|
963
|
+
};
|
|
964
|
+
/** @returns {EmailProviderReq} */
|
|
965
|
+
declare function EmailProviderReq(): EmailProviderReq;
|
|
966
|
+
type EmailProviderReq = {
|
|
967
|
+
api_key?: string;
|
|
968
|
+
description?: string;
|
|
969
|
+
from_address?: EmailProviderReqFrom[];
|
|
970
|
+
name?: string;
|
|
971
|
+
provider?: string;
|
|
972
|
+
type?: string;
|
|
973
|
+
};
|
|
974
|
+
/** @returns {EmailProviderReqFrom} */
|
|
975
|
+
declare function EmailProviderReqFrom(): EmailProviderReqFrom;
|
|
976
|
+
type EmailProviderReqFrom = {
|
|
977
|
+
email?: string;
|
|
978
|
+
is_default?: boolean;
|
|
979
|
+
name?: string;
|
|
980
|
+
};
|
|
981
|
+
/** @returns {EmailProviders} */
|
|
982
|
+
declare function EmailProviders(): EmailProviders;
|
|
983
|
+
type EmailProviders = {
|
|
984
|
+
items?: EmailProvider[];
|
|
985
|
+
page?: Page;
|
|
986
|
+
};
|
|
987
|
+
/** @returns {EmailTemplate} */
|
|
988
|
+
declare function EmailTemplate(): EmailTemplate;
|
|
989
|
+
type EmailTemplate = {
|
|
990
|
+
__v?: number;
|
|
991
|
+
_id?: string;
|
|
992
|
+
application?: string;
|
|
993
|
+
attachments?: number[];
|
|
994
|
+
category?: string;
|
|
995
|
+
created_at?: string;
|
|
996
|
+
description?: string;
|
|
997
|
+
editor_meta?: string;
|
|
998
|
+
editor_type?: string;
|
|
999
|
+
from_name?: string;
|
|
1000
|
+
headers?: EmailTemplateHeaders[];
|
|
1001
|
+
html?: TemplateAndType;
|
|
1002
|
+
is_internal?: boolean;
|
|
1003
|
+
is_system?: boolean;
|
|
1004
|
+
name?: string;
|
|
1005
|
+
priority?: string;
|
|
1006
|
+
published?: boolean;
|
|
1007
|
+
reply_to?: string;
|
|
1008
|
+
slug?: string;
|
|
1009
|
+
static_bcc?: string[];
|
|
1010
|
+
static_cc?: string[];
|
|
1011
|
+
static_to?: string[];
|
|
1012
|
+
subject?: TemplateAndType;
|
|
1013
|
+
tags?: string[];
|
|
1014
|
+
template_variables?: any;
|
|
1015
|
+
text?: TemplateAndType;
|
|
1016
|
+
updated_at?: string;
|
|
1017
|
+
url_shorten?: EnabledObj;
|
|
1018
|
+
};
|
|
1019
|
+
/** @returns {EmailTemplateHeaders} */
|
|
1020
|
+
declare function EmailTemplateHeaders(): EmailTemplateHeaders;
|
|
1021
|
+
type EmailTemplateHeaders = {
|
|
1022
|
+
key?: string;
|
|
1023
|
+
value?: string;
|
|
1024
|
+
};
|
|
1025
|
+
/** @returns {EmailTemplateKeys} */
|
|
1026
|
+
declare function EmailTemplateKeys(): EmailTemplateKeys;
|
|
1027
|
+
type EmailTemplateKeys = {
|
|
1028
|
+
bcc?: string;
|
|
1029
|
+
cc?: string;
|
|
1030
|
+
to?: string;
|
|
1031
|
+
};
|
|
1032
|
+
/** @returns {EmailTemplateReq} */
|
|
1033
|
+
declare function EmailTemplateReq(): EmailTemplateReq;
|
|
1034
|
+
type EmailTemplateReq = {
|
|
1035
|
+
attachments?: number[];
|
|
1036
|
+
description?: string;
|
|
1037
|
+
editor_meta?: string;
|
|
1038
|
+
editor_type?: string;
|
|
1039
|
+
from_name?: string;
|
|
1040
|
+
headers?: EmailTemplateHeaders[];
|
|
1041
|
+
html?: TemplateAndType;
|
|
1042
|
+
keys?: EmailTemplateKeys;
|
|
1043
|
+
name: string;
|
|
1044
|
+
priority?: string;
|
|
1045
|
+
published?: boolean;
|
|
1046
|
+
reply_to?: string;
|
|
1047
|
+
static_bcc?: string[];
|
|
1048
|
+
static_cc?: string[];
|
|
1049
|
+
static_to?: string[];
|
|
1050
|
+
subject?: TemplateAndType;
|
|
1051
|
+
tags?: string[];
|
|
1052
|
+
template_variables?: any;
|
|
1053
|
+
text?: TemplateAndType;
|
|
1054
|
+
};
|
|
1055
|
+
/** @returns {EmailTemplates} */
|
|
1056
|
+
declare function EmailTemplates(): EmailTemplates;
|
|
1057
|
+
type EmailTemplates = {
|
|
1058
|
+
items?: EmailTemplate[];
|
|
1059
|
+
page?: Page;
|
|
1060
|
+
};
|
|
1061
|
+
/** @returns {EnabledObj} */
|
|
1062
|
+
declare function EnabledObj(): EnabledObj;
|
|
1063
|
+
type EnabledObj = {
|
|
1064
|
+
enabled?: boolean;
|
|
1065
|
+
};
|
|
1066
|
+
/** @returns {EngineRequest} */
|
|
1067
|
+
declare function EngineRequest(): EngineRequest;
|
|
1068
|
+
type EngineRequest = {
|
|
1069
|
+
meta?: MetaStructure;
|
|
1070
|
+
payload?: PayloadStructure;
|
|
1071
|
+
};
|
|
1072
|
+
/** @returns {EngineResponse} */
|
|
1073
|
+
declare function EngineResponse(): EngineResponse;
|
|
1074
|
+
type EngineResponse = {
|
|
1075
|
+
success?: boolean;
|
|
1076
|
+
};
|
|
1077
|
+
/** @returns {EventSubscription} */
|
|
1078
|
+
declare function EventSubscription(): EventSubscription;
|
|
1079
|
+
type EventSubscription = {
|
|
1080
|
+
__v?: number;
|
|
1081
|
+
_id?: string;
|
|
1082
|
+
application?: string;
|
|
1083
|
+
created_at?: string;
|
|
1084
|
+
event?: string;
|
|
1085
|
+
is_default?: boolean;
|
|
1086
|
+
slug?: string;
|
|
1087
|
+
template?: EventSubscriptionTemplate;
|
|
1088
|
+
updated_at?: string;
|
|
1089
|
+
};
|
|
1090
|
+
/** @returns {EventSubscriptions} */
|
|
1091
|
+
declare function EventSubscriptions(): EventSubscriptions;
|
|
1092
|
+
type EventSubscriptions = {
|
|
1093
|
+
items?: EventSubscription[];
|
|
1094
|
+
page?: Page;
|
|
1095
|
+
};
|
|
1096
|
+
/** @returns {EventSubscriptionTemplate} */
|
|
1097
|
+
declare function EventSubscriptionTemplate(): EventSubscriptionTemplate;
|
|
1098
|
+
type EventSubscriptionTemplate = {
|
|
1099
|
+
email?: EventSubscriptionTemplateEmail;
|
|
1100
|
+
sms?: EventSubscriptionTemplateSms;
|
|
1101
|
+
};
|
|
1102
|
+
/** @returns {EventSubscriptionTemplateEmail} */
|
|
1103
|
+
declare function EventSubscriptionTemplateEmail(): EventSubscriptionTemplateEmail;
|
|
1104
|
+
type EventSubscriptionTemplateEmail = {
|
|
1105
|
+
subscribed?: boolean;
|
|
1106
|
+
template?: string;
|
|
1107
|
+
};
|
|
1108
|
+
/** @returns {EventSubscriptionTemplateSms} */
|
|
1109
|
+
declare function EventSubscriptionTemplateSms(): EventSubscriptionTemplateSms;
|
|
1110
|
+
type EventSubscriptionTemplateSms = {
|
|
1111
|
+
subscribed?: boolean;
|
|
1112
|
+
template?: string;
|
|
1113
|
+
};
|
|
1114
|
+
/** @returns {GenericDelete} */
|
|
1115
|
+
declare function GenericDelete(): GenericDelete;
|
|
1116
|
+
type GenericDelete = {
|
|
1117
|
+
acknowledged?: boolean;
|
|
1118
|
+
affected?: number;
|
|
1119
|
+
message?: string;
|
|
1120
|
+
operation?: string;
|
|
1121
|
+
};
|
|
1122
|
+
/** @returns {GenericError} */
|
|
1123
|
+
declare function GenericError(): GenericError;
|
|
1124
|
+
type GenericError = {
|
|
1125
|
+
message?: Message;
|
|
1126
|
+
sentry?: string;
|
|
1127
|
+
};
|
|
1128
|
+
/** @returns {GetNRecordsCsvReq} */
|
|
1129
|
+
declare function GetNRecordsCsvReq(): GetNRecordsCsvReq;
|
|
1130
|
+
type GetNRecordsCsvReq = {
|
|
1131
|
+
count?: number;
|
|
1132
|
+
header?: boolean;
|
|
1133
|
+
url?: string;
|
|
1134
|
+
};
|
|
1135
|
+
/** @returns {GetNRecordsCsvRes} */
|
|
1136
|
+
declare function GetNRecordsCsvRes(): GetNRecordsCsvRes;
|
|
1137
|
+
type GetNRecordsCsvRes = {
|
|
1138
|
+
items?: GetNRecordsCsvResItems[];
|
|
1139
|
+
};
|
|
1140
|
+
/** @returns {GetNRecordsCsvResItems} */
|
|
1141
|
+
declare function GetNRecordsCsvResItems(): GetNRecordsCsvResItems;
|
|
1142
|
+
type GetNRecordsCsvResItems = {
|
|
1143
|
+
email?: string;
|
|
1144
|
+
firstname?: string;
|
|
1145
|
+
lastname?: string;
|
|
1146
|
+
orderid?: string;
|
|
1147
|
+
phone_number?: string;
|
|
1148
|
+
};
|
|
1149
|
+
/** @returns {GetStats} */
|
|
1150
|
+
declare function GetStats(): GetStats;
|
|
1151
|
+
type GetStats = {
|
|
1152
|
+
items?: Stats[];
|
|
1153
|
+
};
|
|
1154
|
+
/** @returns {GlobalProviders} */
|
|
1155
|
+
declare function GlobalProviders(): GlobalProviders;
|
|
1156
|
+
type GlobalProviders = {
|
|
1157
|
+
email?: GlobalProvidersResObj[];
|
|
1158
|
+
sms?: GlobalProvidersResObj[];
|
|
1159
|
+
voice?: GlobalProvidersResObj[];
|
|
1160
|
+
};
|
|
1161
|
+
/** @returns {GlobalProvidersResObj} */
|
|
1162
|
+
declare function GlobalProvidersResObj(): GlobalProvidersResObj;
|
|
1163
|
+
type GlobalProvidersResObj = {
|
|
1164
|
+
_id?: string;
|
|
1165
|
+
name?: string;
|
|
1166
|
+
};
|
|
1167
|
+
/** @returns {GlobalVariablesGetResponse} */
|
|
1168
|
+
declare function GlobalVariablesGetResponse(): GlobalVariablesGetResponse;
|
|
1169
|
+
type GlobalVariablesGetResponse = {
|
|
1170
|
+
editable?: any;
|
|
1171
|
+
read_only?: any;
|
|
1172
|
+
};
|
|
1173
|
+
/** @returns {GlobalVariablesPostResponse} */
|
|
1174
|
+
declare function GlobalVariablesPostResponse(): GlobalVariablesPostResponse;
|
|
1175
|
+
type GlobalVariablesPostResponse = {
|
|
1176
|
+
_id?: string;
|
|
1177
|
+
application?: string;
|
|
1178
|
+
category?: string;
|
|
1179
|
+
created_at?: string;
|
|
1180
|
+
global_variables?: any;
|
|
1181
|
+
};
|
|
1182
|
+
/** @returns {GlobalVariablesReq} */
|
|
1183
|
+
declare function GlobalVariablesReq(): GlobalVariablesReq;
|
|
1184
|
+
type GlobalVariablesReq = {
|
|
1185
|
+
global_variables?: any;
|
|
1186
|
+
};
|
|
1187
|
+
/** @returns {Job} */
|
|
1188
|
+
declare function Job(): Job;
|
|
1189
|
+
type Job = {
|
|
1190
|
+
__v?: number;
|
|
1191
|
+
_id?: string;
|
|
1192
|
+
application?: string;
|
|
1193
|
+
campaign?: string;
|
|
1194
|
+
completed?: boolean;
|
|
1195
|
+
created_at?: string;
|
|
1196
|
+
is_active?: boolean;
|
|
1197
|
+
updated_at?: string;
|
|
1198
|
+
};
|
|
1199
|
+
/** @returns {JobLog} */
|
|
1200
|
+
declare function JobLog(): JobLog;
|
|
1201
|
+
type JobLog = {
|
|
1202
|
+
__v?: number;
|
|
1203
|
+
_id?: string;
|
|
1204
|
+
campaign?: string;
|
|
1205
|
+
created_at?: string;
|
|
1206
|
+
imported?: any;
|
|
1207
|
+
job?: string;
|
|
1208
|
+
processed?: any;
|
|
1209
|
+
updated_at?: string;
|
|
1210
|
+
};
|
|
1211
|
+
/** @returns {JobLogs} */
|
|
1212
|
+
declare function JobLogs(): JobLogs;
|
|
1213
|
+
type JobLogs = {
|
|
1214
|
+
items?: JobLog[];
|
|
1215
|
+
page?: Page;
|
|
1216
|
+
};
|
|
1217
|
+
/** @returns {Jobs} */
|
|
1218
|
+
declare function Jobs(): Jobs;
|
|
1219
|
+
type Jobs = {
|
|
1220
|
+
items?: Job[];
|
|
1221
|
+
page?: Page;
|
|
1222
|
+
};
|
|
1223
|
+
/** @returns {Log} */
|
|
1224
|
+
declare function Log(): Log;
|
|
1225
|
+
type Log = {
|
|
1226
|
+
_id?: string;
|
|
1227
|
+
application?: string;
|
|
1228
|
+
created_at?: string;
|
|
1229
|
+
data?: any;
|
|
1230
|
+
email?: LogEmail;
|
|
1231
|
+
expire_at?: string;
|
|
1232
|
+
meta?: LogMeta;
|
|
1233
|
+
pushnotification?: LogPushnotification;
|
|
1234
|
+
service?: string;
|
|
1235
|
+
status?: string;
|
|
1236
|
+
step?: string;
|
|
1237
|
+
};
|
|
1238
|
+
/** @returns {LogEmail} */
|
|
1239
|
+
declare function LogEmail(): LogEmail;
|
|
1240
|
+
type LogEmail = {
|
|
1241
|
+
template?: string;
|
|
1242
|
+
};
|
|
1243
|
+
/** @returns {LogMeta} */
|
|
1244
|
+
declare function LogMeta(): LogMeta;
|
|
1245
|
+
type LogMeta = {
|
|
1246
|
+
identifier?: string;
|
|
1247
|
+
key?: string;
|
|
1248
|
+
offset?: string;
|
|
1249
|
+
partition?: string;
|
|
1250
|
+
topic?: string;
|
|
1251
|
+
type?: string;
|
|
1252
|
+
};
|
|
1253
|
+
/** @returns {LogPushnotification} */
|
|
1254
|
+
declare function LogPushnotification(): LogPushnotification;
|
|
1255
|
+
type LogPushnotification = {
|
|
1256
|
+
pushtokens?: string[];
|
|
1257
|
+
};
|
|
1258
|
+
/** @returns {Logs} */
|
|
1259
|
+
declare function Logs(): Logs;
|
|
1260
|
+
type Logs = {
|
|
1261
|
+
items?: Log[];
|
|
1262
|
+
page?: Page;
|
|
1263
|
+
};
|
|
1264
|
+
/** @returns {Message} */
|
|
1265
|
+
declare function Message(): Message;
|
|
1266
|
+
type Message = {
|
|
1267
|
+
info?: string;
|
|
1268
|
+
message?: string;
|
|
1269
|
+
operation?: string;
|
|
1270
|
+
success?: boolean;
|
|
1271
|
+
};
|
|
1272
|
+
/** @returns {metaObj} */
|
|
1273
|
+
declare function metaObj(): metaObj;
|
|
1274
|
+
type metaObj = {
|
|
1275
|
+
is_system?: boolean;
|
|
1276
|
+
template?: string;
|
|
1277
|
+
type?: string;
|
|
1278
|
+
};
|
|
1279
|
+
/** @returns {MetaStructure} */
|
|
1280
|
+
declare function MetaStructure(): MetaStructure;
|
|
1281
|
+
type MetaStructure = {
|
|
1282
|
+
action?: string;
|
|
1283
|
+
job_type?: string;
|
|
1284
|
+
timestamp?: string;
|
|
1285
|
+
trace?: string;
|
|
1286
|
+
};
|
|
1287
|
+
/** @returns {NotFound} */
|
|
1288
|
+
declare function NotFound(): NotFound;
|
|
1289
|
+
type NotFound = {
|
|
1290
|
+
/**
|
|
1291
|
+
* - Failure message.
|
|
1292
|
+
*/
|
|
1293
|
+
message?: string;
|
|
1294
|
+
};
|
|
1295
|
+
/** @returns {Notification} */
|
|
1296
|
+
declare function Notification(): Notification;
|
|
1297
|
+
type Notification = {
|
|
1298
|
+
body?: string;
|
|
1299
|
+
click_action?: string;
|
|
1300
|
+
deeplink?: string;
|
|
1301
|
+
icon?: string;
|
|
1302
|
+
subtitle?: string;
|
|
1303
|
+
title?: string;
|
|
1304
|
+
};
|
|
1305
|
+
/** @returns {Page} */
|
|
1306
|
+
declare function Page(): Page;
|
|
1307
|
+
type Page = {
|
|
1308
|
+
current?: number;
|
|
1309
|
+
has_next?: boolean;
|
|
1310
|
+
has_previous?: boolean;
|
|
1311
|
+
item_total?: number;
|
|
1312
|
+
next_id?: string;
|
|
1313
|
+
size?: number;
|
|
1314
|
+
type: string;
|
|
1315
|
+
};
|
|
1316
|
+
/** @returns {PayloadEmailProviderStructure} */
|
|
1317
|
+
declare function PayloadEmailProviderStructure(): PayloadEmailProviderStructure;
|
|
1318
|
+
type PayloadEmailProviderStructure = {
|
|
1319
|
+
_id?: string;
|
|
1320
|
+
};
|
|
1321
|
+
/** @returns {PayloadEmailStructure} */
|
|
1322
|
+
declare function PayloadEmailStructure(): PayloadEmailStructure;
|
|
1323
|
+
type PayloadEmailStructure = {
|
|
1324
|
+
provider?: PayloadEmailProviderStructure;
|
|
1325
|
+
template?: PayloadEmailTemplateStructure;
|
|
1326
|
+
};
|
|
1327
|
+
/** @returns {PayloadEmailTemplateStructure} */
|
|
1328
|
+
declare function PayloadEmailTemplateStructure(): PayloadEmailTemplateStructure;
|
|
1329
|
+
type PayloadEmailTemplateStructure = {
|
|
1330
|
+
key?: string;
|
|
1331
|
+
value?: any;
|
|
1332
|
+
};
|
|
1333
|
+
/** @returns {PayloadSmsProviderStructure} */
|
|
1334
|
+
declare function PayloadSmsProviderStructure(): PayloadSmsProviderStructure;
|
|
1335
|
+
type PayloadSmsProviderStructure = {
|
|
1336
|
+
_id?: string;
|
|
1337
|
+
};
|
|
1338
|
+
/** @returns {PayloadSmsStructure} */
|
|
1339
|
+
declare function PayloadSmsStructure(): PayloadSmsStructure;
|
|
1340
|
+
type PayloadSmsStructure = {
|
|
1341
|
+
provider?: PayloadSmsProviderStructure;
|
|
1342
|
+
template?: PayloadSmsTemplateStructure;
|
|
1343
|
+
};
|
|
1344
|
+
/** @returns {PayloadSmsTemplateStructure} */
|
|
1345
|
+
declare function PayloadSmsTemplateStructure(): PayloadSmsTemplateStructure;
|
|
1346
|
+
type PayloadSmsTemplateStructure = {
|
|
1347
|
+
key?: string;
|
|
1348
|
+
value?: any;
|
|
1349
|
+
};
|
|
1350
|
+
/** @returns {PayloadStructure} */
|
|
1351
|
+
declare function PayloadStructure(): PayloadStructure;
|
|
1352
|
+
type PayloadStructure = {
|
|
1353
|
+
application?: string;
|
|
1354
|
+
data?: any[];
|
|
1355
|
+
email?: PayloadEmailStructure;
|
|
1356
|
+
sms?: PayloadSmsStructure;
|
|
1357
|
+
};
|
|
1358
|
+
/** @returns {RecipientHeaders} */
|
|
1359
|
+
declare function RecipientHeaders(): RecipientHeaders;
|
|
1360
|
+
type RecipientHeaders = {
|
|
1361
|
+
email?: string;
|
|
1362
|
+
};
|
|
1363
|
+
/** @returns {SendOtpCommsReq} */
|
|
1364
|
+
declare function SendOtpCommsReq(): SendOtpCommsReq;
|
|
1365
|
+
type SendOtpCommsReq = {
|
|
1366
|
+
data?: SendOtpCommsReqData;
|
|
1367
|
+
email?: SendOtpCommsReqEmail;
|
|
1368
|
+
sms?: SendOtpCommsReqSms;
|
|
1369
|
+
};
|
|
1370
|
+
/** @returns {SendOtpCommsReqData} */
|
|
1371
|
+
declare function SendOtpCommsReqData(): SendOtpCommsReqData;
|
|
1372
|
+
type SendOtpCommsReqData = {
|
|
1373
|
+
country_code?: string;
|
|
1374
|
+
mobile?: string;
|
|
1375
|
+
send_same_otp_to_channel?: boolean;
|
|
1376
|
+
to?: string;
|
|
1377
|
+
};
|
|
1378
|
+
/** @returns {SendOtpCommsReqEmail} */
|
|
1379
|
+
declare function SendOtpCommsReqEmail(): SendOtpCommsReqEmail;
|
|
1380
|
+
type SendOtpCommsReqEmail = {
|
|
1381
|
+
expiry?: number;
|
|
1382
|
+
otp_length?: number;
|
|
1383
|
+
template?: SendOtpEmailCommsTemplate;
|
|
1384
|
+
};
|
|
1385
|
+
/** @returns {SendOtpCommsReqSms} */
|
|
1386
|
+
declare function SendOtpCommsReqSms(): SendOtpCommsReqSms;
|
|
1387
|
+
type SendOtpCommsReqSms = {
|
|
1388
|
+
expiry?: number;
|
|
1389
|
+
otp_length?: number;
|
|
1390
|
+
provider?: SendOtpSmsCommsProvider;
|
|
1391
|
+
template?: SendOtpSmsCommsTemplate;
|
|
1392
|
+
};
|
|
1393
|
+
/** @returns {SendOtpCommsRes} */
|
|
1394
|
+
declare function SendOtpCommsRes(): SendOtpCommsRes;
|
|
1395
|
+
type SendOtpCommsRes = {
|
|
1396
|
+
email?: SendOtpCommsResEmail;
|
|
1397
|
+
sms?: SendOtpCommsResSms;
|
|
1398
|
+
};
|
|
1399
|
+
/** @returns {SendOtpCommsResEmail} */
|
|
1400
|
+
declare function SendOtpCommsResEmail(): SendOtpCommsResEmail;
|
|
1401
|
+
type SendOtpCommsResEmail = {
|
|
1402
|
+
message?: string;
|
|
1403
|
+
request_id?: string;
|
|
1404
|
+
resend_timer?: number;
|
|
1405
|
+
success?: boolean;
|
|
1406
|
+
to?: string;
|
|
1407
|
+
};
|
|
1408
|
+
/** @returns {SendOtpCommsResSms} */
|
|
1409
|
+
declare function SendOtpCommsResSms(): SendOtpCommsResSms;
|
|
1410
|
+
type SendOtpCommsResSms = {
|
|
1411
|
+
country_code?: string;
|
|
1412
|
+
message?: string;
|
|
1413
|
+
mobile?: string;
|
|
1414
|
+
request_id?: string;
|
|
1415
|
+
resend_timer?: number;
|
|
1416
|
+
success?: boolean;
|
|
1417
|
+
};
|
|
1418
|
+
/** @returns {SendOtpEmailCommsTemplate} */
|
|
1419
|
+
declare function SendOtpEmailCommsTemplate(): SendOtpEmailCommsTemplate;
|
|
1420
|
+
type SendOtpEmailCommsTemplate = {
|
|
1421
|
+
key?: string;
|
|
1422
|
+
value?: any;
|
|
1423
|
+
};
|
|
1424
|
+
/** @returns {SendOtpSmsCommsProvider} */
|
|
1425
|
+
declare function SendOtpSmsCommsProvider(): SendOtpSmsCommsProvider;
|
|
1426
|
+
type SendOtpSmsCommsProvider = {
|
|
1427
|
+
_id?: string;
|
|
1428
|
+
slug?: string;
|
|
1429
|
+
};
|
|
1430
|
+
/** @returns {SendOtpSmsCommsTemplate} */
|
|
1431
|
+
declare function SendOtpSmsCommsTemplate(): SendOtpSmsCommsTemplate;
|
|
1432
|
+
type SendOtpSmsCommsTemplate = {
|
|
1433
|
+
key?: string;
|
|
1434
|
+
value?: any;
|
|
1435
|
+
};
|
|
1436
|
+
/** @returns {SmsProvider} */
|
|
1437
|
+
declare function SmsProvider(): SmsProvider;
|
|
1438
|
+
type SmsProvider = {
|
|
1439
|
+
__v?: number;
|
|
1440
|
+
_id?: string;
|
|
1441
|
+
application?: string;
|
|
1442
|
+
authkey?: string;
|
|
1443
|
+
created_at?: string;
|
|
1444
|
+
description?: string;
|
|
1445
|
+
name?: string;
|
|
1446
|
+
provider?: string;
|
|
1447
|
+
rpt?: number;
|
|
1448
|
+
sender?: string;
|
|
1449
|
+
slug?: string;
|
|
1450
|
+
type?: string;
|
|
1451
|
+
updated_at?: string;
|
|
1452
|
+
username?: string;
|
|
1453
|
+
};
|
|
1454
|
+
/** @returns {SmsProviderReq} */
|
|
1455
|
+
declare function SmsProviderReq(): SmsProviderReq;
|
|
1456
|
+
type SmsProviderReq = {
|
|
1457
|
+
/**
|
|
1458
|
+
* - The api_key for the test.
|
|
1459
|
+
*/
|
|
1460
|
+
api_key?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* - The apikey for the test.
|
|
1463
|
+
*/
|
|
1464
|
+
apikey?: string;
|
|
1465
|
+
authkey?: string;
|
|
1466
|
+
description?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* - The entity ID for the test.
|
|
1469
|
+
*/
|
|
1470
|
+
entity_id?: string;
|
|
1471
|
+
/**
|
|
1472
|
+
* - The entity ID for the test.
|
|
1473
|
+
*/
|
|
1474
|
+
entityid?: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* - The feed ID for the test.
|
|
1477
|
+
*/
|
|
1478
|
+
feedid?: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* - The host for the test.
|
|
1481
|
+
*/
|
|
1482
|
+
host?: string;
|
|
1483
|
+
name?: string;
|
|
1484
|
+
/**
|
|
1485
|
+
* - Whether to override Do Not Disturb.
|
|
1486
|
+
*/
|
|
1487
|
+
override_dnd?: boolean;
|
|
1488
|
+
/**
|
|
1489
|
+
* - The password for the test.
|
|
1490
|
+
*/
|
|
1491
|
+
password?: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* - The port for the test.
|
|
1494
|
+
*/
|
|
1495
|
+
port?: number;
|
|
1496
|
+
provider?: string;
|
|
1497
|
+
sender?: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* - The sender ID for the test.
|
|
1500
|
+
*/
|
|
1501
|
+
sender_id?: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* - The sender ID for the test.
|
|
1504
|
+
*/
|
|
1505
|
+
senderid?: string;
|
|
1506
|
+
type?: string;
|
|
1507
|
+
username?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* - The version ID for the test.
|
|
1510
|
+
*/
|
|
1511
|
+
version_id?: number;
|
|
1512
|
+
};
|
|
1513
|
+
/** @returns {SmsProviders} */
|
|
1514
|
+
declare function SmsProviders(): SmsProviders;
|
|
1515
|
+
type SmsProviders = {
|
|
1516
|
+
items?: SmsProvider[];
|
|
1517
|
+
page?: Page;
|
|
1518
|
+
};
|
|
1519
|
+
/** @returns {SmsTemplate} */
|
|
1520
|
+
declare function SmsTemplate(): SmsTemplate;
|
|
1521
|
+
type SmsTemplate = {
|
|
1522
|
+
__v?: number;
|
|
1523
|
+
_id?: string;
|
|
1524
|
+
application?: string;
|
|
1525
|
+
category?: string;
|
|
1526
|
+
created_at?: string;
|
|
1527
|
+
description?: string;
|
|
1528
|
+
is_internal?: boolean;
|
|
1529
|
+
is_system?: boolean;
|
|
1530
|
+
message?: SmsTemplateMessage;
|
|
1531
|
+
meta?: metaObj;
|
|
1532
|
+
name?: string;
|
|
1533
|
+
priority?: string;
|
|
1534
|
+
published?: boolean;
|
|
1535
|
+
slug?: string;
|
|
1536
|
+
tags?: string[];
|
|
1537
|
+
template_id?: string;
|
|
1538
|
+
template_variables?: any;
|
|
1539
|
+
updated_at?: string;
|
|
1540
|
+
url_shorten?: EnabledObj;
|
|
1541
|
+
};
|
|
1542
|
+
/** @returns {SmsTemplateMessage} */
|
|
1543
|
+
declare function SmsTemplateMessage(): SmsTemplateMessage;
|
|
1544
|
+
type SmsTemplateMessage = {
|
|
1545
|
+
template?: string;
|
|
1546
|
+
template_type?: string;
|
|
1547
|
+
};
|
|
1548
|
+
/** @returns {SmsTemplateReq} */
|
|
1549
|
+
declare function SmsTemplateReq(): SmsTemplateReq;
|
|
1550
|
+
type SmsTemplateReq = {
|
|
1551
|
+
description?: string;
|
|
1552
|
+
message?: SmsTemplateMessage;
|
|
1553
|
+
meta?: metaObj;
|
|
1554
|
+
name: string;
|
|
1555
|
+
priority?: string;
|
|
1556
|
+
published?: boolean;
|
|
1557
|
+
template_id?: string;
|
|
1558
|
+
template_variables?: any;
|
|
1559
|
+
};
|
|
1560
|
+
/** @returns {SmsTemplates} */
|
|
1561
|
+
declare function SmsTemplates(): SmsTemplates;
|
|
1562
|
+
type SmsTemplates = {
|
|
1563
|
+
items?: SmsTemplate[];
|
|
1564
|
+
page?: Page;
|
|
1565
|
+
};
|
|
1566
|
+
/** @returns {Stats} */
|
|
1567
|
+
declare function Stats(): Stats;
|
|
1568
|
+
type Stats = {
|
|
1569
|
+
_id?: string;
|
|
1570
|
+
imported?: any;
|
|
1571
|
+
processed?: any;
|
|
1572
|
+
};
|
|
1573
|
+
/** @returns {StatsImported} */
|
|
1574
|
+
declare function StatsImported(): StatsImported;
|
|
1575
|
+
type StatsImported = {
|
|
1576
|
+
count?: number;
|
|
1577
|
+
};
|
|
1578
|
+
/** @returns {StatsProcessed} */
|
|
1579
|
+
declare function StatsProcessed(): StatsProcessed;
|
|
1580
|
+
type StatsProcessed = {
|
|
1581
|
+
email?: StatsProcessedEmail;
|
|
1582
|
+
sms?: StatsProcessedSms;
|
|
1583
|
+
};
|
|
1584
|
+
/** @returns {StatsProcessedEmail} */
|
|
1585
|
+
declare function StatsProcessedEmail(): StatsProcessedEmail;
|
|
1586
|
+
type StatsProcessedEmail = {
|
|
1587
|
+
failed?: number;
|
|
1588
|
+
success?: number;
|
|
1589
|
+
suppressed?: number;
|
|
1590
|
+
};
|
|
1591
|
+
/** @returns {StatsProcessedSms} */
|
|
1592
|
+
declare function StatsProcessedSms(): StatsProcessedSms;
|
|
1593
|
+
type StatsProcessedSms = {
|
|
1594
|
+
failed?: number;
|
|
1595
|
+
success?: number;
|
|
1596
|
+
suppressed?: number;
|
|
1597
|
+
};
|
|
1598
|
+
/** @returns {SystemEmailTemplate} */
|
|
1599
|
+
declare function SystemEmailTemplate(): SystemEmailTemplate;
|
|
1600
|
+
type SystemEmailTemplate = {
|
|
1601
|
+
__v?: number;
|
|
1602
|
+
_id?: string;
|
|
1603
|
+
attachments?: number[];
|
|
1604
|
+
category?: string;
|
|
1605
|
+
created_at?: string;
|
|
1606
|
+
description?: string;
|
|
1607
|
+
headers?: EmailTemplateHeaders[];
|
|
1608
|
+
html?: TemplateAndType;
|
|
1609
|
+
is_internal?: boolean;
|
|
1610
|
+
is_system?: boolean;
|
|
1611
|
+
name?: string;
|
|
1612
|
+
priority?: string;
|
|
1613
|
+
published?: boolean;
|
|
1614
|
+
slug?: string;
|
|
1615
|
+
static_bcc?: string[];
|
|
1616
|
+
static_cc?: string[];
|
|
1617
|
+
static_to?: string[];
|
|
1618
|
+
subject?: TemplateAndType;
|
|
1619
|
+
tags?: string[];
|
|
1620
|
+
template_variables?: any;
|
|
1621
|
+
text?: TemplateAndType;
|
|
1622
|
+
updated_at?: string;
|
|
1623
|
+
url_shorten?: EnabledObj;
|
|
1624
|
+
};
|
|
1625
|
+
/** @returns {SystemEmailTemplates} */
|
|
1626
|
+
declare function SystemEmailTemplates(): SystemEmailTemplates;
|
|
1627
|
+
type SystemEmailTemplates = {
|
|
1628
|
+
items?: SystemEmailTemplate[];
|
|
1629
|
+
};
|
|
1630
|
+
/** @returns {SystemNotification} */
|
|
1631
|
+
declare function SystemNotification(): SystemNotification;
|
|
1632
|
+
type SystemNotification = {
|
|
1633
|
+
_id?: string;
|
|
1634
|
+
created_at?: string;
|
|
1635
|
+
group?: string;
|
|
1636
|
+
notification?: Notification;
|
|
1637
|
+
settings?: SystemNotificationUser;
|
|
1638
|
+
user?: SystemNotificationUser;
|
|
1639
|
+
};
|
|
1640
|
+
/** @returns {SystemNotifications} */
|
|
1641
|
+
declare function SystemNotifications(): SystemNotifications;
|
|
1642
|
+
type SystemNotifications = {
|
|
1643
|
+
items?: SystemNotification[];
|
|
1644
|
+
last_read_anchor?: number;
|
|
1645
|
+
page?: Page;
|
|
1646
|
+
};
|
|
1647
|
+
/** @returns {SystemNotificationUser} */
|
|
1648
|
+
declare function SystemNotificationUser(): SystemNotificationUser;
|
|
1649
|
+
type SystemNotificationUser = {
|
|
1650
|
+
type?: string;
|
|
1651
|
+
value?: string;
|
|
1652
|
+
};
|
|
1653
|
+
/** @returns {SystemSmsTemplates} */
|
|
1654
|
+
declare function SystemSmsTemplates(): SystemSmsTemplates;
|
|
1655
|
+
type SystemSmsTemplates = {
|
|
1656
|
+
__v?: number;
|
|
1657
|
+
_id?: string;
|
|
1658
|
+
category?: string;
|
|
1659
|
+
created_at?: string;
|
|
1660
|
+
description?: string;
|
|
1661
|
+
is_internal?: boolean;
|
|
1662
|
+
is_system?: boolean;
|
|
1663
|
+
message?: SmsTemplateMessage;
|
|
1664
|
+
name?: string;
|
|
1665
|
+
priority?: string;
|
|
1666
|
+
published?: boolean;
|
|
1667
|
+
slug?: string;
|
|
1668
|
+
tags?: string[];
|
|
1669
|
+
template_id?: string;
|
|
1670
|
+
template_variables?: any;
|
|
1671
|
+
updated_at?: string;
|
|
1672
|
+
url_shorten?: EnabledObj;
|
|
1673
|
+
};
|
|
1674
|
+
/** @returns {TemplateAndType} */
|
|
1675
|
+
declare function TemplateAndType(): TemplateAndType;
|
|
1676
|
+
type TemplateAndType = {
|
|
1677
|
+
template?: string;
|
|
1678
|
+
template_type?: string;
|
|
1679
|
+
};
|
|
1680
|
+
/** @returns {TriggerJobRequest} */
|
|
1681
|
+
declare function TriggerJobRequest(): TriggerJobRequest;
|
|
1682
|
+
type TriggerJobRequest = {
|
|
1683
|
+
job_id?: string;
|
|
1684
|
+
};
|
|
1685
|
+
/** @returns {TriggerJobResponse} */
|
|
1686
|
+
declare function TriggerJobResponse(): TriggerJobResponse;
|
|
1687
|
+
type TriggerJobResponse = {
|
|
1688
|
+
status?: number;
|
|
1689
|
+
};
|
|
1690
|
+
/** @returns {VerifyOtpCommsErrorRes} */
|
|
1691
|
+
declare function VerifyOtpCommsErrorRes(): VerifyOtpCommsErrorRes;
|
|
1692
|
+
type VerifyOtpCommsErrorRes = {
|
|
1693
|
+
message?: string;
|
|
1694
|
+
success?: boolean;
|
|
1695
|
+
};
|
|
1696
|
+
/** @returns {VerifyOtpCommsReq} */
|
|
1697
|
+
declare function VerifyOtpCommsReq(): VerifyOtpCommsReq;
|
|
1698
|
+
type VerifyOtpCommsReq = {
|
|
1699
|
+
otp?: string;
|
|
1700
|
+
request_id?: string;
|
|
1701
|
+
};
|
|
1702
|
+
/** @returns {VerifyOtpCommsSuccessRes} */
|
|
1703
|
+
declare function VerifyOtpCommsSuccessRes(): VerifyOtpCommsSuccessRes;
|
|
1704
|
+
type VerifyOtpCommsSuccessRes = {
|
|
1705
|
+
country_code?: string;
|
|
1706
|
+
message?: string;
|
|
1707
|
+
mobile?: string;
|
|
1708
|
+
success?: boolean;
|
|
1709
|
+
};
|