@gofynd/fdk-client-javascript 1.4.12 → 1.4.14
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 +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +96 -39
- package/sdk/application/Content/ContentApplicationModel.js +88 -34
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +51 -19
- package/sdk/application/Theme/ThemeApplicationModel.js +47 -24
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/common/Clickstream.js +12 -0
- package/sdk/common/Constant.d.ts +5 -0
- package/sdk/common/Constant.js +5 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +99 -39
- package/sdk/partner/Theme/ThemePartnerModel.js +95 -38
- 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 +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +192 -164
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +371 -343
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +99 -99
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +139 -116
- package/sdk/platform/Catalog/CatalogPlatformClient.js +191 -168
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1374 -749
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1241 -830
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1244 -397
- package/sdk/platform/Content/ContentPlatformModel.js +526 -392
- 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 +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +138 -101
- package/sdk/platform/Order/OrderPlatformClient.js +267 -203
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4497 -877
- package/sdk/platform/Order/OrderPlatformModel.js +2336 -812
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +147 -50
- package/sdk/platform/Order/OrderPlatformValidator.js +75 -46
- 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 +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- 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 +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- 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 +40 -13
- package/sdk/platform/Theme/ThemePlatformModel.js +38 -17
- 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 +6 -5
- 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 +791 -5
- 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/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- 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/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
|
@@ -213,7 +213,7 @@ class ShareApplicationModel {
|
|
|
213
213
|
application: Joi.string().allow(""),
|
|
214
214
|
user_id: Joi.string().allow(""),
|
|
215
215
|
created_at: Joi.string().allow(""),
|
|
216
|
-
meta: Joi.any(),
|
|
216
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
217
217
|
updated_at: Joi.string().allow(""),
|
|
218
218
|
personalized: Joi.boolean(),
|
|
219
219
|
campaign: ShareApplicationModel.CampaignShortLink(),
|
|
@@ -29,7 +29,7 @@ declare class Theme {
|
|
|
29
29
|
* @summary: Get applied theme
|
|
30
30
|
* @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
31
|
*/
|
|
32
|
-
getAppliedTheme({ requestHeaders }?:
|
|
32
|
+
getAppliedTheme({ filters, requestHeaders }?: ThemeApplicationValidator.GetAppliedThemeParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.ThemesSchema>;
|
|
33
33
|
/**
|
|
34
34
|
* @param {ThemeApplicationValidator.GetPageParam} arg - Arg object.
|
|
35
35
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -49,7 +49,7 @@ declare class Theme {
|
|
|
49
49
|
* @summary: Get theme for preview
|
|
50
50
|
* @description: Gets the theme configuration and template details of a theme by theme id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getThemeForPreview/).
|
|
51
51
|
*/
|
|
52
|
-
getThemeForPreview({ themeId, requestHeaders }?: ThemeApplicationValidator.GetThemeForPreviewParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.ThemesSchema>;
|
|
52
|
+
getThemeForPreview({ themeId, filters, requestHeaders }?: ThemeApplicationValidator.GetThemeForPreviewParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.ThemesSchema>;
|
|
53
53
|
}
|
|
54
54
|
import ThemeApplicationValidator = require("./ThemeApplicationValidator");
|
|
55
55
|
import ThemeApplicationModel = require("./ThemeApplicationModel");
|
|
@@ -123,11 +123,11 @@ class Theme {
|
|
|
123
123
|
* @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/).
|
|
124
124
|
*/
|
|
125
125
|
async getAppliedTheme(
|
|
126
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
126
|
+
{ filters, requestHeaders } = { requestHeaders: {} },
|
|
127
127
|
{ responseHeaders } = { responseHeaders: false }
|
|
128
128
|
) {
|
|
129
129
|
const { error } = ThemeApplicationValidator.getAppliedTheme().validate(
|
|
130
|
-
{},
|
|
130
|
+
{ filters },
|
|
131
131
|
{ abortEarly: false, allowUnknown: true }
|
|
132
132
|
);
|
|
133
133
|
if (error) {
|
|
@@ -138,7 +138,7 @@ class Theme {
|
|
|
138
138
|
const {
|
|
139
139
|
error: warrning,
|
|
140
140
|
} = ThemeApplicationValidator.getAppliedTheme().validate(
|
|
141
|
-
{},
|
|
141
|
+
{ filters },
|
|
142
142
|
{ abortEarly: false, allowUnknown: false }
|
|
143
143
|
);
|
|
144
144
|
if (warrning) {
|
|
@@ -149,6 +149,7 @@ class Theme {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
const query_params = {};
|
|
152
|
+
query_params["filters"] = filters;
|
|
152
153
|
|
|
153
154
|
const xHeaders = {};
|
|
154
155
|
|
|
@@ -287,11 +288,11 @@ class Theme {
|
|
|
287
288
|
* @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/).
|
|
288
289
|
*/
|
|
289
290
|
async getThemeForPreview(
|
|
290
|
-
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
291
|
+
{ themeId, filters, requestHeaders } = { requestHeaders: {} },
|
|
291
292
|
{ responseHeaders } = { responseHeaders: false }
|
|
292
293
|
) {
|
|
293
294
|
const { error } = ThemeApplicationValidator.getThemeForPreview().validate(
|
|
294
|
-
{ themeId },
|
|
295
|
+
{ themeId, filters },
|
|
295
296
|
{ abortEarly: false, allowUnknown: true }
|
|
296
297
|
);
|
|
297
298
|
if (error) {
|
|
@@ -302,7 +303,7 @@ class Theme {
|
|
|
302
303
|
const {
|
|
303
304
|
error: warrning,
|
|
304
305
|
} = ThemeApplicationValidator.getThemeForPreview().validate(
|
|
305
|
-
{ themeId },
|
|
306
|
+
{ themeId, filters },
|
|
306
307
|
{ abortEarly: false, allowUnknown: false }
|
|
307
308
|
);
|
|
308
309
|
if (warrning) {
|
|
@@ -313,6 +314,7 @@ class Theme {
|
|
|
313
314
|
}
|
|
314
315
|
|
|
315
316
|
const query_params = {};
|
|
317
|
+
query_params["filters"] = filters;
|
|
316
318
|
|
|
317
319
|
const xHeaders = {};
|
|
318
320
|
|
|
@@ -75,7 +75,6 @@ export = ThemeApplicationModel;
|
|
|
75
75
|
* @property {string} [name] - The name of the section.
|
|
76
76
|
* @property {string} [label] - A label for the section, which can be used for
|
|
77
77
|
* display purposes.
|
|
78
|
-
* @property {string} [source] - The source of the section, for example, 'themebundle'.
|
|
79
78
|
* @property {Object} [props] - An object containing various properties
|
|
80
79
|
* associated with the section.
|
|
81
80
|
* @property {Object[]} [blocks] - An array of blocks within the section, where
|
|
@@ -83,6 +82,21 @@ export = ThemeApplicationModel;
|
|
|
83
82
|
* @property {Object} [preset] - An object containing preset configurations for
|
|
84
83
|
* the section.
|
|
85
84
|
* @property {AvailablePagePredicate} [predicate]
|
|
85
|
+
* @property {SectionSource} [__source]
|
|
86
|
+
* @property {SectionAssets} [assets]
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* @typedef SectionAssets
|
|
90
|
+
* @property {string} [js] - The CDN URL of JS bundle.
|
|
91
|
+
* @property {string} [css] - The CDN URL of CSS file.
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @typedef SectionSource
|
|
95
|
+
* @property {string} [id] - The source id specifying the source of the section.
|
|
96
|
+
* @property {string} [bundle_name] - This is the extension binding name
|
|
97
|
+
* containing this section.
|
|
98
|
+
* @property {string} [type] - This is source type. It will either be
|
|
99
|
+
* themeBundle or extension.
|
|
86
100
|
*/
|
|
87
101
|
/**
|
|
88
102
|
* @typedef AvailablePagePredicate
|
|
@@ -220,11 +234,6 @@ export = ThemeApplicationModel;
|
|
|
220
234
|
* @property {boolean} [is_menu_below_logo] - Whether the menu is below the logo or not.
|
|
221
235
|
* @property {string} [menu_position] - The position of the menu.
|
|
222
236
|
*/
|
|
223
|
-
/**
|
|
224
|
-
* @typedef GlobalConfig
|
|
225
|
-
* @property {StaticConfig} [statics]
|
|
226
|
-
* @property {CustomConfig} [custom]
|
|
227
|
-
*/
|
|
228
237
|
/**
|
|
229
238
|
* @typedef GeneralSetting
|
|
230
239
|
* @property {ThemeSetting} [theme]
|
|
@@ -549,12 +558,13 @@ export = ThemeApplicationModel;
|
|
|
549
558
|
* | "register"
|
|
550
559
|
* | "shipping-policy"
|
|
551
560
|
* | "return-policy"
|
|
552
|
-
* | "order-status"
|
|
561
|
+
* | "order-status"
|
|
562
|
+
* | "locate-us"} PageType
|
|
553
563
|
*/
|
|
554
564
|
declare class ThemeApplicationModel {
|
|
555
565
|
}
|
|
556
566
|
declare namespace ThemeApplicationModel {
|
|
557
|
-
export { AllAvailablePageSchema, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePageSchedulePredicate, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, CustomConfig, CustomProps,
|
|
567
|
+
export { AllAvailablePageSchema, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, SectionAssets, SectionSource, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePageSchedulePredicate, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, CustomConfig, CustomProps, GeneralSetting, AdvanceSetting, UserAlertsSetting, ThemeSetting, TextSetting, ButtonSetting, SaleDiscountSetting, HeaderSetting, FooterSetting, OverlayPopupSetting, DividerStrokeHighlightSetting, StaticConfig, StaticProps, Colors, AuthConfig, PaletteConfig, ThemeMeta, ThemePayment, Release, Images, Assets, UMDJs, CommonJS, CSS, SectionItem, GlobalSchema, Prop, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, AvailablePagePlatformPredicate, BlitzkriegInternalServerErrorSchema, BlitzkriegApiErrorSchema, ActionPage, PageType };
|
|
558
568
|
}
|
|
559
569
|
/** @returns {AllAvailablePageSchema} */
|
|
560
570
|
declare function AllAvailablePageSchema(): AllAvailablePageSchema;
|
|
@@ -723,10 +733,6 @@ type AvailablePageSchemaSections = {
|
|
|
723
733
|
* display purposes.
|
|
724
734
|
*/
|
|
725
735
|
label?: string;
|
|
726
|
-
/**
|
|
727
|
-
* - The source of the section, for example, 'themebundle'.
|
|
728
|
-
*/
|
|
729
|
-
source?: string;
|
|
730
736
|
/**
|
|
731
737
|
* - An object containing various properties
|
|
732
738
|
* associated with the section.
|
|
@@ -743,6 +749,38 @@ type AvailablePageSchemaSections = {
|
|
|
743
749
|
*/
|
|
744
750
|
preset?: any;
|
|
745
751
|
predicate?: AvailablePagePredicate;
|
|
752
|
+
__source?: SectionSource;
|
|
753
|
+
assets?: SectionAssets;
|
|
754
|
+
};
|
|
755
|
+
/** @returns {SectionAssets} */
|
|
756
|
+
declare function SectionAssets(): SectionAssets;
|
|
757
|
+
type SectionAssets = {
|
|
758
|
+
/**
|
|
759
|
+
* - The CDN URL of JS bundle.
|
|
760
|
+
*/
|
|
761
|
+
js?: string;
|
|
762
|
+
/**
|
|
763
|
+
* - The CDN URL of CSS file.
|
|
764
|
+
*/
|
|
765
|
+
css?: string;
|
|
766
|
+
};
|
|
767
|
+
/** @returns {SectionSource} */
|
|
768
|
+
declare function SectionSource(): SectionSource;
|
|
769
|
+
type SectionSource = {
|
|
770
|
+
/**
|
|
771
|
+
* - The source id specifying the source of the section.
|
|
772
|
+
*/
|
|
773
|
+
id?: string;
|
|
774
|
+
/**
|
|
775
|
+
* - This is the extension binding name
|
|
776
|
+
* containing this section.
|
|
777
|
+
*/
|
|
778
|
+
bundle_name?: string;
|
|
779
|
+
/**
|
|
780
|
+
* - This is source type. It will either be
|
|
781
|
+
* themeBundle or extension.
|
|
782
|
+
*/
|
|
783
|
+
type?: string;
|
|
746
784
|
};
|
|
747
785
|
/** @returns {AvailablePagePredicate} */
|
|
748
786
|
declare function AvailablePagePredicate(): AvailablePagePredicate;
|
|
@@ -1088,12 +1126,6 @@ type CustomProps = {
|
|
|
1088
1126
|
*/
|
|
1089
1127
|
menu_position?: string;
|
|
1090
1128
|
};
|
|
1091
|
-
/** @returns {GlobalConfig} */
|
|
1092
|
-
declare function GlobalConfig(): GlobalConfig;
|
|
1093
|
-
type GlobalConfig = {
|
|
1094
|
-
statics?: StaticConfig;
|
|
1095
|
-
custom?: CustomConfig;
|
|
1096
|
-
};
|
|
1097
1129
|
/** @returns {GeneralSetting} */
|
|
1098
1130
|
declare function GeneralSetting(): GeneralSetting;
|
|
1099
1131
|
type GeneralSetting = {
|
|
@@ -1709,4 +1741,4 @@ type ActionPage = {
|
|
|
1709
1741
|
* @returns {PageType}
|
|
1710
1742
|
*/
|
|
1711
1743
|
declare function PageType(): PageType;
|
|
1712
|
-
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
|
|
1744
|
+
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us";
|
|
@@ -85,7 +85,6 @@ const Joi = require("joi");
|
|
|
85
85
|
* @property {string} [name] - The name of the section.
|
|
86
86
|
* @property {string} [label] - A label for the section, which can be used for
|
|
87
87
|
* display purposes.
|
|
88
|
-
* @property {string} [source] - The source of the section, for example, 'themebundle'.
|
|
89
88
|
* @property {Object} [props] - An object containing various properties
|
|
90
89
|
* associated with the section.
|
|
91
90
|
* @property {Object[]} [blocks] - An array of blocks within the section, where
|
|
@@ -93,6 +92,23 @@ const Joi = require("joi");
|
|
|
93
92
|
* @property {Object} [preset] - An object containing preset configurations for
|
|
94
93
|
* the section.
|
|
95
94
|
* @property {AvailablePagePredicate} [predicate]
|
|
95
|
+
* @property {SectionSource} [__source]
|
|
96
|
+
* @property {SectionAssets} [assets]
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @typedef SectionAssets
|
|
101
|
+
* @property {string} [js] - The CDN URL of JS bundle.
|
|
102
|
+
* @property {string} [css] - The CDN URL of CSS file.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @typedef SectionSource
|
|
107
|
+
* @property {string} [id] - The source id specifying the source of the section.
|
|
108
|
+
* @property {string} [bundle_name] - This is the extension binding name
|
|
109
|
+
* containing this section.
|
|
110
|
+
* @property {string} [type] - This is source type. It will either be
|
|
111
|
+
* themeBundle or extension.
|
|
96
112
|
*/
|
|
97
113
|
|
|
98
114
|
/**
|
|
@@ -244,12 +260,6 @@ const Joi = require("joi");
|
|
|
244
260
|
* @property {string} [menu_position] - The position of the menu.
|
|
245
261
|
*/
|
|
246
262
|
|
|
247
|
-
/**
|
|
248
|
-
* @typedef GlobalConfig
|
|
249
|
-
* @property {StaticConfig} [statics]
|
|
250
|
-
* @property {CustomConfig} [custom]
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
263
|
/**
|
|
254
264
|
* @typedef GeneralSetting
|
|
255
265
|
* @property {ThemeSetting} [theme]
|
|
@@ -621,7 +631,8 @@ const Joi = require("joi");
|
|
|
621
631
|
* | "register"
|
|
622
632
|
* | "shipping-policy"
|
|
623
633
|
* | "return-policy"
|
|
624
|
-
* | "order-status"
|
|
634
|
+
* | "order-status"
|
|
635
|
+
* | "locate-us"} PageType
|
|
625
636
|
*/
|
|
626
637
|
|
|
627
638
|
class ThemeApplicationModel {
|
|
@@ -655,7 +666,7 @@ class ThemeApplicationModel {
|
|
|
655
666
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
656
667
|
static AvailablePageSectionMetaAttributes() {
|
|
657
668
|
return Joi.object({
|
|
658
|
-
attributes: Joi.any(),
|
|
669
|
+
attributes: Joi.object().pattern(/\S/, Joi.any()),
|
|
659
670
|
});
|
|
660
671
|
}
|
|
661
672
|
|
|
@@ -718,11 +729,29 @@ class ThemeApplicationModel {
|
|
|
718
729
|
return Joi.object({
|
|
719
730
|
name: Joi.string().allow(""),
|
|
720
731
|
label: Joi.string().allow(""),
|
|
721
|
-
|
|
722
|
-
props: Joi.any(),
|
|
732
|
+
props: Joi.object().pattern(/\S/, Joi.any()),
|
|
723
733
|
blocks: Joi.array().items(Joi.any()),
|
|
724
|
-
preset: Joi.any(),
|
|
734
|
+
preset: Joi.object().pattern(/\S/, Joi.any()),
|
|
725
735
|
predicate: ThemeApplicationModel.AvailablePagePredicate(),
|
|
736
|
+
__source: ThemeApplicationModel.SectionSource(),
|
|
737
|
+
assets: ThemeApplicationModel.SectionAssets(),
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/** @returns {SectionAssets} */
|
|
742
|
+
static SectionAssets() {
|
|
743
|
+
return Joi.object({
|
|
744
|
+
js: Joi.string().allow(""),
|
|
745
|
+
css: Joi.string().allow(""),
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/** @returns {SectionSource} */
|
|
750
|
+
static SectionSource() {
|
|
751
|
+
return Joi.object({
|
|
752
|
+
id: Joi.string().allow(""),
|
|
753
|
+
bundle_name: Joi.string().allow(""),
|
|
754
|
+
type: Joi.string().allow(""),
|
|
726
755
|
});
|
|
727
756
|
}
|
|
728
757
|
|
|
@@ -760,7 +789,7 @@ class ThemeApplicationModel {
|
|
|
760
789
|
return Joi.object({
|
|
761
790
|
selected: Joi.string().allow(""),
|
|
762
791
|
exact_url: Joi.string().allow(""),
|
|
763
|
-
query: Joi.any(),
|
|
792
|
+
query: Joi.object().pattern(/\S/, Joi.any()),
|
|
764
793
|
});
|
|
765
794
|
}
|
|
766
795
|
|
|
@@ -788,7 +817,7 @@ class ThemeApplicationModel {
|
|
|
788
817
|
name: Joi.string().allow(""),
|
|
789
818
|
template_theme_id: Joi.string().allow(""),
|
|
790
819
|
version: Joi.string().allow(""),
|
|
791
|
-
styles: Joi.any(),
|
|
820
|
+
styles: Joi.object().pattern(/\S/, Joi.any()),
|
|
792
821
|
created_at: Joi.string().allow(""),
|
|
793
822
|
updated_at: Joi.string().allow(""),
|
|
794
823
|
assets: ThemeApplicationModel.Assets(),
|
|
@@ -843,7 +872,7 @@ class ThemeApplicationModel {
|
|
|
843
872
|
static ThemeConfiguration() {
|
|
844
873
|
return Joi.object({
|
|
845
874
|
name: Joi.string().allow(""),
|
|
846
|
-
global_config: Joi.any(),
|
|
875
|
+
global_config: Joi.object().pattern(/\S/, Joi.any()),
|
|
847
876
|
page: Joi.array().items(Joi.string().allow("")),
|
|
848
877
|
});
|
|
849
878
|
}
|
|
@@ -891,14 +920,6 @@ class ThemeApplicationModel {
|
|
|
891
920
|
});
|
|
892
921
|
}
|
|
893
922
|
|
|
894
|
-
/** @returns {GlobalConfig} */
|
|
895
|
-
static GlobalConfig() {
|
|
896
|
-
return Joi.object({
|
|
897
|
-
statics: ThemeApplicationModel.StaticConfig(),
|
|
898
|
-
custom: ThemeApplicationModel.CustomConfig(),
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
|
|
902
923
|
/** @returns {GeneralSetting} */
|
|
903
924
|
static GeneralSetting() {
|
|
904
925
|
return Joi.object({
|
|
@@ -1416,7 +1437,9 @@ class ThemeApplicationModel {
|
|
|
1416
1437
|
|
|
1417
1438
|
"return-policy",
|
|
1418
1439
|
|
|
1419
|
-
"order-status"
|
|
1440
|
+
"order-status",
|
|
1441
|
+
|
|
1442
|
+
"locate-us"
|
|
1420
1443
|
);
|
|
1421
1444
|
}
|
|
1422
1445
|
}
|
|
@@ -3,7 +3,10 @@ export = ThemeApplicationValidator;
|
|
|
3
3
|
* @typedef GetAllPagesParam
|
|
4
4
|
* @property {string} themeId - Id of the theme to be retrieved.
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @typedef GetAppliedThemeParam
|
|
8
|
+
* @property {boolean} [filters] - Filters on sections to be applied or not.
|
|
9
|
+
*/
|
|
7
10
|
/**
|
|
8
11
|
* @typedef GetPageParam
|
|
9
12
|
* @property {string} themeId - Id of the theme to be retrieved.
|
|
@@ -15,12 +18,13 @@ export = ThemeApplicationValidator;
|
|
|
15
18
|
/**
|
|
16
19
|
* @typedef GetThemeForPreviewParam
|
|
17
20
|
* @property {string} themeId - Id of the theme to be retrieved.
|
|
21
|
+
* @property {boolean} [filters] - Filters on sections to be applied or not.
|
|
18
22
|
*/
|
|
19
23
|
declare class ThemeApplicationValidator {
|
|
20
24
|
/** @returns {GetAllPagesParam} */
|
|
21
25
|
static getAllPages(): GetAllPagesParam;
|
|
22
26
|
/** @returns {GetAppliedThemeParam} */
|
|
23
|
-
static getAppliedTheme():
|
|
27
|
+
static getAppliedTheme(): GetAppliedThemeParam;
|
|
24
28
|
/** @returns {GetPageParam} */
|
|
25
29
|
static getPage(): GetPageParam;
|
|
26
30
|
/** @returns {GetThemeForPreviewParam} */
|
|
@@ -35,6 +39,12 @@ type GetAllPagesParam = {
|
|
|
35
39
|
*/
|
|
36
40
|
themeId: string;
|
|
37
41
|
};
|
|
42
|
+
type GetAppliedThemeParam = {
|
|
43
|
+
/**
|
|
44
|
+
* - Filters on sections to be applied or not.
|
|
45
|
+
*/
|
|
46
|
+
filters?: boolean;
|
|
47
|
+
};
|
|
38
48
|
type GetPageParam = {
|
|
39
49
|
/**
|
|
40
50
|
* - Id of the theme to be retrieved.
|
|
@@ -62,5 +72,8 @@ type GetThemeForPreviewParam = {
|
|
|
62
72
|
* - Id of the theme to be retrieved.
|
|
63
73
|
*/
|
|
64
74
|
themeId: string;
|
|
75
|
+
/**
|
|
76
|
+
* - Filters on sections to be applied or not.
|
|
77
|
+
*/
|
|
78
|
+
filters?: boolean;
|
|
65
79
|
};
|
|
66
|
-
type GetAppliedThemeParam = any;
|
|
@@ -7,7 +7,10 @@ const ThemeApplicationModel = require("./ThemeApplicationModel");
|
|
|
7
7
|
* @property {string} themeId - Id of the theme to be retrieved.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @typedef GetAppliedThemeParam
|
|
12
|
+
* @property {boolean} [filters] - Filters on sections to be applied or not.
|
|
13
|
+
*/
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* @typedef GetPageParam
|
|
@@ -21,6 +24,7 @@ const ThemeApplicationModel = require("./ThemeApplicationModel");
|
|
|
21
24
|
/**
|
|
22
25
|
* @typedef GetThemeForPreviewParam
|
|
23
26
|
* @property {string} themeId - Id of the theme to be retrieved.
|
|
27
|
+
* @property {boolean} [filters] - Filters on sections to be applied or not.
|
|
24
28
|
*/
|
|
25
29
|
|
|
26
30
|
class ThemeApplicationValidator {
|
|
@@ -33,7 +37,9 @@ class ThemeApplicationValidator {
|
|
|
33
37
|
|
|
34
38
|
/** @returns {GetAppliedThemeParam} */
|
|
35
39
|
static getAppliedTheme() {
|
|
36
|
-
return Joi.object({
|
|
40
|
+
return Joi.object({
|
|
41
|
+
filters: Joi.boolean(),
|
|
42
|
+
});
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
/** @returns {GetPageParam} */
|
|
@@ -51,6 +57,7 @@ class ThemeApplicationValidator {
|
|
|
51
57
|
static getThemeForPreview() {
|
|
52
58
|
return Joi.object({
|
|
53
59
|
themeId: Joi.string().allow("").required(),
|
|
60
|
+
filters: Joi.boolean(),
|
|
54
61
|
}).required();
|
|
55
62
|
}
|
|
56
63
|
}
|
|
@@ -223,12 +223,12 @@ declare class User {
|
|
|
223
223
|
* @param {UserApplicationValidator.LoginWithOTPParam} arg - Arg object.
|
|
224
224
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
225
225
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
226
|
-
* @returns {Promise<UserApplicationModel.
|
|
226
|
+
* @returns {Promise<UserApplicationModel.SendOtp>} - Success response
|
|
227
227
|
* @name loginWithOTP
|
|
228
228
|
* @summary: Login with Mobile OTP
|
|
229
229
|
* @description: Allow users to log in using a one-time password sent to their mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithOTP/).
|
|
230
230
|
*/
|
|
231
|
-
loginWithOTP({ body, platform, requestHeaders }?: UserApplicationValidator.LoginWithOTPParam, { responseHeaders }?: object): Promise<UserApplicationModel.
|
|
231
|
+
loginWithOTP({ body, platform, requestHeaders }?: UserApplicationValidator.LoginWithOTPParam, { responseHeaders }?: object): Promise<UserApplicationModel.SendOtp>;
|
|
232
232
|
/**
|
|
233
233
|
* @param {UserApplicationValidator.LoginWithTokenParam} arg - Arg object.
|
|
234
234
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -284,12 +284,12 @@ declare class User {
|
|
|
284
284
|
* @param {UserApplicationValidator.SendForgotOTPOnMobileParam} arg - Arg object.
|
|
285
285
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
286
286
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
287
|
-
* @returns {Promise<UserApplicationModel.
|
|
287
|
+
* @returns {Promise<UserApplicationModel.SendOtpSuccess>} - Success response
|
|
288
288
|
* @name sendForgotOTPOnMobile
|
|
289
289
|
* @summary: Send mobile OTP for forgot-password
|
|
290
290
|
* @description: Send a one-time password to the user's mobile for verification when resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/).
|
|
291
291
|
*/
|
|
292
|
-
sendForgotOTPOnMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendForgotOTPOnMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.
|
|
292
|
+
sendForgotOTPOnMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendForgotOTPOnMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.SendOtpSuccess>;
|
|
293
293
|
/**
|
|
294
294
|
* @param {UserApplicationValidator.SendOTPOnEmailParam} arg - Arg object.
|
|
295
295
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -304,12 +304,12 @@ declare class User {
|
|
|
304
304
|
* @param {UserApplicationValidator.SendOTPOnMobileParam} arg - Arg object.
|
|
305
305
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
306
306
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
307
|
-
* @returns {Promise<UserApplicationModel.
|
|
307
|
+
* @returns {Promise<UserApplicationModel.SendOtpSuccess>} - Success response
|
|
308
308
|
* @name sendOTPOnMobile
|
|
309
309
|
* @summary: Send OTP on Mobile
|
|
310
310
|
* @description: Send a one-time password to the user's mobile for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnMobile/).
|
|
311
311
|
*/
|
|
312
|
-
sendOTPOnMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendOTPOnMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.
|
|
312
|
+
sendOTPOnMobile({ body, platform, requestHeaders }?: UserApplicationValidator.SendOTPOnMobileParam, { responseHeaders }?: object): Promise<UserApplicationModel.SendOtpSuccess>;
|
|
313
313
|
/**
|
|
314
314
|
* @param {UserApplicationValidator.SendResetPasswordEmailParam} arg - Arg object.
|
|
315
315
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -391,7 +391,7 @@ declare class User {
|
|
|
391
391
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
392
392
|
* @returns {Promise<UserApplicationModel.VerifyEmailSuccess>} - Success response
|
|
393
393
|
* @name updatePassword
|
|
394
|
-
* @summary: Update
|
|
394
|
+
* @summary: Update password
|
|
395
395
|
* @description: Allow user to change their password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updatePassword/).
|
|
396
396
|
*/
|
|
397
397
|
updatePassword({ body, requestHeaders }?: UserApplicationValidator.UpdatePasswordParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyEmailSuccess>;
|
|
@@ -419,12 +419,12 @@ declare class User {
|
|
|
419
419
|
* @param {UserApplicationValidator.UserExistsParam} arg - Arg object.
|
|
420
420
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
421
421
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
422
|
-
* @returns {Promise<UserApplicationModel.
|
|
422
|
+
* @returns {Promise<UserApplicationModel.UserExistsDetails>} - Success response
|
|
423
423
|
* @name userExists
|
|
424
424
|
* @summary: Chcek User Existence
|
|
425
425
|
* @description: Check whether user is already registered or not to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/userExists/).
|
|
426
426
|
*/
|
|
427
|
-
userExists({ q, requestHeaders }?: UserApplicationValidator.UserExistsParam, { responseHeaders }?: object): Promise<UserApplicationModel.
|
|
427
|
+
userExists({ q, requestHeaders }?: UserApplicationValidator.UserExistsParam, { responseHeaders }?: object): Promise<UserApplicationModel.UserExistsDetails>;
|
|
428
428
|
/**
|
|
429
429
|
* @param {UserApplicationValidator.VerifyEmailParam} arg - Arg object.
|
|
430
430
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -481,7 +481,7 @@ declare class User {
|
|
|
481
481
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
482
482
|
* @returns {Promise<UserApplicationModel.VerifyOtpSuccess>} - Success response
|
|
483
483
|
* @name verifyMobileOTP
|
|
484
|
-
* @summary: Verify
|
|
484
|
+
* @summary: Verify mobile OTP
|
|
485
485
|
* @description: Verify one-time password sent to user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileOTP/).
|
|
486
486
|
*/
|
|
487
487
|
verifyMobileOTP({ body, platform, requestHeaders }?: UserApplicationValidator.VerifyMobileOTPParam, { responseHeaders }?: object): Promise<UserApplicationModel.VerifyOtpSuccess>;
|
|
@@ -1460,7 +1460,7 @@ class User {
|
|
|
1460
1460
|
* @param {UserApplicationValidator.LoginWithOTPParam} arg - Arg object.
|
|
1461
1461
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1462
1462
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1463
|
-
* @returns {Promise<UserApplicationModel.
|
|
1463
|
+
* @returns {Promise<UserApplicationModel.SendOtp>} - Success response
|
|
1464
1464
|
* @name loginWithOTP
|
|
1465
1465
|
* @summary: Login with Mobile OTP
|
|
1466
1466
|
* @description: Allow users to log in using a one-time password sent to their mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/loginWithOTP/).
|
|
@@ -1516,7 +1516,7 @@ class User {
|
|
|
1516
1516
|
|
|
1517
1517
|
const {
|
|
1518
1518
|
error: res_error,
|
|
1519
|
-
} = UserApplicationModel.
|
|
1519
|
+
} = UserApplicationModel.SendOtp().validate(responseData, {
|
|
1520
1520
|
abortEarly: false,
|
|
1521
1521
|
allowUnknown: true,
|
|
1522
1522
|
});
|
|
@@ -1930,7 +1930,7 @@ class User {
|
|
|
1930
1930
|
* @param {UserApplicationValidator.SendForgotOTPOnMobileParam} arg - Arg object.
|
|
1931
1931
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1932
1932
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1933
|
-
* @returns {Promise<UserApplicationModel.
|
|
1933
|
+
* @returns {Promise<UserApplicationModel.SendOtpSuccess>} - Success response
|
|
1934
1934
|
* @name sendForgotOTPOnMobile
|
|
1935
1935
|
* @summary: Send mobile OTP for forgot-password
|
|
1936
1936
|
* @description: Send a one-time password to the user's mobile for verification when resetting a forgotten password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendForgotOTPOnMobile/).
|
|
@@ -1986,7 +1986,7 @@ class User {
|
|
|
1986
1986
|
|
|
1987
1987
|
const {
|
|
1988
1988
|
error: res_error,
|
|
1989
|
-
} = UserApplicationModel.
|
|
1989
|
+
} = UserApplicationModel.SendOtpSuccess().validate(responseData, {
|
|
1990
1990
|
abortEarly: false,
|
|
1991
1991
|
allowUnknown: true,
|
|
1992
1992
|
});
|
|
@@ -2088,7 +2088,7 @@ class User {
|
|
|
2088
2088
|
* @param {UserApplicationValidator.SendOTPOnMobileParam} arg - Arg object.
|
|
2089
2089
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2090
2090
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2091
|
-
* @returns {Promise<UserApplicationModel.
|
|
2091
|
+
* @returns {Promise<UserApplicationModel.SendOtpSuccess>} - Success response
|
|
2092
2092
|
* @name sendOTPOnMobile
|
|
2093
2093
|
* @summary: Send OTP on Mobile
|
|
2094
2094
|
* @description: Send a one-time password to the user's mobile for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/sendOTPOnMobile/).
|
|
@@ -2144,7 +2144,7 @@ class User {
|
|
|
2144
2144
|
|
|
2145
2145
|
const {
|
|
2146
2146
|
error: res_error,
|
|
2147
|
-
} = UserApplicationModel.
|
|
2147
|
+
} = UserApplicationModel.SendOtpSuccess().validate(responseData, {
|
|
2148
2148
|
abortEarly: false,
|
|
2149
2149
|
allowUnknown: true,
|
|
2150
2150
|
});
|
|
@@ -2731,7 +2731,7 @@ class User {
|
|
|
2731
2731
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2732
2732
|
* @returns {Promise<UserApplicationModel.VerifyEmailSuccess>} - Success response
|
|
2733
2733
|
* @name updatePassword
|
|
2734
|
-
* @summary: Update
|
|
2734
|
+
* @summary: Update password
|
|
2735
2735
|
* @description: Allow user to change their password. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updatePassword/).
|
|
2736
2736
|
*/
|
|
2737
2737
|
async updatePassword(
|
|
@@ -2964,7 +2964,7 @@ class User {
|
|
|
2964
2964
|
* @param {UserApplicationValidator.UserExistsParam} arg - Arg object.
|
|
2965
2965
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2966
2966
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2967
|
-
* @returns {Promise<UserApplicationModel.
|
|
2967
|
+
* @returns {Promise<UserApplicationModel.UserExistsDetails>} - Success response
|
|
2968
2968
|
* @name userExists
|
|
2969
2969
|
* @summary: Chcek User Existence
|
|
2970
2970
|
* @description: Check whether user is already registered or not to the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/userExists/).
|
|
@@ -3018,7 +3018,7 @@ class User {
|
|
|
3018
3018
|
|
|
3019
3019
|
const {
|
|
3020
3020
|
error: res_error,
|
|
3021
|
-
} = UserApplicationModel.
|
|
3021
|
+
} = UserApplicationModel.UserExistsDetails().validate(responseData, {
|
|
3022
3022
|
abortEarly: false,
|
|
3023
3023
|
allowUnknown: true,
|
|
3024
3024
|
});
|
|
@@ -3434,7 +3434,7 @@ class User {
|
|
|
3434
3434
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3435
3435
|
* @returns {Promise<UserApplicationModel.VerifyOtpSuccess>} - Success response
|
|
3436
3436
|
* @name verifyMobileOTP
|
|
3437
|
-
* @summary: Verify
|
|
3437
|
+
* @summary: Verify mobile OTP
|
|
3438
3438
|
* @description: Verify one-time password sent to user's mobile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/verifyMobileOTP/).
|
|
3439
3439
|
*/
|
|
3440
3440
|
async verifyMobileOTP(
|