@n8n/api-types 0.49.0 → 0.51.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.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +170 -0
- package/dist/chat-hub.js +61 -0
- package/dist/chat-hub.js.map +1 -0
- package/dist/dto/ai/ai-build-request.dto.d.ts +10 -0
- package/dist/dto/ai/ai-build-request.dto.js +9 -0
- package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
- package/dist/dto/ai/ai-session-metadata-response.dto.d.ts +8 -0
- package/dist/dto/ai/ai-session-metadata-response.dto.js +11 -0
- package/dist/dto/ai/ai-session-metadata-response.dto.js.map +1 -0
- package/dist/dto/{data-store/add-data-store-column.dto.d.ts → data-table/add-data-table-column.dto.d.ts} +2 -2
- package/dist/dto/data-table/add-data-table-column.dto.js +9 -0
- package/dist/dto/data-table/add-data-table-column.dto.js.map +1 -0
- package/dist/dto/{data-store/add-data-store-rows.dto.d.ts → data-table/add-data-table-rows.dto.d.ts} +2 -2
- package/dist/dto/data-table/add-data-table-rows.dto.js +13 -0
- package/dist/dto/{data-store/add-data-store-rows.dto.js.map → data-table/add-data-table-rows.dto.js.map} +1 -1
- package/dist/dto/{data-store/create-data-store-column.dto.d.ts → data-table/create-data-table-column.dto.d.ts} +2 -2
- package/dist/dto/data-table/create-data-table-column.dto.js +12 -0
- package/dist/dto/data-table/create-data-table-column.dto.js.map +1 -0
- package/dist/dto/data-table/create-data-table.dto.d.ts +10 -0
- package/dist/dto/data-table/create-data-table.dto.js +14 -0
- package/dist/dto/{data-store/create-data-store.dto.js.map → data-table/create-data-table.dto.js.map} +1 -1
- package/dist/dto/{data-store → data-table}/delete-data-table-rows.dto.js.map +1 -1
- package/dist/dto/{data-store/list-data-store-content-query.dto.d.ts → data-table/list-data-table-content-query.dto.d.ts} +2 -2
- package/dist/dto/{data-store/list-data-store-content-query.dto.js → data-table/list-data-table-content-query.dto.js} +6 -6
- package/dist/dto/{data-store/list-data-store-content-query.dto.js.map → data-table/list-data-table-content-query.dto.js.map} +1 -1
- package/dist/dto/{data-store/list-data-store-query.dto.d.ts → data-table/list-data-table-query.dto.d.ts} +4 -4
- package/dist/dto/{data-store/list-data-store-query.dto.js → data-table/list-data-table-query.dto.js} +4 -4
- package/dist/dto/{data-store/list-data-store-query.dto.js.map → data-table/list-data-table-query.dto.js.map} +1 -1
- package/dist/dto/{data-store/move-data-store-column.dto.d.ts → data-table/move-data-table-column.dto.d.ts} +2 -2
- package/dist/dto/{data-store/move-data-store-column.dto.js → data-table/move-data-table-column.dto.js} +4 -4
- package/dist/dto/{data-store/move-data-store-column.dto.js.map → data-table/move-data-table-column.dto.js.map} +1 -1
- package/dist/dto/{data-store/update-data-store-row.dto.js → data-table/update-data-table-row.dto.js} +3 -3
- package/dist/dto/{data-store/update-data-store-row.dto.js.map → data-table/update-data-table-row.dto.js.map} +1 -1
- package/dist/dto/data-table/update-data-table.dto.d.ts +7 -0
- package/dist/dto/data-table/update-data-table.dto.js +11 -0
- package/dist/dto/data-table/update-data-table.dto.js.map +1 -0
- package/dist/dto/{data-store/upsert-data-store-row.dto.d.ts → data-table/upsert-data-table-row.dto.d.ts} +2 -2
- package/dist/dto/{data-store/upsert-data-store-row.dto.js → data-table/upsert-data-table-row.dto.js} +7 -7
- package/dist/dto/{data-store/upsert-data-store-row.dto.js.map → data-table/upsert-data-table-row.dto.js.map} +1 -1
- package/dist/dto/dynamic-node-parameters/action-result-request.dto.d.ts +3 -3
- package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +3 -3
- package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +3 -3
- package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +3 -3
- package/dist/dto/index.d.ts +13 -11
- package/dist/dto/index.js +27 -23
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/owner/dismiss-banner-request.dto.d.ts +1 -1
- package/dist/dto/provisioning/config.dto.d.ts +13 -0
- package/dist/dto/provisioning/config.dto.js +16 -0
- package/dist/dto/provisioning/config.dto.js.map +1 -0
- package/dist/dto/workflows/import-workflow-from-url.dto.js +1 -1
- package/dist/dto/workflows/import-workflow-from-url.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +4 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/schemas/banner-name.schema.d.ts +1 -1
- package/dist/schemas/banner-name.schema.js +2 -2
- package/dist/schemas/data-table-filter.schema.js +2 -2
- package/dist/schemas/{data-store.schema.d.ts → data-table.schema.d.ts} +25 -25
- package/dist/schemas/data-table.schema.js +45 -0
- package/dist/schemas/{data-store.schema.js.map → data-table.schema.js.map} +1 -1
- package/dist/schemas/insights.schema.d.ts +6 -6
- package/dist/schemas/user.schema.d.ts +12 -12
- package/package.json +4 -4
- package/dist/dto/data-store/add-data-store-column.dto.js +0 -9
- package/dist/dto/data-store/add-data-store-column.dto.js.map +0 -1
- package/dist/dto/data-store/add-data-store-rows.dto.js +0 -13
- package/dist/dto/data-store/create-data-store-column.dto.js +0 -12
- package/dist/dto/data-store/create-data-store-column.dto.js.map +0 -1
- package/dist/dto/data-store/create-data-store.dto.d.ts +0 -10
- package/dist/dto/data-store/create-data-store.dto.js +0 -14
- package/dist/dto/data-store/update-data-store.dto.d.ts +0 -7
- package/dist/dto/data-store/update-data-store.dto.js +0 -11
- package/dist/dto/data-store/update-data-store.dto.js.map +0 -1
- package/dist/schemas/data-store.schema.js +0 -45
- /package/dist/dto/{data-store → data-table}/delete-data-table-rows.dto.d.ts +0 -0
- /package/dist/dto/{data-store → data-table}/delete-data-table-rows.dto.js +0 -0
- /package/dist/dto/{data-store/update-data-store-row.dto.d.ts → data-table/update-data-table-row.dto.d.ts} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ListDataTableQueryDto } from '../dto';
|
|
3
3
|
export declare const insertRowReturnType: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"count">, z.ZodLiteral<"id">]>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
4
|
+
export declare const dataTableNameSchema: z.ZodString;
|
|
5
|
+
export declare const dataTableIdSchema: z.ZodString;
|
|
6
|
+
export declare const DATA_TABLE_COLUMN_REGEX: RegExp;
|
|
7
|
+
export declare const DATA_TABLE_COLUMN_MAX_LENGTH = 63;
|
|
8
|
+
export declare const DATA_TABLE_COLUMN_ERROR_MESSAGE = "Only alphabetical characters and non-leading numbers and underscores are allowed for column names, and the maximum length is 63 characters.";
|
|
9
|
+
export declare const dataTableColumnNameSchema: z.ZodString;
|
|
10
|
+
export declare const dataTableColumnTypeSchema: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
11
|
+
export declare const dataTableCreateColumnSchema: z.ZodObject<{
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
14
14
|
index: z.ZodOptional<z.ZodNumber>;
|
|
@@ -21,25 +21,25 @@ export declare const dataStoreCreateColumnSchema: z.ZodObject<{
|
|
|
21
21
|
name: string;
|
|
22
22
|
index?: number | undefined;
|
|
23
23
|
}>;
|
|
24
|
-
export type
|
|
25
|
-
export declare const
|
|
24
|
+
export type DataTableCreateColumnSchema = z.infer<typeof dataTableCreateColumnSchema>;
|
|
25
|
+
export declare const dataTableColumnSchema: z.ZodObject<{
|
|
26
26
|
name: z.ZodString;
|
|
27
27
|
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
28
28
|
index: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
} & {
|
|
30
|
-
|
|
30
|
+
dataTableId: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
type: "string" | "number" | "boolean" | "date";
|
|
33
33
|
name: string;
|
|
34
|
-
|
|
34
|
+
dataTableId: string;
|
|
35
35
|
index?: number | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
type: "string" | "number" | "boolean" | "date";
|
|
38
38
|
name: string;
|
|
39
|
-
|
|
39
|
+
dataTableId: string;
|
|
40
40
|
index?: number | undefined;
|
|
41
41
|
}>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const dataTableSchema: z.ZodObject<{
|
|
43
43
|
id: z.ZodString;
|
|
44
44
|
name: z.ZodString;
|
|
45
45
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -47,16 +47,16 @@ export declare const dataStoreSchema: z.ZodObject<{
|
|
|
47
47
|
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
48
48
|
index: z.ZodOptional<z.ZodNumber>;
|
|
49
49
|
} & {
|
|
50
|
-
|
|
50
|
+
dataTableId: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
type: "string" | "number" | "boolean" | "date";
|
|
53
53
|
name: string;
|
|
54
|
-
|
|
54
|
+
dataTableId: string;
|
|
55
55
|
index?: number | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
type: "string" | "number" | "boolean" | "date";
|
|
58
58
|
name: string;
|
|
59
|
-
|
|
59
|
+
dataTableId: string;
|
|
60
60
|
index?: number | undefined;
|
|
61
61
|
}>, "many">;
|
|
62
62
|
createdAt: z.ZodString;
|
|
@@ -69,7 +69,7 @@ export declare const dataStoreSchema: z.ZodObject<{
|
|
|
69
69
|
columns: {
|
|
70
70
|
type: "string" | "number" | "boolean" | "date";
|
|
71
71
|
name: string;
|
|
72
|
-
|
|
72
|
+
dataTableId: string;
|
|
73
73
|
index?: number | undefined;
|
|
74
74
|
}[];
|
|
75
75
|
}, {
|
|
@@ -80,21 +80,21 @@ export declare const dataStoreSchema: z.ZodObject<{
|
|
|
80
80
|
columns: {
|
|
81
81
|
type: "string" | "number" | "boolean" | "date";
|
|
82
82
|
name: string;
|
|
83
|
-
|
|
83
|
+
dataTableId: string;
|
|
84
84
|
index?: number | undefined;
|
|
85
85
|
}[];
|
|
86
86
|
}>;
|
|
87
|
-
export type
|
|
88
|
-
export type
|
|
89
|
-
export type
|
|
87
|
+
export type DataTable = z.infer<typeof dataTableSchema>;
|
|
88
|
+
export type DataTableColumn = z.infer<typeof dataTableColumnSchema>;
|
|
89
|
+
export type DataTableListFilter = {
|
|
90
90
|
id?: string | string[];
|
|
91
91
|
projectId?: string | string[];
|
|
92
92
|
name?: string;
|
|
93
93
|
};
|
|
94
|
-
export type
|
|
94
|
+
export type DataTableListOptions = Partial<ListDataTableQueryDto> & {
|
|
95
95
|
filter: {
|
|
96
96
|
projectId: string;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
export declare const dateTimeSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, Date, string>, z.ZodDate>;
|
|
100
|
-
export declare const
|
|
100
|
+
export declare const dataTableColumnValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodDate]>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dataTableColumnValueSchema = exports.dateTimeSchema = exports.dataTableSchema = exports.dataTableColumnSchema = exports.dataTableCreateColumnSchema = exports.dataTableColumnTypeSchema = exports.dataTableColumnNameSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.dataTableIdSchema = exports.dataTableNameSchema = exports.insertRowReturnType = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.insertRowReturnType = zod_1.z.union([zod_1.z.literal('all'), zod_1.z.literal('count'), zod_1.z.literal('id')]);
|
|
6
|
+
exports.dataTableNameSchema = zod_1.z.string().trim().min(1).max(128);
|
|
7
|
+
exports.dataTableIdSchema = zod_1.z.string().max(36);
|
|
8
|
+
exports.DATA_TABLE_COLUMN_REGEX = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
|
9
|
+
exports.DATA_TABLE_COLUMN_MAX_LENGTH = 63;
|
|
10
|
+
exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = 'Only alphabetical characters and non-leading numbers and underscores are allowed for column names, and the maximum length is 63 characters.';
|
|
11
|
+
exports.dataTableColumnNameSchema = zod_1.z
|
|
12
|
+
.string()
|
|
13
|
+
.trim()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(exports.DATA_TABLE_COLUMN_MAX_LENGTH)
|
|
16
|
+
.regex(exports.DATA_TABLE_COLUMN_REGEX, exports.DATA_TABLE_COLUMN_ERROR_MESSAGE);
|
|
17
|
+
exports.dataTableColumnTypeSchema = zod_1.z.enum(['string', 'number', 'boolean', 'date']);
|
|
18
|
+
exports.dataTableCreateColumnSchema = zod_1.z.object({
|
|
19
|
+
name: exports.dataTableColumnNameSchema,
|
|
20
|
+
type: exports.dataTableColumnTypeSchema,
|
|
21
|
+
index: zod_1.z.number().optional(),
|
|
22
|
+
});
|
|
23
|
+
exports.dataTableColumnSchema = exports.dataTableCreateColumnSchema.extend({
|
|
24
|
+
dataTableId: exports.dataTableIdSchema,
|
|
25
|
+
});
|
|
26
|
+
exports.dataTableSchema = zod_1.z.object({
|
|
27
|
+
id: exports.dataTableIdSchema,
|
|
28
|
+
name: exports.dataTableNameSchema,
|
|
29
|
+
columns: zod_1.z.array(exports.dataTableColumnSchema),
|
|
30
|
+
createdAt: zod_1.z.string().datetime(),
|
|
31
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
32
|
+
});
|
|
33
|
+
exports.dateTimeSchema = zod_1.z
|
|
34
|
+
.string()
|
|
35
|
+
.datetime({ offset: true })
|
|
36
|
+
.transform((s) => new Date(s))
|
|
37
|
+
.pipe(zod_1.z.date());
|
|
38
|
+
exports.dataTableColumnValueSchema = zod_1.z.union([
|
|
39
|
+
zod_1.z.string(),
|
|
40
|
+
zod_1.z.number(),
|
|
41
|
+
zod_1.z.boolean(),
|
|
42
|
+
zod_1.z.null(),
|
|
43
|
+
zod_1.z.date(),
|
|
44
|
+
]);
|
|
45
|
+
//# sourceMappingURL=data-table.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-
|
|
1
|
+
{"version":3,"file":"data-table.schema.js","sourceRoot":"","sources":["../../src/schemas/data-table.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIX,QAAA,mBAAmB,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEvF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACxD,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAGvC,QAAA,uBAAuB,GAAG,yBAAyB,CAAC;AACpD,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAClC,QAAA,+BAA+B,GAC3C,6IAA6I,CAAC;AAElI,QAAA,yBAAyB,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,oCAA4B,CAAC;KACjC,KAAK,CAAC,+BAAuB,EAAE,uCAA+B,CAAC,CAAC;AACrD,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5E,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,iCAAyB;IAC/B,IAAI,EAAE,iCAAyB;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,mCAA2B,CAAC,MAAM,CAAC;IACvE,WAAW,EAAE,yBAAiB;CAC9B,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,2BAAmB;IACzB,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAcU,QAAA,cAAc,GAAG,OAAC;KAC7B,MAAM,EAAE;KACR,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC1B,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;KAC7B,IAAI,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAEJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC;IACjD,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,OAAO,EAAE;IACX,OAAC,CAAC,IAAI,EAAE;IACR,OAAC,CAAC,IAAI,EAAE;CACR,CAAC,CAAC"}
|
|
@@ -205,24 +205,24 @@ export declare const insightsByWorkflowDataSchemas: {
|
|
|
205
205
|
averageRunTime: z.ZodNumber;
|
|
206
206
|
timeSaved: z.ZodNumber;
|
|
207
207
|
}, "strict", z.ZodTypeAny, {
|
|
208
|
+
workflowId: string | null;
|
|
208
209
|
total: number;
|
|
209
210
|
failed: number;
|
|
210
211
|
failureRate: number;
|
|
211
212
|
timeSaved: number;
|
|
212
213
|
averageRunTime: number;
|
|
213
|
-
workflowId: string | null;
|
|
214
214
|
workflowName: string;
|
|
215
215
|
projectId: string | null;
|
|
216
216
|
projectName: string;
|
|
217
217
|
succeeded: number;
|
|
218
218
|
runTime: number;
|
|
219
219
|
}, {
|
|
220
|
+
workflowId: string | null;
|
|
220
221
|
total: number;
|
|
221
222
|
failed: number;
|
|
222
223
|
failureRate: number;
|
|
223
224
|
timeSaved: number;
|
|
224
225
|
averageRunTime: number;
|
|
225
|
-
workflowId: string | null;
|
|
226
226
|
workflowName: string;
|
|
227
227
|
projectId: string | null;
|
|
228
228
|
projectName: string;
|
|
@@ -245,24 +245,24 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
245
245
|
averageRunTime: z.ZodNumber;
|
|
246
246
|
timeSaved: z.ZodNumber;
|
|
247
247
|
}, "strict", z.ZodTypeAny, {
|
|
248
|
+
workflowId: string | null;
|
|
248
249
|
total: number;
|
|
249
250
|
failed: number;
|
|
250
251
|
failureRate: number;
|
|
251
252
|
timeSaved: number;
|
|
252
253
|
averageRunTime: number;
|
|
253
|
-
workflowId: string | null;
|
|
254
254
|
workflowName: string;
|
|
255
255
|
projectId: string | null;
|
|
256
256
|
projectName: string;
|
|
257
257
|
succeeded: number;
|
|
258
258
|
runTime: number;
|
|
259
259
|
}, {
|
|
260
|
+
workflowId: string | null;
|
|
260
261
|
total: number;
|
|
261
262
|
failed: number;
|
|
262
263
|
failureRate: number;
|
|
263
264
|
timeSaved: number;
|
|
264
265
|
averageRunTime: number;
|
|
265
|
-
workflowId: string | null;
|
|
266
266
|
workflowName: string;
|
|
267
267
|
projectId: string | null;
|
|
268
268
|
projectName: string;
|
|
@@ -272,12 +272,12 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
272
272
|
}, "strict", z.ZodTypeAny, {
|
|
273
273
|
count: number;
|
|
274
274
|
data: {
|
|
275
|
+
workflowId: string | null;
|
|
275
276
|
total: number;
|
|
276
277
|
failed: number;
|
|
277
278
|
failureRate: number;
|
|
278
279
|
timeSaved: number;
|
|
279
280
|
averageRunTime: number;
|
|
280
|
-
workflowId: string | null;
|
|
281
281
|
workflowName: string;
|
|
282
282
|
projectId: string | null;
|
|
283
283
|
projectName: string;
|
|
@@ -287,12 +287,12 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
287
287
|
}, {
|
|
288
288
|
count: number;
|
|
289
289
|
data: {
|
|
290
|
+
workflowId: string | null;
|
|
290
291
|
total: number;
|
|
291
292
|
failed: number;
|
|
292
293
|
failureRate: number;
|
|
293
294
|
timeSaved: number;
|
|
294
295
|
averageRunTime: number;
|
|
295
|
-
workflowId: string | null;
|
|
296
296
|
workflowName: string;
|
|
297
297
|
projectId: string | null;
|
|
298
298
|
projectName: string;
|
|
@@ -12,13 +12,13 @@ export declare const userProjectSchema: z.ZodObject<{
|
|
|
12
12
|
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
13
13
|
name: z.ZodString;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
role: string;
|
|
16
15
|
id: string;
|
|
17
16
|
name: string;
|
|
18
|
-
}, {
|
|
19
17
|
role: string;
|
|
18
|
+
}, {
|
|
20
19
|
id: string;
|
|
21
20
|
name: string;
|
|
21
|
+
role: string;
|
|
22
22
|
}>;
|
|
23
23
|
export declare const userBaseSchema: z.ZodObject<{
|
|
24
24
|
id: z.ZodString;
|
|
@@ -121,13 +121,13 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
121
121
|
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
122
122
|
name: z.ZodString;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
role: string;
|
|
125
124
|
id: string;
|
|
126
125
|
name: string;
|
|
127
|
-
}, {
|
|
128
126
|
role: string;
|
|
127
|
+
}, {
|
|
129
128
|
id: string;
|
|
130
129
|
name: string;
|
|
130
|
+
role: string;
|
|
131
131
|
}>, "many">>>;
|
|
132
132
|
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
133
133
|
lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -159,9 +159,9 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
159
159
|
mfaEnabled?: boolean | undefined;
|
|
160
160
|
isOwner?: boolean | undefined;
|
|
161
161
|
projectRelations?: {
|
|
162
|
-
role: string;
|
|
163
162
|
id: string;
|
|
164
163
|
name: string;
|
|
164
|
+
role: string;
|
|
165
165
|
}[] | null | undefined;
|
|
166
166
|
isPending?: boolean | undefined;
|
|
167
167
|
signInType?: string | undefined;
|
|
@@ -195,9 +195,9 @@ export declare const userDetailSchema: z.ZodObject<{
|
|
|
195
195
|
mfaEnabled?: boolean | undefined;
|
|
196
196
|
isOwner?: boolean | undefined;
|
|
197
197
|
projectRelations?: {
|
|
198
|
-
role: string;
|
|
199
198
|
id: string;
|
|
200
199
|
name: string;
|
|
200
|
+
role: string;
|
|
201
201
|
}[] | null | undefined;
|
|
202
202
|
isPending?: boolean | undefined;
|
|
203
203
|
signInType?: string | undefined;
|
|
@@ -289,13 +289,13 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
289
289
|
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
290
290
|
name: z.ZodString;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
role: string;
|
|
293
292
|
id: string;
|
|
294
293
|
name: string;
|
|
295
|
-
}, {
|
|
296
294
|
role: string;
|
|
295
|
+
}, {
|
|
297
296
|
id: string;
|
|
298
297
|
name: string;
|
|
298
|
+
role: string;
|
|
299
299
|
}>, "many">>>;
|
|
300
300
|
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
301
301
|
lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -327,9 +327,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
327
327
|
mfaEnabled?: boolean | undefined;
|
|
328
328
|
isOwner?: boolean | undefined;
|
|
329
329
|
projectRelations?: {
|
|
330
|
-
role: string;
|
|
331
330
|
id: string;
|
|
332
331
|
name: string;
|
|
332
|
+
role: string;
|
|
333
333
|
}[] | null | undefined;
|
|
334
334
|
isPending?: boolean | undefined;
|
|
335
335
|
signInType?: string | undefined;
|
|
@@ -363,9 +363,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
363
363
|
mfaEnabled?: boolean | undefined;
|
|
364
364
|
isOwner?: boolean | undefined;
|
|
365
365
|
projectRelations?: {
|
|
366
|
-
role: string;
|
|
367
366
|
id: string;
|
|
368
367
|
name: string;
|
|
368
|
+
role: string;
|
|
369
369
|
}[] | null | undefined;
|
|
370
370
|
isPending?: boolean | undefined;
|
|
371
371
|
signInType?: string | undefined;
|
|
@@ -402,9 +402,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
402
402
|
mfaEnabled?: boolean | undefined;
|
|
403
403
|
isOwner?: boolean | undefined;
|
|
404
404
|
projectRelations?: {
|
|
405
|
-
role: string;
|
|
406
405
|
id: string;
|
|
407
406
|
name: string;
|
|
407
|
+
role: string;
|
|
408
408
|
}[] | null | undefined;
|
|
409
409
|
isPending?: boolean | undefined;
|
|
410
410
|
signInType?: string | undefined;
|
|
@@ -441,9 +441,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
441
441
|
mfaEnabled?: boolean | undefined;
|
|
442
442
|
isOwner?: boolean | undefined;
|
|
443
443
|
projectRelations?: {
|
|
444
|
-
role: string;
|
|
445
444
|
id: string;
|
|
446
445
|
name: string;
|
|
446
|
+
role: string;
|
|
447
447
|
}[] | null | undefined;
|
|
448
448
|
isPending?: boolean | undefined;
|
|
449
449
|
signInType?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@n8n/typescript-config": "1.3.0",
|
|
14
|
-
"@n8n/config": "1.
|
|
14
|
+
"@n8n/config": "1.59.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"xss": "1.0.15",
|
|
18
18
|
"zod": "3.25.67",
|
|
19
19
|
"zod-class": "0.0.16",
|
|
20
|
-
"n8n-workflow": "1.
|
|
21
|
-
"@n8n/permissions": "0.
|
|
20
|
+
"n8n-workflow": "1.114.0",
|
|
21
|
+
"@n8n/permissions": "0.40.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddDataStoreColumnDto = void 0;
|
|
4
|
-
const zod_class_1 = require("zod-class");
|
|
5
|
-
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
6
|
-
class AddDataStoreColumnDto extends zod_class_1.Z.class(data_store_schema_1.dataStoreCreateColumnSchema.shape) {
|
|
7
|
-
}
|
|
8
|
-
exports.AddDataStoreColumnDto = AddDataStoreColumnDto;
|
|
9
|
-
//# sourceMappingURL=add-data-store-column.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-data-store-column.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/add-data-store-column.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAA8E;AAE9E,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC,+CAA2B,CAAC,KAAK,CAAC;CAAG;AAAxF,sDAAwF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddDataStoreRowsDto = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const zod_class_1 = require("zod-class");
|
|
6
|
-
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
7
|
-
class AddDataStoreRowsDto extends zod_class_1.Z.class({
|
|
8
|
-
data: zod_1.z.array(zod_1.z.record(data_store_schema_1.dataStoreColumnNameSchema, data_store_schema_1.dataStoreColumnValueSchema)),
|
|
9
|
-
returnType: data_store_schema_1.insertRowReturnType,
|
|
10
|
-
}) {
|
|
11
|
-
}
|
|
12
|
-
exports.AddDataStoreRowsDto = AddDataStoreRowsDto;
|
|
13
|
-
//# sourceMappingURL=add-data-store-rows.dto.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateDataStoreColumnDto = void 0;
|
|
4
|
-
const zod_class_1 = require("zod-class");
|
|
5
|
-
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
6
|
-
class CreateDataStoreColumnDto extends zod_class_1.Z.class({
|
|
7
|
-
name: data_store_schema_1.dataStoreColumnNameSchema,
|
|
8
|
-
type: data_store_schema_1.dataStoreColumnTypeSchema,
|
|
9
|
-
}) {
|
|
10
|
-
}
|
|
11
|
-
exports.CreateDataStoreColumnDto = CreateDataStoreColumnDto;
|
|
12
|
-
//# sourceMappingURL=create-data-store-column.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-data-store-column.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/create-data-store-column.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAGyC;AAEzC,MAAa,wBAAyB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,IAAI,EAAE,6CAAyB;IAC/B,IAAI,EAAE,6CAAyB;CAC/B,CAAC;CAAG;AAHL,4DAGK"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { Z } from 'zod-class';
|
|
3
|
-
import { CreateDataStoreColumnDto } from './create-data-store-column.dto';
|
|
4
|
-
declare const CreateDataStoreDto_base: Z.Class<{
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
columns: z.ZodArray<typeof CreateDataStoreColumnDto, "many">;
|
|
7
|
-
}>;
|
|
8
|
-
export declare class CreateDataStoreDto extends CreateDataStoreDto_base {
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateDataStoreDto = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const zod_class_1 = require("zod-class");
|
|
6
|
-
const create_data_store_column_dto_1 = require("./create-data-store-column.dto");
|
|
7
|
-
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
8
|
-
class CreateDataStoreDto extends zod_class_1.Z.class({
|
|
9
|
-
name: data_store_schema_1.dataStoreNameSchema,
|
|
10
|
-
columns: zod_1.z.array(create_data_store_column_dto_1.CreateDataStoreColumnDto),
|
|
11
|
-
}) {
|
|
12
|
-
}
|
|
13
|
-
exports.CreateDataStoreDto = CreateDataStoreDto;
|
|
14
|
-
//# sourceMappingURL=create-data-store.dto.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateDataStoreDto = void 0;
|
|
4
|
-
const zod_class_1 = require("zod-class");
|
|
5
|
-
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
6
|
-
class UpdateDataStoreDto extends zod_class_1.Z.class({
|
|
7
|
-
name: data_store_schema_1.dataStoreNameSchema,
|
|
8
|
-
}) {
|
|
9
|
-
}
|
|
10
|
-
exports.UpdateDataStoreDto = UpdateDataStoreDto;
|
|
11
|
-
//# sourceMappingURL=update-data-store.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-data-store.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/update-data-store.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAAsE;AAEtE,MAAa,kBAAmB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC/C,IAAI,EAAE,uCAAmB;CACzB,CAAC;CAAG;AAFL,gDAEK"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dataStoreColumnValueSchema = exports.dateTimeSchema = exports.dataStoreSchema = exports.dataStoreColumnSchema = exports.dataStoreCreateColumnSchema = exports.dataStoreColumnTypeSchema = exports.dataStoreColumnNameSchema = exports.DATA_STORE_COLUMN_ERROR_MESSAGE = exports.DATA_STORE_COLUMN_MAX_LENGTH = exports.DATA_STORE_COLUMN_REGEX = exports.dataStoreIdSchema = exports.dataStoreNameSchema = exports.insertRowReturnType = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.insertRowReturnType = zod_1.z.union([zod_1.z.literal('all'), zod_1.z.literal('count'), zod_1.z.literal('id')]);
|
|
6
|
-
exports.dataStoreNameSchema = zod_1.z.string().trim().min(1).max(128);
|
|
7
|
-
exports.dataStoreIdSchema = zod_1.z.string().max(36);
|
|
8
|
-
exports.DATA_STORE_COLUMN_REGEX = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
|
9
|
-
exports.DATA_STORE_COLUMN_MAX_LENGTH = 63;
|
|
10
|
-
exports.DATA_STORE_COLUMN_ERROR_MESSAGE = 'Only alphabetical characters and non-leading numbers and underscores are allowed for column names, and the maximum length is 63 characters.';
|
|
11
|
-
exports.dataStoreColumnNameSchema = zod_1.z
|
|
12
|
-
.string()
|
|
13
|
-
.trim()
|
|
14
|
-
.min(1)
|
|
15
|
-
.max(exports.DATA_STORE_COLUMN_MAX_LENGTH)
|
|
16
|
-
.regex(exports.DATA_STORE_COLUMN_REGEX, exports.DATA_STORE_COLUMN_ERROR_MESSAGE);
|
|
17
|
-
exports.dataStoreColumnTypeSchema = zod_1.z.enum(['string', 'number', 'boolean', 'date']);
|
|
18
|
-
exports.dataStoreCreateColumnSchema = zod_1.z.object({
|
|
19
|
-
name: exports.dataStoreColumnNameSchema,
|
|
20
|
-
type: exports.dataStoreColumnTypeSchema,
|
|
21
|
-
index: zod_1.z.number().optional(),
|
|
22
|
-
});
|
|
23
|
-
exports.dataStoreColumnSchema = exports.dataStoreCreateColumnSchema.extend({
|
|
24
|
-
dataStoreId: exports.dataStoreIdSchema,
|
|
25
|
-
});
|
|
26
|
-
exports.dataStoreSchema = zod_1.z.object({
|
|
27
|
-
id: exports.dataStoreIdSchema,
|
|
28
|
-
name: exports.dataStoreNameSchema,
|
|
29
|
-
columns: zod_1.z.array(exports.dataStoreColumnSchema),
|
|
30
|
-
createdAt: zod_1.z.string().datetime(),
|
|
31
|
-
updatedAt: zod_1.z.string().datetime(),
|
|
32
|
-
});
|
|
33
|
-
exports.dateTimeSchema = zod_1.z
|
|
34
|
-
.string()
|
|
35
|
-
.datetime({ offset: true })
|
|
36
|
-
.transform((s) => new Date(s))
|
|
37
|
-
.pipe(zod_1.z.date());
|
|
38
|
-
exports.dataStoreColumnValueSchema = zod_1.z.union([
|
|
39
|
-
zod_1.z.string(),
|
|
40
|
-
zod_1.z.number(),
|
|
41
|
-
zod_1.z.boolean(),
|
|
42
|
-
zod_1.z.null(),
|
|
43
|
-
zod_1.z.date(),
|
|
44
|
-
]);
|
|
45
|
-
//# sourceMappingURL=data-store.schema.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|