ikoncomponents 1.4.8 → 1.5.0

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 (576) hide show
  1. package/bin.js +2 -0
  2. package/dist/commands/init.js +57 -0
  3. package/dist/index.js +3 -116
  4. package/dist/utlis/copyDir.js +7 -0
  5. package/package.json +18 -92
  6. package/templates/default/hooks/use-mobile.ts +19 -0
  7. package/templates/default/ikonShade/accordion.tsx +66 -0
  8. package/templates/default/ikonShade/alert-dialog.tsx +179 -0
  9. package/templates/default/ikonShade/alert.tsx +66 -0
  10. package/templates/default/ikonShade/aspect-ratio.tsx +11 -0
  11. package/templates/default/ikonShade/avatar.tsx +53 -0
  12. package/templates/default/ikonShade/badge.tsx +49 -0
  13. package/templates/default/ikonShade/breadcrumb.tsx +109 -0
  14. package/templates/default/ikonShade/button.tsx +64 -0
  15. package/templates/default/ikonShade/calendar.tsx +227 -0
  16. package/templates/default/ikonShade/card.tsx +92 -0
  17. package/templates/default/ikonShade/checkbox.tsx +33 -0
  18. package/templates/default/ikonShade/collapsible.tsx +33 -0
  19. package/templates/default/ikonShade/command.tsx +184 -0
  20. package/templates/default/ikonShade/date-input.tsx +259 -0
  21. package/templates/default/ikonShade/date-range-picker.tsx +103 -0
  22. package/templates/default/ikonShade/dialog.tsx +143 -0
  23. package/templates/default/ikonShade/drawer.tsx +134 -0
  24. package/templates/default/ikonShade/dropdown-menu.tsx +259 -0
  25. package/templates/default/ikonShade/form.tsx +166 -0
  26. package/templates/default/ikonShade/hover-card.tsx +44 -0
  27. package/templates/default/ikonShade/input-otp.tsx +71 -0
  28. package/templates/default/ikonShade/input.tsx +22 -0
  29. package/templates/default/ikonShade/label.tsx +24 -0
  30. package/templates/default/ikonShade/navigation-menu.tsx +195 -0
  31. package/templates/default/ikonShade/popover.tsx +48 -0
  32. package/templates/default/ikonShade/progress.tsx +40 -0
  33. package/templates/default/ikonShade/radio-group.tsx +45 -0
  34. package/templates/default/ikonShade/scroll-area.tsx +58 -0
  35. package/templates/default/ikonShade/select.tsx +184 -0
  36. package/templates/default/ikonShade/separator.tsx +28 -0
  37. package/templates/default/ikonShade/sheet.tsx +139 -0
  38. package/templates/default/ikonShade/sidebar.tsx +726 -0
  39. package/templates/default/ikonShade/skeleton.tsx +15 -0
  40. package/templates/default/ikonShade/slider.tsx +64 -0
  41. package/templates/default/ikonShade/sonner.tsx +25 -0
  42. package/templates/default/ikonShade/switch.tsx +31 -0
  43. package/templates/default/ikonShade/table.tsx +116 -0
  44. package/templates/default/ikonShade/tabs.tsx +67 -0
  45. package/templates/default/ikonShade/textarea.tsx +18 -0
  46. package/templates/default/ikonShade/toggle-group.tsx +83 -0
  47. package/templates/default/ikonShade/toggle.tsx +47 -0
  48. package/templates/default/ikonShade/tooltip.tsx +65 -0
  49. package/templates/default/ikonShade/workflow.tsx +119 -0
  50. package/templates/default/ikoncomponents/action-menu/index.tsx +108 -0
  51. package/templates/default/ikoncomponents/action-menu/type.ts +18 -0
  52. package/templates/default/ikoncomponents/activity-sheet/index.tsx +63 -0
  53. package/templates/default/ikoncomponents/alert-dialog/dialog-context.tsx +65 -0
  54. package/templates/default/ikoncomponents/alert-dialog/index.tsx +80 -0
  55. package/templates/default/ikoncomponents/app-breadcrumb/BreadcrumbProvider.tsx +68 -0
  56. package/templates/default/ikoncomponents/app-breadcrumb/index.tsx +222 -0
  57. package/templates/default/ikoncomponents/big-calendar/big-calender-event/index.tsx +38 -0
  58. package/templates/default/ikoncomponents/big-calendar/big-calender-toolbar/index.tsx +81 -0
  59. package/templates/default/ikoncomponents/big-calendar/index.css +879 -0
  60. package/templates/default/ikoncomponents/big-calendar/index.tsx +59 -0
  61. package/templates/default/ikoncomponents/big-calendar/type.ts +37 -0
  62. package/templates/default/ikoncomponents/buttons/index.tsx +127 -0
  63. package/templates/default/ikoncomponents/combobox-input/index.tsx +75 -0
  64. package/templates/default/ikoncomponents/combobox-input/type.ts +14 -0
  65. package/templates/default/ikoncomponents/custom-combo-dropdown/index.tsx +242 -0
  66. package/templates/default/ikoncomponents/data-table/datatable-column-filter/index.tsx +80 -0
  67. package/templates/default/ikoncomponents/data-table/datatable-faceted-filter/index.tsx +149 -0
  68. package/templates/default/ikoncomponents/data-table/datatable-filter-menu/index.tsx +98 -0
  69. package/templates/default/ikoncomponents/data-table/datatable-pagination/index.tsx +119 -0
  70. package/templates/default/ikoncomponents/data-table/datatable-toolbar/index.tsx +45 -0
  71. package/templates/default/ikoncomponents/data-table/function.ts +7 -0
  72. package/templates/default/ikoncomponents/data-table/index.tsx +549 -0
  73. package/templates/default/ikoncomponents/data-table/type.ts +75 -0
  74. package/templates/default/ikoncomponents/e-chart/index.tsx +183 -0
  75. package/templates/default/ikoncomponents/file-input/index.tsx +27 -0
  76. package/templates/default/ikoncomponents/fileUpload/index.tsx +121 -0
  77. package/templates/default/ikoncomponents/form-fields/combobox-input/index.tsx +111 -0
  78. package/templates/default/ikoncomponents/form-fields/combobox-input-value/index.tsx +121 -0
  79. package/templates/default/ikoncomponents/form-fields/date-input/index.tsx +80 -0
  80. package/templates/default/ikoncomponents/form-fields/file-input/index.tsx +9 -0
  81. package/templates/default/ikoncomponents/form-fields/input/index.tsx +27 -0
  82. package/{dist/ikoncomponents/form-fields/multi-combobox-input/index.js → templates/default/ikoncomponents/form-fields/multi-combobox-input/index.tsx} +574 -381
  83. package/templates/default/ikoncomponents/form-fields/otp-input/index.tsx +39 -0
  84. package/templates/default/ikoncomponents/form-fields/password-input/index.tsx +52 -0
  85. package/templates/default/ikoncomponents/form-fields/phone-input/index.tsx +7 -0
  86. package/templates/default/ikoncomponents/form-fields/textarea/index.tsx +28 -0
  87. package/templates/default/ikoncomponents/form-fields/types/index.ts +46 -0
  88. package/templates/default/ikoncomponents/glowing-effect/index.tsx +171 -0
  89. package/templates/default/ikoncomponents/icon/index.tsx +22 -0
  90. package/templates/default/ikoncomponents/image-cropper-upload/components/cropperImg.css +19 -0
  91. package/{dist/ikoncomponents/image-cropper-upload/components/newCropper.js → templates/default/ikoncomponents/image-cropper-upload/components/newCropper.tsx} +117 -85
  92. package/templates/default/ikoncomponents/image-cropper-upload/components/newImageUploadForm.tsx +352 -0
  93. package/templates/default/ikoncomponents/image-cropper-upload/cropper-form/index.tsx +250 -0
  94. package/templates/default/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.tsx +32 -0
  95. package/{dist/ikoncomponents/image-cropper-upload/image-cropper/index.js → templates/default/ikoncomponents/image-cropper-upload/image-cropper/index.tsx} +119 -87
  96. package/templates/default/ikoncomponents/image-cropper-upload/index.tsx +95 -0
  97. package/templates/default/ikoncomponents/image-cropper-upload/utils/index.ts +117 -0
  98. package/templates/default/ikoncomponents/loading-spinner/index.tsx +43 -0
  99. package/templates/default/ikoncomponents/main-layout/RefreshContext.tsx +30 -0
  100. package/templates/default/ikoncomponents/main-layout/SidebarNavContext.tsx +103 -0
  101. package/templates/default/ikoncomponents/main-layout/app-sidebar.tsx +36 -0
  102. package/templates/default/ikoncomponents/main-layout/footer.tsx +21 -0
  103. package/templates/default/ikoncomponents/main-layout/header.tsx +53 -0
  104. package/templates/default/ikoncomponents/main-layout/index.tsx +43 -0
  105. package/templates/default/ikoncomponents/main-layout/main-sidebar.tsx +389 -0
  106. package/templates/default/ikoncomponents/main-layout/nav-main.tsx +103 -0
  107. package/templates/default/ikoncomponents/multi-combobox/index.tsx +345 -0
  108. package/templates/default/ikoncomponents/no-data/index.tsx +11 -0
  109. package/templates/default/ikoncomponents/page-wrapper/index.tsx +30 -0
  110. package/templates/default/ikoncomponents/password-strength-meter/index.tsx +49 -0
  111. package/templates/default/ikoncomponents/phone-input/index.tsx +72 -0
  112. package/templates/default/ikoncomponents/provider-wrapper/index.tsx +32 -0
  113. package/templates/default/ikoncomponents/search-input/index.tsx +18 -0
  114. package/templates/default/ikoncomponents/sheet/index.tsx +34 -0
  115. package/templates/default/ikoncomponents/simple-widget/index.tsx +54 -0
  116. package/templates/default/ikoncomponents/skeleton-loader/skeleton-table.tsx +34 -0
  117. package/templates/default/ikoncomponents/skeleton-loader/skeleton-widget.tsx +13 -0
  118. package/templates/default/ikoncomponents/tabs/index.tsx +139 -0
  119. package/{dist/ikoncomponents/tabs/type.d.ts → templates/default/ikoncomponents/tabs/type.ts} +20 -20
  120. package/{dist/ikoncomponents/theme-toggle-btn/index.js → templates/default/ikoncomponents/theme-toggle-btn/index.tsx} +189 -118
  121. package/templates/default/ikoncomponents/title-progress/index.tsx +41 -0
  122. package/templates/default/ikoncomponents/tooltip/index.tsx +17 -0
  123. package/templates/default/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.tsx +33 -0
  124. package/templates/default/ikoncomponents/twolevel-dropdown/index.tsx +279 -0
  125. package/templates/default/ikoncomponents/upload-tab/index.tsx +237 -0
  126. package/templates/default/ikoncomponents/widgets/index.tsx +81 -0
  127. package/templates/default/ikoncomponents/widgets/type.ts +11 -0
  128. package/templates/default/ikoncomponents/work-in-progress/index.tsx +16 -0
  129. package/{dist/index.d.ts → templates/default/index.ts} +234 -139
  130. package/templates/default/styles.css +1159 -0
  131. package/templates/default/utils/actions/account/index.ts +33 -0
  132. package/templates/default/utils/actions/account/type.ts +4 -0
  133. package/{dist/utils/actions/auth/index.js → templates/default/utils/actions/auth/index.ts} +69 -58
  134. package/templates/default/utils/actions/common/revalidate.ts +18 -0
  135. package/templates/default/utils/actions/common/type.ts +4 -0
  136. package/{dist/utils/actions/common/utils.js → templates/default/utils/actions/common/utils.ts} +28 -25
  137. package/templates/default/utils/actions/software/index.ts +106 -0
  138. package/templates/default/utils/api/accountService/index.ts +103 -0
  139. package/templates/default/utils/api/accountService/type.ts +4 -0
  140. package/templates/default/utils/api/file-upload/index.ts +103 -0
  141. package/templates/default/utils/api/file-upload/type.ts +8 -0
  142. package/{dist/utils/api/ikonBaseApi.js → templates/default/utils/api/ikonBaseApi.ts} +132 -104
  143. package/templates/default/utils/api/loginService/index.ts +108 -0
  144. package/{dist/utils/api/loginService/type.d.ts → templates/default/utils/api/loginService/type.ts} +35 -32
  145. package/templates/default/utils/api/softwareService/index.ts +356 -0
  146. package/templates/default/utils/api/softwareService/type.ts +62 -0
  147. package/{dist/utils/border-radius-provider.js → templates/default/utils/border-radius-provider.tsx} +59 -35
  148. package/templates/default/utils/cn.ts +6 -0
  149. package/{dist/utils/font-provider.js → templates/default/utils/font-provider.tsx} +61 -37
  150. package/templates/default/utils/session/cookieSession.ts +49 -0
  151. package/templates/default/utils/theme-provider/index.tsx +11 -0
  152. package/templates/default/utils/token-management/index.ts +115 -0
  153. package/templates/default/utils/token-management/types.ts +6 -0
  154. package/dist/hooks/use-mobile.d.ts +0 -2
  155. package/dist/hooks/use-mobile.d.ts.map +0 -1
  156. package/dist/hooks/use-mobile.js +0 -15
  157. package/dist/ikoncomponents/action-menu/index.d.ts +0 -6
  158. package/dist/ikoncomponents/action-menu/index.d.ts.map +0 -1
  159. package/dist/ikoncomponents/action-menu/index.js +0 -42
  160. package/dist/ikoncomponents/action-menu/type.d.ts +0 -15
  161. package/dist/ikoncomponents/action-menu/type.d.ts.map +0 -1
  162. package/dist/ikoncomponents/action-menu/type.js +0 -1
  163. package/dist/ikoncomponents/activity-sheet/index.d.ts +0 -12
  164. package/dist/ikoncomponents/activity-sheet/index.d.ts.map +0 -1
  165. package/dist/ikoncomponents/activity-sheet/index.js +0 -23
  166. package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts +0 -22
  167. package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts.map +0 -1
  168. package/dist/ikoncomponents/alert-dialog/dialog-context.js +0 -30
  169. package/dist/ikoncomponents/alert-dialog/index.d.ts +0 -15
  170. package/dist/ikoncomponents/alert-dialog/index.d.ts.map +0 -1
  171. package/dist/ikoncomponents/alert-dialog/index.js +0 -20
  172. package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts +0 -19
  173. package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts.map +0 -1
  174. package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.js +0 -43
  175. package/dist/ikoncomponents/app-breadcrumb/index.d.ts +0 -6
  176. package/dist/ikoncomponents/app-breadcrumb/index.d.ts.map +0 -1
  177. package/dist/ikoncomponents/app-breadcrumb/index.js +0 -57
  178. package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts +0 -6
  179. package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts.map +0 -1
  180. package/dist/ikoncomponents/big-calendar/big-calender-event/index.js +0 -16
  181. package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts +0 -3
  182. package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts.map +0 -1
  183. package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.js +0 -39
  184. package/dist/ikoncomponents/big-calendar/index.d.ts +0 -4
  185. package/dist/ikoncomponents/big-calendar/index.d.ts.map +0 -1
  186. package/dist/ikoncomponents/big-calendar/index.js +0 -35
  187. package/dist/ikoncomponents/big-calendar/type.d.ts +0 -32
  188. package/dist/ikoncomponents/big-calendar/type.d.ts.map +0 -1
  189. package/dist/ikoncomponents/big-calendar/type.js +0 -1
  190. package/dist/ikoncomponents/buttons/index.d.ts +0 -19
  191. package/dist/ikoncomponents/buttons/index.d.ts.map +0 -1
  192. package/dist/ikoncomponents/buttons/index.js +0 -38
  193. package/dist/ikoncomponents/combobox-input/index.d.ts +0 -3
  194. package/dist/ikoncomponents/combobox-input/index.d.ts.map +0 -1
  195. package/dist/ikoncomponents/combobox-input/index.js +0 -18
  196. package/dist/ikoncomponents/combobox-input/type.d.ts +0 -14
  197. package/dist/ikoncomponents/combobox-input/type.d.ts.map +0 -1
  198. package/dist/ikoncomponents/combobox-input/type.js +0 -1
  199. package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts +0 -22
  200. package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts.map +0 -1
  201. package/dist/ikoncomponents/custom-combo-dropdown/index.js +0 -85
  202. package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts +0 -3
  203. package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts.map +0 -1
  204. package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +0 -22
  205. package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts +0 -3
  206. package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts.map +0 -1
  207. package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +0 -35
  208. package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts +0 -3
  209. package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts.map +0 -1
  210. package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +0 -38
  211. package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts +0 -3
  212. package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts.map +0 -1
  213. package/dist/ikoncomponents/data-table/datatable-pagination/index.js +0 -13
  214. package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts +0 -3
  215. package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts.map +0 -1
  216. package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +0 -18
  217. package/dist/ikoncomponents/data-table/function.d.ts +0 -2
  218. package/dist/ikoncomponents/data-table/function.d.ts.map +0 -1
  219. package/dist/ikoncomponents/data-table/function.js +0 -6
  220. package/dist/ikoncomponents/data-table/index.d.ts +0 -3
  221. package/dist/ikoncomponents/data-table/index.d.ts.map +0 -1
  222. package/dist/ikoncomponents/data-table/index.js +0 -223
  223. package/dist/ikoncomponents/data-table/type.d.ts +0 -61
  224. package/dist/ikoncomponents/data-table/type.d.ts.map +0 -1
  225. package/dist/ikoncomponents/data-table/type.js +0 -1
  226. package/dist/ikoncomponents/e-chart/index.d.ts +0 -16
  227. package/dist/ikoncomponents/e-chart/index.d.ts.map +0 -1
  228. package/dist/ikoncomponents/e-chart/index.js +0 -115
  229. package/dist/ikoncomponents/file-input/index.d.ts +0 -2
  230. package/dist/ikoncomponents/file-input/index.d.ts.map +0 -1
  231. package/dist/ikoncomponents/file-input/index.js +0 -21
  232. package/dist/ikoncomponents/fileUpload/index.d.ts +0 -16
  233. package/dist/ikoncomponents/fileUpload/index.d.ts.map +0 -1
  234. package/dist/ikoncomponents/fileUpload/index.js +0 -69
  235. package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts +0 -3
  236. package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts.map +0 -1
  237. package/dist/ikoncomponents/form-fields/combobox-input/index.js +0 -21
  238. package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts +0 -19
  239. package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts.map +0 -1
  240. package/dist/ikoncomponents/form-fields/combobox-input-value/index.js +0 -26
  241. package/dist/ikoncomponents/form-fields/date-input/index.d.ts +0 -3
  242. package/dist/ikoncomponents/form-fields/date-input/index.d.ts.map +0 -1
  243. package/dist/ikoncomponents/form-fields/date-input/index.js +0 -15
  244. package/dist/ikoncomponents/form-fields/file-input/index.d.ts +0 -2
  245. package/dist/ikoncomponents/form-fields/file-input/index.d.ts.map +0 -1
  246. package/dist/ikoncomponents/form-fields/file-input/index.js +0 -4
  247. package/dist/ikoncomponents/form-fields/input/index.d.ts +0 -3
  248. package/dist/ikoncomponents/form-fields/input/index.d.ts.map +0 -1
  249. package/dist/ikoncomponents/form-fields/input/index.js +0 -18
  250. package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts +0 -7
  251. package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts.map +0 -1
  252. package/dist/ikoncomponents/form-fields/otp-input/index.d.ts +0 -3
  253. package/dist/ikoncomponents/form-fields/otp-input/index.d.ts.map +0 -1
  254. package/dist/ikoncomponents/form-fields/otp-input/index.js +0 -18
  255. package/dist/ikoncomponents/form-fields/password-input/index.d.ts +0 -3
  256. package/dist/ikoncomponents/form-fields/password-input/index.d.ts.map +0 -1
  257. package/dist/ikoncomponents/form-fields/password-input/index.js +0 -23
  258. package/dist/ikoncomponents/form-fields/phone-input/index.d.ts +0 -2
  259. package/dist/ikoncomponents/form-fields/phone-input/index.d.ts.map +0 -1
  260. package/dist/ikoncomponents/form-fields/phone-input/index.js +0 -4
  261. package/dist/ikoncomponents/form-fields/textarea/index.d.ts +0 -3
  262. package/dist/ikoncomponents/form-fields/textarea/index.d.ts.map +0 -1
  263. package/dist/ikoncomponents/form-fields/textarea/index.js +0 -18
  264. package/dist/ikoncomponents/form-fields/types/index.d.ts +0 -37
  265. package/dist/ikoncomponents/form-fields/types/index.d.ts.map +0 -1
  266. package/dist/ikoncomponents/form-fields/types/index.js +0 -1
  267. package/dist/ikoncomponents/glowing-effect/index.d.ts +0 -15
  268. package/dist/ikoncomponents/glowing-effect/index.d.ts.map +0 -1
  269. package/dist/ikoncomponents/glowing-effect/index.js +0 -84
  270. package/dist/ikoncomponents/icon/index.d.ts +0 -9
  271. package/dist/ikoncomponents/icon/index.d.ts.map +0 -1
  272. package/dist/ikoncomponents/icon/index.js +0 -23
  273. package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts +0 -16
  274. package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts.map +0 -1
  275. package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts +0 -8
  276. package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts.map +0 -1
  277. package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.js +0 -145
  278. package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts +0 -7
  279. package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts.map +0 -1
  280. package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.js +0 -92
  281. package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts +0 -7
  282. package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts.map +0 -1
  283. package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.js +0 -14
  284. package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts +0 -15
  285. package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts.map +0 -1
  286. package/dist/ikoncomponents/image-cropper-upload/index.d.ts +0 -28
  287. package/dist/ikoncomponents/image-cropper-upload/index.d.ts.map +0 -1
  288. package/dist/ikoncomponents/image-cropper-upload/index.js +0 -49
  289. package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts +0 -17
  290. package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts.map +0 -1
  291. package/dist/ikoncomponents/image-cropper-upload/utils/index.js +0 -73
  292. package/dist/ikoncomponents/loading-spinner/index.d.ts +0 -10
  293. package/dist/ikoncomponents/loading-spinner/index.d.ts.map +0 -1
  294. package/dist/ikoncomponents/loading-spinner/index.js +0 -19
  295. package/dist/ikoncomponents/main-layout/RefreshContext.d.ts +0 -11
  296. package/dist/ikoncomponents/main-layout/RefreshContext.d.ts.map +0 -1
  297. package/dist/ikoncomponents/main-layout/RefreshContext.js +0 -17
  298. package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts +0 -34
  299. package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts.map +0 -1
  300. package/dist/ikoncomponents/main-layout/SidebarNavContext.js +0 -52
  301. package/dist/ikoncomponents/main-layout/app-sidebar.d.ts +0 -4
  302. package/dist/ikoncomponents/main-layout/app-sidebar.d.ts.map +0 -1
  303. package/dist/ikoncomponents/main-layout/app-sidebar.js +0 -24
  304. package/dist/ikoncomponents/main-layout/footer.d.ts +0 -2
  305. package/dist/ikoncomponents/main-layout/footer.d.ts.map +0 -1
  306. package/dist/ikoncomponents/main-layout/footer.js +0 -5
  307. package/dist/ikoncomponents/main-layout/header.d.ts +0 -4
  308. package/dist/ikoncomponents/main-layout/header.d.ts.map +0 -1
  309. package/dist/ikoncomponents/main-layout/header.js +0 -15
  310. package/dist/ikoncomponents/main-layout/index.d.ts +0 -7
  311. package/dist/ikoncomponents/main-layout/index.d.ts.map +0 -1
  312. package/dist/ikoncomponents/main-layout/index.js +0 -12
  313. package/dist/ikoncomponents/main-layout/main-sidebar.d.ts +0 -61
  314. package/dist/ikoncomponents/main-layout/main-sidebar.d.ts.map +0 -1
  315. package/dist/ikoncomponents/main-layout/main-sidebar.js +0 -119
  316. package/dist/ikoncomponents/main-layout/nav-main.d.ts +0 -12
  317. package/dist/ikoncomponents/main-layout/nav-main.d.ts.map +0 -1
  318. package/dist/ikoncomponents/main-layout/nav-main.js +0 -33
  319. package/dist/ikoncomponents/multi-combobox/index.d.ts +0 -14
  320. package/dist/ikoncomponents/multi-combobox/index.d.ts.map +0 -1
  321. package/dist/ikoncomponents/multi-combobox/index.js +0 -202
  322. package/dist/ikoncomponents/no-data/index.d.ts +0 -4
  323. package/dist/ikoncomponents/no-data/index.d.ts.map +0 -1
  324. package/dist/ikoncomponents/no-data/index.js +0 -5
  325. package/dist/ikoncomponents/page-wrapper/index.d.ts +0 -10
  326. package/dist/ikoncomponents/page-wrapper/index.d.ts.map +0 -1
  327. package/dist/ikoncomponents/page-wrapper/index.js +0 -7
  328. package/dist/ikoncomponents/password-strength-meter/index.d.ts +0 -4
  329. package/dist/ikoncomponents/password-strength-meter/index.d.ts.map +0 -1
  330. package/dist/ikoncomponents/password-strength-meter/index.js +0 -40
  331. package/dist/ikoncomponents/phone-input/index.d.ts +0 -2
  332. package/dist/ikoncomponents/phone-input/index.d.ts.map +0 -1
  333. package/dist/ikoncomponents/phone-input/index.js +0 -41
  334. package/dist/ikoncomponents/provider-wrapper/index.d.ts +0 -7
  335. package/dist/ikoncomponents/provider-wrapper/index.d.ts.map +0 -1
  336. package/dist/ikoncomponents/provider-wrapper/index.js +0 -10
  337. package/dist/ikoncomponents/search-input/index.d.ts +0 -2
  338. package/dist/ikoncomponents/search-input/index.d.ts.map +0 -1
  339. package/dist/ikoncomponents/search-input/index.js +0 -19
  340. package/dist/ikoncomponents/sheet/index.d.ts +0 -11
  341. package/dist/ikoncomponents/sheet/index.d.ts.map +0 -1
  342. package/dist/ikoncomponents/sheet/index.js +0 -6
  343. package/dist/ikoncomponents/simple-widget/index.d.ts +0 -15
  344. package/dist/ikoncomponents/simple-widget/index.d.ts.map +0 -1
  345. package/dist/ikoncomponents/simple-widget/index.js +0 -14
  346. package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts +0 -6
  347. package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts.map +0 -1
  348. package/dist/ikoncomponents/skeleton-loader/skeleton-table.js +0 -6
  349. package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts +0 -4
  350. package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts.map +0 -1
  351. package/dist/ikoncomponents/skeleton-loader/skeleton-widget.js +0 -5
  352. package/dist/ikoncomponents/tabs/index.d.ts +0 -3
  353. package/dist/ikoncomponents/tabs/index.d.ts.map +0 -1
  354. package/dist/ikoncomponents/tabs/index.js +0 -50
  355. package/dist/ikoncomponents/tabs/type.d.ts.map +0 -1
  356. package/dist/ikoncomponents/tabs/type.js +0 -2
  357. package/dist/ikoncomponents/theme-toggle-btn/index.d.ts +0 -2
  358. package/dist/ikoncomponents/theme-toggle-btn/index.d.ts.map +0 -1
  359. package/dist/ikoncomponents/title-progress/index.d.ts +0 -13
  360. package/dist/ikoncomponents/title-progress/index.d.ts.map +0 -1
  361. package/dist/ikoncomponents/title-progress/index.js +0 -10
  362. package/dist/ikoncomponents/tooltip/index.d.ts +0 -6
  363. package/dist/ikoncomponents/tooltip/index.d.ts.map +0 -1
  364. package/dist/ikoncomponents/tooltip/index.js +0 -5
  365. package/dist/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.d.ts +0 -10
  366. package/dist/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.d.ts.map +0 -1
  367. package/dist/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.js +0 -24
  368. package/dist/ikoncomponents/twolevel-dropdown/index.d.ts +0 -32
  369. package/dist/ikoncomponents/twolevel-dropdown/index.d.ts.map +0 -1
  370. package/dist/ikoncomponents/twolevel-dropdown/index.js +0 -143
  371. package/dist/ikoncomponents/upload-tab/index.d.ts +0 -2
  372. package/dist/ikoncomponents/upload-tab/index.d.ts.map +0 -1
  373. package/dist/ikoncomponents/upload-tab/index.js +0 -92
  374. package/dist/ikoncomponents/widgets/index.d.ts +0 -3
  375. package/dist/ikoncomponents/widgets/index.d.ts.map +0 -1
  376. package/dist/ikoncomponents/widgets/index.js +0 -14
  377. package/dist/ikoncomponents/widgets/type.d.ts +0 -11
  378. package/dist/ikoncomponents/widgets/type.d.ts.map +0 -1
  379. package/dist/ikoncomponents/widgets/type.js +0 -2
  380. package/dist/ikoncomponents/work-in-progress/index.d.ts +0 -2
  381. package/dist/ikoncomponents/work-in-progress/index.d.ts.map +0 -1
  382. package/dist/ikoncomponents/work-in-progress/index.js +0 -4
  383. package/dist/index.d.ts.map +0 -1
  384. package/dist/shadcn/accordion.d.ts +0 -8
  385. package/dist/shadcn/accordion.d.ts.map +0 -1
  386. package/dist/shadcn/accordion.js +0 -33
  387. package/dist/shadcn/alert-dialog.d.ts +0 -21
  388. package/dist/shadcn/alert-dialog.d.ts.map +0 -1
  389. package/dist/shadcn/alert-dialog.js +0 -83
  390. package/dist/shadcn/alert.d.ts +0 -10
  391. package/dist/shadcn/alert.d.ts.map +0 -1
  392. package/dist/shadcn/alert.js +0 -38
  393. package/dist/shadcn/aspect-ratio.d.ts +0 -4
  394. package/dist/shadcn/aspect-ratio.d.ts.map +0 -1
  395. package/dist/shadcn/aspect-ratio.js +0 -19
  396. package/dist/shadcn/avatar.d.ts +0 -7
  397. package/dist/shadcn/avatar.d.ts.map +0 -1
  398. package/dist/shadcn/avatar.js +0 -28
  399. package/dist/shadcn/badge.d.ts +0 -10
  400. package/dist/shadcn/badge.d.ts.map +0 -1
  401. package/dist/shadcn/badge.js +0 -35
  402. package/dist/shadcn/breadcrumb.d.ts +0 -12
  403. package/dist/shadcn/breadcrumb.d.ts.map +0 -1
  404. package/dist/shadcn/breadcrumb.js +0 -45
  405. package/dist/shadcn/button.d.ts +0 -11
  406. package/dist/shadcn/button.d.ts.map +0 -1
  407. package/dist/shadcn/button.js +0 -47
  408. package/dist/shadcn/calendar.d.ts +0 -9
  409. package/dist/shadcn/calendar.d.ts.map +0 -1
  410. package/dist/shadcn/calendar.js +0 -61
  411. package/dist/shadcn/card.d.ts +0 -10
  412. package/dist/shadcn/card.d.ts.map +0 -1
  413. package/dist/shadcn/card.js +0 -42
  414. package/dist/shadcn/checkbox.d.ts +0 -5
  415. package/dist/shadcn/checkbox.d.ts.map +0 -1
  416. package/dist/shadcn/checkbox.js +0 -21
  417. package/dist/shadcn/collapsible.d.ts +0 -6
  418. package/dist/shadcn/collapsible.d.ts.map +0 -1
  419. package/dist/shadcn/collapsible.js +0 -27
  420. package/dist/shadcn/command.d.ts +0 -19
  421. package/dist/shadcn/command.d.ts.map +0 -1
  422. package/dist/shadcn/command.js +0 -54
  423. package/dist/shadcn/date-input.d.ts +0 -8
  424. package/dist/shadcn/date-input.d.ts.map +0 -1
  425. package/dist/shadcn/date-input.js +0 -179
  426. package/dist/shadcn/date-range-picker.d.ts +0 -25
  427. package/dist/shadcn/date-range-picker.d.ts.map +0 -1
  428. package/dist/shadcn/date-range-picker.js +0 -45
  429. package/dist/shadcn/dialog.d.ts +0 -16
  430. package/dist/shadcn/dialog.d.ts.map +0 -1
  431. package/dist/shadcn/dialog.js +0 -57
  432. package/dist/shadcn/drawer.d.ts +0 -14
  433. package/dist/shadcn/drawer.d.ts.map +0 -1
  434. package/dist/shadcn/drawer.js +0 -56
  435. package/dist/shadcn/dropdown-menu.d.ts +0 -26
  436. package/dist/shadcn/dropdown-menu.d.ts.map +0 -1
  437. package/dist/shadcn/dropdown-menu.js +0 -77
  438. package/dist/shadcn/form.d.ts +0 -25
  439. package/dist/shadcn/form.d.ts.map +0 -1
  440. package/dist/shadcn/form.js +0 -70
  441. package/dist/shadcn/hover-card.d.ts +0 -7
  442. package/dist/shadcn/hover-card.d.ts.map +0 -1
  443. package/dist/shadcn/hover-card.js +0 -28
  444. package/dist/shadcn/input-otp.d.ts +0 -35
  445. package/dist/shadcn/input-otp.d.ts.map +0 -1
  446. package/dist/shadcn/input-otp.js +0 -40
  447. package/dist/shadcn/input.d.ts +0 -4
  448. package/dist/shadcn/input.d.ts.map +0 -1
  449. package/dist/shadcn/input.js +0 -18
  450. package/dist/shadcn/label.d.ts +0 -5
  451. package/dist/shadcn/label.d.ts.map +0 -1
  452. package/dist/shadcn/label.js +0 -20
  453. package/dist/shadcn/navigation-menu.d.ts +0 -17
  454. package/dist/shadcn/navigation-menu.d.ts.map +0 -1
  455. package/dist/shadcn/navigation-menu.js +0 -74
  456. package/dist/shadcn/popover.d.ts +0 -8
  457. package/dist/shadcn/popover.d.ts.map +0 -1
  458. package/dist/shadcn/popover.js +0 -32
  459. package/dist/shadcn/progress.d.ts +0 -9
  460. package/dist/shadcn/progress.d.ts.map +0 -1
  461. package/dist/shadcn/progress.js +0 -23
  462. package/dist/shadcn/radio-group.d.ts +0 -6
  463. package/dist/shadcn/radio-group.d.ts.map +0 -1
  464. package/dist/shadcn/radio-group.js +0 -25
  465. package/dist/shadcn/scroll-area.d.ts +0 -6
  466. package/dist/shadcn/scroll-area.d.ts.map +0 -1
  467. package/dist/shadcn/scroll-area.js +0 -26
  468. package/dist/shadcn/select.d.ts +0 -16
  469. package/dist/shadcn/select.d.ts.map +0 -1
  470. package/dist/shadcn/select.js +0 -59
  471. package/dist/shadcn/separator.d.ts +0 -5
  472. package/dist/shadcn/separator.d.ts.map +0 -1
  473. package/dist/shadcn/separator.js +0 -20
  474. package/dist/shadcn/sheet.d.ts +0 -14
  475. package/dist/shadcn/sheet.d.ts.map +0 -1
  476. package/dist/shadcn/sheet.js +0 -61
  477. package/dist/shadcn/sidebar.d.ts +0 -70
  478. package/dist/shadcn/sidebar.d.ts.map +0 -1
  479. package/dist/shadcn/sidebar.js +0 -242
  480. package/dist/shadcn/skeleton.d.ts +0 -4
  481. package/dist/shadcn/skeleton.d.ts.map +0 -1
  482. package/dist/shadcn/skeleton.js +0 -18
  483. package/dist/shadcn/slider.d.ts +0 -5
  484. package/dist/shadcn/slider.d.ts.map +0 -1
  485. package/dist/shadcn/slider.js +0 -26
  486. package/dist/shadcn/sonner.d.ts +0 -4
  487. package/dist/shadcn/sonner.d.ts.map +0 -1
  488. package/dist/shadcn/sonner.js +0 -25
  489. package/dist/shadcn/switch.d.ts +0 -5
  490. package/dist/shadcn/switch.d.ts.map +0 -1
  491. package/dist/shadcn/switch.js +0 -20
  492. package/dist/shadcn/table.d.ts +0 -11
  493. package/dist/shadcn/table.d.ts.map +0 -1
  494. package/dist/shadcn/table.js +0 -47
  495. package/dist/shadcn/tabs.d.ts +0 -8
  496. package/dist/shadcn/tabs.d.ts.map +0 -1
  497. package/dist/shadcn/tabs.js +0 -32
  498. package/dist/shadcn/textarea.d.ts +0 -4
  499. package/dist/shadcn/textarea.d.ts.map +0 -1
  500. package/dist/shadcn/textarea.js +0 -18
  501. package/dist/shadcn/toggle-group.d.ts +0 -10
  502. package/dist/shadcn/toggle-group.d.ts.map +0 -1
  503. package/dist/shadcn/toggle-group.js +0 -35
  504. package/dist/shadcn/toggle.d.ts +0 -10
  505. package/dist/shadcn/toggle.d.ts.map +0 -1
  506. package/dist/shadcn/toggle.js +0 -38
  507. package/dist/shadcn/tooltip.d.ts +0 -8
  508. package/dist/shadcn/tooltip.d.ts.map +0 -1
  509. package/dist/shadcn/tooltip.js +0 -32
  510. package/dist/shadcn/workflow.d.ts +0 -21
  511. package/dist/shadcn/workflow.d.ts.map +0 -1
  512. package/dist/shadcn/workflow.js +0 -20
  513. package/dist/styles.css +0 -1302
  514. package/dist/utils/actions/account/index.d.ts +0 -6
  515. package/dist/utils/actions/account/index.d.ts.map +0 -1
  516. package/dist/utils/actions/account/index.js +0 -28
  517. package/dist/utils/actions/account/type.d.ts +0 -5
  518. package/dist/utils/actions/account/type.d.ts.map +0 -1
  519. package/dist/utils/actions/account/type.js +0 -1
  520. package/dist/utils/actions/auth/index.d.ts +0 -8
  521. package/dist/utils/actions/auth/index.d.ts.map +0 -1
  522. package/dist/utils/actions/common/revalidate.d.ts +0 -3
  523. package/dist/utils/actions/common/revalidate.d.ts.map +0 -1
  524. package/dist/utils/actions/common/revalidate.js +0 -14
  525. package/dist/utils/actions/common/type.d.ts +0 -5
  526. package/dist/utils/actions/common/type.d.ts.map +0 -1
  527. package/dist/utils/actions/common/type.js +0 -1
  528. package/dist/utils/actions/common/utils.d.ts +0 -6
  529. package/dist/utils/actions/common/utils.d.ts.map +0 -1
  530. package/dist/utils/actions/software/index.d.ts +0 -12
  531. package/dist/utils/actions/software/index.d.ts.map +0 -1
  532. package/dist/utils/actions/software/index.js +0 -75
  533. package/dist/utils/api/accountService/index.d.ts +0 -24
  534. package/dist/utils/api/accountService/index.d.ts.map +0 -1
  535. package/dist/utils/api/accountService/index.js +0 -64
  536. package/dist/utils/api/accountService/type.d.ts +0 -5
  537. package/dist/utils/api/accountService/type.d.ts.map +0 -1
  538. package/dist/utils/api/accountService/type.js +0 -1
  539. package/dist/utils/api/file-upload/index.d.ts +0 -6
  540. package/dist/utils/api/file-upload/index.d.ts.map +0 -1
  541. package/dist/utils/api/file-upload/index.js +0 -80
  542. package/dist/utils/api/file-upload/type.d.ts +0 -7
  543. package/dist/utils/api/file-upload/type.d.ts.map +0 -1
  544. package/dist/utils/api/file-upload/type.js +0 -1
  545. package/dist/utils/api/ikonBaseApi.d.ts +0 -13
  546. package/dist/utils/api/ikonBaseApi.d.ts.map +0 -1
  547. package/dist/utils/api/loginService/index.d.ts +0 -13
  548. package/dist/utils/api/loginService/index.d.ts.map +0 -1
  549. package/dist/utils/api/loginService/index.js +0 -72
  550. package/dist/utils/api/loginService/type.d.ts.map +0 -1
  551. package/dist/utils/api/loginService/type.js +0 -1
  552. package/dist/utils/api/softwareService/index.d.ts +0 -65
  553. package/dist/utils/api/softwareService/index.d.ts.map +0 -1
  554. package/dist/utils/api/softwareService/index.js +0 -212
  555. package/dist/utils/api/softwareService/type.d.ts +0 -55
  556. package/dist/utils/api/softwareService/type.d.ts.map +0 -1
  557. package/dist/utils/api/softwareService/type.js +0 -1
  558. package/dist/utils/border-radius-provider.d.ts +0 -12
  559. package/dist/utils/border-radius-provider.d.ts.map +0 -1
  560. package/dist/utils/cn.d.ts +0 -3
  561. package/dist/utils/cn.d.ts.map +0 -1
  562. package/dist/utils/cn.js +0 -5
  563. package/dist/utils/font-provider.d.ts +0 -12
  564. package/dist/utils/font-provider.d.ts.map +0 -1
  565. package/dist/utils/session/cookieSession.d.ts +0 -9
  566. package/dist/utils/session/cookieSession.d.ts.map +0 -1
  567. package/dist/utils/session/cookieSession.js +0 -33
  568. package/dist/utils/theme-provider/index.d.ts +0 -4
  569. package/dist/utils/theme-provider/index.d.ts.map +0 -1
  570. package/dist/utils/theme-provider/index.js +0 -18
  571. package/dist/utils/token-management/index.d.ts +0 -11
  572. package/dist/utils/token-management/index.d.ts.map +0 -1
  573. package/dist/utils/token-management/index.js +0 -69
  574. package/dist/utils/token-management/types.d.ts +0 -7
  575. package/dist/utils/token-management/types.d.ts.map +0 -1
  576. package/dist/utils/token-management/types.js +0 -1
@@ -1,6 +0,0 @@
1
- import { AccountTreeProps } from "./type";
2
- export declare const getAccount: () => Promise<AccountTreeProps>;
3
- export declare const getActiveAccountId: () => Promise<string>;
4
- export declare const getOrSetActiveAccountId: () => Promise<string>;
5
- export declare const setActiveAccountId: (accountId: string) => Promise<void>;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/account/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,eAAO,MAAM,UAAU,QAAmB,OAAO,CAAC,gBAAgB,CAEhE,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAAa,OAAO,CAAC,MAAM,CAGzD,CAAC;AAGF,eAAO,MAAM,uBAAuB,QAAa,OAAO,CAAC,MAAM,CAY9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,WAAW,MAAM,kBAEzD,CAAC"}
@@ -1,28 +0,0 @@
1
- "use server";
2
- import { cache } from "react";
3
- import { getAccountTree } from "../../api/accountService";
4
- import { getCookieSession, setCookieSession } from "../../session/cookieSession";
5
- export const getAccount = cache(async () => {
6
- return await getAccountTree();
7
- });
8
- export const getActiveAccountId = async () => {
9
- const activeAccountId = await getCookieSession("activeAccountId");
10
- return activeAccountId || "";
11
- };
12
- export const getOrSetActiveAccountId = async () => {
13
- let activeAccountId = await getCookieSession("activeAccountId");
14
- if (!activeAccountId) {
15
- try {
16
- const account = await getAccount();
17
- activeAccountId = account.ACCOUNT_ID;
18
- await setActiveAccountId(activeAccountId);
19
- }
20
- catch (error) {
21
- console.error(error);
22
- }
23
- }
24
- return activeAccountId || "";
25
- };
26
- export const setActiveAccountId = async (accountId) => {
27
- await setCookieSession("activeAccountId", accountId);
28
- };
@@ -1,5 +0,0 @@
1
- export interface AccountTreeProps {
2
- ACCOUNT_ID: string;
3
- ACCOUNT_NAME: string;
4
- }
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/account/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import { GetLoggedInUserProfileDetailsReturnProps, GetLoggedInUserProfileReturnProps } from "../../api/loginService/type";
2
- export declare const setTicket: (ticket: string) => Promise<void>;
3
- export declare const getTicket: () => Promise<string | undefined>;
4
- export declare const getProfileData: () => Promise<GetLoggedInUserProfileReturnProps & GetLoggedInUserProfileDetailsReturnProps>;
5
- export declare function signOut(): Promise<void>;
6
- export declare const getCurrentUserId: () => Promise<string>;
7
- export declare const setCurrentUserId: (userId: string) => Promise<void>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/auth/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wCAAwC,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAK1H,eAAO,MAAM,SAAS,GAAU,QAAQ,MAAM,kBAE7C,CAAC;AACF,eAAO,MAAM,SAAS,QAAa,OAAO,CAAC,MAAM,GAAG,SAAS,CAE5D,CAAC;AAEF,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,iCAAiC,GAAG,wCAAwC,CAmC3H,CAAA;AAED,wBAAsB,OAAO,kBAQ5B;AAED,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,MAAM,CAGvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,QAAQ,MAAM,kBAEpD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { RevalidateProps } from "./type";
2
- export declare function revalidateData({ paths, tags }: RevalidateProps): Promise<void>;
3
- //# sourceMappingURL=revalidate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revalidate.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/common/revalidate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,wBAAsB,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,eAAe,iBAYpE"}
@@ -1,14 +0,0 @@
1
- "use server";
2
- import { revalidatePath, revalidateTag } from "next/cache";
3
- export async function revalidateData({ paths, tags }) {
4
- if (tags) {
5
- for (const tag of tags) {
6
- revalidateTag(tag, "default");
7
- }
8
- }
9
- if (paths) {
10
- for (const path of paths) {
11
- revalidatePath(path);
12
- }
13
- }
14
- }
@@ -1,5 +0,0 @@
1
- export interface RevalidateProps {
2
- paths?: string[];
3
- tags?: string[];
4
- }
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/common/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { FileinfoProps } from "../../api/file-upload/type";
2
- export declare function getSrcFromBase64String(imgString?: string | null, type?: string): string;
3
- export declare function getResourceUrl(fileInfo: FileinfoProps): Promise<string>;
4
- export declare function downloadResource(fileInfo: FileinfoProps): Promise<void>;
5
- export declare function openFileInNewTab(url: string): Promise<void>;
6
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/common/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,wBAAgB,sBAAsB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,UAE9E;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAG7E;AAED,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,iBAG7D;AAED,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,iBAUjD"}
@@ -1,12 +0,0 @@
1
- import { SubscribeSoftwareProps } from "../../api/softwareService/type";
2
- export declare const getBaseSoftwareId: () => Promise<string | undefined>;
3
- export declare const getOrSetBaseSoftwareId: () => Promise<string | undefined>;
4
- export declare const setBaseSoftwareId: (softwareId: string) => Promise<void>;
5
- export declare const getCurrentSoftwareId: () => Promise<string>;
6
- export declare const getCurrentAppName: () => Promise<string>;
7
- export declare const setCurrentSoftwareId: (softwareId: string) => Promise<void>;
8
- export declare const getSoftwareIdByNameVersion: (softwareName: string, version: string) => Promise<string>;
9
- export declare const setCurrentSoftwareIdByNameVersion: (softwareName: string, version: string) => Promise<void>;
10
- export declare const getAccessibleSoftware: (accountId: string, userId: string) => Promise<any>;
11
- export declare const getAllSubscribedSoftwares: (accountId?: string) => Promise<SubscribeSoftwareProps[]>;
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/actions/software/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAAC,MAAM,GAAG,SAAS,CAEpE,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,MAAM,GAAG,SAAS,CAWzE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,YAAY,MAAM,kBAEzD,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAa,OAAO,CAAC,MAAM,CAE3D,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAa,OAAO,CAAC,MAAM,CAExD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,YAAY,MAAM,kBAE5D,CAAC;AAEF,eAAO,MAAM,0BAA0B,iBAChB,MAAM,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CAG9D,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC5C,cAAc,MAAM,EACpB,SAAS,MAAM,kBAIhB,CAAC;AAEF,eAAO,MAAM,qBAAqB,cACd,MAAM,UAAU,MAAM,iBAGzC,CAAC;AAMF,eAAO,MAAM,yBAAyB,GACpC,YAAY,MAAM,KACjB,OAAO,CAAC,sBAAsB,EAAE,CAgClC,CAAC"}
@@ -1,75 +0,0 @@
1
- "use server";
2
- import { cache } from "react";
3
- import { getAccessibleSoftwareForUser, mapSoftwareName, } from "../../api/softwareService";
4
- import { getCookieSession, setCookieSession, } from "../../session/cookieSession";
5
- import { cookies } from "next/headers";
6
- export const getBaseSoftwareId = async () => {
7
- return await getCookieSession("baseSoftwareId");
8
- };
9
- export const getOrSetBaseSoftwareId = async () => {
10
- let baseSoftwareId = await getCookieSession("baseSoftwareId");
11
- if (!baseSoftwareId) {
12
- try {
13
- baseSoftwareId = await getSoftwareIdByNameVersion("Base App", "1");
14
- await setBaseSoftwareId(baseSoftwareId);
15
- }
16
- catch (error) {
17
- console.error(error);
18
- }
19
- }
20
- return baseSoftwareId;
21
- };
22
- export const setBaseSoftwareId = async (softwareId) => {
23
- await setCookieSession("baseSoftwareId", softwareId);
24
- };
25
- export const getCurrentSoftwareId = async () => {
26
- return (await getCookieSession("currentSoftwareId")) || "";
27
- };
28
- export const getCurrentAppName = async () => {
29
- return (await getCookieSession("currentAppName")) || "";
30
- };
31
- export const setCurrentSoftwareId = async (softwareId) => {
32
- await setCookieSession("currentSoftwareId", softwareId);
33
- };
34
- export const getSoftwareIdByNameVersion = cache(async (softwareName, version) => {
35
- return await mapSoftwareName({ softwareName, version });
36
- });
37
- export const setCurrentSoftwareIdByNameVersion = async (softwareName, version) => {
38
- const softwareId = await getSoftwareIdByNameVersion(softwareName, version);
39
- await setCurrentSoftwareId(softwareId);
40
- };
41
- export const getAccessibleSoftware = cache(async (accountId, userId) => {
42
- return await getAccessibleSoftwareForUser({ accountId, userId });
43
- });
44
- // export const getAllSubscribedSoftwares = cache(async (accountId: string) => {
45
- // return await getAllSubscribedSoftwaresForClient({ accountId });
46
- // });
47
- export const getAllSubscribedSoftwares = async (accountId) => {
48
- try {
49
- const cookieStore = await cookies();
50
- const cookieHeader = cookieStore
51
- .getAll()
52
- .map(({ name, value }) => `${name}=${value}`)
53
- .join("; "); // Convert to a valid Cookie header string
54
- // Fetch API with cookies
55
- const resp = await fetch(`${process.env.NEXT_BASE_PATH_URL}/api/software/subscribe`, {
56
- method: "GET",
57
- headers: {
58
- "Content-Type": "application/json",
59
- Accept: "application/json",
60
- Cookie: cookieHeader, // ✅ Send all cookies
61
- body: JSON.stringify({
62
- accountId,
63
- }),
64
- },
65
- cache: "force-cache",
66
- });
67
- if (!resp.ok)
68
- throw new Error("Failed to fetch subscribe softwares");
69
- return resp.json();
70
- }
71
- catch (error) {
72
- console.error(error);
73
- return [];
74
- }
75
- };
@@ -1,24 +0,0 @@
1
- import { GetAccountTreeProps } from "./type";
2
- export declare const getAccountTree: () => Promise<GetAccountTreeProps>;
3
- export declare const checkExistingAccount: ({ accountName, }: {
4
- accountName: string;
5
- }) => Promise<boolean>;
6
- export declare const getFullAccountTree: () => Promise<any>;
7
- export declare const getAllInvitedAccountsForUser: (userId: string) => Promise<any>;
8
- export declare const acceptAccountInvitationRequest: ({ userId, requestId, }: {
9
- userId: string;
10
- requestId: string;
11
- }) => Promise<any>;
12
- export declare const rejectAccountInvitationRequest: ({ userId, requestId, }: {
13
- userId: string;
14
- requestId: string;
15
- }) => Promise<any>;
16
- export declare const cancelAccountInvitationRequest: ({ userId, requestId, }: {
17
- userId: string;
18
- requestId: string;
19
- }) => Promise<any>;
20
- export declare const deactivateInvitedUserFromAccount: ({ userId, invitationId, }: {
21
- userId: string;
22
- invitationId: string;
23
- }) => Promise<any>;
24
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/accountService/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,mBAAmB,CAMlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,kBAExC;IACD,WAAW,EAAE,MAAM,CAAC;CACrB,KAAG,OAAO,CAAC,OAAO,CAOlB,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAa,OAAO,CAAC,GAAG,CAMtD,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,KACb,OAAO,CAAC,GAAG,CAOb,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAU,wBAGlD;IACD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,OAAO,CAAC,GAAG,CAOd,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAU,wBAGlD;IACD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,OAAO,CAAC,GAAG,CAOd,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAU,wBAGlD;IACD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,OAAO,CAAC,GAAG,CAOd,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAU,2BAGpD;IACD,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB,KAAG,OAAO,CAAC,GAAG,CAOd,CAAC"}
@@ -1,64 +0,0 @@
1
- "use server";
2
- import ikonBaseApi from "../ikonBaseApi";
3
- export const getAccountTree = async () => {
4
- const result = await ikonBaseApi({
5
- service: "accountService",
6
- operation: "getAccountTree",
7
- });
8
- return result.data;
9
- };
10
- export const checkExistingAccount = async ({ accountName, }) => {
11
- const result = await ikonBaseApi({
12
- service: "accountService",
13
- operation: "checkExistingAccount",
14
- arguments_: [accountName],
15
- });
16
- return result.data;
17
- };
18
- export const getFullAccountTree = async () => {
19
- const result = await ikonBaseApi({
20
- service: "accountService",
21
- operation: "getFullAccountTree",
22
- });
23
- return result.data;
24
- };
25
- export const getAllInvitedAccountsForUser = async (userId) => {
26
- const result = await ikonBaseApi({
27
- service: "userInvitationService",
28
- operation: "getAllInvitedAccountsForUser",
29
- arguments_: [userId],
30
- });
31
- return result.data;
32
- };
33
- export const acceptAccountInvitationRequest = async ({ userId, requestId, }) => {
34
- const result = await ikonBaseApi({
35
- service: "userInvitationService",
36
- operation: "acceptAccountInvitationRequest",
37
- arguments_: [userId, requestId],
38
- });
39
- return result.data;
40
- };
41
- export const rejectAccountInvitationRequest = async ({ userId, requestId, }) => {
42
- const result = await ikonBaseApi({
43
- service: "userInvitationService",
44
- operation: "rejectAccountInvitationRequest",
45
- arguments_: [userId, requestId],
46
- });
47
- return result.data;
48
- };
49
- export const cancelAccountInvitationRequest = async ({ userId, requestId, }) => {
50
- const result = await ikonBaseApi({
51
- service: "userInvitationService",
52
- operation: "cancelAccountInvitationRequest",
53
- arguments_: [userId, requestId],
54
- });
55
- return result.data;
56
- };
57
- export const deactivateInvitedUserFromAccount = async ({ userId, invitationId, }) => {
58
- const result = await ikonBaseApi({
59
- service: "userInvitationService",
60
- operation: "deactivateInvitedUserFromAccount",
61
- arguments_: [userId, invitationId],
62
- });
63
- return result.data;
64
- };
@@ -1,5 +0,0 @@
1
- export interface GetAccountTreeProps {
2
- ACCOUNT_ID: string;
3
- ACCOUNT_NAME: string;
4
- }
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/accountService/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import { FileinfoProps } from "./type";
2
- export declare function singleFileUpload(file: File, resourceId?: string): Promise<FileinfoProps>;
3
- export declare function multipleFileUpload(files: File[], resourceId?: string): Promise<FileinfoProps[]>;
4
- export declare function base64FileUpload(base64File: string, resourceName: string, resourceType: string, resourceId?: string): Promise<FileinfoProps>;
5
- export declare function singleUAResourceUpload(file: File, folder: string): Promise<any>;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/file-upload/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,aAAa,CAAC,CA6BxB;AAED,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,IAAI,EAAE,EACb,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,aAAa,EAAE,CAAC,CAO1B;AAED,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,aAAa,CAAC,CAWxB;AACD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,GAAG,CAAC,CA6Bd"}
@@ -1,80 +0,0 @@
1
- "use server";
2
- import { axiosInstance } from "../ikonBaseApi";
3
- import { v4 } from "uuid";
4
- import { getTicket } from "../../actions/auth";
5
- export async function singleFileUpload(file, resourceId) {
6
- const formData = new FormData();
7
- formData.append("file", file);
8
- const fileInfo = {};
9
- fileInfo["resourceId"] = resourceId || v4();
10
- fileInfo["resourceName"] = file.name;
11
- fileInfo["resourceSize"] = file.size;
12
- fileInfo["resourceType"] = file.type;
13
- const globalTicket = (await getTicket()) || "";
14
- const queryParams = new URLSearchParams({
15
- ticket: globalTicket,
16
- resourceId: fileInfo["resourceId"],
17
- });
18
- try {
19
- const result = await axiosInstance({
20
- method: "POST",
21
- url: `https://ikoncloud-dev.keross.com/ikon-api/upload?${queryParams.toString()}`,
22
- data: formData,
23
- responseType: "json",
24
- headers: { "Content-Type": "multipart/form-data" },
25
- });
26
- console.log("File upload result:", result);
27
- }
28
- catch (error) {
29
- throw error;
30
- }
31
- return fileInfo;
32
- }
33
- export async function multipleFileUpload(files, resourceId) {
34
- const fileInfos = [];
35
- for (const file of files) {
36
- const fileInfo = await singleFileUpload(file, resourceId);
37
- fileInfos.push(fileInfo);
38
- }
39
- return fileInfos;
40
- }
41
- export async function base64FileUpload(base64File, resourceName, resourceType, resourceId) {
42
- const base64 = base64File.split(",")[1];
43
- const byteCharacters = atob(base64);
44
- const byteNumbers = new Array(byteCharacters.length);
45
- for (let i = 0; i < byteCharacters.length; i++) {
46
- byteNumbers[i] = byteCharacters.charCodeAt(i);
47
- }
48
- const byteArray = new Uint8Array(byteNumbers);
49
- const blob = new Blob([byteArray], { type: resourceType });
50
- const file = new File([blob], resourceName, { type: resourceType });
51
- return await singleFileUpload(file, resourceId);
52
- }
53
- export async function singleUAResourceUpload(file, folder) {
54
- const formData = new FormData();
55
- formData.append("file", file);
56
- const fileInfo = {};
57
- fileInfo["folder"] = folder || "ikon";
58
- fileInfo["resourceName"] = file.name;
59
- fileInfo["resourceSize"] = file.size;
60
- fileInfo["resourceType"] = file.type;
61
- const globalTicket = (await getTicket()) || "";
62
- const queryParams = new URLSearchParams({
63
- ticket: globalTicket,
64
- folder: fileInfo["folder"],
65
- });
66
- try {
67
- const result = await axiosInstance({
68
- method: "POST",
69
- url: `https://ikoncloud-dev.keross.com/ikon-api//uaresourceupload?${queryParams.toString()}`,
70
- data: formData,
71
- responseType: "json",
72
- headers: { "Content-Type": "multipart/form-data" },
73
- });
74
- console.log("File upload result:", result);
75
- }
76
- catch (error) {
77
- throw error;
78
- }
79
- return fileInfo;
80
- }
@@ -1,7 +0,0 @@
1
- export interface FileinfoProps {
2
- resourceId: string;
3
- resourceName?: string;
4
- resourceSize?: number;
5
- resourceType?: string;
6
- }
7
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/file-upload/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAE5B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- interface IkonBaseApiProps {
2
- service: string;
3
- operation: string;
4
- arguments_?: any | null;
5
- accountId?: string | null;
6
- softwareId?: string | null;
7
- isTicketRequried?: boolean;
8
- isServerApi?: boolean;
9
- }
10
- export declare const axiosInstance: import("axios").AxiosInstance;
11
- declare function ikonBaseApi({ service, operation, arguments_, accountId, softwareId, isTicketRequried, isServerApi }: IkonBaseApiProps): Promise<any>;
12
- export default ikonBaseApi;
13
- //# sourceMappingURL=ikonBaseApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ikonBaseApi.d.ts","sourceRoot":"","sources":["../../../src/utils/api/ikonBaseApi.ts"],"names":[],"mappings":"AAQA,UAAU,gBAAgB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAGD,eAAO,MAAM,aAAa,+BAExB,CAAC;AAEH,iBAAe,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAuB,EAAE,WAAmB,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,CA0GlK;AAED,eAAe,WAAW,CAAA"}
@@ -1,13 +0,0 @@
1
- import { ForgotPasswordProps, GetLoggedInUserProfileDetailsReturnProps, GetLoggedInUserProfileReturnProps, LoginProps, UpdateUserProfileProps, ValidateOTPProps } from "./type";
2
- export declare const login: ({ userName, password }: LoginProps) => Promise<any>;
3
- export declare const resetPassword: ({ userName }: ForgotPasswordProps) => Promise<any>;
4
- export declare const generateOTP: ({ temporaryTicket, otpMedium, }: {
5
- temporaryTicket: string;
6
- otpMedium?: string;
7
- }) => Promise<any>;
8
- export declare const validateOTP: ({ temporaryTicket, otp, }: ValidateOTPProps) => Promise<any>;
9
- export declare const logout: () => Promise<any>;
10
- export declare const getLoggedInUserProfile: (isServerApi?: boolean) => Promise<GetLoggedInUserProfileReturnProps>;
11
- export declare const getLoggedInUserProfileDetails: (isServerApi?: boolean) => Promise<GetLoggedInUserProfileDetailsReturnProps>;
12
- export declare const updateUserProfile: ({ userName, userPassword, userPhone, userEmail, userThumbnail, }: UpdateUserProfileProps) => Promise<any>;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/loginService/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,wCAAwC,EACxC,iCAAiC,EACjC,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,QAAQ,CAAC;AAGhB,eAAO,MAAM,KAAK,GAAU,wBAAwB,UAAU,iBAQ7D,CAAC;AAEF,eAAO,MAAM,aAAa,GAAU,cAAc,mBAAmB,iBAQpE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,iCAG/B;IACD,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,iBAQA,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,2BAG/B,gBAAgB,iBAQlB,CAAC;AAEF,eAAO,MAAM,MAAM,oBAMlB,CAAC;AACF,eAAO,MAAM,sBAAsB,GACjC,cAAc,OAAO,KACpB,OAAO,CAAC,iCAAiC,CAO3C,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,cAAc,OAAO,KACpB,OAAO,CAAC,wCAAwC,CAOlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,kEAMrC,sBAAsB,iBAUxB,CAAC"}
@@ -1,72 +0,0 @@
1
- "use server";
2
- import sha512 from "crypto-js/sha512";
3
- import ikonBaseApi from "../../api/ikonBaseApi";
4
- import { revalidateTag } from "next/cache";
5
- export const login = async ({ userName, password }) => {
6
- const result = await ikonBaseApi({
7
- service: "loginService",
8
- operation: "login",
9
- arguments_: [userName, sha512(password).toString()],
10
- isTicketRequried: false,
11
- });
12
- return result.data;
13
- };
14
- export const resetPassword = async ({ userName }) => {
15
- const result = await ikonBaseApi({
16
- service: "loginService",
17
- operation: "resetPassword",
18
- arguments_: [userName],
19
- isTicketRequried: false,
20
- });
21
- return result.data;
22
- };
23
- export const generateOTP = async ({ temporaryTicket, otpMedium = "EMAIL", }) => {
24
- const result = await ikonBaseApi({
25
- service: "loginService",
26
- operation: "generateOTP",
27
- arguments_: [temporaryTicket, otpMedium],
28
- isTicketRequried: false,
29
- });
30
- return result.data;
31
- };
32
- export const validateOTP = async ({ temporaryTicket, otp, }) => {
33
- const result = await ikonBaseApi({
34
- service: "loginService",
35
- operation: "validateOTP",
36
- arguments_: [temporaryTicket, otp],
37
- isTicketRequried: false,
38
- });
39
- return result.data;
40
- };
41
- export const logout = async () => {
42
- const result = await ikonBaseApi({
43
- service: "loginService",
44
- operation: "logout",
45
- });
46
- return result.data;
47
- };
48
- export const getLoggedInUserProfile = async (isServerApi) => {
49
- const result = await ikonBaseApi({
50
- service: "loginService",
51
- operation: "getLoggedInUserProfile",
52
- isServerApi,
53
- });
54
- return result.data;
55
- };
56
- export const getLoggedInUserProfileDetails = async (isServerApi) => {
57
- const result = await ikonBaseApi({
58
- service: "loginService",
59
- operation: "getLoggedInUserProfileDetails",
60
- isServerApi,
61
- });
62
- return result.data;
63
- };
64
- export const updateUserProfile = async ({ userName, userPassword, userPhone, userEmail, userThumbnail, }) => {
65
- const result = await ikonBaseApi({
66
- service: "loginService",
67
- operation: "updateUserProfile",
68
- arguments_: [userName, userPassword, userPhone, userEmail, userThumbnail],
69
- });
70
- revalidateTag("profile", "default");
71
- return result.data;
72
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/loginService/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AACD,MAAM,WAAW,wCAAwC;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,65 +0,0 @@
1
- import { CreateSoftwareProps, EditSoftwareProps, getAccessibleSoftwareForUserProps, getAllSubscribedSoftwaresForClientProps, getAvailableSoftwaresForAccountProps, getMySoftwaresProps, getMySoftwaresV2Props, mapSoftwareNameProps } from "./type";
2
- export declare const mapSoftwareName: ({ softwareName, version, }: mapSoftwareNameProps) => Promise<string>;
3
- export declare const createSoftware: ({ softwareName, softwareDescription, softwareVersion, softwareOwnerAccount, softwareDeveloperAccount, softwareManagerAccount, softwareAccessibility, softwareStatus, }: CreateSoftwareProps) => Promise<string>;
4
- export declare const editSoftware: ({ softwareId, softwareName, softwareDescription, softwareVersion, softwareDeveloperAccount, softwareManagerAccount, softwareAccessibility, softwareStatus, }: EditSoftwareProps) => Promise<string>;
5
- export declare const getAccessibleSoftwareForUser: ({ accountId, userId, }: getAccessibleSoftwareForUserProps) => Promise<any>;
6
- export declare const getAllSubscribedSoftwaresForClient: ({ accountId }: getAllSubscribedSoftwaresForClientProps, isServerApi?: boolean) => Promise<any>;
7
- export declare const inviteAccountForSoftware: ({ accountId, softwareId, expirationTime, }: {
8
- accountId: string;
9
- softwareId: string;
10
- expirationTime?: number | string;
11
- }) => Promise<any>;
12
- export declare const getAllSentSoftwareInviteRequests: ({ accountId, }: {
13
- accountId: string;
14
- }) => Promise<any>;
15
- export declare const getAllReceivedSoftwareInviteRequests: ({ accountId, }: {
16
- accountId: string;
17
- }) => Promise<any>;
18
- export declare const getAllSoftwareInvitesV2: ({ accountId, }: {
19
- accountId: string;
20
- }) => Promise<any>;
21
- export declare const acceptInvitationRequestForSoftware: ({ requestId, shareKey, }: {
22
- requestId: string;
23
- shareKey: string;
24
- }) => Promise<any>;
25
- export declare const cancelInvitationRequestForSoftware: ({ requestId, }: {
26
- requestId: string;
27
- }) => Promise<any>;
28
- export declare const rejectInvitationRequestForSoftware: ({ requestId, }: {
29
- requestId: string;
30
- }) => Promise<any>;
31
- export declare const activateSoftwareInviteForAccount: ({ invitationId, }: {
32
- invitationId: string;
33
- }) => Promise<any>;
34
- export declare const deactivateSoftwareInviteForAccount: ({ invitationId, }: {
35
- invitationId: string;
36
- }) => Promise<any>;
37
- export declare const getAllPendingInvitationRequestsForUser: ({ userId, }: {
38
- userId: string;
39
- }) => Promise<any>;
40
- export declare const getAllInvitationRequestsSentByAccount: ({ accountId, }: {
41
- accountId: string;
42
- }) => Promise<any>;
43
- export declare const inviteUserToMyAccount: ({ accountId, userLogin, }: {
44
- accountId: string;
45
- userLogin: string;
46
- }) => Promise<any>;
47
- export declare const getMySoftwares: ({ accountId }: getMySoftwaresProps) => Promise<any>;
48
- export declare const getMySoftwaresV2: ({ accountId, onlyActive, }: getMySoftwaresV2Props) => Promise<any>;
49
- export declare const getAvailableSoftwaresForAccount: ({ accountId, }: getAvailableSoftwaresForAccountProps) => Promise<any>;
50
- export declare const getSoftwareById: ({ softwareId, }: {
51
- softwareId: string;
52
- }) => Promise<any>;
53
- export declare const activateSoftware: ({ softwareId, }: {
54
- softwareId: string;
55
- }) => Promise<any>;
56
- export declare const deactivateSoftware: ({ softwareId, }: {
57
- softwareId: string;
58
- }) => Promise<any>;
59
- export declare const requestForFinalSubscription: ({ accountId, userId, softwareId, suggestedDate, }: {
60
- accountId: string;
61
- userId: string;
62
- softwareId: string;
63
- suggestedDate?: string | null;
64
- }) => Promise<any>;
65
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/api/softwareService/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,iCAAiC,EACjC,uCAAuC,EACvC,oCAAoC,EACpC,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,eAAe,GAAU,4BAGnC,oBAAoB,KAAG,OAAO,CAAC,MAAM,CAOvC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,wKASlC,mBAAmB,KAAG,OAAO,CAAC,MAAM,CAgBtC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAU,8JAShC,iBAAiB,KAAG,OAAO,CAAC,MAAM,CAgBpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAU,wBAGhD,iCAAiC,iBAOnC,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAC7C,eAAe,uCAAuC,EACtD,cAAc,OAAO,iBAStB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAU,4CAI5C;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,iBAOA,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAU,gBAEpD;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAAU,gBAExD;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAU,gBAE3C;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAU,0BAGtD;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,iBAOA,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAU,gBAEtD;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAU,gBAEtD;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAU,mBAEpD;IACD,YAAY,EAAE,MAAM,CAAC;CACtB,iBAOA,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAU,mBAEtD;IACD,YAAY,EAAE,MAAM,CAAC;CACtB,iBAOA,CAAC;AAEF,eAAO,MAAM,sCAAsC,GAAU,aAE1D;IACD,MAAM,EAAE,MAAM,CAAC;CAChB,iBAOA,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAAU,gBAEzD;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,2BAGzC;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,iBAOA,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,eAAe,mBAAmB,iBAOtE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,4BAGpC,qBAAqB,iBAOvB,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAU,gBAEnD,oCAAoC,iBAOtC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,iBAEnC;IACD,UAAU,EAAE,MAAM,CAAC;CACpB,iBAOA,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,iBAEpC;IACD,UAAU,EAAE,MAAM,CAAC;CACpB,iBAOA,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,iBAEtC;IACD,UAAU,EAAE,MAAM,CAAC;CACpB,iBAOA,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAU,mDAK/C;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,iBAOA,CAAC"}