@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15-beta.3

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 (314) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +2 -0
  8. package/sdk/application/ApplicationClient.js +2 -18
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
  10. package/sdk/application/Cart/CartApplicationClient.js +111 -1200
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  14. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
  20. package/sdk/application/Content/ContentApplicationClient.js +46 -990
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
  23. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  24. package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
  25. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  26. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  27. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
  30. package/sdk/application/Order/OrderApplicationClient.js +52 -507
  31. package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
  33. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
  34. package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
  35. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  36. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  37. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  38. package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
  39. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  40. package/sdk/application/User/UserApplicationClient.js +44 -1820
  41. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  42. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
  43. package/sdk/application/index.d.ts +0 -18
  44. package/sdk/application/index.js +0 -33
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  52. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  55. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  61. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  62. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  63. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  64. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  65. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  66. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  67. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  68. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  69. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  70. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  71. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  73. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  75. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  82. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  83. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  84. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  85. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  86. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  87. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  89. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5046 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1979 -1217
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  98. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  104. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  105. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  106. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  107. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  124. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  126. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  128. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  130. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  134. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  135. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  136. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  137. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  138. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  139. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  144. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  145. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  154. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  156. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  157. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  158. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  159. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  160. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  161. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  162. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  163. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  164. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  165. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  167. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  170. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  171. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  172. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  173. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  174. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  175. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  176. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  177. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  178. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  179. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  180. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  181. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  182. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  183. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  184. package/sdk/platform/PlatformClient.d.ts +0 -2
  185. package/sdk/platform/PlatformClient.js +0 -4
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  188. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  189. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  190. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  191. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  204. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  205. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  210. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  211. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  212. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  214. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  215. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  216. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  217. package/sdk/platform/User/UserPlatformModel.js +23 -23
  218. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  219. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  220. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  221. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  223. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  224. package/sdk/platform/index.d.ts +0 -1
  225. package/sdk/platform/index.js +0 -2
  226. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  227. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
  228. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  229. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  230. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  231. package/sdk/public/Content/ContentPublicClient.js +795 -7
  232. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  233. package/sdk/public/Content/ContentPublicModel.js +649 -3
  234. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  235. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  236. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  237. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  238. package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
  239. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  240. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  241. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  242. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  243. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  244. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  245. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  246. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  247. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  248. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  249. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  250. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  251. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  252. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  253. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  254. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  255. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  256. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  257. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  258. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  259. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  260. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  261. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  262. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  263. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  264. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  265. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  266. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  267. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  268. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  269. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  270. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  271. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  272. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  273. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  274. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  275. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  276. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  277. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  278. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  279. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  280. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  281. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  282. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  283. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  284. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  285. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  286. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  287. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  288. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  289. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  290. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  291. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  292. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  293. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  294. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  295. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  296. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  297. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  298. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  299. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  300. package/sdk/application/User/UserApplicationModel.js +0 -1382
  301. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  302. package/sdk/application/User/UserApplicationValidator.js +0 -573
  303. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  304. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  305. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  306. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  307. package/sdk/common/Clickstream.d.ts +0 -1
  308. package/sdk/common/Clickstream.js +0 -464
  309. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  310. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  311. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  312. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  313. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  314. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,7 +1,31 @@
1
1
  const Joi = require("joi");
2
2
 
3
+ /**
4
+ * @typedef CurrencyExchangeResponseV2
5
+ * @property {string} base - The 3-letter ISO 4217 code representing the base currency.
6
+ * @property {string} base_currency_name - The name of the base currency.
7
+ * @property {number} ttl_seconds - Time in seconds for which the exchange rates
8
+ * are valid.
9
+ * @property {CurrencyExchangeItem[]} items - List of exchange rates and currency details.
10
+ * @property {number} total - Total number of currency exchange items.
11
+ */
12
+
13
+ /**
14
+ * @typedef CurrencyExchangeItem
15
+ * @property {string} currency_code - 3-letter ISO 4217 exchange currency code.
16
+ * @property {string} name - Name of the exchange currency
17
+ * @property {number} rate - Exchange rate of the currency with respect to the
18
+ * base currency.
19
+ * @property {string} country_code - ISO 3166 country code.
20
+ * @property {string} country_name - Name of the country using this currency.
21
+ * @property {string} subunit - The name of the subunit for the currency.
22
+ * @property {number} decimal_digits - Number of decimal digits the currency supports.
23
+ * @property {string} symbol - The symbol of the currency.
24
+ */
25
+
3
26
  /**
4
27
  * @typedef ApplicationInventory
28
+ * @property {SearchConfig} [search]
5
29
  * @property {AppInventoryConfig} [inventory]
6
30
  * @property {AuthenticationConfig} [authentication]
7
31
  * @property {ArticleAssignmentConfig} [article_assignment]
@@ -36,6 +60,25 @@ const Joi = require("joi");
36
60
  * @property {boolean} [enabled]
37
61
  */
38
62
 
63
+ /**
64
+ * @typedef FstIdentification
65
+ * @property {boolean} [enabled] - Indicates whether FST identification is
66
+ * enabled for the application.
67
+ */
68
+
69
+ /**
70
+ * @typedef QuerySuggestions
71
+ * @property {boolean} [enabled] - Indicates whether query suggestions are enabled.
72
+ * @property {number} [max_limit] - Specifies the maximum number of query
73
+ * suggestions that can be returned.
74
+ */
75
+
76
+ /**
77
+ * @typedef SearchConfig
78
+ * @property {FstIdentification} [fst_identification]
79
+ * @property {QuerySuggestions} [query_suggestions]
80
+ */
81
+
39
82
  /**
40
83
  * @typedef AppInventoryConfig
41
84
  * @property {InventoryBrand} [brand]
@@ -245,6 +288,7 @@ const Joi = require("joi");
245
288
 
246
289
  /**
247
290
  * @typedef AppInventoryPartialUpdate
291
+ * @property {SearchConfig} [search]
248
292
  * @property {RewardPointsConfig} [reward_points]
249
293
  * @property {AppCartConfig} [cart]
250
294
  * @property {AppPaymentConfig} [payment]
@@ -261,19 +305,19 @@ const Joi = require("joi");
261
305
  */
262
306
 
263
307
  /**
264
- * @typedef CompanyByBrandsRequest
308
+ * @typedef CompanyByBrandsRequestSchema
265
309
  * @property {number} brands - Brand UID
266
310
  * @property {string} [search_text] - A search field for finding a company by its name
267
311
  */
268
312
 
269
313
  /**
270
- * @typedef CompanyByBrandsResponse
314
+ * @typedef CompanyByBrandsResponseSchema
271
315
  * @property {BrandCompanyInfo[]} [items]
272
316
  * @property {Page} [page]
273
317
  */
274
318
 
275
319
  /**
276
- * @typedef StoreByBrandsRequest
320
+ * @typedef StoreByBrandsRequestSchema
277
321
  * @property {number} [company_id] - Current company ID for current company
278
322
  * stores only. Don't send in case cross-selling (franchise) is enabled.
279
323
  * @property {number} brands - Brand UID
@@ -281,7 +325,7 @@ const Joi = require("joi");
281
325
  */
282
326
 
283
327
  /**
284
- * @typedef StoreByBrandsResponse
328
+ * @typedef StoreByBrandsResponseSchema
285
329
  * @property {BrandStoreInfo[]} [items]
286
330
  * @property {Page} [page]
287
331
  */
@@ -309,12 +353,12 @@ const Joi = require("joi");
309
353
  */
310
354
 
311
355
  /**
312
- * @typedef BrandsByCompanyResponse
356
+ * @typedef BrandsByCompanyResponseSchema
313
357
  * @property {CompanyBrandInfo[]} [brands]
314
358
  */
315
359
 
316
360
  /**
317
- * @typedef ValidationFailedResponse
361
+ * @typedef ValidationFailedResponseSchema
318
362
  * @property {string} [message] - Response message for failed validation
319
363
  */
320
364
 
@@ -346,20 +390,20 @@ const Joi = require("joi");
346
390
  */
347
391
 
348
392
  /**
349
- * @typedef CreateApplicationRequest
393
+ * @typedef CreateApplicationRequestSchema
350
394
  * @property {App} [app]
351
395
  * @property {ApplicationInventory} [configuration]
352
396
  * @property {AppDomain} [domain]
353
397
  */
354
398
 
355
399
  /**
356
- * @typedef CreateAppResponse
400
+ * @typedef CreateAppResponseSchema
357
401
  * @property {Application} [app]
358
402
  * @property {ApplicationInventory} [configuration]
359
403
  */
360
404
 
361
405
  /**
362
- * @typedef ApplicationsResponse
406
+ * @typedef ApplicationsResponseSchema
363
407
  * @property {Application[]} [items]
364
408
  * @property {Page} [page]
365
409
  */
@@ -397,7 +441,7 @@ const Joi = require("joi");
397
441
  */
398
442
 
399
443
  /**
400
- * @typedef MobileAppConfigRequest
444
+ * @typedef MobileAppConfigRequestSchema
401
445
  * @property {string} [app_name] - Name of the mobile app
402
446
  * @property {LandingImage} [landing_image]
403
447
  * @property {SplashImage} [splash_image]
@@ -469,7 +513,7 @@ const Joi = require("joi");
469
513
  */
470
514
 
471
515
  /**
472
- * @typedef DomainAddRequest
516
+ * @typedef DomainAddRequestSchema
473
517
  * @property {DomainAdd} [domain]
474
518
  */
475
519
 
@@ -488,7 +532,7 @@ const Joi = require("joi");
488
532
  */
489
533
 
490
534
  /**
491
- * @typedef DomainsResponse
535
+ * @typedef DomainsResponseSchema
492
536
  * @property {Domain[]} [domains]
493
537
  */
494
538
 
@@ -506,14 +550,14 @@ const Joi = require("joi");
506
550
  */
507
551
 
508
552
  /**
509
- * @typedef UpdateDomainTypeRequest
553
+ * @typedef UpdateDomainTypeRequestSchema
510
554
  * @property {UpdateDomain} [domain]
511
555
  * @property {string} [action] - Shows domain is made primary domain for the
512
556
  * sales channel or shorlink is created for the sales channel domain
513
557
  */
514
558
 
515
559
  /**
516
- * @typedef DomainStatusRequest
560
+ * @typedef DomainStatusRequestSchema
517
561
  * @property {string} [domain_url] - URL of the domain, e.g. uniket.hostx0.de
518
562
  */
519
563
 
@@ -525,16 +569,17 @@ const Joi = require("joi");
525
569
  */
526
570
 
527
571
  /**
528
- * @typedef DomainStatusResponse
572
+ * @typedef DomainStatusResponseSchema
529
573
  * @property {boolean} [connected] - Check if domain is live and mapped to
530
574
  * appropriate IP of Fynd Servers
531
575
  * @property {DomainStatus[]} [status]
532
576
  */
533
577
 
534
578
  /**
535
- * @typedef DomainSuggestionsRequest
579
+ * @typedef DomainSuggestionsRequestSchema
536
580
  * @property {string} [domain_url] - Domain url
537
- * @property {boolean} [custom] - Get suggestions for custom domains or Fynd domains
581
+ * @property {boolean} [custom_domain] - Get suggestions for custom domains or
582
+ * Fynd domains
538
583
  */
539
584
 
540
585
  /**
@@ -549,12 +594,12 @@ const Joi = require("joi");
549
594
  */
550
595
 
551
596
  /**
552
- * @typedef DomainSuggestionsResponse
597
+ * @typedef DomainSuggestionsResponseSchema
553
598
  * @property {DomainSuggestion[]} [domains] - Domain URL
554
599
  */
555
600
 
556
601
  /**
557
- * @typedef SuccessMessageResponse
602
+ * @typedef SuccessMessageResponseSchema
558
603
  * @property {boolean} [success] - Shows whether domain was deleted successfully
559
604
  * @property {string} [message] - Success message shown to the user (in a string format)
560
605
  */
@@ -576,7 +621,7 @@ const Joi = require("joi");
576
621
  */
577
622
 
578
623
  /**
579
- * @typedef CompaniesResponse
624
+ * @typedef CompaniesResponseSchema
580
625
  * @property {AppInventoryCompanies[]} [items]
581
626
  * @property {Page} [page]
582
627
  */
@@ -590,7 +635,7 @@ const Joi = require("joi");
590
635
  */
591
636
 
592
637
  /**
593
- * @typedef StoresResponse
638
+ * @typedef StoresResponseSchema
594
639
  * @property {AppInventoryStores[]} [items]
595
640
  * @property {Page} [page]
596
641
  */
@@ -617,7 +662,7 @@ const Joi = require("joi");
617
662
  */
618
663
 
619
664
  /**
620
- * @typedef FilterOrderingStoreRequest
665
+ * @typedef FilterOrderingStoreRequestSchema
621
666
  * @property {boolean} [all_stores] - Allow all stores from the ordering stores
622
667
  * @property {number[]} [deployed_stores]
623
668
  * @property {string} [q] - Store code or name of the ordering store
@@ -644,7 +689,7 @@ const Joi = require("joi");
644
689
  */
645
690
 
646
691
  /**
647
- * @typedef OrderingStoreSelectRequest
692
+ * @typedef OrderingStoreSelectRequestSchema
648
693
  * @property {OrderingStoreSelect} ordering_store
649
694
  */
650
695
 
@@ -678,7 +723,7 @@ const Joi = require("joi");
678
723
  */
679
724
 
680
725
  /**
681
- * @typedef OptedApplicationResponse
726
+ * @typedef OptedApplicationResponseSchema
682
727
  * @property {string} [name] - Name of the other seller's sales channel
683
728
  * @property {string} [description] - Basic details about the other seller's sales channel
684
729
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -735,7 +780,7 @@ const Joi = require("joi");
735
780
  */
736
781
 
737
782
  /**
738
- * @typedef TokenResponse
783
+ * @typedef TokenResponseSchema
739
784
  * @property {Tokens} [tokens]
740
785
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
741
786
  * of the token
@@ -1077,12 +1122,12 @@ const Joi = require("joi");
1077
1122
  */
1078
1123
 
1079
1124
  /**
1080
- * @typedef AppFeatureRequest
1125
+ * @typedef AppFeatureRequestSchema
1081
1126
  * @property {AppFeature} [feature]
1082
1127
  */
1083
1128
 
1084
1129
  /**
1085
- * @typedef AppFeatureResponse
1130
+ * @typedef AppFeatureResponseSchema
1086
1131
  * @property {AppFeature} [feature]
1087
1132
  */
1088
1133
 
@@ -1243,7 +1288,7 @@ const Joi = require("joi");
1243
1288
  */
1244
1289
 
1245
1290
  /**
1246
- * @typedef InvalidPayloadRequest
1291
+ * @typedef InvalidPayloadRequestSchema
1247
1292
  * @property {string} [message] - Error message when request body payload is improper
1248
1293
  * @property {boolean} [success] - Flag for required not successfull.
1249
1294
  */
@@ -1431,12 +1476,12 @@ const Joi = require("joi");
1431
1476
  */
1432
1477
 
1433
1478
  /**
1434
- * @typedef CurrenciesResponse
1479
+ * @typedef CurrenciesResponseSchema
1435
1480
  * @property {Currency[]} [items]
1436
1481
  */
1437
1482
 
1438
1483
  /**
1439
- * @typedef AppCurrencyResponse
1484
+ * @typedef AppCurrencyResponseSchema
1440
1485
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
1441
1486
  * of the currency configuration supported by the application
1442
1487
  * @property {string} [application] - Alphanumeric ID allotted to an application
@@ -1502,15 +1547,54 @@ const Joi = require("joi");
1502
1547
  */
1503
1548
 
1504
1549
  /**
1505
- * @typedef OrderingStoresResponse
1550
+ * @typedef OrderingStoresResponseSchema
1506
1551
  * @property {Page} [page]
1507
1552
  * @property {OrderingStore[]} [items]
1508
1553
  */
1509
1554
 
1555
+ /**
1556
+ * @typedef ValidationErrors
1557
+ * @property {ValidationError[]} errors
1558
+ */
1559
+
1560
+ /**
1561
+ * @typedef ValidationError
1562
+ * @property {string} message - A brief description of the error encountered.
1563
+ * @property {string} field - The field in the request that caused the error.
1564
+ */
1565
+
1510
1566
  class ConfigurationPlatformModel {
1567
+ /** @returns {CurrencyExchangeResponseV2} */
1568
+ static CurrencyExchangeResponseV2() {
1569
+ return Joi.object({
1570
+ base: Joi.string().allow("").required(),
1571
+ base_currency_name: Joi.string().allow("").required(),
1572
+ ttl_seconds: Joi.number().required(),
1573
+ items: Joi.array()
1574
+ .items(ConfigurationPlatformModel.CurrencyExchangeItem())
1575
+ .required(),
1576
+ total: Joi.number().required(),
1577
+ });
1578
+ }
1579
+
1580
+ /** @returns {CurrencyExchangeItem} */
1581
+ static CurrencyExchangeItem() {
1582
+ return Joi.object({
1583
+ currency_code: Joi.string().allow("").required(),
1584
+ name: Joi.string().allow("").required(),
1585
+ rate: Joi.number().required(),
1586
+ country_code: Joi.string().allow("").required(),
1587
+ country_name: Joi.string().allow("").required(),
1588
+ subunit: Joi.string().allow("").required(),
1589
+ decimal_digits: Joi.number().required(),
1590
+ symbol: Joi.string().allow("").required(),
1591
+ });
1592
+ }
1593
+
1511
1594
  /** @returns {ApplicationInventory} */
1512
1595
  static ApplicationInventory() {
1513
1596
  return Joi.object({
1597
+ search: ConfigurationPlatformModel.SearchConfig(),
1514
1598
  inventory: ConfigurationPlatformModel.AppInventoryConfig(),
1515
1599
  authentication: ConfigurationPlatformModel.AuthenticationConfig(),
1516
1600
  article_assignment: ConfigurationPlatformModel.ArticleAssignmentConfig(),
@@ -1542,6 +1626,29 @@ class ConfigurationPlatformModel {
1542
1626
  });
1543
1627
  }
1544
1628
 
1629
+ /** @returns {FstIdentification} */
1630
+ static FstIdentification() {
1631
+ return Joi.object({
1632
+ enabled: Joi.boolean(),
1633
+ });
1634
+ }
1635
+
1636
+ /** @returns {QuerySuggestions} */
1637
+ static QuerySuggestions() {
1638
+ return Joi.object({
1639
+ enabled: Joi.boolean(),
1640
+ max_limit: Joi.number(),
1641
+ });
1642
+ }
1643
+
1644
+ /** @returns {SearchConfig} */
1645
+ static SearchConfig() {
1646
+ return Joi.object({
1647
+ fst_identification: ConfigurationPlatformModel.FstIdentification(),
1648
+ query_suggestions: ConfigurationPlatformModel.QuerySuggestions(),
1649
+ });
1650
+ }
1651
+
1545
1652
  /** @returns {AppInventoryConfig} */
1546
1653
  static AppInventoryConfig() {
1547
1654
  return Joi.object({
@@ -1774,6 +1881,7 @@ class ConfigurationPlatformModel {
1774
1881
  /** @returns {AppInventoryPartialUpdate} */
1775
1882
  static AppInventoryPartialUpdate() {
1776
1883
  return Joi.object({
1884
+ search: ConfigurationPlatformModel.SearchConfig(),
1777
1885
  reward_points: ConfigurationPlatformModel.RewardPointsConfig(),
1778
1886
  cart: ConfigurationPlatformModel.AppCartConfig(),
1779
1887
  payment: ConfigurationPlatformModel.AppPaymentConfig(),
@@ -1791,24 +1899,24 @@ class ConfigurationPlatformModel {
1791
1899
  });
1792
1900
  }
1793
1901
 
1794
- /** @returns {CompanyByBrandsRequest} */
1795
- static CompanyByBrandsRequest() {
1902
+ /** @returns {CompanyByBrandsRequestSchema} */
1903
+ static CompanyByBrandsRequestSchema() {
1796
1904
  return Joi.object({
1797
1905
  brands: Joi.number().required(),
1798
1906
  search_text: Joi.string().allow(""),
1799
1907
  });
1800
1908
  }
1801
1909
 
1802
- /** @returns {CompanyByBrandsResponse} */
1803
- static CompanyByBrandsResponse() {
1910
+ /** @returns {CompanyByBrandsResponseSchema} */
1911
+ static CompanyByBrandsResponseSchema() {
1804
1912
  return Joi.object({
1805
1913
  items: Joi.array().items(ConfigurationPlatformModel.BrandCompanyInfo()),
1806
1914
  page: ConfigurationPlatformModel.Page(),
1807
1915
  });
1808
1916
  }
1809
1917
 
1810
- /** @returns {StoreByBrandsRequest} */
1811
- static StoreByBrandsRequest() {
1918
+ /** @returns {StoreByBrandsRequestSchema} */
1919
+ static StoreByBrandsRequestSchema() {
1812
1920
  return Joi.object({
1813
1921
  company_id: Joi.number(),
1814
1922
  brands: Joi.number().required(),
@@ -1816,8 +1924,8 @@ class ConfigurationPlatformModel {
1816
1924
  });
1817
1925
  }
1818
1926
 
1819
- /** @returns {StoreByBrandsResponse} */
1820
- static StoreByBrandsResponse() {
1927
+ /** @returns {StoreByBrandsResponseSchema} */
1928
+ static StoreByBrandsResponseSchema() {
1821
1929
  return Joi.object({
1822
1930
  items: Joi.array().items(ConfigurationPlatformModel.BrandStoreInfo()),
1823
1931
  page: ConfigurationPlatformModel.Page(),
@@ -1847,15 +1955,15 @@ class ConfigurationPlatformModel {
1847
1955
  });
1848
1956
  }
1849
1957
 
1850
- /** @returns {BrandsByCompanyResponse} */
1851
- static BrandsByCompanyResponse() {
1958
+ /** @returns {BrandsByCompanyResponseSchema} */
1959
+ static BrandsByCompanyResponseSchema() {
1852
1960
  return Joi.object({
1853
1961
  brands: Joi.array().items(ConfigurationPlatformModel.CompanyBrandInfo()),
1854
1962
  });
1855
1963
  }
1856
1964
 
1857
- /** @returns {ValidationFailedResponse} */
1858
- static ValidationFailedResponse() {
1965
+ /** @returns {ValidationFailedResponseSchema} */
1966
+ static ValidationFailedResponseSchema() {
1859
1967
  return Joi.object({
1860
1968
  message: Joi.string().allow(""),
1861
1969
  });
@@ -1894,8 +2002,8 @@ class ConfigurationPlatformModel {
1894
2002
  });
1895
2003
  }
1896
2004
 
1897
- /** @returns {CreateApplicationRequest} */
1898
- static CreateApplicationRequest() {
2005
+ /** @returns {CreateApplicationRequestSchema} */
2006
+ static CreateApplicationRequestSchema() {
1899
2007
  return Joi.object({
1900
2008
  app: ConfigurationPlatformModel.App(),
1901
2009
  configuration: ConfigurationPlatformModel.ApplicationInventory(),
@@ -1903,16 +2011,16 @@ class ConfigurationPlatformModel {
1903
2011
  });
1904
2012
  }
1905
2013
 
1906
- /** @returns {CreateAppResponse} */
1907
- static CreateAppResponse() {
2014
+ /** @returns {CreateAppResponseSchema} */
2015
+ static CreateAppResponseSchema() {
1908
2016
  return Joi.object({
1909
2017
  app: ConfigurationPlatformModel.Application(),
1910
2018
  configuration: ConfigurationPlatformModel.ApplicationInventory(),
1911
2019
  });
1912
2020
  }
1913
2021
 
1914
- /** @returns {ApplicationsResponse} */
1915
- static ApplicationsResponse() {
2022
+ /** @returns {ApplicationsResponseSchema} */
2023
+ static ApplicationsResponseSchema() {
1916
2024
  return Joi.object({
1917
2025
  items: Joi.array().items(ConfigurationPlatformModel.Application()),
1918
2026
  page: ConfigurationPlatformModel.Page(),
@@ -1952,8 +2060,8 @@ class ConfigurationPlatformModel {
1952
2060
  });
1953
2061
  }
1954
2062
 
1955
- /** @returns {MobileAppConfigRequest} */
1956
- static MobileAppConfigRequest() {
2063
+ /** @returns {MobileAppConfigRequestSchema} */
2064
+ static MobileAppConfigRequestSchema() {
1957
2065
  return Joi.object({
1958
2066
  app_name: Joi.string().allow(""),
1959
2067
  landing_image: ConfigurationPlatformModel.LandingImage(),
@@ -2019,8 +2127,8 @@ class ConfigurationPlatformModel {
2019
2127
  });
2020
2128
  }
2021
2129
 
2022
- /** @returns {DomainAddRequest} */
2023
- static DomainAddRequest() {
2130
+ /** @returns {DomainAddRequestSchema} */
2131
+ static DomainAddRequestSchema() {
2024
2132
  return Joi.object({
2025
2133
  domain: ConfigurationPlatformModel.DomainAdd(),
2026
2134
  });
@@ -2039,8 +2147,8 @@ class ConfigurationPlatformModel {
2039
2147
  });
2040
2148
  }
2041
2149
 
2042
- /** @returns {DomainsResponse} */
2043
- static DomainsResponse() {
2150
+ /** @returns {DomainsResponseSchema} */
2151
+ static DomainsResponseSchema() {
2044
2152
  return Joi.object({
2045
2153
  domains: Joi.array().items(ConfigurationPlatformModel.Domain()),
2046
2154
  });
@@ -2057,16 +2165,16 @@ class ConfigurationPlatformModel {
2057
2165
  });
2058
2166
  }
2059
2167
 
2060
- /** @returns {UpdateDomainTypeRequest} */
2061
- static UpdateDomainTypeRequest() {
2168
+ /** @returns {UpdateDomainTypeRequestSchema} */
2169
+ static UpdateDomainTypeRequestSchema() {
2062
2170
  return Joi.object({
2063
2171
  domain: ConfigurationPlatformModel.UpdateDomain(),
2064
2172
  action: Joi.string().allow(""),
2065
2173
  });
2066
2174
  }
2067
2175
 
2068
- /** @returns {DomainStatusRequest} */
2069
- static DomainStatusRequest() {
2176
+ /** @returns {DomainStatusRequestSchema} */
2177
+ static DomainStatusRequestSchema() {
2070
2178
  return Joi.object({
2071
2179
  domain_url: Joi.string().allow(""),
2072
2180
  });
@@ -2080,19 +2188,19 @@ class ConfigurationPlatformModel {
2080
2188
  });
2081
2189
  }
2082
2190
 
2083
- /** @returns {DomainStatusResponse} */
2084
- static DomainStatusResponse() {
2191
+ /** @returns {DomainStatusResponseSchema} */
2192
+ static DomainStatusResponseSchema() {
2085
2193
  return Joi.object({
2086
2194
  connected: Joi.boolean(),
2087
2195
  status: Joi.array().items(ConfigurationPlatformModel.DomainStatus()),
2088
2196
  });
2089
2197
  }
2090
2198
 
2091
- /** @returns {DomainSuggestionsRequest} */
2092
- static DomainSuggestionsRequest() {
2199
+ /** @returns {DomainSuggestionsRequestSchema} */
2200
+ static DomainSuggestionsRequestSchema() {
2093
2201
  return Joi.object({
2094
2202
  domain_url: Joi.string().allow(""),
2095
- custom: Joi.boolean(),
2203
+ custom_domain: Joi.boolean(),
2096
2204
  });
2097
2205
  }
2098
2206
 
@@ -2107,15 +2215,15 @@ class ConfigurationPlatformModel {
2107
2215
  });
2108
2216
  }
2109
2217
 
2110
- /** @returns {DomainSuggestionsResponse} */
2111
- static DomainSuggestionsResponse() {
2218
+ /** @returns {DomainSuggestionsResponseSchema} */
2219
+ static DomainSuggestionsResponseSchema() {
2112
2220
  return Joi.object({
2113
2221
  domains: Joi.array().items(ConfigurationPlatformModel.DomainSuggestion()),
2114
2222
  });
2115
2223
  }
2116
2224
 
2117
- /** @returns {SuccessMessageResponse} */
2118
- static SuccessMessageResponse() {
2225
+ /** @returns {SuccessMessageResponseSchema} */
2226
+ static SuccessMessageResponseSchema() {
2119
2227
  return Joi.object({
2120
2228
  success: Joi.boolean(),
2121
2229
  message: Joi.string().allow(""),
@@ -2140,8 +2248,8 @@ class ConfigurationPlatformModel {
2140
2248
  });
2141
2249
  }
2142
2250
 
2143
- /** @returns {CompaniesResponse} */
2144
- static CompaniesResponse() {
2251
+ /** @returns {CompaniesResponseSchema} */
2252
+ static CompaniesResponseSchema() {
2145
2253
  return Joi.object({
2146
2254
  items: Joi.array().items(
2147
2255
  ConfigurationPlatformModel.AppInventoryCompanies()
@@ -2159,8 +2267,8 @@ class ConfigurationPlatformModel {
2159
2267
  });
2160
2268
  }
2161
2269
 
2162
- /** @returns {StoresResponse} */
2163
- static StoresResponse() {
2270
+ /** @returns {StoresResponseSchema} */
2271
+ static StoresResponseSchema() {
2164
2272
  return Joi.object({
2165
2273
  items: Joi.array().items(ConfigurationPlatformModel.AppInventoryStores()),
2166
2274
  page: ConfigurationPlatformModel.Page(),
@@ -2183,8 +2291,8 @@ class ConfigurationPlatformModel {
2183
2291
  });
2184
2292
  }
2185
2293
 
2186
- /** @returns {FilterOrderingStoreRequest} */
2187
- static FilterOrderingStoreRequest() {
2294
+ /** @returns {FilterOrderingStoreRequestSchema} */
2295
+ static FilterOrderingStoreRequestSchema() {
2188
2296
  return Joi.object({
2189
2297
  all_stores: Joi.boolean(),
2190
2298
  deployed_stores: Joi.array().items(Joi.number()),
@@ -2212,8 +2320,8 @@ class ConfigurationPlatformModel {
2212
2320
  });
2213
2321
  }
2214
2322
 
2215
- /** @returns {OrderingStoreSelectRequest} */
2216
- static OrderingStoreSelectRequest() {
2323
+ /** @returns {OrderingStoreSelectRequestSchema} */
2324
+ static OrderingStoreSelectRequestSchema() {
2217
2325
  return Joi.object({
2218
2326
  ordering_store: ConfigurationPlatformModel.OrderingStoreSelect().required(),
2219
2327
  });
@@ -2256,8 +2364,8 @@ class ConfigurationPlatformModel {
2256
2364
  });
2257
2365
  }
2258
2366
 
2259
- /** @returns {OptedApplicationResponse} */
2260
- static OptedApplicationResponse() {
2367
+ /** @returns {OptedApplicationResponseSchema} */
2368
+ static OptedApplicationResponseSchema() {
2261
2369
  return Joi.object({
2262
2370
  name: Joi.string().allow(""),
2263
2371
  description: Joi.string().allow(""),
@@ -2317,8 +2425,8 @@ class ConfigurationPlatformModel {
2317
2425
  });
2318
2426
  }
2319
2427
 
2320
- /** @returns {TokenResponse} */
2321
- static TokenResponse() {
2428
+ /** @returns {TokenResponseSchema} */
2429
+ static TokenResponseSchema() {
2322
2430
  return Joi.object({
2323
2431
  tokens: ConfigurationPlatformModel.Tokens(),
2324
2432
  _id: Joi.string().allow(""),
@@ -2524,8 +2632,8 @@ class ConfigurationPlatformModel {
2524
2632
  static LaunchPage() {
2525
2633
  return Joi.object({
2526
2634
  page_type: Joi.string().allow(""),
2527
- params: Joi.any(),
2528
- query: Joi.any(),
2635
+ params: Joi.object().pattern(/\S/, Joi.any()),
2636
+ query: Joi.object().pattern(/\S/, Joi.any()),
2529
2637
  });
2530
2638
  }
2531
2639
 
@@ -2691,15 +2799,15 @@ class ConfigurationPlatformModel {
2691
2799
  });
2692
2800
  }
2693
2801
 
2694
- /** @returns {AppFeatureRequest} */
2695
- static AppFeatureRequest() {
2802
+ /** @returns {AppFeatureRequestSchema} */
2803
+ static AppFeatureRequestSchema() {
2696
2804
  return Joi.object({
2697
2805
  feature: ConfigurationPlatformModel.AppFeature(),
2698
2806
  });
2699
2807
  }
2700
2808
 
2701
- /** @returns {AppFeatureResponse} */
2702
- static AppFeatureResponse() {
2809
+ /** @returns {AppFeatureResponseSchema} */
2810
+ static AppFeatureResponseSchema() {
2703
2811
  return Joi.object({
2704
2812
  feature: ConfigurationPlatformModel.AppFeature(),
2705
2813
  });
@@ -2861,8 +2969,8 @@ class ConfigurationPlatformModel {
2861
2969
  });
2862
2970
  }
2863
2971
 
2864
- /** @returns {InvalidPayloadRequest} */
2865
- static InvalidPayloadRequest() {
2972
+ /** @returns {InvalidPayloadRequestSchema} */
2973
+ static InvalidPayloadRequestSchema() {
2866
2974
  return Joi.object({
2867
2975
  message: Joi.string().allow(""),
2868
2976
  success: Joi.boolean(),
@@ -3090,15 +3198,15 @@ class ConfigurationPlatformModel {
3090
3198
  });
3091
3199
  }
3092
3200
 
3093
- /** @returns {CurrenciesResponse} */
3094
- static CurrenciesResponse() {
3201
+ /** @returns {CurrenciesResponseSchema} */
3202
+ static CurrenciesResponseSchema() {
3095
3203
  return Joi.object({
3096
3204
  items: Joi.array().items(ConfigurationPlatformModel.Currency()),
3097
3205
  });
3098
3206
  }
3099
3207
 
3100
- /** @returns {AppCurrencyResponse} */
3101
- static AppCurrencyResponse() {
3208
+ /** @returns {AppCurrencyResponseSchema} */
3209
+ static AppCurrencyResponseSchema() {
3102
3210
  return Joi.object({
3103
3211
  _id: Joi.string().allow(""),
3104
3212
  application: Joi.string().allow(""),
@@ -3165,12 +3273,29 @@ class ConfigurationPlatformModel {
3165
3273
  });
3166
3274
  }
3167
3275
 
3168
- /** @returns {OrderingStoresResponse} */
3169
- static OrderingStoresResponse() {
3276
+ /** @returns {OrderingStoresResponseSchema} */
3277
+ static OrderingStoresResponseSchema() {
3170
3278
  return Joi.object({
3171
3279
  page: ConfigurationPlatformModel.Page(),
3172
3280
  items: Joi.array().items(ConfigurationPlatformModel.OrderingStore()),
3173
3281
  });
3174
3282
  }
3283
+
3284
+ /** @returns {ValidationErrors} */
3285
+ static ValidationErrors() {
3286
+ return Joi.object({
3287
+ errors: Joi.array()
3288
+ .items(ConfigurationPlatformModel.ValidationError())
3289
+ .required(),
3290
+ });
3291
+ }
3292
+
3293
+ /** @returns {ValidationError} */
3294
+ static ValidationError() {
3295
+ return Joi.object({
3296
+ message: Joi.string().allow("").required(),
3297
+ field: Joi.string().allow("").required(),
3298
+ });
3299
+ }
3175
3300
  }
3176
3301
  module.exports = ConfigurationPlatformModel;