@gofynd/fdk-client-javascript 1.3.11-beta.6 → 1.3.11-beta.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 (229) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  56. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  58. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  59. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  60. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  62. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  67. package/sdk/partner/PartnerClient.d.ts +6 -0
  68. package/sdk/partner/PartnerClient.js +9 -0
  69. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  70. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  71. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  72. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  73. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  74. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  75. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  76. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  77. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  78. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  79. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  80. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  81. package/sdk/partner/index.d.ts +3 -0
  82. package/sdk/partner/index.js +6 -0
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  85. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  86. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  87. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  88. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  89. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  90. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  91. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  92. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  93. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  94. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  95. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  100. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  101. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  102. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  103. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  104. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  105. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  106. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  110. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  111. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  112. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  113. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  118. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  119. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  120. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  121. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  122. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  123. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  124. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  125. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
  126. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
  127. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
  128. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  129. package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
  130. package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
  131. package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
  132. package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
  133. package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  145. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  147. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  150. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  151. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  152. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  153. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  154. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  155. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  156. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  158. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  160. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  161. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  162. package/sdk/platform/Order/OrderPlatformModel.d.ts +1030 -468
  163. package/sdk/platform/Order/OrderPlatformModel.js +1176 -523
  164. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  165. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  166. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  167. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  168. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  169. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  170. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  171. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  172. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  173. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  174. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  175. package/sdk/platform/PlatformApplicationClient.js +4 -4
  176. package/sdk/platform/PlatformClient.d.ts +4 -2
  177. package/sdk/platform/PlatformClient.js +8 -4
  178. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  179. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  188. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  189. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  190. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  191. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  192. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  193. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  194. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  195. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  196. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  197. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  198. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  199. package/sdk/platform/User/UserPlatformModel.js +256 -5
  200. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  201. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  202. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  203. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  204. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  205. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  206. package/sdk/platform/index.d.ts +1 -1
  207. package/sdk/platform/index.js +2 -2
  208. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  209. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  210. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  211. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  212. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  213. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  214. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  215. package/sdk/public/Content/ContentPublicClient.js +114 -0
  216. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  217. package/sdk/public/Content/ContentPublicModel.js +60 -0
  218. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  219. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  220. package/sdk/public/PublicClient.d.ts +4 -0
  221. package/sdk/public/PublicClient.js +8 -0
  222. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  223. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  224. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  225. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  226. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  227. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  228. package/sdk/public/index.d.ts +2 -0
  229. package/sdk/public/index.js +4 -0
@@ -1,5 +1,20 @@
1
1
  const Joi = require("joi");
2
2
 
3
+ /**
4
+ * @typedef Action
5
+ * @property {ActionPage} [page]
6
+ * @property {ActionPage} [popup]
7
+ * @property {string} [type]
8
+ */
9
+
10
+ /**
11
+ * @typedef ActionPage
12
+ * @property {Object} [params]
13
+ * @property {Object} [query]
14
+ * @property {PageType} type
15
+ * @property {string} [url]
16
+ */
17
+
3
18
  /**
4
19
  * @typedef AdvanceSetting
5
20
  * @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
@@ -25,11 +40,21 @@ const Joi = require("joi");
25
40
  * @property {boolean} [show_header_auth] - Whether to show header authentication or not
26
41
  */
27
42
 
43
+ /**
44
+ * @typedef AvailablePagePlatformPredicate
45
+ * @property {boolean} [android] - Section visibility on android platform
46
+ * @property {boolean} [ios] - Section visibility on ios platform
47
+ * @property {boolean} [web] - Section visibility on web platform
48
+ */
49
+
28
50
  /**
29
51
  * @typedef AvailablePagePredicate
52
+ * @property {AvailablePagePlatformPredicate} [platform]
30
53
  * @property {AvailablePageRoutePredicate} [route]
54
+ * @property {AvailablePageSchedulePredicate} [schedule]
31
55
  * @property {AvailablePageScreenPredicate} [screen]
32
56
  * @property {AvailablePageUserPredicate} [user]
57
+ * @property {string[]} [zones] - An array of zone ids associated with the section
33
58
  */
34
59
 
35
60
  /**
@@ -39,6 +64,13 @@ const Joi = require("joi");
39
64
  * @property {string} [selected]
40
65
  */
41
66
 
67
+ /**
68
+ * @typedef AvailablePageSchedulePredicate
69
+ * @property {string} [cron]
70
+ * @property {string} [end]
71
+ * @property {string} [start]
72
+ */
73
+
42
74
  /**
43
75
  * @typedef AvailablePageSchema
44
76
  * @property {string} [_id]
@@ -78,7 +110,11 @@ const Joi = require("joi");
78
110
  /**
79
111
  * @typedef AvailablePageSeo
80
112
  * @property {string} [_id]
113
+ * @property {SEObreadcrumb[]} [breadcrumb]
114
+ * @property {string} [canonical_url]
81
115
  * @property {string} [description]
116
+ * @property {SEOMetaItem[]} [meta_tags]
117
+ * @property {SEOSitemap} [sitemap]
82
118
  * @property {string} [title]
83
119
  */
84
120
 
@@ -272,17 +308,6 @@ const Joi = require("joi");
272
308
  * @property {string} [mobile] - The URL of the mobile image
273
309
  */
274
310
 
275
- /**
276
- * @typedef Meta
277
- * @property {string} [description] - The description of the theme
278
- * @property {Images} [images]
279
- * @property {string[]} [industry] - An array of industries associated with the theme
280
- * @property {string} [name] - The name of the theme
281
- * @property {ThemePayment} [payment]
282
- * @property {Release} [release]
283
- * @property {string} [slug] - The slug of the theme
284
- */
285
-
286
311
  /**
287
312
  * @typedef OverlayPopupSetting
288
313
  * @property {string} [dialog_backgroung] - The dialog background color
@@ -390,6 +415,30 @@ const Joi = require("joi");
390
415
  * @property {TextProp} [title]
391
416
  */
392
417
 
418
+ /**
419
+ * @typedef SEObreadcrumb
420
+ * @property {Action} [action]
421
+ * @property {string} [url]
422
+ */
423
+
424
+ /**
425
+ * @typedef SEOMetaItem
426
+ * @property {SEOMetaItems[]} [items]
427
+ * @property {string} [title]
428
+ */
429
+
430
+ /**
431
+ * @typedef SEOMetaItems
432
+ * @property {string} [key]
433
+ * @property {string} [value]
434
+ */
435
+
436
+ /**
437
+ * @typedef SEOSitemap
438
+ * @property {string} [frequency]
439
+ * @property {number} [priority]
440
+ */
441
+
393
442
  /**
394
443
  * @typedef StaticConfig
395
444
  * @property {StaticProps} [props]
@@ -423,6 +472,17 @@ const Joi = require("joi");
423
472
  * @property {string[]} [page] - An array of pages
424
473
  */
425
474
 
475
+ /**
476
+ * @typedef ThemeMeta
477
+ * @property {string} [description] - The description of the theme
478
+ * @property {Images} [images]
479
+ * @property {string[]} [industry] - An array of industries associated with the theme
480
+ * @property {string} [name] - The name of the theme
481
+ * @property {ThemePayment} [payment]
482
+ * @property {Release} [release]
483
+ * @property {string} [slug] - The slug of the theme
484
+ */
485
+
426
486
  /**
427
487
  * @typedef ThemePayment
428
488
  * @property {number} [amount] - The amount of the theme
@@ -442,16 +502,18 @@ const Joi = require("joi");
442
502
  * @property {boolean} [applied] - Whether the theme has been applied or not
443
503
  * @property {Assets} [assets]
444
504
  * @property {SectionItem[]} [available_sections] - Available sections information
505
+ * @property {number} [company_id] - The company id in which sales channel exists
445
506
  * @property {Config} [config]
446
507
  * @property {string} [created_at] - The creation timestamp of the theme
447
508
  * @property {Font} [font]
448
509
  * @property {boolean} [is_private] - Whether the theme is private or not
449
510
  * @property {string} [marketplace_theme_id] - The ID of the theme in the marketplace
450
- * @property {Meta} [meta]
511
+ * @property {ThemeMeta} [meta]
451
512
  * @property {string} [name] - The name of the theme
452
513
  * @property {Object} [styles] - The styles associated with the theme
453
514
  * @property {string[]} [tags] - An array of tags associated with the theme
454
515
  * @property {string} [template_theme_id] - The ID of the template theme
516
+ * @property {string} [theme_type]
455
517
  * @property {string} [updated_at] - The last update timestamp of the theme
456
518
  * @property {string} [version] - The version of the theme
457
519
  */
@@ -483,7 +545,81 @@ const Joi = require("joi");
483
545
  * @property {string} [success_text] - The success text color
484
546
  */
485
547
 
548
+ /**
549
+ * @typedef {| "about-us"
550
+ * | "addresses"
551
+ * | "blog"
552
+ * | "brands"
553
+ * | "cards"
554
+ * | "cart"
555
+ * | "categories"
556
+ * | "brand"
557
+ * | "category"
558
+ * | "collection"
559
+ * | "collections"
560
+ * | "contact-us"
561
+ * | "external"
562
+ * | "faq"
563
+ * | "freshchat"
564
+ * | "home"
565
+ * | "notification-settings"
566
+ * | "orders"
567
+ * | "page"
568
+ * | "policy"
569
+ * | "product"
570
+ * | "product-request"
571
+ * | "products"
572
+ * | "profile"
573
+ * | "profile-order-shipment"
574
+ * | "profile-basic"
575
+ * | "profile-company"
576
+ * | "profile-emails"
577
+ * | "profile-phones"
578
+ * | "rate-us"
579
+ * | "refer-earn"
580
+ * | "settings"
581
+ * | "shared-cart"
582
+ * | "tnc"
583
+ * | "track-order"
584
+ * | "wishlist"
585
+ * | "sections"
586
+ * | "form"
587
+ * | "cart-delivery"
588
+ * | "cart-payment"
589
+ * | "cart-review"
590
+ * | "login"
591
+ * | "register"
592
+ * | "shipping-policy"
593
+ * | "return-policy"
594
+ * | "order-status"} PageType
595
+ */
596
+
486
597
  class ThemeApplicationModel {
598
+ /** @returns {Action} */
599
+ static Action() {
600
+ return Joi.object({
601
+ page: ThemeApplicationModel.ActionPage(),
602
+ popup: ThemeApplicationModel.ActionPage(),
603
+ type: Joi.string().allow(""),
604
+ });
605
+ }
606
+
607
+ /** @returns {ActionPage} */
608
+ static ActionPage() {
609
+ return Joi.object({
610
+ params: Joi.object().pattern(
611
+ /\S/,
612
+ Joi.array().items(Joi.string().allow(""))
613
+ ),
614
+ query: Joi.object().pattern(
615
+ /\S/,
616
+ Joi.array().items(Joi.string().allow(""))
617
+ ),
618
+ type: ThemeApplicationModel.PageType().required(),
619
+ url: Joi.string().allow(""),
620
+ });
621
+ }
622
+
487
623
  /** @returns {AdvanceSetting} */
488
624
  static AdvanceSetting() {
489
625
  return Joi.object({
@@ -517,12 +653,24 @@ class ThemeApplicationModel {
517
653
  });
518
654
  }
519
655
 
656
+ /** @returns {AvailablePagePlatformPredicate} */
657
+ static AvailablePagePlatformPredicate() {
658
+ return Joi.object({
659
+ android: Joi.boolean(),
660
+ ios: Joi.boolean(),
661
+ web: Joi.boolean(),
662
+ });
663
+ }
664
+
520
665
  /** @returns {AvailablePagePredicate} */
521
666
  static AvailablePagePredicate() {
522
667
  return Joi.object({
668
+ platform: ThemeApplicationModel.AvailablePagePlatformPredicate(),
523
669
  route: ThemeApplicationModel.AvailablePageRoutePredicate(),
670
+ schedule: ThemeApplicationModel.AvailablePageSchedulePredicate(),
524
671
  screen: ThemeApplicationModel.AvailablePageScreenPredicate(),
525
672
  user: ThemeApplicationModel.AvailablePageUserPredicate(),
673
+ zones: Joi.array().items(Joi.string().allow("")),
526
674
  });
527
675
  }
528
676
 
@@ -535,6 +683,15 @@ class ThemeApplicationModel {
535
683
  });
536
684
  }
537
685
 
686
+ /** @returns {AvailablePageSchedulePredicate} */
687
+ static AvailablePageSchedulePredicate() {
688
+ return Joi.object({
689
+ cron: Joi.string().allow(""),
690
+ end: Joi.string().allow(""),
691
+ start: Joi.string().allow(""),
692
+ });
693
+ }
694
+
538
695
  /** @returns {AvailablePageSchema} */
539
696
  static AvailablePageSchema() {
540
697
  return Joi.object({
@@ -587,7 +744,11 @@ class ThemeApplicationModel {
587
744
  static AvailablePageSeo() {
588
745
  return Joi.object({
589
746
  _id: Joi.string().allow(""),
747
+ breadcrumb: Joi.array().items(ThemeApplicationModel.SEObreadcrumb()),
748
+ canonical_url: Joi.string().allow(""),
590
749
  description: Joi.string().allow(""),
750
+ meta_tags: Joi.array().items(ThemeApplicationModel.SEOMetaItem()),
751
+ sitemap: ThemeApplicationModel.SEOSitemap(),
591
752
  title: Joi.string().allow(""),
592
753
  });
593
754
  }
@@ -827,19 +988,6 @@ class ThemeApplicationModel {
827
988
  });
828
989
  }
829
990
 
830
- /** @returns {Meta} */
831
- static Meta() {
832
- return Joi.object({
833
- description: Joi.string().allow(""),
834
- images: ThemeApplicationModel.Images(),
835
- industry: Joi.array().items(Joi.string().allow("")),
836
- name: Joi.string().allow(""),
837
- payment: ThemeApplicationModel.ThemePayment(),
838
- release: ThemeApplicationModel.Release(),
839
- slug: Joi.string().allow(""),
840
- });
841
- }
842
-
843
991
  /** @returns {OverlayPopupSetting} */
844
992
  static OverlayPopupSetting() {
845
993
  return Joi.object({
@@ -977,6 +1125,38 @@ class ThemeApplicationModel {
977
1125
  });
978
1126
  }
979
1127
 
1128
+ /** @returns {SEObreadcrumb} */
1129
+ static SEObreadcrumb() {
1130
+ return Joi.object({
1131
+ action: ThemeApplicationModel.Action(),
1132
+ url: Joi.string().allow(""),
1133
+ });
1134
+ }
1135
+
1136
+ /** @returns {SEOMetaItem} */
1137
+ static SEOMetaItem() {
1138
+ return Joi.object({
1139
+ items: Joi.array().items(ThemeApplicationModel.SEOMetaItems()),
1140
+ title: Joi.string().allow(""),
1141
+ });
1142
+ }
1143
+
1144
+ /** @returns {SEOMetaItems} */
1145
+ static SEOMetaItems() {
1146
+ return Joi.object({
1147
+ key: Joi.string().allow(""),
1148
+ value: Joi.string().allow(""),
1149
+ });
1150
+ }
1151
+
1152
+ /** @returns {SEOSitemap} */
1153
+ static SEOSitemap() {
1154
+ return Joi.object({
1155
+ frequency: Joi.string().allow(""),
1156
+ priority: Joi.number(),
1157
+ });
1158
+ }
1159
+
980
1160
  /** @returns {StaticConfig} */
981
1161
  static StaticConfig() {
982
1162
  return Joi.object({
@@ -1020,6 +1200,19 @@ class ThemeApplicationModel {
1020
1200
  });
1021
1201
  }
1022
1202
 
1203
+ /** @returns {ThemeMeta} */
1204
+ static ThemeMeta() {
1205
+ return Joi.object({
1206
+ description: Joi.string().allow(""),
1207
+ images: ThemeApplicationModel.Images(),
1208
+ industry: Joi.array().items(Joi.string().allow("")),
1209
+ name: Joi.string().allow(""),
1210
+ payment: ThemeApplicationModel.ThemePayment(),
1211
+ release: ThemeApplicationModel.Release(),
1212
+ slug: Joi.string().allow(""),
1213
+ });
1214
+ }
1215
+
1023
1216
  /** @returns {ThemePayment} */
1024
1217
  static ThemePayment() {
1025
1218
  return Joi.object({
@@ -1046,16 +1239,18 @@ class ThemeApplicationModel {
1046
1239
  available_sections: Joi.array().items(
1047
1240
  ThemeApplicationModel.SectionItem()
1048
1241
  ),
1242
+ company_id: Joi.number(),
1049
1243
  config: ThemeApplicationModel.Config(),
1050
1244
  created_at: Joi.string().allow(""),
1051
1245
  font: ThemeApplicationModel.Font(),
1052
1246
  is_private: Joi.boolean(),
1053
1247
  marketplace_theme_id: Joi.string().allow(""),
1054
- meta: ThemeApplicationModel.Meta(),
1248
+ meta: ThemeApplicationModel.ThemeMeta(),
1055
1249
  name: Joi.string().allow(""),
1056
1250
  styles: Joi.any(),
1057
1251
  tags: Joi.array().items(Joi.string().allow("")),
1058
1252
  template_theme_id: Joi.string().allow(""),
1253
+ theme_type: Joi.string().allow(""),
1059
1254
  updated_at: Joi.string().allow(""),
1060
1255
  version: Joi.string().allow(""),
1061
1256
  });
@@ -1095,5 +1290,106 @@ class ThemeApplicationModel {
1095
1290
  success_text: Joi.string().allow(""),
1096
1291
  });
1097
1292
  }
1293
+
1294
+ /**
1295
+ * Enum: PageType Used By: Theme
1296
+ *
1297
+ * @returns {PageType}
1298
+ */
1299
+ static PageType() {
1300
+ return Joi.string().valid(
1301
+ "about-us",
1302
+
1303
+ "addresses",
1304
+
1305
+ "blog",
1306
+
1307
+ "brands",
1308
+
1309
+ "cards",
1310
+
1311
+ "cart",
1312
+
1313
+ "categories",
1314
+
1315
+ "brand",
1316
+
1317
+ "category",
1318
+
1319
+ "collection",
1320
+
1321
+ "collections",
1322
+
1323
+ "contact-us",
1324
+
1325
+ "external",
1326
+
1327
+ "faq",
1328
+
1329
+ "freshchat",
1330
+
1331
+ "home",
1332
+
1333
+ "notification-settings",
1334
+
1335
+ "orders",
1336
+
1337
+ "page",
1338
+
1339
+ "policy",
1340
+
1341
+ "product",
1342
+
1343
+ "product-request",
1344
+
1345
+ "products",
1346
+
1347
+ "profile",
1348
+
1349
+ "profile-order-shipment",
1350
+
1351
+ "profile-basic",
1352
+
1353
+ "profile-company",
1354
+
1355
+ "profile-emails",
1356
+
1357
+ "profile-phones",
1358
+
1359
+ "rate-us",
1360
+
1361
+ "refer-earn",
1362
+
1363
+ "settings",
1364
+
1365
+ "shared-cart",
1366
+
1367
+ "tnc",
1368
+
1369
+ "track-order",
1370
+
1371
+ "wishlist",
1372
+
1373
+ "sections",
1374
+
1375
+ "form",
1376
+
1377
+ "cart-delivery",
1378
+
1379
+ "cart-payment",
1380
+
1381
+ "cart-review",
1382
+
1383
+ "login",
1384
+
1385
+ "register",
1386
+
1387
+ "shipping-policy",
1388
+
1389
+ "return-policy",
1390
+
1391
+ "order-status"
1392
+ );
1393
+ }
1098
1394
  }
1099
1395
  module.exports = ThemeApplicationModel;
@@ -8,6 +8,8 @@ export = ThemeApplicationValidator;
8
8
  * @typedef GetPageParam
9
9
  * @property {string} themeId - ID of the theme to be retrieved
10
10
  * @property {string} pageValue - Value of the page to be retrieved
11
+ * @property {string} [filters] - Filters on sections to be applied or not
12
+ * @property {number} [company] - Company id of the application
11
13
  */
12
14
  /**
13
15
  * @typedef GetThemeForPreviewParam
@@ -41,6 +43,14 @@ type GetPageParam = {
41
43
  * - Value of the page to be retrieved
42
44
  */
43
45
  pageValue: string;
46
+ /**
47
+ * - Filters on sections to be applied or not
48
+ */
49
+ filters?: string;
50
+ /**
51
+ * - Company id of the application
52
+ */
53
+ company?: number;
44
54
  };
45
55
  type GetThemeForPreviewParam = {
46
56
  /**
@@ -13,6 +13,8 @@ const ThemeApplicationModel = require("./ThemeApplicationModel");
13
13
  * @typedef GetPageParam
14
14
  * @property {string} themeId - ID of the theme to be retrieved
15
15
  * @property {string} pageValue - Value of the page to be retrieved
16
+ * @property {string} [filters] - Filters on sections to be applied or not
17
+ * @property {number} [company] - Company id of the application
16
18
  */
17
19
 
18
20
  /**
@@ -38,6 +40,8 @@ class ThemeApplicationValidator {
38
40
  return Joi.object({
39
41
  themeId: Joi.string().allow("").required(),
40
42
  pageValue: Joi.string().allow("").required(),
43
+ filters: Joi.string().allow(""),
44
+ company: Joi.number(),
41
45
  }).required();
42
46
  }
43
47
 
@@ -12,6 +12,7 @@ declare class User {
12
12
  getListOfActiveSessions: string;
13
13
  getLoggedInUser: string;
14
14
  getPlatformConfig: string;
15
+ getUserAttributes: string;
15
16
  hasPassword: string;
16
17
  loginWithAppleIOS: string;
17
18
  loginWithEmailAndPassword: string;
@@ -37,6 +38,8 @@ declare class User {
37
38
  setMobileNumberAsPrimary: string;
38
39
  updatePassword: string;
39
40
  updateProfile: string;
41
+ updateUserAttributes: string;
42
+ userExists: string;
40
43
  verifyEmail: string;
41
44
  verifyEmailForgotOTP: string;
42
45
  verifyEmailOTP: string;
@@ -136,6 +139,16 @@ declare class User {
136
139
  * @description: Use this API to get all the platform configurations such as mobile image, desktop image, social logins, and all other text. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getPlatformConfig/).
137
140
  */
138
141
  getPlatformConfig({ name, requestHeaders }?: UserApplicationValidator.GetPlatformConfigParam, { responseHeaders }?: object): Promise<UserApplicationModel.PlatformSchema>;
142
+ /**
143
+ * @param {UserApplicationValidator.GetUserAttributesParam} arg - Arg object.
144
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
145
+ * @param {import("../ApplicationAPIClient").Options} - Options
146
+ * @returns {Promise<UserApplicationModel.UserAttributes>} - Success response
147
+ * @name getUserAttributes
148
+ * @summary: Get user attributes
149
+ * @description: Use this API to get the list of user attributes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/getUserAttributes/).
150
+ */
151
+ getUserAttributes({ slug, requestHeaders }?: UserApplicationValidator.GetUserAttributesParam, { responseHeaders }?: object): Promise<UserApplicationModel.UserAttributes>;
139
152
  /**
140
153
  * @param {UserApplicationValidator.HasPasswordParam} arg - Arg object.
141
154
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -392,6 +405,26 @@ declare class User {
392
405
  * @description: Use this API to update details in the user profile. Details can be first name, last name, gender, email, phone number, or profile picture. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updateProfile/).
393
406
  */
394
407
  updateProfile({ body, platform, requestHeaders }?: UserApplicationValidator.UpdateProfileParam, { responseHeaders }?: object): Promise<UserApplicationModel.ProfileEditSuccess>;
408
+ /**
409
+ * @param {UserApplicationValidator.UpdateUserAttributesParam} arg - Arg object.
410
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
411
+ * @param {import("../ApplicationAPIClient").Options} - Options
412
+ * @returns {Promise<UserApplicationModel.UserAttributes>} - Success response
413
+ * @name updateUserAttributes
414
+ * @summary: Update user attributes
415
+ * @description: Use this API to update user attributes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/user/updateUserAttributes/).
416
+ */
417
+ updateUserAttributes({ body, requestHeaders }?: UserApplicationValidator.UpdateUserAttributesParam, { responseHeaders }?: object): Promise<UserApplicationModel.UserAttributes>;
418
+ /**
419
+ * @param {UserApplicationValidator.UserExistsParam} arg - Arg object.
420
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
421
+ * @param {import("../ApplicationAPIClient").Options} - Options
422
+ * @returns {Promise<UserApplicationModel.UserExistsResponse>} - Success response
423
+ * @name userExists
424
+ * @summary: Check user is already registered or not
425
+ * @description: Use this API to 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
+ */
427
+ userExists({ q, requestHeaders }?: UserApplicationValidator.UserExistsParam, { responseHeaders }?: object): Promise<UserApplicationModel.UserExistsResponse>;
395
428
  /**
396
429
  * @param {UserApplicationValidator.VerifyEmailParam} arg - Arg object.
397
430
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`