@uploadista/flow-images-nodes 0.0.16-beta.2 → 0.0.16
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 +33 -33
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _uploadista_core_flow0 from "@uploadista/core/flow";
|
|
2
2
|
import { ImageAiPlugin, ImagePlugin, NodeType, OptimizeParams, ResizeParams, TransformImageParams } from "@uploadista/core/flow";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
4
|
+
import * as zod0 from "zod";
|
|
5
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_types2 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
|
|
|
@@ -14,8 +14,8 @@ declare function createDescribeImageNode(id: string, {
|
|
|
14
14
|
credentialId
|
|
15
15
|
}?: {
|
|
16
16
|
credentialId?: string;
|
|
17
|
-
}): Effect.Effect<
|
|
18
|
-
inputSchema:
|
|
17
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
18
|
+
inputSchema: zod0.ZodType<{
|
|
19
19
|
id: string;
|
|
20
20
|
offset: number;
|
|
21
21
|
storage: {
|
|
@@ -42,7 +42,7 @@ declare function createDescribeImageNode(id: string, {
|
|
|
42
42
|
nodeId: string;
|
|
43
43
|
jobId: string;
|
|
44
44
|
} | undefined;
|
|
45
|
-
}, unknown,
|
|
45
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
46
46
|
id: string;
|
|
47
47
|
offset: number;
|
|
48
48
|
storage: {
|
|
@@ -70,7 +70,7 @@ declare function createDescribeImageNode(id: string, {
|
|
|
70
70
|
jobId: string;
|
|
71
71
|
} | undefined;
|
|
72
72
|
}, unknown>>;
|
|
73
|
-
outputSchema:
|
|
73
|
+
outputSchema: zod0.ZodType<{
|
|
74
74
|
id: string;
|
|
75
75
|
offset: number;
|
|
76
76
|
storage: {
|
|
@@ -126,7 +126,7 @@ declare function createDescribeImageNode(id: string, {
|
|
|
126
126
|
sizeIsDeferred?: boolean | undefined;
|
|
127
127
|
checksum?: string | undefined;
|
|
128
128
|
checksumAlgorithm?: string | undefined;
|
|
129
|
-
}, unknown,
|
|
129
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
130
130
|
id: string;
|
|
131
131
|
offset: number;
|
|
132
132
|
storage: {
|
|
@@ -217,7 +217,7 @@ declare function createDescribeImageNode(id: string, {
|
|
|
217
217
|
flowId: string;
|
|
218
218
|
inputs?: Record<string, unknown>;
|
|
219
219
|
clientId: string | null;
|
|
220
|
-
}) => Effect.Effect<
|
|
220
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
221
221
|
id: string;
|
|
222
222
|
offset: number;
|
|
223
223
|
storage: {
|
|
@@ -295,17 +295,17 @@ declare function createDescribeImageNode(id: string, {
|
|
|
295
295
|
declare function createOptimizeNode(id: string, {
|
|
296
296
|
quality,
|
|
297
297
|
format
|
|
298
|
-
}: OptimizeParams): Effect.Effect<
|
|
299
|
-
inputSchema:
|
|
300
|
-
outputSchema:
|
|
298
|
+
}: OptimizeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
299
|
+
inputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.UploadFile, unknown>>;
|
|
300
|
+
outputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.UploadFile, unknown>>;
|
|
301
301
|
run: (args: {
|
|
302
|
-
data:
|
|
302
|
+
data: _uploadista_core_types2.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<
|
|
308
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types2.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
309
309
|
condition?: {
|
|
310
310
|
field: string;
|
|
311
311
|
operator: string;
|
|
@@ -320,7 +320,7 @@ declare function createOptimizeNode(id: string, {
|
|
|
320
320
|
exponentialBackoff?: boolean;
|
|
321
321
|
};
|
|
322
322
|
} & {
|
|
323
|
-
type:
|
|
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
|
|
@@ -328,8 +328,8 @@ declare function createRemoveBackgroundNode(id: string, {
|
|
|
328
328
|
credentialId
|
|
329
329
|
}?: {
|
|
330
330
|
credentialId?: string;
|
|
331
|
-
}): Effect.Effect<
|
|
332
|
-
inputSchema:
|
|
331
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
332
|
+
inputSchema: zod0.ZodType<{
|
|
333
333
|
id: string;
|
|
334
334
|
offset: number;
|
|
335
335
|
storage: {
|
|
@@ -356,7 +356,7 @@ declare function createRemoveBackgroundNode(id: string, {
|
|
|
356
356
|
nodeId: string;
|
|
357
357
|
jobId: string;
|
|
358
358
|
} | undefined;
|
|
359
|
-
}, unknown,
|
|
359
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
360
360
|
id: string;
|
|
361
361
|
offset: number;
|
|
362
362
|
storage: {
|
|
@@ -384,7 +384,7 @@ declare function createRemoveBackgroundNode(id: string, {
|
|
|
384
384
|
jobId: string;
|
|
385
385
|
} | undefined;
|
|
386
386
|
}, unknown>>;
|
|
387
|
-
outputSchema:
|
|
387
|
+
outputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.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<
|
|
422
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types2.UploadFile>, UploadistaError, never>;
|
|
423
423
|
condition?: {
|
|
424
424
|
field: string;
|
|
425
425
|
operator: string;
|
|
@@ -442,17 +442,17 @@ declare function createResizeNode(id: string, {
|
|
|
442
442
|
width,
|
|
443
443
|
height,
|
|
444
444
|
fit
|
|
445
|
-
}: ResizeParams): Effect.Effect<
|
|
446
|
-
inputSchema:
|
|
447
|
-
outputSchema:
|
|
445
|
+
}: ResizeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
446
|
+
inputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.UploadFile, unknown>>;
|
|
447
|
+
outputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.UploadFile, unknown>>;
|
|
448
448
|
run: (args: {
|
|
449
|
-
data:
|
|
449
|
+
data: _uploadista_core_types2.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<
|
|
455
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types2.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
456
456
|
condition?: {
|
|
457
457
|
field: string;
|
|
458
458
|
operator: string;
|
|
@@ -467,7 +467,7 @@ declare function createResizeNode(id: string, {
|
|
|
467
467
|
exponentialBackoff?: boolean;
|
|
468
468
|
};
|
|
469
469
|
} & {
|
|
470
|
-
type:
|
|
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
|
|
@@ -509,17 +509,17 @@ declare function createResizeNode(id: string, {
|
|
|
509
509
|
*/
|
|
510
510
|
declare function createTransformImageNode(id: string, {
|
|
511
511
|
transformations
|
|
512
|
-
}: TransformImageParams): Effect.Effect<
|
|
513
|
-
inputSchema:
|
|
514
|
-
outputSchema:
|
|
512
|
+
}: TransformImageParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
513
|
+
inputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.UploadFile, unknown>>;
|
|
514
|
+
outputSchema: zod0.ZodType<_uploadista_core_types2.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types2.UploadFile, unknown>>;
|
|
515
515
|
run: (args: {
|
|
516
|
-
data:
|
|
516
|
+
data: _uploadista_core_types2.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<
|
|
522
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types2.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
523
523
|
condition?: {
|
|
524
524
|
field: string;
|
|
525
525
|
operator: string;
|
|
@@ -534,7 +534,7 @@ declare function createTransformImageNode(id: string, {
|
|
|
534
534
|
exponentialBackoff?: boolean;
|
|
535
535
|
};
|
|
536
536
|
} & {
|
|
537
|
-
type:
|
|
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
|
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.16
|
|
4
|
+
"version": "0.0.16",
|
|
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.4",
|
|
18
18
|
"zod": "4.1.12",
|
|
19
|
-
"@uploadista/core": "0.0.16
|
|
19
|
+
"@uploadista/core": "0.0.16"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@effect/vitest": "0.27.0",
|
|
23
23
|
"@types/node": "24.10.1",
|
|
24
24
|
"tsdown": "0.16.5",
|
|
25
25
|
"vitest": "4.0.9",
|
|
26
|
-
"@uploadista/typescript-config": "0.0.16
|
|
26
|
+
"@uploadista/typescript-config": "0.0.16"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsdown",
|