@orchestrator-ui/orchestrator-ui-components 1.3.0 → 1.3.1
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 +4 -4
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +10 -10
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +19 -5
- package/dist/index.js +59 -43
- package/package.json +1 -1
- package/src/components/WfoForms/UserInputForm.tsx +7 -1
- package/src/graphqlQueries/index.ts +0 -1
- package/src/pages/processes/WfoStartProcessPage.tsx +9 -21
- package/src/rtk/endpoints/index.ts +1 -0
- package/src/rtk/endpoints/processSteps.ts +50 -0
- package/src/graphqlQueries/processStepsQuery.ts +0 -22
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@1.3.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@1.3.1 build
|
|
3
3
|
> tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m2.16 MB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 860ms
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 12278ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m125.18 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@1.3.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@1.3.1 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
6
5
|
PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
|
|
6
|
+
PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
7
7
|
PASS Orchestrator UI Components Tests src/utils/date.spec.ts
|
|
8
|
-
PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
9
|
-
PASS Orchestrator UI Components Tests src/utils/string.spec.ts
|
|
10
8
|
PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
|
|
11
|
-
PASS Orchestrator UI Components Tests src/
|
|
9
|
+
PASS Orchestrator UI Components Tests src/utils/string.spec.ts
|
|
10
|
+
PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
12
11
|
PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
|
|
13
12
|
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
13
|
+
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
|
|
14
14
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
15
15
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
16
|
-
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
|
|
17
16
|
PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
|
|
18
|
-
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/
|
|
17
|
+
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
|
|
19
18
|
PASS Orchestrator UI Components Tests src/utils/getToastMessage.spec.ts
|
|
20
19
|
PASS Orchestrator UI Components Tests src/utils/sortObjectKeys.spec.ts
|
|
21
|
-
PASS Orchestrator UI Components Tests src/utils/
|
|
20
|
+
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
|
|
22
21
|
PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
|
|
22
|
+
PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
|
|
23
23
|
PASS Orchestrator UI Components Tests src/utils/environmentVariables.spec.ts
|
|
24
24
|
PASS Orchestrator UI Components Tests src/utils/onlyUnique.spec.ts
|
|
25
25
|
PASS Orchestrator UI Components Tests src/utils/uuid.spec.ts
|
|
26
|
-
PASS Orchestrator UI Components Tests src/utils/getQueryVariablesForExport.spec.ts
|
|
27
26
|
PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
|
|
27
|
+
PASS Orchestrator UI Components Tests src/utils/getQueryVariablesForExport.spec.ts
|
|
28
28
|
PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
|
|
29
29
|
|
|
30
30
|
Test Suites: 24 passed, 24 total
|
|
31
31
|
Tests: 152 passed, 152 total
|
|
32
32
|
Snapshots: 0 total
|
|
33
|
-
Time: 4.
|
|
33
|
+
Time: 4.721 s
|
|
34
34
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1951,10 +1951,6 @@ declare const GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY: TypedDocumentNode<Subscript
|
|
|
1951
1951
|
declare const GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY: graphql.DocumentNode;
|
|
1952
1952
|
declare function getSubscriptionDropdownOptionsGraphQlQuery<QueryVariablesType = SubscriptionDropdownOption>(): TypedDocumentNode<SubscriptionDropdownOptionsResult, GraphqlQueryVariables<QueryVariablesType>>;
|
|
1953
1953
|
|
|
1954
|
-
declare const GET_PROCESS_STEPS_GRAPHQL_QUERY: TypedDocumentNode<ProcessStepsResult, {
|
|
1955
|
-
processName: string;
|
|
1956
|
-
}>;
|
|
1957
|
-
|
|
1958
1954
|
declare const GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY: graphql.DocumentNode;
|
|
1959
1955
|
declare const GET_PROCESS_LIST_GRAPHQL_QUERY: graphql.DocumentNode;
|
|
1960
1956
|
declare const getProcessListGraphQlQuery: () => TypedDocumentNode<ProcessListResult, GraphqlQueryVariables<Process>>;
|
|
@@ -3067,6 +3063,24 @@ declare const useSetSubscriptionInSyncMutation: _reduxjs_toolkit_dist_query_reac
|
|
|
3067
3063
|
meta?: {} | undefined;
|
|
3068
3064
|
} | PromiseLike<_reduxjs_toolkit_dist_query_baseQueryTypes.QueryReturnValue<unknown, _rtk_query_graphql_request_base_query_dist_GraphqlBaseQueryTypes.ErrorResponse, {}>>, CacheTags, void, "orchestratorApi">>;
|
|
3069
3065
|
|
|
3066
|
+
declare const processStepsQuery = "\n query ProcessSteps($processName: String!) {\n workflows(filterBy: { field: \"name\", value: $processName }) {\n page {\n steps {\n name\n assignee\n }\n }\n }\n }\n";
|
|
3067
|
+
declare const useGetTimeLineItemsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<string, (args: any, api: _reduxjs_toolkit_query.BaseQueryApi, extraOptions: {
|
|
3068
|
+
baseQueryType?: BaseQueryTypes | undefined;
|
|
3069
|
+
apiName?: string | undefined;
|
|
3070
|
+
}) => {
|
|
3071
|
+
error: _reduxjs_toolkit_query.FetchBaseQueryError;
|
|
3072
|
+
data?: undefined;
|
|
3073
|
+
meta?: _reduxjs_toolkit_query.FetchBaseQueryMeta | undefined;
|
|
3074
|
+
} | PromiseLike<_reduxjs_toolkit_dist_query_baseQueryTypes.QueryReturnValue<unknown, _reduxjs_toolkit_query.FetchBaseQueryError, _reduxjs_toolkit_query.FetchBaseQueryMeta>> | {
|
|
3075
|
+
error: _rtk_query_graphql_request_base_query_dist_GraphqlBaseQueryTypes.ErrorResponse;
|
|
3076
|
+
data?: undefined;
|
|
3077
|
+
meta?: {} | undefined;
|
|
3078
|
+
} | {
|
|
3079
|
+
error?: undefined;
|
|
3080
|
+
data: unknown;
|
|
3081
|
+
meta?: {} | undefined;
|
|
3082
|
+
} | PromiseLike<_reduxjs_toolkit_dist_query_baseQueryTypes.QueryReturnValue<unknown, _rtk_query_graphql_request_base_query_dist_GraphqlBaseQueryTypes.ErrorResponse, {}>>, CacheTags, TimelineItem[], "orchestratorApi">>;
|
|
3083
|
+
|
|
3070
3084
|
declare type ToastState = {
|
|
3071
3085
|
messages: Toast[];
|
|
3072
3086
|
};
|
|
@@ -3148,4 +3162,4 @@ declare const getQueryVariablesForExport: <T extends object>(queryVariables: Gra
|
|
|
3148
3162
|
|
|
3149
3163
|
declare const onlyUnique: (value: string, index: number, array: string[]) => boolean;
|
|
3150
3164
|
|
|
3151
|
-
export { ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, AcceptField, type AcceptFieldProps, ApiClient, ApiClientContext, ApiClientContextProvider, type ApiClientContextProviderProps, type ApiContext, type AppDispatch, type AutoFieldsProps, BadgeType, BaseApiClient, type BaseGraphQlResult, BaseQueryTypes, BoolField, type BoolFieldProps, COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, type CacheNames, type CacheOption, CacheTags, ColorModes, type ColumnConfig, type ConfirmDialogActions, ConfirmationDialogContext, ConfirmationDialogContextWrapper, ConfirmationDialogProvider, ConnectedSelectField, ContactPersonNameField, type ContactPersonNameFieldProps, CreateForm, type CustomApiConfig, type Customer, CustomerField, type CustomerFieldProps, type CustomersResult, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, type DataDisplayParams, type DataDisplayReturnValues, DateField, type DateFieldProps, DividerField, type DividerFieldProps, type EmailAddress, type EmailState, EngineStatus, Environment, ErrorField, type ErrorFieldProps, ErrorsField, type ErrorsFieldProps, type ExternalService, type FetchFilter, type Field, type FieldProps$1 as FieldProps, type FieldValue, type FilterQuery, type FixedInputDefinition, type Form, type FormNotCompleteResponse, GET_PROCESS_LIST_GRAPHQL_QUERY, GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY, GET_PROCESS_STEPS_GRAPHQL_QUERY, GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY, GET_PRODUCTS_GRAPHQL_QUERY, GET_PRODUCTS_SUMMARY_GRAPHQL_QUERY, GET_RESOURCE_TYPES_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_SUMMARY_GRAPHQL_QUERY, GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY, GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY, type GraphQLPageInfo, type GraphQLSort, type GraphqlFilter, type GraphqlQueryVariables, type GroupedStep, HIDDEN_KEYS, type HeaderBadgeProps, type IPvAnyNetworkFieldProps, ImsNodeIdField, type ImsNodeIdFieldProps, type ImsPortFieldProps, ImsPortIdField, type InUseByRelation, type InputForm, IpNetworkField, type KeyValue, LabelField, type LabelFieldProps, ListAddField, type ListAddFieldProps, ListDelField, type ListDelFieldProps, ListField, type ListFieldProps, ListSelectField, type ListSelectFieldProps, Locale, LocationCodeField, type LocationCodeFieldProps, LongTextField, type LongTextFieldProps, MAXIMUM_ITEMS_FOR_BULK_FETCHING, METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY, METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY, METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY, METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY, NestField, type NestFieldProps, type Nullable, NumField, type NumFieldProps, OptGroupField, type OptGroupFieldProps, type OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, type OrchestratorConfigProviderProps, PATH_METADATA, PATH_METADATA_PRODUCTS, PATH_METADATA_PRODUCT_BLOCKS, PATH_METADATA_RESOURCE_TYPES, PATH_METADATA_WORKFLOWS, PATH_SETTINGS, PATH_START, PATH_START_NEW_TASK, PATH_START_NEW_WORKFLOW, PATH_SUBSCRIPTIONS, PATH_TASKS, PATH_WORKFLOWS, type Pagination, type Policy, PolicyContext, PolicyContextProvider, type PolicyProviderProps, PolicyResource, type Process, type ProcessDetail, type ProcessDetailResultRaw, ProcessDoneStatuses, type ProcessListItem, type ProcessListResponse, type ProcessListResult, ProcessStatus, type ProcessStatusCounts, type ProcessStepsResult, type ProcessesDetailResult, type ProductBlockDefinition, type ProductBlockDefinitionsResult, type ProductBlockInstance, type ProductDefinition, type ProductDefinitionsResult, ProductField, type ProductFieldProps, ProductLifecycleStatus, RENDER_ALL, RESOURCE_TYPE_FIELD_DESCRIPTION, RESOURCE_TYPE_FIELD_ID, RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS, RESOURCE_TYPE_FIELD_TYPE, RadioField, type RadioFieldProps, type RelatedSubscription, type RelatedSubscriptionsResult, RenderDirection, type ResourceTypeDefinition, type ResourceTypeDefinitionsResult, type RootState, STEP_STATE_HIDDEN_KEYS, SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY, type SelectFieldProps, type ShowConfirmDialog, type ShowConfirmDialogType, SortOrder, type StartProcessStep, type Step, type StepListItem, type StepState, StepStatus, StoreProvider, type StoreProviderProps, type StoredTableConfig, SubmitField, type SubmitFieldProps, type Subscription, type SubscriptionAction, type SubscriptionDetail, type SubscriptionDetailProcess, type SubscriptionDetailResult, SubscriptionDetailTab, type SubscriptionDropdownOption, type SubscriptionDropdownOptionsResult, SubscriptionField, type SubscriptionFieldProps, SubscriptionKeyValueBlock, SubscriptionStatus, SubscriptionSummaryField, type SubscriptionSummaryFieldProps, type SubscriptionsResult, SummaryField, type SummaryFieldProps, type TableColumnKeys, type TableConfig, TableSettingsModal, type TableSettingsModalProps, TextField, type TextFieldProps, type TimelineItem, TimelinePosition, TimestampField, type TimestampFieldProps, type ToastState, ToastTypes, type TranslationMessagesMap, type TreeBlock, TreeContext, type TreeContextType, TreeProvider, type TreeProviderProps, UnconnectedSelectField, type UserInputForm, UserInputFormWizard, type ValidationError, type ValidationErrorContext, VlanField, type VlanFieldProps, WFO_STATUS_COLOR_FIELD, WfoArrowNarrowDown, WfoArrowNarrowUp, WfoArrowsExpand, WfoAuth, WfoBadge, type WfoBadgeProps, WfoBasicTable, type WfoBasicTableColumns, type WfoBasicTableColumnsWithControlColumns, type WfoBasicTableProps, WfoBell, WfoBreadcrumbs, WfoCheckmarkCircleFill, WfoChevronDown, WfoChevronUp, WfoCode, WfoCogFill, WfoContactEnvelopeFill, type WfoControlColumn, WfoCubeSolid, WfoDataGridTable, type WfoDataGridTableColumns, type WfoDataGridTableProps, type WfoDataSearch, type WfoDataSorting, WfoDateTime, type WfoDateTimeProps, WfoDropdownButton, WfoEngineStatusBadge, WfoEngineStatusButton, WfoEnvironmentBadge, WfoError, WfoErrorBoundary, type WfoEuiBasicTableColumn, WfoEyeFill, WfoFailedTasksBadge, type WfoFilterTab, WfoFilterTabs, type WfoFilterTabsProps, WfoFirstPartUUID, type WfoFirstUUIDPartProps, WfoFlushSettings, WfoHeaderBadge, type WfoIconProps, WfoInSyncField, WfoInformationModal, type WfoInformationModalProps, WfoInsyncIcon, WfoIsAllowedToRender, type WfoIsAllowedToRenderProps, WfoJsonCodeBlock, type WfoJsonCodeBlockProps, WfoKeyCell, type WfoKeyCellProps, WfoKeyValueTable, type WfoKeyValueTableDataType, type WfoKeyValueTableProps, WfoLoading, WfoLogoutIcon, WfoMinusCircleFill, WfoMinusCircleOutline, WfoModifySettings, WfoPageHeader, type WfoPageHeaderProps, WfoPageTemplate, type WfoPageTemplateProps, WfoPageUnauthorized, WfoPencil, WfoPencilAlt, WfoPlayCircle, WfoPlayFill, WfoPlusCircleFill, type WfoPolicyRenderFallbackProps, WfoPolicyRenderPageFallback, WfoProcessDetailPage, WfoProcessListSubscriptionsCell, WfoProcessRawData, WfoProcessStatusBadge, type WfoProcessStatusBadgeProps, WfoProcessSubscriptionDelta, WfoProcessesList, type WfoProcessesListProps, type WfoProcessesListSubscriptionsCellProps, WfoProcessesTimeline, WfoProductBlockBadge, type WfoProductBlockBadgeProps, WfoProductBlocksPage, WfoProductStatusBadge, type WfoProductStatusBadgeProps, WfoProductsPage, WfoRefresh, WfoResourceTypesPage, WfoSearchField, type WfoSearchFieldProps, WfoSearchStrikethrough, type WfoSession, WfoSettingsModal, type WfoSettingsModalProps, WfoSettingsPage, WfoShare, WfoSideMenu, WfoSidebar, type WfoSidebarProps, WfoSortAsc, WfoSortButton, type WfoSortButtonProps, WfoSortButtons, type WfoSortButtonsProps, WfoSortDesc, WfoSortDirectionIcon, type WfoSortDirectionIconProps, WfoStartPage, WfoStartProcessPage, WfoStartTaskButtonComboBox, WfoStatistic, WfoStatus, WfoStatusColorField, type WfoStatusColorFieldProps, WfoStatusDotIcon, WfoStep, WfoStepList, WfoStepListHeader, type WfoStepListHeaderProps, type WfoStepListProps, type WfoStepListRef, type WfoStepProps, WfoStepStatusIcon, type WfoStepStatusIconProps, WfoSubmitModal, type WfoSubmitModalProps, WfoSubscription, WfoSubscriptionActions, type WfoSubscriptionActionsProps, WfoSubscriptionDetailPage, WfoSubscriptionDetailTree, WfoSubscriptionGeneral, WfoSubscriptionProductBlock, WfoSubscriptionStatusBadge, type WfoSubscriptionStatusBadgeProps, WfoSubscriptionsListPage, type WfoTableColumns, type WfoTableColumnsWithExtraNonDataFields, type WfoTableControlColumnConfig, type WfoTableDataColumnConfig, WfoTableHeaderCell, type WfoTableHeaderCellProps, WfoTableWithFilter, type WfoTableWithFilterProps, WfoTasksListPage, WfoTasksListTabType, WfoTextAnchor, WfoTimeline, type WfoTimelineProps, WfoToastsList, type WfoTreeNodeMap, type WfoUserProfile, WfoValueCell, type WfoValueCellProps, WfoViewList, WfoWarningTriangle, WfoWorkflowStepList, type WfoWorkflowStepListProps, WfoWorkflowTargetBadge, type WfoWorkflowTargetBadgeProps, WfoWorkflowsListPage, WfoWorkflowsPage, WfoXCircleFill, type WorkflowDefinition, type WorkflowDefinitionsResult, type WorkflowListItem, WorkflowTarget, addToastMessage, calculateTimeDifference, camelToHuman, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultTasksListTabs, determineNewSortOrder, determinePageIndex, filterDataByCriteria, flattenArrayProps, formatDate, formatDateCetWithUtc, getApiClient, getCurrentBrowserLocale, getCustomApiSlice, getDataSortHandler, getDate, getFieldFromProductBlockInstanceValues, getFirstUuidPart, getInitialColumnOrder, getLastUncompletedProcess, getLatestTaskDate, getNumberValueFromEnvironmentVariable, getOrchestratorConfigSlice, getOrchestratorStore, getPageChangeHandler, getProcessListGraphQlQuery, getProcessListSummaryGraphQlQuery, getProductBlockTitle, getProductNamesFromProcess, getProductsQuery, getProductsSummaryQuery, getQueryStringHandler, getQueryVariablesForExport, getSortDirectionFromString, getStatusBadgeColor, getStepContent, getSubscriptionDropdownOptionsGraphQlQuery, getSubscriptionsListGraphQlQuery, getSubscriptionsListSummaryGraphQlQuery, getTableConfigFromLocalStorage, getTasksListTabTypeFromString, getTypedFieldFromObject, getWfoBasicTableStyles, getWorkflowTargetColor, getWorkflowTargetIconContent, isToday, isUuid4, isValidLocalStorageTableConfig, localMomentToUtcTimestamp, mapColumnSortToEuiDataGridSorting, mapSortableAndFilterableValuesToTableColumnConfig, onlyUnique, orchestratorApi, parseDate, parseDateOrTimeRelativeToToday, parseDateRelativeToToday, parseDateToLocaleDateString, parseDateToLocaleDateTimeString, parseDateToLocaleTimeString, parseIsoString, prepareHeaders, processListQuery, removeSuffix, removeToastMessage, renderEmptyElementWhenNotAllowedByPolicy, setTableConfigToLocalStorage, snakeToHuman, snakeToKebab, stop, toastMessagesReducer, toastMessagesSlice, upperCaseFirstChar, urlPolicyMap, useCacheNames, useCheckEngineStatus, useClearCacheMutation, useDataDisplayParams, useFilterQueryWithRest, useGetCustomersQuery, useGetEngineStatusQuery, useGetProcessListQuery, useGetTranslationMessages, useMutateProcess, useOrchestratorConfig, useOrchestratorTheme, usePolicy, useProcessStatusCountsQuery, useQueryWithFetch, useQueryWithGraphql, useQueryWithGraphqlLazy, useRawProcessDetails, useSetEngineStatusMutation, useSetSubscriptionInSyncMutation, useShowToastMessage, useStoredTableConfig, useStreamMessagesQuery, useSubscriptionActions, useWfoSession, useWithOrchestratorTheme, utcTimestampToLocalMoment };
|
|
3165
|
+
export { ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, AcceptField, type AcceptFieldProps, ApiClient, ApiClientContext, ApiClientContextProvider, type ApiClientContextProviderProps, type ApiContext, type AppDispatch, type AutoFieldsProps, BadgeType, BaseApiClient, type BaseGraphQlResult, BaseQueryTypes, BoolField, type BoolFieldProps, COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY, COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY, type CacheNames, type CacheOption, CacheTags, ColorModes, type ColumnConfig, type ConfirmDialogActions, ConfirmationDialogContext, ConfirmationDialogContextWrapper, ConfirmationDialogProvider, ConnectedSelectField, ContactPersonNameField, type ContactPersonNameFieldProps, CreateForm, type CustomApiConfig, type Customer, CustomerField, type CustomerFieldProps, type CustomersResult, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, type DataDisplayParams, type DataDisplayReturnValues, DateField, type DateFieldProps, DividerField, type DividerFieldProps, type EmailAddress, type EmailState, EngineStatus, Environment, ErrorField, type ErrorFieldProps, ErrorsField, type ErrorsFieldProps, type ExternalService, type FetchFilter, type Field, type FieldProps$1 as FieldProps, type FieldValue, type FilterQuery, type FixedInputDefinition, type Form, type FormNotCompleteResponse, GET_PROCESS_LIST_GRAPHQL_QUERY, GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY, GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY, GET_PRODUCTS_GRAPHQL_QUERY, GET_PRODUCTS_SUMMARY_GRAPHQL_QUERY, GET_RESOURCE_TYPES_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_GRAPHQL_QUERY, GET_SUBSCRIPTIONS_LIST_SUMMARY_GRAPHQL_QUERY, GET_SUBSCRIPTION_DETAIL_GRAPHQL_QUERY, GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY, type GraphQLPageInfo, type GraphQLSort, type GraphqlFilter, type GraphqlQueryVariables, type GroupedStep, HIDDEN_KEYS, type HeaderBadgeProps, type IPvAnyNetworkFieldProps, ImsNodeIdField, type ImsNodeIdFieldProps, type ImsPortFieldProps, ImsPortIdField, type InUseByRelation, type InputForm, IpNetworkField, type KeyValue, LabelField, type LabelFieldProps, ListAddField, type ListAddFieldProps, ListDelField, type ListDelFieldProps, ListField, type ListFieldProps, ListSelectField, type ListSelectFieldProps, Locale, LocationCodeField, type LocationCodeFieldProps, LongTextField, type LongTextFieldProps, MAXIMUM_ITEMS_FOR_BULK_FETCHING, METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY, METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY, METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY, METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY, NestField, type NestFieldProps, type Nullable, NumField, type NumFieldProps, OptGroupField, type OptGroupFieldProps, type OrchestratorConfig, OrchestratorConfigContext, OrchestratorConfigProvider, type OrchestratorConfigProviderProps, PATH_METADATA, PATH_METADATA_PRODUCTS, PATH_METADATA_PRODUCT_BLOCKS, PATH_METADATA_RESOURCE_TYPES, PATH_METADATA_WORKFLOWS, PATH_SETTINGS, PATH_START, PATH_START_NEW_TASK, PATH_START_NEW_WORKFLOW, PATH_SUBSCRIPTIONS, PATH_TASKS, PATH_WORKFLOWS, type Pagination, type Policy, PolicyContext, PolicyContextProvider, type PolicyProviderProps, PolicyResource, type Process, type ProcessDetail, type ProcessDetailResultRaw, ProcessDoneStatuses, type ProcessListItem, type ProcessListResponse, type ProcessListResult, ProcessStatus, type ProcessStatusCounts, type ProcessStepsResult, type ProcessesDetailResult, type ProductBlockDefinition, type ProductBlockDefinitionsResult, type ProductBlockInstance, type ProductDefinition, type ProductDefinitionsResult, ProductField, type ProductFieldProps, ProductLifecycleStatus, RENDER_ALL, RESOURCE_TYPE_FIELD_DESCRIPTION, RESOURCE_TYPE_FIELD_ID, RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS, RESOURCE_TYPE_FIELD_TYPE, RadioField, type RadioFieldProps, type RelatedSubscription, type RelatedSubscriptionsResult, RenderDirection, type ResourceTypeDefinition, type ResourceTypeDefinitionsResult, type RootState, STEP_STATE_HIDDEN_KEYS, SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY, type SelectFieldProps, type ShowConfirmDialog, type ShowConfirmDialogType, SortOrder, type StartProcessStep, type Step, type StepListItem, type StepState, StepStatus, StoreProvider, type StoreProviderProps, type StoredTableConfig, SubmitField, type SubmitFieldProps, type Subscription, type SubscriptionAction, type SubscriptionDetail, type SubscriptionDetailProcess, type SubscriptionDetailResult, SubscriptionDetailTab, type SubscriptionDropdownOption, type SubscriptionDropdownOptionsResult, SubscriptionField, type SubscriptionFieldProps, SubscriptionKeyValueBlock, SubscriptionStatus, SubscriptionSummaryField, type SubscriptionSummaryFieldProps, type SubscriptionsResult, SummaryField, type SummaryFieldProps, type TableColumnKeys, type TableConfig, TableSettingsModal, type TableSettingsModalProps, TextField, type TextFieldProps, type TimelineItem, TimelinePosition, TimestampField, type TimestampFieldProps, type ToastState, ToastTypes, type TranslationMessagesMap, type TreeBlock, TreeContext, type TreeContextType, TreeProvider, type TreeProviderProps, UnconnectedSelectField, type UserInputForm, UserInputFormWizard, type ValidationError, type ValidationErrorContext, VlanField, type VlanFieldProps, WFO_STATUS_COLOR_FIELD, WfoArrowNarrowDown, WfoArrowNarrowUp, WfoArrowsExpand, WfoAuth, WfoBadge, type WfoBadgeProps, WfoBasicTable, type WfoBasicTableColumns, type WfoBasicTableColumnsWithControlColumns, type WfoBasicTableProps, WfoBell, WfoBreadcrumbs, WfoCheckmarkCircleFill, WfoChevronDown, WfoChevronUp, WfoCode, WfoCogFill, WfoContactEnvelopeFill, type WfoControlColumn, WfoCubeSolid, WfoDataGridTable, type WfoDataGridTableColumns, type WfoDataGridTableProps, type WfoDataSearch, type WfoDataSorting, WfoDateTime, type WfoDateTimeProps, WfoDropdownButton, WfoEngineStatusBadge, WfoEngineStatusButton, WfoEnvironmentBadge, WfoError, WfoErrorBoundary, type WfoEuiBasicTableColumn, WfoEyeFill, WfoFailedTasksBadge, type WfoFilterTab, WfoFilterTabs, type WfoFilterTabsProps, WfoFirstPartUUID, type WfoFirstUUIDPartProps, WfoFlushSettings, WfoHeaderBadge, type WfoIconProps, WfoInSyncField, WfoInformationModal, type WfoInformationModalProps, WfoInsyncIcon, WfoIsAllowedToRender, type WfoIsAllowedToRenderProps, WfoJsonCodeBlock, type WfoJsonCodeBlockProps, WfoKeyCell, type WfoKeyCellProps, WfoKeyValueTable, type WfoKeyValueTableDataType, type WfoKeyValueTableProps, WfoLoading, WfoLogoutIcon, WfoMinusCircleFill, WfoMinusCircleOutline, WfoModifySettings, WfoPageHeader, type WfoPageHeaderProps, WfoPageTemplate, type WfoPageTemplateProps, WfoPageUnauthorized, WfoPencil, WfoPencilAlt, WfoPlayCircle, WfoPlayFill, WfoPlusCircleFill, type WfoPolicyRenderFallbackProps, WfoPolicyRenderPageFallback, WfoProcessDetailPage, WfoProcessListSubscriptionsCell, WfoProcessRawData, WfoProcessStatusBadge, type WfoProcessStatusBadgeProps, WfoProcessSubscriptionDelta, WfoProcessesList, type WfoProcessesListProps, type WfoProcessesListSubscriptionsCellProps, WfoProcessesTimeline, WfoProductBlockBadge, type WfoProductBlockBadgeProps, WfoProductBlocksPage, WfoProductStatusBadge, type WfoProductStatusBadgeProps, WfoProductsPage, WfoRefresh, WfoResourceTypesPage, WfoSearchField, type WfoSearchFieldProps, WfoSearchStrikethrough, type WfoSession, WfoSettingsModal, type WfoSettingsModalProps, WfoSettingsPage, WfoShare, WfoSideMenu, WfoSidebar, type WfoSidebarProps, WfoSortAsc, WfoSortButton, type WfoSortButtonProps, WfoSortButtons, type WfoSortButtonsProps, WfoSortDesc, WfoSortDirectionIcon, type WfoSortDirectionIconProps, WfoStartPage, WfoStartProcessPage, WfoStartTaskButtonComboBox, WfoStatistic, WfoStatus, WfoStatusColorField, type WfoStatusColorFieldProps, WfoStatusDotIcon, WfoStep, WfoStepList, WfoStepListHeader, type WfoStepListHeaderProps, type WfoStepListProps, type WfoStepListRef, type WfoStepProps, WfoStepStatusIcon, type WfoStepStatusIconProps, WfoSubmitModal, type WfoSubmitModalProps, WfoSubscription, WfoSubscriptionActions, type WfoSubscriptionActionsProps, WfoSubscriptionDetailPage, WfoSubscriptionDetailTree, WfoSubscriptionGeneral, WfoSubscriptionProductBlock, WfoSubscriptionStatusBadge, type WfoSubscriptionStatusBadgeProps, WfoSubscriptionsListPage, type WfoTableColumns, type WfoTableColumnsWithExtraNonDataFields, type WfoTableControlColumnConfig, type WfoTableDataColumnConfig, WfoTableHeaderCell, type WfoTableHeaderCellProps, WfoTableWithFilter, type WfoTableWithFilterProps, WfoTasksListPage, WfoTasksListTabType, WfoTextAnchor, WfoTimeline, type WfoTimelineProps, WfoToastsList, type WfoTreeNodeMap, type WfoUserProfile, WfoValueCell, type WfoValueCellProps, WfoViewList, WfoWarningTriangle, WfoWorkflowStepList, type WfoWorkflowStepListProps, WfoWorkflowTargetBadge, type WfoWorkflowTargetBadgeProps, WfoWorkflowsListPage, WfoWorkflowsPage, WfoXCircleFill, type WorkflowDefinition, type WorkflowDefinitionsResult, type WorkflowListItem, WorkflowTarget, addToastMessage, calculateTimeDifference, camelToHuman, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultTasksListTabs, determineNewSortOrder, determinePageIndex, filterDataByCriteria, flattenArrayProps, formatDate, formatDateCetWithUtc, getApiClient, getCurrentBrowserLocale, getCustomApiSlice, getDataSortHandler, getDate, getFieldFromProductBlockInstanceValues, getFirstUuidPart, getInitialColumnOrder, getLastUncompletedProcess, getLatestTaskDate, getNumberValueFromEnvironmentVariable, getOrchestratorConfigSlice, getOrchestratorStore, getPageChangeHandler, getProcessListGraphQlQuery, getProcessListSummaryGraphQlQuery, getProductBlockTitle, getProductNamesFromProcess, getProductsQuery, getProductsSummaryQuery, getQueryStringHandler, getQueryVariablesForExport, getSortDirectionFromString, getStatusBadgeColor, getStepContent, getSubscriptionDropdownOptionsGraphQlQuery, getSubscriptionsListGraphQlQuery, getSubscriptionsListSummaryGraphQlQuery, getTableConfigFromLocalStorage, getTasksListTabTypeFromString, getTypedFieldFromObject, getWfoBasicTableStyles, getWorkflowTargetColor, getWorkflowTargetIconContent, isToday, isUuid4, isValidLocalStorageTableConfig, localMomentToUtcTimestamp, mapColumnSortToEuiDataGridSorting, mapSortableAndFilterableValuesToTableColumnConfig, onlyUnique, orchestratorApi, parseDate, parseDateOrTimeRelativeToToday, parseDateRelativeToToday, parseDateToLocaleDateString, parseDateToLocaleDateTimeString, parseDateToLocaleTimeString, parseIsoString, prepareHeaders, processListQuery, processStepsQuery, removeSuffix, removeToastMessage, renderEmptyElementWhenNotAllowedByPolicy, setTableConfigToLocalStorage, snakeToHuman, snakeToKebab, stop, toastMessagesReducer, toastMessagesSlice, upperCaseFirstChar, urlPolicyMap, useCacheNames, useCheckEngineStatus, useClearCacheMutation, useDataDisplayParams, useFilterQueryWithRest, useGetCustomersQuery, useGetEngineStatusQuery, useGetProcessListQuery, useGetTimeLineItemsQuery, useGetTranslationMessages, useMutateProcess, useOrchestratorConfig, useOrchestratorTheme, usePolicy, useProcessStatusCountsQuery, useQueryWithFetch, useQueryWithGraphql, useQueryWithGraphqlLazy, useRawProcessDetails, useSetEngineStatusMutation, useSetSubscriptionInSyncMutation, useShowToastMessage, useStoredTableConfig, useStreamMessagesQuery, useSubscriptionActions, useWfoSession, useWithOrchestratorTheme, utcTimestampToLocalMoment };
|
package/dist/index.js
CHANGED
|
@@ -40841,6 +40841,42 @@ var inSyncApi = orchestratorApi.injectEndpoints({
|
|
|
40841
40841
|
});
|
|
40842
40842
|
var { useSetSubscriptionInSyncMutation } = inSyncApi;
|
|
40843
40843
|
|
|
40844
|
+
// src/rtk/endpoints/processSteps.ts
|
|
40845
|
+
var processStepsQuery = `
|
|
40846
|
+
query ProcessSteps($processName: String!) {
|
|
40847
|
+
workflows(filterBy: { field: "name", value: $processName }) {
|
|
40848
|
+
page {
|
|
40849
|
+
steps {
|
|
40850
|
+
name
|
|
40851
|
+
assignee
|
|
40852
|
+
}
|
|
40853
|
+
}
|
|
40854
|
+
}
|
|
40855
|
+
}
|
|
40856
|
+
`;
|
|
40857
|
+
var processStepApi = orchestratorApi.injectEndpoints({
|
|
40858
|
+
endpoints: (build) => ({
|
|
40859
|
+
getTimeLineItems: build.query({
|
|
40860
|
+
query: (processName) => ({
|
|
40861
|
+
document: processStepsQuery,
|
|
40862
|
+
variables: { processName }
|
|
40863
|
+
}),
|
|
40864
|
+
transformResponse: (response) => {
|
|
40865
|
+
const timeLineItems = response.workflows.page[0].steps.map(
|
|
40866
|
+
({ name }) => {
|
|
40867
|
+
return {
|
|
40868
|
+
processStepStatus: "pending" /* PENDING */,
|
|
40869
|
+
stepDetail: name
|
|
40870
|
+
};
|
|
40871
|
+
}
|
|
40872
|
+
);
|
|
40873
|
+
return timeLineItems;
|
|
40874
|
+
}
|
|
40875
|
+
})
|
|
40876
|
+
})
|
|
40877
|
+
});
|
|
40878
|
+
var { useGetTimeLineItemsQuery } = processStepApi;
|
|
40879
|
+
|
|
40844
40880
|
// src/hooks/useCheckEngineStatus.ts
|
|
40845
40881
|
var useCheckEngineStatus = () => {
|
|
40846
40882
|
const { data, isLoading, refetch } = useGetEngineStatusQuery();
|
|
@@ -48278,24 +48314,9 @@ function getSubscriptionDropdownOptionsGraphQlQuery() {
|
|
|
48278
48314
|
return GET_SUBSCRIPTION_DROPDOWN_OPTIONS_GRAPHQL_QUERY;
|
|
48279
48315
|
}
|
|
48280
48316
|
|
|
48281
|
-
// src/graphqlQueries/processStepsQuery.ts
|
|
48282
|
-
import { gql as gql8 } from "graphql-request";
|
|
48283
|
-
var GET_PROCESS_STEPS_GRAPHQL_QUERY = parse(gql8`
|
|
48284
|
-
query ProcessSteps($processName: String!) {
|
|
48285
|
-
workflows(filterBy: { field: "name", value: $processName }) {
|
|
48286
|
-
page {
|
|
48287
|
-
steps {
|
|
48288
|
-
name
|
|
48289
|
-
assignee
|
|
48290
|
-
}
|
|
48291
|
-
}
|
|
48292
|
-
}
|
|
48293
|
-
}
|
|
48294
|
-
`);
|
|
48295
|
-
|
|
48296
48317
|
// src/graphqlQueries/processListQuery.ts
|
|
48297
|
-
import { gql as
|
|
48298
|
-
var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(
|
|
48318
|
+
import { gql as gql8 } from "graphql-request";
|
|
48319
|
+
var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql8`
|
|
48299
48320
|
query ProcessListSummary(
|
|
48300
48321
|
$first: Int!
|
|
48301
48322
|
$after: Int!
|
|
@@ -48323,7 +48344,7 @@ var GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY = parse(gql9`
|
|
|
48323
48344
|
}
|
|
48324
48345
|
}
|
|
48325
48346
|
`);
|
|
48326
|
-
var GET_PROCESS_LIST_GRAPHQL_QUERY = parse(
|
|
48347
|
+
var GET_PROCESS_LIST_GRAPHQL_QUERY = parse(gql8`
|
|
48327
48348
|
query ProcessList(
|
|
48328
48349
|
$first: Int!
|
|
48329
48350
|
$after: Int!
|
|
@@ -48425,8 +48446,8 @@ import Link3 from "next/link";
|
|
|
48425
48446
|
import { EuiFlexGroup as EuiFlexGroup10, EuiFlexItem as EuiFlexItem9, EuiSpacer as EuiSpacer13, EuiSwitch as EuiSwitch2 } from "@elastic/eui";
|
|
48426
48447
|
|
|
48427
48448
|
// src/graphqlQueries/relatedSubscriptionsQuery.ts
|
|
48428
|
-
import { gql as
|
|
48429
|
-
var GET_RELATED_SUBSCRIPTIONS_GRAPHQL_QUERY = parse(
|
|
48449
|
+
import { gql as gql9 } from "graphql-request";
|
|
48450
|
+
var GET_RELATED_SUBSCRIPTIONS_GRAPHQL_QUERY = parse(gql9`
|
|
48430
48451
|
query RelatedSubscriptions(
|
|
48431
48452
|
$subscriptionId: String!
|
|
48432
48453
|
$first: Int!
|
|
@@ -53858,7 +53879,9 @@ var CustomTitleJSONSchemaBridge = class extends JSONSchemaBridge {
|
|
|
53858
53879
|
for (const key in combinedPartial) {
|
|
53859
53880
|
if (combinedPartial[key] && !_definition[key]) {
|
|
53860
53881
|
_definition[key] = combinedPartial[key];
|
|
53861
|
-
definition
|
|
53882
|
+
if (Object.isExtensible(definition)) {
|
|
53883
|
+
definition[key] = combinedPartial[key];
|
|
53884
|
+
}
|
|
53862
53885
|
}
|
|
53863
53886
|
}
|
|
53864
53887
|
});
|
|
@@ -55072,8 +55095,8 @@ import { useTranslations as useTranslations45 } from "next-intl";
|
|
|
55072
55095
|
import { EuiBadgeGroup as EuiBadgeGroup5 } from "@elastic/eui";
|
|
55073
55096
|
|
|
55074
55097
|
// src/graphqlQueries/workflows/workflowsQuery.ts
|
|
55075
|
-
import { gql as
|
|
55076
|
-
var GET_WORKFLOWS_GRAPHQL_QUERY = parse(
|
|
55098
|
+
import { gql as gql10 } from "graphql-request";
|
|
55099
|
+
var GET_WORKFLOWS_GRAPHQL_QUERY = parse(gql10`
|
|
55077
55100
|
query MetadataWorkflows(
|
|
55078
55101
|
$first: Int!
|
|
55079
55102
|
$after: Int!
|
|
@@ -56673,7 +56696,6 @@ var WfoStartProcessPage = ({
|
|
|
56673
56696
|
processName,
|
|
56674
56697
|
isTask = false
|
|
56675
56698
|
}) => {
|
|
56676
|
-
var _a, _b;
|
|
56677
56699
|
const apiClient = useAxiosApiClient();
|
|
56678
56700
|
const t = useTranslations51("processes.steps");
|
|
56679
56701
|
const router = useRouter11();
|
|
@@ -56687,24 +56709,16 @@ var WfoStartProcessPage = ({
|
|
|
56687
56709
|
);
|
|
56688
56710
|
const { stepUserInput, hasNext } = form;
|
|
56689
56711
|
const { getStepHeaderStyle, stepListContentBoldTextStyle } = getStyles12(theme);
|
|
56690
|
-
const {
|
|
56691
|
-
|
|
56692
|
-
|
|
56693
|
-
|
|
56694
|
-
|
|
56695
|
-
`processSteps={processName}`
|
|
56696
|
-
);
|
|
56712
|
+
const {
|
|
56713
|
+
data: timeLineItems = [],
|
|
56714
|
+
isError: isError3,
|
|
56715
|
+
isLoading
|
|
56716
|
+
} = useGetTimeLineItemsQuery(processName);
|
|
56697
56717
|
if (isError3) {
|
|
56698
56718
|
if (!hasError) {
|
|
56699
56719
|
setHasError(true);
|
|
56700
56720
|
}
|
|
56701
56721
|
}
|
|
56702
|
-
const timeLineItems = ((_b = (_a = data == null ? void 0 : data.workflows) == null ? void 0 : _a.page[0]) == null ? void 0 : _b.steps) && !isLoading ? data.workflows.page[0].steps.map(({ name }) => {
|
|
56703
|
-
return {
|
|
56704
|
-
processStepStatus: "pending" /* PENDING */,
|
|
56705
|
-
stepDetail: name
|
|
56706
|
-
};
|
|
56707
|
-
}) : [];
|
|
56708
56722
|
const submit = useCallback6(
|
|
56709
56723
|
(processInput) => {
|
|
56710
56724
|
const startProcessPromise = apiClient.startProcess(
|
|
@@ -56728,9 +56742,9 @@ var WfoStartProcessPage = ({
|
|
|
56728
56742
|
throw e;
|
|
56729
56743
|
}
|
|
56730
56744
|
).catch((error) => {
|
|
56731
|
-
var
|
|
56732
|
-
if (((
|
|
56733
|
-
if (((
|
|
56745
|
+
var _a, _b;
|
|
56746
|
+
if (((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.status) !== 510) {
|
|
56747
|
+
if (((_b = error == null ? void 0 : error.response) == null ? void 0 : _b.status) === 400) {
|
|
56734
56748
|
throw error;
|
|
56735
56749
|
}
|
|
56736
56750
|
console.error(error);
|
|
@@ -56753,10 +56767,10 @@ var WfoStartProcessPage = ({
|
|
|
56753
56767
|
useEffect23(() => {
|
|
56754
56768
|
if (processName) {
|
|
56755
56769
|
const clientResultCallback = (json) => {
|
|
56756
|
-
var
|
|
56770
|
+
var _a;
|
|
56757
56771
|
setForm({
|
|
56758
56772
|
stepUserInput: json.form,
|
|
56759
|
-
hasNext: (
|
|
56773
|
+
hasNext: (_a = json.hasNext) != null ? _a : false
|
|
56760
56774
|
});
|
|
56761
56775
|
};
|
|
56762
56776
|
apiClient.catchErrorStatus(
|
|
@@ -56780,6 +56794,7 @@ var WfoStartProcessPage = ({
|
|
|
56780
56794
|
buttonsAreDisabled: true,
|
|
56781
56795
|
processDetail,
|
|
56782
56796
|
timelineItems: timeLineItems,
|
|
56797
|
+
isLoading,
|
|
56783
56798
|
children: /* @__PURE__ */ jsxs92(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
|
|
56784
56799
|
/* @__PURE__ */ jsxs92(EuiFlexGroup22, { css: getStepHeaderStyle(false), children: [
|
|
56785
56800
|
/* @__PURE__ */ jsx161(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
@@ -59446,7 +59461,6 @@ export {
|
|
|
59446
59461
|
ErrorsField,
|
|
59447
59462
|
GET_PROCESS_LIST_GRAPHQL_QUERY,
|
|
59448
59463
|
GET_PROCESS_LIST_SUMMARY_GRAPHQL_QUERY,
|
|
59449
|
-
GET_PROCESS_STEPS_GRAPHQL_QUERY,
|
|
59450
59464
|
GET_PRODUCTS_BLOCKS_GRAPHQL_QUERY,
|
|
59451
59465
|
GET_PRODUCTS_GRAPHQL_QUERY,
|
|
59452
59466
|
GET_PRODUCTS_SUMMARY_GRAPHQL_QUERY,
|
|
@@ -59700,6 +59714,7 @@ export {
|
|
|
59700
59714
|
parseIsoString,
|
|
59701
59715
|
prepareHeaders,
|
|
59702
59716
|
processListQuery,
|
|
59717
|
+
processStepsQuery,
|
|
59703
59718
|
removeSuffix,
|
|
59704
59719
|
removeToastMessage,
|
|
59705
59720
|
renderEmptyElementWhenNotAllowedByPolicy,
|
|
@@ -59719,6 +59734,7 @@ export {
|
|
|
59719
59734
|
useGetCustomersQuery,
|
|
59720
59735
|
useGetEngineStatusQuery,
|
|
59721
59736
|
useGetProcessListQuery,
|
|
59737
|
+
useGetTimeLineItemsQuery,
|
|
59722
59738
|
useGetTranslationMessages,
|
|
59723
59739
|
useMutateProcess,
|
|
59724
59740
|
useOrchestratorConfig,
|
package/package.json
CHANGED
|
@@ -246,7 +246,13 @@ class CustomTitleJSONSchemaBridge extends JSONSchemaBridge {
|
|
|
246
246
|
for (const key in combinedPartial) {
|
|
247
247
|
if (combinedPartial[key] && !_definition[key]) {
|
|
248
248
|
_definition[key] = combinedPartial[key];
|
|
249
|
-
|
|
249
|
+
|
|
250
|
+
// This isExtensible check is introduced to fix this bug: https://github.com/workfloworchestrator/orchestrator-ui-library/issues/878
|
|
251
|
+
// The reason the definition object is not extensible here but is in the same place in v1 is not known but
|
|
252
|
+
// deemed not worth to investigate further at this point.
|
|
253
|
+
if (Object.isExtensible(definition)) {
|
|
254
|
+
definition[key] = combinedPartial[key];
|
|
255
|
+
}
|
|
250
256
|
}
|
|
251
257
|
}
|
|
252
258
|
});
|
|
@@ -13,18 +13,17 @@ import {
|
|
|
13
13
|
EuiText,
|
|
14
14
|
} from '@elastic/eui';
|
|
15
15
|
|
|
16
|
-
import { PATH_TASKS,
|
|
16
|
+
import { PATH_TASKS, WfoError, WfoLoading } from '@/components';
|
|
17
17
|
import { PATH_WORKFLOWS } from '@/components';
|
|
18
18
|
import { useAxiosApiClient } from '@/components/WfoForms/useAxiosApiClient';
|
|
19
19
|
import { WfoStepStatusIcon } from '@/components/WfoWorkflowSteps';
|
|
20
20
|
import { getStyles } from '@/components/WfoWorkflowSteps/styles';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { useOrchestratorTheme } from '@/hooks';
|
|
22
|
+
import { useGetTimeLineItemsQuery } from '@/rtk';
|
|
23
23
|
import {
|
|
24
24
|
EngineStatus,
|
|
25
25
|
ProcessDetail,
|
|
26
26
|
ProcessStatus,
|
|
27
|
-
StartProcessStep,
|
|
28
27
|
StepStatus,
|
|
29
28
|
} from '@/types';
|
|
30
29
|
import { FormNotCompleteResponse } from '@/types/forms';
|
|
@@ -97,13 +96,11 @@ export const WfoStartProcessPage = ({
|
|
|
97
96
|
const { getStepHeaderStyle, stepListContentBoldTextStyle } =
|
|
98
97
|
getStyles(theme);
|
|
99
98
|
|
|
100
|
-
const {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
`processSteps={processName}`,
|
|
106
|
-
);
|
|
99
|
+
const {
|
|
100
|
+
data: timeLineItems = [],
|
|
101
|
+
isError,
|
|
102
|
+
isLoading,
|
|
103
|
+
} = useGetTimeLineItemsQuery(processName);
|
|
107
104
|
|
|
108
105
|
if (isError) {
|
|
109
106
|
if (!hasError) {
|
|
@@ -111,16 +108,6 @@ export const WfoStartProcessPage = ({
|
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
|
|
114
|
-
const timeLineItems: TimelineItem[] =
|
|
115
|
-
data?.workflows?.page[0]?.steps && !isLoading
|
|
116
|
-
? data.workflows.page[0].steps.map(({ name }: StartProcessStep) => {
|
|
117
|
-
return {
|
|
118
|
-
processStepStatus: StepStatus.PENDING,
|
|
119
|
-
stepDetail: name,
|
|
120
|
-
};
|
|
121
|
-
})
|
|
122
|
-
: [];
|
|
123
|
-
|
|
124
111
|
const submit = useCallback(
|
|
125
112
|
(processInput: object[]) => {
|
|
126
113
|
const startProcessPromise = apiClient
|
|
@@ -212,6 +199,7 @@ export const WfoStartProcessPage = ({
|
|
|
212
199
|
buttonsAreDisabled={true}
|
|
213
200
|
processDetail={processDetail}
|
|
214
201
|
timelineItems={timeLineItems}
|
|
202
|
+
isLoading={isLoading}
|
|
215
203
|
>
|
|
216
204
|
<EuiPanel css={{ marginTop: theme.base * 3 }}>
|
|
217
205
|
<EuiFlexGroup css={getStepHeaderStyle(false)}>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { TimelineItem } from '@/components';
|
|
2
|
+
import {
|
|
3
|
+
Process,
|
|
4
|
+
ProcessStepsResult,
|
|
5
|
+
StartProcessStep,
|
|
6
|
+
StepStatus,
|
|
7
|
+
} from '@/types';
|
|
8
|
+
|
|
9
|
+
import { orchestratorApi } from '../api';
|
|
10
|
+
|
|
11
|
+
export const processStepsQuery = `
|
|
12
|
+
query ProcessSteps($processName: String!) {
|
|
13
|
+
workflows(filterBy: { field: "name", value: $processName }) {
|
|
14
|
+
page {
|
|
15
|
+
steps {
|
|
16
|
+
name
|
|
17
|
+
assignee
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
const processStepApi = orchestratorApi.injectEndpoints({
|
|
25
|
+
endpoints: (build) => ({
|
|
26
|
+
getTimeLineItems: build.query<TimelineItem[], Process['workflowName']>({
|
|
27
|
+
query: (processName) => ({
|
|
28
|
+
document: processStepsQuery,
|
|
29
|
+
variables: { processName },
|
|
30
|
+
}),
|
|
31
|
+
transformResponse: (
|
|
32
|
+
response: ProcessStepsResult,
|
|
33
|
+
): TimelineItem[] => {
|
|
34
|
+
const timeLineItems: TimelineItem[] =
|
|
35
|
+
response.workflows.page[0].steps.map(
|
|
36
|
+
({ name }: StartProcessStep) => {
|
|
37
|
+
return {
|
|
38
|
+
processStepStatus: StepStatus.PENDING,
|
|
39
|
+
stepDetail: name,
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
return timeLineItems;
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
}),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export const { useGetTimeLineItemsQuery } = processStepApi;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { parse } from 'graphql';
|
|
2
|
-
import { gql } from 'graphql-request';
|
|
3
|
-
|
|
4
|
-
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
5
|
-
|
|
6
|
-
import { ProcessStepsResult } from '@/types';
|
|
7
|
-
|
|
8
|
-
export const GET_PROCESS_STEPS_GRAPHQL_QUERY: TypedDocumentNode<
|
|
9
|
-
ProcessStepsResult,
|
|
10
|
-
{ processName: string }
|
|
11
|
-
> = parse(gql`
|
|
12
|
-
query ProcessSteps($processName: String!) {
|
|
13
|
-
workflows(filterBy: { field: "name", value: $processName }) {
|
|
14
|
-
page {
|
|
15
|
-
steps {
|
|
16
|
-
name
|
|
17
|
-
assignee
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`);
|