@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
- package/sdk/application/Cart/CartApplicationClient.js +111 -1200
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
- package/sdk/application/Content/ContentApplicationClient.js +46 -990
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
- package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
- package/sdk/application/Order/OrderApplicationClient.js +52 -507
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +44 -1820
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5067 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1988 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
- package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1893 -623
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +924 -568
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +795 -7
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
3
|
-
FDKClientValidationError,
|
|
4
|
-
FDKResponseValidationError,
|
|
5
|
-
} = require("../../common/FDKError");
|
|
6
2
|
const constructUrl = require("../constructUrl");
|
|
7
3
|
const Paginator = require("../../common/Paginator");
|
|
8
|
-
const ShareApplicationValidator = require("./ShareApplicationValidator");
|
|
9
|
-
const ShareApplicationModel = require("./ShareApplicationModel");
|
|
10
|
-
const { Logger } = require("./../../common/Logger");
|
|
11
|
-
const Joi = require("joi");
|
|
12
4
|
|
|
13
5
|
class Share {
|
|
14
6
|
constructor(_conf) {
|
|
@@ -43,10 +35,9 @@ class Share {
|
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
/**
|
|
46
|
-
* @param {ShareApplicationValidator.CreateShortLinkParam} arg - Arg object.
|
|
47
38
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
48
39
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
49
|
-
* @returns {Promise<
|
|
40
|
+
* @returns {Promise<ShortLinkRes>} - Success response
|
|
50
41
|
* @name createShortLink
|
|
51
42
|
* @summary: Shorten URL
|
|
52
43
|
* @description: Creates a shortened version of a given URL for easier sharing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/createShortLink/).
|
|
@@ -55,28 +46,6 @@ class Share {
|
|
|
55
46
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
56
47
|
{ responseHeaders } = { responseHeaders: false }
|
|
57
48
|
) {
|
|
58
|
-
const { error } = ShareApplicationValidator.createShortLink().validate(
|
|
59
|
-
{ body },
|
|
60
|
-
{ abortEarly: false, allowUnknown: true }
|
|
61
|
-
);
|
|
62
|
-
if (error) {
|
|
63
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Showing warrnings if extra unknown parameters are found
|
|
67
|
-
const {
|
|
68
|
-
error: warrning,
|
|
69
|
-
} = ShareApplicationValidator.createShortLink().validate(
|
|
70
|
-
{ body },
|
|
71
|
-
{ abortEarly: false, allowUnknown: false }
|
|
72
|
-
);
|
|
73
|
-
if (warrning) {
|
|
74
|
-
Logger({
|
|
75
|
-
level: "WARN",
|
|
76
|
-
message: `Parameter Validation warrnings for application > Share > createShortLink \n ${warrning}`,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
49
|
const query_params = {};
|
|
81
50
|
|
|
82
51
|
const xHeaders = {};
|
|
@@ -99,32 +68,13 @@ class Share {
|
|
|
99
68
|
responseData = response[0];
|
|
100
69
|
}
|
|
101
70
|
|
|
102
|
-
const {
|
|
103
|
-
error: res_error,
|
|
104
|
-
} = ShareApplicationModel.ShortLinkRes().validate(responseData, {
|
|
105
|
-
abortEarly: false,
|
|
106
|
-
allowUnknown: true,
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
if (res_error) {
|
|
110
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
111
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
112
|
-
} else {
|
|
113
|
-
Logger({
|
|
114
|
-
level: "WARN",
|
|
115
|
-
message: `Response Validation Warnings for application > Share > createShortLink \n ${res_error}`,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
71
|
return response;
|
|
121
72
|
}
|
|
122
73
|
|
|
123
74
|
/**
|
|
124
|
-
* @param {ShareApplicationValidator.GetApplicationQRCodeParam} arg - Arg object.
|
|
125
75
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
126
76
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
127
|
-
* @returns {Promise<
|
|
77
|
+
* @returns {Promise<QRCodeResp>} - Success response
|
|
128
78
|
* @name getApplicationQRCode
|
|
129
79
|
* @summary: App QR code
|
|
130
80
|
* @description: Generates a QR code for the application for easy sharing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getApplicationQRCode/).
|
|
@@ -133,28 +83,6 @@ class Share {
|
|
|
133
83
|
{ requestHeaders } = { requestHeaders: {} },
|
|
134
84
|
{ responseHeaders } = { responseHeaders: false }
|
|
135
85
|
) {
|
|
136
|
-
const { error } = ShareApplicationValidator.getApplicationQRCode().validate(
|
|
137
|
-
{},
|
|
138
|
-
{ abortEarly: false, allowUnknown: true }
|
|
139
|
-
);
|
|
140
|
-
if (error) {
|
|
141
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Showing warrnings if extra unknown parameters are found
|
|
145
|
-
const {
|
|
146
|
-
error: warrning,
|
|
147
|
-
} = ShareApplicationValidator.getApplicationQRCode().validate(
|
|
148
|
-
{},
|
|
149
|
-
{ abortEarly: false, allowUnknown: false }
|
|
150
|
-
);
|
|
151
|
-
if (warrning) {
|
|
152
|
-
Logger({
|
|
153
|
-
level: "WARN",
|
|
154
|
-
message: `Parameter Validation warrnings for application > Share > getApplicationQRCode \n ${warrning}`,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
86
|
const query_params = {};
|
|
159
87
|
|
|
160
88
|
const xHeaders = {};
|
|
@@ -177,32 +105,13 @@ class Share {
|
|
|
177
105
|
responseData = response[0];
|
|
178
106
|
}
|
|
179
107
|
|
|
180
|
-
const {
|
|
181
|
-
error: res_error,
|
|
182
|
-
} = ShareApplicationModel.QRCodeResp().validate(responseData, {
|
|
183
|
-
abortEarly: false,
|
|
184
|
-
allowUnknown: true,
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
if (res_error) {
|
|
188
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
189
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
190
|
-
} else {
|
|
191
|
-
Logger({
|
|
192
|
-
level: "WARN",
|
|
193
|
-
message: `Response Validation Warnings for application > Share > getApplicationQRCode \n ${res_error}`,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
108
|
return response;
|
|
199
109
|
}
|
|
200
110
|
|
|
201
111
|
/**
|
|
202
|
-
* @param {ShareApplicationValidator.GetCollectionQRCodeBySlugParam} arg - Arg object.
|
|
203
112
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
204
113
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
205
|
-
* @returns {Promise<
|
|
114
|
+
* @returns {Promise<QRCodeResp>} - Success response
|
|
206
115
|
* @name getCollectionQRCodeBySlug
|
|
207
116
|
* @summary: Collection QR code
|
|
208
117
|
* @description: Generates a QR code for a specific product collection using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getCollectionQRCodeBySlug/).
|
|
@@ -211,30 +120,6 @@ class Share {
|
|
|
211
120
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
212
121
|
{ responseHeaders } = { responseHeaders: false }
|
|
213
122
|
) {
|
|
214
|
-
const {
|
|
215
|
-
error,
|
|
216
|
-
} = ShareApplicationValidator.getCollectionQRCodeBySlug().validate(
|
|
217
|
-
{ slug },
|
|
218
|
-
{ abortEarly: false, allowUnknown: true }
|
|
219
|
-
);
|
|
220
|
-
if (error) {
|
|
221
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
// Showing warrnings if extra unknown parameters are found
|
|
225
|
-
const {
|
|
226
|
-
error: warrning,
|
|
227
|
-
} = ShareApplicationValidator.getCollectionQRCodeBySlug().validate(
|
|
228
|
-
{ slug },
|
|
229
|
-
{ abortEarly: false, allowUnknown: false }
|
|
230
|
-
);
|
|
231
|
-
if (warrning) {
|
|
232
|
-
Logger({
|
|
233
|
-
level: "WARN",
|
|
234
|
-
message: `Parameter Validation warrnings for application > Share > getCollectionQRCodeBySlug \n ${warrning}`,
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
|
|
238
123
|
const query_params = {};
|
|
239
124
|
|
|
240
125
|
const xHeaders = {};
|
|
@@ -257,33 +142,13 @@ class Share {
|
|
|
257
142
|
responseData = response[0];
|
|
258
143
|
}
|
|
259
144
|
|
|
260
|
-
const {
|
|
261
|
-
error: res_error,
|
|
262
|
-
} = ShareApplicationModel.QRCodeResp().validate(responseData, {
|
|
263
|
-
abortEarly: false,
|
|
264
|
-
allowUnknown: true,
|
|
265
|
-
});
|
|
266
|
-
|
|
267
|
-
if (res_error) {
|
|
268
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
269
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
270
|
-
} else {
|
|
271
|
-
Logger({
|
|
272
|
-
level: "WARN",
|
|
273
|
-
message: `Response Validation Warnings for application > Share > getCollectionQRCodeBySlug \n ${res_error}`,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
145
|
return response;
|
|
279
146
|
}
|
|
280
147
|
|
|
281
148
|
/**
|
|
282
|
-
* @param {ShareApplicationValidator.GetOriginalShortLinkByHashParam} arg -
|
|
283
|
-
* Arg object.
|
|
284
149
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
285
150
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
286
|
-
* @returns {Promise<
|
|
151
|
+
* @returns {Promise<ShortLinkRes>} - Success response
|
|
287
152
|
* @name getOriginalShortLinkByHash
|
|
288
153
|
* @summary: Original URL
|
|
289
154
|
* @description: Retrieve the original link from a short-link by using a hash value. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getOriginalShortLinkByHash/).
|
|
@@ -292,30 +157,6 @@ class Share {
|
|
|
292
157
|
{ hash, requestHeaders } = { requestHeaders: {} },
|
|
293
158
|
{ responseHeaders } = { responseHeaders: false }
|
|
294
159
|
) {
|
|
295
|
-
const {
|
|
296
|
-
error,
|
|
297
|
-
} = ShareApplicationValidator.getOriginalShortLinkByHash().validate(
|
|
298
|
-
{ hash },
|
|
299
|
-
{ abortEarly: false, allowUnknown: true }
|
|
300
|
-
);
|
|
301
|
-
if (error) {
|
|
302
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// Showing warrnings if extra unknown parameters are found
|
|
306
|
-
const {
|
|
307
|
-
error: warrning,
|
|
308
|
-
} = ShareApplicationValidator.getOriginalShortLinkByHash().validate(
|
|
309
|
-
{ hash },
|
|
310
|
-
{ abortEarly: false, allowUnknown: false }
|
|
311
|
-
);
|
|
312
|
-
if (warrning) {
|
|
313
|
-
Logger({
|
|
314
|
-
level: "WARN",
|
|
315
|
-
message: `Parameter Validation warrnings for application > Share > getOriginalShortLinkByHash \n ${warrning}`,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
|
|
319
160
|
const query_params = {};
|
|
320
161
|
|
|
321
162
|
const xHeaders = {};
|
|
@@ -338,32 +179,13 @@ class Share {
|
|
|
338
179
|
responseData = response[0];
|
|
339
180
|
}
|
|
340
181
|
|
|
341
|
-
const {
|
|
342
|
-
error: res_error,
|
|
343
|
-
} = ShareApplicationModel.ShortLinkRes().validate(responseData, {
|
|
344
|
-
abortEarly: false,
|
|
345
|
-
allowUnknown: true,
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
if (res_error) {
|
|
349
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
350
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
351
|
-
} else {
|
|
352
|
-
Logger({
|
|
353
|
-
level: "WARN",
|
|
354
|
-
message: `Response Validation Warnings for application > Share > getOriginalShortLinkByHash \n ${res_error}`,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
182
|
return response;
|
|
360
183
|
}
|
|
361
184
|
|
|
362
185
|
/**
|
|
363
|
-
* @param {ShareApplicationValidator.GetProductQRCodeBySlugParam} arg - Arg object.
|
|
364
186
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
365
187
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
366
|
-
* @returns {Promise<
|
|
188
|
+
* @returns {Promise<QRCodeResp>} - Success response
|
|
367
189
|
* @name getProductQRCodeBySlug
|
|
368
190
|
* @summary: Product QR code
|
|
369
191
|
* @description: Creates a QR code for a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getProductQRCodeBySlug/).
|
|
@@ -372,30 +194,6 @@ class Share {
|
|
|
372
194
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
373
195
|
{ responseHeaders } = { responseHeaders: false }
|
|
374
196
|
) {
|
|
375
|
-
const {
|
|
376
|
-
error,
|
|
377
|
-
} = ShareApplicationValidator.getProductQRCodeBySlug().validate(
|
|
378
|
-
{ slug },
|
|
379
|
-
{ abortEarly: false, allowUnknown: true }
|
|
380
|
-
);
|
|
381
|
-
if (error) {
|
|
382
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
// Showing warrnings if extra unknown parameters are found
|
|
386
|
-
const {
|
|
387
|
-
error: warrning,
|
|
388
|
-
} = ShareApplicationValidator.getProductQRCodeBySlug().validate(
|
|
389
|
-
{ slug },
|
|
390
|
-
{ abortEarly: false, allowUnknown: false }
|
|
391
|
-
);
|
|
392
|
-
if (warrning) {
|
|
393
|
-
Logger({
|
|
394
|
-
level: "WARN",
|
|
395
|
-
message: `Parameter Validation warrnings for application > Share > getProductQRCodeBySlug \n ${warrning}`,
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
|
|
399
197
|
const query_params = {};
|
|
400
198
|
|
|
401
199
|
const xHeaders = {};
|
|
@@ -418,32 +216,13 @@ class Share {
|
|
|
418
216
|
responseData = response[0];
|
|
419
217
|
}
|
|
420
218
|
|
|
421
|
-
const {
|
|
422
|
-
error: res_error,
|
|
423
|
-
} = ShareApplicationModel.QRCodeResp().validate(responseData, {
|
|
424
|
-
abortEarly: false,
|
|
425
|
-
allowUnknown: true,
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
if (res_error) {
|
|
429
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
430
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
431
|
-
} else {
|
|
432
|
-
Logger({
|
|
433
|
-
level: "WARN",
|
|
434
|
-
message: `Response Validation Warnings for application > Share > getProductQRCodeBySlug \n ${res_error}`,
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
219
|
return response;
|
|
440
220
|
}
|
|
441
221
|
|
|
442
222
|
/**
|
|
443
|
-
* @param {ShareApplicationValidator.GetShortLinkByHashParam} arg - Arg object.
|
|
444
223
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
445
224
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
446
|
-
* @returns {Promise<
|
|
225
|
+
* @returns {Promise<ShortLinkRes>} - Success response
|
|
447
226
|
* @name getShortLinkByHash
|
|
448
227
|
* @summary: Get short link
|
|
449
228
|
* @description: Retrieves a previously created short link using its hash identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getShortLinkByHash/).
|
|
@@ -452,28 +231,6 @@ class Share {
|
|
|
452
231
|
{ hash, requestHeaders } = { requestHeaders: {} },
|
|
453
232
|
{ responseHeaders } = { responseHeaders: false }
|
|
454
233
|
) {
|
|
455
|
-
const { error } = ShareApplicationValidator.getShortLinkByHash().validate(
|
|
456
|
-
{ hash },
|
|
457
|
-
{ abortEarly: false, allowUnknown: true }
|
|
458
|
-
);
|
|
459
|
-
if (error) {
|
|
460
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
// Showing warrnings if extra unknown parameters are found
|
|
464
|
-
const {
|
|
465
|
-
error: warrning,
|
|
466
|
-
} = ShareApplicationValidator.getShortLinkByHash().validate(
|
|
467
|
-
{ hash },
|
|
468
|
-
{ abortEarly: false, allowUnknown: false }
|
|
469
|
-
);
|
|
470
|
-
if (warrning) {
|
|
471
|
-
Logger({
|
|
472
|
-
level: "WARN",
|
|
473
|
-
message: `Parameter Validation warrnings for application > Share > getShortLinkByHash \n ${warrning}`,
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
|
|
477
234
|
const query_params = {};
|
|
478
235
|
|
|
479
236
|
const xHeaders = {};
|
|
@@ -496,32 +253,13 @@ class Share {
|
|
|
496
253
|
responseData = response[0];
|
|
497
254
|
}
|
|
498
255
|
|
|
499
|
-
const {
|
|
500
|
-
error: res_error,
|
|
501
|
-
} = ShareApplicationModel.ShortLinkRes().validate(responseData, {
|
|
502
|
-
abortEarly: false,
|
|
503
|
-
allowUnknown: true,
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
if (res_error) {
|
|
507
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
508
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
509
|
-
} else {
|
|
510
|
-
Logger({
|
|
511
|
-
level: "WARN",
|
|
512
|
-
message: `Response Validation Warnings for application > Share > getShortLinkByHash \n ${res_error}`,
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
256
|
return response;
|
|
518
257
|
}
|
|
519
258
|
|
|
520
259
|
/**
|
|
521
|
-
* @param {ShareApplicationValidator.GetUrlQRCodeParam} arg - Arg object.
|
|
522
260
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
523
261
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
524
|
-
* @returns {Promise<
|
|
262
|
+
* @returns {Promise<QRCodeResp>} - Success response
|
|
525
263
|
* @name getUrlQRCode
|
|
526
264
|
* @summary: URL to QR code
|
|
527
265
|
* @description: Converts a given URL into a scannable QR code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getUrlQRCode/).
|
|
@@ -530,28 +268,6 @@ class Share {
|
|
|
530
268
|
{ url, requestHeaders } = { requestHeaders: {} },
|
|
531
269
|
{ responseHeaders } = { responseHeaders: false }
|
|
532
270
|
) {
|
|
533
|
-
const { error } = ShareApplicationValidator.getUrlQRCode().validate(
|
|
534
|
-
{ url },
|
|
535
|
-
{ abortEarly: false, allowUnknown: true }
|
|
536
|
-
);
|
|
537
|
-
if (error) {
|
|
538
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
// Showing warrnings if extra unknown parameters are found
|
|
542
|
-
const {
|
|
543
|
-
error: warrning,
|
|
544
|
-
} = ShareApplicationValidator.getUrlQRCode().validate(
|
|
545
|
-
{ url },
|
|
546
|
-
{ abortEarly: false, allowUnknown: false }
|
|
547
|
-
);
|
|
548
|
-
if (warrning) {
|
|
549
|
-
Logger({
|
|
550
|
-
level: "WARN",
|
|
551
|
-
message: `Parameter Validation warrnings for application > Share > getUrlQRCode \n ${warrning}`,
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
|
|
555
271
|
const query_params = {};
|
|
556
272
|
query_params["url"] = url;
|
|
557
273
|
|
|
@@ -575,24 +291,6 @@ class Share {
|
|
|
575
291
|
responseData = response[0];
|
|
576
292
|
}
|
|
577
293
|
|
|
578
|
-
const {
|
|
579
|
-
error: res_error,
|
|
580
|
-
} = ShareApplicationModel.QRCodeResp().validate(responseData, {
|
|
581
|
-
abortEarly: false,
|
|
582
|
-
allowUnknown: true,
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
if (res_error) {
|
|
586
|
-
if (this._conf.options.strictResponseCheck === true) {
|
|
587
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
588
|
-
} else {
|
|
589
|
-
Logger({
|
|
590
|
-
level: "WARN",
|
|
591
|
-
message: `Response Validation Warnings for application > Share > getUrlQRCode \n ${res_error}`,
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
294
|
return response;
|
|
597
295
|
}
|
|
598
296
|
}
|
|
@@ -11,45 +11,39 @@ declare class Theme {
|
|
|
11
11
|
_urls: {};
|
|
12
12
|
updateUrls(urls: any): void;
|
|
13
13
|
/**
|
|
14
|
-
* @param {ThemeApplicationValidator.GetAllPagesParam} arg - Arg object.
|
|
15
14
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
16
15
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
17
|
-
* @returns {Promise<
|
|
16
|
+
* @returns {Promise<AllAvailablePageSchema>} - Success response
|
|
18
17
|
* @name getAllPages
|
|
19
18
|
* @summary: List pages
|
|
20
19
|
* @description: Get all page level configs, sections and seo data of a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAllPages/).
|
|
21
20
|
*/
|
|
22
|
-
getAllPages({ themeId, requestHeaders }?:
|
|
21
|
+
getAllPages({ themeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AllAvailablePageSchema>;
|
|
23
22
|
/**
|
|
24
|
-
* @param {ThemeApplicationValidator.GetAppliedThemeParam} arg - Arg object.
|
|
25
23
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
24
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
27
|
-
* @returns {Promise<
|
|
25
|
+
* @returns {Promise<ThemesSchema>} - Success response
|
|
28
26
|
* @name getAppliedTheme
|
|
29
27
|
* @summary: Get applied theme
|
|
30
28
|
* @description: Gets the theme configuration and template details of a theme applied to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAppliedTheme/).
|
|
31
29
|
*/
|
|
32
|
-
getAppliedTheme({ requestHeaders }?:
|
|
30
|
+
getAppliedTheme({ filters, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
33
31
|
/**
|
|
34
|
-
* @param {ThemeApplicationValidator.GetPageParam} arg - Arg object.
|
|
35
32
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
33
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
37
|
-
* @returns {Promise<
|
|
34
|
+
* @returns {Promise<AvailablePageSchema>} - Success response
|
|
38
35
|
* @name getPage
|
|
39
36
|
* @summary: Get theme page
|
|
40
37
|
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getPage/).
|
|
41
38
|
*/
|
|
42
|
-
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, requestHeaders, }?:
|
|
39
|
+
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AvailablePageSchema>;
|
|
43
40
|
/**
|
|
44
|
-
* @param {ThemeApplicationValidator.GetThemeForPreviewParam} arg - Arg object.
|
|
45
41
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
46
42
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
47
|
-
* @returns {Promise<
|
|
43
|
+
* @returns {Promise<ThemesSchema>} - Success response
|
|
48
44
|
* @name getThemeForPreview
|
|
49
45
|
* @summary: Get theme for preview
|
|
50
46
|
* @description: Gets the theme configuration and template details of a theme by theme id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getThemeForPreview/).
|
|
51
47
|
*/
|
|
52
|
-
getThemeForPreview({ themeId, requestHeaders }?:
|
|
48
|
+
getThemeForPreview({ themeId, filters, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
53
49
|
}
|
|
54
|
-
import ThemeApplicationValidator = require("./ThemeApplicationValidator");
|
|
55
|
-
import ThemeApplicationModel = require("./ThemeApplicationModel");
|