ikoncomponents 1.5.5 → 1.5.7
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.
- package/README.md +36 -36
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/ikoncomponents/action-menu/index.d.ts +5 -0
- package/dist/ikoncomponents/action-menu/index.js +42 -0
- package/dist/ikoncomponents/action-menu/type.d.ts +14 -0
- package/dist/ikoncomponents/action-menu/type.js +1 -0
- package/dist/ikoncomponents/activity-sheet/index.d.ts +11 -0
- package/dist/ikoncomponents/activity-sheet/index.js +23 -0
- package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts +21 -0
- package/dist/ikoncomponents/alert-dialog/dialog-context.js +30 -0
- package/dist/ikoncomponents/alert-dialog/index.d.ts +14 -0
- package/dist/ikoncomponents/alert-dialog/index.js +20 -0
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts +18 -0
- package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.js +43 -0
- package/dist/ikoncomponents/app-breadcrumb/index.d.ts +5 -0
- package/dist/ikoncomponents/app-breadcrumb/index.js +57 -0
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts +5 -0
- package/dist/ikoncomponents/big-calendar/big-calender-event/index.js +16 -0
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts +2 -0
- package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.js +39 -0
- package/dist/ikoncomponents/big-calendar/index.d.ts +3 -0
- package/dist/ikoncomponents/big-calendar/index.js +35 -0
- package/dist/ikoncomponents/big-calendar/type.d.ts +31 -0
- package/dist/ikoncomponents/big-calendar/type.js +1 -0
- package/dist/ikoncomponents/buttons/index.d.ts +18 -0
- package/dist/ikoncomponents/buttons/index.js +38 -0
- package/dist/ikoncomponents/combobox-input/index.d.ts +2 -0
- package/dist/ikoncomponents/combobox-input/index.js +18 -0
- package/dist/ikoncomponents/combobox-input/type.d.ts +13 -0
- package/dist/ikoncomponents/combobox-input/type.js +1 -0
- package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts +21 -0
- package/dist/ikoncomponents/custom-combo-dropdown/index.js +85 -0
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +22 -0
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +35 -0
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +38 -0
- package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-pagination/index.js +13 -0
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +18 -0
- package/dist/ikoncomponents/data-table/function.d.ts +1 -0
- package/dist/ikoncomponents/data-table/function.js +6 -0
- package/dist/ikoncomponents/data-table/index.d.ts +2 -0
- package/dist/ikoncomponents/data-table/index.js +223 -0
- package/dist/ikoncomponents/data-table/type.d.ts +60 -0
- package/dist/ikoncomponents/data-table/type.js +1 -0
- package/dist/ikoncomponents/e-chart/index.d.ts +15 -0
- package/dist/ikoncomponents/e-chart/index.js +115 -0
- package/dist/ikoncomponents/file-input/index.d.ts +1 -0
- package/dist/ikoncomponents/file-input/index.js +21 -0
- package/dist/ikoncomponents/fileUpload/index.d.ts +15 -0
- package/dist/ikoncomponents/fileUpload/index.js +69 -0
- package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/combobox-input/index.js +21 -0
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts +18 -0
- package/dist/ikoncomponents/form-fields/combobox-input-value/index.js +26 -0
- package/dist/ikoncomponents/form-fields/date-input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/date-input/index.js +15 -0
- package/dist/ikoncomponents/form-fields/file-input/index.d.ts +1 -0
- package/dist/ikoncomponents/form-fields/file-input/index.js +4 -0
- package/dist/ikoncomponents/form-fields/input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/input/index.js +18 -0
- package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts +6 -0
- package/{templates/default/ikoncomponents/form-fields/multi-combobox-input/index.tsx → dist/ikoncomponents/form-fields/multi-combobox-input/index.js} +381 -574
- package/dist/ikoncomponents/form-fields/otp-input/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/otp-input/index.js +18 -0
- package/dist/ikoncomponents/form-fields/phone-input/index.d.ts +1 -0
- package/dist/ikoncomponents/form-fields/phone-input/index.js +4 -0
- package/dist/ikoncomponents/form-fields/textarea/index.d.ts +2 -0
- package/dist/ikoncomponents/form-fields/textarea/index.js +18 -0
- package/dist/ikoncomponents/form-fields/types/index.d.ts +36 -0
- package/dist/ikoncomponents/form-fields/types/index.js +1 -0
- package/dist/ikoncomponents/glowing-effect/index.d.ts +14 -0
- package/dist/ikoncomponents/glowing-effect/index.js +84 -0
- package/dist/ikoncomponents/icon/index.d.ts +8 -0
- package/dist/ikoncomponents/icon/index.js +23 -0
- package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts +15 -0
- package/{templates/default/ikoncomponents/image-cropper-upload/components/newCropper.tsx → dist/ikoncomponents/image-cropper-upload/components/newCropper.js} +85 -117
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts +7 -0
- package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.js +145 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts +6 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.js +92 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts +6 -0
- package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.js +14 -0
- package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts +14 -0
- package/{templates/default/ikoncomponents/image-cropper-upload/image-cropper/index.tsx → dist/ikoncomponents/image-cropper-upload/image-cropper/index.js} +87 -119
- package/dist/ikoncomponents/image-cropper-upload/index.d.ts +27 -0
- package/dist/ikoncomponents/image-cropper-upload/index.js +49 -0
- package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts +16 -0
- package/dist/ikoncomponents/image-cropper-upload/utils/index.js +73 -0
- package/dist/ikoncomponents/loading-spinner/index.d.ts +9 -0
- package/dist/ikoncomponents/loading-spinner/index.js +19 -0
- package/dist/ikoncomponents/main-layout/RefreshContext.d.ts +10 -0
- package/dist/ikoncomponents/main-layout/RefreshContext.js +17 -0
- package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts +33 -0
- package/dist/ikoncomponents/main-layout/SidebarNavContext.js +52 -0
- package/dist/ikoncomponents/main-layout/app-sidebar.d.ts +3 -0
- package/dist/ikoncomponents/main-layout/app-sidebar.js +24 -0
- package/dist/ikoncomponents/main-layout/footer.d.ts +1 -0
- package/dist/ikoncomponents/main-layout/footer.js +5 -0
- package/dist/ikoncomponents/main-layout/header.d.ts +3 -0
- package/dist/ikoncomponents/main-layout/header.js +15 -0
- package/dist/ikoncomponents/main-layout/index.d.ts +6 -0
- package/dist/ikoncomponents/main-layout/index.js +11 -0
- package/dist/ikoncomponents/main-layout/main-sidebar.d.ts +60 -0
- package/dist/ikoncomponents/main-layout/main-sidebar.js +119 -0
- package/dist/ikoncomponents/main-layout/nav-main.d.ts +11 -0
- package/dist/ikoncomponents/main-layout/nav-main.js +33 -0
- package/dist/ikoncomponents/multi-combobox/index.d.ts +13 -0
- package/dist/ikoncomponents/multi-combobox/index.js +202 -0
- package/dist/ikoncomponents/no-data/index.d.ts +3 -0
- package/dist/ikoncomponents/no-data/index.js +5 -0
- package/dist/ikoncomponents/page-wrapper/index.d.ts +9 -0
- package/dist/ikoncomponents/page-wrapper/index.js +7 -0
- package/dist/ikoncomponents/password-strength-meter/index.d.ts +3 -0
- package/dist/ikoncomponents/password-strength-meter/index.js +40 -0
- package/dist/ikoncomponents/phone-input/index.d.ts +1 -0
- package/dist/ikoncomponents/phone-input/index.js +41 -0
- package/dist/ikoncomponents/provider-wrapper/index.d.ts +6 -0
- package/dist/ikoncomponents/provider-wrapper/index.js +11 -0
- package/dist/ikoncomponents/search-input/index.d.ts +1 -0
- package/dist/ikoncomponents/search-input/index.js +19 -0
- package/dist/ikoncomponents/sheet/index.d.ts +10 -0
- package/dist/ikoncomponents/sheet/index.js +6 -0
- package/dist/ikoncomponents/simple-widget/index.d.ts +14 -0
- package/dist/ikoncomponents/simple-widget/index.js +14 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts +5 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-table.js +6 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts +3 -0
- package/dist/ikoncomponents/skeleton-loader/skeleton-widget.js +5 -0
- package/dist/ikoncomponents/tabs/index.d.ts +2 -0
- package/dist/ikoncomponents/tabs/index.js +50 -0
- package/{templates/default/ikoncomponents/tabs/type.ts → dist/ikoncomponents/tabs/type.d.ts} +19 -20
- package/dist/ikoncomponents/tabs/type.js +2 -0
- package/dist/ikoncomponents/theme-toggle-btn/index.d.ts +1 -0
- package/{templates/default/ikoncomponents/theme-toggle-btn/index.tsx → dist/ikoncomponents/theme-toggle-btn/index.js} +118 -189
- package/dist/ikoncomponents/title-progress/index.d.ts +12 -0
- package/dist/ikoncomponents/title-progress/index.js +10 -0
- package/dist/ikoncomponents/tooltip/index.d.ts +5 -0
- package/dist/ikoncomponents/tooltip/index.js +5 -0
- package/dist/ikoncomponents/twolevel-dropdown/index.d.ts +31 -0
- package/dist/ikoncomponents/twolevel-dropdown/index.js +143 -0
- package/dist/ikoncomponents/upload-tab/index.d.ts +1 -0
- package/dist/ikoncomponents/upload-tab/index.js +92 -0
- package/dist/ikoncomponents/widgets/index.d.ts +2 -0
- package/dist/ikoncomponents/widgets/index.js +14 -0
- package/dist/ikoncomponents/widgets/type.d.ts +10 -0
- package/dist/ikoncomponents/widgets/type.js +2 -0
- package/dist/ikoncomponents/work-in-progress/index.d.ts +1 -0
- package/dist/ikoncomponents/work-in-progress/index.js +4 -0
- package/dist/index.d.ts +138 -0
- package/dist/index.js +116 -14
- package/dist/shadcn/accordion.d.ts +7 -0
- package/dist/shadcn/accordion.js +33 -0
- package/dist/shadcn/alert-dialog.d.ts +20 -0
- package/dist/shadcn/alert-dialog.js +83 -0
- package/dist/shadcn/alert.d.ts +9 -0
- package/dist/shadcn/alert.js +38 -0
- package/dist/shadcn/aspect-ratio.d.ts +3 -0
- package/dist/shadcn/aspect-ratio.js +19 -0
- package/dist/shadcn/avatar.d.ts +6 -0
- package/dist/shadcn/avatar.js +28 -0
- package/dist/shadcn/badge.d.ts +9 -0
- package/dist/shadcn/badge.js +35 -0
- package/dist/shadcn/breadcrumb.d.ts +11 -0
- package/dist/shadcn/breadcrumb.js +45 -0
- package/dist/shadcn/button.d.ts +10 -0
- package/dist/shadcn/button.js +47 -0
- package/dist/shadcn/calendar.d.ts +8 -0
- package/dist/shadcn/calendar.js +61 -0
- package/dist/shadcn/card.d.ts +9 -0
- package/dist/shadcn/card.js +42 -0
- package/dist/shadcn/checkbox.d.ts +4 -0
- package/dist/shadcn/checkbox.js +21 -0
- package/dist/shadcn/collapsible.d.ts +5 -0
- package/dist/shadcn/collapsible.js +27 -0
- package/dist/shadcn/command.d.ts +18 -0
- package/dist/shadcn/command.js +54 -0
- package/dist/shadcn/date-input.d.ts +7 -0
- package/dist/shadcn/date-input.js +179 -0
- package/dist/shadcn/date-range-picker.d.ts +24 -0
- package/dist/shadcn/date-range-picker.js +45 -0
- package/dist/shadcn/dialog.d.ts +15 -0
- package/dist/shadcn/dialog.js +57 -0
- package/dist/shadcn/drawer.d.ts +13 -0
- package/dist/shadcn/drawer.js +56 -0
- package/dist/shadcn/dropdown-menu.d.ts +25 -0
- package/dist/shadcn/dropdown-menu.js +77 -0
- package/dist/shadcn/form.d.ts +24 -0
- package/dist/shadcn/form.js +70 -0
- package/dist/shadcn/hover-card.d.ts +6 -0
- package/dist/shadcn/hover-card.js +28 -0
- package/dist/shadcn/input-otp.d.ts +34 -0
- package/dist/shadcn/input-otp.js +40 -0
- package/dist/shadcn/input.d.ts +3 -0
- package/dist/shadcn/input.js +18 -0
- package/dist/shadcn/label.d.ts +4 -0
- package/dist/shadcn/label.js +20 -0
- package/dist/shadcn/navigation-menu.d.ts +16 -0
- package/dist/shadcn/navigation-menu.js +74 -0
- package/dist/shadcn/popover.d.ts +7 -0
- package/dist/shadcn/popover.js +32 -0
- package/dist/shadcn/progress.d.ts +8 -0
- package/dist/shadcn/progress.js +23 -0
- package/dist/shadcn/radio-group.d.ts +5 -0
- package/dist/shadcn/radio-group.js +25 -0
- package/dist/shadcn/scroll-area.d.ts +5 -0
- package/dist/shadcn/scroll-area.js +26 -0
- package/dist/shadcn/select.d.ts +15 -0
- package/dist/shadcn/select.js +59 -0
- package/dist/shadcn/separator.d.ts +4 -0
- package/dist/shadcn/separator.js +20 -0
- package/dist/shadcn/sheet.d.ts +13 -0
- package/dist/shadcn/sheet.js +61 -0
- package/dist/shadcn/sidebar.d.ts +69 -0
- package/dist/shadcn/sidebar.js +242 -0
- package/dist/shadcn/skeleton.d.ts +3 -0
- package/dist/shadcn/skeleton.js +18 -0
- package/dist/shadcn/slider.d.ts +4 -0
- package/dist/shadcn/slider.js +26 -0
- package/dist/shadcn/sonner.d.ts +3 -0
- package/dist/shadcn/sonner.js +25 -0
- package/dist/shadcn/switch.d.ts +4 -0
- package/dist/shadcn/switch.js +20 -0
- package/dist/shadcn/table.d.ts +10 -0
- package/dist/shadcn/table.js +47 -0
- package/dist/shadcn/tabs.d.ts +7 -0
- package/dist/shadcn/tabs.js +32 -0
- package/dist/shadcn/textarea.d.ts +3 -0
- package/dist/shadcn/textarea.js +18 -0
- package/dist/shadcn/toggle-group.d.ts +9 -0
- package/dist/shadcn/toggle-group.js +35 -0
- package/dist/shadcn/toggle.d.ts +9 -0
- package/dist/shadcn/toggle.js +38 -0
- package/dist/shadcn/tooltip.d.ts +7 -0
- package/dist/shadcn/tooltip.js +32 -0
- package/dist/shadcn/workflow.d.ts +20 -0
- package/dist/shadcn/workflow.js +20 -0
- package/dist/styles.css +6163 -0
- package/dist/utils/actions/account/index.d.ts +5 -0
- package/dist/utils/actions/account/index.js +28 -0
- package/dist/utils/actions/account/type.d.ts +4 -0
- package/dist/utils/actions/account/type.js +1 -0
- package/dist/utils/actions/auth/index.d.ts +7 -0
- package/{templates/default/utils/actions/auth/index.ts → dist/utils/actions/auth/index.js} +58 -69
- package/dist/utils/actions/common/utils.d.ts +5 -0
- package/{templates/default/utils/actions/common/utils.ts → dist/utils/actions/common/utils.js} +25 -28
- package/dist/utils/actions/software/index.d.ts +11 -0
- package/dist/utils/actions/software/index.js +75 -0
- package/dist/utils/api/accountService/index.d.ts +23 -0
- package/dist/utils/api/accountService/index.js +64 -0
- package/dist/utils/api/accountService/type.d.ts +4 -0
- package/dist/utils/api/accountService/type.js +1 -0
- package/dist/utils/api/file-upload/index.d.ts +5 -0
- package/dist/utils/api/file-upload/index.js +80 -0
- package/dist/utils/api/file-upload/type.d.ts +6 -0
- package/dist/utils/api/file-upload/type.js +1 -0
- package/dist/utils/api/ikonBaseApi.d.ts +12 -0
- package/{templates/default/utils/api/ikonBaseApi.ts → dist/utils/api/ikonBaseApi.js} +104 -132
- package/dist/utils/api/loginService/index.d.ts +12 -0
- package/dist/utils/api/loginService/index.js +72 -0
- package/{templates/default/utils/api/loginService/type.ts → dist/utils/api/loginService/type.d.ts} +31 -35
- package/dist/utils/api/loginService/type.js +1 -0
- package/dist/utils/api/softwareService/index.d.ts +64 -0
- package/dist/utils/api/softwareService/index.js +212 -0
- package/dist/utils/api/softwareService/type.d.ts +54 -0
- package/dist/utils/api/softwareService/type.js +1 -0
- package/dist/utils/border-radius-provider.d.ts +11 -0
- package/{templates/default/utils/border-radius-provider.tsx → dist/utils/border-radius-provider.js} +35 -59
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +5 -0
- package/dist/utils/font-provider.d.ts +11 -0
- package/{templates/default/utils/font-provider.tsx → dist/utils/font-provider.js} +37 -61
- package/dist/utils/session/cookieSession.d.ts +8 -0
- package/dist/utils/session/cookieSession.js +33 -0
- package/dist/utils/theme-provider/index.d.ts +3 -0
- package/dist/utils/theme-provider/index.js +18 -0
- package/dist/utils/token-management/index.d.ts +10 -0
- package/dist/utils/token-management/index.js +69 -0
- package/dist/utils/token-management/types.d.ts +6 -0
- package/dist/utils/token-management/types.js +1 -0
- package/package.json +91 -17
- package/bin.js +0 -2
- package/dist/commands/init.js +0 -63
- package/dist/utlis/copyDir.js +0 -7
- package/templates/default/hooks/use-mobile.ts +0 -19
- package/templates/default/ikoncomponents/action-menu/index.tsx +0 -108
- package/templates/default/ikoncomponents/action-menu/type.ts +0 -18
- package/templates/default/ikoncomponents/activity-sheet/index.tsx +0 -63
- package/templates/default/ikoncomponents/alert-dialog/dialog-context.tsx +0 -65
- package/templates/default/ikoncomponents/alert-dialog/index.tsx +0 -80
- package/templates/default/ikoncomponents/app-breadcrumb/BreadcrumbProvider.tsx +0 -68
- package/templates/default/ikoncomponents/app-breadcrumb/index.tsx +0 -222
- package/templates/default/ikoncomponents/big-calendar/big-calender-event/index.tsx +0 -38
- package/templates/default/ikoncomponents/big-calendar/big-calender-toolbar/index.tsx +0 -81
- package/templates/default/ikoncomponents/big-calendar/index.css +0 -879
- package/templates/default/ikoncomponents/big-calendar/index.tsx +0 -59
- package/templates/default/ikoncomponents/big-calendar/type.ts +0 -37
- package/templates/default/ikoncomponents/buttons/index.tsx +0 -127
- package/templates/default/ikoncomponents/combobox-input/index.tsx +0 -75
- package/templates/default/ikoncomponents/combobox-input/type.ts +0 -14
- package/templates/default/ikoncomponents/custom-combo-dropdown/index.tsx +0 -242
- package/templates/default/ikoncomponents/data-table/datatable-column-filter/index.tsx +0 -80
- package/templates/default/ikoncomponents/data-table/datatable-faceted-filter/index.tsx +0 -149
- package/templates/default/ikoncomponents/data-table/datatable-filter-menu/index.tsx +0 -98
- package/templates/default/ikoncomponents/data-table/datatable-pagination/index.tsx +0 -119
- package/templates/default/ikoncomponents/data-table/datatable-toolbar/index.tsx +0 -45
- package/templates/default/ikoncomponents/data-table/function.ts +0 -7
- package/templates/default/ikoncomponents/data-table/index.tsx +0 -549
- package/templates/default/ikoncomponents/data-table/type.ts +0 -75
- package/templates/default/ikoncomponents/e-chart/index.tsx +0 -183
- package/templates/default/ikoncomponents/file-input/index.tsx +0 -27
- package/templates/default/ikoncomponents/fileUpload/index.tsx +0 -121
- package/templates/default/ikoncomponents/form-fields/combobox-input/index.tsx +0 -111
- package/templates/default/ikoncomponents/form-fields/combobox-input-value/index.tsx +0 -121
- package/templates/default/ikoncomponents/form-fields/date-input/index.tsx +0 -80
- package/templates/default/ikoncomponents/form-fields/file-input/index.tsx +0 -9
- package/templates/default/ikoncomponents/form-fields/input/index.tsx +0 -27
- package/templates/default/ikoncomponents/form-fields/otp-input/index.tsx +0 -39
- package/templates/default/ikoncomponents/form-fields/password-input/index.tsx +0 -52
- package/templates/default/ikoncomponents/form-fields/phone-input/index.tsx +0 -7
- package/templates/default/ikoncomponents/form-fields/textarea/index.tsx +0 -28
- package/templates/default/ikoncomponents/form-fields/types/index.ts +0 -46
- package/templates/default/ikoncomponents/glowing-effect/index.tsx +0 -171
- package/templates/default/ikoncomponents/icon/index.tsx +0 -22
- package/templates/default/ikoncomponents/image-cropper-upload/components/cropperImg.css +0 -19
- package/templates/default/ikoncomponents/image-cropper-upload/components/newImageUploadForm.tsx +0 -352
- package/templates/default/ikoncomponents/image-cropper-upload/cropper-form/index.tsx +0 -250
- package/templates/default/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.tsx +0 -32
- package/templates/default/ikoncomponents/image-cropper-upload/index.tsx +0 -95
- package/templates/default/ikoncomponents/image-cropper-upload/utils/index.ts +0 -117
- package/templates/default/ikoncomponents/loading-spinner/index.tsx +0 -43
- package/templates/default/ikoncomponents/main-layout/RefreshContext.tsx +0 -30
- package/templates/default/ikoncomponents/main-layout/SidebarNavContext.tsx +0 -103
- package/templates/default/ikoncomponents/main-layout/app-sidebar.tsx +0 -36
- package/templates/default/ikoncomponents/main-layout/footer.tsx +0 -21
- package/templates/default/ikoncomponents/main-layout/header.tsx +0 -53
- package/templates/default/ikoncomponents/main-layout/index.tsx +0 -38
- package/templates/default/ikoncomponents/main-layout/main-sidebar.tsx +0 -389
- package/templates/default/ikoncomponents/main-layout/nav-main.tsx +0 -103
- package/templates/default/ikoncomponents/multi-combobox/index.tsx +0 -345
- package/templates/default/ikoncomponents/no-data/index.tsx +0 -11
- package/templates/default/ikoncomponents/page-wrapper/index.tsx +0 -30
- package/templates/default/ikoncomponents/password-strength-meter/index.tsx +0 -49
- package/templates/default/ikoncomponents/phone-input/index.tsx +0 -72
- package/templates/default/ikoncomponents/provider-wrapper/index.tsx +0 -32
- package/templates/default/ikoncomponents/search-input/index.tsx +0 -18
- package/templates/default/ikoncomponents/sheet/index.tsx +0 -34
- package/templates/default/ikoncomponents/simple-widget/index.tsx +0 -54
- package/templates/default/ikoncomponents/skeleton-loader/skeleton-table.tsx +0 -34
- package/templates/default/ikoncomponents/skeleton-loader/skeleton-widget.tsx +0 -13
- package/templates/default/ikoncomponents/tabs/index.tsx +0 -139
- package/templates/default/ikoncomponents/title-progress/index.tsx +0 -41
- package/templates/default/ikoncomponents/tooltip/index.tsx +0 -17
- package/templates/default/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.tsx +0 -33
- package/templates/default/ikoncomponents/twolevel-dropdown/index.tsx +0 -279
- package/templates/default/ikoncomponents/upload-tab/index.tsx +0 -237
- package/templates/default/ikoncomponents/widgets/index.tsx +0 -81
- package/templates/default/ikoncomponents/widgets/type.ts +0 -11
- package/templates/default/ikoncomponents/work-in-progress/index.tsx +0 -16
- package/templates/default/shadcn/accordion.tsx +0 -66
- package/templates/default/shadcn/alert-dialog.tsx +0 -179
- package/templates/default/shadcn/alert.tsx +0 -66
- package/templates/default/shadcn/aspect-ratio.tsx +0 -11
- package/templates/default/shadcn/avatar.tsx +0 -53
- package/templates/default/shadcn/badge.tsx +0 -49
- package/templates/default/shadcn/breadcrumb.tsx +0 -109
- package/templates/default/shadcn/button.tsx +0 -64
- package/templates/default/shadcn/calendar.tsx +0 -227
- package/templates/default/shadcn/card.tsx +0 -92
- package/templates/default/shadcn/checkbox.tsx +0 -33
- package/templates/default/shadcn/collapsible.tsx +0 -33
- package/templates/default/shadcn/command.tsx +0 -184
- package/templates/default/shadcn/date-input.tsx +0 -259
- package/templates/default/shadcn/date-range-picker.tsx +0 -103
- package/templates/default/shadcn/dialog.tsx +0 -143
- package/templates/default/shadcn/drawer.tsx +0 -134
- package/templates/default/shadcn/dropdown-menu.tsx +0 -259
- package/templates/default/shadcn/form.tsx +0 -166
- package/templates/default/shadcn/hover-card.tsx +0 -44
- package/templates/default/shadcn/input-otp.tsx +0 -71
- package/templates/default/shadcn/input.tsx +0 -22
- package/templates/default/shadcn/label.tsx +0 -24
- package/templates/default/shadcn/navigation-menu.tsx +0 -195
- package/templates/default/shadcn/popover.tsx +0 -48
- package/templates/default/shadcn/progress.tsx +0 -40
- package/templates/default/shadcn/radio-group.tsx +0 -45
- package/templates/default/shadcn/scroll-area.tsx +0 -58
- package/templates/default/shadcn/select.tsx +0 -184
- package/templates/default/shadcn/separator.tsx +0 -28
- package/templates/default/shadcn/sheet.tsx +0 -139
- package/templates/default/shadcn/sidebar.tsx +0 -726
- package/templates/default/shadcn/skeleton.tsx +0 -15
- package/templates/default/shadcn/slider.tsx +0 -64
- package/templates/default/shadcn/sonner.tsx +0 -25
- package/templates/default/shadcn/switch.tsx +0 -31
- package/templates/default/shadcn/table.tsx +0 -116
- package/templates/default/shadcn/tabs.tsx +0 -67
- package/templates/default/shadcn/textarea.tsx +0 -18
- package/templates/default/shadcn/toggle-group.tsx +0 -83
- package/templates/default/shadcn/toggle.tsx +0 -47
- package/templates/default/shadcn/tooltip.tsx +0 -65
- package/templates/default/shadcn/workflow.tsx +0 -119
- package/templates/default/utils/actions/account/index.ts +0 -33
- package/templates/default/utils/actions/account/type.ts +0 -4
- package/templates/default/utils/actions/common/revalidate.ts +0 -18
- package/templates/default/utils/actions/common/type.ts +0 -4
- package/templates/default/utils/actions/software/index.ts +0 -106
- package/templates/default/utils/api/accountService/index.ts +0 -103
- package/templates/default/utils/api/accountService/type.ts +0 -4
- package/templates/default/utils/api/file-upload/index.ts +0 -103
- package/templates/default/utils/api/file-upload/type.ts +0 -8
- package/templates/default/utils/api/loginService/index.ts +0 -106
- package/templates/default/utils/api/softwareService/index.ts +0 -356
- package/templates/default/utils/api/softwareService/type.ts +0 -62
- package/templates/default/utils/cn.ts +0 -6
- package/templates/default/utils/session/cookieSession.ts +0 -49
- package/templates/default/utils/theme-provider/index.tsx +0 -11
- package/templates/default/utils/token-management/index.ts +0 -115
- package/templates/default/utils/token-management/types.ts +0 -6
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use server"
|
|
2
|
-
|
|
3
|
-
import { revalidatePath, revalidateTag } from "next/cache";
|
|
4
|
-
import { RevalidateProps } from "./type";
|
|
5
|
-
|
|
6
|
-
export async function revalidateData({ paths, tags }: RevalidateProps) {
|
|
7
|
-
if (tags) {
|
|
8
|
-
for (const tag of tags) {
|
|
9
|
-
revalidateTag(tag)
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (paths) {
|
|
14
|
-
for (const path of paths) {
|
|
15
|
-
revalidatePath(path)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use server";
|
|
2
|
-
import { cache } from "react";
|
|
3
|
-
import {
|
|
4
|
-
getAccessibleSoftwareForUser,
|
|
5
|
-
mapSoftwareName,
|
|
6
|
-
} from "../../api/softwareService";
|
|
7
|
-
import {
|
|
8
|
-
getCookieSession,
|
|
9
|
-
setCookieSession,
|
|
10
|
-
} from "../../session/cookieSession";
|
|
11
|
-
import { cookies } from "next/headers";
|
|
12
|
-
import { SubscribeSoftwareProps } from "../../api/softwareService/type";
|
|
13
|
-
|
|
14
|
-
export const getBaseSoftwareId = async (): Promise<string | undefined> => {
|
|
15
|
-
return await getCookieSession("baseSoftwareId");
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const getOrSetBaseSoftwareId = async (): Promise<string | undefined> => {
|
|
19
|
-
let baseSoftwareId = await getCookieSession("baseSoftwareId");
|
|
20
|
-
if (!baseSoftwareId) {
|
|
21
|
-
try {
|
|
22
|
-
baseSoftwareId = await getSoftwareIdByNameVersion("Base App", "1");
|
|
23
|
-
await setBaseSoftwareId(baseSoftwareId);
|
|
24
|
-
} catch (error) {
|
|
25
|
-
console.error(error);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return baseSoftwareId;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const setBaseSoftwareId = async (softwareId: string) => {
|
|
32
|
-
await setCookieSession("baseSoftwareId", softwareId);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const getCurrentSoftwareId = async (): Promise<string> => {
|
|
36
|
-
return (await getCookieSession("currentSoftwareId")) || "";
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const getCurrentAppName = async (): Promise<string> => {
|
|
40
|
-
return (await getCookieSession("currentAppName")) || "";
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const setCurrentSoftwareId = async (softwareId: string) => {
|
|
44
|
-
await setCookieSession("currentSoftwareId", softwareId);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const getSoftwareIdByNameVersion = cache(
|
|
48
|
-
async (softwareName: string, version: string): Promise<string> => {
|
|
49
|
-
return await mapSoftwareName({ softwareName, version });
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
export const setCurrentSoftwareIdByNameVersion = async (
|
|
54
|
-
softwareName: string,
|
|
55
|
-
version: string
|
|
56
|
-
) => {
|
|
57
|
-
const softwareId = await getSoftwareIdByNameVersion(softwareName, version);
|
|
58
|
-
await setCurrentSoftwareId(softwareId);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const getAccessibleSoftware = cache(
|
|
62
|
-
async (accountId: string, userId: string) => {
|
|
63
|
-
return await getAccessibleSoftwareForUser({ accountId, userId });
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
// export const getAllSubscribedSoftwares = cache(async (accountId: string) => {
|
|
68
|
-
// return await getAllSubscribedSoftwaresForClient({ accountId });
|
|
69
|
-
// });
|
|
70
|
-
|
|
71
|
-
export const getAllSubscribedSoftwares = async (
|
|
72
|
-
accountId?: string
|
|
73
|
-
): Promise<SubscribeSoftwareProps[]> => {
|
|
74
|
-
try {
|
|
75
|
-
const cookieStore = await cookies();
|
|
76
|
-
const cookieHeader = cookieStore
|
|
77
|
-
.getAll()
|
|
78
|
-
.map(({ name, value }) => `${name}=${value}`)
|
|
79
|
-
.join("; "); // Convert to a valid Cookie header string
|
|
80
|
-
|
|
81
|
-
// Fetch API with cookies
|
|
82
|
-
const resp = await fetch(
|
|
83
|
-
`${process.env.NEXT_BASE_PATH_URL}/api/software/subscribe`,
|
|
84
|
-
{
|
|
85
|
-
method: "GET",
|
|
86
|
-
headers: {
|
|
87
|
-
"Content-Type": "application/json",
|
|
88
|
-
Accept: "application/json",
|
|
89
|
-
Cookie: cookieHeader, // ✅ Send all cookies
|
|
90
|
-
body: JSON.stringify({
|
|
91
|
-
accountId,
|
|
92
|
-
}),
|
|
93
|
-
},
|
|
94
|
-
cache: "force-cache",
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
if (!resp.ok) throw new Error("Failed to fetch subscribe softwares");
|
|
99
|
-
|
|
100
|
-
return resp.json();
|
|
101
|
-
} catch (error) {
|
|
102
|
-
console.error(error);
|
|
103
|
-
return [];
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use server";
|
|
2
|
-
import ikonBaseApi from "../ikonBaseApi";
|
|
3
|
-
import { GetAccountTreeProps } from "./type";
|
|
4
|
-
|
|
5
|
-
export const getAccountTree = async (): Promise<GetAccountTreeProps> => {
|
|
6
|
-
const result = await ikonBaseApi({
|
|
7
|
-
service: "accountService",
|
|
8
|
-
operation: "getAccountTree",
|
|
9
|
-
});
|
|
10
|
-
return result.data;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const checkExistingAccount = async ({
|
|
14
|
-
accountName,
|
|
15
|
-
}: {
|
|
16
|
-
accountName: string;
|
|
17
|
-
}): Promise<boolean> => {
|
|
18
|
-
const result = await ikonBaseApi({
|
|
19
|
-
service: "accountService",
|
|
20
|
-
operation: "checkExistingAccount",
|
|
21
|
-
arguments_: [accountName],
|
|
22
|
-
});
|
|
23
|
-
return result.data;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const getFullAccountTree = async (): Promise<any> => {
|
|
27
|
-
const result = await ikonBaseApi({
|
|
28
|
-
service: "accountService",
|
|
29
|
-
operation: "getFullAccountTree",
|
|
30
|
-
});
|
|
31
|
-
return result.data;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const getAllInvitedAccountsForUser = async (
|
|
35
|
-
userId: string
|
|
36
|
-
): Promise<any> => {
|
|
37
|
-
const result = await ikonBaseApi({
|
|
38
|
-
service: "userInvitationService",
|
|
39
|
-
operation: "getAllInvitedAccountsForUser",
|
|
40
|
-
arguments_: [userId],
|
|
41
|
-
});
|
|
42
|
-
return result.data;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const acceptAccountInvitationRequest = async ({
|
|
46
|
-
userId,
|
|
47
|
-
requestId,
|
|
48
|
-
}: {
|
|
49
|
-
userId: string;
|
|
50
|
-
requestId: string;
|
|
51
|
-
}): Promise<any> => {
|
|
52
|
-
const result = await ikonBaseApi({
|
|
53
|
-
service: "userInvitationService",
|
|
54
|
-
operation: "acceptAccountInvitationRequest",
|
|
55
|
-
arguments_: [userId, requestId],
|
|
56
|
-
});
|
|
57
|
-
return result.data;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const rejectAccountInvitationRequest = async ({
|
|
61
|
-
userId,
|
|
62
|
-
requestId,
|
|
63
|
-
}: {
|
|
64
|
-
userId: string;
|
|
65
|
-
requestId: string;
|
|
66
|
-
}): Promise<any> => {
|
|
67
|
-
const result = await ikonBaseApi({
|
|
68
|
-
service: "userInvitationService",
|
|
69
|
-
operation: "rejectAccountInvitationRequest",
|
|
70
|
-
arguments_: [userId, requestId],
|
|
71
|
-
});
|
|
72
|
-
return result.data;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const cancelAccountInvitationRequest = async ({
|
|
76
|
-
userId,
|
|
77
|
-
requestId,
|
|
78
|
-
}: {
|
|
79
|
-
userId: string;
|
|
80
|
-
requestId: string;
|
|
81
|
-
}): Promise<any> => {
|
|
82
|
-
const result = await ikonBaseApi({
|
|
83
|
-
service: "userInvitationService",
|
|
84
|
-
operation: "cancelAccountInvitationRequest",
|
|
85
|
-
arguments_: [userId, requestId],
|
|
86
|
-
});
|
|
87
|
-
return result.data;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export const deactivateInvitedUserFromAccount = async ({
|
|
91
|
-
userId,
|
|
92
|
-
invitationId,
|
|
93
|
-
}: {
|
|
94
|
-
userId: string;
|
|
95
|
-
invitationId: string;
|
|
96
|
-
}): Promise<any> => {
|
|
97
|
-
const result = await ikonBaseApi({
|
|
98
|
-
service: "userInvitationService",
|
|
99
|
-
operation: "deactivateInvitedUserFromAccount",
|
|
100
|
-
arguments_: [userId, invitationId],
|
|
101
|
-
});
|
|
102
|
-
return result.data;
|
|
103
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use server";
|
|
2
|
-
import { AxiosResponse } from "axios";
|
|
3
|
-
import { axiosInstance } from "../ikonBaseApi";
|
|
4
|
-
import { v4 } from "uuid";
|
|
5
|
-
import { FileinfoProps } from "./type";
|
|
6
|
-
import { getTicket } from "../../actions/auth";
|
|
7
|
-
|
|
8
|
-
export async function singleFileUpload(
|
|
9
|
-
file: File,
|
|
10
|
-
resourceId?: string
|
|
11
|
-
): Promise<FileinfoProps> {
|
|
12
|
-
const formData = new FormData();
|
|
13
|
-
formData.append("file", file);
|
|
14
|
-
|
|
15
|
-
const fileInfo = {} as FileinfoProps;
|
|
16
|
-
fileInfo["resourceId"] = resourceId || v4();
|
|
17
|
-
fileInfo["resourceName"] = file.name;
|
|
18
|
-
fileInfo["resourceSize"] = file.size;
|
|
19
|
-
fileInfo["resourceType"] = file.type;
|
|
20
|
-
|
|
21
|
-
const globalTicket = (await getTicket()) || "";
|
|
22
|
-
const queryParams = new URLSearchParams({
|
|
23
|
-
ticket: globalTicket,
|
|
24
|
-
resourceId: fileInfo["resourceId"],
|
|
25
|
-
});
|
|
26
|
-
try {
|
|
27
|
-
const result: AxiosResponse<unknown> = await axiosInstance({
|
|
28
|
-
method: "POST",
|
|
29
|
-
url: `https://ikoncloud-dev.keross.com/ikon-api/upload?${queryParams.toString()}`,
|
|
30
|
-
data: formData,
|
|
31
|
-
responseType: "json",
|
|
32
|
-
headers: { "Content-Type": "multipart/form-data" },
|
|
33
|
-
});
|
|
34
|
-
console.log("File upload result:", result);
|
|
35
|
-
} catch (error) {
|
|
36
|
-
throw error;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return fileInfo;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export async function multipleFileUpload(
|
|
43
|
-
files: File[],
|
|
44
|
-
resourceId?: string
|
|
45
|
-
): Promise<FileinfoProps[]> {
|
|
46
|
-
const fileInfos: FileinfoProps[] = [];
|
|
47
|
-
for (const file of files) {
|
|
48
|
-
const fileInfo = await singleFileUpload(file, resourceId);
|
|
49
|
-
fileInfos.push(fileInfo);
|
|
50
|
-
}
|
|
51
|
-
return fileInfos;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export async function base64FileUpload(
|
|
55
|
-
base64File: string,
|
|
56
|
-
resourceName: string,
|
|
57
|
-
resourceType: string,
|
|
58
|
-
resourceId?: string
|
|
59
|
-
): Promise<FileinfoProps> {
|
|
60
|
-
const base64 = base64File.split(",")[1];
|
|
61
|
-
const byteCharacters = atob(base64);
|
|
62
|
-
const byteNumbers = new Array(byteCharacters.length);
|
|
63
|
-
for (let i = 0; i < byteCharacters.length; i++) {
|
|
64
|
-
byteNumbers[i] = byteCharacters.charCodeAt(i);
|
|
65
|
-
}
|
|
66
|
-
const byteArray = new Uint8Array(byteNumbers);
|
|
67
|
-
const blob = new Blob([byteArray], { type: resourceType });
|
|
68
|
-
const file = new File([blob], resourceName, { type: resourceType });
|
|
69
|
-
return await singleFileUpload(file, resourceId);
|
|
70
|
-
}
|
|
71
|
-
export async function singleUAResourceUpload(
|
|
72
|
-
file: File,
|
|
73
|
-
folder: string
|
|
74
|
-
): Promise<any> {
|
|
75
|
-
const formData = new FormData();
|
|
76
|
-
formData.append("file", file);
|
|
77
|
-
|
|
78
|
-
const fileInfo = {} as any;
|
|
79
|
-
fileInfo["folder"] = folder || "ikon";
|
|
80
|
-
fileInfo["resourceName"] = file.name;
|
|
81
|
-
fileInfo["resourceSize"] = file.size;
|
|
82
|
-
fileInfo["resourceType"] = file.type;
|
|
83
|
-
|
|
84
|
-
const globalTicket = (await getTicket()) || "";
|
|
85
|
-
const queryParams = new URLSearchParams({
|
|
86
|
-
ticket: globalTicket,
|
|
87
|
-
folder: fileInfo["folder"],
|
|
88
|
-
});
|
|
89
|
-
try {
|
|
90
|
-
const result: AxiosResponse<unknown> = await axiosInstance({
|
|
91
|
-
method: "POST",
|
|
92
|
-
url: `https://ikoncloud-dev.keross.com/ikon-api//uaresourceupload?${queryParams.toString()}`,
|
|
93
|
-
data: formData,
|
|
94
|
-
responseType: "json",
|
|
95
|
-
headers: { "Content-Type": "multipart/form-data" },
|
|
96
|
-
});
|
|
97
|
-
console.log("File upload result:", result);
|
|
98
|
-
} catch (error) {
|
|
99
|
-
throw error;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return fileInfo;
|
|
103
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use server";
|
|
2
|
-
import sha512 from "crypto-js/sha512";
|
|
3
|
-
import ikonBaseApi from "../../api/ikonBaseApi";
|
|
4
|
-
import {
|
|
5
|
-
ForgotPasswordProps,
|
|
6
|
-
GetLoggedInUserProfileDetailsReturnProps,
|
|
7
|
-
GetLoggedInUserProfileReturnProps,
|
|
8
|
-
LoginProps,
|
|
9
|
-
UpdateUserProfileProps,
|
|
10
|
-
ValidateOTPProps,
|
|
11
|
-
} from "./type";
|
|
12
|
-
import { revalidateTag } from "next/cache";
|
|
13
|
-
|
|
14
|
-
export const login = async ({ userName, password }: LoginProps) => {
|
|
15
|
-
const result = await ikonBaseApi({
|
|
16
|
-
service: "loginService",
|
|
17
|
-
operation: "login",
|
|
18
|
-
arguments_: [userName, sha512(password).toString()],
|
|
19
|
-
isTicketRequried: false,
|
|
20
|
-
});
|
|
21
|
-
return result.data;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const resetPassword = async ({ userName }: ForgotPasswordProps) => {
|
|
25
|
-
const result = await ikonBaseApi({
|
|
26
|
-
service: "loginService",
|
|
27
|
-
operation: "resetPassword",
|
|
28
|
-
arguments_: [userName],
|
|
29
|
-
isTicketRequried: false,
|
|
30
|
-
});
|
|
31
|
-
return result.data;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const generateOTP = async ({
|
|
35
|
-
temporaryTicket,
|
|
36
|
-
otpMedium = "EMAIL",
|
|
37
|
-
}: {
|
|
38
|
-
temporaryTicket: string;
|
|
39
|
-
otpMedium?: string;
|
|
40
|
-
}) => {
|
|
41
|
-
const result = await ikonBaseApi({
|
|
42
|
-
service: "loginService",
|
|
43
|
-
operation: "generateOTP",
|
|
44
|
-
arguments_: [temporaryTicket, otpMedium],
|
|
45
|
-
isTicketRequried: false,
|
|
46
|
-
});
|
|
47
|
-
return result.data;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const validateOTP = async ({
|
|
51
|
-
temporaryTicket,
|
|
52
|
-
otp,
|
|
53
|
-
}: ValidateOTPProps) => {
|
|
54
|
-
const result = await ikonBaseApi({
|
|
55
|
-
service: "loginService",
|
|
56
|
-
operation: "validateOTP",
|
|
57
|
-
arguments_: [temporaryTicket, otp],
|
|
58
|
-
isTicketRequried: false,
|
|
59
|
-
});
|
|
60
|
-
return result.data;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const logout = async () => {
|
|
64
|
-
const result = await ikonBaseApi({
|
|
65
|
-
service: "loginService",
|
|
66
|
-
operation: "logout",
|
|
67
|
-
});
|
|
68
|
-
return result.data;
|
|
69
|
-
};
|
|
70
|
-
export const getLoggedInUserProfile = async (
|
|
71
|
-
isServerApi?: boolean
|
|
72
|
-
): Promise<GetLoggedInUserProfileReturnProps> => {
|
|
73
|
-
const result = await ikonBaseApi({
|
|
74
|
-
service: "loginService",
|
|
75
|
-
operation: "getLoggedInUserProfile",
|
|
76
|
-
isServerApi,
|
|
77
|
-
});
|
|
78
|
-
return result.data;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export const getLoggedInUserProfileDetails = async (
|
|
82
|
-
isServerApi?: boolean
|
|
83
|
-
): Promise<GetLoggedInUserProfileDetailsReturnProps> => {
|
|
84
|
-
const result = await ikonBaseApi({
|
|
85
|
-
service: "loginService",
|
|
86
|
-
operation: "getLoggedInUserProfileDetails",
|
|
87
|
-
isServerApi,
|
|
88
|
-
});
|
|
89
|
-
return result.data;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export const updateUserProfile = async ({
|
|
93
|
-
userName,
|
|
94
|
-
userPassword,
|
|
95
|
-
userPhone,
|
|
96
|
-
userEmail,
|
|
97
|
-
userThumbnail,
|
|
98
|
-
}: UpdateUserProfileProps) => {
|
|
99
|
-
const result = await ikonBaseApi({
|
|
100
|
-
service: "loginService",
|
|
101
|
-
operation: "updateUserProfile",
|
|
102
|
-
arguments_: [userName, userPassword, userPhone, userEmail, userThumbnail],
|
|
103
|
-
});
|
|
104
|
-
revalidateTag("profile");
|
|
105
|
-
return result.data;
|
|
106
|
-
};
|