@pimcore/studio-ui-bundle 1.0.0-canary.20251121-102646-131d77c → 1.0.0-canary.20251121-115340-c0f13b5
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/modules/execution-engine/jobs/download/download-job.d.ts +22 -0
- package/package.json +1 -1
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/factory.d.ts +0 -23
- package/dist/build/types/src/core/modules/execution-engine/jobs/download/notification-job-container.d.ts +0 -16
|
@@ -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 JobInterface, type JobRunOptions } from '../job-interface';
|
|
11
|
+
export interface DownloadJobOptions {
|
|
12
|
+
title: string;
|
|
13
|
+
action: () => Promise<number>;
|
|
14
|
+
downloadUrl: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class DownloadJob implements JobInterface {
|
|
17
|
+
private readonly options;
|
|
18
|
+
constructor(options: DownloadJobOptions);
|
|
19
|
+
run(options: JobRunOptions): Promise<void>;
|
|
20
|
+
private executeAction;
|
|
21
|
+
private createHandler;
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
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 AbstractJob } from '../abstact-job';
|
|
11
|
-
export interface DownloadJob extends AbstractJob {
|
|
12
|
-
type: 'download';
|
|
13
|
-
config: {
|
|
14
|
-
downloadUrl: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface DownloadJobFactoryArgs {
|
|
18
|
-
action: AbstractJob['action'];
|
|
19
|
-
title: AbstractJob['title'];
|
|
20
|
-
topics: AbstractJob['topics'];
|
|
21
|
-
downloadUrl: string;
|
|
22
|
-
}
|
|
23
|
-
export declare const createJob: (job: DownloadJobFactoryArgs) => DownloadJob;
|
|
@@ -1,16 +0,0 @@
|
|
|
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 JobProps } from '../../notification/job/job';
|
|
12
|
-
import { type DownloadJob } from './factory';
|
|
13
|
-
export interface DownloadJobProps extends JobProps {
|
|
14
|
-
config: DownloadJob['config'];
|
|
15
|
-
}
|
|
16
|
-
export declare const NotificationJobContainer: (props: DownloadJobProps) => React.JSX.Element;
|