@orchestrator-ui/orchestrator-ui-components 0.1.0 → 0.1.2
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/.turbo/turbo-build.log +13 -0
- package/.turbo/turbo-lint.log +17 -0
- package/.turbo/turbo-test.log +19 -0
- package/.turbo/turbo-tsc.log +1 -0
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +473 -473
- package/dist/index.js +1159 -886
- package/eslintrc.js +1 -1
- package/jest.config.cjs +7 -0
- package/package.json +29 -18
- package/src/components/Badges/Badge/Badge.tsx +1 -1
- package/src/components/Badges/EngineStatusBadge/EngineStatusBadge.stories.tsx +1 -1
- package/src/components/Badges/EngineStatusBadge/EngineStatusBadge.tsx +1 -1
- package/src/components/Badges/EnvironmentBadge/EnvironmentBadge.stories.tsx +1 -1
- package/src/components/Badges/FailedTasksBadge/FailedTasksBadge.tsx +1 -1
- package/src/components/Badges/HeaderBadge/HeaderBadge.stories.tsx +1 -1
- package/src/components/Loading/Loading.tsx +1 -1
- package/src/components/OrchestratorPageTemplate/OrchestratorSidebar/OrchestratorSidebar.stories.tsx +1 -1
- package/src/components/SearchBar/SearchField.tsx +0 -1
- package/src/components/SettingsPage/FlushSettings.tsx +4 -1
- package/src/components/StartPage/ListStartPage.stories.tsx +1 -1
- package/src/components/Subscription/ProductBlock.tsx +1 -1
- package/src/components/Table/DataGridTable/DataGridTable.tsx +1 -1
- package/src/components/Table/Table.tsx +1 -2
- package/src/contexts/OrchestratorConfigContext.tsx +1 -1
- package/src/hooks/DataFetchHooks.ts +1 -1
- package/src/icons/StatusDotIcon.tsx +1 -1
- package/tsconfig.json +7 -6
- package/tsconfig.tsbuildinfo +1 -0
- package/react-shim.js +0 -3
- package/src/components/custom-button/custom-button.spec.tsx +0 -11
- package/src/components/custom-button/custom-button.tsx +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -11,25 +11,25 @@ import * as react_query from 'react-query';
|
|
|
11
11
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
12
12
|
import { Variables } from 'graphql-request/build/cjs/types';
|
|
13
13
|
|
|
14
|
-
type BadgeProps = EuiBadgeProps & {
|
|
15
|
-
textColor: TextColor | string;
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
};
|
|
14
|
+
type BadgeProps = EuiBadgeProps & {
|
|
15
|
+
textColor: TextColor | string;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
};
|
|
18
18
|
declare const Badge: FC<BadgeProps>;
|
|
19
19
|
|
|
20
|
-
type WFOStatusBadgeProps = {
|
|
21
|
-
status: string;
|
|
22
|
-
};
|
|
20
|
+
type WFOStatusBadgeProps = {
|
|
21
|
+
status: string;
|
|
22
|
+
};
|
|
23
23
|
declare const WFOStatusBadge: FC<WFOStatusBadgeProps>;
|
|
24
24
|
|
|
25
|
-
type WFOProductBlockBadgeProps = {
|
|
26
|
-
children: string;
|
|
27
|
-
};
|
|
25
|
+
type WFOProductBlockBadgeProps = {
|
|
26
|
+
children: string;
|
|
27
|
+
};
|
|
28
28
|
declare const WFOProductBlockBadge: FC<WFOProductBlockBadgeProps>;
|
|
29
29
|
|
|
30
|
-
type ProcessStatusBadgeProps = {
|
|
31
|
-
processStatus: string;
|
|
32
|
-
};
|
|
30
|
+
type ProcessStatusBadgeProps = {
|
|
31
|
+
processStatus: string;
|
|
32
|
+
};
|
|
33
33
|
declare const ProcessStatusBadge: FC<ProcessStatusBadgeProps>;
|
|
34
34
|
|
|
35
35
|
declare const FailedTasksBadge: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -38,189 +38,189 @@ declare const EnvironmentBadge: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
|
38
38
|
|
|
39
39
|
declare const EngineStatusBadge: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
40
40
|
|
|
41
|
-
type HeaderBadgeProps = EuiBadgeProps & {
|
|
42
|
-
textColor: TextColor | string;
|
|
43
|
-
children: ReactNode;
|
|
44
|
-
};
|
|
41
|
+
type HeaderBadgeProps = EuiBadgeProps & {
|
|
42
|
+
textColor: TextColor | string;
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
};
|
|
45
45
|
declare const HeaderBadge: FC<HeaderBadgeProps>;
|
|
46
46
|
|
|
47
47
|
declare const Breadcrumbs: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
48
48
|
|
|
49
|
-
interface OrchestratorPageHeaderProps {
|
|
50
|
-
navigationHeight: number;
|
|
51
|
-
getAppLogo: (navigationHeight: number) => ReactElement;
|
|
52
|
-
handleLogoutClick: () => void;
|
|
53
|
-
}
|
|
49
|
+
interface OrchestratorPageHeaderProps {
|
|
50
|
+
navigationHeight: number;
|
|
51
|
+
getAppLogo: (navigationHeight: number) => ReactElement;
|
|
52
|
+
handleLogoutClick: () => void;
|
|
53
|
+
}
|
|
54
54
|
declare const OrchestratorPageHeader: FC<OrchestratorPageHeaderProps>;
|
|
55
55
|
|
|
56
|
-
interface OrchestratorPageTemplateProps {
|
|
57
|
-
getAppLogo: (navigationHeight: number) => ReactElement;
|
|
58
|
-
children: ReactNode;
|
|
59
|
-
}
|
|
56
|
+
interface OrchestratorPageTemplateProps {
|
|
57
|
+
getAppLogo: (navigationHeight: number) => ReactElement;
|
|
58
|
+
children: ReactNode;
|
|
59
|
+
}
|
|
60
60
|
declare const OrchestratorPageTemplate: FC<OrchestratorPageTemplateProps>;
|
|
61
61
|
|
|
62
62
|
declare const OrchestratorSidebar: FC;
|
|
63
63
|
|
|
64
|
-
type SearchFieldProps = {
|
|
65
|
-
__filterQuery?: string;
|
|
66
|
-
__setFilterQuery?: (updatedFilterQuery: string) => void;
|
|
67
|
-
esQueryString?: string;
|
|
68
|
-
onUpdateEsQueryString?: (esQueryString: string) => void;
|
|
69
|
-
};
|
|
64
|
+
type SearchFieldProps = {
|
|
65
|
+
__filterQuery?: string;
|
|
66
|
+
__setFilterQuery?: (updatedFilterQuery: string) => void;
|
|
67
|
+
esQueryString?: string;
|
|
68
|
+
onUpdateEsQueryString?: (esQueryString: string) => void;
|
|
69
|
+
};
|
|
70
70
|
declare const SearchField: ({ __filterQuery, __setFilterQuery, esQueryString, onUpdateEsQueryString, }: SearchFieldProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
71
71
|
|
|
72
|
-
type SettingsModalProps = {
|
|
73
|
-
title: string;
|
|
74
|
-
onClose: () => void;
|
|
75
|
-
onResetToDefaults: () => void;
|
|
76
|
-
onUpdateTableConfig: () => void;
|
|
77
|
-
children: ReactNode;
|
|
78
|
-
};
|
|
72
|
+
type SettingsModalProps = {
|
|
73
|
+
title: string;
|
|
74
|
+
onClose: () => void;
|
|
75
|
+
onResetToDefaults: () => void;
|
|
76
|
+
onUpdateTableConfig: () => void;
|
|
77
|
+
children: ReactNode;
|
|
78
|
+
};
|
|
79
79
|
declare const SettingsModal: FC<SettingsModalProps>;
|
|
80
80
|
|
|
81
81
|
declare const Settings: FunctionComponent;
|
|
82
82
|
|
|
83
|
-
interface FrequentlyUsedProps {
|
|
84
|
-
values: string[];
|
|
85
|
-
}
|
|
83
|
+
interface FrequentlyUsedProps {
|
|
84
|
+
values: string[];
|
|
85
|
+
}
|
|
86
86
|
declare const FrequentlyUsed: FC<FrequentlyUsedProps>;
|
|
87
87
|
|
|
88
|
-
type Nullable<T> = T | null;
|
|
89
|
-
type GenericField = {
|
|
90
|
-
[key: string]: number | string | boolean;
|
|
91
|
-
};
|
|
92
|
-
type EngineStatusValue = 'RUNNING' | 'PAUSING' | 'PAUSED';
|
|
93
|
-
type CustomerBase = {
|
|
94
|
-
name: string;
|
|
95
|
-
abbreviation?: string;
|
|
96
|
-
} & GenericField;
|
|
97
|
-
type ProductBase = {
|
|
98
|
-
name: string;
|
|
99
|
-
description: string;
|
|
100
|
-
status: string;
|
|
101
|
-
tag: string;
|
|
102
|
-
type: string;
|
|
103
|
-
createdAt: string;
|
|
104
|
-
endDate?: string | null;
|
|
105
|
-
} & GenericField;
|
|
106
|
-
type ResourceTypeBase = {
|
|
107
|
-
name: string;
|
|
108
|
-
title: string;
|
|
109
|
-
subscriptionInstanceId: string;
|
|
110
|
-
ownerSubscriptionId: string;
|
|
111
|
-
label?: string;
|
|
112
|
-
} & GenericField;
|
|
113
|
-
type ProductBlockBase = {
|
|
114
|
-
id: number;
|
|
115
|
-
ownerSubscriptionId: string;
|
|
116
|
-
parent: Nullable<number>;
|
|
117
|
-
resourceTypes: ResourceTypeBase;
|
|
118
|
-
};
|
|
119
|
-
type FixedInputsBase = GenericField;
|
|
120
|
-
type ExternalServiceBase = {
|
|
121
|
-
externalServiceKey: string;
|
|
122
|
-
externalServiceId: string;
|
|
123
|
-
externalServiceData: any;
|
|
124
|
-
} & GenericField;
|
|
125
|
-
type SubscriptionDetailBase = {
|
|
126
|
-
subscriptionId: string;
|
|
127
|
-
description: string;
|
|
128
|
-
customerId?: string | null;
|
|
129
|
-
insync: boolean;
|
|
130
|
-
status: string;
|
|
131
|
-
startDate?: string | null;
|
|
132
|
-
endDate?: string | null;
|
|
133
|
-
note?: string;
|
|
134
|
-
product: ProductBase;
|
|
135
|
-
fixedInputs: FixedInputsBase;
|
|
136
|
-
customer?: CustomerBase;
|
|
137
|
-
productBlocks: ProductBlockBase[];
|
|
138
|
-
externalServices?: ExternalServiceBase[];
|
|
139
|
-
};
|
|
140
|
-
interface TreeBlock extends ProductBlockBase {
|
|
141
|
-
icon: string;
|
|
142
|
-
label: string;
|
|
143
|
-
callback: () => void;
|
|
144
|
-
children: TreeBlock[];
|
|
145
|
-
}
|
|
146
|
-
interface ItemsList {
|
|
147
|
-
type: string;
|
|
148
|
-
title: string;
|
|
149
|
-
items: Process$1[];
|
|
150
|
-
buttonName: string;
|
|
151
|
-
}
|
|
152
|
-
interface TotalStat {
|
|
153
|
-
icon: string;
|
|
154
|
-
name: string;
|
|
155
|
-
value: number;
|
|
156
|
-
color: keyof _EuiThemeColorsMode;
|
|
157
|
-
}
|
|
158
|
-
interface Process$1 {
|
|
159
|
-
pid: string;
|
|
160
|
-
workflow: string;
|
|
161
|
-
assignee: string;
|
|
162
|
-
last_status: string;
|
|
163
|
-
failed_reason: Nullable<string>;
|
|
164
|
-
traceback: string;
|
|
165
|
-
step: string;
|
|
166
|
-
created_by: string;
|
|
167
|
-
started_at: number;
|
|
168
|
-
last_modified_at: number;
|
|
169
|
-
is_task: boolean;
|
|
170
|
-
}
|
|
171
|
-
interface Product {
|
|
172
|
-
name: string;
|
|
173
|
-
description: string;
|
|
174
|
-
tag: string;
|
|
175
|
-
productType: string;
|
|
176
|
-
status: string;
|
|
177
|
-
productBlocks: ProductBlock$1[];
|
|
178
|
-
createdAt: Date | null;
|
|
179
|
-
}
|
|
180
|
-
interface ProductBlock$1 {
|
|
181
|
-
name: string;
|
|
182
|
-
}
|
|
183
|
-
type Field<Type> = keyof Type;
|
|
184
|
-
declare enum SortOrder {
|
|
185
|
-
ASC = "ASC",
|
|
186
|
-
DESC = "DESC"
|
|
187
|
-
}
|
|
188
|
-
type GraphQLSort<Type> = {
|
|
189
|
-
field: keyof Type;
|
|
190
|
-
order: SortOrder;
|
|
191
|
-
};
|
|
192
|
-
type GraphqlFilter<Type> = {
|
|
193
|
-
field: keyof Type;
|
|
194
|
-
value: string;
|
|
195
|
-
};
|
|
196
|
-
type GraphqlQueryVariables<Type> = {
|
|
197
|
-
first: number;
|
|
198
|
-
after: number;
|
|
199
|
-
sortBy?: GraphQLSort<Type>;
|
|
200
|
-
filterBy?: GraphqlFilter<Type>[];
|
|
201
|
-
};
|
|
202
|
-
interface CacheOption {
|
|
203
|
-
value: string;
|
|
204
|
-
label: string;
|
|
88
|
+
type Nullable<T> = T | null;
|
|
89
|
+
type GenericField = {
|
|
90
|
+
[key: string]: number | string | boolean;
|
|
91
|
+
};
|
|
92
|
+
type EngineStatusValue = 'RUNNING' | 'PAUSING' | 'PAUSED';
|
|
93
|
+
type CustomerBase = {
|
|
94
|
+
name: string;
|
|
95
|
+
abbreviation?: string;
|
|
96
|
+
} & GenericField;
|
|
97
|
+
type ProductBase = {
|
|
98
|
+
name: string;
|
|
99
|
+
description: string;
|
|
100
|
+
status: string;
|
|
101
|
+
tag: string;
|
|
102
|
+
type: string;
|
|
103
|
+
createdAt: string;
|
|
104
|
+
endDate?: string | null;
|
|
105
|
+
} & GenericField;
|
|
106
|
+
type ResourceTypeBase = {
|
|
107
|
+
name: string;
|
|
108
|
+
title: string;
|
|
109
|
+
subscriptionInstanceId: string;
|
|
110
|
+
ownerSubscriptionId: string;
|
|
111
|
+
label?: string;
|
|
112
|
+
} & GenericField;
|
|
113
|
+
type ProductBlockBase = {
|
|
114
|
+
id: number;
|
|
115
|
+
ownerSubscriptionId: string;
|
|
116
|
+
parent: Nullable<number>;
|
|
117
|
+
resourceTypes: ResourceTypeBase;
|
|
118
|
+
};
|
|
119
|
+
type FixedInputsBase = GenericField;
|
|
120
|
+
type ExternalServiceBase = {
|
|
121
|
+
externalServiceKey: string;
|
|
122
|
+
externalServiceId: string;
|
|
123
|
+
externalServiceData: any;
|
|
124
|
+
} & GenericField;
|
|
125
|
+
type SubscriptionDetailBase = {
|
|
126
|
+
subscriptionId: string;
|
|
127
|
+
description: string;
|
|
128
|
+
customerId?: string | null;
|
|
129
|
+
insync: boolean;
|
|
130
|
+
status: string;
|
|
131
|
+
startDate?: string | null;
|
|
132
|
+
endDate?: string | null;
|
|
133
|
+
note?: string;
|
|
134
|
+
product: ProductBase;
|
|
135
|
+
fixedInputs: FixedInputsBase;
|
|
136
|
+
customer?: CustomerBase;
|
|
137
|
+
productBlocks: ProductBlockBase[];
|
|
138
|
+
externalServices?: ExternalServiceBase[];
|
|
139
|
+
};
|
|
140
|
+
interface TreeBlock extends ProductBlockBase {
|
|
141
|
+
icon: string;
|
|
142
|
+
label: string;
|
|
143
|
+
callback: () => void;
|
|
144
|
+
children: TreeBlock[];
|
|
145
|
+
}
|
|
146
|
+
interface ItemsList {
|
|
147
|
+
type: string;
|
|
148
|
+
title: string;
|
|
149
|
+
items: Process$1[];
|
|
150
|
+
buttonName: string;
|
|
151
|
+
}
|
|
152
|
+
interface TotalStat {
|
|
153
|
+
icon: string;
|
|
154
|
+
name: string;
|
|
155
|
+
value: number;
|
|
156
|
+
color: keyof _EuiThemeColorsMode;
|
|
157
|
+
}
|
|
158
|
+
interface Process$1 {
|
|
159
|
+
pid: string;
|
|
160
|
+
workflow: string;
|
|
161
|
+
assignee: string;
|
|
162
|
+
last_status: string;
|
|
163
|
+
failed_reason: Nullable<string>;
|
|
164
|
+
traceback: string;
|
|
165
|
+
step: string;
|
|
166
|
+
created_by: string;
|
|
167
|
+
started_at: number;
|
|
168
|
+
last_modified_at: number;
|
|
169
|
+
is_task: boolean;
|
|
170
|
+
}
|
|
171
|
+
interface Product {
|
|
172
|
+
name: string;
|
|
173
|
+
description: string;
|
|
174
|
+
tag: string;
|
|
175
|
+
productType: string;
|
|
176
|
+
status: string;
|
|
177
|
+
productBlocks: ProductBlock$1[];
|
|
178
|
+
createdAt: Date | null;
|
|
179
|
+
}
|
|
180
|
+
interface ProductBlock$1 {
|
|
181
|
+
name: string;
|
|
182
|
+
}
|
|
183
|
+
type Field<Type> = keyof Type;
|
|
184
|
+
declare enum SortOrder {
|
|
185
|
+
ASC = "ASC",
|
|
186
|
+
DESC = "DESC"
|
|
187
|
+
}
|
|
188
|
+
type GraphQLSort<Type> = {
|
|
189
|
+
field: keyof Type;
|
|
190
|
+
order: SortOrder;
|
|
191
|
+
};
|
|
192
|
+
type GraphqlFilter<Type> = {
|
|
193
|
+
field: keyof Type;
|
|
194
|
+
value: string;
|
|
195
|
+
};
|
|
196
|
+
type GraphqlQueryVariables<Type> = {
|
|
197
|
+
first: number;
|
|
198
|
+
after: number;
|
|
199
|
+
sortBy?: GraphQLSort<Type>;
|
|
200
|
+
filterBy?: GraphqlFilter<Type>[];
|
|
201
|
+
};
|
|
202
|
+
interface CacheOption {
|
|
203
|
+
value: string;
|
|
204
|
+
label: string;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
interface Subscription {
|
|
208
|
-
name: string;
|
|
209
|
-
subscription_id: string;
|
|
210
|
-
description: string;
|
|
211
|
-
product: ProductBase;
|
|
212
|
-
product_id: string;
|
|
213
|
-
status: string;
|
|
214
|
-
insync: boolean;
|
|
215
|
-
customer_id: string;
|
|
216
|
-
start_date: number;
|
|
217
|
-
end_date: number;
|
|
218
|
-
note: string;
|
|
219
|
-
}
|
|
220
|
-
interface ListItemStartPageProps {
|
|
221
|
-
item: Subscription | Process$1;
|
|
222
|
-
type: string;
|
|
223
|
-
}
|
|
207
|
+
interface Subscription {
|
|
208
|
+
name: string;
|
|
209
|
+
subscription_id: string;
|
|
210
|
+
description: string;
|
|
211
|
+
product: ProductBase;
|
|
212
|
+
product_id: string;
|
|
213
|
+
status: string;
|
|
214
|
+
insync: boolean;
|
|
215
|
+
customer_id: string;
|
|
216
|
+
start_date: number;
|
|
217
|
+
end_date: number;
|
|
218
|
+
note: string;
|
|
219
|
+
}
|
|
220
|
+
interface ListItemStartPageProps {
|
|
221
|
+
item: Subscription | Process$1;
|
|
222
|
+
type: string;
|
|
223
|
+
}
|
|
224
224
|
declare const ListItemStartPage: FC<ListItemStartPageProps>;
|
|
225
225
|
|
|
226
226
|
declare const MultiListSection: FC;
|
|
@@ -231,324 +231,324 @@ declare const StatCards: FC;
|
|
|
231
231
|
|
|
232
232
|
declare const FixedInputBlock: (title: string, data: object) => _emotion_react_jsx_runtime.JSX.Element | undefined;
|
|
233
233
|
|
|
234
|
-
type ProcessesTimelineProps = {
|
|
235
|
-
subscriptionId: string;
|
|
236
|
-
};
|
|
234
|
+
type ProcessesTimelineProps = {
|
|
235
|
+
subscriptionId: string;
|
|
236
|
+
};
|
|
237
237
|
declare const ProcessesTimeline: FC<ProcessesTimelineProps>;
|
|
238
238
|
|
|
239
239
|
declare const ProductBlock: (resourceTypes: ResourceTypeBase, id: number) => _emotion_react_jsx_runtime.JSX.Element | undefined;
|
|
240
240
|
|
|
241
|
-
type SubscriptionActionsProps = {
|
|
242
|
-
subscriptionId: string;
|
|
243
|
-
};
|
|
241
|
+
type SubscriptionActionsProps = {
|
|
242
|
+
subscriptionId: string;
|
|
243
|
+
};
|
|
244
244
|
declare const SubscriptionActions$1: FC<SubscriptionActionsProps>;
|
|
245
245
|
|
|
246
|
-
declare const RenderField: (field: string, data: any) => _emotion_react_jsx_runtime.JSX.Element;
|
|
246
|
+
declare const RenderField: (field: string, data: any) => _emotion_react_jsx_runtime.JSX.Element;
|
|
247
247
|
declare const SubscriptionBlock: (title: string, data: object) => _emotion_react_jsx_runtime.JSX.Element | undefined;
|
|
248
248
|
|
|
249
249
|
declare const SubscriptionDetailTree: () => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
250
250
|
|
|
251
251
|
declare const SubscriptionGeneral: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
252
252
|
|
|
253
|
-
declare enum SubscriptionsTabType {
|
|
254
|
-
ACTIVE = "ACTIVE",
|
|
255
|
-
TERMINATED = "TERMINATED",
|
|
256
|
-
TRANSIENT = "TRANSIENT",
|
|
257
|
-
ALL = "ALL"
|
|
258
|
-
}
|
|
259
|
-
type FilterQuery = {
|
|
260
|
-
field: string;
|
|
261
|
-
value: string;
|
|
262
|
-
};
|
|
263
|
-
type SubscriptionsTab = {
|
|
264
|
-
id: SubscriptionsTabType;
|
|
265
|
-
name: string;
|
|
266
|
-
alwaysOnFilters?: FilterQuery[];
|
|
267
|
-
};
|
|
268
|
-
declare const defaultSubscriptionsTabs: SubscriptionsTab[];
|
|
269
|
-
type SubscriptionsTabsProps = {
|
|
270
|
-
tabs: SubscriptionsTab[];
|
|
271
|
-
selectedSubscriptionsTab: SubscriptionsTabType;
|
|
272
|
-
onChangeSubscriptionsTab: (updatedSubscriptionsTab: SubscriptionsTabType) => void;
|
|
273
|
-
};
|
|
253
|
+
declare enum SubscriptionsTabType {
|
|
254
|
+
ACTIVE = "ACTIVE",
|
|
255
|
+
TERMINATED = "TERMINATED",
|
|
256
|
+
TRANSIENT = "TRANSIENT",
|
|
257
|
+
ALL = "ALL"
|
|
258
|
+
}
|
|
259
|
+
type FilterQuery = {
|
|
260
|
+
field: string;
|
|
261
|
+
value: string;
|
|
262
|
+
};
|
|
263
|
+
type SubscriptionsTab = {
|
|
264
|
+
id: SubscriptionsTabType;
|
|
265
|
+
name: string;
|
|
266
|
+
alwaysOnFilters?: FilterQuery[];
|
|
267
|
+
};
|
|
268
|
+
declare const defaultSubscriptionsTabs: SubscriptionsTab[];
|
|
269
|
+
type SubscriptionsTabsProps = {
|
|
270
|
+
tabs: SubscriptionsTab[];
|
|
271
|
+
selectedSubscriptionsTab: SubscriptionsTabType;
|
|
272
|
+
onChangeSubscriptionsTab: (updatedSubscriptionsTab: SubscriptionsTabType) => void;
|
|
273
|
+
};
|
|
274
274
|
declare const SubscriptionsTabs: FC<SubscriptionsTabsProps>;
|
|
275
275
|
|
|
276
276
|
declare const getSubscriptionsTabTypeFromString: (tabId?: string) => SubscriptionsTabType | undefined;
|
|
277
277
|
|
|
278
|
-
type BasicTableColumn<T> = Omit<EuiBasicTableColumn<T>, 'render'>;
|
|
279
|
-
type TableDataColumnConfig<T, Property> = BasicTableColumn<T> & {
|
|
280
|
-
field: Property;
|
|
281
|
-
name: string;
|
|
282
|
-
};
|
|
283
|
-
type TableColumnsWithExtraNonDataFields<T> = TableColumns<T> & {
|
|
284
|
-
[key: string]: EuiBasicTableColumn<T> & {
|
|
285
|
-
field: string;
|
|
286
|
-
name?: string;
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
type TableColumns<T> = {
|
|
290
|
-
[Property in keyof T]: TableDataColumnConfig<T, Property> & {
|
|
291
|
-
render?: (cellValue: T[Property], row: T) => ReactNode;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
type TableControlColumnConfig<T> = {
|
|
295
|
-
[key: string]: BasicTableColumn<T> & {
|
|
296
|
-
field: string;
|
|
297
|
-
name?: string;
|
|
298
|
-
render: (row: T) => ReactNode;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
type TableColumnsWithControlColumns<T> = TableColumns<T> & TableControlColumnConfig<T>;
|
|
302
|
-
type TableColumnKeys<T> = Array<keyof T>;
|
|
303
|
-
type DataSorting<T> = {
|
|
304
|
-
field: keyof T;
|
|
305
|
-
sortOrder: SortOrder;
|
|
306
|
-
};
|
|
278
|
+
type BasicTableColumn<T> = Omit<EuiBasicTableColumn<T>, 'render'>;
|
|
279
|
+
type TableDataColumnConfig<T, Property> = BasicTableColumn<T> & {
|
|
280
|
+
field: Property;
|
|
281
|
+
name: string;
|
|
282
|
+
};
|
|
283
|
+
type TableColumnsWithExtraNonDataFields<T> = TableColumns<T> & {
|
|
284
|
+
[key: string]: EuiBasicTableColumn<T> & {
|
|
285
|
+
field: string;
|
|
286
|
+
name?: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
type TableColumns<T> = {
|
|
290
|
+
[Property in keyof T]: TableDataColumnConfig<T, Property> & {
|
|
291
|
+
render?: (cellValue: T[Property], row: T) => ReactNode;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
type TableControlColumnConfig<T> = {
|
|
295
|
+
[key: string]: BasicTableColumn<T> & {
|
|
296
|
+
field: string;
|
|
297
|
+
name?: string;
|
|
298
|
+
render: (row: T) => ReactNode;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
type TableColumnsWithControlColumns<T> = TableColumns<T> & TableControlColumnConfig<T>;
|
|
302
|
+
type TableColumnKeys<T> = Array<keyof T>;
|
|
303
|
+
type DataSorting<T> = {
|
|
304
|
+
field: keyof T;
|
|
305
|
+
sortOrder: SortOrder;
|
|
306
|
+
};
|
|
307
307
|
declare const getSortDirectionFromString: (sortOrder?: string) => SortOrder | undefined;
|
|
308
308
|
|
|
309
|
-
type DataGridTableColumns<T> = {
|
|
310
|
-
[Property in keyof T]: Omit<EuiDataGridColumn, 'id'> & {
|
|
311
|
-
renderCell?: (cellValue: T[Property], row: T) => ReactNode;
|
|
312
|
-
isHiddenByDefault?: boolean;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
type ControlColumn<T> = Omit<EuiDataGridControlColumn, 'rowCellRender' | 'headerCellRender' | 'footerCellRender' | 'footerCellProps' | 'headerCellProps'> & {
|
|
316
|
-
rowCellRender: (row: T) => ReactNode;
|
|
317
|
-
};
|
|
318
|
-
declare const getInitialColumnOrder: <T>(columns: DataGridTableColumns<T>, initialColumnOrder: TableColumnKeys<T>) => EuiDataGridColumn[];
|
|
309
|
+
type DataGridTableColumns<T> = {
|
|
310
|
+
[Property in keyof T]: Omit<EuiDataGridColumn, 'id'> & {
|
|
311
|
+
renderCell?: (cellValue: T[Property], row: T) => ReactNode;
|
|
312
|
+
isHiddenByDefault?: boolean;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
type ControlColumn<T> = Omit<EuiDataGridControlColumn, 'rowCellRender' | 'headerCellRender' | 'footerCellRender' | 'footerCellProps' | 'headerCellProps'> & {
|
|
316
|
+
rowCellRender: (row: T) => ReactNode;
|
|
317
|
+
};
|
|
318
|
+
declare const getInitialColumnOrder: <T>(columns: DataGridTableColumns<T>, initialColumnOrder: TableColumnKeys<T>) => EuiDataGridColumn[];
|
|
319
319
|
declare const mapColumnSortToEuiDataGridSorting: <T>(columnSort?: DataSorting<T> | undefined, updateColumnSort?: ((columnSort: DataSorting<T>) => void) | undefined) => EuiDataGridSorting;
|
|
320
320
|
|
|
321
|
-
type Pagination = EuiDataGridPaginationProps & {
|
|
322
|
-
totalRecords: number;
|
|
323
|
-
};
|
|
324
|
-
type DataGridTableProps<T> = {
|
|
325
|
-
data: T[];
|
|
326
|
-
pagination: Pagination;
|
|
327
|
-
columns: DataGridTableColumns<T>;
|
|
328
|
-
leadingControlColumns?: ControlColumn<T>[];
|
|
329
|
-
trailingControlColumns?: ControlColumn<T>[];
|
|
330
|
-
initialColumnOrder: TableColumnKeys<T>;
|
|
331
|
-
dataSorting?: DataSorting<T>;
|
|
332
|
-
handleRowClick?: (row: T) => void;
|
|
333
|
-
updateDataSorting?: (updatedDataSorting: DataSorting<T>) => void;
|
|
334
|
-
};
|
|
321
|
+
type Pagination = EuiDataGridPaginationProps & {
|
|
322
|
+
totalRecords: number;
|
|
323
|
+
};
|
|
324
|
+
type DataGridTableProps<T> = {
|
|
325
|
+
data: T[];
|
|
326
|
+
pagination: Pagination;
|
|
327
|
+
columns: DataGridTableColumns<T>;
|
|
328
|
+
leadingControlColumns?: ControlColumn<T>[];
|
|
329
|
+
trailingControlColumns?: ControlColumn<T>[];
|
|
330
|
+
initialColumnOrder: TableColumnKeys<T>;
|
|
331
|
+
dataSorting?: DataSorting<T>;
|
|
332
|
+
handleRowClick?: (row: T) => void;
|
|
333
|
+
updateDataSorting?: (updatedDataSorting: DataSorting<T>) => void;
|
|
334
|
+
};
|
|
335
335
|
declare const DataGridTable: <T>({ data, pagination, columns, leadingControlColumns, trailingControlColumns, initialColumnOrder, dataSorting, handleRowClick, updateDataSorting, }: DataGridTableProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
336
336
|
|
|
337
|
-
type ColumnConfig<T> = {
|
|
338
|
-
field: keyof T;
|
|
339
|
-
name: string;
|
|
340
|
-
isVisible: boolean;
|
|
341
|
-
};
|
|
342
|
-
type TableConfig<T> = {
|
|
343
|
-
columns: ColumnConfig<T>[];
|
|
344
|
-
selectedPageSize: number;
|
|
345
|
-
};
|
|
346
|
-
type TableSettingsModalProps<T> = {
|
|
347
|
-
tableConfig: TableConfig<T>;
|
|
348
|
-
pageSizeOptions: number[];
|
|
349
|
-
onClose: () => void;
|
|
350
|
-
onUpdateTableConfig: (updatedTableConfig: TableConfig<T>) => void;
|
|
351
|
-
onResetToDefaults: () => void;
|
|
352
|
-
};
|
|
337
|
+
type ColumnConfig<T> = {
|
|
338
|
+
field: keyof T;
|
|
339
|
+
name: string;
|
|
340
|
+
isVisible: boolean;
|
|
341
|
+
};
|
|
342
|
+
type TableConfig<T> = {
|
|
343
|
+
columns: ColumnConfig<T>[];
|
|
344
|
+
selectedPageSize: number;
|
|
345
|
+
};
|
|
346
|
+
type TableSettingsModalProps<T> = {
|
|
347
|
+
tableConfig: TableConfig<T>;
|
|
348
|
+
pageSizeOptions: number[];
|
|
349
|
+
onClose: () => void;
|
|
350
|
+
onUpdateTableConfig: (updatedTableConfig: TableConfig<T>) => void;
|
|
351
|
+
onResetToDefaults: () => void;
|
|
352
|
+
};
|
|
353
353
|
declare const TableSettingsModal: <T>({ tableConfig, pageSizeOptions, onUpdateTableConfig, onResetToDefaults, onClose, }: TableSettingsModalProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
354
354
|
|
|
355
|
-
declare const DEFAULT_PAGE_SIZES: number[];
|
|
355
|
+
declare const DEFAULT_PAGE_SIZES: number[];
|
|
356
356
|
declare const DEFAULT_PAGE_SIZE = 10;
|
|
357
357
|
|
|
358
|
-
type LocalStorageTableConfig<T> = {
|
|
359
|
-
hiddenColumns: TableColumnKeys<T>;
|
|
360
|
-
selectedPageSize: number;
|
|
361
|
-
};
|
|
362
|
-
declare const isValidLocalStorageTableConfig: <T>(object: LocalStorageTableConfig<T>) => object is LocalStorageTableConfig<T>;
|
|
363
|
-
declare const getTableConfigFromLocalStorage: <T>(key: string) => LocalStorageTableConfig<T> | undefined;
|
|
364
|
-
declare const setTableConfigToLocalStorage: <T>(key: string, updatedTableConfig: LocalStorageTableConfig<T>) => void;
|
|
358
|
+
type LocalStorageTableConfig<T> = {
|
|
359
|
+
hiddenColumns: TableColumnKeys<T>;
|
|
360
|
+
selectedPageSize: number;
|
|
361
|
+
};
|
|
362
|
+
declare const isValidLocalStorageTableConfig: <T>(object: LocalStorageTableConfig<T>) => object is LocalStorageTableConfig<T>;
|
|
363
|
+
declare const getTableConfigFromLocalStorage: <T>(key: string) => LocalStorageTableConfig<T> | undefined;
|
|
364
|
+
declare const setTableConfigToLocalStorage: <T>(key: string, updatedTableConfig: LocalStorageTableConfig<T>) => void;
|
|
365
365
|
declare const clearTableConfigFromLocalStorage: (key: string) => void;
|
|
366
366
|
|
|
367
367
|
declare const useQueryWithGraphql: <U, V extends Variables>(query: TypedDocumentNode<U, V>, queryVars: V, queryKey: string, useCoreConnection?: boolean) => react_query.UseQueryResult<U, unknown>;
|
|
368
368
|
|
|
369
|
-
type GlobalStatus = 'RUNNING' | 'PAUSED' | 'PAUSING';
|
|
370
|
-
interface EngineStatus {
|
|
371
|
-
global_lock: boolean;
|
|
372
|
-
running_processes: number;
|
|
373
|
-
global_status: GlobalStatus;
|
|
374
|
-
}
|
|
375
|
-
interface EngineStatusPayload {
|
|
376
|
-
global_lock: boolean;
|
|
377
|
-
}
|
|
378
|
-
declare const useEngineStatusQuery: () => react_query.UseQueryResult<EngineStatus, unknown>;
|
|
369
|
+
type GlobalStatus = 'RUNNING' | 'PAUSED' | 'PAUSING';
|
|
370
|
+
interface EngineStatus {
|
|
371
|
+
global_lock: boolean;
|
|
372
|
+
running_processes: number;
|
|
373
|
+
global_status: GlobalStatus;
|
|
374
|
+
}
|
|
375
|
+
interface EngineStatusPayload {
|
|
376
|
+
global_lock: boolean;
|
|
377
|
+
}
|
|
378
|
+
declare const useEngineStatusQuery: () => react_query.UseQueryResult<EngineStatus, unknown>;
|
|
379
379
|
declare const useEngineStatusMutation: () => react_query.UseMutationResult<EngineStatus, unknown, EngineStatusPayload, void>;
|
|
380
380
|
|
|
381
|
-
declare enum Environment {
|
|
382
|
-
DEVELOPMENT = "Development",
|
|
383
|
-
PRODUCTION = "Production"
|
|
384
|
-
}
|
|
385
|
-
type OrchestratorConfig = {
|
|
386
|
-
environmentName: Environment | string;
|
|
387
|
-
orchestratorApiBaseUrl: string;
|
|
388
|
-
engineStatusEndpoint: string;
|
|
389
|
-
graphqlEndpointPythia: string;
|
|
390
|
-
graphqlEndpointCore: string;
|
|
391
|
-
processStatusCountsEndpoint: string;
|
|
392
|
-
subscriptionActionsEndpoint: string;
|
|
393
|
-
subscriptionProcessesEndpoint: string;
|
|
394
|
-
};
|
|
395
|
-
declare const useOrchestratorConfig: (initialOrchestratorConfig: OrchestratorConfig) => {
|
|
396
|
-
orchestratorConfig: OrchestratorConfig;
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
declare const useOrchestratorTheme: () => {
|
|
400
|
-
theme: _elastic_eui.EuiThemeComputed<{}>;
|
|
401
|
-
multiplyByBaseUnit: (multiplier: number) => number;
|
|
402
|
-
toSecondaryColor: (color: string) => string;
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
declare enum ProcessStatus {
|
|
406
|
-
CREATED = "created",
|
|
407
|
-
RUNNING = "running",
|
|
408
|
-
SUSPENDED = "suspended",
|
|
409
|
-
WAITING = "waiting",
|
|
410
|
-
ABORTED = "aborted",
|
|
411
|
-
FAILED = "failed",
|
|
412
|
-
API_UNAVAILABLE = "api_unavailable",
|
|
413
|
-
INCONSISTENT_DATA = "inconsistent_data",
|
|
414
|
-
COMPLETED = "completed"
|
|
415
|
-
}
|
|
416
|
-
type ProcessStatusCounts = {
|
|
417
|
-
process_counts: Record<ProcessStatus, number>;
|
|
418
|
-
task_counts: Record<ProcessStatus, number>;
|
|
419
|
-
};
|
|
381
|
+
declare enum Environment {
|
|
382
|
+
DEVELOPMENT = "Development",
|
|
383
|
+
PRODUCTION = "Production"
|
|
384
|
+
}
|
|
385
|
+
type OrchestratorConfig = {
|
|
386
|
+
environmentName: Environment | string;
|
|
387
|
+
orchestratorApiBaseUrl: string;
|
|
388
|
+
engineStatusEndpoint: string;
|
|
389
|
+
graphqlEndpointPythia: string;
|
|
390
|
+
graphqlEndpointCore: string;
|
|
391
|
+
processStatusCountsEndpoint: string;
|
|
392
|
+
subscriptionActionsEndpoint: string;
|
|
393
|
+
subscriptionProcessesEndpoint: string;
|
|
394
|
+
};
|
|
395
|
+
declare const useOrchestratorConfig: (initialOrchestratorConfig: OrchestratorConfig) => {
|
|
396
|
+
orchestratorConfig: OrchestratorConfig;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
declare const useOrchestratorTheme: () => {
|
|
400
|
+
theme: _elastic_eui.EuiThemeComputed<{}>;
|
|
401
|
+
multiplyByBaseUnit: (multiplier: number) => number;
|
|
402
|
+
toSecondaryColor: (color: string) => string;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare enum ProcessStatus {
|
|
406
|
+
CREATED = "created",
|
|
407
|
+
RUNNING = "running",
|
|
408
|
+
SUSPENDED = "suspended",
|
|
409
|
+
WAITING = "waiting",
|
|
410
|
+
ABORTED = "aborted",
|
|
411
|
+
FAILED = "failed",
|
|
412
|
+
API_UNAVAILABLE = "api_unavailable",
|
|
413
|
+
INCONSISTENT_DATA = "inconsistent_data",
|
|
414
|
+
COMPLETED = "completed"
|
|
415
|
+
}
|
|
416
|
+
type ProcessStatusCounts = {
|
|
417
|
+
process_counts: Record<ProcessStatus, number>;
|
|
418
|
+
task_counts: Record<ProcessStatus, number>;
|
|
419
|
+
};
|
|
420
420
|
declare const useProcessStatusCountsQuery: () => react_query.UseQueryResult<ProcessStatusCounts, unknown>;
|
|
421
421
|
|
|
422
|
-
type CacheNames = {
|
|
423
|
-
[key: string]: string;
|
|
424
|
-
};
|
|
425
|
-
declare const useFavouriteSubscriptions: () => {
|
|
426
|
-
items: any;
|
|
427
|
-
type: string;
|
|
428
|
-
title: string;
|
|
429
|
-
buttonName: string;
|
|
430
|
-
};
|
|
431
|
-
declare const useProcessesAttention: () => {
|
|
432
|
-
items: any;
|
|
433
|
-
type: string;
|
|
434
|
-
title: string;
|
|
435
|
-
buttonName: string;
|
|
436
|
-
};
|
|
437
|
-
declare const useRecentProcesses: () => {
|
|
438
|
-
items: any;
|
|
439
|
-
type: string;
|
|
440
|
-
title: string;
|
|
441
|
-
buttonName: string;
|
|
442
|
-
};
|
|
422
|
+
type CacheNames = {
|
|
423
|
+
[key: string]: string;
|
|
424
|
+
};
|
|
425
|
+
declare const useFavouriteSubscriptions: () => {
|
|
426
|
+
items: any;
|
|
427
|
+
type: string;
|
|
428
|
+
title: string;
|
|
429
|
+
buttonName: string;
|
|
430
|
+
};
|
|
431
|
+
declare const useProcessesAttention: () => {
|
|
432
|
+
items: any;
|
|
433
|
+
type: string;
|
|
434
|
+
title: string;
|
|
435
|
+
buttonName: string;
|
|
436
|
+
};
|
|
437
|
+
declare const useRecentProcesses: () => {
|
|
438
|
+
items: any;
|
|
439
|
+
type: string;
|
|
440
|
+
title: string;
|
|
441
|
+
buttonName: string;
|
|
442
|
+
};
|
|
443
443
|
declare const useCacheNames: () => react_query.UseQueryResult<CacheNames, unknown>;
|
|
444
444
|
|
|
445
|
-
interface SubscriptionAction {
|
|
446
|
-
name: string;
|
|
447
|
-
description: string;
|
|
448
|
-
reason?: string;
|
|
449
|
-
usable_when?: string[];
|
|
450
|
-
locked_relations?: string[];
|
|
451
|
-
unterminated_parents?: string[];
|
|
452
|
-
unterminated_in_use_by_subscriptions?: string[];
|
|
453
|
-
status?: string;
|
|
454
|
-
action?: string;
|
|
455
|
-
}
|
|
456
|
-
interface SubscriptionActions {
|
|
457
|
-
reason?: string;
|
|
458
|
-
locked_relations?: string[];
|
|
459
|
-
create: SubscriptionAction[];
|
|
460
|
-
modify: SubscriptionAction[];
|
|
461
|
-
terminate: SubscriptionAction[];
|
|
462
|
-
system: SubscriptionAction[];
|
|
463
|
-
}
|
|
445
|
+
interface SubscriptionAction {
|
|
446
|
+
name: string;
|
|
447
|
+
description: string;
|
|
448
|
+
reason?: string;
|
|
449
|
+
usable_when?: string[];
|
|
450
|
+
locked_relations?: string[];
|
|
451
|
+
unterminated_parents?: string[];
|
|
452
|
+
unterminated_in_use_by_subscriptions?: string[];
|
|
453
|
+
status?: string;
|
|
454
|
+
action?: string;
|
|
455
|
+
}
|
|
456
|
+
interface SubscriptionActions {
|
|
457
|
+
reason?: string;
|
|
458
|
+
locked_relations?: string[];
|
|
459
|
+
create: SubscriptionAction[];
|
|
460
|
+
modify: SubscriptionAction[];
|
|
461
|
+
terminate: SubscriptionAction[];
|
|
462
|
+
system: SubscriptionAction[];
|
|
463
|
+
}
|
|
464
464
|
declare const useSubscriptionActions: (subscriptionId: string) => react_query.UseQueryResult<SubscriptionActions, unknown>;
|
|
465
465
|
|
|
466
|
-
interface Process {
|
|
467
|
-
workflow: string;
|
|
468
|
-
pid: string;
|
|
469
|
-
is_task: boolean;
|
|
470
|
-
created_by: Nullable<string>;
|
|
471
|
-
failed_reason: Nullable<string>;
|
|
472
|
-
started_at: number;
|
|
473
|
-
last_status: 'completed' | 'aborted';
|
|
474
|
-
assignee: 'NOC' | 'SYSTEM' | 'CHANGES' | 'USER';
|
|
475
|
-
last_modified_at: number;
|
|
476
|
-
traceback: Nullable<string>;
|
|
477
|
-
last_step: Nullable<string>;
|
|
478
|
-
}
|
|
479
|
-
interface SubscriptionProcess {
|
|
480
|
-
workflow_target: null | 'CREATE' | 'MODIFY' | 'TERMINATE' | 'SYSTEM';
|
|
481
|
-
subscription_id: string;
|
|
482
|
-
id: string;
|
|
483
|
-
pid: string;
|
|
484
|
-
created_at: number;
|
|
485
|
-
process: Process;
|
|
486
|
-
}
|
|
466
|
+
interface Process {
|
|
467
|
+
workflow: string;
|
|
468
|
+
pid: string;
|
|
469
|
+
is_task: boolean;
|
|
470
|
+
created_by: Nullable<string>;
|
|
471
|
+
failed_reason: Nullable<string>;
|
|
472
|
+
started_at: number;
|
|
473
|
+
last_status: 'completed' | 'aborted';
|
|
474
|
+
assignee: 'NOC' | 'SYSTEM' | 'CHANGES' | 'USER';
|
|
475
|
+
last_modified_at: number;
|
|
476
|
+
traceback: Nullable<string>;
|
|
477
|
+
last_step: Nullable<string>;
|
|
478
|
+
}
|
|
479
|
+
interface SubscriptionProcess {
|
|
480
|
+
workflow_target: null | 'CREATE' | 'MODIFY' | 'TERMINATE' | 'SYSTEM';
|
|
481
|
+
subscription_id: string;
|
|
482
|
+
id: string;
|
|
483
|
+
pid: string;
|
|
484
|
+
created_at: number;
|
|
485
|
+
process: Process;
|
|
486
|
+
}
|
|
487
487
|
declare const useSubscriptionProcesses: (subscriptionId: string) => react_query.UseQueryResult<SubscriptionProcess[], unknown>;
|
|
488
488
|
|
|
489
|
-
type DataDisplayParams<Type> = {
|
|
490
|
-
pageSize: number;
|
|
491
|
-
pageIndex: number;
|
|
492
|
-
sortBy?: GraphQLSort<Type>;
|
|
493
|
-
esQueryString?: string;
|
|
494
|
-
};
|
|
495
|
-
interface DataDisplayReturnValues<Type> {
|
|
496
|
-
dataDisplayParams: DataDisplayParams<Type>;
|
|
497
|
-
setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void;
|
|
498
|
-
}
|
|
489
|
+
type DataDisplayParams<Type> = {
|
|
490
|
+
pageSize: number;
|
|
491
|
+
pageIndex: number;
|
|
492
|
+
sortBy?: GraphQLSort<Type>;
|
|
493
|
+
esQueryString?: string;
|
|
494
|
+
};
|
|
495
|
+
interface DataDisplayReturnValues<Type> {
|
|
496
|
+
dataDisplayParams: DataDisplayParams<Type>;
|
|
497
|
+
setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void;
|
|
498
|
+
}
|
|
499
499
|
declare const useDataDisplayParams: <Type>(initialParams: Partial<DataDisplayParams<Type>>) => DataDisplayReturnValues<Type>;
|
|
500
500
|
|
|
501
|
-
declare const determinePageIndex: (pageIndex: number, pageSize: number) => number;
|
|
502
|
-
declare const determineNewSortOrder: <T>(currentSortField: keyof T, currentSortOrder: SortOrder, newSortField: keyof T) => SortOrder;
|
|
503
|
-
declare const getDataSortHandler: <Type>(dataDisplayParams: DataDisplayParams<Type>, setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type_1>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void) => (newSortField: keyof Type) => void;
|
|
504
|
-
declare const getPageChangeHandler: <Type>(setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type_1>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void) => (page: {
|
|
505
|
-
index: number;
|
|
506
|
-
size: number;
|
|
507
|
-
} | undefined) => void;
|
|
501
|
+
declare const determinePageIndex: (pageIndex: number, pageSize: number) => number;
|
|
502
|
+
declare const determineNewSortOrder: <T>(currentSortField: keyof T, currentSortOrder: SortOrder, newSortField: keyof T) => SortOrder;
|
|
503
|
+
declare const getDataSortHandler: <Type>(dataDisplayParams: DataDisplayParams<Type>, setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type_1>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void) => (newSortField: keyof Type) => void;
|
|
504
|
+
declare const getPageChangeHandler: <Type>(setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type_1>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void) => (page: {
|
|
505
|
+
index: number;
|
|
506
|
+
size: number;
|
|
507
|
+
} | undefined) => void;
|
|
508
508
|
declare const getEsQueryStringHandler: <Type>(setDataDisplayParam: <PropKey extends keyof DataDisplayParams<Type_1>>(prop: PropKey, value: DataDisplayParams<Type>[PropKey]) => void) => (esQueryString: string) => void;
|
|
509
509
|
|
|
510
|
-
type TableProps<T> = {
|
|
511
|
-
data: T[];
|
|
512
|
-
columns: TableColumnsWithControlColumns<T> | TableColumns<T>;
|
|
513
|
-
hiddenColumns?: TableColumnKeys<T>;
|
|
514
|
-
dataSorting?: DataSorting<T>;
|
|
515
|
-
pagination: Pagination$1;
|
|
516
|
-
isLoading?: boolean;
|
|
517
|
-
onCriteriaChange: (criteria: Criteria<T>) => void;
|
|
518
|
-
onDataSort?: (columnId: keyof T) => void;
|
|
519
|
-
};
|
|
510
|
+
type TableProps<T> = {
|
|
511
|
+
data: T[];
|
|
512
|
+
columns: TableColumnsWithControlColumns<T> | TableColumns<T>;
|
|
513
|
+
hiddenColumns?: TableColumnKeys<T>;
|
|
514
|
+
dataSorting?: DataSorting<T>;
|
|
515
|
+
pagination: Pagination$1;
|
|
516
|
+
isLoading?: boolean;
|
|
517
|
+
onCriteriaChange: (criteria: Criteria<T>) => void;
|
|
518
|
+
onDataSort?: (columnId: keyof T) => void;
|
|
519
|
+
};
|
|
520
520
|
declare const Table: <T>({ data, columns, hiddenColumns, dataSorting, pagination, isLoading, onCriteriaChange, onDataSort, }: TableProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
521
521
|
|
|
522
|
-
type TableWithFilterProps<T> = {
|
|
523
|
-
data: T[];
|
|
524
|
-
tableColumns: TableColumns<T>;
|
|
525
|
-
leadingControlColumns?: TableControlColumnConfig<T>;
|
|
526
|
-
trailingControlColumns?: TableControlColumnConfig<T>;
|
|
527
|
-
defaultHiddenColumns?: TableColumnKeys<T>;
|
|
528
|
-
dataSorting: DataSorting<T>;
|
|
529
|
-
pagination: Pagination$1;
|
|
530
|
-
esQueryString?: string;
|
|
531
|
-
isLoading: boolean;
|
|
532
|
-
localStorageKey: string;
|
|
533
|
-
onUpdateEsQueryString: (esQueryString: string) => void;
|
|
534
|
-
onUpdatePage: (criterion: Criteria$1<T>['page']) => void;
|
|
535
|
-
onUpdateDataSort: (newSortColumnId: keyof T) => void;
|
|
536
|
-
};
|
|
522
|
+
type TableWithFilterProps<T> = {
|
|
523
|
+
data: T[];
|
|
524
|
+
tableColumns: TableColumns<T>;
|
|
525
|
+
leadingControlColumns?: TableControlColumnConfig<T>;
|
|
526
|
+
trailingControlColumns?: TableControlColumnConfig<T>;
|
|
527
|
+
defaultHiddenColumns?: TableColumnKeys<T>;
|
|
528
|
+
dataSorting: DataSorting<T>;
|
|
529
|
+
pagination: Pagination$1;
|
|
530
|
+
esQueryString?: string;
|
|
531
|
+
isLoading: boolean;
|
|
532
|
+
localStorageKey: string;
|
|
533
|
+
onUpdateEsQueryString: (esQueryString: string) => void;
|
|
534
|
+
onUpdatePage: (criterion: Criteria$1<T>['page']) => void;
|
|
535
|
+
onUpdateDataSort: (newSortColumnId: keyof T) => void;
|
|
536
|
+
};
|
|
537
537
|
declare const TableWithFilter: <T>({ data, tableColumns, leadingControlColumns, trailingControlColumns, defaultHiddenColumns, dataSorting, pagination, esQueryString, isLoading, localStorageKey, onUpdateEsQueryString, onUpdatePage, onUpdateDataSort, }: TableWithFilterProps<T>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
538
538
|
|
|
539
|
-
type TableHeaderCellProps = {
|
|
540
|
-
sortDirection?: SortOrder;
|
|
541
|
-
onClick?: () => void;
|
|
542
|
-
children: ReactNode;
|
|
543
|
-
};
|
|
539
|
+
type TableHeaderCellProps = {
|
|
540
|
+
sortDirection?: SortOrder;
|
|
541
|
+
onClick?: () => void;
|
|
542
|
+
children: ReactNode;
|
|
543
|
+
};
|
|
544
544
|
declare const TableHeaderCell: FC<TableHeaderCellProps>;
|
|
545
545
|
|
|
546
546
|
declare const Loading: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
547
547
|
|
|
548
|
-
type IconProps = {
|
|
549
|
-
width?: number | string;
|
|
550
|
-
height?: number | string;
|
|
551
|
-
color?: string;
|
|
548
|
+
type IconProps = {
|
|
549
|
+
width?: number | string;
|
|
550
|
+
height?: number | string;
|
|
551
|
+
color?: string;
|
|
552
552
|
};
|
|
553
553
|
|
|
554
554
|
declare const XCircleFill: FC<IconProps>;
|
|
@@ -571,51 +571,51 @@ declare const ArrowNarrowUp: FC<IconProps>;
|
|
|
571
571
|
|
|
572
572
|
declare const defaultOrchestratorTheme: EuiThemeModifications;
|
|
573
573
|
|
|
574
|
-
declare const DUTCH_LOCALE = "nl-NL";
|
|
575
|
-
declare const parseDate: (date: string | null | undefined) => Date | null;
|
|
574
|
+
declare const DUTCH_LOCALE = "nl-NL";
|
|
575
|
+
declare const parseDate: (date: string | null | undefined) => Date | null;
|
|
576
576
|
declare const parseDateToLocaleString: (value: Date | null) => string;
|
|
577
577
|
|
|
578
578
|
declare const getStatusBadgeColor: (status: string) => any;
|
|
579
579
|
|
|
580
580
|
declare function getTypedFieldFromObject<T extends object>(field: string | undefined, object: T): null | keyof T;
|
|
581
581
|
|
|
582
|
-
declare const getFirstUuidPart: (uuid: string) => string;
|
|
582
|
+
declare const getFirstUuidPart: (uuid: string) => string;
|
|
583
583
|
declare const isUuid4: (value: string) => boolean;
|
|
584
584
|
|
|
585
|
-
declare const upperCaseFirstChar: (value: string) => string;
|
|
585
|
+
declare const upperCaseFirstChar: (value: string) => string;
|
|
586
586
|
declare const removeSuffix: (value: string, splitChar?: string) => string;
|
|
587
587
|
|
|
588
|
-
declare const OrchestratorConfigContext: React__default.Context<OrchestratorConfig>;
|
|
589
|
-
type OrchestratorConfigProviderProps = {
|
|
590
|
-
initialOrchestratorConfig: OrchestratorConfig;
|
|
591
|
-
children: ReactNode;
|
|
592
|
-
};
|
|
588
|
+
declare const OrchestratorConfigContext: React__default.Context<OrchestratorConfig>;
|
|
589
|
+
type OrchestratorConfigProviderProps = {
|
|
590
|
+
initialOrchestratorConfig: OrchestratorConfig;
|
|
591
|
+
children: ReactNode;
|
|
592
|
+
};
|
|
593
593
|
declare const OrchestratorConfigProvider: FC<OrchestratorConfigProviderProps>;
|
|
594
594
|
|
|
595
|
-
type SubscriptionContextType = {
|
|
596
|
-
subscriptionData: SubscriptionDetailBase;
|
|
597
|
-
loadingStatus: number;
|
|
598
|
-
setSubscriptionData: (data: SubscriptionDetailBase, loadingStatus: number) => void;
|
|
599
|
-
};
|
|
600
|
-
declare const SubscriptionContext: React.Context<SubscriptionContextType>;
|
|
601
|
-
type SubscriptionProviderProps = {
|
|
602
|
-
children: ReactNode;
|
|
603
|
-
};
|
|
595
|
+
type SubscriptionContextType = {
|
|
596
|
+
subscriptionData: SubscriptionDetailBase;
|
|
597
|
+
loadingStatus: number;
|
|
598
|
+
setSubscriptionData: (data: SubscriptionDetailBase, loadingStatus: number) => void;
|
|
599
|
+
};
|
|
600
|
+
declare const SubscriptionContext: React.Context<SubscriptionContextType>;
|
|
601
|
+
type SubscriptionProviderProps = {
|
|
602
|
+
children: ReactNode;
|
|
603
|
+
};
|
|
604
604
|
declare const SubscriptionProvider: React.FC<SubscriptionProviderProps>;
|
|
605
605
|
|
|
606
|
-
type TreeContextType = {
|
|
607
|
-
selectedIds: number[];
|
|
608
|
-
expandedIds: number[];
|
|
609
|
-
toggleSelectedId: (id: number) => void;
|
|
610
|
-
toggleExpandedId: (id: number) => void;
|
|
611
|
-
expandAll: (treeLength: number) => void;
|
|
612
|
-
collapseAll: () => void;
|
|
613
|
-
resetSelection: () => void;
|
|
614
|
-
};
|
|
615
|
-
declare const TreeContext: React.Context<TreeContextType | null>;
|
|
616
|
-
type TreeProviderProps = {
|
|
617
|
-
children: ReactNode;
|
|
618
|
-
};
|
|
606
|
+
type TreeContextType = {
|
|
607
|
+
selectedIds: number[];
|
|
608
|
+
expandedIds: number[];
|
|
609
|
+
toggleSelectedId: (id: number) => void;
|
|
610
|
+
toggleExpandedId: (id: number) => void;
|
|
611
|
+
expandAll: (treeLength: number) => void;
|
|
612
|
+
collapseAll: () => void;
|
|
613
|
+
resetSelection: () => void;
|
|
614
|
+
};
|
|
615
|
+
declare const TreeContext: React.Context<TreeContextType | null>;
|
|
616
|
+
type TreeProviderProps = {
|
|
617
|
+
children: ReactNode;
|
|
618
|
+
};
|
|
619
619
|
declare const TreeProvider: React.FC<TreeProviderProps>;
|
|
620
620
|
|
|
621
621
|
export { ArrowNarrowDown, ArrowNarrowUp, Badge, BadgeProps, BasicTableColumn, Breadcrumbs, CacheNames, CacheOption, CheckmarkCircleFill, ChevronDown, ColumnConfig, ControlColumn, CustomerBase, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, DUTCH_LOCALE, DataDisplayParams, DataDisplayReturnValues, DataGridTable, DataGridTableColumns, DataGridTableProps, DataSorting, EngineStatus, EngineStatusBadge, EngineStatusValue, Environment, EnvironmentBadge, ExternalServiceBase, FailedTasksBadge, Field, FilterQuery, FixedInputBlock, FixedInputsBase, FrequentlyUsed, FrequentlyUsedProps, GlobalStatus, GraphQLSort, GraphqlFilter, GraphqlQueryVariables, HeaderBadge, HeaderBadgeProps, IconProps, ItemsList, ListItemStartPage, ListItemStartPageProps, Loading, LocalStorageTableConfig, LogoutIcon, MinusCircleOutline, MultiListSection, NewProcessPanel, Nullable, OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorConfigProviderProps, OrchestratorPageHeader, OrchestratorPageHeaderProps, OrchestratorPageTemplate, OrchestratorPageTemplateProps, OrchestratorSidebar, Pagination, PlusCircleFill, Process$1 as Process, ProcessStatus, ProcessStatusBadge, ProcessStatusBadgeProps, ProcessStatusCounts, ProcessesTimeline, ProcessesTimelineProps, Product, ProductBase, ProductBlock, ProductBlockBase, RenderField, ResourceTypeBase, SearchField, SearchFieldProps, Settings, SettingsModal, SettingsModalProps, SortOrder, StatCards, StatusDotIcon, SubscriptionAction, SubscriptionActions$1 as SubscriptionActions, SubscriptionActionsProps, SubscriptionBlock, SubscriptionContext, SubscriptionContextType, SubscriptionDetailBase, SubscriptionDetailTree, SubscriptionGeneral, SubscriptionProcess, SubscriptionProvider, SubscriptionProviderProps, SubscriptionsTab, SubscriptionsTabType, SubscriptionsTabs, SubscriptionsTabsProps, Table, TableColumnKeys, TableColumns, TableColumnsWithControlColumns, TableColumnsWithExtraNonDataFields, TableConfig, TableControlColumnConfig, TableDataColumnConfig, TableHeaderCell, TableHeaderCellProps, TableProps, TableSettingsModal, TableSettingsModalProps, TableWithFilter, TableWithFilterProps, TotalStat, TreeBlock, TreeContext, TreeContextType, TreeProvider, TreeProviderProps, WFOProductBlockBadge, WFOProductBlockBadgeProps, WFOStatusBadge, WFOStatusBadgeProps, XCircleFill, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultSubscriptionsTabs, determineNewSortOrder, determinePageIndex, getDataSortHandler, getEsQueryStringHandler, getFirstUuidPart, getInitialColumnOrder, getPageChangeHandler, getSortDirectionFromString, getStatusBadgeColor, getSubscriptionsTabTypeFromString, getTableConfigFromLocalStorage, getTypedFieldFromObject, isUuid4, isValidLocalStorageTableConfig, mapColumnSortToEuiDataGridSorting, parseDate, parseDateToLocaleString, removeSuffix, setTableConfigToLocalStorage, upperCaseFirstChar, useCacheNames, useDataDisplayParams, useEngineStatusMutation, useEngineStatusQuery, useFavouriteSubscriptions, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useProcessesAttention, useQueryWithGraphql, useRecentProcesses, useSubscriptionActions, useSubscriptionProcesses };
|