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