@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.8
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
- package/sdk/application/Content/ContentApplicationModel.js +342 -276
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
- package/sdk/application/Order/OrderApplicationModel.js +392 -316
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
- package/sdk/platform/Content/ContentPlatformModel.js +30 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
- package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
- package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
- package/sdk/platform/Order/OrderPlatformModel.js +367 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
- package/sdk/platform/User/UserPlatformModel.js +9 -11
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
- package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -1,88 +1,104 @@
|
|
|
1
1
|
export = ShareApplicationModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef QRCodeResp
|
|
4
|
-
* @property {string} [link]
|
|
5
|
-
* @property {string} [svg]
|
|
4
|
+
* @property {string} [link] - Original url that was used to encoded url into a QR code.
|
|
5
|
+
* @property {string} [svg] - String representation of the QR Code in SVG format.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* @typedef RedirectDevice
|
|
9
|
-
* @property {string} [link]
|
|
10
|
-
*
|
|
9
|
+
* @property {string} [link] - Fallback URL to redirect users to the app store
|
|
10
|
+
* or a web page if the app is not installed when they click the link.
|
|
11
|
+
* @property {string} [type] - Type of fallback used to redirect users to the
|
|
12
|
+
* app store or a web page if the app is not installed when they click the link.
|
|
11
13
|
*/
|
|
12
14
|
/**
|
|
13
15
|
* @typedef WebRedirect
|
|
14
|
-
* @property {string} [link]
|
|
15
|
-
*
|
|
16
|
+
* @property {string} [link] - Fallback URL to redirect users to the app store
|
|
17
|
+
* or a web page if the app is not installed when they click the link.
|
|
18
|
+
* @property {string} [type] - Type of fallback used to redirect users to the
|
|
19
|
+
* app store or a web page if the app is not installed when they click the link.
|
|
16
20
|
*/
|
|
17
21
|
/**
|
|
18
22
|
* @typedef Redirects
|
|
19
23
|
* @property {RedirectDevice} [ios]
|
|
20
24
|
* @property {RedirectDevice} [android]
|
|
21
25
|
* @property {WebRedirect} [web]
|
|
22
|
-
* @property {boolean} [force_web]
|
|
26
|
+
* @property {boolean} [force_web] - Flag for overriding redirection traffic to
|
|
27
|
+
* the web if the app is not installed when the link is clicked.
|
|
23
28
|
*/
|
|
24
29
|
/**
|
|
25
30
|
* @typedef CampaignShortLink
|
|
26
|
-
* @property {string} [source]
|
|
27
|
-
* @property {string} [medium]
|
|
31
|
+
* @property {string} [source] - Source of communication of campaign.
|
|
32
|
+
* @property {string} [medium] - Channel of communication of campaign.
|
|
28
33
|
*/
|
|
29
34
|
/**
|
|
30
35
|
* @typedef Attribution
|
|
31
|
-
* @property {string} [campaign_cookie_expiry]
|
|
36
|
+
* @property {string} [campaign_cookie_expiry] - Expiration of campaign.
|
|
32
37
|
*/
|
|
33
38
|
/**
|
|
34
39
|
* @typedef SocialMediaTags
|
|
35
|
-
* @property {string} [title]
|
|
36
|
-
*
|
|
37
|
-
* @property {string} [
|
|
40
|
+
* @property {string} [title] - Title to be displayed when link is shared on
|
|
41
|
+
* social media platforms.
|
|
42
|
+
* @property {string} [description] - Description to be displayed when link is
|
|
43
|
+
* shared on social media platforms.
|
|
44
|
+
* @property {string} [image] - Preview to be displayed when link is shared on
|
|
45
|
+
* social media platforms.
|
|
38
46
|
*/
|
|
39
47
|
/**
|
|
40
48
|
* @typedef ShortLinkReq
|
|
41
49
|
* @property {string} title - Give a name to the link.
|
|
42
50
|
* @property {string} url - The web address to shorten.
|
|
43
|
-
* @property {string} [hash]
|
|
44
|
-
*
|
|
45
|
-
* @property {
|
|
46
|
-
* @property {
|
|
51
|
+
* @property {string} [hash] - A string value used for converting long URL to
|
|
52
|
+
* short URL and vice-versa.
|
|
53
|
+
* @property {boolean} [active] - Status of the shortlink.
|
|
54
|
+
* @property {string} [expire_at] - Expiry of the shortlink.
|
|
55
|
+
* @property {boolean} [enable_tracking] - Flag to enable tracking of a short link.
|
|
47
56
|
* @property {boolean} [personalized] - To create personalized short links.
|
|
48
57
|
* @property {CampaignShortLink} [campaign]
|
|
49
58
|
* @property {Redirects} [redirects]
|
|
50
59
|
* @property {Attribution} [attribution]
|
|
51
60
|
* @property {SocialMediaTags} [social_media_tags]
|
|
52
|
-
* @property {number} [count]
|
|
61
|
+
* @property {number} [count] - Click count of shortlink.
|
|
53
62
|
*/
|
|
54
63
|
/**
|
|
55
64
|
* @typedef UrlInfo
|
|
56
|
-
* @property {string} [original]
|
|
57
|
-
*
|
|
58
|
-
* @property {string} [
|
|
65
|
+
* @property {string} [original] - Original web address which will be converted
|
|
66
|
+
* to shortlink.
|
|
67
|
+
* @property {string} [hash] - A string value used for converting long URL to
|
|
68
|
+
* short URL and vice-versa.
|
|
69
|
+
* @property {string} [short_url] - Condensed version of a longer URL,
|
|
70
|
+
* redirecting to the original page upon being clicked.
|
|
59
71
|
*/
|
|
60
72
|
/**
|
|
61
73
|
* @typedef ShortLinkRes
|
|
62
|
-
* @property {string} [title]
|
|
74
|
+
* @property {string} [title] - Name reference of the shortlink.
|
|
63
75
|
* @property {UrlInfo} [url]
|
|
64
|
-
* @property {string} [created_by]
|
|
65
|
-
* @property {boolean} [app_redirect]
|
|
66
|
-
* @property {string} [fallback]
|
|
67
|
-
* @property {boolean} [active]
|
|
68
|
-
* @property {string} [_id]
|
|
69
|
-
*
|
|
70
|
-
* @property {
|
|
71
|
-
* @property {string} [
|
|
72
|
-
* @property {string} [
|
|
73
|
-
*
|
|
74
|
-
* @property {
|
|
75
|
-
* @property {string} [
|
|
76
|
-
*
|
|
76
|
+
* @property {string} [created_by] - Reference of the creator of the shortlink.
|
|
77
|
+
* @property {boolean} [app_redirect] - Application redirection flag of shortlink.
|
|
78
|
+
* @property {string} [fallback] - Fallback attributes of shortlink.
|
|
79
|
+
* @property {boolean} [active] - Status of the shortlink.
|
|
80
|
+
* @property {string} [_id] - Key used to uniquely identify document that
|
|
81
|
+
* contains shortlink details.
|
|
82
|
+
* @property {boolean} [enable_tracking] - Flag to enable tracking of a short link.
|
|
83
|
+
* @property {string} [expire_at] - Expiry of the shortlink.
|
|
84
|
+
* @property {string} [application] - The ID of the sales channel associated
|
|
85
|
+
* with the shortlink.
|
|
86
|
+
* @property {string} [user_id] - Identifier which can uniquely identify the user.
|
|
87
|
+
* @property {string} [created_at] - The timestamp indicating when a record was
|
|
88
|
+
* initially created.
|
|
89
|
+
* @property {Object} [meta] - Additional attributes of shortlink.
|
|
90
|
+
* @property {string} [updated_at] - The timestamp indicating when a record was
|
|
91
|
+
* last modified or updated.
|
|
92
|
+
* @property {boolean} [personalized] - To create personalized short links.
|
|
77
93
|
* @property {CampaignShortLink} [campaign]
|
|
78
94
|
* @property {Redirects} [redirects]
|
|
79
95
|
* @property {Attribution} [attribution]
|
|
80
96
|
* @property {SocialMediaTags} [social_media_tags]
|
|
81
|
-
* @property {number} [count]
|
|
97
|
+
* @property {number} [count] - Click count of shortlink.
|
|
82
98
|
*/
|
|
83
99
|
/**
|
|
84
100
|
* @typedef ErrorRes
|
|
85
|
-
* @property {string} [message]
|
|
101
|
+
* @property {string} [message] - Error message providing details about the error.
|
|
86
102
|
*/
|
|
87
103
|
declare class ShareApplicationModel {
|
|
88
104
|
}
|
|
@@ -92,19 +108,41 @@ declare namespace ShareApplicationModel {
|
|
|
92
108
|
/** @returns {QRCodeResp} */
|
|
93
109
|
declare function QRCodeResp(): QRCodeResp;
|
|
94
110
|
type QRCodeResp = {
|
|
111
|
+
/**
|
|
112
|
+
* - Original url that was used to encoded url into a QR code.
|
|
113
|
+
*/
|
|
95
114
|
link?: string;
|
|
115
|
+
/**
|
|
116
|
+
* - String representation of the QR Code in SVG format.
|
|
117
|
+
*/
|
|
96
118
|
svg?: string;
|
|
97
119
|
};
|
|
98
120
|
/** @returns {RedirectDevice} */
|
|
99
121
|
declare function RedirectDevice(): RedirectDevice;
|
|
100
122
|
type RedirectDevice = {
|
|
123
|
+
/**
|
|
124
|
+
* - Fallback URL to redirect users to the app store
|
|
125
|
+
* or a web page if the app is not installed when they click the link.
|
|
126
|
+
*/
|
|
101
127
|
link?: string;
|
|
128
|
+
/**
|
|
129
|
+
* - Type of fallback used to redirect users to the
|
|
130
|
+
* app store or a web page if the app is not installed when they click the link.
|
|
131
|
+
*/
|
|
102
132
|
type?: string;
|
|
103
133
|
};
|
|
104
134
|
/** @returns {WebRedirect} */
|
|
105
135
|
declare function WebRedirect(): WebRedirect;
|
|
106
136
|
type WebRedirect = {
|
|
137
|
+
/**
|
|
138
|
+
* - Fallback URL to redirect users to the app store
|
|
139
|
+
* or a web page if the app is not installed when they click the link.
|
|
140
|
+
*/
|
|
107
141
|
link?: string;
|
|
142
|
+
/**
|
|
143
|
+
* - Type of fallback used to redirect users to the
|
|
144
|
+
* app store or a web page if the app is not installed when they click the link.
|
|
145
|
+
*/
|
|
108
146
|
type?: string;
|
|
109
147
|
};
|
|
110
148
|
/** @returns {Redirects} */
|
|
@@ -113,24 +151,49 @@ type Redirects = {
|
|
|
113
151
|
ios?: RedirectDevice;
|
|
114
152
|
android?: RedirectDevice;
|
|
115
153
|
web?: WebRedirect;
|
|
154
|
+
/**
|
|
155
|
+
* - Flag for overriding redirection traffic to
|
|
156
|
+
* the web if the app is not installed when the link is clicked.
|
|
157
|
+
*/
|
|
116
158
|
force_web?: boolean;
|
|
117
159
|
};
|
|
118
160
|
/** @returns {CampaignShortLink} */
|
|
119
161
|
declare function CampaignShortLink(): CampaignShortLink;
|
|
120
162
|
type CampaignShortLink = {
|
|
163
|
+
/**
|
|
164
|
+
* - Source of communication of campaign.
|
|
165
|
+
*/
|
|
121
166
|
source?: string;
|
|
167
|
+
/**
|
|
168
|
+
* - Channel of communication of campaign.
|
|
169
|
+
*/
|
|
122
170
|
medium?: string;
|
|
123
171
|
};
|
|
124
172
|
/** @returns {Attribution} */
|
|
125
173
|
declare function Attribution(): Attribution;
|
|
126
174
|
type Attribution = {
|
|
175
|
+
/**
|
|
176
|
+
* - Expiration of campaign.
|
|
177
|
+
*/
|
|
127
178
|
campaign_cookie_expiry?: string;
|
|
128
179
|
};
|
|
129
180
|
/** @returns {SocialMediaTags} */
|
|
130
181
|
declare function SocialMediaTags(): SocialMediaTags;
|
|
131
182
|
type SocialMediaTags = {
|
|
183
|
+
/**
|
|
184
|
+
* - Title to be displayed when link is shared on
|
|
185
|
+
* social media platforms.
|
|
186
|
+
*/
|
|
132
187
|
title?: string;
|
|
188
|
+
/**
|
|
189
|
+
* - Description to be displayed when link is
|
|
190
|
+
* shared on social media platforms.
|
|
191
|
+
*/
|
|
133
192
|
description?: string;
|
|
193
|
+
/**
|
|
194
|
+
* - Preview to be displayed when link is shared on
|
|
195
|
+
* social media platforms.
|
|
196
|
+
*/
|
|
134
197
|
image?: string;
|
|
135
198
|
};
|
|
136
199
|
/** @returns {ShortLinkReq} */
|
|
@@ -144,9 +207,22 @@ type ShortLinkReq = {
|
|
|
144
207
|
* - The web address to shorten.
|
|
145
208
|
*/
|
|
146
209
|
url: string;
|
|
210
|
+
/**
|
|
211
|
+
* - A string value used for converting long URL to
|
|
212
|
+
* short URL and vice-versa.
|
|
213
|
+
*/
|
|
147
214
|
hash?: string;
|
|
215
|
+
/**
|
|
216
|
+
* - Status of the shortlink.
|
|
217
|
+
*/
|
|
148
218
|
active?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* - Expiry of the shortlink.
|
|
221
|
+
*/
|
|
149
222
|
expire_at?: string;
|
|
223
|
+
/**
|
|
224
|
+
* - Flag to enable tracking of a short link.
|
|
225
|
+
*/
|
|
150
226
|
enable_tracking?: boolean;
|
|
151
227
|
/**
|
|
152
228
|
* - To create personalized short links.
|
|
@@ -156,44 +232,108 @@ type ShortLinkReq = {
|
|
|
156
232
|
redirects?: Redirects;
|
|
157
233
|
attribution?: Attribution;
|
|
158
234
|
social_media_tags?: SocialMediaTags;
|
|
235
|
+
/**
|
|
236
|
+
* - Click count of shortlink.
|
|
237
|
+
*/
|
|
159
238
|
count?: number;
|
|
160
239
|
};
|
|
161
240
|
/** @returns {UrlInfo} */
|
|
162
241
|
declare function UrlInfo(): UrlInfo;
|
|
163
242
|
type UrlInfo = {
|
|
243
|
+
/**
|
|
244
|
+
* - Original web address which will be converted
|
|
245
|
+
* to shortlink.
|
|
246
|
+
*/
|
|
164
247
|
original?: string;
|
|
248
|
+
/**
|
|
249
|
+
* - A string value used for converting long URL to
|
|
250
|
+
* short URL and vice-versa.
|
|
251
|
+
*/
|
|
165
252
|
hash?: string;
|
|
253
|
+
/**
|
|
254
|
+
* - Condensed version of a longer URL,
|
|
255
|
+
* redirecting to the original page upon being clicked.
|
|
256
|
+
*/
|
|
166
257
|
short_url?: string;
|
|
167
258
|
};
|
|
168
259
|
/** @returns {ShortLinkRes} */
|
|
169
260
|
declare function ShortLinkRes(): ShortLinkRes;
|
|
170
261
|
type ShortLinkRes = {
|
|
262
|
+
/**
|
|
263
|
+
* - Name reference of the shortlink.
|
|
264
|
+
*/
|
|
171
265
|
title?: string;
|
|
172
266
|
url?: UrlInfo;
|
|
267
|
+
/**
|
|
268
|
+
* - Reference of the creator of the shortlink.
|
|
269
|
+
*/
|
|
173
270
|
created_by?: string;
|
|
271
|
+
/**
|
|
272
|
+
* - Application redirection flag of shortlink.
|
|
273
|
+
*/
|
|
174
274
|
app_redirect?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* - Fallback attributes of shortlink.
|
|
277
|
+
*/
|
|
175
278
|
fallback?: string;
|
|
279
|
+
/**
|
|
280
|
+
* - Status of the shortlink.
|
|
281
|
+
*/
|
|
176
282
|
active?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* - Key used to uniquely identify document that
|
|
285
|
+
* contains shortlink details.
|
|
286
|
+
*/
|
|
177
287
|
_id?: string;
|
|
288
|
+
/**
|
|
289
|
+
* - Flag to enable tracking of a short link.
|
|
290
|
+
*/
|
|
178
291
|
enable_tracking?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* - Expiry of the shortlink.
|
|
294
|
+
*/
|
|
179
295
|
expire_at?: string;
|
|
296
|
+
/**
|
|
297
|
+
* - The ID of the sales channel associated
|
|
298
|
+
* with the shortlink.
|
|
299
|
+
*/
|
|
180
300
|
application?: string;
|
|
301
|
+
/**
|
|
302
|
+
* - Identifier which can uniquely identify the user.
|
|
303
|
+
*/
|
|
181
304
|
user_id?: string;
|
|
305
|
+
/**
|
|
306
|
+
* - The timestamp indicating when a record was
|
|
307
|
+
* initially created.
|
|
308
|
+
*/
|
|
182
309
|
created_at?: string;
|
|
310
|
+
/**
|
|
311
|
+
* - Additional attributes of shortlink.
|
|
312
|
+
*/
|
|
183
313
|
meta?: any;
|
|
314
|
+
/**
|
|
315
|
+
* - The timestamp indicating when a record was
|
|
316
|
+
* last modified or updated.
|
|
317
|
+
*/
|
|
184
318
|
updated_at?: string;
|
|
185
319
|
/**
|
|
186
|
-
* - To create personalized short links
|
|
320
|
+
* - To create personalized short links.
|
|
187
321
|
*/
|
|
188
322
|
personalized?: boolean;
|
|
189
323
|
campaign?: CampaignShortLink;
|
|
190
324
|
redirects?: Redirects;
|
|
191
325
|
attribution?: Attribution;
|
|
192
326
|
social_media_tags?: SocialMediaTags;
|
|
327
|
+
/**
|
|
328
|
+
* - Click count of shortlink.
|
|
329
|
+
*/
|
|
193
330
|
count?: number;
|
|
194
331
|
};
|
|
195
332
|
/** @returns {ErrorRes} */
|
|
196
333
|
declare function ErrorRes(): ErrorRes;
|
|
197
334
|
type ErrorRes = {
|
|
335
|
+
/**
|
|
336
|
+
* - Error message providing details about the error.
|
|
337
|
+
*/
|
|
198
338
|
message?: string;
|
|
199
339
|
};
|
|
@@ -2,20 +2,24 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef QRCodeResp
|
|
5
|
-
* @property {string} [link]
|
|
6
|
-
* @property {string} [svg]
|
|
5
|
+
* @property {string} [link] - Original url that was used to encoded url into a QR code.
|
|
6
|
+
* @property {string} [svg] - String representation of the QR Code in SVG format.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @typedef RedirectDevice
|
|
11
|
-
* @property {string} [link]
|
|
12
|
-
*
|
|
11
|
+
* @property {string} [link] - Fallback URL to redirect users to the app store
|
|
12
|
+
* or a web page if the app is not installed when they click the link.
|
|
13
|
+
* @property {string} [type] - Type of fallback used to redirect users to the
|
|
14
|
+
* app store or a web page if the app is not installed when they click the link.
|
|
13
15
|
*/
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* @typedef WebRedirect
|
|
17
|
-
* @property {string} [link]
|
|
18
|
-
*
|
|
19
|
+
* @property {string} [link] - Fallback URL to redirect users to the app store
|
|
20
|
+
* or a web page if the app is not installed when they click the link.
|
|
21
|
+
* @property {string} [type] - Type of fallback used to redirect users to the
|
|
22
|
+
* app store or a web page if the app is not installed when they click the link.
|
|
19
23
|
*/
|
|
20
24
|
|
|
21
25
|
/**
|
|
@@ -23,77 +27,89 @@ const Joi = require("joi");
|
|
|
23
27
|
* @property {RedirectDevice} [ios]
|
|
24
28
|
* @property {RedirectDevice} [android]
|
|
25
29
|
* @property {WebRedirect} [web]
|
|
26
|
-
* @property {boolean} [force_web]
|
|
30
|
+
* @property {boolean} [force_web] - Flag for overriding redirection traffic to
|
|
31
|
+
* the web if the app is not installed when the link is clicked.
|
|
27
32
|
*/
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
35
|
* @typedef CampaignShortLink
|
|
31
|
-
* @property {string} [source]
|
|
32
|
-
* @property {string} [medium]
|
|
36
|
+
* @property {string} [source] - Source of communication of campaign.
|
|
37
|
+
* @property {string} [medium] - Channel of communication of campaign.
|
|
33
38
|
*/
|
|
34
39
|
|
|
35
40
|
/**
|
|
36
41
|
* @typedef Attribution
|
|
37
|
-
* @property {string} [campaign_cookie_expiry]
|
|
42
|
+
* @property {string} [campaign_cookie_expiry] - Expiration of campaign.
|
|
38
43
|
*/
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* @typedef SocialMediaTags
|
|
42
|
-
* @property {string} [title]
|
|
43
|
-
*
|
|
44
|
-
* @property {string} [
|
|
47
|
+
* @property {string} [title] - Title to be displayed when link is shared on
|
|
48
|
+
* social media platforms.
|
|
49
|
+
* @property {string} [description] - Description to be displayed when link is
|
|
50
|
+
* shared on social media platforms.
|
|
51
|
+
* @property {string} [image] - Preview to be displayed when link is shared on
|
|
52
|
+
* social media platforms.
|
|
45
53
|
*/
|
|
46
54
|
|
|
47
55
|
/**
|
|
48
56
|
* @typedef ShortLinkReq
|
|
49
57
|
* @property {string} title - Give a name to the link.
|
|
50
58
|
* @property {string} url - The web address to shorten.
|
|
51
|
-
* @property {string} [hash]
|
|
52
|
-
*
|
|
53
|
-
* @property {
|
|
54
|
-
* @property {
|
|
59
|
+
* @property {string} [hash] - A string value used for converting long URL to
|
|
60
|
+
* short URL and vice-versa.
|
|
61
|
+
* @property {boolean} [active] - Status of the shortlink.
|
|
62
|
+
* @property {string} [expire_at] - Expiry of the shortlink.
|
|
63
|
+
* @property {boolean} [enable_tracking] - Flag to enable tracking of a short link.
|
|
55
64
|
* @property {boolean} [personalized] - To create personalized short links.
|
|
56
65
|
* @property {CampaignShortLink} [campaign]
|
|
57
66
|
* @property {Redirects} [redirects]
|
|
58
67
|
* @property {Attribution} [attribution]
|
|
59
68
|
* @property {SocialMediaTags} [social_media_tags]
|
|
60
|
-
* @property {number} [count]
|
|
69
|
+
* @property {number} [count] - Click count of shortlink.
|
|
61
70
|
*/
|
|
62
71
|
|
|
63
72
|
/**
|
|
64
73
|
* @typedef UrlInfo
|
|
65
|
-
* @property {string} [original]
|
|
66
|
-
*
|
|
67
|
-
* @property {string} [
|
|
74
|
+
* @property {string} [original] - Original web address which will be converted
|
|
75
|
+
* to shortlink.
|
|
76
|
+
* @property {string} [hash] - A string value used for converting long URL to
|
|
77
|
+
* short URL and vice-versa.
|
|
78
|
+
* @property {string} [short_url] - Condensed version of a longer URL,
|
|
79
|
+
* redirecting to the original page upon being clicked.
|
|
68
80
|
*/
|
|
69
81
|
|
|
70
82
|
/**
|
|
71
83
|
* @typedef ShortLinkRes
|
|
72
|
-
* @property {string} [title]
|
|
84
|
+
* @property {string} [title] - Name reference of the shortlink.
|
|
73
85
|
* @property {UrlInfo} [url]
|
|
74
|
-
* @property {string} [created_by]
|
|
75
|
-
* @property {boolean} [app_redirect]
|
|
76
|
-
* @property {string} [fallback]
|
|
77
|
-
* @property {boolean} [active]
|
|
78
|
-
* @property {string} [_id]
|
|
79
|
-
*
|
|
80
|
-
* @property {
|
|
81
|
-
* @property {string} [
|
|
82
|
-
* @property {string} [
|
|
83
|
-
*
|
|
84
|
-
* @property {
|
|
85
|
-
* @property {string} [
|
|
86
|
-
*
|
|
86
|
+
* @property {string} [created_by] - Reference of the creator of the shortlink.
|
|
87
|
+
* @property {boolean} [app_redirect] - Application redirection flag of shortlink.
|
|
88
|
+
* @property {string} [fallback] - Fallback attributes of shortlink.
|
|
89
|
+
* @property {boolean} [active] - Status of the shortlink.
|
|
90
|
+
* @property {string} [_id] - Key used to uniquely identify document that
|
|
91
|
+
* contains shortlink details.
|
|
92
|
+
* @property {boolean} [enable_tracking] - Flag to enable tracking of a short link.
|
|
93
|
+
* @property {string} [expire_at] - Expiry of the shortlink.
|
|
94
|
+
* @property {string} [application] - The ID of the sales channel associated
|
|
95
|
+
* with the shortlink.
|
|
96
|
+
* @property {string} [user_id] - Identifier which can uniquely identify the user.
|
|
97
|
+
* @property {string} [created_at] - The timestamp indicating when a record was
|
|
98
|
+
* initially created.
|
|
99
|
+
* @property {Object} [meta] - Additional attributes of shortlink.
|
|
100
|
+
* @property {string} [updated_at] - The timestamp indicating when a record was
|
|
101
|
+
* last modified or updated.
|
|
102
|
+
* @property {boolean} [personalized] - To create personalized short links.
|
|
87
103
|
* @property {CampaignShortLink} [campaign]
|
|
88
104
|
* @property {Redirects} [redirects]
|
|
89
105
|
* @property {Attribution} [attribution]
|
|
90
106
|
* @property {SocialMediaTags} [social_media_tags]
|
|
91
|
-
* @property {number} [count]
|
|
107
|
+
* @property {number} [count] - Click count of shortlink.
|
|
92
108
|
*/
|
|
93
109
|
|
|
94
110
|
/**
|
|
95
111
|
* @typedef ErrorRes
|
|
96
|
-
* @property {string} [message]
|
|
112
|
+
* @property {string} [message] - Error message providing details about the error.
|
|
97
113
|
*/
|
|
98
114
|
|
|
99
115
|
class ShareApplicationModel {
|
|
@@ -26,7 +26,8 @@ export = ShareApplicationValidator;
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @typedef GetUrlQRCodeParam
|
|
29
|
-
* @property {string} url - A link or a web address
|
|
29
|
+
* @property {string} url - A link or a web address of a given URL transformed
|
|
30
|
+
* into a scannable QR code.
|
|
30
31
|
*/
|
|
31
32
|
declare class ShareApplicationValidator {
|
|
32
33
|
/** @returns {CreateShortLinkParam} */
|
|
@@ -80,7 +81,8 @@ type GetShortLinkByHashParam = {
|
|
|
80
81
|
};
|
|
81
82
|
type GetUrlQRCodeParam = {
|
|
82
83
|
/**
|
|
83
|
-
* - A link or a web address
|
|
84
|
+
* - A link or a web address of a given URL transformed
|
|
85
|
+
* into a scannable QR code.
|
|
84
86
|
*/
|
|
85
87
|
url: string;
|
|
86
88
|
};
|
|
@@ -35,7 +35,8 @@ const ShareApplicationModel = require("./ShareApplicationModel");
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @typedef GetUrlQRCodeParam
|
|
38
|
-
* @property {string} url - A link or a web address
|
|
38
|
+
* @property {string} url - A link or a web address of a given URL transformed
|
|
39
|
+
* into a scannable QR code.
|
|
39
40
|
*/
|
|
40
41
|
|
|
41
42
|
class ShareApplicationValidator {
|
|
@@ -17,7 +17,7 @@ declare class Theme {
|
|
|
17
17
|
* @returns {Promise<ThemeApplicationModel.AllAvailablePageSchema>} - Success response
|
|
18
18
|
* @name getAllPages
|
|
19
19
|
* @summary: List pages
|
|
20
|
-
* @description: Get all page level configs, sections and
|
|
20
|
+
* @description: Get all page level configs, sections and seo data of a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAllPages/).
|
|
21
21
|
*/
|
|
22
22
|
getAllPages({ themeId, requestHeaders }?: ThemeApplicationValidator.GetAllPagesParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.AllAvailablePageSchema>;
|
|
23
23
|
/**
|
|
@@ -37,9 +37,9 @@ declare class Theme {
|
|
|
37
37
|
* @returns {Promise<ThemeApplicationModel.AvailablePageSchema>} - Success response
|
|
38
38
|
* @name getPage
|
|
39
39
|
* @summary: Get theme page
|
|
40
|
-
* @description: Get page level configurations, applied sections and
|
|
40
|
+
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getPage/).
|
|
41
41
|
*/
|
|
42
|
-
getPage({ themeId, pageValue, filters, company, requestHeaders }?: ThemeApplicationValidator.GetPageParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.AvailablePageSchema>;
|
|
42
|
+
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, requestHeaders, }?: ThemeApplicationValidator.GetPageParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.AvailablePageSchema>;
|
|
43
43
|
/**
|
|
44
44
|
* @param {ThemeApplicationValidator.GetThemeForPreviewParam} arg - Arg object.
|
|
45
45
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -47,7 +47,7 @@ declare class Theme {
|
|
|
47
47
|
* @returns {Promise<ThemeApplicationModel.ThemesSchema>} - Success response
|
|
48
48
|
* @name getThemeForPreview
|
|
49
49
|
* @summary: Get theme for preview
|
|
50
|
-
* @description: Gets the theme configuration and template details of a theme by theme
|
|
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
52
|
getThemeForPreview({ themeId, requestHeaders }?: ThemeApplicationValidator.GetThemeForPreviewParam, { responseHeaders }?: object): Promise<ThemeApplicationModel.ThemesSchema>;
|
|
53
53
|
}
|
|
@@ -42,7 +42,7 @@ class Theme {
|
|
|
42
42
|
* @returns {Promise<ThemeApplicationModel.AllAvailablePageSchema>} - Success response
|
|
43
43
|
* @name getAllPages
|
|
44
44
|
* @summary: List pages
|
|
45
|
-
* @description: Get all page level configs, sections and
|
|
45
|
+
* @description: Get all page level configs, sections and seo data of a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAllPages/).
|
|
46
46
|
*/
|
|
47
47
|
async getAllPages(
|
|
48
48
|
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -198,16 +198,21 @@ class Theme {
|
|
|
198
198
|
* @returns {Promise<ThemeApplicationModel.AvailablePageSchema>} - Success response
|
|
199
199
|
* @name getPage
|
|
200
200
|
* @summary: Get theme page
|
|
201
|
-
* @description: Get page level configurations, applied sections and
|
|
201
|
+
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getPage/).
|
|
202
202
|
*/
|
|
203
203
|
async getPage(
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
{
|
|
205
|
+
themeId,
|
|
206
|
+
pageValue,
|
|
207
|
+
filters,
|
|
208
|
+
sectionPreviewHash,
|
|
209
|
+
company,
|
|
210
|
+
requestHeaders,
|
|
211
|
+
} = { requestHeaders: {} },
|
|
207
212
|
{ responseHeaders } = { responseHeaders: false }
|
|
208
213
|
) {
|
|
209
214
|
const { error } = ThemeApplicationValidator.getPage().validate(
|
|
210
|
-
{ themeId, pageValue, filters, company },
|
|
215
|
+
{ themeId, pageValue, filters, sectionPreviewHash, company },
|
|
211
216
|
{ abortEarly: false, allowUnknown: true }
|
|
212
217
|
);
|
|
213
218
|
if (error) {
|
|
@@ -216,7 +221,7 @@ class Theme {
|
|
|
216
221
|
|
|
217
222
|
// Showing warrnings if extra unknown parameters are found
|
|
218
223
|
const { error: warrning } = ThemeApplicationValidator.getPage().validate(
|
|
219
|
-
{ themeId, pageValue, filters, company },
|
|
224
|
+
{ themeId, pageValue, filters, sectionPreviewHash, company },
|
|
220
225
|
{ abortEarly: false, allowUnknown: false }
|
|
221
226
|
);
|
|
222
227
|
if (warrning) {
|
|
@@ -228,6 +233,7 @@ class Theme {
|
|
|
228
233
|
|
|
229
234
|
const query_params = {};
|
|
230
235
|
query_params["filters"] = filters;
|
|
236
|
+
query_params["section_preview_hash"] = sectionPreviewHash;
|
|
231
237
|
query_params["company"] = company;
|
|
232
238
|
|
|
233
239
|
const xHeaders = {};
|
|
@@ -278,7 +284,7 @@ class Theme {
|
|
|
278
284
|
* @returns {Promise<ThemeApplicationModel.ThemesSchema>} - Success response
|
|
279
285
|
* @name getThemeForPreview
|
|
280
286
|
* @summary: Get theme for preview
|
|
281
|
-
* @description: Gets the theme configuration and template details of a theme by theme
|
|
287
|
+
* @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/).
|
|
282
288
|
*/
|
|
283
289
|
async getThemeForPreview(
|
|
284
290
|
{ themeId, requestHeaders } = { requestHeaders: {} },
|