@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.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 +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- 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 +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- 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/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- 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 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
class User {
|
|
11
12
|
constructor(_conf) {
|
|
@@ -55,6 +56,8 @@ class User {
|
|
|
55
56
|
"/service/application/user/authentication/v1.0/otp/mobile/send",
|
|
56
57
|
sendResetPasswordEmail:
|
|
57
58
|
"/service/application/user/authentication/v1.0/login/password/reset",
|
|
59
|
+
sendResetPasswordMobile:
|
|
60
|
+
"/service/application/user/authentication/v1.0/login/password/mobile/reset",
|
|
58
61
|
sendResetToken:
|
|
59
62
|
"/service/application/user/authentication/v1.0/login/password/reset/token",
|
|
60
63
|
sendVerificationLinkToEmail:
|
|
@@ -109,14 +112,6 @@ class User {
|
|
|
109
112
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
110
113
|
{ responseHeaders } = { responseHeaders: false }
|
|
111
114
|
) {
|
|
112
|
-
let invalidInput = [];
|
|
113
|
-
if (invalidInput.length) {
|
|
114
|
-
const error = new Error();
|
|
115
|
-
error.message = "Missing required field";
|
|
116
|
-
error.details = invalidInput;
|
|
117
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
115
|
const query_params = {};
|
|
121
116
|
query_params["platform"] = platform;
|
|
122
117
|
|
|
@@ -155,14 +150,6 @@ class User {
|
|
|
155
150
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
156
151
|
{ responseHeaders } = { responseHeaders: false }
|
|
157
152
|
) {
|
|
158
|
-
let invalidInput = [];
|
|
159
|
-
if (invalidInput.length) {
|
|
160
|
-
const error = new Error();
|
|
161
|
-
error.message = "Missing required field";
|
|
162
|
-
error.details = invalidInput;
|
|
163
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
164
|
-
}
|
|
165
|
-
|
|
166
153
|
const query_params = {};
|
|
167
154
|
query_params["platform"] = platform;
|
|
168
155
|
|
|
@@ -203,39 +190,6 @@ class User {
|
|
|
203
190
|
},
|
|
204
191
|
{ responseHeaders } = { responseHeaders: false }
|
|
205
192
|
) {
|
|
206
|
-
let invalidInput = [];
|
|
207
|
-
|
|
208
|
-
if (!active) {
|
|
209
|
-
invalidInput.push({
|
|
210
|
-
message: `The 'active' field is required.`,
|
|
211
|
-
path: ["active"],
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
if (!primary) {
|
|
215
|
-
invalidInput.push({
|
|
216
|
-
message: `The 'primary' field is required.`,
|
|
217
|
-
path: ["primary"],
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
if (!verified) {
|
|
221
|
-
invalidInput.push({
|
|
222
|
-
message: `The 'verified' field is required.`,
|
|
223
|
-
path: ["verified"],
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
if (!email) {
|
|
227
|
-
invalidInput.push({
|
|
228
|
-
message: `The 'email' field is required.`,
|
|
229
|
-
path: ["email"],
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
if (invalidInput.length) {
|
|
233
|
-
const error = new Error();
|
|
234
|
-
error.message = "Missing required field";
|
|
235
|
-
error.details = invalidInput;
|
|
236
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
237
|
-
}
|
|
238
|
-
|
|
239
193
|
const query_params = {};
|
|
240
194
|
query_params["platform"] = platform;
|
|
241
195
|
query_params["active"] = active;
|
|
@@ -286,45 +240,6 @@ class User {
|
|
|
286
240
|
} = { requestHeaders: {} },
|
|
287
241
|
{ responseHeaders } = { responseHeaders: false }
|
|
288
242
|
) {
|
|
289
|
-
let invalidInput = [];
|
|
290
|
-
|
|
291
|
-
if (!active) {
|
|
292
|
-
invalidInput.push({
|
|
293
|
-
message: `The 'active' field is required.`,
|
|
294
|
-
path: ["active"],
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
if (!primary) {
|
|
298
|
-
invalidInput.push({
|
|
299
|
-
message: `The 'primary' field is required.`,
|
|
300
|
-
path: ["primary"],
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
if (!verified) {
|
|
304
|
-
invalidInput.push({
|
|
305
|
-
message: `The 'verified' field is required.`,
|
|
306
|
-
path: ["verified"],
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
if (!countryCode) {
|
|
310
|
-
invalidInput.push({
|
|
311
|
-
message: `The 'countryCode' field is required.`,
|
|
312
|
-
path: ["countryCode"],
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
if (!phone) {
|
|
316
|
-
invalidInput.push({
|
|
317
|
-
message: `The 'phone' field is required.`,
|
|
318
|
-
path: ["phone"],
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
if (invalidInput.length) {
|
|
322
|
-
const error = new Error();
|
|
323
|
-
error.message = "Missing required field";
|
|
324
|
-
error.details = invalidInput;
|
|
325
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
326
|
-
}
|
|
327
|
-
|
|
328
243
|
const query_params = {};
|
|
329
244
|
query_params["platform"] = platform;
|
|
330
245
|
query_params["active"] = active;
|
|
@@ -368,14 +283,6 @@ class User {
|
|
|
368
283
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
369
284
|
{ responseHeaders } = { responseHeaders: false }
|
|
370
285
|
) {
|
|
371
|
-
let invalidInput = [];
|
|
372
|
-
if (invalidInput.length) {
|
|
373
|
-
const error = new Error();
|
|
374
|
-
error.message = "Missing required field";
|
|
375
|
-
error.details = invalidInput;
|
|
376
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
377
|
-
}
|
|
378
|
-
|
|
379
286
|
const query_params = {};
|
|
380
287
|
|
|
381
288
|
const xHeaders = {};
|
|
@@ -413,14 +320,6 @@ class User {
|
|
|
413
320
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
414
321
|
{ responseHeaders } = { responseHeaders: false }
|
|
415
322
|
) {
|
|
416
|
-
let invalidInput = [];
|
|
417
|
-
if (invalidInput.length) {
|
|
418
|
-
const error = new Error();
|
|
419
|
-
error.message = "Missing required field";
|
|
420
|
-
error.details = invalidInput;
|
|
421
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
422
|
-
}
|
|
423
|
-
|
|
424
323
|
const query_params = {};
|
|
425
324
|
|
|
426
325
|
const xHeaders = {};
|
|
@@ -458,14 +357,6 @@ class User {
|
|
|
458
357
|
{ requestHeaders } = { requestHeaders: {} },
|
|
459
358
|
{ responseHeaders } = { responseHeaders: false }
|
|
460
359
|
) {
|
|
461
|
-
let invalidInput = [];
|
|
462
|
-
if (invalidInput.length) {
|
|
463
|
-
const error = new Error();
|
|
464
|
-
error.message = "Missing required field";
|
|
465
|
-
error.details = invalidInput;
|
|
466
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
467
|
-
}
|
|
468
|
-
|
|
469
360
|
const query_params = {};
|
|
470
361
|
|
|
471
362
|
const xHeaders = {};
|
|
@@ -503,14 +394,6 @@ class User {
|
|
|
503
394
|
{ requestHeaders } = { requestHeaders: {} },
|
|
504
395
|
{ responseHeaders } = { responseHeaders: false }
|
|
505
396
|
) {
|
|
506
|
-
let invalidInput = [];
|
|
507
|
-
if (invalidInput.length) {
|
|
508
|
-
const error = new Error();
|
|
509
|
-
error.message = "Missing required field";
|
|
510
|
-
error.details = invalidInput;
|
|
511
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
512
|
-
}
|
|
513
|
-
|
|
514
397
|
const query_params = {};
|
|
515
398
|
|
|
516
399
|
const xHeaders = {};
|
|
@@ -548,14 +431,6 @@ class User {
|
|
|
548
431
|
{ name, requestHeaders } = { requestHeaders: {} },
|
|
549
432
|
{ responseHeaders } = { responseHeaders: false }
|
|
550
433
|
) {
|
|
551
|
-
let invalidInput = [];
|
|
552
|
-
if (invalidInput.length) {
|
|
553
|
-
const error = new Error();
|
|
554
|
-
error.message = "Missing required field";
|
|
555
|
-
error.details = invalidInput;
|
|
556
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
557
|
-
}
|
|
558
|
-
|
|
559
434
|
const query_params = {};
|
|
560
435
|
query_params["name"] = name;
|
|
561
436
|
|
|
@@ -587,21 +462,13 @@ class User {
|
|
|
587
462
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
588
463
|
* @returns {Promise<UserAttributes>} - Success response
|
|
589
464
|
* @name getUserAttributes
|
|
590
|
-
* @summary: Get
|
|
465
|
+
* @summary: Get User Attributes
|
|
591
466
|
* @description: Get the list of user attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getUserAttributes/).
|
|
592
467
|
*/
|
|
593
468
|
async getUserAttributes(
|
|
594
469
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
595
470
|
{ responseHeaders } = { responseHeaders: false }
|
|
596
471
|
) {
|
|
597
|
-
let invalidInput = [];
|
|
598
|
-
if (invalidInput.length) {
|
|
599
|
-
const error = new Error();
|
|
600
|
-
error.message = "Missing required field";
|
|
601
|
-
error.details = invalidInput;
|
|
602
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
603
|
-
}
|
|
604
|
-
|
|
605
472
|
const query_params = {};
|
|
606
473
|
query_params["slug"] = slug;
|
|
607
474
|
|
|
@@ -640,14 +507,6 @@ class User {
|
|
|
640
507
|
{ requestHeaders } = { requestHeaders: {} },
|
|
641
508
|
{ responseHeaders } = { responseHeaders: false }
|
|
642
509
|
) {
|
|
643
|
-
let invalidInput = [];
|
|
644
|
-
if (invalidInput.length) {
|
|
645
|
-
const error = new Error();
|
|
646
|
-
error.message = "Missing required field";
|
|
647
|
-
error.details = invalidInput;
|
|
648
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
649
|
-
}
|
|
650
|
-
|
|
651
510
|
const query_params = {};
|
|
652
511
|
|
|
653
512
|
const xHeaders = {};
|
|
@@ -685,14 +544,6 @@ class User {
|
|
|
685
544
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
686
545
|
{ responseHeaders } = { responseHeaders: false }
|
|
687
546
|
) {
|
|
688
|
-
let invalidInput = [];
|
|
689
|
-
if (invalidInput.length) {
|
|
690
|
-
const error = new Error();
|
|
691
|
-
error.message = "Missing required field";
|
|
692
|
-
error.details = invalidInput;
|
|
693
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
694
|
-
}
|
|
695
|
-
|
|
696
547
|
const query_params = {};
|
|
697
548
|
query_params["platform"] = platform;
|
|
698
549
|
|
|
@@ -731,14 +582,6 @@ class User {
|
|
|
731
582
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
732
583
|
{ responseHeaders } = { responseHeaders: false }
|
|
733
584
|
) {
|
|
734
|
-
let invalidInput = [];
|
|
735
|
-
if (invalidInput.length) {
|
|
736
|
-
const error = new Error();
|
|
737
|
-
error.message = "Missing required field";
|
|
738
|
-
error.details = invalidInput;
|
|
739
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
740
|
-
}
|
|
741
|
-
|
|
742
585
|
const query_params = {};
|
|
743
586
|
|
|
744
587
|
const xHeaders = {};
|
|
@@ -776,14 +619,6 @@ class User {
|
|
|
776
619
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
777
620
|
{ responseHeaders } = { responseHeaders: false }
|
|
778
621
|
) {
|
|
779
|
-
let invalidInput = [];
|
|
780
|
-
if (invalidInput.length) {
|
|
781
|
-
const error = new Error();
|
|
782
|
-
error.message = "Missing required field";
|
|
783
|
-
error.details = invalidInput;
|
|
784
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
785
|
-
}
|
|
786
|
-
|
|
787
622
|
const query_params = {};
|
|
788
623
|
query_params["platform"] = platform;
|
|
789
624
|
|
|
@@ -822,14 +657,6 @@ class User {
|
|
|
822
657
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
823
658
|
{ responseHeaders } = { responseHeaders: false }
|
|
824
659
|
) {
|
|
825
|
-
let invalidInput = [];
|
|
826
|
-
if (invalidInput.length) {
|
|
827
|
-
const error = new Error();
|
|
828
|
-
error.message = "Missing required field";
|
|
829
|
-
error.details = invalidInput;
|
|
830
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
831
|
-
}
|
|
832
|
-
|
|
833
660
|
const query_params = {};
|
|
834
661
|
query_params["platform"] = platform;
|
|
835
662
|
|
|
@@ -868,14 +695,6 @@ class User {
|
|
|
868
695
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
869
696
|
{ responseHeaders } = { responseHeaders: false }
|
|
870
697
|
) {
|
|
871
|
-
let invalidInput = [];
|
|
872
|
-
if (invalidInput.length) {
|
|
873
|
-
const error = new Error();
|
|
874
|
-
error.message = "Missing required field";
|
|
875
|
-
error.details = invalidInput;
|
|
876
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
877
|
-
}
|
|
878
|
-
|
|
879
698
|
const query_params = {};
|
|
880
699
|
query_params["platform"] = platform;
|
|
881
700
|
|
|
@@ -914,14 +733,6 @@ class User {
|
|
|
914
733
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
915
734
|
{ responseHeaders } = { responseHeaders: false }
|
|
916
735
|
) {
|
|
917
|
-
let invalidInput = [];
|
|
918
|
-
if (invalidInput.length) {
|
|
919
|
-
const error = new Error();
|
|
920
|
-
error.message = "Missing required field";
|
|
921
|
-
error.details = invalidInput;
|
|
922
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
923
|
-
}
|
|
924
|
-
|
|
925
736
|
const query_params = {};
|
|
926
737
|
query_params["platform"] = platform;
|
|
927
738
|
|
|
@@ -951,7 +762,7 @@ class User {
|
|
|
951
762
|
/**
|
|
952
763
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
953
764
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
954
|
-
* @returns {Promise<
|
|
765
|
+
* @returns {Promise<SendOtp>} - Success response
|
|
955
766
|
* @name loginWithOTP
|
|
956
767
|
* @summary: Login with Mobile OTP
|
|
957
768
|
* @description: Allow users to log in using a one-time password sent to their mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithOTP/).
|
|
@@ -960,14 +771,6 @@ class User {
|
|
|
960
771
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
961
772
|
{ responseHeaders } = { responseHeaders: false }
|
|
962
773
|
) {
|
|
963
|
-
let invalidInput = [];
|
|
964
|
-
if (invalidInput.length) {
|
|
965
|
-
const error = new Error();
|
|
966
|
-
error.message = "Missing required field";
|
|
967
|
-
error.details = invalidInput;
|
|
968
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
969
|
-
}
|
|
970
|
-
|
|
971
774
|
const query_params = {};
|
|
972
775
|
query_params["platform"] = platform;
|
|
973
776
|
|
|
@@ -1006,14 +809,6 @@ class User {
|
|
|
1006
809
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1007
810
|
{ responseHeaders } = { responseHeaders: false }
|
|
1008
811
|
) {
|
|
1009
|
-
let invalidInput = [];
|
|
1010
|
-
if (invalidInput.length) {
|
|
1011
|
-
const error = new Error();
|
|
1012
|
-
error.message = "Missing required field";
|
|
1013
|
-
error.details = invalidInput;
|
|
1014
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
812
|
const query_params = {};
|
|
1018
813
|
|
|
1019
814
|
const xHeaders = {};
|
|
@@ -1051,14 +846,6 @@ class User {
|
|
|
1051
846
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1052
847
|
{ responseHeaders } = { responseHeaders: false }
|
|
1053
848
|
) {
|
|
1054
|
-
let invalidInput = [];
|
|
1055
|
-
if (invalidInput.length) {
|
|
1056
|
-
const error = new Error();
|
|
1057
|
-
error.message = "Missing required field";
|
|
1058
|
-
error.details = invalidInput;
|
|
1059
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
849
|
const query_params = {};
|
|
1063
850
|
|
|
1064
851
|
const xHeaders = {};
|
|
@@ -1096,14 +883,6 @@ class User {
|
|
|
1096
883
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1097
884
|
{ responseHeaders } = { responseHeaders: false }
|
|
1098
885
|
) {
|
|
1099
|
-
let invalidInput = [];
|
|
1100
|
-
if (invalidInput.length) {
|
|
1101
|
-
const error = new Error();
|
|
1102
|
-
error.message = "Missing required field";
|
|
1103
|
-
error.details = invalidInput;
|
|
1104
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
886
|
const query_params = {};
|
|
1108
887
|
query_params["platform"] = platform;
|
|
1109
888
|
|
|
@@ -1142,14 +921,6 @@ class User {
|
|
|
1142
921
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1143
922
|
{ responseHeaders } = { responseHeaders: false }
|
|
1144
923
|
) {
|
|
1145
|
-
let invalidInput = [];
|
|
1146
|
-
if (invalidInput.length) {
|
|
1147
|
-
const error = new Error();
|
|
1148
|
-
error.message = "Missing required field";
|
|
1149
|
-
error.details = invalidInput;
|
|
1150
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
924
|
const query_params = {};
|
|
1154
925
|
|
|
1155
926
|
const xHeaders = {};
|
|
@@ -1187,14 +958,6 @@ class User {
|
|
|
1187
958
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1188
959
|
{ responseHeaders } = { responseHeaders: false }
|
|
1189
960
|
) {
|
|
1190
|
-
let invalidInput = [];
|
|
1191
|
-
if (invalidInput.length) {
|
|
1192
|
-
const error = new Error();
|
|
1193
|
-
error.message = "Missing required field";
|
|
1194
|
-
error.details = invalidInput;
|
|
1195
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
961
|
const query_params = {};
|
|
1199
962
|
query_params["platform"] = platform;
|
|
1200
963
|
|
|
@@ -1224,7 +987,7 @@ class User {
|
|
|
1224
987
|
/**
|
|
1225
988
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1226
989
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1227
|
-
* @returns {Promise<
|
|
990
|
+
* @returns {Promise<SendOtpSuccess>} - Success response
|
|
1228
991
|
* @name sendForgotOTPOnMobile
|
|
1229
992
|
* @summary: Send mobile OTP for forgot-password
|
|
1230
993
|
* @description: Send a one-time password to the user's mobile for verification when resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/).
|
|
@@ -1233,14 +996,6 @@ class User {
|
|
|
1233
996
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1234
997
|
{ responseHeaders } = { responseHeaders: false }
|
|
1235
998
|
) {
|
|
1236
|
-
let invalidInput = [];
|
|
1237
|
-
if (invalidInput.length) {
|
|
1238
|
-
const error = new Error();
|
|
1239
|
-
error.message = "Missing required field";
|
|
1240
|
-
error.details = invalidInput;
|
|
1241
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
999
|
const query_params = {};
|
|
1245
1000
|
query_params["platform"] = platform;
|
|
1246
1001
|
|
|
@@ -1279,14 +1034,6 @@ class User {
|
|
|
1279
1034
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1280
1035
|
{ responseHeaders } = { responseHeaders: false }
|
|
1281
1036
|
) {
|
|
1282
|
-
let invalidInput = [];
|
|
1283
|
-
if (invalidInput.length) {
|
|
1284
|
-
const error = new Error();
|
|
1285
|
-
error.message = "Missing required field";
|
|
1286
|
-
error.details = invalidInput;
|
|
1287
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
1037
|
const query_params = {};
|
|
1291
1038
|
query_params["platform"] = platform;
|
|
1292
1039
|
|
|
@@ -1316,7 +1063,7 @@ class User {
|
|
|
1316
1063
|
/**
|
|
1317
1064
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1318
1065
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1319
|
-
* @returns {Promise<
|
|
1066
|
+
* @returns {Promise<SendOtpSuccess>} - Success response
|
|
1320
1067
|
* @name sendOTPOnMobile
|
|
1321
1068
|
* @summary: Send OTP on Mobile
|
|
1322
1069
|
* @description: Send a one-time password to the user's mobile for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnMobile/).
|
|
@@ -1325,14 +1072,6 @@ class User {
|
|
|
1325
1072
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1326
1073
|
{ responseHeaders } = { responseHeaders: false }
|
|
1327
1074
|
) {
|
|
1328
|
-
let invalidInput = [];
|
|
1329
|
-
if (invalidInput.length) {
|
|
1330
|
-
const error = new Error();
|
|
1331
|
-
error.message = "Missing required field";
|
|
1332
|
-
error.details = invalidInput;
|
|
1333
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
1075
|
const query_params = {};
|
|
1337
1076
|
query_params["platform"] = platform;
|
|
1338
1077
|
|
|
@@ -1371,14 +1110,44 @@ class User {
|
|
|
1371
1110
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1372
1111
|
{ responseHeaders } = { responseHeaders: false }
|
|
1373
1112
|
) {
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1113
|
+
const query_params = {};
|
|
1114
|
+
query_params["platform"] = platform;
|
|
1115
|
+
|
|
1116
|
+
const xHeaders = {};
|
|
1117
|
+
|
|
1118
|
+
const response = await ApplicationAPIClient.execute(
|
|
1119
|
+
this._conf,
|
|
1120
|
+
"post",
|
|
1121
|
+
constructUrl({
|
|
1122
|
+
url: this._urls["sendResetPasswordEmail"],
|
|
1123
|
+
params: {},
|
|
1124
|
+
}),
|
|
1125
|
+
query_params,
|
|
1126
|
+
body,
|
|
1127
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1128
|
+
{ responseHeaders }
|
|
1129
|
+
);
|
|
1130
|
+
|
|
1131
|
+
let responseData = response;
|
|
1132
|
+
if (responseHeaders) {
|
|
1133
|
+
responseData = response[0];
|
|
1380
1134
|
}
|
|
1381
1135
|
|
|
1136
|
+
return response;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1141
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1142
|
+
* @returns {Promise<any>} - Success response
|
|
1143
|
+
* @name sendResetPasswordMobile
|
|
1144
|
+
* @summary: Reset Password via Mobile
|
|
1145
|
+
* @description: Send a password reset link to the user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendResetPasswordMobile/).
|
|
1146
|
+
*/
|
|
1147
|
+
async sendResetPasswordMobile(
|
|
1148
|
+
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1149
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1150
|
+
) {
|
|
1382
1151
|
const query_params = {};
|
|
1383
1152
|
query_params["platform"] = platform;
|
|
1384
1153
|
|
|
@@ -1388,7 +1157,7 @@ class User {
|
|
|
1388
1157
|
this._conf,
|
|
1389
1158
|
"post",
|
|
1390
1159
|
constructUrl({
|
|
1391
|
-
url: this._urls["
|
|
1160
|
+
url: this._urls["sendResetPasswordMobile"],
|
|
1392
1161
|
params: {},
|
|
1393
1162
|
}),
|
|
1394
1163
|
query_params,
|
|
@@ -1417,14 +1186,6 @@ class User {
|
|
|
1417
1186
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1418
1187
|
{ responseHeaders } = { responseHeaders: false }
|
|
1419
1188
|
) {
|
|
1420
|
-
let invalidInput = [];
|
|
1421
|
-
if (invalidInput.length) {
|
|
1422
|
-
const error = new Error();
|
|
1423
|
-
error.message = "Missing required field";
|
|
1424
|
-
error.details = invalidInput;
|
|
1425
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
1189
|
const query_params = {};
|
|
1429
1190
|
|
|
1430
1191
|
const xHeaders = {};
|
|
@@ -1462,14 +1223,6 @@ class User {
|
|
|
1462
1223
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1463
1224
|
{ responseHeaders } = { responseHeaders: false }
|
|
1464
1225
|
) {
|
|
1465
|
-
let invalidInput = [];
|
|
1466
|
-
if (invalidInput.length) {
|
|
1467
|
-
const error = new Error();
|
|
1468
|
-
error.message = "Missing required field";
|
|
1469
|
-
error.details = invalidInput;
|
|
1470
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
1226
|
const query_params = {};
|
|
1474
1227
|
query_params["platform"] = platform;
|
|
1475
1228
|
|
|
@@ -1508,14 +1261,6 @@ class User {
|
|
|
1508
1261
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1509
1262
|
{ responseHeaders } = { responseHeaders: false }
|
|
1510
1263
|
) {
|
|
1511
|
-
let invalidInput = [];
|
|
1512
|
-
if (invalidInput.length) {
|
|
1513
|
-
const error = new Error();
|
|
1514
|
-
error.message = "Missing required field";
|
|
1515
|
-
error.details = invalidInput;
|
|
1516
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
1264
|
const query_params = {};
|
|
1520
1265
|
query_params["platform"] = platform;
|
|
1521
1266
|
|
|
@@ -1554,14 +1299,6 @@ class User {
|
|
|
1554
1299
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1555
1300
|
{ responseHeaders } = { responseHeaders: false }
|
|
1556
1301
|
) {
|
|
1557
|
-
let invalidInput = [];
|
|
1558
|
-
if (invalidInput.length) {
|
|
1559
|
-
const error = new Error();
|
|
1560
|
-
error.message = "Missing required field";
|
|
1561
|
-
error.details = invalidInput;
|
|
1562
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
1302
|
const query_params = {};
|
|
1566
1303
|
|
|
1567
1304
|
const xHeaders = {};
|
|
@@ -1599,14 +1336,6 @@ class User {
|
|
|
1599
1336
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1600
1337
|
{ responseHeaders } = { responseHeaders: false }
|
|
1601
1338
|
) {
|
|
1602
|
-
let invalidInput = [];
|
|
1603
|
-
if (invalidInput.length) {
|
|
1604
|
-
const error = new Error();
|
|
1605
|
-
error.message = "Missing required field";
|
|
1606
|
-
error.details = invalidInput;
|
|
1607
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
1339
|
const query_params = {};
|
|
1611
1340
|
|
|
1612
1341
|
const xHeaders = {};
|
|
@@ -1637,21 +1366,13 @@ class User {
|
|
|
1637
1366
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1638
1367
|
* @returns {Promise<VerifyEmailSuccess>} - Success response
|
|
1639
1368
|
* @name updatePassword
|
|
1640
|
-
* @summary: Update
|
|
1369
|
+
* @summary: Update password
|
|
1641
1370
|
* @description: Allow user to change their password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updatePassword/).
|
|
1642
1371
|
*/
|
|
1643
1372
|
async updatePassword(
|
|
1644
1373
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1645
1374
|
{ responseHeaders } = { responseHeaders: false }
|
|
1646
1375
|
) {
|
|
1647
|
-
let invalidInput = [];
|
|
1648
|
-
if (invalidInput.length) {
|
|
1649
|
-
const error = new Error();
|
|
1650
|
-
error.message = "Missing required field";
|
|
1651
|
-
error.details = invalidInput;
|
|
1652
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
1376
|
const query_params = {};
|
|
1656
1377
|
|
|
1657
1378
|
const xHeaders = {};
|
|
@@ -1689,14 +1410,6 @@ class User {
|
|
|
1689
1410
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1690
1411
|
{ responseHeaders } = { responseHeaders: false }
|
|
1691
1412
|
) {
|
|
1692
|
-
let invalidInput = [];
|
|
1693
|
-
if (invalidInput.length) {
|
|
1694
|
-
const error = new Error();
|
|
1695
|
-
error.message = "Missing required field";
|
|
1696
|
-
error.details = invalidInput;
|
|
1697
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
1413
|
const query_params = {};
|
|
1701
1414
|
query_params["platform"] = platform;
|
|
1702
1415
|
|
|
@@ -1728,21 +1441,13 @@ class User {
|
|
|
1728
1441
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1729
1442
|
* @returns {Promise<UserAttributes>} - Success response
|
|
1730
1443
|
* @name updateUserAttributes
|
|
1731
|
-
* @summary: Update
|
|
1444
|
+
* @summary: Update User Attributes
|
|
1732
1445
|
* @description: Update user attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updateUserAttributes/).
|
|
1733
1446
|
*/
|
|
1734
1447
|
async updateUserAttributes(
|
|
1735
1448
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1736
1449
|
{ responseHeaders } = { responseHeaders: false }
|
|
1737
1450
|
) {
|
|
1738
|
-
let invalidInput = [];
|
|
1739
|
-
if (invalidInput.length) {
|
|
1740
|
-
const error = new Error();
|
|
1741
|
-
error.message = "Missing required field";
|
|
1742
|
-
error.details = invalidInput;
|
|
1743
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
1451
|
const query_params = {};
|
|
1747
1452
|
|
|
1748
1453
|
const xHeaders = {};
|
|
@@ -1771,30 +1476,15 @@ class User {
|
|
|
1771
1476
|
/**
|
|
1772
1477
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1773
1478
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1774
|
-
* @returns {Promise<
|
|
1479
|
+
* @returns {Promise<UserExistsDetails>} - Success response
|
|
1775
1480
|
* @name userExists
|
|
1776
|
-
* @summary:
|
|
1481
|
+
* @summary: Chcek User Existence
|
|
1777
1482
|
* @description: Check whether user is already registered or not to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/userExists/).
|
|
1778
1483
|
*/
|
|
1779
1484
|
async userExists(
|
|
1780
1485
|
{ q, requestHeaders } = { requestHeaders: {} },
|
|
1781
1486
|
{ responseHeaders } = { responseHeaders: false }
|
|
1782
1487
|
) {
|
|
1783
|
-
let invalidInput = [];
|
|
1784
|
-
|
|
1785
|
-
if (!q) {
|
|
1786
|
-
invalidInput.push({
|
|
1787
|
-
message: `The 'q' field is required.`,
|
|
1788
|
-
path: ["q"],
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
if (invalidInput.length) {
|
|
1792
|
-
const error = new Error();
|
|
1793
|
-
error.message = "Missing required field";
|
|
1794
|
-
error.details = invalidInput;
|
|
1795
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
1488
|
const query_params = {};
|
|
1799
1489
|
query_params["q"] = q;
|
|
1800
1490
|
|
|
@@ -1833,14 +1523,6 @@ class User {
|
|
|
1833
1523
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1834
1524
|
{ responseHeaders } = { responseHeaders: false }
|
|
1835
1525
|
) {
|
|
1836
|
-
let invalidInput = [];
|
|
1837
|
-
if (invalidInput.length) {
|
|
1838
|
-
const error = new Error();
|
|
1839
|
-
error.message = "Missing required field";
|
|
1840
|
-
error.details = invalidInput;
|
|
1841
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
1526
|
const query_params = {};
|
|
1845
1527
|
|
|
1846
1528
|
const xHeaders = {};
|
|
@@ -1878,14 +1560,6 @@ class User {
|
|
|
1878
1560
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1879
1561
|
{ responseHeaders } = { responseHeaders: false }
|
|
1880
1562
|
) {
|
|
1881
|
-
let invalidInput = [];
|
|
1882
|
-
if (invalidInput.length) {
|
|
1883
|
-
const error = new Error();
|
|
1884
|
-
error.message = "Missing required field";
|
|
1885
|
-
error.details = invalidInput;
|
|
1886
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
1563
|
const query_params = {};
|
|
1890
1564
|
query_params["platform"] = platform;
|
|
1891
1565
|
|
|
@@ -1924,14 +1598,6 @@ class User {
|
|
|
1924
1598
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
1925
1599
|
{ responseHeaders } = { responseHeaders: false }
|
|
1926
1600
|
) {
|
|
1927
|
-
let invalidInput = [];
|
|
1928
|
-
if (invalidInput.length) {
|
|
1929
|
-
const error = new Error();
|
|
1930
|
-
error.message = "Missing required field";
|
|
1931
|
-
error.details = invalidInput;
|
|
1932
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
1601
|
const query_params = {};
|
|
1936
1602
|
query_params["platform"] = platform;
|
|
1937
1603
|
|
|
@@ -1970,14 +1636,6 @@ class User {
|
|
|
1970
1636
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1971
1637
|
{ responseHeaders } = { responseHeaders: false }
|
|
1972
1638
|
) {
|
|
1973
|
-
let invalidInput = [];
|
|
1974
|
-
if (invalidInput.length) {
|
|
1975
|
-
const error = new Error();
|
|
1976
|
-
error.message = "Missing required field";
|
|
1977
|
-
error.details = invalidInput;
|
|
1978
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
1639
|
const query_params = {};
|
|
1982
1640
|
|
|
1983
1641
|
const xHeaders = {};
|
|
@@ -2015,14 +1673,6 @@ class User {
|
|
|
2015
1673
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
2016
1674
|
{ responseHeaders } = { responseHeaders: false }
|
|
2017
1675
|
) {
|
|
2018
|
-
let invalidInput = [];
|
|
2019
|
-
if (invalidInput.length) {
|
|
2020
|
-
const error = new Error();
|
|
2021
|
-
error.message = "Missing required field";
|
|
2022
|
-
error.details = invalidInput;
|
|
2023
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
1676
|
const query_params = {};
|
|
2027
1677
|
query_params["platform"] = platform;
|
|
2028
1678
|
|
|
@@ -2054,21 +1704,13 @@ class User {
|
|
|
2054
1704
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2055
1705
|
* @returns {Promise<VerifyOtpSuccess>} - Success response
|
|
2056
1706
|
* @name verifyMobileOTP
|
|
2057
|
-
* @summary: Verify
|
|
1707
|
+
* @summary: Verify mobile OTP
|
|
2058
1708
|
* @description: Verify one-time password sent to user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileOTP/).
|
|
2059
1709
|
*/
|
|
2060
1710
|
async verifyMobileOTP(
|
|
2061
1711
|
{ body, platform, requestHeaders } = { requestHeaders: {} },
|
|
2062
1712
|
{ responseHeaders } = { responseHeaders: false }
|
|
2063
1713
|
) {
|
|
2064
|
-
let invalidInput = [];
|
|
2065
|
-
if (invalidInput.length) {
|
|
2066
|
-
const error = new Error();
|
|
2067
|
-
error.message = "Missing required field";
|
|
2068
|
-
error.details = invalidInput;
|
|
2069
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
1714
|
const query_params = {};
|
|
2073
1715
|
query_params["platform"] = platform;
|
|
2074
1716
|
|