@pimcore/studio-ui-bundle 2025.4.2 → 2025.4.3
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/src/core/app/api/pimcore/index.d.ts +4 -3
- package/dist/build/types/src/core/app/config/app-config.d.ts +1 -0
- package/dist/build/types/src/core/app/config/services/service-ids.d.ts +1 -0
- package/dist/build/types/src/core/bootstrap.d.ts +1 -0
- package/dist/build/types/src/core/components/element-tag/element-tag.d.ts +1 -0
- package/dist/build/types/src/core/components/element-tree/element-tree-slice.d.ts +4 -1
- package/dist/build/types/src/core/components/many-to-one-relation/path-target.styles.d.ts +1 -0
- package/dist/build/types/src/core/components/stack-list/stack-list-item.d.ts +1 -0
- package/dist/build/types/src/core/modules/app/mercure-api-slice.gen.d.ts +3 -3
- package/dist/build/types/src/core/modules/app/settings/settings-slice-enhanced.d.ts +117 -117
- package/dist/build/types/src/core/modules/app/settings/settings-slice.gen.d.ts +117 -117
- package/dist/build/types/src/core/modules/app/translations/translations-api-slice-enhanced.d.ts +700 -60
- package/dist/build/types/src/core/modules/app/translations/translations-api-slice.gen.d.ts +65 -65
- package/dist/build/types/src/core/modules/application-logger/application-logger-api-slice-enhanced.d.ts +49 -49
- package/dist/build/types/src/core/modules/application-logger/application-logger-api-slice.gen.d.ts +49 -49
- package/dist/build/types/src/core/modules/application-logger/application-logger.d.ts +5 -1
- package/dist/build/types/src/core/modules/application-logger/components/sidebar/tabs/filter/provider/filter-provider/filter-provider.d.ts +4 -1
- package/dist/build/types/src/core/modules/application-logger/components/table/table.d.ts +5 -1
- package/dist/build/types/src/core/modules/{field-definitions/dynamic-types/types/layout/fieldset/field-definition-fieldset-form-fields.d.ts → application-logger/tabs/object-tab/object-tab.d.ts} +3 -2
- package/dist/build/types/src/core/modules/asset/actions/zip-download/use-zip-download.d.ts +0 -1
- package/dist/build/types/src/core/modules/asset/asset-api-slice-enhanced.d.ts +226 -226
- package/dist/build/types/src/core/modules/asset/asset-api-slice.gen.d.ts +531 -531
- package/dist/build/types/src/core/modules/asset/asset-draft-slice.d.ts +130 -1
- package/dist/build/types/src/core/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice-enhanced.d.ts +55 -55
- package/dist/build/types/src/core/modules/asset/editor/shared-tab-manager/tabs/custom-metadata/metadata-api-slice.gen.d.ts +55 -55
- package/dist/build/types/src/core/modules/asset/editor/types/asset-thumbnails-api-slice.gen.d.ts +109 -109
- package/dist/build/types/src/core/modules/asset/listing/listing-container.d.ts +15 -15
- package/dist/build/types/src/core/modules/auth/authorization-api-slice.gen.d.ts +7 -7
- package/dist/build/types/src/core/modules/auth/enums/user-permission.d.ts +2 -1
- package/dist/build/types/src/core/modules/auth/user/user-api-slice-enhanced.d.ts +39 -39
- package/dist/build/types/src/core/modules/auth/user/user-api-slice.gen.d.ts +201 -201
- package/dist/build/types/src/core/modules/bulk-import/components/bulk-import-modal/hooks/use-bulk-import.d.ts +1 -1
- package/dist/build/types/src/core/modules/bulk-import/jobs/bulk-import-job.d.ts +9 -2
- package/dist/build/types/src/core/modules/cache/cache-actions.d.ts +12 -0
- package/dist/build/types/src/core/modules/cache/cache-api-slice.gen.d.ts +509 -0
- package/dist/build/types/src/core/modules/cache/index.d.ts +10 -0
- package/dist/build/types/src/core/modules/class-definition/class-definition-slice-enhanced.d.ts +894 -709
- package/dist/build/types/src/core/modules/class-definition/class-definition-slice.gen.d.ts +910 -710
- package/dist/build/types/src/core/modules/data-object/classification-store/classification-store-api-slice-enhanced.d.ts +273 -273
- package/dist/build/types/src/core/modules/data-object/classification-store/classification-store-api-slice.gen.d.ts +255 -255
- package/dist/build/types/src/core/modules/data-object/data-object-api-slice-enhanced.d.ts +76 -76
- package/dist/build/types/src/core/modules/data-object/data-object-api-slice.gen.d.ts +221 -219
- package/dist/build/types/src/core/modules/data-object/data-object-draft-slice.d.ts +118 -1
- package/dist/build/types/src/core/modules/data-object/listing/listing-container.d.ts +15 -15
- package/dist/build/types/src/core/modules/data-object/unit-slice-enhanced.d.ts +104 -104
- package/dist/build/types/src/core/modules/data-object/unit-slice.gen.d.ts +89 -89
- package/dist/build/types/src/core/modules/document/document-api-slice-enhanced.d.ts +266 -266
- package/dist/build/types/src/core/modules/document/document-api-slice.gen.d.ts +253 -253
- package/dist/build/types/src/core/modules/document/document-draft-slice.d.ts +120 -1
- package/dist/build/types/src/core/modules/document/tree/node/content/tree-node-static-generator-icon.d.ts +12 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/many-to-many-object-relation/components/combo-field/combo-field-ui.d.ts +19 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/many-to-many-object-relation/components/combo-field/combo-field-ui.styles.d.ts +13 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/many-to-many-object-relation/components/combo-field/combo-field-utils.d.ts +15 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/many-to-many-object-relation/components/combo-field/hooks/use-combo-field-data.d.ts +35 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/components/many-to-many-object-relation/components/combo-field/many-to-many-object-relation-combo-field.d.ts +12 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/helpers/label/suppress-empty-field-label-provider.d.ts +15 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/helpers/relations/utils/resolve-field-name.d.ts +19 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/data-related/types/dynamic-type-object-data-many-to-many-object-relation.d.ts +3 -1
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/grid-cell-preview/advanced-many-to-many-relation/advanced-many-to-many-relation.d.ts +9 -1
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/grid-cell-preview/relation-list/formatted-relation-list.d.ts +22 -0
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/grid-cell-preview/relation-list/relation-list.d.ts +2 -1
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/layout-related/components/field-container/field-container.d.ts +3 -1
- package/dist/build/types/src/core/modules/element/dynamic-types/definitions/objects/layout-related/components/text/text.d.ts +1 -0
- package/dist/build/types/src/core/modules/element/editor/shared-components/workflow/menu/workflow-menu.styles.d.ts +12 -0
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/dependencies/dependencies-api-slice-enhanced.d.ts +17 -17
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/dependencies/dependencies-api-slice.gen.d.ts +17 -17
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/notes-and-events/notes-and-events-api-slice-enhanced.d.ts +53 -53
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/notes-and-events/notes-and-events-api-slice.gen.d.ts +53 -53
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice-enhanced.d.ts +38 -38
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/properties/properties-api-slice.gen.d.ts +39 -39
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice-enhanced.d.ts +39 -39
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/schedule/schedule-api-slice.gen.d.ts +39 -39
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice-enhanced.d.ts +46 -46
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice.gen.d.ts +61 -61
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/versions/version-api-slice-enhanced.d.ts +59 -59
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/versions/version-api-slice.gen.d.ts +91 -89
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice-enhanced.d.ts +16 -16
- package/dist/build/types/src/core/modules/element/editor/shared-tab-manager/tabs/workflow/workflow-api-slice.gen.d.ts +19 -19
- package/dist/build/types/src/core/modules/element/element-api-slice-enhanced.d.ts +107 -107
- package/dist/build/types/src/core/modules/element/element-api-slice.gen.d.ts +119 -119
- package/dist/build/types/src/core/modules/element/export-api-slice.gen.d.ts +49 -49
- package/dist/build/types/src/core/modules/element/listing/decorators/utils/column-configuration/has-field-definition.d.ts +12 -0
- package/dist/build/types/src/core/modules/element/search-replace-assignments/usage-api-slice-enhanced.d.ts +19 -19
- package/dist/build/types/src/core/modules/element/search-replace-assignments/usage-api-slice.gen.d.ts +19 -19
- package/dist/build/types/src/core/modules/email/emails-api-slice-enhanced.d.ts +109 -109
- package/dist/build/types/src/core/modules/email/emails-api-slice.gen.d.ts +109 -109
- package/dist/build/types/src/core/modules/email/log/components/text-preview/text-preview.d.ts +2 -1
- package/dist/build/types/src/core/modules/execution-engine/app-loader/rehydrate-jobs-loader.d.ts +11 -0
- package/dist/build/types/src/core/modules/execution-engine/execution-engine-api-slice-enhanced.d.ts +17 -17
- package/dist/build/types/src/core/modules/execution-engine/execution-engine-api-slice.gen.d.ts +23 -21
- package/dist/build/types/src/core/modules/execution-engine/execution-engine-slice.d.ts +7 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/__tests__/job-rehydration.test.d.ts +10 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/abstact-job.d.ts +1 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/batch-delete/abstract-batch-delete-job.d.ts +6 -2
- package/dist/build/types/src/core/modules/execution-engine/jobs/batch-delete/asset-batch-delete-job.d.ts +4 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/batch-delete/data-object-batch-delete-job.d.ts +4 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/batch-edit/abstract-batch-edit-job.d.ts +13 -4
- package/dist/build/types/src/core/modules/execution-engine/jobs/batch-edit/abstract-folder-batch-edit-job.d.ts +6 -3
- package/dist/build/types/src/core/modules/execution-engine/jobs/clone/abstract-clone-job.d.ts +11 -2
- package/dist/build/types/src/core/modules/execution-engine/jobs/clone/asset-clone-job.d.ts +20 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/clone/data-object-clone-job.d.ts +24 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/clone/document-clone-job.d.ts +5 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/delete/element-delete-job.d.ts +5 -2
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/abstract-download-job.d.ts +35 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/csv-download-job.d.ts +24 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/xlsx-download-job.d.ts +24 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/zip-download-job.d.ts +18 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/recycle-bin/recycle-bin-delete-job.d.ts +6 -5
- package/dist/build/types/src/core/modules/execution-engine/jobs/recycle-bin/recycle-bin-restore-job.d.ts +6 -2
- package/dist/build/types/src/core/modules/execution-engine/jobs/rehydration-helpers.d.ts +15 -0
- package/dist/build/types/src/core/modules/execution-engine/jobs/search-replace-assignments/search-replace-assignments-job.d.ts +5 -2
- package/dist/build/types/src/core/modules/execution-engine/jobs/tag-assign/tag-assign-job.d.ts +5 -2
- package/dist/build/types/src/core/modules/execution-engine/jobs/zip-upload/zip-upload-job.d.ts +6 -2
- package/dist/build/types/src/core/modules/execution-engine/message-handlers/message-bus-job/__tests__/message-bus-job-handler-polling.test.d.ts +10 -0
- package/dist/build/types/src/core/modules/execution-engine/message-handlers/message-bus-job/job-run-polling.d.ts +1 -0
- package/dist/build/types/src/core/modules/execution-engine/message-handlers/message-bus-job/message-bus-job-handler-types.d.ts +2 -0
- package/dist/build/types/src/core/modules/execution-engine/message-handlers/message-bus-job/message-bus-job-handler.d.ts +3 -0
- package/dist/build/types/src/core/modules/execution-engine/message-handlers/message-bus-job/message-bus-job-notification.d.ts +1 -0
- package/dist/build/types/src/core/modules/execution-engine/message-handlers/message-bus-job/step-tracker/child-job-step-tracker.d.ts +5 -0
- package/dist/build/types/src/core/modules/execution-engine/notification/job/job-view.d.ts +1 -0
- package/dist/build/types/src/core/modules/execution-engine/notification/job-list/job-list.styles.d.ts +1 -0
- package/dist/build/types/src/core/modules/execution-engine/services/execution-engine.d.ts +5 -9
- package/dist/build/types/src/core/modules/execution-engine/services/job-rehydration-registry.d.ts +22 -0
- package/dist/build/types/src/core/modules/field-definitions/components/editor/items/detail/refresh-provider.d.ts +20 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/data/_abstracts/use-sync-title-from-name.d.ts +10 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/data/classificationstore/dynamic-type-field-definition-classificationstore.d.ts +2 -1
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/data/fieldcollections/dynamic-type-field-definition-fieldcollections.d.ts +0 -2
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/accordion/dynamic-type-field-definition-accordion.d.ts +2 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/fieldcontainer/dynamic-type-field-definition-field-container.d.ts +2 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/fieldset/dynamic-type-field-definition-fieldset.d.ts +1 -2
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/iframe/dynamic-type-field-definition-iframe.d.ts +2 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/region/dynamic-type-field-definition-region.d.ts +2 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/tabpanel/dynamic-type-field-definition-tabpanel.d.ts +2 -0
- package/dist/build/types/src/core/modules/field-definitions/dynamic-types/types/layout/text/dynamic-type-field-definition-text.d.ts +2 -0
- package/dist/build/types/src/core/modules/gdpr-data-extractor/gdpr-data-extractor-api-slice.gen.d.ts +49 -49
- package/dist/build/types/src/core/modules/gdpr-data-extractor/gdpr-data-extractor-slice-enhanced.d.ts +79 -79
- package/dist/build/types/src/core/modules/notifications/notifications-slice-enhanced.d.ts +41 -41
- package/dist/build/types/src/core/modules/notifications/notifications-slice.gen.d.ts +73 -73
- package/dist/build/types/src/core/modules/perspectives/perspectives-slice.enhanced.d.ts +93 -93
- package/dist/build/types/src/core/modules/perspectives/perspectives-slice.gen.d.ts +93 -93
- package/dist/build/types/src/core/modules/recycle-bin/components/batch-actions/batch-actions.d.ts +1 -6
- package/dist/build/types/src/core/modules/recycle-bin/context/selected-items-context.d.ts +14 -1
- package/dist/build/types/src/core/modules/recycle-bin/hooks/use-recycle-bin.d.ts +2 -2
- package/dist/build/types/src/core/modules/recycle-bin/recycle-bin-api-slice-enhanced.d.ts +23 -23
- package/dist/build/types/src/core/modules/recycle-bin/recycle-bin-api-slice.gen.d.ts +23 -23
- package/dist/build/types/src/core/modules/redirects/seo-api-slice-enhanced.d.ts +109 -109
- package/dist/build/types/src/core/modules/redirects/seo-api-slice.gen.d.ts +109 -109
- package/dist/build/types/src/core/modules/reports/custom-reports-api-slice-enhanced.d.ts +95 -95
- package/dist/build/types/src/core/modules/reports/custom-reports-api-slice.gen.d.ts +107 -107
- package/dist/build/types/src/core/modules/search/search-api-slice-enhanced.d.ts +15 -15
- package/dist/build/types/src/core/modules/search/search-api-slice.gen.d.ts +113 -113
- package/dist/build/types/src/core/modules/translations/components/cleanup-translations-button.d.ts +16 -0
- package/dist/build/types/src/core/modules/translations/components/export-translations-button.d.ts +19 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-button.d.ts +16 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-modal/csv-settings-step.d.ts +22 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-modal/file-select-step.d.ts +17 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-modal/hooks/use-import-csv.d.ts +29 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-modal/import-translations-modal.d.ts +18 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-modal/import-translations-modal.styles.d.ts +15 -0
- package/dist/build/types/src/core/modules/translations/components/import-translations-modal/types.d.ts +17 -0
- package/dist/build/types/src/core/modules/translations/components/translation-merger/hooks/use-merger-columns.d.ts +18 -0
- package/dist/build/types/src/core/modules/translations/components/translation-merger/hooks/use-merger-rows.d.ts +38 -0
- package/dist/build/types/src/core/modules/translations/components/translation-merger/merger-data-store.d.ts +18 -0
- package/dist/build/types/src/core/modules/translations/components/translation-merger/translation-merger-container.d.ts +11 -0
- package/dist/build/types/src/core/modules/translations/components/translation-merger/translation-merger.d.ts +17 -0
- package/dist/build/types/src/core/modules/translations/components/translation-merger/translation-merger.styles.d.ts +12 -0
- package/dist/build/types/src/core/modules/translations/hooks/translation-domain-provider.d.ts +2 -1
- package/dist/build/types/src/core/modules/translations/translations-container.d.ts +4 -1
- package/dist/build/types/src/core/modules/translations/translations-container.styles.d.ts +12 -0
- package/dist/build/types/src/core/modules/translations/translations-wrapper.d.ts +5 -1
- package/dist/build/types/src/core/modules/user/hooks/use-merged-keybindings.d.ts +1 -1
- package/dist/build/types/src/core/modules/user/management/detail/tabs/workspaces/components/special-settings-modal.d.ts +24 -0
- package/dist/build/types/src/core/modules/user/management/detail/tabs/workspaces/workspace-type.d.ts +14 -0
- package/dist/build/types/src/core/modules/user/management/detail/tabs/workspaces/workspaces-container.d.ts +0 -5
- package/dist/build/types/src/core/modules/user/roles/roles-api-slice-enhanced.d.ts +43 -43
- package/dist/build/types/src/core/modules/user/roles/roles-api-slice.gen.d.ts +109 -109
- package/dist/build/types/src/core/modules/user/user-api-slice-enhanced.d.ts +198 -198
- package/dist/build/types/src/core/modules/website-settings/website-settings-api-slice-enhanced.d.ts +39 -39
- package/dist/build/types/src/core/modules/website-settings/website-settings-api-slice.gen.d.ts +39 -39
- package/dist/build/types/src/core/utils/css.d.ts +9 -0
- package/dist/build/types/src/core/utils/files.d.ts +7 -0
- package/package.json +1 -1
- package/dist/build/types/src/core/modules/execution-engine/jobs/clone/element-clone-job.d.ts +0 -28
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/download-job.d.ts +0 -28
package/dist/build/types/src/core/modules/execution-engine/jobs/clone/abstract-clone-job.d.ts
CHANGED
|
@@ -7,20 +7,25 @@
|
|
|
7
7
|
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
10
11
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
12
|
import { type ElementType } from '../../../../types/enums/element/element-type';
|
|
12
13
|
export interface AbstractCloneJobOptions {
|
|
13
14
|
sourceId: number;
|
|
14
15
|
targetId: number;
|
|
15
|
-
title: string;
|
|
16
16
|
elementType: ElementType;
|
|
17
17
|
treeId?: string;
|
|
18
18
|
nodeId?: string;
|
|
19
19
|
}
|
|
20
|
+
interface BuildHandlerOptions {
|
|
21
|
+
jobRunId: number;
|
|
22
|
+
ancestorJobRunIds?: number[];
|
|
23
|
+
startAtStep?: number;
|
|
24
|
+
onJobCompletion?: (data: any) => Promise<void>;
|
|
25
|
+
}
|
|
20
26
|
export declare abstract class AbstractCloneJob implements JobInterface {
|
|
21
27
|
protected readonly sourceId: number;
|
|
22
28
|
protected readonly targetId: number;
|
|
23
|
-
protected readonly title: string;
|
|
24
29
|
protected readonly elementType: ElementType;
|
|
25
30
|
protected readonly treeId?: string;
|
|
26
31
|
protected readonly nodeId?: string;
|
|
@@ -29,4 +34,8 @@ export declare abstract class AbstractCloneJob implements JobInterface {
|
|
|
29
34
|
protected abstract executeCloneRequest(): Promise<number | null>;
|
|
30
35
|
protected handleCompletion(): Promise<void>;
|
|
31
36
|
protected handleJobFailure(error: any): Promise<void>;
|
|
37
|
+
private createHandler;
|
|
38
|
+
protected static getTitle(): string;
|
|
39
|
+
protected static buildHandler(options: BuildHandlerOptions): MessageBusJobHandler;
|
|
32
40
|
}
|
|
41
|
+
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 { type JobRunList } from '../../services/job-rehydration-registry';
|
|
11
|
+
import { type MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
|
+
import { AbstractCloneJob, type AbstractCloneJobOptions } from './abstract-clone-job';
|
|
13
|
+
export type AssetCloneJobOptions = Omit<AbstractCloneJobOptions, 'elementType'>;
|
|
14
|
+
export declare class AssetCloneJob extends AbstractCloneJob {
|
|
15
|
+
static readonly jobNames: readonly ["studio_ee_job_clone_assets"];
|
|
16
|
+
constructor(options: AssetCloneJobOptions);
|
|
17
|
+
protected static getTitle(): string;
|
|
18
|
+
protected executeCloneRequest(): Promise<number | null>;
|
|
19
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
20
|
+
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/clone/data-object-clone-job.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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 DataObjectCloneParameters } from '../../../../modules/data-object/data-object-api-slice.gen';
|
|
11
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
12
|
+
import { type MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
13
|
+
import { AbstractCloneJob, type AbstractCloneJobOptions } from './abstract-clone-job';
|
|
14
|
+
export interface DataObjectCloneJobOptions extends Omit<AbstractCloneJobOptions, 'elementType'> {
|
|
15
|
+
parameters: DataObjectCloneParameters;
|
|
16
|
+
}
|
|
17
|
+
export declare class DataObjectCloneJob extends AbstractCloneJob {
|
|
18
|
+
static readonly jobNames: readonly ["studio_ee_job_clone_data_objects"];
|
|
19
|
+
private readonly parameters;
|
|
20
|
+
constructor(options: DataObjectCloneJobOptions);
|
|
21
|
+
protected static getTitle(): string;
|
|
22
|
+
protected executeCloneRequest(): Promise<number | null>;
|
|
23
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
24
|
+
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/clone/document-clone-job.d.ts
CHANGED
|
@@ -8,12 +8,17 @@
|
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
10
|
import { type DocumentCloneParameters } from '../../../../modules/document/document-api-slice.gen';
|
|
11
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
12
|
+
import { type MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
11
13
|
import { AbstractCloneJob, type AbstractCloneJobOptions } from './abstract-clone-job';
|
|
12
14
|
export interface DocumentCloneJobOptions extends Omit<AbstractCloneJobOptions, 'elementType'> {
|
|
13
15
|
parameters: DocumentCloneParameters;
|
|
14
16
|
}
|
|
15
17
|
export declare class DocumentCloneJob extends AbstractCloneJob {
|
|
18
|
+
static readonly jobNames: readonly ["studio_ee_job_clone_documents"];
|
|
16
19
|
private readonly parameters;
|
|
17
20
|
constructor(options: DocumentCloneJobOptions);
|
|
21
|
+
protected static getTitle(): string;
|
|
18
22
|
protected executeCloneRequest(): Promise<number | null>;
|
|
23
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
19
24
|
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/delete/element-delete-job.d.ts
CHANGED
|
@@ -9,18 +9,19 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
11
|
import { type ElementType } from '../../../../types/enums/element/element-type';
|
|
12
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
13
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
12
14
|
export interface DeleteJobOptions {
|
|
13
15
|
elementId: number;
|
|
14
16
|
elementType: ElementType;
|
|
15
|
-
title: string;
|
|
16
17
|
treeId?: string;
|
|
17
18
|
nodeId?: string;
|
|
18
19
|
parentFolderId?: number;
|
|
19
20
|
}
|
|
20
21
|
export declare class DeleteJob implements JobInterface {
|
|
22
|
+
static readonly jobNames: readonly ["studio_ee_job_delete_assets", "studio_ee_job_delete_data_objects", "studio_ee_job_delete_documents"];
|
|
21
23
|
private readonly elementId;
|
|
22
24
|
private readonly elementType;
|
|
23
|
-
private readonly title;
|
|
24
25
|
private readonly treeId?;
|
|
25
26
|
private readonly nodeId?;
|
|
26
27
|
private readonly parentFolderId?;
|
|
@@ -29,4 +30,6 @@ export declare class DeleteJob implements JobInterface {
|
|
|
29
30
|
private executeDeleteRequest;
|
|
30
31
|
private handleCompletion;
|
|
31
32
|
private handleJobFailure;
|
|
33
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
34
|
+
private static buildHandler;
|
|
32
35
|
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/download/abstract-download-job.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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 JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
|
+
import { type JobButtonCustomizationContext } from '../../message-handlers/message-bus-job/message-bus-job-notification';
|
|
13
|
+
export interface AbstractDownloadJobOptions {
|
|
14
|
+
action: () => Promise<number>;
|
|
15
|
+
}
|
|
16
|
+
interface BuildHandlerOptions {
|
|
17
|
+
jobRunId: number;
|
|
18
|
+
hasChildJob?: boolean;
|
|
19
|
+
startAtStep?: number;
|
|
20
|
+
ancestorJobRunIds?: number[];
|
|
21
|
+
onRetry?: () => Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export declare abstract class AbstractDownloadJob implements JobInterface {
|
|
24
|
+
private readonly options;
|
|
25
|
+
protected usesChildJob(): boolean;
|
|
26
|
+
constructor(options: AbstractDownloadJobOptions);
|
|
27
|
+
run(options: JobRunOptions): Promise<void>;
|
|
28
|
+
private executeAction;
|
|
29
|
+
private createHandler;
|
|
30
|
+
static buildDownloadButton(downloadUrl: string): (context: JobButtonCustomizationContext) => void;
|
|
31
|
+
protected static getTitle(): string;
|
|
32
|
+
protected static getDownloadUrl(): string | null;
|
|
33
|
+
protected static buildHandler(options: BuildHandlerOptions): MessageBusJobHandler;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
package/dist/build/types/src/core/modules/execution-engine/jobs/download/csv-download-job.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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 MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
11
|
+
import { AbstractDownloadJob, type AbstractDownloadJobOptions } from './abstract-download-job';
|
|
12
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
13
|
+
export interface CsvDownloadJobOptions extends AbstractDownloadJobOptions {
|
|
14
|
+
isFolderExport?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class CsvDownloadJob extends AbstractDownloadJob {
|
|
17
|
+
static readonly jobNames: readonly ["studio_ee_job_create_csv", "studio_ee_job_collect_csv_folder_export_elements"];
|
|
18
|
+
private readonly isFolderExport;
|
|
19
|
+
constructor(options: CsvDownloadJobOptions);
|
|
20
|
+
protected usesChildJob(): boolean;
|
|
21
|
+
protected static getTitle(): string;
|
|
22
|
+
protected static getDownloadUrl(): string;
|
|
23
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
24
|
+
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/download/xlsx-download-job.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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 MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
11
|
+
import { AbstractDownloadJob, type AbstractDownloadJobOptions } from './abstract-download-job';
|
|
12
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
13
|
+
export interface XlsxDownloadJobOptions extends AbstractDownloadJobOptions {
|
|
14
|
+
isFolderExport?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class XlsxDownloadJob extends AbstractDownloadJob {
|
|
17
|
+
static readonly jobNames: readonly ["studio_ee_job_create_xlsx", "studio_ee_job_collect_xlsx_folder_export_elements"];
|
|
18
|
+
private readonly isFolderExport;
|
|
19
|
+
constructor(options: XlsxDownloadJobOptions);
|
|
20
|
+
protected usesChildJob(): boolean;
|
|
21
|
+
protected static getTitle(): string;
|
|
22
|
+
protected static getDownloadUrl(): string;
|
|
23
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
24
|
+
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/download/zip-download-job.d.ts
ADDED
|
@@ -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 { type MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
11
|
+
import { AbstractDownloadJob } from './abstract-download-job';
|
|
12
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
13
|
+
export declare class ZipDownloadJob extends AbstractDownloadJob {
|
|
14
|
+
static readonly jobNames: readonly ["studio_ee_job_create_download_zip"];
|
|
15
|
+
protected static getTitle(): string;
|
|
16
|
+
protected static getDownloadUrl(): string;
|
|
17
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
18
|
+
}
|
|
@@ -8,21 +8,22 @@
|
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
10
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
|
-
import {
|
|
11
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
12
13
|
export interface RecycleBinDeleteJobOptions {
|
|
13
14
|
itemIds: number[];
|
|
14
|
-
elementTypes: ElementType[];
|
|
15
|
-
title: string;
|
|
16
15
|
onFinish?: () => void;
|
|
17
16
|
}
|
|
18
17
|
export declare class RecycleBinDeleteJob implements JobInterface {
|
|
19
18
|
private readonly itemIds;
|
|
20
|
-
private readonly elementTypes;
|
|
21
|
-
private readonly title;
|
|
22
19
|
private readonly onFinish?;
|
|
23
20
|
constructor(options: RecycleBinDeleteJobOptions);
|
|
24
21
|
run(options: JobRunOptions): Promise<void>;
|
|
25
22
|
private executeDeleteRequest;
|
|
23
|
+
private static invalidateCache;
|
|
26
24
|
private handleCompletion;
|
|
27
25
|
private handleJobFailure;
|
|
26
|
+
static readonly jobNames: readonly ["studio_ee_job_recycle_bin_delete"];
|
|
27
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
28
|
+
private static buildHandler;
|
|
28
29
|
}
|
|
@@ -9,20 +9,24 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
11
|
import { type ElementType } from '../../../../types/enums/element/element-type';
|
|
12
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
13
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
12
14
|
export interface RecycleBinRestoreJobOptions {
|
|
13
15
|
itemIds: number[];
|
|
14
16
|
elementTypes: ElementType[];
|
|
15
|
-
title: string;
|
|
16
17
|
onFinish?: () => void;
|
|
17
18
|
}
|
|
18
19
|
export declare class RecycleBinRestoreJob implements JobInterface {
|
|
19
20
|
private readonly itemIds;
|
|
20
21
|
private readonly elementTypes;
|
|
21
|
-
private readonly title;
|
|
22
22
|
private readonly onFinish?;
|
|
23
23
|
constructor(options: RecycleBinRestoreJobOptions);
|
|
24
24
|
run(options: JobRunOptions): Promise<void>;
|
|
25
25
|
private executeRestoreRequest;
|
|
26
|
+
private static completeRestore;
|
|
26
27
|
private handleCompletion;
|
|
27
28
|
private handleJobFailure;
|
|
29
|
+
static readonly jobNames: readonly ["studio_ee_job_recycle_bin_restore"];
|
|
30
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
31
|
+
private static buildHandler;
|
|
28
32
|
}
|
|
@@ -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 { type JobRunList } from '../services/job-rehydration-registry';
|
|
11
|
+
export declare function resolveChildJobRunOptions(jobRuns: JobRunList): {
|
|
12
|
+
jobRunId: number;
|
|
13
|
+
ancestorJobRunIds: number[] | undefined;
|
|
14
|
+
startAtStep: number;
|
|
15
|
+
};
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
11
|
import { type ElementType } from '../../../../types/enums/element/element-type';
|
|
12
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
13
|
import { type ElementUsageBaseItem } from '../../../../modules/element/search-replace-assignments/usage-api-slice-enhanced';
|
|
14
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
13
15
|
export interface SearchReplaceAssignmentsJobOptions {
|
|
14
16
|
sourceElementType: ElementType;
|
|
15
17
|
sourceElementId: number;
|
|
16
18
|
targetElementType: ElementType;
|
|
17
19
|
targetElementId: number;
|
|
18
20
|
elements?: ElementUsageBaseItem[];
|
|
19
|
-
title: string;
|
|
20
21
|
onFinish?: () => void;
|
|
21
22
|
}
|
|
22
23
|
export declare class SearchReplaceAssignmentsJob implements JobInterface {
|
|
@@ -25,11 +26,13 @@ export declare class SearchReplaceAssignmentsJob implements JobInterface {
|
|
|
25
26
|
private readonly targetElementType;
|
|
26
27
|
private readonly targetElementId;
|
|
27
28
|
private readonly elements?;
|
|
28
|
-
private readonly title;
|
|
29
29
|
private readonly onFinish?;
|
|
30
30
|
constructor(options: SearchReplaceAssignmentsJobOptions);
|
|
31
31
|
run(options: JobRunOptions): Promise<void>;
|
|
32
32
|
private executeReplaceRequest;
|
|
33
33
|
private handleCompletion;
|
|
34
34
|
private handleJobFailure;
|
|
35
|
+
static readonly jobNames: readonly ["studio_ee_job_element_usage_replace"];
|
|
36
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
37
|
+
private static buildHandler;
|
|
35
38
|
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/tag-assign/tag-assign-job.d.ts
CHANGED
|
@@ -9,20 +9,23 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
11
|
import { type ElementType } from '../../../../types/enums/element/element-type';
|
|
12
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
13
|
import { type TagBatchOperationToElementsByTypeAndIdApiArg } from '../../../../modules/element/editor/shared-tab-manager/tabs/tags/tags-api-slice-enhanced';
|
|
14
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
13
15
|
export interface TagAssignJobOptions {
|
|
14
16
|
elementType: ElementType;
|
|
15
17
|
elementId: number;
|
|
16
18
|
operation: TagBatchOperationToElementsByTypeAndIdApiArg['operation'];
|
|
17
|
-
title: string;
|
|
18
19
|
}
|
|
19
20
|
export declare class TagAssignJob implements JobInterface {
|
|
20
21
|
private readonly elementType;
|
|
21
22
|
private readonly elementId;
|
|
22
23
|
private readonly operation;
|
|
23
|
-
private readonly title;
|
|
24
24
|
constructor(options: TagAssignJobOptions);
|
|
25
25
|
run(options: JobRunOptions): Promise<void>;
|
|
26
26
|
private executeRequest;
|
|
27
27
|
private handleJobFailure;
|
|
28
|
+
static readonly jobNames: readonly ["studio_ee_job_batch_tag_assign", "studio_ee_job_batch_tag_replace"];
|
|
29
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
30
|
+
private static buildHandler;
|
|
28
31
|
}
|
package/dist/build/types/src/core/modules/execution-engine/jobs/zip-upload/zip-upload-job.d.ts
CHANGED
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
10
|
import { type JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
|
+
import { MessageBusJobHandler } from '../../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
|
+
import { type JobRunList } from '../../services/job-rehydration-registry';
|
|
11
13
|
export interface ZipUploadJobOptions {
|
|
12
|
-
title: string;
|
|
13
14
|
triggerUpload: (options: any) => void;
|
|
14
15
|
parentFolder: string;
|
|
15
16
|
onJobCompletion?: () => void | Promise<void>;
|
|
@@ -17,5 +18,8 @@ export interface ZipUploadJobOptions {
|
|
|
17
18
|
export declare class ZipUploadJob implements JobInterface {
|
|
18
19
|
private readonly options;
|
|
19
20
|
constructor(options: ZipUploadJobOptions);
|
|
20
|
-
run(
|
|
21
|
+
run(jobRunOptions: JobRunOptions): Promise<void>;
|
|
22
|
+
static readonly jobNames: readonly ["studio_ee_job_upload_zip_file"];
|
|
23
|
+
static rehydrate(jobRuns: JobRunList): MessageBusJobHandler;
|
|
24
|
+
private static buildHandler;
|
|
21
25
|
}
|
|
@@ -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 {};
|
|
@@ -31,6 +31,7 @@ export declare class JobRunPolling {
|
|
|
31
31
|
private lastJobSnapshot;
|
|
32
32
|
private readonly pollingBackoff;
|
|
33
33
|
constructor(jobRunId: string | number, callbacks: JobRunPollingCallbacks);
|
|
34
|
+
start(): void;
|
|
34
35
|
notifyUpdate(): void;
|
|
35
36
|
destroy(): void;
|
|
36
37
|
private schedulePolling;
|
|
@@ -21,6 +21,7 @@ export interface MessageBusJob extends AbstractJob {
|
|
|
21
21
|
onCustomizeButtons?: (context: JobButtonCustomizationContext) => void;
|
|
22
22
|
messages?: string[];
|
|
23
23
|
jobRunId: number;
|
|
24
|
+
ancestorJobRunIds?: number[];
|
|
24
25
|
}
|
|
25
26
|
export interface JobCompletionData {
|
|
26
27
|
isSuccessful: boolean;
|
|
@@ -31,6 +32,7 @@ export interface JobCompletionData {
|
|
|
31
32
|
}
|
|
32
33
|
export interface MessageBusJobHandlerOptions {
|
|
33
34
|
jobRunId: number;
|
|
35
|
+
ancestorJobRunIds?: number[];
|
|
34
36
|
title: string | ((job: MessageBusJob) => string);
|
|
35
37
|
stepDescriptions?: Record<number, string>;
|
|
36
38
|
stepTracker?: StepTracker;
|
|
@@ -13,6 +13,7 @@ import { type MessageBusJobHandlerOptions } from './message-bus-job-handler-type
|
|
|
13
13
|
export type { MessageBusJob, JobCompletionData, MessageBusJobHandlerOptions } from './message-bus-job-handler-types';
|
|
14
14
|
export declare class MessageBusJobHandler extends AbstractMessageHandler {
|
|
15
15
|
private jobRunId;
|
|
16
|
+
private ancestorJobRunIds;
|
|
16
17
|
private job;
|
|
17
18
|
private readonly onJobCompletion?;
|
|
18
19
|
private readonly onRetry?;
|
|
@@ -23,6 +24,7 @@ export declare class MessageBusJobHandler extends AbstractMessageHandler {
|
|
|
23
24
|
private lastProgressValue;
|
|
24
25
|
private readonly title;
|
|
25
26
|
private polling;
|
|
27
|
+
private initialStatus;
|
|
26
28
|
private readonly throttledProgressUpdate;
|
|
27
29
|
constructor(options: MessageBusJobHandlerOptions);
|
|
28
30
|
shouldHandle(message: AbstractMercureMessage): boolean;
|
|
@@ -30,6 +32,7 @@ export declare class MessageBusJobHandler extends AbstractMessageHandler {
|
|
|
30
32
|
onRegister(): void;
|
|
31
33
|
handleMessage(message: AbstractMercureMessage): Promise<void>;
|
|
32
34
|
onUnregister(): void;
|
|
35
|
+
setInitialStatus(state: string): void;
|
|
33
36
|
private getTitle;
|
|
34
37
|
private handleJobCompletion;
|
|
35
38
|
private getJob;
|
|
@@ -15,6 +15,7 @@ export interface JobButtonCustomizationContext {
|
|
|
15
15
|
addSuccessButton: (action: ButtonAction, position?: 'start' | 'end') => void;
|
|
16
16
|
addFinishedWithErrorsButton: (action: ButtonAction, position?: 'start' | 'end') => void;
|
|
17
17
|
addFailureButton: (action: ButtonAction, position?: 'start' | 'end') => void;
|
|
18
|
+
showWarning: (titleKey: string, content: string) => void;
|
|
18
19
|
}
|
|
19
20
|
export interface MessageBusJobProps extends MessageBusJob {
|
|
20
21
|
}
|
|
@@ -15,6 +15,11 @@ export interface ChildJobStepTrackerOptions {
|
|
|
15
15
|
* the UI will show "Step 1", "Step 2" etc. without a fraction.
|
|
16
16
|
*/
|
|
17
17
|
totalSteps?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Initial step to start at. Used during rehydration when the job has
|
|
20
|
+
* already transitioned to a child run — pass 2 to skip step 1.
|
|
21
|
+
*/
|
|
22
|
+
startAtStep?: number;
|
|
18
23
|
}
|
|
19
24
|
/**
|
|
20
25
|
* Step tracker for jobs that spawn child job runs via transitionToChildJob.
|
|
@@ -10,17 +10,13 @@
|
|
|
10
10
|
import { type GlobalMessageBus } from '../../../modules/global-message-bus';
|
|
11
11
|
import { type GlobalMessageBusProcess } from '../../../modules/background-processor';
|
|
12
12
|
import { type JobInterface } from '../jobs/job-interface';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* Simply delegates to the job's run method
|
|
16
|
-
*/
|
|
13
|
+
import { type JobRehydrationRegistry } from './job-rehydration-registry';
|
|
14
|
+
import { type JobRun } from '../execution-engine-api-slice.gen';
|
|
17
15
|
export declare class ExecutionEngine {
|
|
18
16
|
private readonly messageBus;
|
|
19
17
|
private readonly globalProcess;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* Run a job using the execution engine
|
|
23
|
-
* Delegates all logic to the job itself
|
|
24
|
-
*/
|
|
18
|
+
private readonly rehydrationRegistry;
|
|
19
|
+
constructor(messageBus: GlobalMessageBus, globalProcess: GlobalMessageBusProcess, rehydrationRegistry: JobRehydrationRegistry);
|
|
25
20
|
runJob(job: JobInterface): Promise<void>;
|
|
21
|
+
rehydrateRunningJobs(items: JobRun[]): void;
|
|
26
22
|
}
|
package/dist/build/types/src/core/modules/execution-engine/services/job-rehydration-registry.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 JobRun } from '../execution-engine-api-slice.gen';
|
|
11
|
+
import { type MessageBusJobHandler } from '../message-handlers/message-bus-job/message-bus-job-handler';
|
|
12
|
+
export type JobRunList = [JobRun, ...JobRun[]];
|
|
13
|
+
export type RehydrationFn = (jobRuns: JobRunList) => MessageBusJobHandler;
|
|
14
|
+
export interface RehydratableJob {
|
|
15
|
+
readonly jobNames: readonly string[];
|
|
16
|
+
rehydrate: (jobRuns: JobRunList) => MessageBusJobHandler;
|
|
17
|
+
}
|
|
18
|
+
export declare class JobRehydrationRegistry {
|
|
19
|
+
private readonly registry;
|
|
20
|
+
register(job: RehydratableJob): void;
|
|
21
|
+
get(jobName: string): RehydrationFn | undefined;
|
|
22
|
+
}
|
|
@@ -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
|
+
export interface IRefreshContext {
|
|
12
|
+
refreshLayout: () => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export declare const RefreshContext: React.Context<IRefreshContext | undefined>;
|
|
15
|
+
export interface RefreshProviderProps {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
refreshLayout: () => Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export declare const RefreshProvider: (props: RefreshProviderProps) => React.JSX.Element;
|
|
20
|
+
export declare const useRefresh: () => IRefreshContext;
|
|
@@ -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 useSyncTitleFromName: () => void;
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
10
|
import { type FieldDefinitionContext } from '../../../../../../modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract';
|
|
11
|
-
import { DynamicTypeFieldDefinitionDataAbstract } from '../../../../../../modules/field-definitions/dynamic-types/types/data/_abstracts/dynamic-type-field-defintion-data-abstract';
|
|
11
|
+
import { DynamicTypeFieldDefinitionDataAbstract, type FieldDefinitionData } from '../../../../../../modules/field-definitions/dynamic-types/types/data/_abstracts/dynamic-type-field-defintion-data-abstract';
|
|
12
12
|
import { type ElementIcon } from '../../../../../../../sdk/modules/widget-manager';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
export declare class DynamicTypeFieldDefinitionClassificationstore extends DynamicTypeFieldDefinitionDataAbstract {
|
|
15
15
|
id: string;
|
|
16
16
|
getIcon(): ElementIcon;
|
|
17
17
|
getGroup(): string[];
|
|
18
|
+
getDefaultData(): FieldDefinitionData;
|
|
18
19
|
getSpecificFormFields(context: FieldDefinitionContext): React.JSX.Element;
|
|
19
20
|
getFormFields(context: FieldDefinitionContext): React.JSX.Element;
|
|
20
21
|
}
|
|
@@ -14,8 +14,6 @@ import React from 'react';
|
|
|
14
14
|
export declare class DynamicTypeFieldDefinitionFieldcollections extends DynamicTypeFieldDefinitionDataAbstract {
|
|
15
15
|
id: string;
|
|
16
16
|
getIcon(): ElementIcon;
|
|
17
|
-
getAllowedChildTags(props: FieldDefinitionContext): string[];
|
|
18
|
-
getDisallowedRecursiveChildTags(props: FieldDefinitionContext): string[];
|
|
19
17
|
getGroup(): string[];
|
|
20
18
|
getCustomLayoutOptions(context: FieldDefinitionContext): React.JSX.Element;
|
|
21
19
|
getSpecificFormFields(context: FieldDefinitionContext): React.JSX.Element;
|
|
@@ -20,5 +20,7 @@ export declare class DynamicTypeFieldDefinitionAccordion extends DynamicTypeFiel
|
|
|
20
20
|
id: string;
|
|
21
21
|
getGroup(): string[];
|
|
22
22
|
getIcon(): ElementIcon;
|
|
23
|
+
getAllowedChildTags(props: FieldDefinitionContext): string[];
|
|
24
|
+
getDropdownTags(props: FieldDefinitionContext): string[];
|
|
23
25
|
getSpecificFormFields(context: FieldDefinitionContext): React.JSX.Element;
|
|
24
26
|
}
|
|
@@ -15,6 +15,8 @@ export declare class DynamicTypeFieldDefinitionFieldContainer extends DynamicTyp
|
|
|
15
15
|
id: string;
|
|
16
16
|
getGroup(): string[];
|
|
17
17
|
getIcon(): ElementIcon;
|
|
18
|
+
getAllowedChildTags(props: FieldDefinitionContext): string[];
|
|
19
|
+
getDropdownTags(props: FieldDefinitionContext): string[];
|
|
18
20
|
getFormFields(context: FieldDefinitionContext): React.JSX.Element;
|
|
19
21
|
getSpecificFormFields(context: FieldDefinitionContext): React.JSX.Element;
|
|
20
22
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
|
-
import { type FieldDefinitionContext } from '../../../../../../modules/field-definitions/dynamic-types/dynamic-type-field-definition-abstract';
|
|
11
10
|
import { DynamicTypeFieldDefinitionLayoutAbstract } from '../../../../../../modules/field-definitions/dynamic-types/types/layout/_abstracts/dynamic-type-field-defintion-layout-abstract';
|
|
12
11
|
import { type ElementIcon } from '../../../../../../../sdk/components';
|
|
13
12
|
import React from 'react';
|
|
@@ -15,5 +14,5 @@ export declare class DynamicTypeFieldDefinitionFieldset extends DynamicTypeField
|
|
|
15
14
|
id: string;
|
|
16
15
|
getGroup(): string[];
|
|
17
16
|
getIcon(): ElementIcon;
|
|
18
|
-
|
|
17
|
+
getSpecificSettingsPanel(): React.JSX.Element;
|
|
19
18
|
}
|