@pimcore/copilot-bundle 2.5.0-canary.20260403-151124-4d76fa0 → 2.5.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.
- package/dist/build/types/modules/copilot/components/refetch/refetch.d.ts +16 -0
- package/dist/build/types/modules/copilot/copilot-api-slice-enhanced.d.ts +4420 -196
- package/dist/build/types/modules/copilot/copilot-api-slice.gen.d.ts +5278 -318
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/action-permissions-tab/action-permissions-tab.d.ts +16 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/action-permissions-tab/action-permissions-tab.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/general-tab/general-tab.d.ts +11 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/help-info-sidebar/help-info-sidebar.d.ts +15 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/help-info-sidebar/help-info-sidebar.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/workspaces-section/workspaces-section.d.ts +26 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/components/workspaces-section/workspaces-section.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/helpers.d.ts +10 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/environment-variables-tab/components/environment-variable-item/environment-variable-item.d.ts +13 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/environment-variables-tab/environment-variables-tab.d.ts +16 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/post-interaction-tab/post-interaction-tab.d.ts +11 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/steps-tab/components/step-item/step-item.d.ts +17 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/steps-tab/steps-tab.d.ts +16 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/triggers-tab/components/events-trigger/events-trigger.d.ts +21 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/triggers-tab/components/manual-trigger/manual-trigger.d.ts +16 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/triggers-tab/components/schedule-trigger/schedule-trigger.d.ts +20 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/triggers-tab/constants.d.ts +13 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/components/triggers-tab/triggers-tab.d.ts +17 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/template-automation-configuration.d.ts +19 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-automation-configuration/template-automation-configuration.styles.d.ts +15 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-interaction-configuration/components/type-tab/type-tab.d.ts +17 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-interaction-configuration/template-interaction-configuration.d.ts +19 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-configurations/template-interaction-configuration/template-interaction-configuration.styles.d.ts +15 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-sidebar/components/toolbar/toolbar.d.ts +18 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-sidebar/constants.d.ts +18 -0
- package/dist/build/types/modules/copilot/copilot-configuration/components/template-sidebar/template-sidebar.d.ts +23 -0
- package/dist/build/types/modules/copilot/copilot-configuration/copilot-configuration.d.ts +13 -0
- package/dist/build/types/modules/copilot/copilot-configuration/copilot-configuration.styles.d.ts +17 -0
- package/dist/build/types/modules/copilot/copilot-configuration/hooks/use-copilot-config-actions.d.ts +22 -0
- package/dist/build/types/modules/copilot/copilot-configuration/hooks/use-copilot-config-form-state.d.ts +106 -0
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type ICopilotConfigFormData } from '../../../../hooks/use-copilot-config-form-state';
|
|
12
|
+
export interface IActionPermissionsTabProps {
|
|
13
|
+
currentData: ICopilotConfigFormData;
|
|
14
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ActionPermissionsTab: ({ currentData, updateFormData }: IActionPermissionsTabProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
addIcon: import("antd-style").SerializedStyles;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export declare const GeneralTab: () => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export interface IHelpInfoSidebarProps {
|
|
12
|
+
helpInfo?: string;
|
|
13
|
+
defaultHelpInfo: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const HelpInfoSidebar: ({ helpInfo, defaultHelpInfo }: IHelpInfoSidebarProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
title: any;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export type WorkspaceType = 'document' | 'asset' | 'object';
|
|
12
|
+
export interface WorkspaceEntry {
|
|
13
|
+
cpath: string;
|
|
14
|
+
include: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface Workspaces {
|
|
17
|
+
document: WorkspaceEntry[];
|
|
18
|
+
asset: WorkspaceEntry[];
|
|
19
|
+
object: WorkspaceEntry[];
|
|
20
|
+
}
|
|
21
|
+
export interface IWorkspacesSectionProps {
|
|
22
|
+
workspaces: Workspaces;
|
|
23
|
+
onUpdate: (workspaces: Workspaces) => void;
|
|
24
|
+
activeType?: WorkspaceType;
|
|
25
|
+
}
|
|
26
|
+
export declare const WorkspacesSection: (props: IWorkspacesSectionProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
addButton: import("antd-style").SerializedStyles;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const applyChanges: (target: any, changes: object, path?: string[]) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export declare const EnvironmentVariableItem: ({ onConfigurationFocus }: {
|
|
12
|
+
onConfigurationFocus: () => void;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type ICopilotConfigFormData } from '../../../../../hooks/use-copilot-config-form-state';
|
|
12
|
+
export interface IEnvironmentVariablesTabProps {
|
|
13
|
+
currentData: ICopilotConfigFormData;
|
|
14
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const EnvironmentVariablesTab: ({ currentData, updateFormData }: IEnvironmentVariablesTabProps) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export declare const PostInteractionTab: () => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export declare const StepItem: ({ onConfigurationFocus, stepImplementationOptions }: {
|
|
12
|
+
onConfigurationFocus: (stepImplementation: string | undefined) => void;
|
|
13
|
+
stepImplementationOptions?: Array<{
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}>;
|
|
17
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type ICopilotConfigFormData } from '../../../../../hooks/use-copilot-config-form-state';
|
|
12
|
+
export interface IStepsTabProps {
|
|
13
|
+
currentData: ICopilotConfigFormData;
|
|
14
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const StepsTab: ({ currentData, updateFormData }: IStepsTabProps) => React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type BundleCopilotConfigurationEventsListApiResponse, type BundleCopilotConfigurationWorkflowsListApiResponse, type BundleCopilotConfigurationAutomationActionPreconditionFiltersListApiResponse } from '../../../../../../../../copilot-api-slice.gen';
|
|
12
|
+
import { type ICopilotConfigFormData } from '../../../../../../../hooks/use-copilot-config-form-state';
|
|
13
|
+
interface IEventsTriggerProps {
|
|
14
|
+
currentData: ICopilotConfigFormData;
|
|
15
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
16
|
+
eventsData?: BundleCopilotConfigurationEventsListApiResponse;
|
|
17
|
+
workflowsData?: BundleCopilotConfigurationWorkflowsListApiResponse;
|
|
18
|
+
preconditionFiltersData?: BundleCopilotConfigurationAutomationActionPreconditionFiltersListApiResponse;
|
|
19
|
+
}
|
|
20
|
+
export declare const EventsTrigger: ({ currentData, updateFormData, eventsData, workflowsData, preconditionFiltersData }: IEventsTriggerProps) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type BundleCopilotConfigurationContextLimitationsListApiResponse } from '../../../../../../../../copilot-api-slice.gen';
|
|
12
|
+
interface IManualTriggerProps {
|
|
13
|
+
contextLimitationsData?: BundleCopilotConfigurationContextLimitationsListApiResponse;
|
|
14
|
+
}
|
|
15
|
+
export declare const ManualTrigger: ({ contextLimitationsData }: IManualTriggerProps) => React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type BundleCopilotDataObjectsListApiResponse, type BundleCopilotConfigurationAutomationActionPreconditionFiltersListApiResponse } from '../../../../../../../../copilot-api-slice.gen';
|
|
12
|
+
import { type ICopilotConfigFormData } from '../../../../../../../hooks/use-copilot-config-form-state';
|
|
13
|
+
interface IScheduleTriggerProps {
|
|
14
|
+
currentData: ICopilotConfigFormData;
|
|
15
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
16
|
+
dataObjectsData?: BundleCopilotDataObjectsListApiResponse;
|
|
17
|
+
preconditionFiltersData?: BundleCopilotConfigurationAutomationActionPreconditionFiltersListApiResponse;
|
|
18
|
+
}
|
|
19
|
+
export declare const ScheduleTrigger: ({ currentData, updateFormData, dataObjectsData, preconditionFiltersData }: IScheduleTriggerProps) => React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const ELEMENT_TYPE_OPTIONS: {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type ICopilotConfigFormData } from '../../../../../hooks/use-copilot-config-form-state';
|
|
12
|
+
interface ITriggersTabProps {
|
|
13
|
+
currentData: ICopilotConfigFormData;
|
|
14
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const TriggersTab: ({ currentData, updateFormData }: ITriggersTabProps) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type BundleCopilotConfigurationTreeNode } from '../../../../copilot-api-slice-enhanced';
|
|
12
|
+
interface ITemplateAutomationConfigurationProps {
|
|
13
|
+
config: BundleCopilotConfigurationTreeNode;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
modifiedConfigs: string[];
|
|
16
|
+
setModifiedConfigs: (modifiedConfigs: string[]) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const TemplateAutomationConfiguration: ({ config, isActive, modifiedConfigs, setModifiedConfigs }: ITemplateAutomationConfigurationProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
tabsContainer: import("antd-style").SerializedStyles;
|
|
12
|
+
tabs: import("antd-style").SerializedStyles;
|
|
13
|
+
content: import("antd-style").SerializedStyles;
|
|
14
|
+
form: import("antd-style").SerializedStyles;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type ICopilotConfigFormData } from '../../../../../hooks/use-copilot-config-form-state';
|
|
12
|
+
interface ITypeTabProps {
|
|
13
|
+
currentData: ICopilotConfigFormData;
|
|
14
|
+
updateFormData: (data: ICopilotConfigFormData) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const TypeTab: ({ currentData, updateFormData }: ITypeTabProps) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type BundleCopilotConfigurationTreeNode } from '../../../../copilot-api-slice-enhanced';
|
|
12
|
+
interface ITemplateInteractionConfigurationProps {
|
|
13
|
+
config: BundleCopilotConfigurationTreeNode;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
modifiedConfigs: string[];
|
|
16
|
+
setModifiedConfigs: (modifiedConfigs: string[]) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const TemplateInteractionConfiguration: ({ config, isActive, modifiedConfigs, setModifiedConfigs }: ITemplateInteractionConfigurationProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
tabsContainer: import("antd-style").SerializedStyles;
|
|
12
|
+
tabs: import("antd-style").SerializedStyles;
|
|
13
|
+
content: import("antd-style").SerializedStyles;
|
|
14
|
+
form: import("antd-style").SerializedStyles;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
interface IToolbarProps {
|
|
12
|
+
isFetching: boolean;
|
|
13
|
+
refetch: () => void;
|
|
14
|
+
handleInteractionConfigAdd: () => void;
|
|
15
|
+
handleAutomationConfigAdd: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const Toolbar: ({ isFetching, refetch, handleInteractionConfigAdd, handleAutomationConfigAdd }: IToolbarProps) => React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare enum ConfigAction {
|
|
11
|
+
CLONE = "clone",
|
|
12
|
+
EXPORT = "export",
|
|
13
|
+
DELETE = "delete"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ActionType {
|
|
16
|
+
INTERACTION = "interaction",
|
|
17
|
+
AUTOMATION = "automation"
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type BundleCopilotConfigurationsListApiResponse, type BundleCopilotConfigurationTreeNode } from '../../../copilot-api-slice.gen';
|
|
12
|
+
interface ITemplateSidebarProps {
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
isFetching: boolean;
|
|
15
|
+
refetch: () => Promise<{
|
|
16
|
+
data?: BundleCopilotConfigurationsListApiResponse;
|
|
17
|
+
}>;
|
|
18
|
+
configsList?: BundleCopilotConfigurationsListApiResponse['items'];
|
|
19
|
+
handleOpenConfig: (config: BundleCopilotConfigurationTreeNode) => void;
|
|
20
|
+
handleCloseConfig: (id: BundleCopilotConfigurationTreeNode['id']) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const TemplateSidebar: ({ isLoading, refetch, isFetching, configsList, handleOpenConfig, handleCloseConfig }: ITemplateSidebarProps) => React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export declare const REFETCH_BTN_PORTAL_ID = "copilot-config-toolbar-refetch-btn";
|
|
12
|
+
export declare const SAVE_BTN_PORTAL_ID = "copilot-config-toolbar-save-btn";
|
|
13
|
+
export declare const CopilotConfiguration: () => React.JSX.Element;
|
package/dist/build/types/modules/copilot/copilot-configuration/copilot-configuration.styles.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
sidebarTemplateItem: any;
|
|
12
|
+
sidebarTemplateItemIcon: any;
|
|
13
|
+
sidebarTemplateItemTitle: any;
|
|
14
|
+
tabsContainer: any;
|
|
15
|
+
tabs: any;
|
|
16
|
+
newLabel: any;
|
|
17
|
+
}>;
|
package/dist/build/types/modules/copilot/copilot-configuration/hooks/use-copilot-config-actions.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type BundleCopilotConfigurationInteractionActionCreateApiArg, type BundleCopilotConfigurationInteractionActionDeleteApiArg, type BundleCopilotConfigurationInteractionActionUpdateApiArg, type BundleCopilotConfigurationAutomationActionCreateApiArg, type BundleCopilotConfigurationAutomationActionDeleteApiArg, type BundleCopilotConfigurationAutomationActionUpdateApiArg, type BundleCopilotConfigurationCloneApiArg, type BundleCopilotConfigurationExportApiArg } from '../../copilot-api-slice-enhanced';
|
|
11
|
+
interface IUseCopilotConfigActionsReturn {
|
|
12
|
+
cloneAction: (arg: BundleCopilotConfigurationCloneApiArg) => Promise<void>;
|
|
13
|
+
exportAction: (arg: BundleCopilotConfigurationExportApiArg) => Promise<void>;
|
|
14
|
+
addInteractionAction: (arg: BundleCopilotConfigurationInteractionActionCreateApiArg) => Promise<void>;
|
|
15
|
+
deleteInteractionAction: (arg: BundleCopilotConfigurationInteractionActionDeleteApiArg) => Promise<void>;
|
|
16
|
+
updateInteractionAction: (arg: BundleCopilotConfigurationInteractionActionUpdateApiArg) => Promise<boolean>;
|
|
17
|
+
addAutomationAction: (arg: BundleCopilotConfigurationAutomationActionCreateApiArg) => Promise<void>;
|
|
18
|
+
deleteAutomationAction: (arg: BundleCopilotConfigurationAutomationActionDeleteApiArg) => Promise<void>;
|
|
19
|
+
updateAutomationAction: (arg: BundleCopilotConfigurationAutomationActionUpdateApiArg) => Promise<boolean>;
|
|
20
|
+
}
|
|
21
|
+
export declare const useCopilotConfigActions: () => IUseCopilotConfigActionsReturn;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export interface ICopilotPermissionEntry {
|
|
11
|
+
name: string;
|
|
12
|
+
none?: boolean;
|
|
13
|
+
execute?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ICopilotActionPermissions {
|
|
16
|
+
roles: ICopilotPermissionEntry[];
|
|
17
|
+
users: ICopilotPermissionEntry[];
|
|
18
|
+
}
|
|
19
|
+
export interface ICopilotWorkspaceEntry {
|
|
20
|
+
cpath: string;
|
|
21
|
+
include: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ICopilotWorkspaces {
|
|
24
|
+
document: ICopilotWorkspaceEntry[];
|
|
25
|
+
asset: ICopilotWorkspaceEntry[];
|
|
26
|
+
object: ICopilotWorkspaceEntry[];
|
|
27
|
+
}
|
|
28
|
+
export interface IInteractionActionConfiguration {
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
group: string;
|
|
32
|
+
icon: string | null;
|
|
33
|
+
is_expanded_on_show: boolean;
|
|
34
|
+
type: string | null;
|
|
35
|
+
context_limitations: string[];
|
|
36
|
+
search_terms: string[];
|
|
37
|
+
configuration: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IAutomationActionEnvironmentVariable {
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
field_type: string;
|
|
43
|
+
configuration: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IAutomationActionStep {
|
|
46
|
+
name: string;
|
|
47
|
+
step_implementation: string;
|
|
48
|
+
condition: string;
|
|
49
|
+
configuration: string;
|
|
50
|
+
}
|
|
51
|
+
export interface IScheduleTriggerConfiguration {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
cron: string;
|
|
54
|
+
type: string;
|
|
55
|
+
object_class: string;
|
|
56
|
+
subject_provider: string;
|
|
57
|
+
pql: string;
|
|
58
|
+
workspaces: ICopilotWorkspaceEntry[];
|
|
59
|
+
}
|
|
60
|
+
export interface IEventsTriggerConfiguration {
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
events: string[];
|
|
63
|
+
type: string;
|
|
64
|
+
workspaces: ICopilotWorkspaceEntry[];
|
|
65
|
+
pql: string;
|
|
66
|
+
subjectProvider: string;
|
|
67
|
+
selectedWorkflows: string[];
|
|
68
|
+
}
|
|
69
|
+
export interface IManualTriggerConfiguration {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
context_limitations: string[];
|
|
72
|
+
search_terms: string[];
|
|
73
|
+
}
|
|
74
|
+
export interface IAutomationActionTriggers {
|
|
75
|
+
schedule: IScheduleTriggerConfiguration;
|
|
76
|
+
events: IEventsTriggerConfiguration;
|
|
77
|
+
manual: IManualTriggerConfiguration;
|
|
78
|
+
}
|
|
79
|
+
export interface IAutomationActionConfiguration {
|
|
80
|
+
title: string;
|
|
81
|
+
description: string;
|
|
82
|
+
group: string;
|
|
83
|
+
icon: string | null;
|
|
84
|
+
is_expanded_on_show: boolean;
|
|
85
|
+
post_execution_interaction: string;
|
|
86
|
+
action_permissions: ICopilotActionPermissions;
|
|
87
|
+
environment_variables: IAutomationActionEnvironmentVariable[];
|
|
88
|
+
steps: IAutomationActionStep[];
|
|
89
|
+
triggers: IAutomationActionTriggers;
|
|
90
|
+
}
|
|
91
|
+
export interface ICopilotConfigFormData {
|
|
92
|
+
name: string;
|
|
93
|
+
isWriteable: boolean;
|
|
94
|
+
additionalAttributes: unknown[];
|
|
95
|
+
configuration: IInteractionActionConfiguration | IAutomationActionConfiguration;
|
|
96
|
+
}
|
|
97
|
+
interface IUseCopilotConfigFormStateReturn {
|
|
98
|
+
initialData: ICopilotConfigFormData | null;
|
|
99
|
+
currentData: ICopilotConfigFormData | null;
|
|
100
|
+
isDirty: boolean;
|
|
101
|
+
initializeForm: (data: ICopilotConfigFormData) => void;
|
|
102
|
+
updateFormData: (data: Partial<ICopilotConfigFormData>) => void;
|
|
103
|
+
markFormSaved: () => void;
|
|
104
|
+
}
|
|
105
|
+
export declare const useCopilotConfigFormState: () => IUseCopilotConfigFormStateReturn;
|
|
106
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pimcore/copilot-bundle",
|
|
3
|
-
"version": "2.5.0
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pimcore",
|
|
6
6
|
"pimcore-studio-ui",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@ant-design/x": "^2.0.0",
|
|
61
|
-
"@pimcore/studio-ui-bundle": "^1.0.0-canary.
|
|
61
|
+
"@pimcore/studio-ui-bundle": "^1.0.0-canary.20260330-165427-d3df55a",
|
|
62
62
|
"antd-style": "^3.7.1",
|
|
63
63
|
"react": "18.3.x",
|
|
64
64
|
"react-dom": "18.3.x",
|