@n8n/api-types 0.48.0 → 0.50.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/api-keys.d.ts +1 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +132 -0
- package/dist/chat-hub.js +46 -0
- package/dist/chat-hub.js.map +1 -0
- package/dist/dto/ai/ai-build-request.dto.d.ts +2 -2
- 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.d.ts +1 -0
- package/dist/dto/{data-store → data-table}/delete-data-table-rows.dto.js +3 -2
- 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.d.ts → data-table/update-data-table-row.dto.d.ts} +1 -0
- package/dist/dto/{data-store/update-data-store-row.dto.js → data-table/update-data-table-row.dto.js} +4 -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} +3 -2
- package/dist/dto/{data-store/upsert-data-store-row.dto.js → data-table/upsert-data-table-row.dto.js} +8 -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/folders/create-folder.dto.d.ts +1 -1
- package/dist/dto/folders/update-folder.dto.d.ts +1 -1
- 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/invitation/invite-users-request.dto.d.ts +2 -2
- package/dist/dto/owner/dismiss-banner-request.dto.d.ts +1 -1
- package/dist/dto/project/add-users-to-project.dto.d.ts +2 -2
- package/dist/dto/project/update-project.dto.d.ts +2 -2
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +3 -3
- package/dist/dto/variables/base.dto.d.ts +18 -0
- package/dist/dto/variables/base.dto.js +27 -0
- package/dist/dto/variables/base.dto.js.map +1 -0
- package/dist/dto/variables/create-variable-request.dto.d.ts +36 -0
- package/dist/dto/variables/create-variable-request.dto.js +11 -0
- package/dist/dto/variables/create-variable-request.dto.js.map +1 -0
- package/dist/dto/variables/update-variable-request.dto.d.ts +11 -0
- package/dist/dto/variables/update-variable-request.dto.js +15 -0
- package/dist/dto/variables/update-variable-request.dto.js.map +1 -0
- package/dist/dto/variables/variables-list-request.dto.d.ts +1 -0
- package/dist/dto/variables/variables-list-request.dto.js +1 -0
- package/dist/dto/variables/variables-list-request.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +4 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/push/execution.d.ts +0 -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/folder.schema.d.ts +1 -1
- package/dist/schemas/folder.schema.js +38 -1
- package/dist/schemas/folder.schema.js.map +1 -1
- package/dist/schemas/project.schema.d.ts +2 -2
- package/dist/schemas/source-controlled-file.schema.d.ts +4 -4
- package/dist/schemas/source-controlled-file.schema.js +9 -1
- package/dist/schemas/source-controlled-file.schema.js.map +1 -1
- package/dist/schemas/usage.schema.d.ts +137 -0
- package/dist/schemas/usage.schema.js +26 -0
- package/dist/schemas/usage.schema.js.map +1 -0
- package/dist/schemas/user.schema.d.ts +41 -20
- package/dist/schemas/user.schema.js +5 -3
- package/dist/schemas/user.schema.js.map +1 -1
- 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
|
@@ -12,20 +12,40 @@ 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
|
-
export declare const
|
|
23
|
+
export declare const userBaseSchema: z.ZodObject<{
|
|
24
24
|
id: z.ZodString;
|
|
25
25
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
role: z.ZodOptional<z.ZodEnum<[Role, ...Role[]]>>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
id: string;
|
|
31
|
+
role?: Role | undefined;
|
|
32
|
+
email?: string | null | undefined;
|
|
33
|
+
firstName?: string | null | undefined;
|
|
34
|
+
lastName?: string | null | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
id: string;
|
|
37
|
+
role?: Role | undefined;
|
|
38
|
+
email?: string | null | undefined;
|
|
39
|
+
firstName?: string | null | undefined;
|
|
40
|
+
lastName?: string | null | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const userDetailSchema: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
role: z.ZodOptional<z.ZodEnum<[Role, ...Role[]]>>;
|
|
48
|
+
} & {
|
|
29
49
|
isPending: z.ZodOptional<z.ZodBoolean>;
|
|
30
50
|
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
31
51
|
signInType: z.ZodOptional<z.ZodString>;
|
|
@@ -101,21 +121,21 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
101
121
|
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
102
122
|
name: z.ZodString;
|
|
103
123
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
role: string;
|
|
105
124
|
id: string;
|
|
106
125
|
name: string;
|
|
107
|
-
}, {
|
|
108
126
|
role: string;
|
|
127
|
+
}, {
|
|
109
128
|
id: string;
|
|
110
129
|
name: string;
|
|
130
|
+
role: string;
|
|
111
131
|
}>, "many">>>;
|
|
112
132
|
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
113
133
|
lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
134
|
inviteAcceptUrl: z.ZodOptional<z.ZodString>;
|
|
115
135
|
}, "strip", z.ZodTypeAny, {
|
|
116
136
|
id: string;
|
|
117
|
-
email?: string | null | undefined;
|
|
118
137
|
role?: Role | undefined;
|
|
138
|
+
email?: string | null | undefined;
|
|
119
139
|
settings?: {
|
|
120
140
|
userActivated?: boolean | undefined;
|
|
121
141
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -139,9 +159,9 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
139
159
|
mfaEnabled?: boolean | undefined;
|
|
140
160
|
isOwner?: boolean | undefined;
|
|
141
161
|
projectRelations?: {
|
|
142
|
-
role: string;
|
|
143
162
|
id: string;
|
|
144
163
|
name: string;
|
|
164
|
+
role: string;
|
|
145
165
|
}[] | null | undefined;
|
|
146
166
|
isPending?: boolean | undefined;
|
|
147
167
|
signInType?: string | undefined;
|
|
@@ -150,8 +170,8 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
150
170
|
inviteAcceptUrl?: string | undefined;
|
|
151
171
|
}, {
|
|
152
172
|
id: string;
|
|
153
|
-
email?: string | null | undefined;
|
|
154
173
|
role?: Role | undefined;
|
|
174
|
+
email?: string | null | undefined;
|
|
155
175
|
settings?: {
|
|
156
176
|
userActivated?: boolean | undefined;
|
|
157
177
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -175,9 +195,9 @@ export declare const userListItemSchema: z.ZodObject<{
|
|
|
175
195
|
mfaEnabled?: boolean | undefined;
|
|
176
196
|
isOwner?: boolean | undefined;
|
|
177
197
|
projectRelations?: {
|
|
178
|
-
role: string;
|
|
179
198
|
id: string;
|
|
180
199
|
name: string;
|
|
200
|
+
role: string;
|
|
181
201
|
}[] | null | undefined;
|
|
182
202
|
isPending?: boolean | undefined;
|
|
183
203
|
signInType?: string | undefined;
|
|
@@ -193,6 +213,7 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
193
213
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
214
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
215
|
role: z.ZodOptional<z.ZodEnum<[Role, ...Role[]]>>;
|
|
216
|
+
} & {
|
|
196
217
|
isPending: z.ZodOptional<z.ZodBoolean>;
|
|
197
218
|
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
198
219
|
signInType: z.ZodOptional<z.ZodString>;
|
|
@@ -268,21 +289,21 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
268
289
|
role: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["project:personalOwner"]>, z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
269
290
|
name: z.ZodString;
|
|
270
291
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
role: string;
|
|
272
292
|
id: string;
|
|
273
293
|
name: string;
|
|
274
|
-
}, {
|
|
275
294
|
role: string;
|
|
295
|
+
}, {
|
|
276
296
|
id: string;
|
|
277
297
|
name: string;
|
|
298
|
+
role: string;
|
|
278
299
|
}>, "many">>>;
|
|
279
300
|
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
280
301
|
lastActiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
302
|
inviteAcceptUrl: z.ZodOptional<z.ZodString>;
|
|
282
303
|
}, "strip", z.ZodTypeAny, {
|
|
283
304
|
id: string;
|
|
284
|
-
email?: string | null | undefined;
|
|
285
305
|
role?: Role | undefined;
|
|
306
|
+
email?: string | null | undefined;
|
|
286
307
|
settings?: {
|
|
287
308
|
userActivated?: boolean | undefined;
|
|
288
309
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -306,9 +327,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
306
327
|
mfaEnabled?: boolean | undefined;
|
|
307
328
|
isOwner?: boolean | undefined;
|
|
308
329
|
projectRelations?: {
|
|
309
|
-
role: string;
|
|
310
330
|
id: string;
|
|
311
331
|
name: string;
|
|
332
|
+
role: string;
|
|
312
333
|
}[] | null | undefined;
|
|
313
334
|
isPending?: boolean | undefined;
|
|
314
335
|
signInType?: string | undefined;
|
|
@@ -317,8 +338,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
317
338
|
inviteAcceptUrl?: string | undefined;
|
|
318
339
|
}, {
|
|
319
340
|
id: string;
|
|
320
|
-
email?: string | null | undefined;
|
|
321
341
|
role?: Role | undefined;
|
|
342
|
+
email?: string | null | undefined;
|
|
322
343
|
settings?: {
|
|
323
344
|
userActivated?: boolean | undefined;
|
|
324
345
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -342,9 +363,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
342
363
|
mfaEnabled?: boolean | undefined;
|
|
343
364
|
isOwner?: boolean | undefined;
|
|
344
365
|
projectRelations?: {
|
|
345
|
-
role: string;
|
|
346
366
|
id: string;
|
|
347
367
|
name: string;
|
|
368
|
+
role: string;
|
|
348
369
|
}[] | null | undefined;
|
|
349
370
|
isPending?: boolean | undefined;
|
|
350
371
|
signInType?: string | undefined;
|
|
@@ -356,8 +377,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
356
377
|
count: number;
|
|
357
378
|
items: {
|
|
358
379
|
id: string;
|
|
359
|
-
email?: string | null | undefined;
|
|
360
380
|
role?: Role | undefined;
|
|
381
|
+
email?: string | null | undefined;
|
|
361
382
|
settings?: {
|
|
362
383
|
userActivated?: boolean | undefined;
|
|
363
384
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -381,9 +402,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
381
402
|
mfaEnabled?: boolean | undefined;
|
|
382
403
|
isOwner?: boolean | undefined;
|
|
383
404
|
projectRelations?: {
|
|
384
|
-
role: string;
|
|
385
405
|
id: string;
|
|
386
406
|
name: string;
|
|
407
|
+
role: string;
|
|
387
408
|
}[] | null | undefined;
|
|
388
409
|
isPending?: boolean | undefined;
|
|
389
410
|
signInType?: string | undefined;
|
|
@@ -395,8 +416,8 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
395
416
|
count: number;
|
|
396
417
|
items: {
|
|
397
418
|
id: string;
|
|
398
|
-
email?: string | null | undefined;
|
|
399
419
|
role?: Role | undefined;
|
|
420
|
+
email?: string | null | undefined;
|
|
400
421
|
settings?: {
|
|
401
422
|
userActivated?: boolean | undefined;
|
|
402
423
|
allowSSOManualLogin?: boolean | undefined;
|
|
@@ -420,9 +441,9 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
420
441
|
mfaEnabled?: boolean | undefined;
|
|
421
442
|
isOwner?: boolean | undefined;
|
|
422
443
|
projectRelations?: {
|
|
423
|
-
role: string;
|
|
424
444
|
id: string;
|
|
425
445
|
name: string;
|
|
446
|
+
role: string;
|
|
426
447
|
}[] | null | undefined;
|
|
427
448
|
isPending?: boolean | undefined;
|
|
428
449
|
signInType?: string | undefined;
|
|
@@ -431,5 +452,5 @@ export declare const usersListSchema: z.ZodObject<{
|
|
|
431
452
|
inviteAcceptUrl?: string | undefined;
|
|
432
453
|
}[];
|
|
433
454
|
}>;
|
|
434
|
-
export type User = z.infer<typeof
|
|
455
|
+
export type User = z.infer<typeof userDetailSchema>;
|
|
435
456
|
export type UsersList = z.infer<typeof usersListSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usersListSchema = exports.
|
|
3
|
+
exports.usersListSchema = exports.userDetailSchema = exports.userBaseSchema = exports.userProjectSchema = exports.roleSchema = exports.ROLE = void 0;
|
|
4
4
|
const permissions_1 = require("@n8n/permissions");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const user_settings_schema_1 = require("./user-settings.schema");
|
|
@@ -17,12 +17,14 @@ exports.userProjectSchema = zod_1.z.object({
|
|
|
17
17
|
role: permissions_1.projectRoleSchema,
|
|
18
18
|
name: zod_1.z.string(),
|
|
19
19
|
});
|
|
20
|
-
exports.
|
|
20
|
+
exports.userBaseSchema = zod_1.z.object({
|
|
21
21
|
id: zod_1.z.string(),
|
|
22
22
|
firstName: zod_1.z.string().nullable().optional(),
|
|
23
23
|
lastName: zod_1.z.string().nullable().optional(),
|
|
24
24
|
email: zod_1.z.string().email().nullable().optional(),
|
|
25
25
|
role: exports.roleSchema.optional(),
|
|
26
|
+
});
|
|
27
|
+
exports.userDetailSchema = exports.userBaseSchema.extend({
|
|
26
28
|
isPending: zod_1.z.boolean().optional(),
|
|
27
29
|
isOwner: zod_1.z.boolean().optional(),
|
|
28
30
|
signInType: zod_1.z.string().optional(),
|
|
@@ -35,6 +37,6 @@ exports.userListItemSchema = zod_1.z.object({
|
|
|
35
37
|
});
|
|
36
38
|
exports.usersListSchema = zod_1.z.object({
|
|
37
39
|
count: zod_1.z.number(),
|
|
38
|
-
items: zod_1.z.array(exports.
|
|
40
|
+
items: zod_1.z.array(exports.userDetailSchema),
|
|
39
41
|
});
|
|
40
42
|
//# sourceMappingURL=user.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,6BAAwB;AAExB,iEAA4D;AAE/C,QAAA,IAAI,GAAG;IACnB,KAAK,EAAE,cAAc;IACrB,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,SAAS;CACT,CAAC;AAKX,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAI,CAAsB,CAAC;AACxD,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAEzC,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,+BAAiB;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,
|
|
1
|
+
{"version":3,"file":"user.schema.js","sourceRoot":"","sources":["../../src/schemas/user.schema.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,6BAAwB;AAExB,iEAA4D;AAE/C,QAAA,IAAI,GAAG;IACnB,KAAK,EAAE,cAAc;IACrB,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,SAAS;CACT,CAAC;AAKX,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAI,CAAsB,CAAC;AACxD,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAEzC,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,+BAAiB;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,kBAAU,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,sBAAc,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,yCAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,sBAAsB,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxE,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClE,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;CAChC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.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.58.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
|
-
"
|
|
21
|
-
"n8n
|
|
20
|
+
"n8n-workflow": "1.113.0",
|
|
21
|
+
"@n8n/permissions": "0.39.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
|