@gofynd/fdk-client-javascript 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
2
2
|
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
3
3
|
const Paginator = require("../../common/Paginator");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const PartnerPlatformValidator = require("./PartnerPlatformValidator");
|
|
5
|
+
const PartnerPlatformModel = require("./PartnerPlatformModel");
|
|
6
6
|
const { Logger } = require("./../../common/Logger");
|
|
7
7
|
const Joi = require("joi");
|
|
8
8
|
|
|
@@ -12,20 +12,18 @@ class Partner {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @param {
|
|
16
|
-
* @param {
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @returns {Promise<UninstallExtension>} - Success response
|
|
15
|
+
* @param {PartnerPlatformValidator.DeleteExtensionByIdParam} arg - Arg object
|
|
16
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
17
|
+
* @returns {Promise<PartnerPlatformModel.UninstallExtension>} - Success response
|
|
18
|
+
* @name deleteExtensionById
|
|
20
19
|
* @summary: Uninstall extension
|
|
21
|
-
* @description: Use this API to remove extension from yout company or channel
|
|
20
|
+
* @description: Use this API to remove extension from yout company or channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/deleteExtensionById/).
|
|
22
21
|
*/
|
|
23
|
-
async deleteExtensionById(
|
|
24
|
-
extensionId,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { error } = PartnerValidator.deleteExtensionById().validate(
|
|
22
|
+
async deleteExtensionById(
|
|
23
|
+
{ extensionId, message, uninstallReasonType } = {},
|
|
24
|
+
{ headers } = { headers: false }
|
|
25
|
+
) {
|
|
26
|
+
const { error } = PartnerPlatformValidator.deleteExtensionById().validate(
|
|
29
27
|
{
|
|
30
28
|
extensionId,
|
|
31
29
|
message,
|
|
@@ -38,7 +36,9 @@ class Partner {
|
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
// Showing warrnings if extra unknown parameters are found
|
|
41
|
-
const {
|
|
39
|
+
const {
|
|
40
|
+
error: warrning,
|
|
41
|
+
} = PartnerPlatformValidator.deleteExtensionById().validate(
|
|
42
42
|
{
|
|
43
43
|
extensionId,
|
|
44
44
|
message,
|
|
@@ -49,9 +49,8 @@ class Partner {
|
|
|
49
49
|
if (warrning) {
|
|
50
50
|
Logger({
|
|
51
51
|
level: "WARN",
|
|
52
|
-
message:
|
|
52
|
+
message: `Parameter Validation warrnings for platform > Partner > deleteExtensionById \n ${warrning}`,
|
|
53
53
|
});
|
|
54
|
-
Logger({ level: "WARN", message: warrning });
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
const query_params = {};
|
|
@@ -66,12 +65,18 @@ class Partner {
|
|
|
66
65
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/extension/${extensionId}`,
|
|
67
66
|
query_params,
|
|
68
67
|
undefined,
|
|
69
|
-
xHeaders
|
|
68
|
+
xHeaders,
|
|
69
|
+
{ headers }
|
|
70
70
|
);
|
|
71
71
|
|
|
72
|
+
let responseData = response;
|
|
73
|
+
if (headers) {
|
|
74
|
+
responseData = response[0];
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
const {
|
|
73
78
|
error: res_error,
|
|
74
|
-
} =
|
|
79
|
+
} = PartnerPlatformModel.UninstallExtension().validate(responseData, {
|
|
75
80
|
abortEarly: false,
|
|
76
81
|
allowUnknown: false,
|
|
77
82
|
});
|
|
@@ -79,23 +84,26 @@ class Partner {
|
|
|
79
84
|
if (res_error) {
|
|
80
85
|
Logger({
|
|
81
86
|
level: "WARN",
|
|
82
|
-
message:
|
|
87
|
+
message: `Response Validation Warnnings for platform > Partner > deleteExtensionById \n ${res_error}`,
|
|
83
88
|
});
|
|
84
|
-
Logger({ level: "WARN", message: res_error });
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
return response;
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
/**
|
|
91
|
-
* @param {
|
|
92
|
-
* @param {
|
|
93
|
-
* @returns {Promise<ExtensionCommon>} - Success response
|
|
95
|
+
* @param {PartnerPlatformValidator.GetExtensionByIdParam} arg - Arg object
|
|
96
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
97
|
+
* @returns {Promise<PartnerPlatformModel.ExtensionCommon>} - Success response
|
|
98
|
+
* @name getExtensionById
|
|
94
99
|
* @summary: Get extension details
|
|
95
|
-
* @description: Use this API to get the details of extension
|
|
100
|
+
* @description: Use this API to get the details of extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getExtensionById/).
|
|
96
101
|
*/
|
|
97
|
-
async getExtensionById(
|
|
98
|
-
|
|
102
|
+
async getExtensionById(
|
|
103
|
+
{ extensionId } = {},
|
|
104
|
+
{ headers } = { headers: false }
|
|
105
|
+
) {
|
|
106
|
+
const { error } = PartnerPlatformValidator.getExtensionById().validate(
|
|
99
107
|
{
|
|
100
108
|
extensionId,
|
|
101
109
|
},
|
|
@@ -106,7 +114,9 @@ class Partner {
|
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
// Showing warrnings if extra unknown parameters are found
|
|
109
|
-
const {
|
|
117
|
+
const {
|
|
118
|
+
error: warrning,
|
|
119
|
+
} = PartnerPlatformValidator.getExtensionById().validate(
|
|
110
120
|
{
|
|
111
121
|
extensionId,
|
|
112
122
|
},
|
|
@@ -115,9 +125,8 @@ class Partner {
|
|
|
115
125
|
if (warrning) {
|
|
116
126
|
Logger({
|
|
117
127
|
level: "WARN",
|
|
118
|
-
message:
|
|
128
|
+
message: `Parameter Validation warrnings for platform > Partner > getExtensionById \n ${warrning}`,
|
|
119
129
|
});
|
|
120
|
-
Logger({ level: "WARN", message: warrning });
|
|
121
130
|
}
|
|
122
131
|
|
|
123
132
|
const query_params = {};
|
|
@@ -130,12 +139,18 @@ class Partner {
|
|
|
130
139
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/extension/${extensionId}`,
|
|
131
140
|
query_params,
|
|
132
141
|
undefined,
|
|
133
|
-
xHeaders
|
|
142
|
+
xHeaders,
|
|
143
|
+
{ headers }
|
|
134
144
|
);
|
|
135
145
|
|
|
146
|
+
let responseData = response;
|
|
147
|
+
if (headers) {
|
|
148
|
+
responseData = response[0];
|
|
149
|
+
}
|
|
150
|
+
|
|
136
151
|
const {
|
|
137
152
|
error: res_error,
|
|
138
|
-
} =
|
|
153
|
+
} = PartnerPlatformModel.ExtensionCommon().validate(responseData, {
|
|
139
154
|
abortEarly: false,
|
|
140
155
|
allowUnknown: false,
|
|
141
156
|
});
|
|
@@ -143,35 +158,28 @@ class Partner {
|
|
|
143
158
|
if (res_error) {
|
|
144
159
|
Logger({
|
|
145
160
|
level: "WARN",
|
|
146
|
-
message:
|
|
161
|
+
message: `Response Validation Warnnings for platform > Partner > getExtensionById \n ${res_error}`,
|
|
147
162
|
});
|
|
148
|
-
Logger({ level: "WARN", message: res_error });
|
|
149
163
|
}
|
|
150
164
|
|
|
151
165
|
return response;
|
|
152
166
|
}
|
|
153
167
|
|
|
154
168
|
/**
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {
|
|
157
|
-
* @
|
|
158
|
-
* @
|
|
159
|
-
* @param {number} [arg.pageNo] - Current page number
|
|
160
|
-
* @param {string} [arg.filterBy] - Filter by
|
|
161
|
-
* @param {string} [arg.query] - Query
|
|
162
|
-
* @returns {Promise<ExtensionList>} - Success response
|
|
169
|
+
* @param {PartnerPlatformValidator.GetExtensionsForCompanyParam} arg - Arg object
|
|
170
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
171
|
+
* @returns {Promise<PartnerPlatformModel.ExtensionList>} - Success response
|
|
172
|
+
* @name getExtensionsForCompany
|
|
163
173
|
* @summary: Get the list of all the extensions
|
|
164
|
-
* @description: Use this API to get the the extensions for the company
|
|
174
|
+
* @description: Use this API to get the the extensions for the company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getExtensionsForCompany/).
|
|
165
175
|
*/
|
|
166
|
-
async getExtensionsForCompany(
|
|
167
|
-
pageSize,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
} = {}) {
|
|
174
|
-
const { error } = PartnerValidator.getExtensionsForCompany().validate(
|
|
176
|
+
async getExtensionsForCompany(
|
|
177
|
+
{ pageSize, tag, currentPage, pageNo, filterBy, query } = {},
|
|
178
|
+
{ headers } = { headers: false }
|
|
179
|
+
) {
|
|
180
|
+
const {
|
|
181
|
+
error,
|
|
182
|
+
} = PartnerPlatformValidator.getExtensionsForCompany().validate(
|
|
175
183
|
{
|
|
176
184
|
pageSize,
|
|
177
185
|
tag,
|
|
@@ -189,7 +197,7 @@ class Partner {
|
|
|
189
197
|
// Showing warrnings if extra unknown parameters are found
|
|
190
198
|
const {
|
|
191
199
|
error: warrning,
|
|
192
|
-
} =
|
|
200
|
+
} = PartnerPlatformValidator.getExtensionsForCompany().validate(
|
|
193
201
|
{
|
|
194
202
|
pageSize,
|
|
195
203
|
tag,
|
|
@@ -203,9 +211,8 @@ class Partner {
|
|
|
203
211
|
if (warrning) {
|
|
204
212
|
Logger({
|
|
205
213
|
level: "WARN",
|
|
206
|
-
message:
|
|
214
|
+
message: `Parameter Validation warrnings for platform > Partner > getExtensionsForCompany \n ${warrning}`,
|
|
207
215
|
});
|
|
208
|
-
Logger({ level: "WARN", message: warrning });
|
|
209
216
|
}
|
|
210
217
|
|
|
211
218
|
const query_params = {};
|
|
@@ -224,34 +231,47 @@ class Partner {
|
|
|
224
231
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/extensions`,
|
|
225
232
|
query_params,
|
|
226
233
|
undefined,
|
|
227
|
-
xHeaders
|
|
234
|
+
xHeaders,
|
|
235
|
+
{ headers }
|
|
228
236
|
);
|
|
229
237
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
let responseData = response;
|
|
239
|
+
if (headers) {
|
|
240
|
+
responseData = response[0];
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const {
|
|
244
|
+
error: res_error,
|
|
245
|
+
} = PartnerPlatformModel.ExtensionList().validate(responseData, {
|
|
246
|
+
abortEarly: false,
|
|
247
|
+
allowUnknown: false,
|
|
248
|
+
});
|
|
234
249
|
|
|
235
250
|
if (res_error) {
|
|
236
251
|
Logger({
|
|
237
252
|
level: "WARN",
|
|
238
|
-
message:
|
|
253
|
+
message: `Response Validation Warnnings for platform > Partner > getExtensionsForCompany \n ${res_error}`,
|
|
239
254
|
});
|
|
240
|
-
Logger({ level: "WARN", message: res_error });
|
|
241
255
|
}
|
|
242
256
|
|
|
243
257
|
return response;
|
|
244
258
|
}
|
|
245
259
|
|
|
246
260
|
/**
|
|
247
|
-
* @param {
|
|
248
|
-
* @param {
|
|
249
|
-
* @returns {Promise<ExtensionSuggestionList>} - Success response
|
|
261
|
+
* @param {PartnerPlatformValidator.GetExtensionsSuggestionsParam} arg - Arg object
|
|
262
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
263
|
+
* @returns {Promise<PartnerPlatformModel.ExtensionSuggestionList>} - Success response
|
|
264
|
+
* @name getExtensionsSuggestions
|
|
250
265
|
* @summary: Get the list of all the extension suggestions
|
|
251
|
-
* @description: Use this API to get the the extensions suggestions
|
|
266
|
+
* @description: Use this API to get the the extensions suggestions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getExtensionsSuggestions/).
|
|
252
267
|
*/
|
|
253
|
-
async getExtensionsSuggestions(
|
|
254
|
-
|
|
268
|
+
async getExtensionsSuggestions(
|
|
269
|
+
{ pageSize } = {},
|
|
270
|
+
{ headers } = { headers: false }
|
|
271
|
+
) {
|
|
272
|
+
const {
|
|
273
|
+
error,
|
|
274
|
+
} = PartnerPlatformValidator.getExtensionsSuggestions().validate(
|
|
255
275
|
{
|
|
256
276
|
pageSize,
|
|
257
277
|
},
|
|
@@ -264,7 +284,7 @@ class Partner {
|
|
|
264
284
|
// Showing warrnings if extra unknown parameters are found
|
|
265
285
|
const {
|
|
266
286
|
error: warrning,
|
|
267
|
-
} =
|
|
287
|
+
} = PartnerPlatformValidator.getExtensionsSuggestions().validate(
|
|
268
288
|
{
|
|
269
289
|
pageSize,
|
|
270
290
|
},
|
|
@@ -273,9 +293,8 @@ class Partner {
|
|
|
273
293
|
if (warrning) {
|
|
274
294
|
Logger({
|
|
275
295
|
level: "WARN",
|
|
276
|
-
message:
|
|
296
|
+
message: `Parameter Validation warrnings for platform > Partner > getExtensionsSuggestions \n ${warrning}`,
|
|
277
297
|
});
|
|
278
|
-
Logger({ level: "WARN", message: warrning });
|
|
279
298
|
}
|
|
280
299
|
|
|
281
300
|
const query_params = {};
|
|
@@ -289,12 +308,18 @@ class Partner {
|
|
|
289
308
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/extension/suggestions`,
|
|
290
309
|
query_params,
|
|
291
310
|
undefined,
|
|
292
|
-
xHeaders
|
|
311
|
+
xHeaders,
|
|
312
|
+
{ headers }
|
|
293
313
|
);
|
|
294
314
|
|
|
315
|
+
let responseData = response;
|
|
316
|
+
if (headers) {
|
|
317
|
+
responseData = response[0];
|
|
318
|
+
}
|
|
319
|
+
|
|
295
320
|
const {
|
|
296
321
|
error: res_error,
|
|
297
|
-
} =
|
|
322
|
+
} = PartnerPlatformModel.ExtensionSuggestionList().validate(responseData, {
|
|
298
323
|
abortEarly: false,
|
|
299
324
|
allowUnknown: false,
|
|
300
325
|
});
|
|
@@ -302,25 +327,26 @@ class Partner {
|
|
|
302
327
|
if (res_error) {
|
|
303
328
|
Logger({
|
|
304
329
|
level: "WARN",
|
|
305
|
-
message:
|
|
330
|
+
message: `Response Validation Warnnings for platform > Partner > getExtensionsSuggestions \n ${res_error}`,
|
|
306
331
|
});
|
|
307
|
-
Logger({ level: "WARN", message: res_error });
|
|
308
332
|
}
|
|
309
333
|
|
|
310
334
|
return response;
|
|
311
335
|
}
|
|
312
336
|
|
|
313
337
|
/**
|
|
314
|
-
* @param {
|
|
315
|
-
* @param {
|
|
316
|
-
* @
|
|
317
|
-
* @
|
|
318
|
-
* @returns {Promise<PartnerRequestList>} - Success response
|
|
338
|
+
* @param {PartnerPlatformValidator.GetPartnerInvitesParam} arg - Arg object
|
|
339
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
340
|
+
* @returns {Promise<PartnerPlatformModel.PartnerRequestList>} - Success response
|
|
341
|
+
* @name getPartnerInvites
|
|
319
342
|
* @summary: Get partner invites
|
|
320
|
-
* @description: Use this API to get pending, accepted and rejected partner invites in platform
|
|
343
|
+
* @description: Use this API to get pending, accepted and rejected partner invites in platform - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPartnerInvites/).
|
|
321
344
|
*/
|
|
322
|
-
async getPartnerInvites(
|
|
323
|
-
|
|
345
|
+
async getPartnerInvites(
|
|
346
|
+
{ requestStatus, pageSize, pageNo } = {},
|
|
347
|
+
{ headers } = { headers: false }
|
|
348
|
+
) {
|
|
349
|
+
const { error } = PartnerPlatformValidator.getPartnerInvites().validate(
|
|
324
350
|
{
|
|
325
351
|
requestStatus,
|
|
326
352
|
pageSize,
|
|
@@ -333,7 +359,9 @@ class Partner {
|
|
|
333
359
|
}
|
|
334
360
|
|
|
335
361
|
// Showing warrnings if extra unknown parameters are found
|
|
336
|
-
const {
|
|
362
|
+
const {
|
|
363
|
+
error: warrning,
|
|
364
|
+
} = PartnerPlatformValidator.getPartnerInvites().validate(
|
|
337
365
|
{
|
|
338
366
|
requestStatus,
|
|
339
367
|
pageSize,
|
|
@@ -344,9 +372,8 @@ class Partner {
|
|
|
344
372
|
if (warrning) {
|
|
345
373
|
Logger({
|
|
346
374
|
level: "WARN",
|
|
347
|
-
message:
|
|
375
|
+
message: `Parameter Validation warrnings for platform > Partner > getPartnerInvites \n ${warrning}`,
|
|
348
376
|
});
|
|
349
|
-
Logger({ level: "WARN", message: warrning });
|
|
350
377
|
}
|
|
351
378
|
|
|
352
379
|
const query_params = {};
|
|
@@ -362,12 +389,18 @@ class Partner {
|
|
|
362
389
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/partner-request`,
|
|
363
390
|
query_params,
|
|
364
391
|
undefined,
|
|
365
|
-
xHeaders
|
|
392
|
+
xHeaders,
|
|
393
|
+
{ headers }
|
|
366
394
|
);
|
|
367
395
|
|
|
396
|
+
let responseData = response;
|
|
397
|
+
if (headers) {
|
|
398
|
+
responseData = response[0];
|
|
399
|
+
}
|
|
400
|
+
|
|
368
401
|
const {
|
|
369
402
|
error: res_error,
|
|
370
|
-
} =
|
|
403
|
+
} = PartnerPlatformModel.PartnerRequestList().validate(responseData, {
|
|
371
404
|
abortEarly: false,
|
|
372
405
|
allowUnknown: false,
|
|
373
406
|
});
|
|
@@ -375,23 +408,28 @@ class Partner {
|
|
|
375
408
|
if (res_error) {
|
|
376
409
|
Logger({
|
|
377
410
|
level: "WARN",
|
|
378
|
-
message:
|
|
411
|
+
message: `Response Validation Warnnings for platform > Partner > getPartnerInvites \n ${res_error}`,
|
|
379
412
|
});
|
|
380
|
-
Logger({ level: "WARN", message: res_error });
|
|
381
413
|
}
|
|
382
414
|
|
|
383
415
|
return response;
|
|
384
416
|
}
|
|
385
417
|
|
|
386
418
|
/**
|
|
387
|
-
* @param {
|
|
388
|
-
* @param {
|
|
389
|
-
* @returns {Promise<PartnerInviteDetails>} - Success response
|
|
419
|
+
* @param {PartnerPlatformValidator.GetPartnerRequestDetailsParam} arg - Arg object
|
|
420
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
421
|
+
* @returns {Promise<PartnerPlatformModel.PartnerInviteDetails>} - Success response
|
|
422
|
+
* @name getPartnerRequestDetails
|
|
390
423
|
* @summary: Get partner request details
|
|
391
|
-
* @description: Use this API to get details of pending partner request
|
|
424
|
+
* @description: Use this API to get details of pending partner request - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPartnerRequestDetails/).
|
|
392
425
|
*/
|
|
393
|
-
async getPartnerRequestDetails(
|
|
394
|
-
|
|
426
|
+
async getPartnerRequestDetails(
|
|
427
|
+
{ inviteId } = {},
|
|
428
|
+
{ headers } = { headers: false }
|
|
429
|
+
) {
|
|
430
|
+
const {
|
|
431
|
+
error,
|
|
432
|
+
} = PartnerPlatformValidator.getPartnerRequestDetails().validate(
|
|
395
433
|
{
|
|
396
434
|
inviteId,
|
|
397
435
|
},
|
|
@@ -404,7 +442,7 @@ class Partner {
|
|
|
404
442
|
// Showing warrnings if extra unknown parameters are found
|
|
405
443
|
const {
|
|
406
444
|
error: warrning,
|
|
407
|
-
} =
|
|
445
|
+
} = PartnerPlatformValidator.getPartnerRequestDetails().validate(
|
|
408
446
|
{
|
|
409
447
|
inviteId,
|
|
410
448
|
},
|
|
@@ -413,9 +451,8 @@ class Partner {
|
|
|
413
451
|
if (warrning) {
|
|
414
452
|
Logger({
|
|
415
453
|
level: "WARN",
|
|
416
|
-
message:
|
|
454
|
+
message: `Parameter Validation warrnings for platform > Partner > getPartnerRequestDetails \n ${warrning}`,
|
|
417
455
|
});
|
|
418
|
-
Logger({ level: "WARN", message: warrning });
|
|
419
456
|
}
|
|
420
457
|
|
|
421
458
|
const query_params = {};
|
|
@@ -428,12 +465,18 @@ class Partner {
|
|
|
428
465
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/partner-request/${inviteId}`,
|
|
429
466
|
query_params,
|
|
430
467
|
undefined,
|
|
431
|
-
xHeaders
|
|
468
|
+
xHeaders,
|
|
469
|
+
{ headers }
|
|
432
470
|
);
|
|
433
471
|
|
|
472
|
+
let responseData = response;
|
|
473
|
+
if (headers) {
|
|
474
|
+
responseData = response[0];
|
|
475
|
+
}
|
|
476
|
+
|
|
434
477
|
const {
|
|
435
478
|
error: res_error,
|
|
436
|
-
} =
|
|
479
|
+
} = PartnerPlatformModel.PartnerInviteDetails().validate(responseData, {
|
|
437
480
|
abortEarly: false,
|
|
438
481
|
allowUnknown: false,
|
|
439
482
|
});
|
|
@@ -441,25 +484,26 @@ class Partner {
|
|
|
441
484
|
if (res_error) {
|
|
442
485
|
Logger({
|
|
443
486
|
level: "WARN",
|
|
444
|
-
message:
|
|
487
|
+
message: `Response Validation Warnnings for platform > Partner > getPartnerRequestDetails \n ${res_error}`,
|
|
445
488
|
});
|
|
446
|
-
Logger({ level: "WARN", message: res_error });
|
|
447
489
|
}
|
|
448
490
|
|
|
449
491
|
return response;
|
|
450
492
|
}
|
|
451
493
|
|
|
452
494
|
/**
|
|
453
|
-
* @param {
|
|
454
|
-
* @param {
|
|
455
|
-
* @
|
|
456
|
-
* @
|
|
457
|
-
* @returns {Promise<ExtensionResponse>} - Success response
|
|
495
|
+
* @param {PartnerPlatformValidator.GetPrivateExtensionsParam} arg - Arg object
|
|
496
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
497
|
+
* @returns {Promise<PartnerPlatformModel.ExtensionResponse>} - Success response
|
|
498
|
+
* @name getPrivateExtensions
|
|
458
499
|
* @summary: Get the list of private extensions
|
|
459
|
-
* @description: Use this API to get the list of private extensions
|
|
500
|
+
* @description: Use this API to get the list of private extensions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPrivateExtensions/).
|
|
460
501
|
*/
|
|
461
|
-
async getPrivateExtensions(
|
|
462
|
-
|
|
502
|
+
async getPrivateExtensions(
|
|
503
|
+
{ pageSize, pageNo, query } = {},
|
|
504
|
+
{ headers } = { headers: false }
|
|
505
|
+
) {
|
|
506
|
+
const { error } = PartnerPlatformValidator.getPrivateExtensions().validate(
|
|
463
507
|
{
|
|
464
508
|
pageSize,
|
|
465
509
|
pageNo,
|
|
@@ -474,7 +518,7 @@ class Partner {
|
|
|
474
518
|
// Showing warrnings if extra unknown parameters are found
|
|
475
519
|
const {
|
|
476
520
|
error: warrning,
|
|
477
|
-
} =
|
|
521
|
+
} = PartnerPlatformValidator.getPrivateExtensions().validate(
|
|
478
522
|
{
|
|
479
523
|
pageSize,
|
|
480
524
|
pageNo,
|
|
@@ -485,9 +529,8 @@ class Partner {
|
|
|
485
529
|
if (warrning) {
|
|
486
530
|
Logger({
|
|
487
531
|
level: "WARN",
|
|
488
|
-
message:
|
|
532
|
+
message: `Parameter Validation warrnings for platform > Partner > getPrivateExtensions \n ${warrning}`,
|
|
489
533
|
});
|
|
490
|
-
Logger({ level: "WARN", message: warrning });
|
|
491
534
|
}
|
|
492
535
|
|
|
493
536
|
const query_params = {};
|
|
@@ -503,12 +546,18 @@ class Partner {
|
|
|
503
546
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/private-extensions`,
|
|
504
547
|
query_params,
|
|
505
548
|
undefined,
|
|
506
|
-
xHeaders
|
|
549
|
+
xHeaders,
|
|
550
|
+
{ headers }
|
|
507
551
|
);
|
|
508
552
|
|
|
553
|
+
let responseData = response;
|
|
554
|
+
if (headers) {
|
|
555
|
+
responseData = response[0];
|
|
556
|
+
}
|
|
557
|
+
|
|
509
558
|
const {
|
|
510
559
|
error: res_error,
|
|
511
|
-
} =
|
|
560
|
+
} = PartnerPlatformModel.ExtensionResponse().validate(responseData, {
|
|
512
561
|
abortEarly: false,
|
|
513
562
|
allowUnknown: false,
|
|
514
563
|
});
|
|
@@ -516,23 +565,26 @@ class Partner {
|
|
|
516
565
|
if (res_error) {
|
|
517
566
|
Logger({
|
|
518
567
|
level: "WARN",
|
|
519
|
-
message:
|
|
568
|
+
message: `Response Validation Warnnings for platform > Partner > getPrivateExtensions \n ${res_error}`,
|
|
520
569
|
});
|
|
521
|
-
Logger({ level: "WARN", message: res_error });
|
|
522
570
|
}
|
|
523
571
|
|
|
524
572
|
return response;
|
|
525
573
|
}
|
|
526
574
|
|
|
527
575
|
/**
|
|
528
|
-
* @param {
|
|
529
|
-
* @param {
|
|
530
|
-
* @returns {Promise<PublicExtension>} - Success response
|
|
576
|
+
* @param {PartnerPlatformValidator.GetPublicExtensionParam} arg - Arg object
|
|
577
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
578
|
+
* @returns {Promise<PartnerPlatformModel.PublicExtension>} - Success response
|
|
579
|
+
* @name getPublicExtension
|
|
531
580
|
* @summary: Get details of public extension
|
|
532
|
-
* @description: Use this API to get the details of public extensions
|
|
581
|
+
* @description: Use this API to get the details of public extensions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/getPublicExtension/).
|
|
533
582
|
*/
|
|
534
|
-
async getPublicExtension(
|
|
535
|
-
|
|
583
|
+
async getPublicExtension(
|
|
584
|
+
{ extensionId } = {},
|
|
585
|
+
{ headers } = { headers: false }
|
|
586
|
+
) {
|
|
587
|
+
const { error } = PartnerPlatformValidator.getPublicExtension().validate(
|
|
536
588
|
{
|
|
537
589
|
extensionId,
|
|
538
590
|
},
|
|
@@ -543,7 +595,9 @@ class Partner {
|
|
|
543
595
|
}
|
|
544
596
|
|
|
545
597
|
// Showing warrnings if extra unknown parameters are found
|
|
546
|
-
const {
|
|
598
|
+
const {
|
|
599
|
+
error: warrning,
|
|
600
|
+
} = PartnerPlatformValidator.getPublicExtension().validate(
|
|
547
601
|
{
|
|
548
602
|
extensionId,
|
|
549
603
|
},
|
|
@@ -552,9 +606,8 @@ class Partner {
|
|
|
552
606
|
if (warrning) {
|
|
553
607
|
Logger({
|
|
554
608
|
level: "WARN",
|
|
555
|
-
message:
|
|
609
|
+
message: `Parameter Validation warrnings for platform > Partner > getPublicExtension \n ${warrning}`,
|
|
556
610
|
});
|
|
557
|
-
Logger({ level: "WARN", message: warrning });
|
|
558
611
|
}
|
|
559
612
|
|
|
560
613
|
const query_params = {};
|
|
@@ -567,12 +620,18 @@ class Partner {
|
|
|
567
620
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/public-extension/${extensionId}`,
|
|
568
621
|
query_params,
|
|
569
622
|
undefined,
|
|
570
|
-
xHeaders
|
|
623
|
+
xHeaders,
|
|
624
|
+
{ headers }
|
|
571
625
|
);
|
|
572
626
|
|
|
627
|
+
let responseData = response;
|
|
628
|
+
if (headers) {
|
|
629
|
+
responseData = response[0];
|
|
630
|
+
}
|
|
631
|
+
|
|
573
632
|
const {
|
|
574
633
|
error: res_error,
|
|
575
|
-
} =
|
|
634
|
+
} = PartnerPlatformModel.PublicExtension().validate(responseData, {
|
|
576
635
|
abortEarly: false,
|
|
577
636
|
allowUnknown: false,
|
|
578
637
|
});
|
|
@@ -580,24 +639,26 @@ class Partner {
|
|
|
580
639
|
if (res_error) {
|
|
581
640
|
Logger({
|
|
582
641
|
level: "WARN",
|
|
583
|
-
message:
|
|
642
|
+
message: `Response Validation Warnnings for platform > Partner > getPublicExtension \n ${res_error}`,
|
|
584
643
|
});
|
|
585
|
-
Logger({ level: "WARN", message: res_error });
|
|
586
644
|
}
|
|
587
645
|
|
|
588
646
|
return response;
|
|
589
647
|
}
|
|
590
648
|
|
|
591
649
|
/**
|
|
592
|
-
* @param {
|
|
593
|
-
* @param {
|
|
594
|
-
* @
|
|
595
|
-
* @
|
|
650
|
+
* @param {PartnerPlatformValidator.ModifyPartnerRequestParam} arg - Arg object
|
|
651
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
652
|
+
* @returns {Promise<PartnerPlatformModel.PartnerInviteDetails>} - Success response
|
|
653
|
+
* @name modifyPartnerRequest
|
|
596
654
|
* @summary: Act on the pending partner request
|
|
597
|
-
* @description: Use this API to approve or reject the pending partner request
|
|
655
|
+
* @description: Use this API to approve or reject the pending partner request - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/modifyPartnerRequest/).
|
|
598
656
|
*/
|
|
599
|
-
async modifyPartnerRequest(
|
|
600
|
-
|
|
657
|
+
async modifyPartnerRequest(
|
|
658
|
+
{ inviteId, body } = {},
|
|
659
|
+
{ headers } = { headers: false }
|
|
660
|
+
) {
|
|
661
|
+
const { error } = PartnerPlatformValidator.modifyPartnerRequest().validate(
|
|
601
662
|
{
|
|
602
663
|
inviteId,
|
|
603
664
|
body,
|
|
@@ -611,7 +672,7 @@ class Partner {
|
|
|
611
672
|
// Showing warrnings if extra unknown parameters are found
|
|
612
673
|
const {
|
|
613
674
|
error: warrning,
|
|
614
|
-
} =
|
|
675
|
+
} = PartnerPlatformValidator.modifyPartnerRequest().validate(
|
|
615
676
|
{
|
|
616
677
|
inviteId,
|
|
617
678
|
body,
|
|
@@ -621,9 +682,8 @@ class Partner {
|
|
|
621
682
|
if (warrning) {
|
|
622
683
|
Logger({
|
|
623
684
|
level: "WARN",
|
|
624
|
-
message:
|
|
685
|
+
message: `Parameter Validation warrnings for platform > Partner > modifyPartnerRequest \n ${warrning}`,
|
|
625
686
|
});
|
|
626
|
-
Logger({ level: "WARN", message: warrning });
|
|
627
687
|
}
|
|
628
688
|
|
|
629
689
|
const query_params = {};
|
|
@@ -636,12 +696,18 @@ class Partner {
|
|
|
636
696
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/partner-request/${inviteId}`,
|
|
637
697
|
query_params,
|
|
638
698
|
body,
|
|
639
|
-
xHeaders
|
|
699
|
+
xHeaders,
|
|
700
|
+
{ headers }
|
|
640
701
|
);
|
|
641
702
|
|
|
703
|
+
let responseData = response;
|
|
704
|
+
if (headers) {
|
|
705
|
+
responseData = response[0];
|
|
706
|
+
}
|
|
707
|
+
|
|
642
708
|
const {
|
|
643
709
|
error: res_error,
|
|
644
|
-
} =
|
|
710
|
+
} = PartnerPlatformModel.PartnerInviteDetails().validate(responseData, {
|
|
645
711
|
abortEarly: false,
|
|
646
712
|
allowUnknown: false,
|
|
647
713
|
});
|
|
@@ -649,23 +715,23 @@ class Partner {
|
|
|
649
715
|
if (res_error) {
|
|
650
716
|
Logger({
|
|
651
717
|
level: "WARN",
|
|
652
|
-
message:
|
|
718
|
+
message: `Response Validation Warnnings for platform > Partner > modifyPartnerRequest \n ${res_error}`,
|
|
653
719
|
});
|
|
654
|
-
Logger({ level: "WARN", message: res_error });
|
|
655
720
|
}
|
|
656
721
|
|
|
657
722
|
return response;
|
|
658
723
|
}
|
|
659
724
|
|
|
660
725
|
/**
|
|
661
|
-
* @param {
|
|
662
|
-
* @param {
|
|
663
|
-
* @returns {Promise<SetupProductRes>} - Success response
|
|
726
|
+
* @param {PartnerPlatformValidator.SetupProductsParam} arg - Arg object
|
|
727
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
728
|
+
* @returns {Promise<PartnerPlatformModel.SetupProductRes>} - Success response
|
|
729
|
+
* @name setupProducts
|
|
664
730
|
* @summary:
|
|
665
|
-
* @description: Use this API for setup
|
|
731
|
+
* @description: Use this API for setup - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/setupProducts/).
|
|
666
732
|
*/
|
|
667
|
-
async setupProducts({ requestId } = {}) {
|
|
668
|
-
const { error } =
|
|
733
|
+
async setupProducts({ requestId } = {}, { headers } = { headers: false }) {
|
|
734
|
+
const { error } = PartnerPlatformValidator.setupProducts().validate(
|
|
669
735
|
{
|
|
670
736
|
requestId,
|
|
671
737
|
},
|
|
@@ -676,7 +742,9 @@ class Partner {
|
|
|
676
742
|
}
|
|
677
743
|
|
|
678
744
|
// Showing warrnings if extra unknown parameters are found
|
|
679
|
-
const {
|
|
745
|
+
const {
|
|
746
|
+
error: warrning,
|
|
747
|
+
} = PartnerPlatformValidator.setupProducts().validate(
|
|
680
748
|
{
|
|
681
749
|
requestId,
|
|
682
750
|
},
|
|
@@ -685,9 +753,8 @@ class Partner {
|
|
|
685
753
|
if (warrning) {
|
|
686
754
|
Logger({
|
|
687
755
|
level: "WARN",
|
|
688
|
-
message:
|
|
756
|
+
message: `Parameter Validation warrnings for platform > Partner > setupProducts \n ${warrning}`,
|
|
689
757
|
});
|
|
690
|
-
Logger({ level: "WARN", message: warrning });
|
|
691
758
|
}
|
|
692
759
|
|
|
693
760
|
const query_params = {};
|
|
@@ -701,12 +768,18 @@ class Partner {
|
|
|
701
768
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/setup`,
|
|
702
769
|
query_params,
|
|
703
770
|
undefined,
|
|
704
|
-
xHeaders
|
|
771
|
+
xHeaders,
|
|
772
|
+
{ headers }
|
|
705
773
|
);
|
|
706
774
|
|
|
775
|
+
let responseData = response;
|
|
776
|
+
if (headers) {
|
|
777
|
+
responseData = response[0];
|
|
778
|
+
}
|
|
779
|
+
|
|
707
780
|
const {
|
|
708
781
|
error: res_error,
|
|
709
|
-
} =
|
|
782
|
+
} = PartnerPlatformModel.SetupProductRes().validate(responseData, {
|
|
710
783
|
abortEarly: false,
|
|
711
784
|
allowUnknown: false,
|
|
712
785
|
});
|
|
@@ -714,26 +787,26 @@ class Partner {
|
|
|
714
787
|
if (res_error) {
|
|
715
788
|
Logger({
|
|
716
789
|
level: "WARN",
|
|
717
|
-
message:
|
|
790
|
+
message: `Response Validation Warnnings for platform > Partner > setupProducts \n ${res_error}`,
|
|
718
791
|
});
|
|
719
|
-
Logger({ level: "WARN", message: res_error });
|
|
720
792
|
}
|
|
721
793
|
|
|
722
794
|
return response;
|
|
723
795
|
}
|
|
724
796
|
|
|
725
797
|
/**
|
|
726
|
-
* @param {
|
|
727
|
-
* @param {
|
|
728
|
-
* @
|
|
729
|
-
* @
|
|
730
|
-
* @param {SubscriptionRequest} arg.body
|
|
731
|
-
* @returns {Promise<SubscriptionRes>} - Success response
|
|
798
|
+
* @param {PartnerPlatformValidator.SubscribeExtensionParam} arg - Arg object
|
|
799
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
800
|
+
* @returns {Promise<PartnerPlatformModel.SubscriptionRes>} - Success response
|
|
801
|
+
* @name subscribeExtension
|
|
732
802
|
* @summary: Subscribe for extension plan
|
|
733
|
-
* @description: Use this API to select plan for paid extension
|
|
803
|
+
* @description: Use this API to select plan for paid extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/partner/subscribeExtension/).
|
|
734
804
|
*/
|
|
735
|
-
async subscribeExtension(
|
|
736
|
-
|
|
805
|
+
async subscribeExtension(
|
|
806
|
+
{ entity, extensionId, entityId, body } = {},
|
|
807
|
+
{ headers } = { headers: false }
|
|
808
|
+
) {
|
|
809
|
+
const { error } = PartnerPlatformValidator.subscribeExtension().validate(
|
|
737
810
|
{
|
|
738
811
|
entity,
|
|
739
812
|
extensionId,
|
|
@@ -747,7 +820,9 @@ class Partner {
|
|
|
747
820
|
}
|
|
748
821
|
|
|
749
822
|
// Showing warrnings if extra unknown parameters are found
|
|
750
|
-
const {
|
|
823
|
+
const {
|
|
824
|
+
error: warrning,
|
|
825
|
+
} = PartnerPlatformValidator.subscribeExtension().validate(
|
|
751
826
|
{
|
|
752
827
|
entity,
|
|
753
828
|
extensionId,
|
|
@@ -759,9 +834,8 @@ class Partner {
|
|
|
759
834
|
if (warrning) {
|
|
760
835
|
Logger({
|
|
761
836
|
level: "WARN",
|
|
762
|
-
message:
|
|
837
|
+
message: `Parameter Validation warrnings for platform > Partner > subscribeExtension \n ${warrning}`,
|
|
763
838
|
});
|
|
764
|
-
Logger({ level: "WARN", message: warrning });
|
|
765
839
|
}
|
|
766
840
|
|
|
767
841
|
const query_params = {};
|
|
@@ -774,12 +848,18 @@ class Partner {
|
|
|
774
848
|
`/service/platform/partners/v1.0/company/${this.config.companyId}/extension/${extensionId}/${entity}/${entityId}/charge_consent`,
|
|
775
849
|
query_params,
|
|
776
850
|
body,
|
|
777
|
-
xHeaders
|
|
851
|
+
xHeaders,
|
|
852
|
+
{ headers }
|
|
778
853
|
);
|
|
779
854
|
|
|
855
|
+
let responseData = response;
|
|
856
|
+
if (headers) {
|
|
857
|
+
responseData = response[0];
|
|
858
|
+
}
|
|
859
|
+
|
|
780
860
|
const {
|
|
781
861
|
error: res_error,
|
|
782
|
-
} =
|
|
862
|
+
} = PartnerPlatformModel.SubscriptionRes().validate(responseData, {
|
|
783
863
|
abortEarly: false,
|
|
784
864
|
allowUnknown: false,
|
|
785
865
|
});
|
|
@@ -787,9 +867,8 @@ class Partner {
|
|
|
787
867
|
if (res_error) {
|
|
788
868
|
Logger({
|
|
789
869
|
level: "WARN",
|
|
790
|
-
message:
|
|
870
|
+
message: `Response Validation Warnnings for platform > Partner > subscribeExtension \n ${res_error}`,
|
|
791
871
|
});
|
|
792
|
-
Logger({ level: "WARN", message: res_error });
|
|
793
872
|
}
|
|
794
873
|
|
|
795
874
|
return response;
|