@orchestrator-ui/orchestrator-ui-components 0.5.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@0.5.2 build
2
+ > @orchestrator-ui/orchestrator-ui-components@0.7.0 build
3
3
  > tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,6 +9,6 @@
9
9
  ESM Build start
10
10
  DTS Build start
11
11
  ESM dist/index.js 2.13 MB
12
- ESM ⚡️ Build success in 735ms
13
- DTS ⚡️ Build success in 11717ms
14
- DTS dist/index.d.ts 113.82 KB
12
+ ESM ⚡️ Build success in 734ms
13
+ DTS ⚡️ Build success in 11784ms
14
+ DTS dist/index.d.ts 114.03 KB
@@ -1,4 +1,4 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@0.5.2 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@0.7.0 lint
3
3
  > eslint "src/**/*.ts*"
4
4
 
@@ -1,32 +1,32 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@0.5.2 test
2
+ > @orchestrator-ui/orchestrator-ui-components@0.7.0 test
3
3
  > jest
4
4
 
5
5
  PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
6
6
  PASS Orchestrator UI Components Tests src/utils/date.spec.ts
7
7
  PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
8
+ PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
8
9
  PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
9
10
  PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
10
- PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
11
11
  PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
12
- PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.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/utils/tableConfigPersistence.spec.ts
14
14
  PASS Orchestrator UI Components Tests src/utils/string.spec.ts
15
15
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
16
16
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
17
17
  PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
18
18
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
19
19
  PASS Orchestrator UI Components Tests src/utils/sortObjectKeys.spec.ts
20
- PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
21
20
  PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
22
21
  PASS Orchestrator UI Components Tests src/utils/environmentVariables.spec.ts
23
- PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
22
+ PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
24
23
  PASS Orchestrator UI Components Tests src/utils/uuid.spec.ts
24
+ PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
25
25
  PASS Orchestrator UI Components Tests src/utils/getQueryVariablesForExport.spec.ts
26
26
  PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
27
27
 
28
28
  Test Suites: 22 passed, 22 total
29
29
  Tests: 131 passed, 131 total
30
30
  Snapshots: 0 total
31
- Time: 4.333 s
31
+ Time: 4.315 s
32
32
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5d20aec: Adds accesToken to RTK Query clients
8
+
9
+ ## 0.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - d44c55c: Fix ProcessDetailQuery by removing form subfields
14
+ - !WARNING: this version requires backend version 2.1.0.
15
+ - It changes the graphql processes.page.form to a JSON type, so there are no subfields to request and will respond with an error.
16
+
3
17
  ## 0.5.2
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -949,26 +949,26 @@ declare const useStoredTableConfig: <T>(localeStorageKey: string) => () => Store
949
949
 
950
950
  declare function useWithOrchestratorTheme<T>(getStylesFunction: (theme: EuiThemeComputed) => T): T;
951
951
 
952
- declare type SessionToken = Session & {
952
+ declare type SessionWithToken = Session & {
953
953
  accessToken?: string;
954
954
  };
955
955
  declare const useSessionWithToken: () => {
956
- session: SessionToken;
956
+ session: SessionWithToken;
957
957
  update: (data?: any) => Promise<Session | null>;
958
958
  data: Session;
959
959
  status: "authenticated";
960
960
  } | {
961
- session: SessionToken;
961
+ session: SessionWithToken;
962
962
  update: (data?: any) => Promise<Session | null>;
963
963
  data: null;
964
964
  status: "unauthenticated" | "loading";
965
965
  } | {
966
- session: SessionToken;
966
+ session: SessionWithToken;
967
967
  update: (data?: any) => Promise<Session | null>;
968
968
  data: Session;
969
969
  status: "authenticated";
970
970
  } | {
971
- session: SessionToken;
971
+ session: SessionWithToken;
972
972
  update: (data?: any) => Promise<Session | null>;
973
973
  data: null;
974
974
  status: "loading";
@@ -1701,7 +1701,7 @@ declare type ProcessListItem = Pick<Process, 'workflowName' | 'lastStep' | 'last
1701
1701
  startedAt: Date;
1702
1702
  lastModifiedAt: Date;
1703
1703
  productName?: string;
1704
- productTag?: string;
1704
+ tag?: string;
1705
1705
  customer: string;
1706
1706
  customerAbbreviation: string;
1707
1707
  };
@@ -2913,6 +2913,9 @@ declare const addToastMessage: _reduxjs_toolkit.ActionCreatorWithPayload<Toast,
2913
2913
  declare const removeToastMessage: _reduxjs_toolkit.ActionCreatorWithPayload<string, "toastMessages/removeToastMessage">;
2914
2914
  declare const toastMessagesReducer: Reducer<ToastState>;
2915
2915
 
2916
+ declare type OrchestratorConfigSlice = Slice<OrchestratorConfig>;
2917
+ declare const getOrchestratorConfigSlice: (config: OrchestratorConfig) => OrchestratorConfigSlice;
2918
+
2916
2919
  declare type RootState = {
2917
2920
  orchestratorApi: CombinedState<Record<string, never>, 'engineStatus', 'orchestratorApi'>;
2918
2921
  toastMessages: ReturnType<typeof toastMessagesReducer>;
@@ -2927,4 +2930,4 @@ declare type StoreProviderProps = {
2927
2930
  };
2928
2931
  declare const StoreProvider: ({ initialOrchestratorConfig, children, }: StoreProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
2929
2932
 
2930
- 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, type ColumnConfig, type ConfirmDialogActions, ConfirmationDialogContext, ConfirmationDialogContextWrapper, ConfirmationDialogProvider, ContactPersonNameField, type ContactPersonNameFieldProps, CreateForm, 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 Field, type FieldValue, type FilterQuery, type FixedInputDefinition, GET_PROCESS_DETAIL_GRAPHQL_QUERY, 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, 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, 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 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, SelectField, type SelectFieldProps, type SessionToken, 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, type UserInputForm, UserInputFormWizard, 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, WfoInformationModal, type WfoInformationModalProps, WfoInsyncIcon, WfoJsonCodeBlock, type WfoJsonCodeBlockProps, WfoKeyCell, type WfoKeyCellProps, WfoKeyValueTable, type WfoKeyValueTableDataType, type WfoKeyValueTableProps, WfoLoading, WfoLogoutIcon, WfoMinusCircleFill, WfoMinusCircleOutline, WfoModifySettings, WfoPageHeader, type WfoPageHeaderProps, WfoPageTemplate, type WfoPageTemplateProps, WfoPencil, WfoPencilAlt, WfoPlayCircle, WfoPlayFill, WfoPlusCircleFill, 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, 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, WfoValueCell, type WfoValueCellProps, WfoViewList, WfoWorkflowStepList, type WfoWorkflowStepListProps, WfoWorkflowTargetBadge, type WfoWorkflowTargetBadgeProps, WfoWorkflowsListPage, WfoWorkflowsPage, WfoXCircleFill, type WorkflowDefinition, type WorkflowDefinitionsResult, type WorkflowListItem, WorkflowTarget, addToastMessage, calculateTimeDifference, camelToHuman, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultTasksListTabs, determineNewSortOrder, determinePageIndex, flattenArrayProps, formatDate, formatDateCetWithUtc, getApiClient, getCurrentBrowserLocale, getDataSortHandler, getDate, getFieldFromProductBlockInstanceValues, getFirstUuidPart, getInitialColumnOrder, getNumberValueFromEnvironmentVariable, 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, orchestratorApi, parseDate, parseDateOrTimeRelativeToToday, parseDateRelativeToToday, parseDateToLocaleDateString, parseDateToLocaleDateTimeString, parseDateToLocaleTimeString, parseIsoString, processListQuery, removeSuffix, removeToastMessage, setTableConfigToLocalStorage, stop, toastMessagesReducer, toastMessagesSlice, upperCaseFirstChar, useCacheNames, useCheckEngineStatus, useClearCacheMutation, useDataDisplayParams, useFilterQueryWithRest, useGetCustomersQuery, useGetEngineStatusQuery, useGetProcessListQuery, useGetTranslationMessages, useMutateProcess, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useQueryWithFetch, useQueryWithGraphql, useQueryWithGraphqlLazy, useRawProcessDetails, useSessionWithToken, useSetEngineStatusMutation, useShowToastMessage, useStoredTableConfig, useSubscriptionActions, useWithOrchestratorTheme, utcTimestampToLocalMoment };
2933
+ 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, type ColumnConfig, type ConfirmDialogActions, ConfirmationDialogContext, ConfirmationDialogContextWrapper, ConfirmationDialogProvider, ContactPersonNameField, type ContactPersonNameFieldProps, CreateForm, 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 Field, type FieldValue, type FilterQuery, type FixedInputDefinition, GET_PROCESS_DETAIL_GRAPHQL_QUERY, 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, 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, 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 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, SelectField, type SelectFieldProps, type SessionWithToken, 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, type UserInputForm, UserInputFormWizard, 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, WfoInformationModal, type WfoInformationModalProps, WfoInsyncIcon, WfoJsonCodeBlock, type WfoJsonCodeBlockProps, WfoKeyCell, type WfoKeyCellProps, WfoKeyValueTable, type WfoKeyValueTableDataType, type WfoKeyValueTableProps, WfoLoading, WfoLogoutIcon, WfoMinusCircleFill, WfoMinusCircleOutline, WfoModifySettings, WfoPageHeader, type WfoPageHeaderProps, WfoPageTemplate, type WfoPageTemplateProps, WfoPencil, WfoPencilAlt, WfoPlayCircle, WfoPlayFill, WfoPlusCircleFill, 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, 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, WfoValueCell, type WfoValueCellProps, WfoViewList, WfoWorkflowStepList, type WfoWorkflowStepListProps, WfoWorkflowTargetBadge, type WfoWorkflowTargetBadgeProps, WfoWorkflowsListPage, WfoWorkflowsPage, WfoXCircleFill, type WorkflowDefinition, type WorkflowDefinitionsResult, type WorkflowListItem, WorkflowTarget, addToastMessage, calculateTimeDifference, camelToHuman, clearTableConfigFromLocalStorage, defaultOrchestratorTheme, defaultTasksListTabs, determineNewSortOrder, determinePageIndex, flattenArrayProps, formatDate, formatDateCetWithUtc, getApiClient, getCurrentBrowserLocale, getDataSortHandler, getDate, getFieldFromProductBlockInstanceValues, getFirstUuidPart, getInitialColumnOrder, 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, orchestratorApi, parseDate, parseDateOrTimeRelativeToToday, parseDateRelativeToToday, parseDateToLocaleDateString, parseDateToLocaleDateTimeString, parseDateToLocaleTimeString, parseIsoString, processListQuery, removeSuffix, removeToastMessage, setTableConfigToLocalStorage, stop, toastMessagesReducer, toastMessagesSlice, upperCaseFirstChar, useCacheNames, useCheckEngineStatus, useClearCacheMutation, useDataDisplayParams, useFilterQueryWithRest, useGetCustomersQuery, useGetEngineStatusQuery, useGetProcessListQuery, useGetTranslationMessages, useMutateProcess, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useQueryWithFetch, useQueryWithGraphql, useQueryWithGraphqlLazy, useRawProcessDetails, useSessionWithToken, useSetEngineStatusMutation, useShowToastMessage, useStoredTableConfig, useSubscriptionActions, useWithOrchestratorTheme, utcTimestampToLocalMoment };
package/dist/index.js CHANGED
@@ -34715,6 +34715,9 @@ var WfoBadge = (_a) => {
34715
34715
  // src/hooks/useCheckEngineStatus.ts
34716
34716
  import { useTranslations } from "next-intl";
34717
34717
 
34718
+ // src/rtk/api.ts
34719
+ import { getSession } from "next-auth/react";
34720
+
34718
34721
  // ../../node_modules/@reduxjs/toolkit/node_modules/redux/dist/redux.mjs
34719
34722
  function formatProdErrorMessage(code) {
34720
34723
  return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
@@ -37607,7 +37610,7 @@ function stripUndefined(obj) {
37607
37610
  function fetchBaseQuery(_a = {}) {
37608
37611
  var _b = _a, {
37609
37612
  baseUrl,
37610
- prepareHeaders = (x) => x,
37613
+ prepareHeaders: prepareHeaders2 = (x) => x,
37611
37614
  fetchFn = defaultFetchFn,
37612
37615
  paramsSerializer,
37613
37616
  isJsonContentType = defaultIsJsonContentType,
@@ -37662,7 +37665,7 @@ function fetchBaseQuery(_a = {}) {
37662
37665
  signal
37663
37666
  }), rest);
37664
37667
  headers = new Headers(stripUndefined(headers));
37665
- config.headers = (yield prepareHeaders(headers, {
37668
+ config.headers = (yield prepareHeaders2(headers, {
37666
37669
  getState,
37667
37670
  extra,
37668
37671
  endpoint,
@@ -40265,6 +40268,13 @@ var BaseQueryTypes = /* @__PURE__ */ ((BaseQueryTypes2) => {
40265
40268
  BaseQueryTypes2["custom"] = "custom";
40266
40269
  return BaseQueryTypes2;
40267
40270
  })(BaseQueryTypes || {});
40271
+ var prepareHeaders = (headers) => __async(void 0, null, function* () {
40272
+ const session = yield getSession();
40273
+ if (session == null ? void 0 : session.accessToken) {
40274
+ headers.set("Authorization", `Bearer ${session.accessToken}`);
40275
+ }
40276
+ return headers;
40277
+ });
40268
40278
  var orchestratorApi = createApi2({
40269
40279
  reducerPath: "orchestratorApi",
40270
40280
  baseQuery: (args, api, extraOptions) => {
@@ -40274,12 +40284,14 @@ var orchestratorApi = createApi2({
40274
40284
  switch (baseQueryType) {
40275
40285
  case "fetch" /* fetch */:
40276
40286
  const fetchFn = fetchBaseQuery({
40277
- baseUrl: orchestratorApiBaseUrl
40287
+ baseUrl: orchestratorApiBaseUrl,
40288
+ prepareHeaders
40278
40289
  });
40279
40290
  return fetchFn(args, api, {});
40280
40291
  default:
40281
40292
  const graphqlFn = graphqlRequestBaseQuery({
40282
- url: graphqlEndpointCore
40293
+ url: graphqlEndpointCore,
40294
+ prepareHeaders
40283
40295
  });
40284
40296
  return graphqlFn(args, api, {});
40285
40297
  }
@@ -47707,14 +47719,7 @@ var GET_PROCESS_DETAIL_GRAPHQL_QUERY = parse(gql7`
47707
47719
  lastStep
47708
47720
  workflowName
47709
47721
  isTask
47710
- form {
47711
- additionalProperties
47712
- definitions
47713
- properties
47714
- required
47715
- title
47716
- type
47717
- }
47722
+ form
47718
47723
  steps {
47719
47724
  name
47720
47725
  status
@@ -52097,7 +52102,7 @@ function SubscriptionFieldDefinition(_a) {
52097
52102
  onChange(option == null ? void 0 : option.value);
52098
52103
  },
52099
52104
  options,
52100
- value: isDisabled ? null : selectedValue,
52105
+ value: selectedValue,
52101
52106
  isSearchable: true,
52102
52107
  isClearable: false,
52103
52108
  placeholder: isFetching ? t("widgets.subscription.loading") : t("widgets.subscription.placeholder"),
@@ -57072,7 +57077,7 @@ var WfoTasksListPage = () => {
57072
57077
  lastStep: defaultTableColumns.lastStep,
57073
57078
  lastStatus: defaultTableColumns.lastStatus,
57074
57079
  workflowTarget: defaultTableColumns.workflowTarget,
57075
- productTag: defaultTableColumns.productTag,
57080
+ productTag: defaultTableColumns.tag,
57076
57081
  productName: defaultTableColumns.productName,
57077
57082
  customer: defaultTableColumns.customer,
57078
57083
  customerAbbreviation: defaultTableColumns.customerAbbreviation,
@@ -57286,7 +57291,7 @@ var mapGraphQlProcessListResultToProcessListItems = (processes) => processes.map
57286
57291
  lastModifiedAt: new Date(lastModifiedAt),
57287
57292
  subscriptions,
57288
57293
  productName: product == null ? void 0 : product.name,
57289
- productTag: product == null ? void 0 : product.tag,
57294
+ tag: product == null ? void 0 : product.tag,
57290
57295
  customer: customer.fullname,
57291
57296
  customerAbbreviation: customer.shortcode
57292
57297
  };
@@ -57333,8 +57338,8 @@ var fieldMapper = (field) => {
57333
57338
  return "customerShortcode";
57334
57339
  case "productName":
57335
57340
  return "productName";
57336
- case "productTag":
57337
- return "productTag";
57341
+ case "tag":
57342
+ return "tag";
57338
57343
  default:
57339
57344
  return field;
57340
57345
  }
@@ -57389,8 +57394,8 @@ var WfoProcessesList = ({
57389
57394
  width: "100",
57390
57395
  render: (target) => /* @__PURE__ */ jsx164(WfoWorkflowTargetBadge, { target })
57391
57396
  },
57392
- productTag: {
57393
- field: "productTag",
57397
+ tag: {
57398
+ field: "tag",
57394
57399
  name: t("productTag"),
57395
57400
  width: "100"
57396
57401
  },
@@ -57953,7 +57958,7 @@ var en_GB_default = {
57953
57958
  products: {
57954
57959
  id: "ID",
57955
57960
  name: "Product",
57956
- tag: "Product tag",
57961
+ tag: "Tag",
57957
57962
  description: "Product description",
57958
57963
  productType: "Type",
57959
57964
  status: "Status",
@@ -58062,7 +58067,7 @@ var en_GB_default = {
58062
58067
  status: "Status",
58063
58068
  insync: "In Sync",
58064
58069
  product: "Product",
58065
- tag: "Tag",
58070
+ tag: "Product tag",
58066
58071
  startDate: "Start date",
58067
58072
  endDate: "End date",
58068
58073
  note: "Note",
@@ -58796,6 +58801,7 @@ export {
58796
58801
  getFirstUuidPart,
58797
58802
  getInitialColumnOrder,
58798
58803
  getNumberValueFromEnvironmentVariable,
58804
+ getOrchestratorConfigSlice,
58799
58805
  getOrchestratorStore,
58800
58806
  getPageChangeHandler,
58801
58807
  getProcessListGraphQlQuery,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "0.5.2",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -333,7 +333,7 @@ function SubscriptionFieldDefinition({
333
333
  onChange(option?.value);
334
334
  }}
335
335
  options={options}
336
- value={isDisabled ? null : selectedValue}
336
+ value={selectedValue}
337
337
  isSearchable={true}
338
338
  isClearable={false}
339
339
  placeholder={
@@ -59,7 +59,7 @@ export type ProcessListItem = Pick<
59
59
  startedAt: Date;
60
60
  lastModifiedAt: Date;
61
61
  productName?: string;
62
- productTag?: string;
62
+ tag?: string;
63
63
  customer: string;
64
64
  customerAbbreviation: string;
65
65
  };
@@ -120,8 +120,8 @@ export const WfoProcessesList = ({
120
120
  width: '100',
121
121
  render: (target) => <WfoWorkflowTargetBadge target={target} />,
122
122
  },
123
- productTag: {
124
- field: 'productTag',
123
+ tag: {
124
+ field: 'tag',
125
125
  name: t('productTag'),
126
126
  width: '100',
127
127
  },
@@ -44,7 +44,7 @@ export const mapGraphQlProcessListResultToProcessListItems = (
44
44
  lastModifiedAt: new Date(lastModifiedAt),
45
45
  subscriptions,
46
46
  productName: product?.name,
47
- productTag: product?.tag,
47
+ tag: product?.tag,
48
48
  customer: customer.fullname,
49
49
  customerAbbreviation: customer.shortcode,
50
50
  };
@@ -101,8 +101,8 @@ const fieldMapper = (field: keyof ProcessListItem): keyof Process => {
101
101
  return 'customerShortcode' as keyof Process;
102
102
  case 'productName':
103
103
  return 'productName' as keyof Process;
104
- case 'productTag':
105
- return 'productTag' as keyof Process;
104
+ case 'tag':
105
+ return 'tag' as keyof Process;
106
106
  default:
107
107
  return field;
108
108
  }
@@ -20,14 +20,7 @@ export const GET_PROCESS_DETAIL_GRAPHQL_QUERY: TypedDocumentNode<
20
20
  lastStep
21
21
  workflowName
22
22
  isTask
23
- form {
24
- additionalProperties
25
- definitions
26
- properties
27
- required
28
- title
29
- type
30
- }
23
+ form
31
24
  steps {
32
25
  name
33
26
  status
@@ -1,12 +1,12 @@
1
- import { Session } from 'next-auth';
1
+ import type { Session } from 'next-auth';
2
2
  import { useSession } from 'next-auth/react';
3
3
 
4
- export type SessionToken = Session & {
4
+ export type SessionWithToken = Session & {
5
5
  accessToken?: string;
6
6
  };
7
7
 
8
8
  export const useSessionWithToken = () => {
9
9
  const sessionData = useSession();
10
- const dataWithToken = sessionData.data as SessionToken;
10
+ const dataWithToken = sessionData.data as SessionWithToken;
11
11
  return { ...sessionData, session: dataWithToken };
12
12
  };
@@ -120,7 +120,7 @@
120
120
  "products": {
121
121
  "id": "ID",
122
122
  "name": "Product",
123
- "tag": "Product tag",
123
+ "tag": "Tag",
124
124
  "description": "Product description",
125
125
  "productType": "Type",
126
126
  "status": "Status",
@@ -229,7 +229,7 @@
229
229
  "status": "Status",
230
230
  "insync": "In Sync",
231
231
  "product": "Product",
232
- "tag": "Tag",
232
+ "tag": "Product tag",
233
233
  "startDate": "Start date",
234
234
  "endDate": "End date",
235
235
  "note": "Note",
@@ -126,7 +126,7 @@ export const WfoTasksListPage = () => {
126
126
  lastStep: defaultTableColumns.lastStep,
127
127
  lastStatus: defaultTableColumns.lastStatus,
128
128
  workflowTarget: defaultTableColumns.workflowTarget,
129
- productTag: defaultTableColumns.productTag,
129
+ productTag: defaultTableColumns.tag,
130
130
  productName: defaultTableColumns.productName,
131
131
  customer: defaultTableColumns.customer,
132
132
  customerAbbreviation: defaultTableColumns.customerAbbreviation,
package/src/rtk/api.ts CHANGED
@@ -1,6 +1,10 @@
1
+ import { getSession } from 'next-auth/react';
2
+
1
3
  import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
2
4
  import { graphqlRequestBaseQuery } from '@rtk-query/graphql-request-base-query';
3
5
 
6
+ import type { SessionWithToken } from '@/hooks';
7
+
4
8
  import type { RootState } from './store';
5
9
 
6
10
  export enum BaseQueryTypes {
@@ -13,6 +17,14 @@ type ExtraOptions = {
13
17
  baseQueryType?: BaseQueryTypes;
14
18
  };
15
19
 
20
+ const prepareHeaders = async (headers: Headers) => {
21
+ const session = (await getSession()) as SessionWithToken;
22
+ if (session?.accessToken) {
23
+ headers.set('Authorization', `Bearer ${session.accessToken}`);
24
+ }
25
+ return headers;
26
+ };
27
+
16
28
  export const orchestratorApi = createApi({
17
29
  reducerPath: 'orchestratorApi',
18
30
  baseQuery: (args, api, extraOptions: ExtraOptions) => {
@@ -26,11 +38,13 @@ export const orchestratorApi = createApi({
26
38
  case BaseQueryTypes.fetch:
27
39
  const fetchFn = fetchBaseQuery({
28
40
  baseUrl: orchestratorApiBaseUrl,
41
+ prepareHeaders,
29
42
  });
30
43
  return fetchFn(args, api, {});
31
44
  default:
32
45
  const graphqlFn = graphqlRequestBaseQuery({
33
46
  url: graphqlEndpointCore,
47
+ prepareHeaders,
34
48
  });
35
49
  return graphqlFn(args, api, {});
36
50
  }
@@ -1 +1,2 @@
1
1
  export * from './toastMessages';
2
+ export * from './orchestratorConfig';
package/src/rtk/store.ts CHANGED
@@ -6,8 +6,7 @@ import { CombinedState } from '@reduxjs/toolkit/query';
6
6
  import type { OrchestratorConfig } from '@/types';
7
7
 
8
8
  import { orchestratorApi } from './api';
9
- import { getOrchestratorConfigSlice } from './slices/orchestratorConfig';
10
- import { toastMessagesReducer } from './slices/toastMessages';
9
+ import { getOrchestratorConfigSlice, toastMessagesReducer } from './slices';
11
10
 
12
11
  export type RootState = {
13
12
  orchestratorApi: CombinedState<