mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Add optional context parameter to track creation source for workflows, credentials, and projects (#18736)
Co-authored-by: r00gm <raul00gm@gmail.com>
This commit is contained in:
@@ -6,4 +6,5 @@ export class CreateCredentialDto extends Z.class({
|
||||
type: z.string().min(1).max(128),
|
||||
data: z.record(z.string(), z.unknown()),
|
||||
projectId: z.string().optional(),
|
||||
uiContext: z.string().optional(),
|
||||
}) {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { z } from 'zod';
|
||||
import { Z } from 'zod-class';
|
||||
|
||||
import { projectIconSchema, projectNameSchema } from '../../schemas/project.schema';
|
||||
@@ -5,4 +6,5 @@ import { projectIconSchema, projectNameSchema } from '../../schemas/project.sche
|
||||
export class CreateProjectDto extends Z.class({
|
||||
name: projectNameSchema,
|
||||
icon: projectIconSchema.optional(),
|
||||
uiContext: z.string().optional(),
|
||||
}) {}
|
||||
|
||||
Reference in New Issue
Block a user