@cagatayfdn/flora-components 0.0.148 → 0.0.150

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.
@@ -1,137 +1,140 @@
1
1
  import { default as r } from "./Button/Button.js";
2
2
  import { N as t } from "../index-H7XbDVmH.js";
3
3
  import { PermFallBack as l, getAuth as d } from "./AuthUserCan/index.js";
4
- import { Accordion as m, AccordionItem as x } from "./Accordion/Accordion.js";
4
+ import { Accordion as m, AccordionItem as s } from "./Accordion/Accordion.js";
5
5
  import { default as u } from "./ActionButton/ActionButton.js";
6
6
  import { default as n } from "./AlertCard/AlertCard.js";
7
- import { default as C } from "./AuthUserCan/Permission.js";
8
- import { default as I } from "./Autocomplete/Autocomplete.js";
9
- import { default as T } from "./Avatar/Avatar.js";
7
+ import { default as g } from "./AuthUserCan/Permission.js";
8
+ import { default as T } from "./Autocomplete/Autocomplete.js";
9
+ import { default as S } from "./Avatar/Avatar.js";
10
10
  import { default as P } from "./Card/Card.js";
11
11
  import { default as h } from "./Charts/index.js";
12
12
  import { default as A } from "./Checkbox/Checkbox.js";
13
- import { default as D } from "./Config/Config.js";
14
- import { default as B } from "./Confirm/Confirm.js";
15
- import { default as M } from "./ContentHeader/ContentHeader.js";
13
+ import { default as R } from "./Config/Config.js";
14
+ import { default as D } from "./Confirm/Confirm.js";
15
+ import { default as B } from "./ContentHeader/ContentHeader.js";
16
16
  import { default as U } from "./ContentLoader/ContentLoader.js";
17
17
  import { default as y } from "./Countdown/Countdown.js";
18
- import { default as E } from "./Datepicker/Datepicker.js";
18
+ import { default as H } from "./Datepicker/Datepicker.js";
19
19
  import { default as W } from "./Divider/Divider.js";
20
20
  import { default as q } from "./Drawer/index.js";
21
21
  import { default as G } from "./Dropdown/DropdownList.js";
22
- import { default as K } from "./FileUpload/FileUpload.js";
23
- import { default as Q } from "./FileUpload/ImagePreview.js";
24
- import { default as Y } from "./FileUpload/LengthCard.js";
25
- import { default as _ } from "./FileUpload/PreviewModal.js";
26
- import { default as oo } from "./Grid/Column.js";
27
- import { default as ro } from "./Grid/Row.js";
28
- import { default as to } from "./Heading/Heading.js";
29
- import { default as lo } from "./Icon/index.js";
30
- import { default as mo } from "./IconBox/IconBox.js";
31
- import { default as so } from "./InfiniteScroll/InfiniteScroll.js";
32
- import { default as io } from "./InfoBoxList/InfoBoxList.js";
33
- import { createConnectedService as co } from "./InfoBoxList/helper.js";
34
- import { default as go } from "./InfoDate/InfoDate.js";
35
- import { InfoText as So } from "./InfoText/InfoText.js";
36
- import { default as Lo } from "./Input/Input.js";
37
- import { default as bo } from "./Label/Label.js";
38
- import { default as wo } from "./Loading/Loading.js";
39
- import { default as vo } from "./Modal/Modal.js";
40
- import { default as No } from "./NavigatorCard/index.js";
41
- import { default as Fo } from "./NoResult/NoResult.js";
42
- import { Notification as Ro } from "./Notification/Notification.js";
43
- import { default as ko } from "./PageWrapper/PageWrap.js";
44
- import { default as Ho } from "./Pager/Pager.js";
45
- import { default as Vo } from "./Panel/Panel.js";
46
- import { default as jo } from "./PermaLink/PermaLink.js";
47
- import { default as zo, RadioList as Go } from "./Radio/Radio.js";
48
- import { default as Ko } from "./ResultError/ResultError.js";
49
- import { default as Qo } from "./ScrollContainer/ScrollContainer.js";
50
- import { default as Yo } from "./Select/NoData.js";
51
- import { S as _o } from "../Select-nhp2PiJK.js";
52
- import { default as oe } from "./Sidebar/index.js";
53
- import { M as re } from "../MenuItem-Df6Zsa7E.js";
54
- import { default as te } from "./StatusTag/StatusTag.js";
55
- import { default as le } from "./StatusTypography/StatusTypography.js";
56
- import { default as pe } from "./Stepper/Stepper.js";
57
- import { default as xe } from "./Switch/Switch.js";
58
- import { default as ue } from "./Tab/Tab.js";
59
- import { default as ne } from "./Table/Table.js";
60
- import { default as Ce } from "./Table/TableHeader.js";
61
- import { default as Ie } from "./Table/TableSort.js";
62
- import { default as Te } from "./Textarea/Textarea.js";
63
- import { default as Pe } from "./Tooltip/Tooltip.js";
64
- import { default as he } from "./TypographyText/TypographyText.js";
65
- import { default as Ae } from "./UserInfo/UserInfo.js";
66
- import { default as De } from "./ValidationError/ValidationError.js";
22
+ import { E as K, R as O } from "../ErrorLogModal-DhlD9tNj.js";
23
+ import { default as X } from "./FileUpload/FileUpload.js";
24
+ import { default as Z } from "./FileUpload/ImagePreview.js";
25
+ import { default as $ } from "./FileUpload/LengthCard.js";
26
+ import { default as eo } from "./FileUpload/PreviewModal.js";
27
+ import { default as ao } from "./Grid/Column.js";
28
+ import { default as fo } from "./Grid/Row.js";
29
+ import { default as po } from "./Heading/Heading.js";
30
+ import { default as so } from "./Icon/index.js";
31
+ import { default as uo } from "./IconBox/IconBox.js";
32
+ import { default as no } from "./InfiniteScroll/InfiniteScroll.js";
33
+ import { default as go } from "./InfoBoxList/InfoBoxList.js";
34
+ import { createConnectedService as To } from "./InfoBoxList/helper.js";
35
+ import { default as So } from "./InfoDate/InfoDate.js";
36
+ import { InfoText as Po } from "./InfoText/InfoText.js";
37
+ import { default as ho } from "./Input/Input.js";
38
+ import { default as Ao } from "./Label/Label.js";
39
+ import { default as Ro } from "./Loading/Loading.js";
40
+ import { default as Do } from "./Modal/Modal.js";
41
+ import { default as Bo } from "./NavigatorCard/index.js";
42
+ import { default as Uo } from "./NoResult/NoResult.js";
43
+ import { Notification as yo } from "./Notification/Notification.js";
44
+ import { default as Ho } from "./PageWrapper/PageWrap.js";
45
+ import { default as Wo } from "./Pager/Pager.js";
46
+ import { default as qo } from "./Panel/Panel.js";
47
+ import { default as Go } from "./PermaLink/PermaLink.js";
48
+ import { default as Ko, RadioList as Oo } from "./Radio/Radio.js";
49
+ import { default as Xo } from "./ResultError/ResultError.js";
50
+ import { default as Zo } from "./ScrollContainer/ScrollContainer.js";
51
+ import { default as $o } from "./Select/NoData.js";
52
+ import { S as ee } from "../Select-nhp2PiJK.js";
53
+ import { default as ae } from "./Sidebar/index.js";
54
+ import { M as fe } from "../MenuItem-Df6Zsa7E.js";
55
+ import { default as de } from "./StatusTag/StatusTag.js";
56
+ import { default as me } from "./StatusTypography/StatusTypography.js";
57
+ import { default as xe } from "./Stepper/Stepper.js";
58
+ import { default as ie } from "./Switch/Switch.js";
59
+ import { default as ce } from "./Tab/Tab.js";
60
+ import { default as Ce } from "./Table/Table.js";
61
+ import { default as Ie } from "./Table/TableHeader.js";
62
+ import { default as Le } from "./Table/TableSort.js";
63
+ import { default as be } from "./Textarea/Textarea.js";
64
+ import { default as we } from "./Tooltip/Tooltip.js";
65
+ import { default as Me } from "./TypographyText/TypographyText.js";
66
+ import { default as ve } from "./UserInfo/UserInfo.js";
67
+ import { default as Ne } from "./ValidationError/ValidationError.js";
67
68
  export {
68
69
  m as Accordion,
69
- x as AccordionItem,
70
+ s as AccordionItem,
70
71
  u as ActionButton,
71
72
  n as AlertCard,
72
- I as Autocomplete,
73
- T as Avatar,
73
+ T as Autocomplete,
74
+ S as Avatar,
74
75
  r as Button,
75
76
  P as Card,
76
77
  h as Chart,
77
78
  A as Checkbox,
78
- oo as Column,
79
- D as Config,
80
- B as Confirm,
81
- M as ContentHeader,
79
+ ao as Column,
80
+ R as Config,
81
+ D as Confirm,
82
+ B as ContentHeader,
82
83
  U as ContentLoader,
83
84
  y as Countdown,
84
- E as Datepicker,
85
+ H as Datepicker,
85
86
  W as Divider,
86
87
  q as Drawer,
87
88
  G as DropdownList,
88
- K as FileUpload,
89
- Q as FileUploadImagePreview,
90
- Y as FileUploadLengthCard,
91
- _ as FileUploadPreviewModal,
92
- to as Heading,
93
- lo as Icon,
94
- mo as IconBox,
95
- so as InfiniteScroll,
96
- io as InfoBoxList,
97
- go as InfoDate,
98
- So as InfoText,
99
- Lo as Input,
100
- bo as Label,
101
- wo as Loading,
102
- re as MenuItem,
103
- vo as Modal,
104
- No as NavigatorCard,
89
+ K as ErrorLogModal,
90
+ X as FileUpload,
91
+ Z as FileUploadImagePreview,
92
+ $ as FileUploadLengthCard,
93
+ eo as FileUploadPreviewModal,
94
+ po as Heading,
95
+ so as Icon,
96
+ uo as IconBox,
97
+ no as InfiniteScroll,
98
+ go as InfoBoxList,
99
+ So as InfoDate,
100
+ Po as InfoText,
101
+ ho as Input,
102
+ Ao as Label,
103
+ Ro as Loading,
104
+ fe as MenuItem,
105
+ Do as Modal,
106
+ Bo as NavigatorCard,
105
107
  t as NiceModal,
106
- Yo as NoData,
107
- Fo as NoResult,
108
- Ro as Notification,
109
- ko as PageWrapper,
110
- Ho as Pager,
111
- Vo as Panel,
108
+ $o as NoData,
109
+ Uo as NoResult,
110
+ yo as Notification,
111
+ Ho as PageWrapper,
112
+ Wo as Pager,
113
+ qo as Panel,
112
114
  l as PermFallBack,
113
- jo as PermaLink,
114
- C as Permission,
115
- zo as Radio,
116
- Go as RadioList,
117
- Ko as ResultError,
118
- ro as Row,
119
- Qo as ScrollContainer,
120
- _o as Select,
121
- oe as Sidebar,
122
- te as StatusTag,
123
- le as StatusTypography,
124
- pe as Stepper,
125
- xe as Switch,
126
- ue as Tab,
127
- ne as Table,
128
- Ce as TableHeader,
129
- Ie as TableSort,
130
- Te as Textarea,
131
- Pe as Tooltip,
132
- he as TypographyText,
133
- Ae as UserInfo,
134
- De as ValidationError,
135
- co as createConnectedService,
115
+ Go as PermaLink,
116
+ g as Permission,
117
+ Ko as Radio,
118
+ Oo as RadioList,
119
+ O as RealTimeLogModal,
120
+ Xo as ResultError,
121
+ fo as Row,
122
+ Zo as ScrollContainer,
123
+ ee as Select,
124
+ ae as Sidebar,
125
+ de as StatusTag,
126
+ me as StatusTypography,
127
+ xe as Stepper,
128
+ ie as Switch,
129
+ ce as Tab,
130
+ Ce as Table,
131
+ Ie as TableHeader,
132
+ Le as TableSort,
133
+ be as Textarea,
134
+ we as Tooltip,
135
+ Me as TypographyText,
136
+ ve as UserInfo,
137
+ Ne as ValidationError,
138
+ To as createConnectedService,
136
139
  d as getAuth
137
140
  };
@@ -1451,12 +1451,12 @@ export {
1451
1451
  Nt as a,
1452
1452
  St as b,
1453
1453
  xt as c,
1454
- kt as d,
1455
- Et as e,
1454
+ qt as d,
1455
+ kt as e,
1456
1456
  it as f,
1457
- Ft as g,
1458
- It as h,
1459
- qt as i,
1457
+ Et as g,
1458
+ Ft as h,
1459
+ It as i,
1460
1460
  ft as p,
1461
1461
  Lt as r,
1462
1462
  Wt as s,
package/dist/index.d.mts CHANGED
@@ -6,9 +6,10 @@ import { CustomLocale } from 'flatpickr/dist/types/locale';
6
6
  import { DateLimit } from 'flatpickr/dist/types/options';
7
7
  import { DateOption } from 'flatpickr/dist/types/options';
8
8
  import dayjs from 'dayjs';
9
- import { Dispatch as Dispatch_2 } from 'react';
9
+ import { Dispatch } from 'react';
10
10
  import { FC } from 'react';
11
11
  import { FieldError } from 'react-hook-form';
12
+ import { FieldValues } from 'react-hook-form';
12
13
  import { format } from 'date-fns';
13
14
  import i18n from 'i18next';
14
15
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -27,6 +28,8 @@ import { TFunction } from 'i18next';
27
28
  import { TFunctionResult } from 'i18next';
28
29
  import { Tick } from 'chart.js';
29
30
  import { TooltipItem } from 'chart.js';
31
+ import { UseFormWatch } from 'react-hook-form';
32
+ import { WatchObserver } from 'react-hook-form';
30
33
 
31
34
  export declare const Accordion: ({ children, className, }: AccordionProps) => JSX.Element;
32
35
 
@@ -142,6 +145,13 @@ export declare enum AppearanceTag {
142
145
  WARNING = "warning"
143
146
  }
144
147
 
148
+ export declare interface ApplicationLogs {
149
+ id: string;
150
+ application_type: string;
151
+ log_timestamp: string;
152
+ message: string;
153
+ }
154
+
145
155
  export declare enum ApplicationTypeSlug {
146
156
  COMMERCE = "commerce",
147
157
  ZERO = "zero",
@@ -164,7 +174,7 @@ export declare enum AppTypeEnum {
164
174
 
165
175
  declare type AuthContextType = [state: State & {
166
176
  token?: string;
167
- }, dispatch: Dispatch];
177
+ }, dispatch: Dispatch_2];
168
178
 
169
179
  export declare const AuthProvider: (props: {
170
180
  children: React_2.ReactNode;
@@ -430,7 +440,7 @@ export declare interface DateRange {
430
440
 
431
441
  export { dayjs }
432
442
 
433
- declare type Dispatch = React_2.Dispatch<Actiontype>;
443
+ declare type Dispatch_2 = React_2.Dispatch<Actiontype>;
434
444
 
435
445
  export declare const Divider: ({ appearance, className, margin, }: DividerProps) => JSX.Element;
436
446
 
@@ -488,6 +498,14 @@ export declare type DropdownListProps = {
488
498
  isDisabled?: boolean;
489
499
  };
490
500
 
501
+ export declare const ErrorLogModal: FC<ErrorLogModalProps & NiceModalHocProps>;
502
+
503
+ declare type ErrorLogModalProps = {
504
+ onClose?: () => void;
505
+ errors: GetDeployErrorLogsEntitiy[];
506
+ id: string;
507
+ };
508
+
491
509
  export declare interface EventProps<T = HTMLElement> {
492
510
  onClick?: (e: React.MouseEvent<T>) => void;
493
511
  onFocus?: (e: React.FocusEvent<T>) => void;
@@ -509,6 +527,22 @@ declare type ExpandableType = {
509
527
  onExpand?: (expanded: boolean, record: any) => void;
510
528
  };
511
529
 
530
+ export declare type FetcherReturnType = {
531
+ fetch: (...params: any) => void;
532
+ stopInterval: () => void;
533
+ startInterval: (...params: any) => void;
534
+ };
535
+
536
+ export declare type FetcherType = (...params: any) => void;
537
+
538
+ export declare interface FetchLogsParams {
539
+ applications: string[];
540
+ scroll_mode?: 'older' | 'newer';
541
+ projectPk: string;
542
+ appPk: string;
543
+ withoutPermission?: boolean;
544
+ }
545
+
512
546
  export declare const FileUpload: React_2.ForwardRefExoticComponent<{
513
547
  type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
514
548
  id?: string | undefined;
@@ -635,6 +669,14 @@ export declare interface FormElementProps {
635
669
  value?: string | number;
636
670
  }
637
671
 
672
+ export declare type FormFetcherReturnType<T extends FieldValues> = {
673
+ fetch: (...params: any) => void;
674
+ stop: () => void;
675
+ startInterval: (page: number, limit: number, values: T) => void;
676
+ stopInterval: () => void;
677
+ startSubscription: (watch: UseFormWatch<T>, callback: WatchObserver<T>) => void;
678
+ };
679
+
638
680
  export declare enum FormFieldAppearance {
639
681
  LIGHT = "light",
640
682
  DARK = "dark",
@@ -666,6 +708,13 @@ export declare function getCurrentLanguage(): string;
666
708
 
667
709
  export declare function getDatepickerLocale(): "en" | CustomLocale;
668
710
 
711
+ export declare interface GetDeployErrorLogsEntitiy {
712
+ id: number;
713
+ created_date: string;
714
+ update_date: string;
715
+ log_data: string;
716
+ }
717
+
669
718
  export declare const Heading: React_2.FC<HeadingProps>;
670
719
 
671
720
  export declare type HeadingProps = {
@@ -745,6 +794,7 @@ export declare const Input: React_2.ForwardRefExoticComponent<{
745
794
  type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
746
795
  prefix?: ReactNode;
747
796
  suffix?: ReactNode;
797
+ prefixClickable?: boolean | undefined;
748
798
  suffixClickable?: boolean | undefined;
749
799
  id?: string | undefined;
750
800
  size?: Size | undefined;
@@ -766,6 +816,7 @@ export declare type InputProps = {
766
816
  type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
767
817
  prefix?: ReactNode;
768
818
  suffix?: ReactNode;
819
+ prefixClickable?: boolean;
769
820
  suffixClickable?: boolean;
770
821
  id?: string;
771
822
  size?: Size;
@@ -1074,6 +1125,30 @@ export declare type RadioProps = {
1074
1125
  setContext?: (v: OptionItem) => void;
1075
1126
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus'>;
1076
1127
 
1128
+ export declare const RealTimeLogModal: FC<RealTimeLogModalProps & NiceModalHocProps>;
1129
+
1130
+ export declare type RealTimeLogModalProps = {
1131
+ id: string;
1132
+ projectPk: string;
1133
+ logs: ApplicationLogs[];
1134
+ responseCount?: number;
1135
+ totalLogCount?: number;
1136
+ lastLogIndex?: number;
1137
+ withoutPermission?: boolean;
1138
+ appPk: string;
1139
+ interval: number;
1140
+ loading?: boolean;
1141
+ logTypes: {
1142
+ label: string;
1143
+ value: string;
1144
+ }[];
1145
+ setVisible?: Dispatch<SetStateAction<boolean>>;
1146
+ download: (value: any, isRealTime: boolean) => void;
1147
+ onClose?: () => void;
1148
+ onFetchLogs: (params: FetchLogsParams) => Promise<any>;
1149
+ onClearLogs: () => void;
1150
+ };
1151
+
1077
1152
  export declare enum ReportStatus {
1078
1153
  PENDING = "pending",
1079
1154
  FAILED = "failed",
@@ -1185,6 +1260,10 @@ export declare enum SortEnum {
1185
1260
  DESC = "desc"
1186
1261
  }
1187
1262
 
1263
+ export declare function startFetcher(fetcher: FetcherType, ms: number): FetcherReturnType;
1264
+
1265
+ export declare function startFormFetcher<T extends FieldValues>(fetcher: FetcherType, ms: number): FormFetcherReturnType<T>;
1266
+
1188
1267
  declare interface State {
1189
1268
  user: UserEntity_2 | null;
1190
1269
  status: Status;
@@ -1450,7 +1529,7 @@ export declare const useAuth: () => AuthContextType;
1450
1529
 
1451
1530
  export declare function useDisclosure(isOpenInit?: boolean): {
1452
1531
  isOpen: boolean;
1453
- setIsOpen: Dispatch_2<SetStateAction<boolean>>;
1532
+ setIsOpen: Dispatch<SetStateAction<boolean>>;
1454
1533
  onOpen: () => void;
1455
1534
  onClose: () => void;
1456
1535
  onToggle: () => void;
package/dist/index.d.ts CHANGED
@@ -6,9 +6,10 @@ import { CustomLocale } from 'flatpickr/dist/types/locale';
6
6
  import { DateLimit } from 'flatpickr/dist/types/options';
7
7
  import { DateOption } from 'flatpickr/dist/types/options';
8
8
  import dayjs from 'dayjs';
9
- import { Dispatch as Dispatch_2 } from 'react';
9
+ import { Dispatch } from 'react';
10
10
  import { FC } from 'react';
11
11
  import { FieldError } from 'react-hook-form';
12
+ import { FieldValues } from 'react-hook-form';
12
13
  import { format } from 'date-fns';
13
14
  import i18n from 'i18next';
14
15
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -27,6 +28,8 @@ import { TFunction } from 'i18next';
27
28
  import { TFunctionResult } from 'i18next';
28
29
  import { Tick } from 'chart.js';
29
30
  import { TooltipItem } from 'chart.js';
31
+ import { UseFormWatch } from 'react-hook-form';
32
+ import { WatchObserver } from 'react-hook-form';
30
33
 
31
34
  export declare const Accordion: ({ children, className, }: AccordionProps) => JSX.Element;
32
35
 
@@ -142,6 +145,13 @@ export declare enum AppearanceTag {
142
145
  WARNING = "warning"
143
146
  }
144
147
 
148
+ export declare interface ApplicationLogs {
149
+ id: string;
150
+ application_type: string;
151
+ log_timestamp: string;
152
+ message: string;
153
+ }
154
+
145
155
  export declare enum ApplicationTypeSlug {
146
156
  COMMERCE = "commerce",
147
157
  ZERO = "zero",
@@ -164,7 +174,7 @@ export declare enum AppTypeEnum {
164
174
 
165
175
  declare type AuthContextType = [state: State & {
166
176
  token?: string;
167
- }, dispatch: Dispatch];
177
+ }, dispatch: Dispatch_2];
168
178
 
169
179
  export declare const AuthProvider: (props: {
170
180
  children: React_2.ReactNode;
@@ -430,7 +440,7 @@ export declare interface DateRange {
430
440
 
431
441
  export { dayjs }
432
442
 
433
- declare type Dispatch = React_2.Dispatch<Actiontype>;
443
+ declare type Dispatch_2 = React_2.Dispatch<Actiontype>;
434
444
 
435
445
  export declare const Divider: ({ appearance, className, margin, }: DividerProps) => JSX.Element;
436
446
 
@@ -488,6 +498,14 @@ export declare type DropdownListProps = {
488
498
  isDisabled?: boolean;
489
499
  };
490
500
 
501
+ export declare const ErrorLogModal: FC<ErrorLogModalProps & NiceModalHocProps>;
502
+
503
+ declare type ErrorLogModalProps = {
504
+ onClose?: () => void;
505
+ errors: GetDeployErrorLogsEntitiy[];
506
+ id: string;
507
+ };
508
+
491
509
  export declare interface EventProps<T = HTMLElement> {
492
510
  onClick?: (e: React.MouseEvent<T>) => void;
493
511
  onFocus?: (e: React.FocusEvent<T>) => void;
@@ -509,6 +527,22 @@ declare type ExpandableType = {
509
527
  onExpand?: (expanded: boolean, record: any) => void;
510
528
  };
511
529
 
530
+ export declare type FetcherReturnType = {
531
+ fetch: (...params: any) => void;
532
+ stopInterval: () => void;
533
+ startInterval: (...params: any) => void;
534
+ };
535
+
536
+ export declare type FetcherType = (...params: any) => void;
537
+
538
+ export declare interface FetchLogsParams {
539
+ applications: string[];
540
+ scroll_mode?: 'older' | 'newer';
541
+ projectPk: string;
542
+ appPk: string;
543
+ withoutPermission?: boolean;
544
+ }
545
+
512
546
  export declare const FileUpload: React_2.ForwardRefExoticComponent<{
513
547
  type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
514
548
  id?: string | undefined;
@@ -635,6 +669,14 @@ export declare interface FormElementProps {
635
669
  value?: string | number;
636
670
  }
637
671
 
672
+ export declare type FormFetcherReturnType<T extends FieldValues> = {
673
+ fetch: (...params: any) => void;
674
+ stop: () => void;
675
+ startInterval: (page: number, limit: number, values: T) => void;
676
+ stopInterval: () => void;
677
+ startSubscription: (watch: UseFormWatch<T>, callback: WatchObserver<T>) => void;
678
+ };
679
+
638
680
  export declare enum FormFieldAppearance {
639
681
  LIGHT = "light",
640
682
  DARK = "dark",
@@ -666,6 +708,13 @@ export declare function getCurrentLanguage(): string;
666
708
 
667
709
  export declare function getDatepickerLocale(): "en" | CustomLocale;
668
710
 
711
+ export declare interface GetDeployErrorLogsEntitiy {
712
+ id: number;
713
+ created_date: string;
714
+ update_date: string;
715
+ log_data: string;
716
+ }
717
+
669
718
  export declare const Heading: React_2.FC<HeadingProps>;
670
719
 
671
720
  export declare type HeadingProps = {
@@ -745,6 +794,7 @@ export declare const Input: React_2.ForwardRefExoticComponent<{
745
794
  type?: "number" | "email" | "search" | "text" | "url" | "tel" | "password" | "hidden" | undefined;
746
795
  prefix?: ReactNode;
747
796
  suffix?: ReactNode;
797
+ prefixClickable?: boolean | undefined;
748
798
  suffixClickable?: boolean | undefined;
749
799
  id?: string | undefined;
750
800
  size?: Size | undefined;
@@ -766,6 +816,7 @@ export declare type InputProps = {
766
816
  type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
767
817
  prefix?: ReactNode;
768
818
  suffix?: ReactNode;
819
+ prefixClickable?: boolean;
769
820
  suffixClickable?: boolean;
770
821
  id?: string;
771
822
  size?: Size;
@@ -1074,6 +1125,30 @@ export declare type RadioProps = {
1074
1125
  setContext?: (v: OptionItem) => void;
1075
1126
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus'>;
1076
1127
 
1128
+ export declare const RealTimeLogModal: FC<RealTimeLogModalProps & NiceModalHocProps>;
1129
+
1130
+ export declare type RealTimeLogModalProps = {
1131
+ id: string;
1132
+ projectPk: string;
1133
+ logs: ApplicationLogs[];
1134
+ responseCount?: number;
1135
+ totalLogCount?: number;
1136
+ lastLogIndex?: number;
1137
+ withoutPermission?: boolean;
1138
+ appPk: string;
1139
+ interval: number;
1140
+ loading?: boolean;
1141
+ logTypes: {
1142
+ label: string;
1143
+ value: string;
1144
+ }[];
1145
+ setVisible?: Dispatch<SetStateAction<boolean>>;
1146
+ download: (value: any, isRealTime: boolean) => void;
1147
+ onClose?: () => void;
1148
+ onFetchLogs: (params: FetchLogsParams) => Promise<any>;
1149
+ onClearLogs: () => void;
1150
+ };
1151
+
1077
1152
  export declare enum ReportStatus {
1078
1153
  PENDING = "pending",
1079
1154
  FAILED = "failed",
@@ -1185,6 +1260,10 @@ export declare enum SortEnum {
1185
1260
  DESC = "desc"
1186
1261
  }
1187
1262
 
1263
+ export declare function startFetcher(fetcher: FetcherType, ms: number): FetcherReturnType;
1264
+
1265
+ export declare function startFormFetcher<T extends FieldValues>(fetcher: FetcherType, ms: number): FormFetcherReturnType<T>;
1266
+
1188
1267
  declare interface State {
1189
1268
  user: UserEntity_2 | null;
1190
1269
  status: Status;
@@ -1450,7 +1529,7 @@ export declare const useAuth: () => AuthContextType;
1450
1529
 
1451
1530
  export declare function useDisclosure(isOpenInit?: boolean): {
1452
1531
  isOpen: boolean;
1453
- setIsOpen: Dispatch_2<SetStateAction<boolean>>;
1532
+ setIsOpen: Dispatch<SetStateAction<boolean>>;
1454
1533
  onOpen: () => void;
1455
1534
  onClose: () => void;
1456
1535
  onToggle: () => void;