@uploadista/flow-images-nodes 0.0.14 → 0.0.15-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +19 -19
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2,10 +2,10 @@ import * as _uploadista_core_flow0 from "@uploadista/core/flow";
|
|
|
2
2
|
import { ImageAiPlugin, ImagePlugin, NodeType, OptimizeParams, ResizeParams, TransformImageParams } from "@uploadista/core/flow";
|
|
3
3
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
4
4
|
import * as zod0 from "zod";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _uploadista_core_errors0 from "@uploadista/core/errors";
|
|
6
6
|
import { UploadistaError } from "@uploadista/core/errors";
|
|
7
7
|
import { Effect } from "effect";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _uploadista_core_types0 from "@uploadista/core/types";
|
|
9
9
|
import * as _uploadista_core_upload0 from "@uploadista/core/upload";
|
|
10
10
|
import { UploadServer } from "@uploadista/core/upload";
|
|
11
11
|
|
|
@@ -296,16 +296,16 @@ declare function createOptimizeNode(id: string, {
|
|
|
296
296
|
quality,
|
|
297
297
|
format
|
|
298
298
|
}: OptimizeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
299
|
-
inputSchema: zod0.ZodType<
|
|
300
|
-
outputSchema: zod0.ZodType<
|
|
299
|
+
inputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
300
|
+
outputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
301
301
|
run: (args: {
|
|
302
|
-
data:
|
|
302
|
+
data: _uploadista_core_types0.UploadFile;
|
|
303
303
|
jobId: string;
|
|
304
304
|
storageId: string;
|
|
305
305
|
flowId: string;
|
|
306
306
|
inputs?: Record<string, unknown>;
|
|
307
307
|
clientId: string | null;
|
|
308
|
-
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<
|
|
308
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
309
309
|
condition?: {
|
|
310
310
|
field: string;
|
|
311
311
|
operator: string;
|
|
@@ -321,7 +321,7 @@ declare function createOptimizeNode(id: string, {
|
|
|
321
321
|
};
|
|
322
322
|
} & {
|
|
323
323
|
type: _uploadista_core_flow0.NodeType;
|
|
324
|
-
},
|
|
324
|
+
}, _uploadista_core_errors0.UploadistaError, ImagePlugin | _uploadista_core_upload0.UploadServer>;
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region src/remove-background-node.d.ts
|
|
327
327
|
declare function createRemoveBackgroundNode(id: string, {
|
|
@@ -384,7 +384,7 @@ declare function createRemoveBackgroundNode(id: string, {
|
|
|
384
384
|
jobId: string;
|
|
385
385
|
} | undefined;
|
|
386
386
|
}, unknown>>;
|
|
387
|
-
outputSchema: zod0.ZodType<
|
|
387
|
+
outputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
388
388
|
run: (args: {
|
|
389
389
|
data: {
|
|
390
390
|
id: string;
|
|
@@ -419,7 +419,7 @@ declare function createRemoveBackgroundNode(id: string, {
|
|
|
419
419
|
flowId: string;
|
|
420
420
|
inputs?: Record<string, unknown>;
|
|
421
421
|
clientId: string | null;
|
|
422
|
-
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<
|
|
422
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, UploadistaError, never>;
|
|
423
423
|
condition?: {
|
|
424
424
|
field: string;
|
|
425
425
|
operator: string;
|
|
@@ -443,16 +443,16 @@ declare function createResizeNode(id: string, {
|
|
|
443
443
|
height,
|
|
444
444
|
fit
|
|
445
445
|
}: ResizeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
446
|
-
inputSchema: zod0.ZodType<
|
|
447
|
-
outputSchema: zod0.ZodType<
|
|
446
|
+
inputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
447
|
+
outputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
448
448
|
run: (args: {
|
|
449
|
-
data:
|
|
449
|
+
data: _uploadista_core_types0.UploadFile;
|
|
450
450
|
jobId: string;
|
|
451
451
|
storageId: string;
|
|
452
452
|
flowId: string;
|
|
453
453
|
inputs?: Record<string, unknown>;
|
|
454
454
|
clientId: string | null;
|
|
455
|
-
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<
|
|
455
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
456
456
|
condition?: {
|
|
457
457
|
field: string;
|
|
458
458
|
operator: string;
|
|
@@ -468,7 +468,7 @@ declare function createResizeNode(id: string, {
|
|
|
468
468
|
};
|
|
469
469
|
} & {
|
|
470
470
|
type: _uploadista_core_flow0.NodeType;
|
|
471
|
-
},
|
|
471
|
+
}, _uploadista_core_errors0.UploadistaError, ImagePlugin | _uploadista_core_upload0.UploadServer>;
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region src/transform-image-node.d.ts
|
|
474
474
|
/**
|
|
@@ -510,16 +510,16 @@ declare function createResizeNode(id: string, {
|
|
|
510
510
|
declare function createTransformImageNode(id: string, {
|
|
511
511
|
transformations
|
|
512
512
|
}: TransformImageParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
513
|
-
inputSchema: zod0.ZodType<
|
|
514
|
-
outputSchema: zod0.ZodType<
|
|
513
|
+
inputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
514
|
+
outputSchema: zod0.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
515
515
|
run: (args: {
|
|
516
|
-
data:
|
|
516
|
+
data: _uploadista_core_types0.UploadFile;
|
|
517
517
|
jobId: string;
|
|
518
518
|
storageId: string;
|
|
519
519
|
flowId: string;
|
|
520
520
|
inputs?: Record<string, unknown>;
|
|
521
521
|
clientId: string | null;
|
|
522
|
-
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<
|
|
522
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
523
523
|
condition?: {
|
|
524
524
|
field: string;
|
|
525
525
|
operator: string;
|
|
@@ -535,7 +535,7 @@ declare function createTransformImageNode(id: string, {
|
|
|
535
535
|
};
|
|
536
536
|
} & {
|
|
537
537
|
type: _uploadista_core_flow0.NodeType;
|
|
538
|
-
},
|
|
538
|
+
}, _uploadista_core_errors0.UploadistaError, ImagePlugin | _uploadista_core_upload0.UploadServer>;
|
|
539
539
|
//#endregion
|
|
540
540
|
//#region src/wait-for-url.d.ts
|
|
541
541
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadista/flow-images-nodes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15-beta.1",
|
|
5
5
|
"description": "Image processing nodes for Uploadista Flow",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Uploadista",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"effect": "3.19.3",
|
|
18
18
|
"zod": "4.1.12",
|
|
19
|
-
"@uploadista/core": "0.0.
|
|
19
|
+
"@uploadista/core": "0.0.15-beta.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@effect/vitest": "0.27.0",
|
|
23
23
|
"@types/node": "24.10.1",
|
|
24
24
|
"tsdown": "0.16.4",
|
|
25
25
|
"vitest": "4.0.8",
|
|
26
|
-
"@uploadista/typescript-config": "0.0.
|
|
26
|
+
"@uploadista/typescript-config": "0.0.15-beta.1"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsdown",
|