@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1

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 (231) 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/FileStorage/FileStoragePartnerModel.d.ts +3 -15
  56. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
  57. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  58. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  59. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  60. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  61. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  62. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  67. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  68. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  69. package/sdk/partner/PartnerClient.d.ts +6 -0
  70. package/sdk/partner/PartnerClient.js +9 -0
  71. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  73. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  74. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  75. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  76. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  77. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  78. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  79. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  80. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  81. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  87. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  89. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  97. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  122. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  123. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  124. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  125. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  126. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  127. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
  128. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
  129. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
  130. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  131. package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
  133. package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
  134. package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
  135. package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
  136. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  137. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  138. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  139. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  142. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  143. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
  145. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
  146. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  147. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  148. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  149. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  150. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  151. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  157. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  163. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  165. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  167. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  168. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  169. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  170. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  171. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  172. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  173. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  174. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  175. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  176. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/PlatformApplicationClient.js +4 -4
  178. package/sdk/platform/PlatformClient.d.ts +4 -2
  179. package/sdk/platform/PlatformClient.js +8 -4
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  190. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  191. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  192. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  193. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  194. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  195. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  196. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  197. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  198. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  199. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  200. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  201. package/sdk/platform/User/UserPlatformModel.js +256 -5
  202. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  203. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  204. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  205. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  206. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  207. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  208. package/sdk/platform/index.d.ts +1 -1
  209. package/sdk/platform/index.js +2 -2
  210. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  211. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  212. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  213. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  214. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  215. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  216. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  217. package/sdk/public/Content/ContentPublicClient.js +114 -0
  218. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  219. package/sdk/public/Content/ContentPublicModel.js +60 -0
  220. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  221. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  222. package/sdk/public/PublicClient.d.ts +4 -0
  223. package/sdk/public/PublicClient.js +8 -0
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  225. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  227. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  230. package/sdk/public/index.d.ts +2 -0
  231. package/sdk/public/index.js +4 -0
@@ -2,115 +2,230 @@ const Joi = require("joi");
2
2
 
3
3
  const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
4
4
 
5
+ /**
6
+ * @typedef BulkServiceabilityParam
7
+ * @property {string} extensionId - Unique Identifier of CP Extension
8
+ * @property {string} schemeId - Unique identifier of a scheme
9
+ * @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
10
+ */
11
+
12
+ /**
13
+ * @typedef BulkTatParam
14
+ * @property {string} extensionId - Unique Identifier of CP Extension
15
+ * @property {string} schemeId - Unique identifier of a scheme
16
+ * @property {ServiceabilityPlatformModel.BulkRegionJobSerializer} body
17
+ */
18
+
19
+ /**
20
+ * @typedef CreateCourierPartnerAccountParam
21
+ * @property {ServiceabilityPlatformModel.CourierAccount} body
22
+ */
23
+
24
+ /**
25
+ * @typedef CreatePackageMaterialParam
26
+ * @property {ServiceabilityPlatformModel.PackageMaterial} body
27
+ */
28
+
29
+ /**
30
+ * @typedef CreatePackageMaterialRuleParam
31
+ * @property {ServiceabilityPlatformModel.PackageRule} body
32
+ */
33
+
5
34
  /**
6
35
  * @typedef CreateZoneParam
7
- * @property {ServiceabilityPlatformModel.ZoneRequest} body
36
+ * @property {ServiceabilityPlatformModel.CreateZoneData} body
8
37
  */
9
38
 
10
39
  /** @typedef GetAllStoresParam */
11
40
 
12
41
  /**
13
- * @typedef GetCompanyStoreViewParam
14
- * @property {number} [pageNumber] - Index of the item to start returning with
42
+ * @typedef GetBulkServiceabilityParam
43
+ * @property {string} extensionId - Unique Identifier of CP Extension
44
+ * @property {string} schemeId - Unique identifier of a scheme
45
+ * @property {number} [pageNo] - Index of the item to start returning with
46
+ * @property {number} [pageSize] - Determines the items to be displayed in a page
47
+ * @property {string} [batchId] - Unique identifier of bulk job
48
+ * @property {string} [action] - Import or export bulk type
49
+ * @property {string} [status] - Status of the bulk actions
50
+ * @property {string} [country] - Country for which bulk job is initiated
51
+ * @property {string} [region] - Region for which bulk job is initiated
52
+ * @property {string} [startDate] - Fetch job history after a particule date
53
+ * @property {string} [endDate] - Fetch job history before a particule date
54
+ */
55
+
56
+ /**
57
+ * @typedef GetBulkTatParam
58
+ * @property {string} extensionId - Unique Identifier of CP Extension
59
+ * @property {string} schemeId - Unique identifier of a scheme
60
+ * @property {number} [pageNo] - Index of the item to start returning with
15
61
  * @property {number} [pageSize] - Determines the items to be displayed in a page
62
+ * @property {string} [batchId] - Unique identifier of bulk job
63
+ * @property {string} [action] - Import or export bulk type
64
+ * @property {string} [status] - Status of the bulk actions
65
+ * @property {string} [country] - Country for which bulk job is initiated
66
+ * @property {string} [region] - Region for which bulk job is initiated
67
+ * @property {string} [startDate] - Fetch job history after a particule date
68
+ * @property {string} [endDate] - Fetch job history before a particule date
69
+ */
70
+
71
+ /** @typedef GetCompanyConfigurationParam */
72
+
73
+ /**
74
+ * @typedef GetCourierPartnerAccountParam
75
+ * @property {string} accountId - Unique ID of courier account
16
76
  */
17
77
 
18
78
  /**
19
- * @typedef GetDpAccountParam
20
- * @property {number} [pageNumber] - Index of the item to start returning with
79
+ * @typedef GetCourierPartnerAccountsParam
80
+ * @property {number} [pageNo] - Index of the item to start returning with
21
81
  * @property {number} [pageSize] - Determines the items to be displayed in a page
22
82
  * @property {string} [stage] - Stage of the account. enabled/disabled
23
83
  * @property {string} [paymentMode] - Filters dp accounts based on payment mode
24
84
  * @property {string} [transportType] - Filters dp accounts based on transport_type
25
85
  */
26
86
 
27
- /** @typedef GetDpCompanyRulesParam */
28
-
29
87
  /**
30
- * @typedef GetDpRuleInsertParam
31
- * @property {number} [pageNumber] - Index of the item to start returning with
32
- * @property {number} [pageSize] - Determines the items to be displayed in a page
88
+ * @typedef GetOptimalLocationsParam
89
+ * @property {ServiceabilityPlatformModel.ReAssignStoreRequest} body
33
90
  */
34
91
 
35
92
  /**
36
- * @typedef GetDpRulesParam
37
- * @property {string} ruleUid - A `rule_uid` is a unique identifier for a particular Dp.
93
+ * @typedef GetPackageMaterialListParam
94
+ * @property {number} [pageNo] - Index of the item to start returning with
95
+ * @property {number} [pageSize] - Determines the items to be displayed in a page
96
+ * @property {string} [q] - Perform regex search on items matching name for given value
97
+ * @property {string} [size] - Filters items based on given size
98
+ * @property {string} [packageType] - Filters items based on given package_type
38
99
  */
39
100
 
40
101
  /**
41
- * @typedef GetEntityRegionViewParam
42
- * @property {ServiceabilityPlatformModel.EntityRegionView_Request} body
102
+ * @typedef GetPackageMaterialRuleParam
103
+ * @property {string} ruleId - A `package_material_rule_id` is a unique
104
+ * identifier for a Package Material Rule
43
105
  */
44
106
 
45
107
  /**
46
- * @typedef GetListViewParam
47
- * @property {number} [pageNumber] - Index of the item to start returning with
108
+ * @typedef GetPackageMaterialRulesParam
109
+ * @property {number} [pageNo] - Index of the item to start returning with
48
110
  * @property {number} [pageSize] - Determines the items to be displayed in a page
49
- * @property {string} [name] - Name of particular zone in the seller account
50
- * @property {boolean} [isActive] - Status of zone whether active or inactive
51
- * @property {string} [channelIds] - Zones associated with the given channel ids'
52
- * @property {string} [q] - Search with name as a free text
111
+ * @property {string} [isActive] - Filters items based on given is_active
53
112
  */
54
113
 
55
114
  /**
56
- * @typedef GetOptimalLocationsParam
57
- * @property {ServiceabilityPlatformModel.ReAssignStoreRequest} body
115
+ * @typedef GetPackageMaterialsParam
116
+ * @property {string} packageMaterialId - A `package_material_id` is a unique
117
+ * identifier for a Package Material
58
118
  */
59
119
 
60
120
  /**
61
- * @typedef GetStoreParam
62
- * @property {number} storeUid - A `store_uid` contains a specific ID of a store.
121
+ * @typedef GetServiceabilityParam
122
+ * @property {string} extensionId - Unique Identifier of CP Extension
123
+ * @property {string} schemeId - Unique identifier of a scheme
124
+ * @property {string} regionId - Unique identifier of a region
63
125
  */
64
126
 
65
127
  /**
66
- * @typedef GetZoneDataViewParam
128
+ * @typedef GetZoneByIdParam
67
129
  * @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
68
130
  */
69
131
 
70
132
  /**
71
- * @typedef GetZoneListViewParam
72
- * @property {number} [pageNumber] - Index of the item to start returning with
133
+ * @typedef GetZonesParam
73
134
  * @property {number} [pageNo] - Index of the item to start returning with
74
135
  * @property {number} [pageSize] - Determines the items to be displayed in a page
75
- * @property {string} [name] - Name of particular zone in the seller account
76
- * @property {boolean} [isActive] - Status of zone whether active or inactive
77
- * @property {string} [channelIds] - Zones associated with the given channel ids'
136
+ * @property {boolean} [isActive] - Status of Zone (either active or inactive)
137
+ * @property {string} [channelId] - Zones filtered by an application
78
138
  * @property {string} [q] - Search with name as a free text
79
- * @property {string[]} [zoneId] - List of zones to query for
139
+ * @property {string} [country] - ISO2 code of the country
140
+ * @property {string} [state] - State name
141
+ * @property {string} [city] - City name
142
+ * @property {string} [pincode] - Pincode value to search zones
143
+ * @property {string} [sector] - Sector value to search zones
80
144
  */
81
145
 
82
146
  /**
83
- * @typedef UpdateDpRuleParam
84
- * @property {string} ruleUid - A `rule_uid` is a unique identifier for a particular Dp.
85
- * @property {ServiceabilityPlatformModel.DpRulesUpdateRequest} body
147
+ * @typedef UpdateCompanyConfigurationParam
148
+ * @property {ServiceabilityPlatformModel.CompanyConfig} body
86
149
  */
87
150
 
88
151
  /**
89
- * @typedef UpdateZoneControllerViewParam
90
- * @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
91
- * @property {ServiceabilityPlatformModel.ZoneUpdateRequest} body
152
+ * @typedef UpdateCourierPartnerAccountParam
153
+ * @property {string} accountId - Unique ID of courier account
154
+ * @property {ServiceabilityPlatformModel.CourierAccount} body
155
+ */
156
+
157
+ /**
158
+ * @typedef UpdatePackageMaterialRuleParam
159
+ * @property {string} ruleId - A `package_material_rule_id` is a unique
160
+ * identifier for a Package Material Rule
161
+ * @property {ServiceabilityPlatformModel.PackageRule} body
92
162
  */
93
163
 
94
164
  /**
95
- * @typedef UpsertDpAccountParam
96
- * @property {ServiceabilityPlatformModel.CompanyDpAccountRequest} body
165
+ * @typedef UpdatePackageMaterialsParam
166
+ * @property {string} packageMaterialId - A `package_material_id` is a unique
167
+ * identifier for a Package Material
168
+ * @property {ServiceabilityPlatformModel.PackageMaterial} body
97
169
  */
98
170
 
99
171
  /**
100
- * @typedef UpsertDpCompanyRulesParam
101
- * @property {ServiceabilityPlatformModel.DPCompanyRuleRequest} body
172
+ * @typedef UpdateServiceabilityParam
173
+ * @property {string} extensionId - Unique Identifier of CP Extension
174
+ * @property {string} schemeId - Unique identifier of a scheme
175
+ * @property {string} regionId - Unique identifier of a region
176
+ * @property {ServiceabilityPlatformModel.ServiceabilityModel} body
102
177
  */
103
178
 
104
179
  /**
105
- * @typedef UpsertDpRulesParam
106
- * @property {ServiceabilityPlatformModel.DpRuleRequest} body
180
+ * @typedef UpdateZoneByIdParam
181
+ * @property {string} zoneId - A `zone_id` is a unique identifier for a particular zone.
182
+ * @property {ServiceabilityPlatformModel.UpdateZoneData} body
107
183
  */
108
184
 
109
185
  class ServiceabilityPlatformValidator {
186
+ /** @returns {BulkServiceabilityParam} */
187
+ static bulkServiceability() {
188
+ return Joi.object({
189
+ extensionId: Joi.string().allow("").required(),
190
+ schemeId: Joi.string().allow("").required(),
191
+ body: ServiceabilityPlatformModel.BulkRegionJobSerializer().required(),
192
+ }).required();
193
+ }
194
+
195
+ /** @returns {BulkTatParam} */
196
+ static bulkTat() {
197
+ return Joi.object({
198
+ extensionId: Joi.string().allow("").required(),
199
+ schemeId: Joi.string().allow("").required(),
200
+ body: ServiceabilityPlatformModel.BulkRegionJobSerializer().required(),
201
+ }).required();
202
+ }
203
+
204
+ /** @returns {CreateCourierPartnerAccountParam} */
205
+ static createCourierPartnerAccount() {
206
+ return Joi.object({
207
+ body: ServiceabilityPlatformModel.CourierAccount().required(),
208
+ }).required();
209
+ }
210
+
211
+ /** @returns {CreatePackageMaterialParam} */
212
+ static createPackageMaterial() {
213
+ return Joi.object({
214
+ body: ServiceabilityPlatformModel.PackageMaterial().required(),
215
+ }).required();
216
+ }
217
+
218
+ /** @returns {CreatePackageMaterialRuleParam} */
219
+ static createPackageMaterialRule() {
220
+ return Joi.object({
221
+ body: ServiceabilityPlatformModel.PackageRule().required(),
222
+ }).required();
223
+ }
224
+
110
225
  /** @returns {CreateZoneParam} */
111
226
  static createZone() {
112
227
  return Joi.object({
113
- body: ServiceabilityPlatformModel.ZoneRequest().required(),
228
+ body: ServiceabilityPlatformModel.CreateZoneData().required(),
114
229
  }).required();
115
230
  }
116
231
 
@@ -119,133 +234,182 @@ class ServiceabilityPlatformValidator {
119
234
  return Joi.object({}).required();
120
235
  }
121
236
 
122
- /** @returns {GetCompanyStoreViewParam} */
123
- static getCompanyStoreView() {
237
+ /** @returns {GetBulkServiceabilityParam} */
238
+ static getBulkServiceability() {
124
239
  return Joi.object({
125
- pageNumber: Joi.number(),
240
+ extensionId: Joi.string().allow("").required(),
241
+ schemeId: Joi.string().allow("").required(),
242
+ pageNo: Joi.number(),
126
243
  pageSize: Joi.number(),
244
+ batchId: Joi.string().allow(""),
245
+ action: Joi.string().allow(""),
246
+ status: Joi.string().allow(""),
247
+ country: Joi.string().allow(""),
248
+ region: Joi.string().allow(""),
249
+ startDate: Joi.string().allow(""),
250
+ endDate: Joi.string().allow(""),
127
251
  }).required();
128
252
  }
129
253
 
130
- /** @returns {GetDpAccountParam} */
131
- static getDpAccount() {
254
+ /** @returns {GetBulkTatParam} */
255
+ static getBulkTat() {
132
256
  return Joi.object({
133
- pageNumber: Joi.number(),
257
+ extensionId: Joi.string().allow("").required(),
258
+ schemeId: Joi.string().allow("").required(),
259
+ pageNo: Joi.number(),
134
260
  pageSize: Joi.number(),
135
- stage: Joi.string().allow(""),
136
- paymentMode: Joi.string().allow(""),
137
- transportType: Joi.string().allow(""),
261
+ batchId: Joi.string().allow(""),
262
+ action: Joi.string().allow(""),
263
+ status: Joi.string().allow(""),
264
+ country: Joi.string().allow(""),
265
+ region: Joi.string().allow(""),
266
+ startDate: Joi.string().allow(""),
267
+ endDate: Joi.string().allow(""),
138
268
  }).required();
139
269
  }
140
270
 
141
- /** @returns {GetDpCompanyRulesParam} */
142
- static getDpCompanyRules() {
271
+ /** @returns {GetCompanyConfigurationParam} */
272
+ static getCompanyConfiguration() {
143
273
  return Joi.object({}).required();
144
274
  }
145
275
 
146
- /** @returns {GetDpRuleInsertParam} */
147
- static getDpRuleInsert() {
276
+ /** @returns {GetCourierPartnerAccountParam} */
277
+ static getCourierPartnerAccount() {
148
278
  return Joi.object({
149
- pageNumber: Joi.number(),
150
- pageSize: Joi.number(),
279
+ accountId: Joi.string().allow("").required(),
151
280
  }).required();
152
281
  }
153
282
 
154
- /** @returns {GetDpRulesParam} */
155
- static getDpRules() {
283
+ /** @returns {GetCourierPartnerAccountsParam} */
284
+ static getCourierPartnerAccounts() {
156
285
  return Joi.object({
157
- ruleUid: Joi.string().allow("").required(),
286
+ pageNo: Joi.number(),
287
+ pageSize: Joi.number(),
288
+ stage: Joi.string().allow(""),
289
+ paymentMode: Joi.string().allow(""),
290
+ transportType: Joi.string().allow(""),
158
291
  }).required();
159
292
  }
160
293
 
161
- /** @returns {GetEntityRegionViewParam} */
162
- static getEntityRegionView() {
294
+ /** @returns {GetOptimalLocationsParam} */
295
+ static getOptimalLocations() {
163
296
  return Joi.object({
164
- body: ServiceabilityPlatformModel.EntityRegionView_Request().required(),
297
+ body: ServiceabilityPlatformModel.ReAssignStoreRequest().required(),
165
298
  }).required();
166
299
  }
167
300
 
168
- /** @returns {GetListViewParam} */
169
- static getListView() {
301
+ /** @returns {GetPackageMaterialListParam} */
302
+ static getPackageMaterialList() {
170
303
  return Joi.object({
171
- pageNumber: Joi.number(),
304
+ pageNo: Joi.number(),
172
305
  pageSize: Joi.number(),
173
- name: Joi.string().allow(""),
174
- isActive: Joi.boolean(),
175
- channelIds: Joi.string().allow(""),
176
306
  q: Joi.string().allow(""),
307
+ size: Joi.string().allow(""),
308
+ packageType: Joi.string().allow(""),
177
309
  }).required();
178
310
  }
179
311
 
180
- /** @returns {GetOptimalLocationsParam} */
181
- static getOptimalLocations() {
312
+ /** @returns {GetPackageMaterialRuleParam} */
313
+ static getPackageMaterialRule() {
182
314
  return Joi.object({
183
- body: ServiceabilityPlatformModel.ReAssignStoreRequest().required(),
315
+ ruleId: Joi.string().allow("").required(),
316
+ }).required();
317
+ }
318
+
319
+ /** @returns {GetPackageMaterialRulesParam} */
320
+ static getPackageMaterialRules() {
321
+ return Joi.object({
322
+ pageNo: Joi.number(),
323
+ pageSize: Joi.number(),
324
+ isActive: Joi.string().allow(""),
325
+ }).required();
326
+ }
327
+
328
+ /** @returns {GetPackageMaterialsParam} */
329
+ static getPackageMaterials() {
330
+ return Joi.object({
331
+ packageMaterialId: Joi.string().allow("").required(),
184
332
  }).required();
185
333
  }
186
334
 
187
- /** @returns {GetStoreParam} */
188
- static getStore() {
335
+ /** @returns {GetServiceabilityParam} */
336
+ static getServiceability() {
189
337
  return Joi.object({
190
- storeUid: Joi.number().required(),
338
+ extensionId: Joi.string().allow("").required(),
339
+ schemeId: Joi.string().allow("").required(),
340
+ regionId: Joi.string().allow("").required(),
191
341
  }).required();
192
342
  }
193
343
 
194
- /** @returns {GetZoneDataViewParam} */
195
- static getZoneDataView() {
344
+ /** @returns {GetZoneByIdParam} */
345
+ static getZoneById() {
196
346
  return Joi.object({
197
347
  zoneId: Joi.string().allow("").required(),
198
348
  }).required();
199
349
  }
200
350
 
201
- /** @returns {GetZoneListViewParam} */
202
- static getZoneListView() {
351
+ /** @returns {GetZonesParam} */
352
+ static getZones() {
203
353
  return Joi.object({
204
- pageNumber: Joi.number(),
205
354
  pageNo: Joi.number(),
206
355
  pageSize: Joi.number(),
207
- name: Joi.string().allow(""),
208
356
  isActive: Joi.boolean(),
209
- channelIds: Joi.string().allow(""),
357
+ channelId: Joi.string().allow(""),
210
358
  q: Joi.string().allow(""),
211
- zoneId: Joi.array().items(Joi.string().allow("")),
359
+ country: Joi.string().allow(""),
360
+ state: Joi.string().allow(""),
361
+ city: Joi.string().allow(""),
362
+ pincode: Joi.string().allow(""),
363
+ sector: Joi.string().allow(""),
212
364
  }).required();
213
365
  }
214
366
 
215
- /** @returns {UpdateDpRuleParam} */
216
- static updateDpRule() {
367
+ /** @returns {UpdateCompanyConfigurationParam} */
368
+ static updateCompanyConfiguration() {
217
369
  return Joi.object({
218
- ruleUid: Joi.string().allow("").required(),
219
- body: ServiceabilityPlatformModel.DpRulesUpdateRequest().required(),
370
+ body: ServiceabilityPlatformModel.CompanyConfig().required(),
220
371
  }).required();
221
372
  }
222
373
 
223
- /** @returns {UpdateZoneControllerViewParam} */
224
- static updateZoneControllerView() {
374
+ /** @returns {UpdateCourierPartnerAccountParam} */
375
+ static updateCourierPartnerAccount() {
225
376
  return Joi.object({
226
- zoneId: Joi.string().allow("").required(),
227
- body: ServiceabilityPlatformModel.ZoneUpdateRequest().required(),
377
+ accountId: Joi.string().allow("").required(),
378
+ body: ServiceabilityPlatformModel.CourierAccount().required(),
379
+ }).required();
380
+ }
381
+
382
+ /** @returns {UpdatePackageMaterialRuleParam} */
383
+ static updatePackageMaterialRule() {
384
+ return Joi.object({
385
+ ruleId: Joi.string().allow("").required(),
386
+ body: ServiceabilityPlatformModel.PackageRule().required(),
228
387
  }).required();
229
388
  }
230
389
 
231
- /** @returns {UpsertDpAccountParam} */
232
- static upsertDpAccount() {
390
+ /** @returns {UpdatePackageMaterialsParam} */
391
+ static updatePackageMaterials() {
233
392
  return Joi.object({
234
- body: ServiceabilityPlatformModel.CompanyDpAccountRequest().required(),
393
+ packageMaterialId: Joi.string().allow("").required(),
394
+ body: ServiceabilityPlatformModel.PackageMaterial().required(),
235
395
  }).required();
236
396
  }
237
397
 
238
- /** @returns {UpsertDpCompanyRulesParam} */
239
- static upsertDpCompanyRules() {
398
+ /** @returns {UpdateServiceabilityParam} */
399
+ static updateServiceability() {
240
400
  return Joi.object({
241
- body: ServiceabilityPlatformModel.DPCompanyRuleRequest().required(),
401
+ extensionId: Joi.string().allow("").required(),
402
+ schemeId: Joi.string().allow("").required(),
403
+ regionId: Joi.string().allow("").required(),
404
+ body: ServiceabilityPlatformModel.ServiceabilityModel().required(),
242
405
  }).required();
243
406
  }
244
407
 
245
- /** @returns {UpsertDpRulesParam} */
246
- static upsertDpRules() {
408
+ /** @returns {UpdateZoneByIdParam} */
409
+ static updateZoneById() {
247
410
  return Joi.object({
248
- body: ServiceabilityPlatformModel.DpRuleRequest().required(),
411
+ zoneId: Joi.string().allow("").required(),
412
+ body: ServiceabilityPlatformModel.UpdateZoneData().required(),
249
413
  }).required();
250
414
  }
251
415
  }
@@ -22,6 +22,16 @@ declare class Theme {
22
22
  * @description: Delete a specific theme for a company by providing the company ID and theme ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/deleteCompanyTheme/).
23
23
  */
24
24
  deleteCompanyTheme({ themeId, requestHeaders }?: ThemePlatformValidator.DeleteCompanyThemeParam, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyThemeSchema>;
25
+ /**
26
+ * @param {ThemePlatformValidator.GetCompanyLevelPrivateThemesParam} arg - Arg object
27
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
28
+ * @param {import("../PlatformAPIClient").Options} - Options
29
+ * @returns {Promise<ThemePlatformModel.CompanyPrivateTheme[]>} - Success response
30
+ * @name getCompanyLevelPrivateThemes
31
+ * @summary: Get private themes for a company
32
+ * @description: Retrieve a list of private themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelPrivateThemes/).
33
+ */
34
+ getCompanyLevelPrivateThemes({ searchText, requestHeaders }?: ThemePlatformValidator.GetCompanyLevelPrivateThemesParam, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyPrivateTheme[]>;
25
35
  /**
26
36
  * @param {ThemePlatformValidator.GetCompanyLevelThemesParam} arg - Arg object
27
37
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -31,7 +41,7 @@ declare class Theme {
31
41
  * @summary: Get themes for a company
32
42
  * @description: Retrieve a list of themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelThemes/).
33
43
  */
34
- getCompanyLevelThemes({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyThemeSchema[]>;
44
+ getCompanyLevelThemes({ searchText, requestHeaders }?: ThemePlatformValidator.GetCompanyLevelThemesParam, { responseHeaders }?: object): Promise<ThemePlatformModel.CompanyThemeSchema[]>;
35
45
  }
36
46
  import ThemePlatformValidator = require("./ThemePlatformValidator");
37
47
  import ThemePlatformModel = require("./ThemePlatformModel");
@@ -174,6 +174,85 @@ class Theme {
174
174
  return response;
175
175
  }
176
176
 
177
+ /**
178
+ * @param {ThemePlatformValidator.GetCompanyLevelPrivateThemesParam} arg - Arg object
179
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
180
+ * @param {import("../PlatformAPIClient").Options} - Options
181
+ * @returns {Promise<ThemePlatformModel.CompanyPrivateTheme[]>} - Success response
182
+ * @name getCompanyLevelPrivateThemes
183
+ * @summary: Get private themes for a company
184
+ * @description: Retrieve a list of private themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelPrivateThemes/).
185
+ */
186
+ async getCompanyLevelPrivateThemes(
187
+ { searchText, requestHeaders } = { requestHeaders: {} },
188
+ { responseHeaders } = { responseHeaders: false }
189
+ ) {
190
+ const {
191
+ error,
192
+ } = ThemePlatformValidator.getCompanyLevelPrivateThemes().validate(
193
+ {
194
+ searchText,
195
+ },
196
+ { abortEarly: false, allowUnknown: true }
197
+ );
198
+ if (error) {
199
+ return Promise.reject(new FDKClientValidationError(error));
200
+ }
201
+
202
+ // Showing warrnings if extra unknown parameters are found
203
+ const {
204
+ error: warrning,
205
+ } = ThemePlatformValidator.getCompanyLevelPrivateThemes().validate(
206
+ {
207
+ searchText,
208
+ },
209
+ { abortEarly: false, allowUnknown: false }
210
+ );
211
+ if (warrning) {
212
+ Logger({
213
+ level: "WARN",
214
+ message: `Parameter Validation warrnings for platform > Theme > getCompanyLevelPrivateThemes \n ${warrning}`,
215
+ });
216
+ }
217
+
218
+ const query_params = {};
219
+ query_params["search_text"] = searchText;
220
+
221
+ const xHeaders = {};
222
+
223
+ const response = await PlatformAPIClient.execute(
224
+ this.config,
225
+ "get",
226
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/private_themes`,
227
+ query_params,
228
+ undefined,
229
+ { ...xHeaders, ...requestHeaders },
230
+ { responseHeaders }
231
+ );
232
+
233
+ let responseData = response;
234
+ if (responseHeaders) {
235
+ responseData = response[0];
236
+ }
237
+
238
+ const { error: res_error } = Joi.array()
239
+ .items(ThemePlatformModel.CompanyPrivateTheme())
240
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
241
+
242
+ if (res_error) {
243
+ if (this.config.options.strictResponseCheck === true) {
244
+ return Promise.reject(new FDKResponseValidationError(res_error));
245
+ } else {
246
+ Logger({
247
+ level: "WARN",
248
+ message: `Response Validation Warnings for platform > Theme > getCompanyLevelPrivateThemes \n ${res_error}`,
249
+ });
250
+ }
251
+ }
252
+
253
+ return response;
254
+ }
255
+
177
256
  /**
178
257
  * @param {ThemePlatformValidator.GetCompanyLevelThemesParam} arg - Arg object
179
258
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -184,11 +263,13 @@ class Theme {
184
263
  * @description: Retrieve a list of themes available for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/getCompanyLevelThemes/).
185
264
  */
186
265
  async getCompanyLevelThemes(
187
- { requestHeaders } = { requestHeaders: {} },
266
+ { searchText, requestHeaders } = { requestHeaders: {} },
188
267
  { responseHeaders } = { responseHeaders: false }
189
268
  ) {
190
269
  const { error } = ThemePlatformValidator.getCompanyLevelThemes().validate(
191
- {},
270
+ {
271
+ searchText,
272
+ },
192
273
  { abortEarly: false, allowUnknown: true }
193
274
  );
194
275
  if (error) {
@@ -199,7 +280,9 @@ class Theme {
199
280
  const {
200
281
  error: warrning,
201
282
  } = ThemePlatformValidator.getCompanyLevelThemes().validate(
202
- {},
283
+ {
284
+ searchText,
285
+ },
203
286
  { abortEarly: false, allowUnknown: false }
204
287
  );
205
288
  if (warrning) {
@@ -210,6 +293,7 @@ class Theme {
210
293
  }
211
294
 
212
295
  const query_params = {};
296
+ query_params["search_text"] = searchText;
213
297
 
214
298
  const xHeaders = {};
215
299