@n8n/api-types 1.40.0 → 1.41.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/agents/types.d.ts +2 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
- package/dist/dto/credentials/create-credential.dto.js +2 -0
- package/dist/dto/credentials/create-credential.dto.js.map +1 -1
- package/dist/dto/credentials/credential-public.dto.d.ts +26 -2
- package/dist/dto/credentials/credential-public.dto.js +31 -2
- package/dist/dto/credentials/credential-public.dto.js.map +1 -1
- package/dist/dto/credentials/test-credential-request.dto.d.ts +29 -0
- package/dist/dto/credentials/test-credential-request.dto.js +16 -0
- package/dist/dto/credentials/test-credential-request.dto.js.map +1 -0
- package/dist/dto/executions/compare-execution-list-items.d.ts +7 -0
- package/dist/dto/executions/compare-execution-list-items.js +20 -0
- package/dist/dto/executions/compare-execution-list-items.js.map +1 -0
- package/dist/dto/executions/execution-list-pagination.d.ts +9 -0
- package/dist/dto/executions/execution-list-pagination.js +3 -0
- package/dist/dto/executions/execution-list-pagination.js.map +1 -0
- package/dist/dto/folders/folder-public.dto.d.ts +421 -0
- package/dist/dto/folders/folder-public.dto.js +75 -0
- package/dist/dto/folders/folder-public.dto.js.map +1 -0
- package/dist/dto/folders/folder-public.openapi.d.ts +82 -0
- package/dist/dto/folders/folder-public.openapi.js +56 -0
- package/dist/dto/folders/folder-public.openapi.js.map +1 -0
- package/dist/dto/folders/list-folder-query.dto.d.ts +11 -0
- package/dist/dto/folders/list-folder-query.dto.js +14 -18
- package/dist/dto/folders/list-folder-query.dto.js.map +1 -1
- package/dist/dto/index.d.ts +20 -16
- package/dist/dto/index.js +48 -20
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/insights/insights-summary-public.dto.d.ts +109 -0
- package/dist/dto/insights/insights-summary-public.dto.js +33 -0
- package/dist/dto/insights/insights-summary-public.dto.js.map +1 -0
- package/dist/dto/insights/insights-summary-public.openapi.d.ts +12 -0
- package/dist/dto/insights/insights-summary-public.openapi.js +12 -0
- package/dist/dto/insights/insights-summary-public.openapi.js.map +1 -0
- package/dist/dto/promotions/promotable-resource.dto.d.ts +101 -0
- package/dist/dto/promotions/promotable-resource.dto.js +8 -1
- package/dist/dto/promotions/promotable-resource.dto.js.map +1 -1
- package/dist/dto/promotions/promotion-binding-preflight.dto.d.ts +3842 -0
- package/dist/dto/promotions/promotion-binding-preflight.dto.js +120 -0
- package/dist/dto/promotions/promotion-binding-preflight.dto.js.map +1 -0
- package/dist/dto/promotions/promotion-config.dto.d.ts +360 -0
- package/dist/dto/promotions/promotion-config.dto.js +16 -1
- package/dist/dto/promotions/promotion-config.dto.js.map +1 -1
- package/dist/dto/promotions/promotion-connection.dto.d.ts +442 -12
- package/dist/dto/promotions/promotion-connection.dto.js +5 -2
- package/dist/dto/promotions/promotion-connection.dto.js.map +1 -1
- package/dist/dto/promotions/promotion-operations.dto.d.ts +4893 -285
- package/dist/dto/promotions/promotion-operations.dto.js +33 -6
- package/dist/dto/promotions/promotion-operations.dto.js.map +1 -1
- package/dist/dto/tag/tag-public.dto.d.ts +26 -0
- package/dist/dto/tag/tag-public.dto.js +14 -3
- package/dist/dto/tag/tag-public.dto.js.map +1 -1
- package/dist/dto/type-availability-policies/create-policy-document.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/node-type-policy-public.dto.d.ts +565 -0
- package/dist/dto/type-availability-policies/node-type-policy-public.dto.js +70 -0
- package/dist/dto/type-availability-policies/node-type-policy-public.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/policy-rule.schema.js.map +1 -0
- package/dist/dto/type-availability-policies/policy-rule.types.js.map +1 -0
- package/dist/dto/type-availability-policies/policy-selector.schema.js.map +1 -0
- package/dist/dto/type-availability-policies/put-instance-policy.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/put-project-policy.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/replace-attachments.dto.js.map +1 -0
- package/dist/dto/type-availability-policies/update-policy-document.dto.js.map +1 -0
- package/dist/dto/user/user-update-request.dto.d.ts +0 -6
- package/dist/dto/user/user-update-request.dto.js +0 -3
- package/dist/dto/user/user-update-request.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +1 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +36 -8
- package/dist/index.js.map +1 -1
- package/dist/push/agents.d.ts +2 -0
- package/dist/schemas/agent-run-reducer.js +7 -1
- package/dist/schemas/agent-run-reducer.js.map +1 -1
- package/dist/schemas/ai-preference.schema.d.ts +4 -0
- package/dist/schemas/ai-preference.schema.js +5 -2
- package/dist/schemas/ai-preference.schema.js.map +1 -1
- package/dist/schemas/credential-description.schema.d.ts +3 -0
- package/dist/schemas/credential-description.schema.js +14 -0
- package/dist/schemas/credential-description.schema.js.map +1 -0
- package/dist/schemas/instance-ai-approval.schema.d.ts +380 -0
- package/dist/schemas/instance-ai-approval.schema.js +77 -0
- package/dist/schemas/instance-ai-approval.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +1766 -121
- package/dist/schemas/instance-ai.schema.js +171 -14
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/llm-step-display.d.ts +1 -0
- package/dist/schemas/llm-step-display.js +16 -5
- package/dist/schemas/llm-step-display.js.map +1 -1
- package/dist/schemas/mcp.schema.d.ts +1 -2
- package/dist/schemas/mcp.schema.js +3 -2
- package/dist/schemas/mcp.schema.js.map +1 -1
- package/dist/schemas/public-api-path-params.schema.d.ts +4 -0
- package/dist/schemas/public-api-path-params.schema.js +10 -4
- package/dist/schemas/public-api-path-params.schema.js.map +1 -1
- package/package.json +3 -3
- package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.d.ts +0 -15
- package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js +0 -28
- package/dist/dto/instance-ai-examples/instance-ai-examples-query.dto.js.map +0 -1
- package/dist/dto/node-type-policies/create-policy-document.dto.js.map +0 -1
- package/dist/dto/node-type-policies/node-type-policy-public.dto.d.ts +0 -146
- package/dist/dto/node-type-policies/node-type-policy-public.dto.js +0 -27
- package/dist/dto/node-type-policies/node-type-policy-public.dto.js.map +0 -1
- package/dist/dto/node-type-policies/policy-rule.schema.js.map +0 -1
- package/dist/dto/node-type-policies/policy-rule.types.js.map +0 -1
- package/dist/dto/node-type-policies/policy-selector.schema.js.map +0 -1
- package/dist/dto/node-type-policies/put-instance-policy.dto.js.map +0 -1
- package/dist/dto/node-type-policies/put-project-policy.dto.js.map +0 -1
- package/dist/dto/node-type-policies/replace-attachments.dto.js.map +0 -1
- package/dist/dto/node-type-policies/update-policy-document.dto.js.map +0 -1
- /package/dist/dto/{node-type-policies → type-availability-policies}/create-policy-document.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/create-policy-document.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.schema.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.schema.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.types.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-rule.types.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-selector.schema.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/policy-selector.schema.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-instance-policy.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-instance-policy.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-project-policy.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/put-project-policy.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/replace-attachments.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/replace-attachments.dto.js +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/update-policy-document.dto.d.ts +0 -0
- /package/dist/dto/{node-type-policies → type-availability-policies}/update-policy-document.dto.js +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import '../../openapi-extend';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const InsightsSummaryPublicDto_base: import("../../zod-class").ZodClass<{
|
|
4
|
+
total: {
|
|
5
|
+
value: number;
|
|
6
|
+
deviation: number | null;
|
|
7
|
+
unit: "count";
|
|
8
|
+
};
|
|
9
|
+
failed: {
|
|
10
|
+
value: number;
|
|
11
|
+
deviation: number | null;
|
|
12
|
+
unit: "count";
|
|
13
|
+
};
|
|
14
|
+
failureRate: {
|
|
15
|
+
value: number;
|
|
16
|
+
deviation: number | null;
|
|
17
|
+
unit: "ratio";
|
|
18
|
+
};
|
|
19
|
+
timeSaved: {
|
|
20
|
+
value: number;
|
|
21
|
+
deviation: number | null;
|
|
22
|
+
unit: "minute";
|
|
23
|
+
};
|
|
24
|
+
averageRunTime: {
|
|
25
|
+
value: number;
|
|
26
|
+
deviation: number | null;
|
|
27
|
+
unit: "millisecond";
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
total: z.ZodObject<{
|
|
31
|
+
value: z.ZodNumber;
|
|
32
|
+
deviation: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
unit: z.ZodLiteral<"count">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
value: number;
|
|
36
|
+
deviation: number | null;
|
|
37
|
+
unit: "count";
|
|
38
|
+
}, {
|
|
39
|
+
value: number;
|
|
40
|
+
deviation: number | null;
|
|
41
|
+
unit: "count";
|
|
42
|
+
}>;
|
|
43
|
+
failed: z.ZodObject<{
|
|
44
|
+
value: z.ZodNumber;
|
|
45
|
+
deviation: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
unit: z.ZodLiteral<"count">;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
value: number;
|
|
49
|
+
deviation: number | null;
|
|
50
|
+
unit: "count";
|
|
51
|
+
}, {
|
|
52
|
+
value: number;
|
|
53
|
+
deviation: number | null;
|
|
54
|
+
unit: "count";
|
|
55
|
+
}>;
|
|
56
|
+
failureRate: z.ZodObject<{
|
|
57
|
+
value: z.ZodNumber;
|
|
58
|
+
deviation: z.ZodNullable<z.ZodNumber>;
|
|
59
|
+
unit: z.ZodLiteral<"ratio">;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
value: number;
|
|
62
|
+
deviation: number | null;
|
|
63
|
+
unit: "ratio";
|
|
64
|
+
}, {
|
|
65
|
+
value: number;
|
|
66
|
+
deviation: number | null;
|
|
67
|
+
unit: "ratio";
|
|
68
|
+
}>;
|
|
69
|
+
timeSaved: z.ZodObject<{
|
|
70
|
+
value: z.ZodNumber;
|
|
71
|
+
deviation: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
unit: z.ZodLiteral<"minute">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
value: number;
|
|
75
|
+
deviation: number | null;
|
|
76
|
+
unit: "minute";
|
|
77
|
+
}, {
|
|
78
|
+
value: number;
|
|
79
|
+
deviation: number | null;
|
|
80
|
+
unit: "minute";
|
|
81
|
+
}>;
|
|
82
|
+
averageRunTime: z.ZodObject<{
|
|
83
|
+
value: z.ZodNumber;
|
|
84
|
+
deviation: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
unit: z.ZodLiteral<"millisecond">;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
value: number;
|
|
88
|
+
deviation: number | null;
|
|
89
|
+
unit: "millisecond";
|
|
90
|
+
}, {
|
|
91
|
+
value: number;
|
|
92
|
+
deviation: number | null;
|
|
93
|
+
unit: "millisecond";
|
|
94
|
+
}>;
|
|
95
|
+
}>;
|
|
96
|
+
export declare class InsightsSummaryPublicDto extends InsightsSummaryPublicDto_base {
|
|
97
|
+
}
|
|
98
|
+
declare const InsightsSummaryQueryPublicDto_base: import("../../zod-class").ZodClass<{
|
|
99
|
+
startDate?: string | undefined;
|
|
100
|
+
endDate?: string | undefined;
|
|
101
|
+
projectId?: string | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
104
|
+
endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
105
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}>;
|
|
107
|
+
export declare class InsightsSummaryQueryPublicDto extends InsightsSummaryQueryPublicDto_base {
|
|
108
|
+
}
|
|
109
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InsightsSummaryQueryPublicDto = exports.InsightsSummaryPublicDto = void 0;
|
|
4
|
+
require("../../openapi-extend");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const insights_summary_public_openapi_1 = require("./insights-summary-public.openapi");
|
|
7
|
+
const zod_class_1 = require("../../zod-class");
|
|
8
|
+
const summaryMetricPublicSchema = (unit) => zod_1.z.object({
|
|
9
|
+
value: zod_1.z.number(),
|
|
10
|
+
deviation: zod_1.z.number().nullable(),
|
|
11
|
+
unit: zod_1.z.literal(unit),
|
|
12
|
+
});
|
|
13
|
+
class InsightsSummaryPublicDto extends zod_class_1.Z.class({
|
|
14
|
+
total: summaryMetricPublicSchema('count'),
|
|
15
|
+
failed: summaryMetricPublicSchema('count'),
|
|
16
|
+
failureRate: summaryMetricPublicSchema('ratio'),
|
|
17
|
+
timeSaved: summaryMetricPublicSchema('minute'),
|
|
18
|
+
averageRunTime: summaryMetricPublicSchema('millisecond'),
|
|
19
|
+
}) {
|
|
20
|
+
}
|
|
21
|
+
exports.InsightsSummaryPublicDto = InsightsSummaryPublicDto;
|
|
22
|
+
const dateTimeQuerySchema = zod_1.z
|
|
23
|
+
.string()
|
|
24
|
+
.datetime({ offset: true })
|
|
25
|
+
.refine((value) => !Number.isNaN(Date.parse(value)), 'Invalid datetime');
|
|
26
|
+
class InsightsSummaryQueryPublicDto extends zod_class_1.Z.class({
|
|
27
|
+
startDate: dateTimeQuerySchema.optional().openapi(insights_summary_public_openapi_1.insightsSummaryQueryFieldDocs.startDate),
|
|
28
|
+
endDate: dateTimeQuerySchema.optional().openapi(insights_summary_public_openapi_1.insightsSummaryQueryFieldDocs.endDate),
|
|
29
|
+
projectId: zod_1.z.string().optional().openapi(insights_summary_public_openapi_1.insightsSummaryQueryFieldDocs.projectId),
|
|
30
|
+
}) {
|
|
31
|
+
}
|
|
32
|
+
exports.InsightsSummaryQueryPublicDto = InsightsSummaryQueryPublicDto;
|
|
33
|
+
//# sourceMappingURL=insights-summary-public.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insights-summary-public.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/insights-summary-public.dto.ts"],"names":[],"mappings":";;;AAAA,gCAA8B;AAE9B,6BAAwB;AAExB,uFAAkF;AAClF,+CAAoC;AAEpC,MAAM,yBAAyB,GAAG,CAAsB,IAAU,EAAE,EAAE,CACrE,OAAC,CAAC,MAAM,CAAC;IACR,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACrB,CAAC,CAAC;AAEJ,8BAAsC,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,KAAK,EAAE,yBAAyB,CAAC,OAAO,CAAC;IACzC,MAAM,EAAE,yBAAyB,CAAC,OAAO,CAAC;IAC1C,WAAW,EAAE,yBAAyB,CAAC,OAAO,CAAC;IAC/C,SAAS,EAAE,yBAAyB,CAAC,QAAQ,CAAC;IAC9C,cAAc,EAAE,yBAAyB,CAAC,aAAa,CAAC;CACxD,CAAC;CAAG;;AAIL,MAAM,mBAAmB,GAAG,OAAC;KAC3B,MAAM,EAAE;KACR,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC1B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAE1E,mCAA2C,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC1D,SAAS,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,+DAA6B,CAAC,SAAS,CAAC;IAC1F,OAAO,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,+DAA6B,CAAC,OAAO,CAAC;IACtF,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,+DAA6B,CAAC,SAAS,CAAC;CACjF,CAAC;CAAG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const insightsSummaryQueryFieldDocs: {
|
|
2
|
+
readonly startDate: {
|
|
3
|
+
readonly description: 'ISO 8601 start date. Defaults to 7 days ago.';
|
|
4
|
+
};
|
|
5
|
+
readonly endDate: {
|
|
6
|
+
readonly description: 'ISO 8601 end date. Defaults to now.';
|
|
7
|
+
};
|
|
8
|
+
readonly projectId: {
|
|
9
|
+
readonly description: 'Project identifier to filter insights by project.';
|
|
10
|
+
readonly example: 'VmwOO9HeTEj20kxM';
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.insightsSummaryQueryFieldDocs = void 0;
|
|
4
|
+
exports.insightsSummaryQueryFieldDocs = {
|
|
5
|
+
startDate: { description: 'ISO 8601 start date. Defaults to 7 days ago.' },
|
|
6
|
+
endDate: { description: 'ISO 8601 end date. Defaults to now.' },
|
|
7
|
+
projectId: {
|
|
8
|
+
description: 'Project identifier to filter insights by project.',
|
|
9
|
+
example: 'VmwOO9HeTEj20kxM',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=insights-summary-public.openapi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insights-summary-public.openapi.js","sourceRoot":"","sources":["../../../src/dto/insights/insights-summary-public.openapi.ts"],"names":[],"mappings":";;;AAEa,QAAA,6BAA6B,GAAG;IAC5C,SAAS,EAAE,EAAE,WAAW,EAAE,8CAA8C,EAAE;IAC1E,OAAO,EAAE,EAAE,WAAW,EAAE,qCAAqC,EAAE;IAC/D,SAAS,EAAE;QACV,WAAW,EAAE,mDAAmD;QAChE,OAAO,EAAE,kBAAkB;KAC3B;CACqD,CAAC"}
|
|
@@ -43,6 +43,107 @@ export declare const promotableResourceSchema: z.ZodObject<{
|
|
|
43
43
|
dependencyCount: number;
|
|
44
44
|
}>;
|
|
45
45
|
export type PromotableResource = z.infer<typeof promotableResourceSchema>;
|
|
46
|
+
export declare const promotionChangesSchema: z.ZodObject<{
|
|
47
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
48
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
type: z.ZodEnum<["workflow"]>;
|
|
52
|
+
status: z.ZodEnum<["new", "modified", "renamed", "renamed-and-modified", "archived", "deleted"]>;
|
|
53
|
+
version: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
55
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
56
|
+
dependencyCount: z.ZodNumber;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
type: "workflow";
|
|
61
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
62
|
+
version: number | null;
|
|
63
|
+
updatedAt: string | null;
|
|
64
|
+
updatedBy: string | null;
|
|
65
|
+
dependencyCount: number;
|
|
66
|
+
}, {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
type: "workflow";
|
|
70
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
71
|
+
version: number | null;
|
|
72
|
+
updatedAt: string | null;
|
|
73
|
+
updatedBy: string | null;
|
|
74
|
+
dependencyCount: number;
|
|
75
|
+
}>, "many">;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
commitSha: string | null;
|
|
78
|
+
changes: {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
type: "workflow";
|
|
82
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
83
|
+
version: number | null;
|
|
84
|
+
updatedAt: string | null;
|
|
85
|
+
updatedBy: string | null;
|
|
86
|
+
dependencyCount: number;
|
|
87
|
+
}[];
|
|
88
|
+
}, {
|
|
89
|
+
commitSha: string | null;
|
|
90
|
+
changes: {
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
type: "workflow";
|
|
94
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
95
|
+
version: number | null;
|
|
96
|
+
updatedAt: string | null;
|
|
97
|
+
updatedBy: string | null;
|
|
98
|
+
dependencyCount: number;
|
|
99
|
+
}[];
|
|
100
|
+
}>;
|
|
101
|
+
export type PromotionChanges = z.infer<typeof promotionChangesSchema>;
|
|
102
|
+
declare const PromotionChangesDto_base: import("../../zod-class").ZodClass<{
|
|
103
|
+
commitSha: string | null;
|
|
104
|
+
changes: {
|
|
105
|
+
id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
type: "workflow";
|
|
108
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
109
|
+
version: number | null;
|
|
110
|
+
updatedAt: string | null;
|
|
111
|
+
updatedBy: string | null;
|
|
112
|
+
dependencyCount: number;
|
|
113
|
+
}[];
|
|
114
|
+
}, {
|
|
115
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
116
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
type: z.ZodEnum<["workflow"]>;
|
|
120
|
+
status: z.ZodEnum<["new", "modified", "renamed", "renamed-and-modified", "archived", "deleted"]>;
|
|
121
|
+
version: z.ZodNullable<z.ZodNumber>;
|
|
122
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
123
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
124
|
+
dependencyCount: z.ZodNumber;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
type: "workflow";
|
|
129
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
130
|
+
version: number | null;
|
|
131
|
+
updatedAt: string | null;
|
|
132
|
+
updatedBy: string | null;
|
|
133
|
+
dependencyCount: number;
|
|
134
|
+
}, {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
type: "workflow";
|
|
138
|
+
status: "archived" | "deleted" | "modified" | "new" | "renamed" | "renamed-and-modified";
|
|
139
|
+
version: number | null;
|
|
140
|
+
updatedAt: string | null;
|
|
141
|
+
updatedBy: string | null;
|
|
142
|
+
dependencyCount: number;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
}>;
|
|
145
|
+
export declare class PromotionChangesDto extends PromotionChangesDto_base {
|
|
146
|
+
}
|
|
46
147
|
export declare const promoteRequestSchema: z.ZodObject<{
|
|
47
148
|
workflowIds: z.ZodArray<z.ZodString, "many">;
|
|
48
149
|
createBranch: z.ZodBoolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.promoteRequestSchema = exports.promotableResourceSchema = exports.promotableResourceTypeSchema = exports.promotableResourceStatusSchema = exports.PromotionChangesQueryDto = void 0;
|
|
3
|
+
exports.promoteRequestSchema = exports.PromotionChangesDto = exports.promotionChangesSchema = exports.promotableResourceSchema = exports.promotableResourceTypeSchema = exports.promotableResourceStatusSchema = exports.PromotionChangesQueryDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const id_schema_1 = require("../../schemas/id.schema");
|
|
6
6
|
const zod_class_1 = require("../../zod-class");
|
|
@@ -30,6 +30,13 @@ exports.promotableResourceSchema = zod_1.z.object({
|
|
|
30
30
|
updatedBy: zod_1.z.string().nullable(),
|
|
31
31
|
dependencyCount: zod_1.z.number().int().nonnegative(),
|
|
32
32
|
});
|
|
33
|
+
exports.promotionChangesSchema = zod_1.z.object({
|
|
34
|
+
commitSha: zod_1.z.string().nullable(),
|
|
35
|
+
changes: exports.promotableResourceSchema.array(),
|
|
36
|
+
});
|
|
37
|
+
class PromotionChangesDto extends zod_class_1.Z.class(exports.promotionChangesSchema.shape) {
|
|
38
|
+
}
|
|
39
|
+
exports.PromotionChangesDto = PromotionChangesDto;
|
|
33
40
|
exports.promoteRequestSchema = zod_1.z.object({
|
|
34
41
|
workflowIds: zod_1.z.array(id_schema_1.n8nIdSchema).min(1),
|
|
35
42
|
createBranch: zod_1.z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotable-resource.dto.js","sourceRoot":"","sources":["../../../src/dto/promotions/promotable-resource.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uDAAsD;AACtD,+CAAoC;AAEpC,8BAAsC,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC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