@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.
Files changed (198) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
  36. package/sdk/application/Content/ContentApplicationModel.js +342 -276
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
  58. package/sdk/application/Order/OrderApplicationModel.js +392 -316
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
  98. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
  99. package/sdk/partner/PartnerClient.d.ts +8 -0
  100. package/sdk/partner/PartnerClient.js +14 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  102. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  103. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  104. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  105. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  107. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  108. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  110. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  111. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  112. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  113. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  114. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  115. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  116. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  117. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  118. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  119. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  120. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
  121. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
  122. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
  123. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  124. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  125. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  126. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  127. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  128. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  143. package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
  144. package/sdk/platform/Content/ContentPlatformModel.js +30 -15
  145. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  146. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  148. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  149. package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
  150. package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
  151. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
  152. package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
  153. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  154. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  155. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  156. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  157. package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
  158. package/sdk/platform/Order/OrderPlatformModel.js +367 -41
  159. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  160. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  161. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  162. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  163. package/sdk/platform/PlatformClient.d.ts +8 -0
  164. package/sdk/platform/PlatformClient.js +14 -0
  165. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  166. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  167. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  168. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  169. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  170. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  171. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
  172. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
  173. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  174. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  175. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  176. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  177. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  178. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  179. package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
  180. package/sdk/platform/User/UserPlatformModel.js +9 -11
  181. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
  182. package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
  183. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  184. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  185. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  186. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  187. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  188. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  189. package/sdk/public/PublicClient.d.ts +0 -2
  190. package/sdk/public/PublicClient.js +0 -4
  191. package/sdk/public/index.d.ts +0 -1
  192. package/sdk/public/index.js +0 -2
  193. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  194. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  195. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  196. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  197. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  198. 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
- * @property {string} [type]
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
- * @property {string} [type]
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
- * @property {string} [description]
37
- * @property {string} [image]
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
- * @property {boolean} [active]
45
- * @property {string} [expire_at]
46
- * @property {boolean} [enable_tracking]
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
- * @property {string} [hash]
58
- * @property {string} [short_url]
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
- * @property {boolean} [enable_tracking]
70
- * @property {string} [expire_at]
71
- * @property {string} [application]
72
- * @property {string} [user_id]
73
- * @property {string} [created_at]
74
- * @property {Object} [meta]
75
- * @property {string} [updated_at]
76
- * @property {boolean} [personalized] - To create personalized short links
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
- * @property {string} [type]
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
- * @property {string} [type]
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
- * @property {string} [description]
44
- * @property {string} [image]
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
- * @property {boolean} [active]
53
- * @property {string} [expire_at]
54
- * @property {boolean} [enable_tracking]
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
- * @property {string} [hash]
67
- * @property {string} [short_url]
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
- * @property {boolean} [enable_tracking]
80
- * @property {string} [expire_at]
81
- * @property {string} [application]
82
- * @property {string} [user_id]
83
- * @property {string} [created_at]
84
- * @property {Object} [meta]
85
- * @property {string} [updated_at]
86
- * @property {boolean} [personalized] - To create personalized short links
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 SEO data of a theme - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAllPages/).
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 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/).
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 Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getThemeForPreview/).
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 SEO data of a theme - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getAllPages/).
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 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/).
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
- { themeId, pageValue, filters, company, requestHeaders } = {
205
- requestHeaders: {},
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 Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/theme/getThemeForPreview/).
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: {} },