@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -6,7 +6,17 @@ const Webhook = require("./Webhook/WebhookPublicClient");
|
|
|
6
6
|
|
|
7
7
|
const { FDKClientValidationError } = require("../common/FDKError");
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Represents the client for the public APIs.
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
*/
|
|
9
14
|
class PublicClient {
|
|
15
|
+
/**
|
|
16
|
+
* Creates an instance of PublicClient.
|
|
17
|
+
*
|
|
18
|
+
* @param {import("./PublicConfig")} config - The configuration for the public client.
|
|
19
|
+
*/
|
|
10
20
|
constructor(config) {
|
|
11
21
|
this.config = config;
|
|
12
22
|
|
|
@@ -17,6 +27,12 @@ class PublicClient {
|
|
|
17
27
|
this.webhook = new Webhook(config);
|
|
18
28
|
}
|
|
19
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Sets the extra headers for the public client.
|
|
32
|
+
*
|
|
33
|
+
* @param {object} header - The header object to set.
|
|
34
|
+
* @throws {FDKClientValidationError} When the provided header is not an object.
|
|
35
|
+
*/
|
|
20
36
|
setExtraHeaders(header) {
|
|
21
37
|
if (typeof header === "object") {
|
|
22
38
|
this.config.extraHeaders.push(header);
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
export = PublicConfig;
|
|
2
|
+
/**
|
|
3
|
+
* Represents the configuration for the public APIs.
|
|
4
|
+
*
|
|
5
|
+
* @class
|
|
6
|
+
*/
|
|
2
7
|
declare class PublicConfig {
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Creates an instance of PublicConfig.
|
|
10
|
+
*
|
|
11
|
+
* @param {object} _conf - The configuration for the public APIs.
|
|
12
|
+
* @param {string} [_conf.domain='https://api.fynd.com'] - The domain for
|
|
13
|
+
* API. Write the full domain. Default is `'https://api.fynd.com'`
|
|
14
|
+
* @param {string} [_conf.userAgent=''] - The user agent for the API
|
|
15
|
+
* requests. Default is `''`
|
|
16
|
+
* @param {string} [_conf.language] - The language for localization.
|
|
17
|
+
* @param {string} [_conf.currency] - The currency for pricing and financial
|
|
18
|
+
* calculations.
|
|
19
|
+
*/
|
|
20
|
+
constructor(_conf: {
|
|
21
|
+
domain?: string;
|
|
22
|
+
userAgent?: string;
|
|
23
|
+
language?: string;
|
|
24
|
+
currency?: string;
|
|
25
|
+
}, _opts: any);
|
|
26
|
+
domain: string;
|
|
27
|
+
userAgent: string;
|
|
28
|
+
language: string;
|
|
29
|
+
currency: string;
|
|
9
30
|
extraHeaders: any[];
|
|
10
31
|
}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the configuration for the public APIs.
|
|
3
|
+
*
|
|
4
|
+
* @class
|
|
5
|
+
*/
|
|
1
6
|
class PublicConfig {
|
|
2
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Creates an instance of PublicConfig.
|
|
9
|
+
*
|
|
10
|
+
* @param {object} _conf - The configuration for the public APIs.
|
|
11
|
+
* @param {string} [_conf.domain='https://api.fynd.com'] - The domain for
|
|
12
|
+
* API. Write the full domain. Default is `'https://api.fynd.com'`
|
|
13
|
+
* @param {string} [_conf.userAgent=''] - The user agent for the API
|
|
14
|
+
* requests. Default is `''`
|
|
15
|
+
* @param {string} [_conf.language] - The language for localization.
|
|
16
|
+
* @param {string} [_conf.currency] - The currency for pricing and financial
|
|
17
|
+
* calculations.
|
|
18
|
+
*/
|
|
3
19
|
constructor(_conf, _opts) {
|
|
4
20
|
this.domain = _conf.domain || "https://api.fynd.com";
|
|
5
21
|
this.userAgent = _conf.userAgent || "";
|
|
@@ -9,20 +9,22 @@ declare class Webhook {
|
|
|
9
9
|
_urls: {};
|
|
10
10
|
updateUrls(urls: any): void;
|
|
11
11
|
/**
|
|
12
|
-
* @param {
|
|
13
|
-
* @returns {Promise<EventConfigResponse>} - Success response
|
|
12
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
13
|
+
* @returns {Promise<WebhookPublicModel.EventConfigResponse>} - Success response
|
|
14
|
+
* @name fetchAllWebhookEvents
|
|
14
15
|
* @summary: Get All Webhook Events
|
|
15
|
-
* @description: Get All Webhook Events
|
|
16
|
+
* @description: Get All Webhook Events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/fetchAllWebhookEvents/).
|
|
16
17
|
*/
|
|
17
|
-
fetchAllWebhookEvents({}?: any): Promise<EventConfigResponse>;
|
|
18
|
+
fetchAllWebhookEvents({ headers }?: any): Promise<WebhookPublicModel.EventConfigResponse>;
|
|
18
19
|
/**
|
|
19
|
-
* @param {
|
|
20
|
-
* @param {
|
|
21
|
-
* @returns {Promise<EventConfigResponse>} - Success response
|
|
20
|
+
* @param {WebhookPublicValidator.QueryWebhookEventDetailsParam} arg - Arg object.
|
|
21
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
22
|
+
* @returns {Promise<WebhookPublicModel.EventConfigResponse>} - Success response
|
|
23
|
+
* @name queryWebhookEventDetails
|
|
22
24
|
* @summary: Send webhook event name, type, version, category in request body to get complete details of event from server
|
|
23
|
-
* @description: Get Webhook Event Details for provided events
|
|
25
|
+
* @description: Get Webhook Event Details for provided events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/queryWebhookEventDetails/).
|
|
24
26
|
*/
|
|
25
|
-
queryWebhookEventDetails({ body }?: {
|
|
26
|
-
body: EventConfigBase[];
|
|
27
|
-
}): Promise<EventConfigResponse>;
|
|
27
|
+
queryWebhookEventDetails({ body }?: WebhookPublicValidator.QueryWebhookEventDetailsParam, { headers }?: any): Promise<WebhookPublicModel.EventConfigResponse>;
|
|
28
28
|
}
|
|
29
|
+
import WebhookPublicModel = require("./WebhookPublicModel");
|
|
30
|
+
import WebhookPublicValidator = require("./WebhookPublicValidator");
|
|
@@ -2,8 +2,8 @@ const PublicAPIClient = require("../PublicAPIClient");
|
|
|
2
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
3
3
|
const constructUrl = require("../constructUrl");
|
|
4
4
|
const Paginator = require("../../common/Paginator");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const WebhookPublicValidator = require("./WebhookPublicValidator");
|
|
6
|
+
const WebhookPublicModel = require("./WebhookPublicModel");
|
|
7
7
|
const { Logger } = require("./../../common/Logger");
|
|
8
8
|
const Joi = require("joi");
|
|
9
9
|
|
|
@@ -32,13 +32,14 @@ class Webhook {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* @param {
|
|
36
|
-
* @returns {Promise<EventConfigResponse>} - Success response
|
|
35
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
36
|
+
* @returns {Promise<WebhookPublicModel.EventConfigResponse>} - Success response
|
|
37
|
+
* @name fetchAllWebhookEvents
|
|
37
38
|
* @summary: Get All Webhook Events
|
|
38
|
-
* @description: Get All Webhook Events
|
|
39
|
+
* @description: Get All Webhook Events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/fetchAllWebhookEvents/).
|
|
39
40
|
*/
|
|
40
|
-
async fetchAllWebhookEvents({} = {}) {
|
|
41
|
-
const { error } =
|
|
41
|
+
async fetchAllWebhookEvents({ headers } = { headers: false }) {
|
|
42
|
+
const { error } = WebhookPublicValidator.fetchAllWebhookEvents().validate(
|
|
42
43
|
{},
|
|
43
44
|
{ abortEarly: false, allowUnknown: true }
|
|
44
45
|
);
|
|
@@ -49,16 +50,15 @@ class Webhook {
|
|
|
49
50
|
// Showing warrnings if extra unknown parameters are found
|
|
50
51
|
const {
|
|
51
52
|
error: warrning,
|
|
52
|
-
} =
|
|
53
|
+
} = WebhookPublicValidator.fetchAllWebhookEvents().validate(
|
|
53
54
|
{},
|
|
54
55
|
{ abortEarly: false, allowUnknown: false }
|
|
55
56
|
);
|
|
56
57
|
if (warrning) {
|
|
57
58
|
Logger({
|
|
58
59
|
level: "WARN",
|
|
59
|
-
message:
|
|
60
|
+
message: `Parameter Validation warrnings for public > Webhook > fetchAllWebhookEvents \n ${warrning}`,
|
|
60
61
|
});
|
|
61
|
-
Logger({ level: "WARN", message: warrning });
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
const query_params = {};
|
|
@@ -74,12 +74,18 @@ class Webhook {
|
|
|
74
74
|
}),
|
|
75
75
|
query_params,
|
|
76
76
|
undefined,
|
|
77
|
-
xHeaders
|
|
77
|
+
xHeaders,
|
|
78
|
+
{ headers }
|
|
78
79
|
);
|
|
79
80
|
|
|
81
|
+
let responseData = response;
|
|
82
|
+
if (headers) {
|
|
83
|
+
responseData = response[0];
|
|
84
|
+
}
|
|
85
|
+
|
|
80
86
|
const {
|
|
81
87
|
error: res_error,
|
|
82
|
-
} =
|
|
88
|
+
} = WebhookPublicModel.EventConfigResponse().validate(responseData, {
|
|
83
89
|
abortEarly: false,
|
|
84
90
|
allowUnknown: false,
|
|
85
91
|
});
|
|
@@ -87,23 +93,28 @@ class Webhook {
|
|
|
87
93
|
if (res_error) {
|
|
88
94
|
Logger({
|
|
89
95
|
level: "WARN",
|
|
90
|
-
message:
|
|
96
|
+
message: `Response Validation Warnnings for public > Webhook > fetchAllWebhookEvents \n ${res_error}`,
|
|
91
97
|
});
|
|
92
|
-
Logger({ level: "WARN", message: res_error });
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
return response;
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
/**
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
101
|
-
* @returns {Promise<EventConfigResponse>} - Success response
|
|
104
|
+
* @param {WebhookPublicValidator.QueryWebhookEventDetailsParam} arg - Arg object.
|
|
105
|
+
* @param {import("../PublicAPIClient").Options} - Options
|
|
106
|
+
* @returns {Promise<WebhookPublicModel.EventConfigResponse>} - Success response
|
|
107
|
+
* @name queryWebhookEventDetails
|
|
102
108
|
* @summary: Send webhook event name, type, version, category in request body to get complete details of event from server
|
|
103
|
-
* @description: Get Webhook Event Details for provided events
|
|
109
|
+
* @description: Get Webhook Event Details for provided events - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/webhook/queryWebhookEventDetails/).
|
|
104
110
|
*/
|
|
105
|
-
async queryWebhookEventDetails(
|
|
106
|
-
|
|
111
|
+
async queryWebhookEventDetails(
|
|
112
|
+
{ body } = {},
|
|
113
|
+
{ headers } = { headers: false }
|
|
114
|
+
) {
|
|
115
|
+
const {
|
|
116
|
+
error,
|
|
117
|
+
} = WebhookPublicValidator.queryWebhookEventDetails().validate(
|
|
107
118
|
{ body },
|
|
108
119
|
{ abortEarly: false, allowUnknown: true }
|
|
109
120
|
);
|
|
@@ -114,16 +125,15 @@ class Webhook {
|
|
|
114
125
|
// Showing warrnings if extra unknown parameters are found
|
|
115
126
|
const {
|
|
116
127
|
error: warrning,
|
|
117
|
-
} =
|
|
128
|
+
} = WebhookPublicValidator.queryWebhookEventDetails().validate(
|
|
118
129
|
{ body },
|
|
119
130
|
{ abortEarly: false, allowUnknown: false }
|
|
120
131
|
);
|
|
121
132
|
if (warrning) {
|
|
122
133
|
Logger({
|
|
123
134
|
level: "WARN",
|
|
124
|
-
message:
|
|
135
|
+
message: `Parameter Validation warrnings for public > Webhook > queryWebhookEventDetails \n ${warrning}`,
|
|
125
136
|
});
|
|
126
|
-
Logger({ level: "WARN", message: warrning });
|
|
127
137
|
}
|
|
128
138
|
|
|
129
139
|
const query_params = {};
|
|
@@ -139,12 +149,18 @@ class Webhook {
|
|
|
139
149
|
}),
|
|
140
150
|
query_params,
|
|
141
151
|
body,
|
|
142
|
-
xHeaders
|
|
152
|
+
xHeaders,
|
|
153
|
+
{ headers }
|
|
143
154
|
);
|
|
144
155
|
|
|
156
|
+
let responseData = response;
|
|
157
|
+
if (headers) {
|
|
158
|
+
responseData = response[0];
|
|
159
|
+
}
|
|
160
|
+
|
|
145
161
|
const {
|
|
146
162
|
error: res_error,
|
|
147
|
-
} =
|
|
163
|
+
} = WebhookPublicModel.EventConfigResponse().validate(responseData, {
|
|
148
164
|
abortEarly: false,
|
|
149
165
|
allowUnknown: false,
|
|
150
166
|
});
|
|
@@ -152,9 +168,8 @@ class Webhook {
|
|
|
152
168
|
if (res_error) {
|
|
153
169
|
Logger({
|
|
154
170
|
level: "WARN",
|
|
155
|
-
message:
|
|
171
|
+
message: `Response Validation Warnnings for public > Webhook > queryWebhookEventDetails \n ${res_error}`,
|
|
156
172
|
});
|
|
157
|
-
Logger({ level: "WARN", message: res_error });
|
|
158
173
|
}
|
|
159
174
|
|
|
160
175
|
return response;
|
|
@@ -1,17 +1,243 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
export = WebhookPublicModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef Association
|
|
4
|
+
* @property {string[]} [application_id]
|
|
5
|
+
* @property {number} [company_id]
|
|
6
|
+
* @property {string} [criteria]
|
|
7
|
+
* @property {string} [extension_id]
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @typedef AuthMeta
|
|
11
|
+
* @property {string} [secret]
|
|
12
|
+
* @property {string} [type]
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @typedef EventConfig
|
|
16
|
+
* @property {string} [created_on]
|
|
17
|
+
* @property {string} [description]
|
|
18
|
+
* @property {string} [display_name]
|
|
19
|
+
* @property {string} [event_category]
|
|
20
|
+
* @property {string} [event_name]
|
|
21
|
+
* @property {string} [event_type]
|
|
22
|
+
* @property {number} [id]
|
|
23
|
+
* @property {string} [version]
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @typedef EventConfigBase
|
|
27
|
+
* @property {string} [event_category]
|
|
28
|
+
* @property {string} [event_name]
|
|
29
|
+
* @property {string} [event_type]
|
|
30
|
+
* @property {string} [version]
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @typedef EventConfigList
|
|
34
|
+
* @property {EventConfig[]} [items]
|
|
35
|
+
* @property {Page} [page]
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* @typedef EventConfigResponse
|
|
39
|
+
* @property {EventConfig[]} [event_configs]
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* @typedef EventPayload
|
|
43
|
+
* @property {string} [event_name]
|
|
44
|
+
* @property {string} [event_trace_id]
|
|
45
|
+
* @property {string} [event_type]
|
|
46
|
+
* @property {number} [id]
|
|
47
|
+
* @property {string} [message_id]
|
|
48
|
+
* @property {boolean} [status]
|
|
49
|
+
* @property {string} [version]
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @typedef EventProcessedStatus
|
|
53
|
+
* @property {number} [attempt]
|
|
54
|
+
* @property {string} [created_on]
|
|
55
|
+
* @property {number} [id]
|
|
56
|
+
* @property {string} [processed_on]
|
|
57
|
+
* @property {string} [response_code]
|
|
58
|
+
* @property {string} [response_message]
|
|
59
|
+
* @property {boolean} [status]
|
|
60
|
+
* @property {string} [subscriber_id]
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* @typedef Page
|
|
64
|
+
* @property {number} [current]
|
|
65
|
+
* @property {boolean} [has_next]
|
|
66
|
+
* @property {boolean} [has_previous]
|
|
67
|
+
* @property {number} [item_total]
|
|
68
|
+
* @property {string} [next_id]
|
|
69
|
+
* @property {number} [size]
|
|
70
|
+
* @property {string} type
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* @typedef SubscriberConfig
|
|
74
|
+
* @property {Association} [association]
|
|
75
|
+
* @property {AuthMeta} [auth_meta]
|
|
76
|
+
* @property {Object} [custom_headers]
|
|
77
|
+
* @property {string} [email_id]
|
|
78
|
+
* @property {number[]} [event_id]
|
|
79
|
+
* @property {number} [id]
|
|
80
|
+
* @property {string} [name]
|
|
81
|
+
* @property {SubscriberStatus} [status]
|
|
82
|
+
* @property {string} [webhook_url]
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* @typedef SubscriberConfigList
|
|
86
|
+
* @property {SubscriberResponse[]} [items]
|
|
87
|
+
* @property {Page} [page]
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @typedef SubscriberEvent
|
|
91
|
+
* @property {string} [created_date]
|
|
92
|
+
* @property {number} [event_id]
|
|
93
|
+
* @property {number} [id]
|
|
94
|
+
* @property {number} [subscriber_id]
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* @typedef SubscriberResponse
|
|
98
|
+
* @property {Association} [association]
|
|
99
|
+
* @property {AuthMeta} [auth_meta]
|
|
100
|
+
* @property {string} [created_on]
|
|
101
|
+
* @property {Object} [custom_headers]
|
|
102
|
+
* @property {string} [email_id]
|
|
103
|
+
* @property {EventConfig[]} [event_configs]
|
|
104
|
+
* @property {number} [id]
|
|
105
|
+
* @property {string} [name]
|
|
106
|
+
* @property {SubscriberStatus} [status]
|
|
107
|
+
* @property {string} [updated_on]
|
|
108
|
+
* @property {string} [webhook_url]
|
|
109
|
+
*/
|
|
110
|
+
/** @typedef {"active" | "inactive" | "blocked"} SubscriberStatus */
|
|
111
|
+
declare class WebhookPublicModel {
|
|
17
112
|
}
|
|
113
|
+
declare namespace WebhookPublicModel {
|
|
114
|
+
export { Association, AuthMeta, EventConfig, EventConfigBase, EventConfigList, EventConfigResponse, EventPayload, EventProcessedStatus, Page, SubscriberConfig, SubscriberConfigList, SubscriberEvent, SubscriberResponse, SubscriberStatus };
|
|
115
|
+
}
|
|
116
|
+
/** @returns {Association} */
|
|
117
|
+
declare function Association(): Association;
|
|
118
|
+
type Association = {
|
|
119
|
+
application_id?: string[];
|
|
120
|
+
company_id?: number;
|
|
121
|
+
criteria?: string;
|
|
122
|
+
extension_id?: string;
|
|
123
|
+
};
|
|
124
|
+
/** @returns {AuthMeta} */
|
|
125
|
+
declare function AuthMeta(): AuthMeta;
|
|
126
|
+
type AuthMeta = {
|
|
127
|
+
secret?: string;
|
|
128
|
+
type?: string;
|
|
129
|
+
};
|
|
130
|
+
/** @returns {EventConfig} */
|
|
131
|
+
declare function EventConfig(): EventConfig;
|
|
132
|
+
type EventConfig = {
|
|
133
|
+
created_on?: string;
|
|
134
|
+
description?: string;
|
|
135
|
+
display_name?: string;
|
|
136
|
+
event_category?: string;
|
|
137
|
+
event_name?: string;
|
|
138
|
+
event_type?: string;
|
|
139
|
+
id?: number;
|
|
140
|
+
version?: string;
|
|
141
|
+
};
|
|
142
|
+
/** @returns {EventConfigBase} */
|
|
143
|
+
declare function EventConfigBase(): EventConfigBase;
|
|
144
|
+
type EventConfigBase = {
|
|
145
|
+
event_category?: string;
|
|
146
|
+
event_name?: string;
|
|
147
|
+
event_type?: string;
|
|
148
|
+
version?: string;
|
|
149
|
+
};
|
|
150
|
+
/** @returns {EventConfigList} */
|
|
151
|
+
declare function EventConfigList(): EventConfigList;
|
|
152
|
+
type EventConfigList = {
|
|
153
|
+
items?: EventConfig[];
|
|
154
|
+
page?: Page;
|
|
155
|
+
};
|
|
156
|
+
/** @returns {EventConfigResponse} */
|
|
157
|
+
declare function EventConfigResponse(): EventConfigResponse;
|
|
158
|
+
type EventConfigResponse = {
|
|
159
|
+
event_configs?: EventConfig[];
|
|
160
|
+
};
|
|
161
|
+
/** @returns {EventPayload} */
|
|
162
|
+
declare function EventPayload(): EventPayload;
|
|
163
|
+
type EventPayload = {
|
|
164
|
+
event_name?: string;
|
|
165
|
+
event_trace_id?: string;
|
|
166
|
+
event_type?: string;
|
|
167
|
+
id?: number;
|
|
168
|
+
message_id?: string;
|
|
169
|
+
status?: boolean;
|
|
170
|
+
version?: string;
|
|
171
|
+
};
|
|
172
|
+
/** @returns {EventProcessedStatus} */
|
|
173
|
+
declare function EventProcessedStatus(): EventProcessedStatus;
|
|
174
|
+
type EventProcessedStatus = {
|
|
175
|
+
attempt?: number;
|
|
176
|
+
created_on?: string;
|
|
177
|
+
id?: number;
|
|
178
|
+
processed_on?: string;
|
|
179
|
+
response_code?: string;
|
|
180
|
+
response_message?: string;
|
|
181
|
+
status?: boolean;
|
|
182
|
+
subscriber_id?: string;
|
|
183
|
+
};
|
|
184
|
+
/** @returns {Page} */
|
|
185
|
+
declare function Page(): Page;
|
|
186
|
+
type Page = {
|
|
187
|
+
current?: number;
|
|
188
|
+
has_next?: boolean;
|
|
189
|
+
has_previous?: boolean;
|
|
190
|
+
item_total?: number;
|
|
191
|
+
next_id?: string;
|
|
192
|
+
size?: number;
|
|
193
|
+
type: string;
|
|
194
|
+
};
|
|
195
|
+
/** @returns {SubscriberConfig} */
|
|
196
|
+
declare function SubscriberConfig(): SubscriberConfig;
|
|
197
|
+
type SubscriberConfig = {
|
|
198
|
+
association?: Association;
|
|
199
|
+
auth_meta?: AuthMeta;
|
|
200
|
+
custom_headers?: any;
|
|
201
|
+
email_id?: string;
|
|
202
|
+
event_id?: number[];
|
|
203
|
+
id?: number;
|
|
204
|
+
name?: string;
|
|
205
|
+
status?: SubscriberStatus;
|
|
206
|
+
webhook_url?: string;
|
|
207
|
+
};
|
|
208
|
+
/** @returns {SubscriberConfigList} */
|
|
209
|
+
declare function SubscriberConfigList(): SubscriberConfigList;
|
|
210
|
+
type SubscriberConfigList = {
|
|
211
|
+
items?: SubscriberResponse[];
|
|
212
|
+
page?: Page;
|
|
213
|
+
};
|
|
214
|
+
/** @returns {SubscriberEvent} */
|
|
215
|
+
declare function SubscriberEvent(): SubscriberEvent;
|
|
216
|
+
type SubscriberEvent = {
|
|
217
|
+
created_date?: string;
|
|
218
|
+
event_id?: number;
|
|
219
|
+
id?: number;
|
|
220
|
+
subscriber_id?: number;
|
|
221
|
+
};
|
|
222
|
+
/** @returns {SubscriberResponse} */
|
|
223
|
+
declare function SubscriberResponse(): SubscriberResponse;
|
|
224
|
+
type SubscriberResponse = {
|
|
225
|
+
association?: Association;
|
|
226
|
+
auth_meta?: AuthMeta;
|
|
227
|
+
created_on?: string;
|
|
228
|
+
custom_headers?: any;
|
|
229
|
+
email_id?: string;
|
|
230
|
+
event_configs?: EventConfig[];
|
|
231
|
+
id?: number;
|
|
232
|
+
name?: string;
|
|
233
|
+
status?: SubscriberStatus;
|
|
234
|
+
updated_on?: string;
|
|
235
|
+
webhook_url?: string;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Enum: SubscriberStatus Used By: Webhook
|
|
239
|
+
*
|
|
240
|
+
* @returns {SubscriberStatus}
|
|
241
|
+
*/
|
|
242
|
+
declare function SubscriberStatus(): SubscriberStatus;
|
|
243
|
+
type SubscriberStatus = "active" | "inactive" | "blocked";
|