@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
|
@@ -16,12 +16,12 @@ declare class Rewards {
|
|
|
16
16
|
/**
|
|
17
17
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
18
18
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
19
|
-
* @returns {Promise<
|
|
19
|
+
* @returns {Promise<CatalogueOrderDetails>} - Success response
|
|
20
20
|
* @name catalogueOrder
|
|
21
21
|
* @summary: Order from catalogue
|
|
22
|
-
* @description: Place
|
|
22
|
+
* @description: Place a reward on order items available in the catalogue. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/catalogueOrder/).
|
|
23
23
|
*/
|
|
24
|
-
catalogueOrder({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
24
|
+
catalogueOrder({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CatalogueOrderDetails>;
|
|
25
25
|
/**
|
|
26
26
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
27
27
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -30,50 +30,50 @@ declare class Rewards {
|
|
|
30
30
|
* @summary: Get specific offer
|
|
31
31
|
* @description: Retrieves detailed information about an offer by its name. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getOfferByName/).
|
|
32
32
|
*/
|
|
33
|
-
getOfferByName({ name, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Offer>;
|
|
33
|
+
getOfferByName({ name, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Offer>;
|
|
34
34
|
/**
|
|
35
35
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
36
36
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
37
|
-
* @returns {Promise<
|
|
37
|
+
* @returns {Promise<OrderDiscountDetails>} - Success response
|
|
38
38
|
* @name getOrderDiscount
|
|
39
39
|
* @summary: Order discount
|
|
40
40
|
* @description: Retrieve the discount applied to a specific order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getOrderDiscount/).
|
|
41
41
|
*/
|
|
42
|
-
getOrderDiscount({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
42
|
+
getOrderDiscount({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderDiscountDetails>;
|
|
43
43
|
/**
|
|
44
44
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
45
45
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
46
|
-
* @returns {Promise<
|
|
46
|
+
* @returns {Promise<PointsDetails>} - Success response
|
|
47
47
|
* @name getUserPoints
|
|
48
48
|
* @summary: Current points
|
|
49
49
|
* @description: Retrieves the current reward points balance for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getUserPoints/).
|
|
50
50
|
*/
|
|
51
|
-
getUserPoints({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
51
|
+
getUserPoints({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PointsDetails>;
|
|
52
52
|
/**
|
|
53
53
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
54
54
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
55
|
-
* @returns {Promise<
|
|
55
|
+
* @returns {Promise<PointsHistoryDetails>} - Success response
|
|
56
56
|
* @name getUserPointsHistory
|
|
57
57
|
* @summary: Points history
|
|
58
58
|
* @description: Gets the historical data of points earned or spent by the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getUserPointsHistory/).
|
|
59
59
|
*/
|
|
60
|
-
getUserPointsHistory({ pageId, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
60
|
+
getUserPointsHistory({ pageId, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PointsHistoryDetails>;
|
|
61
61
|
/**
|
|
62
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
63
63
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
64
|
-
* @returns {Promise<
|
|
64
|
+
* @returns {Promise<ReferralDetails>} - Success response
|
|
65
65
|
* @name getUserReferralDetails
|
|
66
66
|
* @summary: Referral details
|
|
67
67
|
* @description: Gets the details of the user’s referral status and codes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getUserReferralDetails/).
|
|
68
68
|
*/
|
|
69
|
-
getUserReferralDetails({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
69
|
+
getUserReferralDetails({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ReferralDetails>;
|
|
70
70
|
/**
|
|
71
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
72
72
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
73
|
-
* @returns {Promise<
|
|
73
|
+
* @returns {Promise<RedeemReferralCodeDetails>} - Success response
|
|
74
74
|
* @name redeemReferralCode
|
|
75
75
|
* @summary: Redeem code
|
|
76
76
|
* @description: Applies a referral code to earn or redeem rewards. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/redeemReferralCode/).
|
|
77
77
|
*/
|
|
78
|
-
redeemReferralCode({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<
|
|
78
|
+
redeemReferralCode({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<RedeemReferralCodeDetails>;
|
|
79
79
|
}
|
|
@@ -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 Rewards {
|
|
11
12
|
constructor(_conf) {
|
|
@@ -43,23 +44,15 @@ class Rewards {
|
|
|
43
44
|
/**
|
|
44
45
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
45
46
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
46
|
-
* @returns {Promise<
|
|
47
|
+
* @returns {Promise<CatalogueOrderDetails>} - Success response
|
|
47
48
|
* @name catalogueOrder
|
|
48
49
|
* @summary: Order from catalogue
|
|
49
|
-
* @description: Place
|
|
50
|
+
* @description: Place a reward on order items available in the catalogue. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/catalogueOrder/).
|
|
50
51
|
*/
|
|
51
52
|
async catalogueOrder(
|
|
52
53
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
53
54
|
{ responseHeaders } = { responseHeaders: false }
|
|
54
55
|
) {
|
|
55
|
-
let invalidInput = [];
|
|
56
|
-
if (invalidInput.length) {
|
|
57
|
-
const error = new Error();
|
|
58
|
-
error.message = "Missing required field";
|
|
59
|
-
error.details = invalidInput;
|
|
60
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
56
|
const query_params = {};
|
|
64
57
|
|
|
65
58
|
const xHeaders = {};
|
|
@@ -97,18 +90,12 @@ class Rewards {
|
|
|
97
90
|
{ name, requestHeaders } = { requestHeaders: {} },
|
|
98
91
|
{ responseHeaders } = { responseHeaders: false }
|
|
99
92
|
) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
path: ["name"],
|
|
93
|
+
const errors = validateRequiredParams(arguments[0], ["name"]);
|
|
94
|
+
if (errors.length > 0) {
|
|
95
|
+
const error = new FDKClientValidationError({
|
|
96
|
+
message: "Missing required field",
|
|
97
|
+
details: errors,
|
|
106
98
|
});
|
|
107
|
-
}
|
|
108
|
-
if (invalidInput.length) {
|
|
109
|
-
const error = new Error();
|
|
110
|
-
error.message = "Missing required field";
|
|
111
|
-
error.details = invalidInput;
|
|
112
99
|
return Promise.reject(new FDKClientValidationError(error));
|
|
113
100
|
}
|
|
114
101
|
|
|
@@ -140,7 +127,7 @@ class Rewards {
|
|
|
140
127
|
/**
|
|
141
128
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
142
129
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
143
|
-
* @returns {Promise<
|
|
130
|
+
* @returns {Promise<OrderDiscountDetails>} - Success response
|
|
144
131
|
* @name getOrderDiscount
|
|
145
132
|
* @summary: Order discount
|
|
146
133
|
* @description: Retrieve the discount applied to a specific order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getOrderDiscount/).
|
|
@@ -149,14 +136,6 @@ class Rewards {
|
|
|
149
136
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
150
137
|
{ responseHeaders } = { responseHeaders: false }
|
|
151
138
|
) {
|
|
152
|
-
let invalidInput = [];
|
|
153
|
-
if (invalidInput.length) {
|
|
154
|
-
const error = new Error();
|
|
155
|
-
error.message = "Missing required field";
|
|
156
|
-
error.details = invalidInput;
|
|
157
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
139
|
const query_params = {};
|
|
161
140
|
|
|
162
141
|
const xHeaders = {};
|
|
@@ -185,7 +164,7 @@ class Rewards {
|
|
|
185
164
|
/**
|
|
186
165
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
187
166
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
188
|
-
* @returns {Promise<
|
|
167
|
+
* @returns {Promise<PointsDetails>} - Success response
|
|
189
168
|
* @name getUserPoints
|
|
190
169
|
* @summary: Current points
|
|
191
170
|
* @description: Retrieves the current reward points balance for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getUserPoints/).
|
|
@@ -194,14 +173,6 @@ class Rewards {
|
|
|
194
173
|
{ requestHeaders } = { requestHeaders: {} },
|
|
195
174
|
{ responseHeaders } = { responseHeaders: false }
|
|
196
175
|
) {
|
|
197
|
-
let invalidInput = [];
|
|
198
|
-
if (invalidInput.length) {
|
|
199
|
-
const error = new Error();
|
|
200
|
-
error.message = "Missing required field";
|
|
201
|
-
error.details = invalidInput;
|
|
202
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
176
|
const query_params = {};
|
|
206
177
|
|
|
207
178
|
const xHeaders = {};
|
|
@@ -230,7 +201,7 @@ class Rewards {
|
|
|
230
201
|
/**
|
|
231
202
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
232
203
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
233
|
-
* @returns {Promise<
|
|
204
|
+
* @returns {Promise<PointsHistoryDetails>} - Success response
|
|
234
205
|
* @name getUserPointsHistory
|
|
235
206
|
* @summary: Points history
|
|
236
207
|
* @description: Gets the historical data of points earned or spent by the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getUserPointsHistory/).
|
|
@@ -239,14 +210,6 @@ class Rewards {
|
|
|
239
210
|
{ pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
240
211
|
{ responseHeaders } = { responseHeaders: false }
|
|
241
212
|
) {
|
|
242
|
-
let invalidInput = [];
|
|
243
|
-
if (invalidInput.length) {
|
|
244
|
-
const error = new Error();
|
|
245
|
-
error.message = "Missing required field";
|
|
246
|
-
error.details = invalidInput;
|
|
247
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
248
|
-
}
|
|
249
|
-
|
|
250
213
|
const query_params = {};
|
|
251
214
|
query_params["page_id"] = pageId;
|
|
252
215
|
query_params["page_size"] = pageSize;
|
|
@@ -277,7 +240,7 @@ class Rewards {
|
|
|
277
240
|
/**
|
|
278
241
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
279
242
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
280
|
-
* @returns {Promise<
|
|
243
|
+
* @returns {Promise<ReferralDetails>} - Success response
|
|
281
244
|
* @name getUserReferralDetails
|
|
282
245
|
* @summary: Referral details
|
|
283
246
|
* @description: Gets the details of the user’s referral status and codes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/getUserReferralDetails/).
|
|
@@ -286,14 +249,6 @@ class Rewards {
|
|
|
286
249
|
{ requestHeaders } = { requestHeaders: {} },
|
|
287
250
|
{ responseHeaders } = { responseHeaders: false }
|
|
288
251
|
) {
|
|
289
|
-
let invalidInput = [];
|
|
290
|
-
if (invalidInput.length) {
|
|
291
|
-
const error = new Error();
|
|
292
|
-
error.message = "Missing required field";
|
|
293
|
-
error.details = invalidInput;
|
|
294
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
295
|
-
}
|
|
296
|
-
|
|
297
252
|
const query_params = {};
|
|
298
253
|
|
|
299
254
|
const xHeaders = {};
|
|
@@ -322,7 +277,7 @@ class Rewards {
|
|
|
322
277
|
/**
|
|
323
278
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
324
279
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
325
|
-
* @returns {Promise<
|
|
280
|
+
* @returns {Promise<RedeemReferralCodeDetails>} - Success response
|
|
326
281
|
* @name redeemReferralCode
|
|
327
282
|
* @summary: Redeem code
|
|
328
283
|
* @description: Applies a referral code to earn or redeem rewards. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/rewards/redeemReferralCode/).
|
|
@@ -331,14 +286,6 @@ class Rewards {
|
|
|
331
286
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
332
287
|
{ responseHeaders } = { responseHeaders: false }
|
|
333
288
|
) {
|
|
334
|
-
let invalidInput = [];
|
|
335
|
-
if (invalidInput.length) {
|
|
336
|
-
const error = new Error();
|
|
337
|
-
error.message = "Missing required field";
|
|
338
|
-
error.details = invalidInput;
|
|
339
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
340
|
-
}
|
|
341
|
-
|
|
342
289
|
const query_params = {};
|
|
343
290
|
|
|
344
291
|
const xHeaders = {};
|
|
@@ -18,7 +18,7 @@ declare class Share {
|
|
|
18
18
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
19
19
|
* @returns {Promise<ShortLinkRes>} - Success response
|
|
20
20
|
* @name createShortLink
|
|
21
|
-
* @summary: Shorten URL
|
|
21
|
+
* @summary: Shorten URL
|
|
22
22
|
* @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/).
|
|
23
23
|
*/
|
|
24
24
|
createShortLink({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShortLinkRes>;
|
|
@@ -27,7 +27,7 @@ declare class Share {
|
|
|
27
27
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
28
28
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
29
29
|
* @name getApplicationQRCode
|
|
30
|
-
* @summary: App QR code
|
|
30
|
+
* @summary: App QR code
|
|
31
31
|
* @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/).
|
|
32
32
|
*/
|
|
33
33
|
getApplicationQRCode({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<QRCodeResp>;
|
|
@@ -36,43 +36,43 @@ declare class Share {
|
|
|
36
36
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
37
37
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
38
38
|
* @name getCollectionQRCodeBySlug
|
|
39
|
-
* @summary: Collection QR code
|
|
39
|
+
* @summary: Collection QR code
|
|
40
40
|
* @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/).
|
|
41
41
|
*/
|
|
42
|
-
getCollectionQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<QRCodeResp>;
|
|
42
|
+
getCollectionQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<QRCodeResp>;
|
|
43
43
|
/**
|
|
44
44
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
45
45
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
46
46
|
* @returns {Promise<ShortLinkRes>} - Success response
|
|
47
47
|
* @name getOriginalShortLinkByHash
|
|
48
|
-
* @summary: Original URL
|
|
48
|
+
* @summary: Original URL
|
|
49
49
|
* @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/).
|
|
50
50
|
*/
|
|
51
|
-
getOriginalShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShortLinkRes>;
|
|
51
|
+
getOriginalShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShortLinkRes>;
|
|
52
52
|
/**
|
|
53
53
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
54
54
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
55
55
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
56
56
|
* @name getProductQRCodeBySlug
|
|
57
|
-
* @summary: Product QR code
|
|
57
|
+
* @summary: Product QR code
|
|
58
58
|
* @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/).
|
|
59
59
|
*/
|
|
60
|
-
getProductQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<QRCodeResp>;
|
|
60
|
+
getProductQRCodeBySlug({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<QRCodeResp>;
|
|
61
61
|
/**
|
|
62
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
63
63
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
64
64
|
* @returns {Promise<ShortLinkRes>} - Success response
|
|
65
65
|
* @name getShortLinkByHash
|
|
66
|
-
* @summary:
|
|
66
|
+
* @summary: Get short link
|
|
67
67
|
* @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/).
|
|
68
68
|
*/
|
|
69
|
-
getShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShortLinkRes>;
|
|
69
|
+
getShortLinkByHash({ hash, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShortLinkRes>;
|
|
70
70
|
/**
|
|
71
71
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
72
72
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
73
73
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
74
74
|
* @name getUrlQRCode
|
|
75
|
-
* @summary: URL to QR code
|
|
75
|
+
* @summary: URL to QR code
|
|
76
76
|
* @description: Converts a given URL into a scannable QR code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getUrlQRCode/).
|
|
77
77
|
*/
|
|
78
78
|
getUrlQRCode({ url, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<QRCodeResp>;
|
|
@@ -6,22 +6,23 @@ 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 Share {
|
|
11
12
|
constructor(_conf) {
|
|
12
13
|
this._conf = _conf;
|
|
13
14
|
this._relativeUrls = {
|
|
14
|
-
createShortLink: "/service/application/share/v1.0/links/short-link",
|
|
15
|
-
getApplicationQRCode: "/service/application/share/v1.0/qr",
|
|
15
|
+
createShortLink: "/service/application/share/v1.0/links/short-link/",
|
|
16
|
+
getApplicationQRCode: "/service/application/share/v1.0/qr/",
|
|
16
17
|
getCollectionQRCodeBySlug:
|
|
17
|
-
"/service/application/share/v1.0/qr/collection/{slug}",
|
|
18
|
+
"/service/application/share/v1.0/qr/collection/{slug}/",
|
|
18
19
|
getOriginalShortLinkByHash:
|
|
19
|
-
"/service/application/share/v1.0/links/short-link/{hash}/original",
|
|
20
|
+
"/service/application/share/v1.0/links/short-link/{hash}/original/",
|
|
20
21
|
getProductQRCodeBySlug:
|
|
21
|
-
"/service/application/share/v1.0/qr/products/{slug}",
|
|
22
|
+
"/service/application/share/v1.0/qr/products/{slug}/",
|
|
22
23
|
getShortLinkByHash:
|
|
23
|
-
"/service/application/share/v1.0/links/short-link/{hash}",
|
|
24
|
-
getUrlQRCode: "/service/application/share/v1.0/qr/url",
|
|
24
|
+
"/service/application/share/v1.0/links/short-link/{hash}/",
|
|
25
|
+
getUrlQRCode: "/service/application/share/v1.0/qr/url/",
|
|
25
26
|
};
|
|
26
27
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
27
28
|
(urls, [method, relativeUrl]) => {
|
|
@@ -44,21 +45,13 @@ class Share {
|
|
|
44
45
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
45
46
|
* @returns {Promise<ShortLinkRes>} - Success response
|
|
46
47
|
* @name createShortLink
|
|
47
|
-
* @summary: Shorten URL
|
|
48
|
+
* @summary: Shorten URL
|
|
48
49
|
* @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/).
|
|
49
50
|
*/
|
|
50
51
|
async createShortLink(
|
|
51
52
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
52
53
|
{ responseHeaders } = { responseHeaders: false }
|
|
53
54
|
) {
|
|
54
|
-
let invalidInput = [];
|
|
55
|
-
if (invalidInput.length) {
|
|
56
|
-
const error = new Error();
|
|
57
|
-
error.message = "Missing required field";
|
|
58
|
-
error.details = invalidInput;
|
|
59
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
55
|
const query_params = {};
|
|
63
56
|
|
|
64
57
|
const xHeaders = {};
|
|
@@ -89,21 +82,13 @@ class Share {
|
|
|
89
82
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
90
83
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
91
84
|
* @name getApplicationQRCode
|
|
92
|
-
* @summary: App QR code
|
|
85
|
+
* @summary: App QR code
|
|
93
86
|
* @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/).
|
|
94
87
|
*/
|
|
95
88
|
async getApplicationQRCode(
|
|
96
89
|
{ requestHeaders } = { requestHeaders: {} },
|
|
97
90
|
{ responseHeaders } = { responseHeaders: false }
|
|
98
91
|
) {
|
|
99
|
-
let invalidInput = [];
|
|
100
|
-
if (invalidInput.length) {
|
|
101
|
-
const error = new Error();
|
|
102
|
-
error.message = "Missing required field";
|
|
103
|
-
error.details = invalidInput;
|
|
104
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
92
|
const query_params = {};
|
|
108
93
|
|
|
109
94
|
const xHeaders = {};
|
|
@@ -134,25 +119,19 @@ class Share {
|
|
|
134
119
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
135
120
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
136
121
|
* @name getCollectionQRCodeBySlug
|
|
137
|
-
* @summary: Collection QR code
|
|
122
|
+
* @summary: Collection QR code
|
|
138
123
|
* @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/).
|
|
139
124
|
*/
|
|
140
125
|
async getCollectionQRCodeBySlug(
|
|
141
126
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
142
127
|
{ responseHeaders } = { responseHeaders: false }
|
|
143
128
|
) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
path: ["slug"],
|
|
129
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
130
|
+
if (errors.length > 0) {
|
|
131
|
+
const error = new FDKClientValidationError({
|
|
132
|
+
message: "Missing required field",
|
|
133
|
+
details: errors,
|
|
150
134
|
});
|
|
151
|
-
}
|
|
152
|
-
if (invalidInput.length) {
|
|
153
|
-
const error = new Error();
|
|
154
|
-
error.message = "Missing required field";
|
|
155
|
-
error.details = invalidInput;
|
|
156
135
|
return Promise.reject(new FDKClientValidationError(error));
|
|
157
136
|
}
|
|
158
137
|
|
|
@@ -186,25 +165,19 @@ class Share {
|
|
|
186
165
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
187
166
|
* @returns {Promise<ShortLinkRes>} - Success response
|
|
188
167
|
* @name getOriginalShortLinkByHash
|
|
189
|
-
* @summary: Original URL
|
|
168
|
+
* @summary: Original URL
|
|
190
169
|
* @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/).
|
|
191
170
|
*/
|
|
192
171
|
async getOriginalShortLinkByHash(
|
|
193
172
|
{ hash, requestHeaders } = { requestHeaders: {} },
|
|
194
173
|
{ responseHeaders } = { responseHeaders: false }
|
|
195
174
|
) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
path: ["hash"],
|
|
175
|
+
const errors = validateRequiredParams(arguments[0], ["hash"]);
|
|
176
|
+
if (errors.length > 0) {
|
|
177
|
+
const error = new FDKClientValidationError({
|
|
178
|
+
message: "Missing required field",
|
|
179
|
+
details: errors,
|
|
202
180
|
});
|
|
203
|
-
}
|
|
204
|
-
if (invalidInput.length) {
|
|
205
|
-
const error = new Error();
|
|
206
|
-
error.message = "Missing required field";
|
|
207
|
-
error.details = invalidInput;
|
|
208
181
|
return Promise.reject(new FDKClientValidationError(error));
|
|
209
182
|
}
|
|
210
183
|
|
|
@@ -238,25 +211,19 @@ class Share {
|
|
|
238
211
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
239
212
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
240
213
|
* @name getProductQRCodeBySlug
|
|
241
|
-
* @summary: Product QR code
|
|
214
|
+
* @summary: Product QR code
|
|
242
215
|
* @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/).
|
|
243
216
|
*/
|
|
244
217
|
async getProductQRCodeBySlug(
|
|
245
218
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
246
219
|
{ responseHeaders } = { responseHeaders: false }
|
|
247
220
|
) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
path: ["slug"],
|
|
221
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
222
|
+
if (errors.length > 0) {
|
|
223
|
+
const error = new FDKClientValidationError({
|
|
224
|
+
message: "Missing required field",
|
|
225
|
+
details: errors,
|
|
254
226
|
});
|
|
255
|
-
}
|
|
256
|
-
if (invalidInput.length) {
|
|
257
|
-
const error = new Error();
|
|
258
|
-
error.message = "Missing required field";
|
|
259
|
-
error.details = invalidInput;
|
|
260
227
|
return Promise.reject(new FDKClientValidationError(error));
|
|
261
228
|
}
|
|
262
229
|
|
|
@@ -290,25 +257,19 @@ class Share {
|
|
|
290
257
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
291
258
|
* @returns {Promise<ShortLinkRes>} - Success response
|
|
292
259
|
* @name getShortLinkByHash
|
|
293
|
-
* @summary:
|
|
260
|
+
* @summary: Get short link
|
|
294
261
|
* @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/).
|
|
295
262
|
*/
|
|
296
263
|
async getShortLinkByHash(
|
|
297
264
|
{ hash, requestHeaders } = { requestHeaders: {} },
|
|
298
265
|
{ responseHeaders } = { responseHeaders: false }
|
|
299
266
|
) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
path: ["hash"],
|
|
267
|
+
const errors = validateRequiredParams(arguments[0], ["hash"]);
|
|
268
|
+
if (errors.length > 0) {
|
|
269
|
+
const error = new FDKClientValidationError({
|
|
270
|
+
message: "Missing required field",
|
|
271
|
+
details: errors,
|
|
306
272
|
});
|
|
307
|
-
}
|
|
308
|
-
if (invalidInput.length) {
|
|
309
|
-
const error = new Error();
|
|
310
|
-
error.message = "Missing required field";
|
|
311
|
-
error.details = invalidInput;
|
|
312
273
|
return Promise.reject(new FDKClientValidationError(error));
|
|
313
274
|
}
|
|
314
275
|
|
|
@@ -342,28 +303,13 @@ class Share {
|
|
|
342
303
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
343
304
|
* @returns {Promise<QRCodeResp>} - Success response
|
|
344
305
|
* @name getUrlQRCode
|
|
345
|
-
* @summary: URL to QR code
|
|
306
|
+
* @summary: URL to QR code
|
|
346
307
|
* @description: Converts a given URL into a scannable QR code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/share/getUrlQRCode/).
|
|
347
308
|
*/
|
|
348
309
|
async getUrlQRCode(
|
|
349
310
|
{ url, requestHeaders } = { requestHeaders: {} },
|
|
350
311
|
{ responseHeaders } = { responseHeaders: false }
|
|
351
312
|
) {
|
|
352
|
-
let invalidInput = [];
|
|
353
|
-
|
|
354
|
-
if (!url) {
|
|
355
|
-
invalidInput.push({
|
|
356
|
-
message: `The 'url' field is required.`,
|
|
357
|
-
path: ["url"],
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
if (invalidInput.length) {
|
|
361
|
-
const error = new Error();
|
|
362
|
-
error.message = "Missing required field";
|
|
363
|
-
error.details = invalidInput;
|
|
364
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
365
|
-
}
|
|
366
|
-
|
|
367
313
|
const query_params = {};
|
|
368
314
|
query_params["url"] = url;
|
|
369
315
|
|
|
@@ -5,10 +5,8 @@ declare class Theme {
|
|
|
5
5
|
_relativeUrls: {
|
|
6
6
|
getAllPages: string;
|
|
7
7
|
getAppliedTheme: string;
|
|
8
|
-
getAppliedThemeV1: string;
|
|
9
8
|
getPage: string;
|
|
10
9
|
getThemeForPreview: string;
|
|
11
|
-
getThemeForPreviewV1: string;
|
|
12
10
|
};
|
|
13
11
|
_urls: {};
|
|
14
12
|
updateUrls(urls: any): void;
|
|
@@ -17,10 +15,10 @@ declare class Theme {
|
|
|
17
15
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
18
16
|
* @returns {Promise<AllAvailablePageSchema>} - Success response
|
|
19
17
|
* @name getAllPages
|
|
20
|
-
* @summary:
|
|
18
|
+
* @summary: List pages
|
|
21
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/).
|
|
22
20
|
*/
|
|
23
|
-
getAllPages({ themeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AllAvailablePageSchema>;
|
|
21
|
+
getAllPages({ themeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<AllAvailablePageSchema>;
|
|
24
22
|
/**
|
|
25
23
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
26
24
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -29,16 +27,7 @@ declare class Theme {
|
|
|
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 }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
33
|
-
/**
|
|
34
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
35
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
36
|
-
* @returns {Promise<ThemesSchema>} - Success response
|
|
37
|
-
* @name getAppliedThemeV1
|
|
38
|
-
* @summary: Current theme.
|
|
39
|
-
* @description: Gets the theme currently applied to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAppliedThemeV1/).
|
|
40
|
-
*/
|
|
41
|
-
getAppliedThemeV1({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
30
|
+
getAppliedTheme({ filters, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
42
31
|
/**
|
|
43
32
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
44
33
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -47,7 +36,7 @@ declare class Theme {
|
|
|
47
36
|
* @summary: Get theme page
|
|
48
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/).
|
|
49
38
|
*/
|
|
50
|
-
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AvailablePageSchema>;
|
|
39
|
+
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<AvailablePageSchema>;
|
|
51
40
|
/**
|
|
52
41
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
53
42
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -56,14 +45,5 @@ declare class Theme {
|
|
|
56
45
|
* @summary: Get theme for preview
|
|
57
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/).
|
|
58
47
|
*/
|
|
59
|
-
getThemeForPreview({ themeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
60
|
-
/**
|
|
61
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
62
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
63
|
-
* @returns {Promise<ThemesSchema>} - Success response
|
|
64
|
-
* @name getThemeForPreviewV1
|
|
65
|
-
* @summary: Preview theme.
|
|
66
|
-
* @description: Retrieves a theme for previewing before applying it to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getThemeForPreviewV1/).
|
|
67
|
-
*/
|
|
68
|
-
getThemeForPreviewV1({ themeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ThemesSchema>;
|
|
48
|
+
getThemeForPreview({ themeId, filters, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ThemesSchema>;
|
|
69
49
|
}
|