@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
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
export declare const chatHubProviderSchema: z.ZodEnum<["openai", "anthropic", "google"]>;
|
|
4
|
+
export type ChatHubProvider = z.infer<typeof chatHubProviderSchema>;
|
|
5
|
+
export declare const PROVIDER_CREDENTIAL_TYPE_MAP: Record<ChatHubProvider, string>;
|
|
6
|
+
export declare const chatHubConversationModelSchema: z.ZodObject<{
|
|
7
|
+
provider: z.ZodEnum<["openai", "anthropic", "google"]>;
|
|
8
|
+
model: z.ZodString;
|
|
9
|
+
workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
provider: "openai" | "anthropic" | "google";
|
|
12
|
+
model: string;
|
|
13
|
+
workflowId: string | null;
|
|
14
|
+
}, {
|
|
15
|
+
provider: "openai" | "anthropic" | "google";
|
|
16
|
+
model: string;
|
|
17
|
+
workflowId?: string | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type ChatHubConversationModel = z.infer<typeof chatHubConversationModelSchema>;
|
|
20
|
+
export declare const chatModelsRequestSchema: z.ZodObject<{
|
|
21
|
+
credentials: z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google"]>, z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
credentials: Partial<Record<"openai" | "anthropic" | "google", string | null>>;
|
|
24
|
+
}, {
|
|
25
|
+
credentials: Partial<Record<"openai" | "anthropic" | "google", string | null>>;
|
|
26
|
+
}>;
|
|
27
|
+
export type ChatModelsRequest = z.infer<typeof chatModelsRequestSchema>;
|
|
28
|
+
export type ChatModelsResponse = Record<ChatHubProvider, {
|
|
29
|
+
models: Array<{
|
|
30
|
+
name: string;
|
|
31
|
+
}>;
|
|
32
|
+
error?: string;
|
|
33
|
+
}>;
|
|
34
|
+
declare const ChatHubSendMessageRequest_base: Z.Class<{
|
|
35
|
+
messageId: z.ZodString;
|
|
36
|
+
sessionId: z.ZodString;
|
|
37
|
+
replyId: z.ZodString;
|
|
38
|
+
message: z.ZodString;
|
|
39
|
+
model: z.ZodObject<{
|
|
40
|
+
provider: z.ZodEnum<["openai", "anthropic", "google"]>;
|
|
41
|
+
model: z.ZodString;
|
|
42
|
+
workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
provider: "openai" | "anthropic" | "google";
|
|
45
|
+
model: string;
|
|
46
|
+
workflowId: string | null;
|
|
47
|
+
}, {
|
|
48
|
+
provider: "openai" | "anthropic" | "google";
|
|
49
|
+
model: string;
|
|
50
|
+
workflowId?: string | null | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
previousMessageId: z.ZodNullable<z.ZodString>;
|
|
53
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
}, {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
}>>;
|
|
63
|
+
}>;
|
|
64
|
+
export declare class ChatHubSendMessageRequest extends ChatHubSendMessageRequest_base {
|
|
65
|
+
}
|
|
66
|
+
declare const ChatHubRegenerateMessageRequest_base: Z.Class<{
|
|
67
|
+
replyId: z.ZodString;
|
|
68
|
+
model: z.ZodObject<{
|
|
69
|
+
provider: z.ZodEnum<["openai", "anthropic", "google"]>;
|
|
70
|
+
model: z.ZodString;
|
|
71
|
+
workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
provider: "openai" | "anthropic" | "google";
|
|
74
|
+
model: string;
|
|
75
|
+
workflowId: string | null;
|
|
76
|
+
}, {
|
|
77
|
+
provider: "openai" | "anthropic" | "google";
|
|
78
|
+
model: string;
|
|
79
|
+
workflowId?: string | null | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}, {
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
}>>;
|
|
91
|
+
}>;
|
|
92
|
+
export declare class ChatHubRegenerateMessageRequest extends ChatHubRegenerateMessageRequest_base {
|
|
93
|
+
}
|
|
94
|
+
declare const ChatHubEditMessageRequest_base: Z.Class<{
|
|
95
|
+
message: z.ZodString;
|
|
96
|
+
messageId: z.ZodString;
|
|
97
|
+
replyId: z.ZodString;
|
|
98
|
+
model: z.ZodObject<{
|
|
99
|
+
provider: z.ZodEnum<["openai", "anthropic", "google"]>;
|
|
100
|
+
model: z.ZodString;
|
|
101
|
+
workflowId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
provider: "openai" | "anthropic" | "google";
|
|
104
|
+
model: string;
|
|
105
|
+
workflowId: string | null;
|
|
106
|
+
}, {
|
|
107
|
+
provider: "openai" | "anthropic" | "google";
|
|
108
|
+
model: string;
|
|
109
|
+
workflowId?: string | null | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
}, {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
}>>;
|
|
121
|
+
}>;
|
|
122
|
+
export declare class ChatHubEditMessageRequest extends ChatHubEditMessageRequest_base {
|
|
123
|
+
}
|
|
124
|
+
declare const ChatHubChangeConversationTitleRequest_base: Z.Class<{
|
|
125
|
+
title: z.ZodString;
|
|
126
|
+
}>;
|
|
127
|
+
export declare class ChatHubChangeConversationTitleRequest extends ChatHubChangeConversationTitleRequest_base {
|
|
128
|
+
}
|
|
129
|
+
export type ChatHubMessageType = 'human' | 'ai' | 'system' | 'tool' | 'generic';
|
|
130
|
+
export type ChatHubMessageStatus = 'success' | 'error' | 'running' | 'cancelled';
|
|
131
|
+
export type ChatSessionId = string;
|
|
132
|
+
export type ChatMessageId = string;
|
|
133
|
+
export interface ChatHubSessionDto {
|
|
134
|
+
id: ChatSessionId;
|
|
135
|
+
title: string;
|
|
136
|
+
ownerId: string;
|
|
137
|
+
lastMessageAt: string | null;
|
|
138
|
+
credentialId: string | null;
|
|
139
|
+
provider: ChatHubProvider | null;
|
|
140
|
+
model: string | null;
|
|
141
|
+
workflowId: string | null;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
updatedAt: string;
|
|
144
|
+
}
|
|
145
|
+
export interface ChatHubMessageDto {
|
|
146
|
+
id: ChatMessageId;
|
|
147
|
+
sessionId: ChatSessionId;
|
|
148
|
+
type: ChatHubMessageType;
|
|
149
|
+
name: string;
|
|
150
|
+
content: string;
|
|
151
|
+
provider: ChatHubProvider | null;
|
|
152
|
+
model: string | null;
|
|
153
|
+
workflowId: string | null;
|
|
154
|
+
executionId: number | null;
|
|
155
|
+
status: ChatHubMessageStatus;
|
|
156
|
+
createdAt: string;
|
|
157
|
+
updatedAt: string;
|
|
158
|
+
previousMessageId: ChatMessageId | null;
|
|
159
|
+
retryOfMessageId: ChatMessageId | null;
|
|
160
|
+
revisionOfMessageId: ChatMessageId | null;
|
|
161
|
+
}
|
|
162
|
+
export type ChatHubConversationsResponse = ChatHubSessionDto[];
|
|
163
|
+
export interface ChatHubConversationDto {
|
|
164
|
+
messages: Record<ChatMessageId, ChatHubMessageDto>;
|
|
165
|
+
}
|
|
166
|
+
export interface ChatHubConversationResponse {
|
|
167
|
+
session: ChatHubSessionDto;
|
|
168
|
+
conversation: ChatHubConversationDto;
|
|
169
|
+
}
|
|
170
|
+
export {};
|
package/dist/chat-hub.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatHubChangeConversationTitleRequest = exports.ChatHubEditMessageRequest = exports.ChatHubRegenerateMessageRequest = exports.ChatHubSendMessageRequest = exports.chatModelsRequestSchema = exports.chatHubConversationModelSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubProviderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
exports.chatHubProviderSchema = zod_1.z.enum(['openai', 'anthropic', 'google']);
|
|
7
|
+
exports.PROVIDER_CREDENTIAL_TYPE_MAP = {
|
|
8
|
+
openai: 'openAiApi',
|
|
9
|
+
anthropic: 'anthropicApi',
|
|
10
|
+
google: 'googlePalmApi',
|
|
11
|
+
};
|
|
12
|
+
exports.chatHubConversationModelSchema = zod_1.z.object({
|
|
13
|
+
provider: exports.chatHubProviderSchema,
|
|
14
|
+
model: zod_1.z.string(),
|
|
15
|
+
workflowId: zod_1.z.string().nullable().default(null),
|
|
16
|
+
});
|
|
17
|
+
exports.chatModelsRequestSchema = zod_1.z.object({
|
|
18
|
+
credentials: zod_1.z.record(exports.chatHubProviderSchema, zod_1.z.string().nullable()),
|
|
19
|
+
});
|
|
20
|
+
class ChatHubSendMessageRequest extends zod_class_1.Z.class({
|
|
21
|
+
messageId: zod_1.z.string().uuid(),
|
|
22
|
+
sessionId: zod_1.z.string().uuid(),
|
|
23
|
+
replyId: zod_1.z.string().uuid(),
|
|
24
|
+
message: zod_1.z.string(),
|
|
25
|
+
model: exports.chatHubConversationModelSchema,
|
|
26
|
+
previousMessageId: zod_1.z.string().uuid().nullable(),
|
|
27
|
+
credentials: zod_1.z.record(zod_1.z.object({
|
|
28
|
+
id: zod_1.z.string(),
|
|
29
|
+
name: zod_1.z.string(),
|
|
30
|
+
})),
|
|
31
|
+
}) {
|
|
32
|
+
}
|
|
33
|
+
exports.ChatHubSendMessageRequest = ChatHubSendMessageRequest;
|
|
34
|
+
class ChatHubRegenerateMessageRequest extends zod_class_1.Z.class({
|
|
35
|
+
replyId: zod_1.z.string().uuid(),
|
|
36
|
+
model: exports.chatHubConversationModelSchema,
|
|
37
|
+
credentials: zod_1.z.record(zod_1.z.object({
|
|
38
|
+
id: zod_1.z.string(),
|
|
39
|
+
name: zod_1.z.string(),
|
|
40
|
+
})),
|
|
41
|
+
}) {
|
|
42
|
+
}
|
|
43
|
+
exports.ChatHubRegenerateMessageRequest = ChatHubRegenerateMessageRequest;
|
|
44
|
+
class ChatHubEditMessageRequest extends zod_class_1.Z.class({
|
|
45
|
+
message: zod_1.z.string(),
|
|
46
|
+
messageId: zod_1.z.string().uuid(),
|
|
47
|
+
replyId: zod_1.z.string().uuid(),
|
|
48
|
+
model: exports.chatHubConversationModelSchema,
|
|
49
|
+
credentials: zod_1.z.record(zod_1.z.object({
|
|
50
|
+
id: zod_1.z.string(),
|
|
51
|
+
name: zod_1.z.string(),
|
|
52
|
+
})),
|
|
53
|
+
}) {
|
|
54
|
+
}
|
|
55
|
+
exports.ChatHubEditMessageRequest = ChatHubEditMessageRequest;
|
|
56
|
+
class ChatHubChangeConversationTitleRequest extends zod_class_1.Z.class({
|
|
57
|
+
title: zod_1.z.string(),
|
|
58
|
+
}) {
|
|
59
|
+
}
|
|
60
|
+
exports.ChatHubChangeConversationTitleRequest = ChatHubChangeConversationTitleRequest;
|
|
61
|
+
//# sourceMappingURL=chat-hub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-hub.js","sourceRoot":"","sources":["../src/chat-hub.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAKjB,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOlE,QAAA,4BAA4B,GAAoC;IAC5E,MAAM,EAAE,WAA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pB,OAAC,CAAC,MAAM,CAAC;QACR,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACF;CACD,CAAC;CAAG;AATL,0EASK;AAEL,MAAa,yBAA0B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACtD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,KAAK,EAAE,sCAA8B;IACrC,WAAW,EAAE,OAAC,CAAC,MAAM,CACpB,OAAC,CAAC,MAAM,CAAC;QACR,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACF;CACD,CAAC;CAAG;AAXL,8DAWK;AAEL,MAAa,qCAAsC,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC;CAAG;AAFL,sFAEK"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { IWorkflowBase, NodeExecutionSchema } from 'n8n-workflow';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { Z } from 'zod-class';
|
|
4
|
+
export interface ExpressionValue {
|
|
5
|
+
expression: string;
|
|
6
|
+
resolvedValue: unknown;
|
|
7
|
+
nodeType?: string;
|
|
8
|
+
}
|
|
4
9
|
declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
5
10
|
payload: z.ZodObject<{
|
|
6
11
|
role: z.ZodLiteral<"user">;
|
|
@@ -22,6 +27,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
|
22
27
|
metadata?: Record<string, string>;
|
|
23
28
|
}>>;
|
|
24
29
|
executionSchema: z.ZodOptional<z.ZodType<NodeExecutionSchema[], z.ZodTypeDef, NodeExecutionSchema[]>>;
|
|
30
|
+
expressionValues: z.ZodOptional<z.ZodType<Record<string, ExpressionValue[]>, z.ZodTypeDef, Record<string, ExpressionValue[]>>>;
|
|
25
31
|
}, "strip", z.ZodTypeAny, {
|
|
26
32
|
currentWorkflow?: Partial<IWorkflowBase> | undefined;
|
|
27
33
|
executionData?: {
|
|
@@ -32,6 +38,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
|
32
38
|
metadata?: Record<string, string>;
|
|
33
39
|
} | undefined;
|
|
34
40
|
executionSchema?: NodeExecutionSchema[] | undefined;
|
|
41
|
+
expressionValues?: Record<string, ExpressionValue[]> | undefined;
|
|
35
42
|
}, {
|
|
36
43
|
currentWorkflow?: Partial<IWorkflowBase> | undefined;
|
|
37
44
|
executionData?: {
|
|
@@ -42,6 +49,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
|
42
49
|
metadata?: Record<string, string>;
|
|
43
50
|
} | undefined;
|
|
44
51
|
executionSchema?: NodeExecutionSchema[] | undefined;
|
|
52
|
+
expressionValues?: Record<string, ExpressionValue[]> | undefined;
|
|
45
53
|
}>;
|
|
46
54
|
useDeprecatedCredentials: z.ZodDefault<z.ZodBoolean>;
|
|
47
55
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -58,6 +66,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
|
58
66
|
metadata?: Record<string, string>;
|
|
59
67
|
} | undefined;
|
|
60
68
|
executionSchema?: NodeExecutionSchema[] | undefined;
|
|
69
|
+
expressionValues?: Record<string, ExpressionValue[]> | undefined;
|
|
61
70
|
};
|
|
62
71
|
useDeprecatedCredentials: boolean;
|
|
63
72
|
}, {
|
|
@@ -74,6 +83,7 @@ declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
|
74
83
|
metadata?: Record<string, string>;
|
|
75
84
|
} | undefined;
|
|
76
85
|
executionSchema?: NodeExecutionSchema[] | undefined;
|
|
86
|
+
expressionValues?: Record<string, ExpressionValue[]> | undefined;
|
|
77
87
|
};
|
|
78
88
|
useDeprecatedCredentials?: boolean | undefined;
|
|
79
89
|
}>;
|
|
@@ -33,6 +33,15 @@ class AiBuilderChatRequestDto extends zod_class_1.Z.class({
|
|
|
33
33
|
return val;
|
|
34
34
|
})
|
|
35
35
|
.optional(),
|
|
36
|
+
expressionValues: zod_1.z
|
|
37
|
+
.custom((val) => {
|
|
38
|
+
const keys = Object.keys(val);
|
|
39
|
+
if (keys.length > 0 && keys.every((key) => val[key].every((v) => !v.expression))) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return val;
|
|
43
|
+
})
|
|
44
|
+
.optional(),
|
|
36
45
|
}),
|
|
37
46
|
useDeprecatedCredentials: zod_1.z.boolean().default(false),
|
|
38
47
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-build-request.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-build-request.dto.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,yCAA8B;
|
|
1
|
+
{"version":3,"file":"ai-build-request.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-build-request.dto.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,yCAA8B;AAQ9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC;YACzB,eAAe,EAAE,OAAC;iBAChB,MAAM,CAAyB,CAAC,GAA2B,EAAE,EAAE;gBAC/D,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;oBACpC,OAAO,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AAK,CAAC;KACpD,CAAC;CACF,CAAC;CAAG;AAnDL,0DAmDK"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
declare const AiSessionMetadataResponseDto_base: Z.Class<{
|
|
4
|
+
hasMessages: z.ZodBoolean;
|
|
5
|
+
}>;
|
|
6
|
+
export declare class AiSessionMetadataResponseDto extends AiSessionMetadataResponseDto_base {
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiSessionMetadataResponseDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
class AiSessionMetadataResponseDto extends zod_class_1.Z.class({
|
|
7
|
+
hasMessages: zod_1.z.boolean(),
|
|
8
|
+
}) {
|
|
9
|
+
}
|
|
10
|
+
exports.AiSessionMetadataResponseDto = AiSessionMetadataResponseDto;
|
|
11
|
+
//# sourceMappingURL=ai-session-metadata-response.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-session-metadata-response.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-session-metadata-response.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;CACxB,CAAC;CAAG;AAFL,oEAEK"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Z } from 'zod-class';
|
|
2
|
-
declare const
|
|
2
|
+
declare const AddDataTableColumnDto_base: Z.Class<{
|
|
3
3
|
name: import("zod").ZodString;
|
|
4
4
|
type: import("zod").ZodEnum<["string", "number", "boolean", "date"]>;
|
|
5
5
|
index: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6
6
|
}>;
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class AddDataTableColumnDto extends AddDataTableColumnDto_base {
|
|
8
8
|
}
|
|
9
9
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddDataTableColumnDto = void 0;
|
|
4
|
+
const zod_class_1 = require("zod-class");
|
|
5
|
+
const data_table_schema_1 = require("../../schemas/data-table.schema");
|
|
6
|
+
class AddDataTableColumnDto extends zod_class_1.Z.class(data_table_schema_1.dataTableCreateColumnSchema.shape) {
|
|
7
|
+
}
|
|
8
|
+
exports.AddDataTableColumnDto = AddDataTableColumnDto;
|
|
9
|
+
//# sourceMappingURL=add-data-table-column.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-data-table-column.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/add-data-table-column.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAA8E;AAE9E,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC,+CAA2B,CAAC,KAAK,CAAC;CAAG;AAAxF,sDAAwF"}
|
package/dist/dto/{data-store/add-data-store-rows.dto.d.ts → data-table/add-data-table-rows.dto.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
|
-
declare const
|
|
3
|
+
declare const AddDataTableRowsDto_base: Z.Class<{
|
|
4
4
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodDate]>>, "many">;
|
|
5
5
|
returnType: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"count">, z.ZodLiteral<"id">]>;
|
|
6
6
|
}>;
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class AddDataTableRowsDto extends AddDataTableRowsDto_base {
|
|
8
8
|
}
|
|
9
9
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddDataTableRowsDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
const data_table_schema_1 = require("../../schemas/data-table.schema");
|
|
7
|
+
class AddDataTableRowsDto extends zod_class_1.Z.class({
|
|
8
|
+
data: zod_1.z.array(zod_1.z.record(data_table_schema_1.dataTableColumnNameSchema, data_table_schema_1.dataTableColumnValueSchema)),
|
|
9
|
+
returnType: data_table_schema_1.insertRowReturnType,
|
|
10
|
+
}) {
|
|
11
|
+
}
|
|
12
|
+
exports.AddDataTableRowsDto = AddDataTableRowsDto;
|
|
13
|
+
//# sourceMappingURL=add-data-table-rows.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-data-
|
|
1
|
+
{"version":3,"file":"add-data-table-rows.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/add-data-table-rows.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uEAIyC;AAEzC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,6CAAyB,EAAE,8CAA0B,CAAC,CAAC;IAC9E,UAAU,EAAE,uCAAmB;CAC/B,CAAC;CAAG;AAHL,kDAGK"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Z } from 'zod-class';
|
|
2
|
-
declare const
|
|
2
|
+
declare const CreateDataTableColumnDto_base: Z.Class<{
|
|
3
3
|
name: import("zod").ZodString;
|
|
4
4
|
type: import("zod").ZodEnum<["string", "number", "boolean", "date"]>;
|
|
5
5
|
}>;
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class CreateDataTableColumnDto extends CreateDataTableColumnDto_base {
|
|
7
7
|
}
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateDataTableColumnDto = void 0;
|
|
4
|
+
const zod_class_1 = require("zod-class");
|
|
5
|
+
const data_table_schema_1 = require("../../schemas/data-table.schema");
|
|
6
|
+
class CreateDataTableColumnDto extends zod_class_1.Z.class({
|
|
7
|
+
name: data_table_schema_1.dataTableColumnNameSchema,
|
|
8
|
+
type: data_table_schema_1.dataTableColumnTypeSchema,
|
|
9
|
+
}) {
|
|
10
|
+
}
|
|
11
|
+
exports.CreateDataTableColumnDto = CreateDataTableColumnDto;
|
|
12
|
+
//# sourceMappingURL=create-data-table-column.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-data-table-column.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/create-data-table-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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
import { CreateDataTableColumnDto } from './create-data-table-column.dto';
|
|
4
|
+
declare const CreateDataTableDto_base: Z.Class<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
columns: z.ZodArray<typeof CreateDataTableColumnDto, "many">;
|
|
7
|
+
}>;
|
|
8
|
+
export declare class CreateDataTableDto extends CreateDataTableDto_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateDataTableDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
const create_data_table_column_dto_1 = require("./create-data-table-column.dto");
|
|
7
|
+
const data_table_schema_1 = require("../../schemas/data-table.schema");
|
|
8
|
+
class CreateDataTableDto extends zod_class_1.Z.class({
|
|
9
|
+
name: data_table_schema_1.dataTableNameSchema,
|
|
10
|
+
columns: zod_1.z.array(create_data_table_column_dto_1.CreateDataTableColumnDto),
|
|
11
|
+
}) {
|
|
12
|
+
}
|
|
13
|
+
exports.CreateDataTableDto = CreateDataTableDto;
|
|
14
|
+
//# sourceMappingURL=create-data-table.dto.js.map
|
package/dist/dto/{data-store/create-data-store.dto.js.map → data-table/create-data-table.dto.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-data-
|
|
1
|
+
{"version":3,"file":"create-data-table.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/create-data-table.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,iFAA0E;AAC1E,uEAAsE;AAEtE,MAAa,kBAAmB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC/C,IAAI,EAAE,uCAAmB;IACzB,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,uDAAwB,CAAC;CAC1C,CAAC;CAAG;AAHL,gDAGK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-data-table-rows.dto.js","sourceRoot":"","sources":["../../../src/dto/data-
|
|
1
|
+
{"version":3,"file":"delete-data-table-rows.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/delete-data-table-rows.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,6BAAwB;AACxB,yCAA8B;AAE9B,qFAA+E;AAE/E,MAAM,6BAA6B,GAAG,OAAC,CAAC,MAAM,EAAE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AQ,CAAC;SAChB,CAAC,CAAC;QACH,OAAO,OAAC,CAAC,KAAK,CAAC;IAChB,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,OAAC;KACxB,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KAChC,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;IAClB,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,GAAG,KAAK,MAAM,CAAC;IACvB,CAAC;IACD,OAAO,GAAG,IAAI,KAAK,CAAC;AACrB,CAAC,CAAC,CAAC;AAEJ,MAAM,wBAAwB,GAAG;IAChC,MAAM,EAAE,6BAA6B;IACrC,UAAU,EAAE,gBAAgB;IAC5B,MAAM,EAAE,gBAAgB;CACxB,CAAC;AAEF,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;CAAG;AAAhF,wDAAgF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
|
-
declare const
|
|
3
|
+
declare const ListDataTableContentQueryDto_base: Z.Class<{
|
|
4
4
|
take: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>>;
|
|
5
5
|
skip: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>>;
|
|
6
6
|
filter: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, {
|
|
@@ -13,6 +13,6 @@ declare const ListDataStoreContentQueryDto_base: Z.Class<{
|
|
|
13
13
|
} | undefined, string | undefined>>;
|
|
14
14
|
sortBy: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, readonly [string, "ASC" | "DESC"] | undefined, string | undefined>>;
|
|
15
15
|
}>;
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class ListDataTableContentQueryDto extends ListDataTableContentQueryDto_base {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ListDataTableContentQueryDto = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_class_1 = require("zod-class");
|
|
7
|
-
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
8
7
|
const data_table_filter_schema_1 = require("../../schemas/data-table-filter.schema");
|
|
8
|
+
const data_table_schema_1 = require("../../schemas/data-table.schema");
|
|
9
9
|
const pagination_dto_1 = require("../pagination/pagination.dto");
|
|
10
10
|
const filterValidator = zod_1.z
|
|
11
11
|
.string()
|
|
@@ -52,7 +52,7 @@ const sortByValidator = zod_1.z
|
|
|
52
52
|
}
|
|
53
53
|
let [column, direction] = val.split(':');
|
|
54
54
|
try {
|
|
55
|
-
column =
|
|
55
|
+
column = data_table_schema_1.dataTableColumnNameSchema.parse(column);
|
|
56
56
|
}
|
|
57
57
|
catch {
|
|
58
58
|
ctx.addIssue({
|
|
@@ -73,12 +73,12 @@ const sortByValidator = zod_1.z
|
|
|
73
73
|
}
|
|
74
74
|
return [column, direction];
|
|
75
75
|
});
|
|
76
|
-
class
|
|
76
|
+
class ListDataTableContentQueryDto extends zod_class_1.Z.class({
|
|
77
77
|
take: pagination_dto_1.paginationSchema.take.optional(),
|
|
78
78
|
skip: pagination_dto_1.paginationSchema.skip.optional(),
|
|
79
79
|
filter: filterValidator.optional(),
|
|
80
80
|
sortBy: sortByValidator.optional(),
|
|
81
81
|
}) {
|
|
82
82
|
}
|
|
83
|
-
exports.
|
|
84
|
-
//# sourceMappingURL=list-data-
|
|
83
|
+
exports.ListDataTableContentQueryDto = ListDataTableContentQueryDto;
|
|
84
|
+
//# sourceMappingURL=list-data-table-content-query.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-
|
|
1
|
+
{"version":3,"file":"list-data-table-content-query.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/list-data-table-content-query.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,6BAAwB;AACxB,yCAA8B;AAE9B,qFAA+E;AAC/E,uEAA4E;AAC5E,iEAAgE;AAEhE,MAAM,eAAe,GAAG,OAAC;KACvB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACvB,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAC;IAC3B,IAAI,CAAC;QACJ,MAAM,MAAM,GAAY,IAAA,wBAAS,EAAC,GAAG,CAAC,CAAC;QACvC,IAAI,CAAC;YACJ,OAAO,gDAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,GAAG,CAAC,QAAQ,CAAC;gBACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,OAAO,EAAE,uBAAuB;gBAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;aAChB,CAAC,CAAC;YACH,OAAO,OAAC,CAAC,KAAK,CAAC;QAChB,CAAC;IACF,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,GAAG,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,uBAAuB;YAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;SAChB,CAAC,CAAC;QACH,OAAO,OAAC,CAAC,KAAK,CAAC;IAChB,CAAC;AACF,CAAC,CAAC,CAAC;AAEJ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AC,CAAC;AAEJ,MAAa,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,IAAI,EAAE,iCAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,iCAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE;CAClC,CAAC;CAAG;AALL,oEAKK"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
3
|
declare const VALID_SORT_OPTIONS: readonly ["name:asc", "name:desc", "createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc", "sizeBytes:asc", "sizeBytes:desc"];
|
|
4
|
-
export type
|
|
5
|
-
declare const
|
|
4
|
+
export type ListDataTableQuerySortOptions = (typeof VALID_SORT_OPTIONS)[number];
|
|
5
|
+
declare const ListDataTableQueryDto_base: Z.Class<{
|
|
6
6
|
filter: z.ZodEffects<z.ZodOptional<z.ZodString>, {
|
|
7
|
-
projectId?: string | string[] | undefined;
|
|
8
7
|
id?: string | string[] | undefined;
|
|
9
8
|
name?: string | string[] | undefined;
|
|
9
|
+
projectId?: string | string[] | undefined;
|
|
10
10
|
} | undefined, string | undefined>;
|
|
11
11
|
sortBy: z.ZodOptional<z.ZodEnum<["name:asc", "name:desc", "createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc", "sizeBytes:asc", "sizeBytes:desc"]>>;
|
|
12
12
|
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
13
13
|
take: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
14
14
|
}>;
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class ListDataTableQueryDto extends ListDataTableQueryDto_base {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
package/dist/dto/{data-store/list-data-store-query.dto.js → data-table/list-data-table-query.dto.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ListDataTableQueryDto = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_class_1 = require("zod-class");
|
|
@@ -53,11 +53,11 @@ const filterValidator = zod_1.z
|
|
|
53
53
|
const sortByValidator = zod_1.z
|
|
54
54
|
.enum(VALID_SORT_OPTIONS, { message: `sortBy must be one of: ${VALID_SORT_OPTIONS.join(', ')}` })
|
|
55
55
|
.optional();
|
|
56
|
-
class
|
|
56
|
+
class ListDataTableQueryDto extends zod_class_1.Z.class({
|
|
57
57
|
...pagination_dto_1.paginationSchema,
|
|
58
58
|
filter: filterValidator,
|
|
59
59
|
sortBy: sortByValidator,
|
|
60
60
|
}) {
|
|
61
61
|
}
|
|
62
|
-
exports.
|
|
63
|
-
//# sourceMappingURL=list-data-
|
|
62
|
+
exports.ListDataTableQueryDto = ListDataTableQueryDto;
|
|
63
|
+
//# sourceMappingURL=list-data-table-query.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-
|
|
1
|
+
{"version":3,"file":"list-data-table-query.dto.js","sourceRoot":"","sources":["../../../src/dto/data-table/list-data-table-query.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,6BAAwB;AACxB,yCAA8B;AAE9B,iEAAgE;AAEhE,MAAM,kBAAkB,GAAG;IAC1B,UAAU;IACV,WAAW;IACX,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,gBAAgB;CACP,CAAC;AAIX,MAAM,cA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C,QAAQ,CAAC;YACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,uBAAuB;YAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;SAChB,CAAC,CAAC;QACH,OAAO,OAAC,CAAC,KAAK,CAAC;IAChB,CAAC;AACF,CAAC,CAAC,CAAC;AAGJ,MAAM,eAAe,GAAG,OAAC;KACvB,IAAI,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,0BAA0B,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;KAChG,QAAQ,EAAE,CAAC;AAEb,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClD,GAAG,iCAAgB;IACnB,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,eAAe;CACvB,CAAC;CAAG;AAJL,sDAIK"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
|
-
declare const
|
|
3
|
+
declare const MoveDataTableColumnDto_base: Z.Class<{
|
|
4
4
|
targetIndex: z.ZodNumber;
|
|
5
5
|
}>;
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class MoveDataTableColumnDto extends MoveDataTableColumnDto_base {
|
|
7
7
|
}
|
|
8
8
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MoveDataTableColumnDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_class_1 = require("zod-class");
|
|
6
|
-
class
|
|
6
|
+
class MoveDataTableColumnDto extends zod_class_1.Z.class({
|
|
7
7
|
targetIndex: zod_1.z.number().int().nonnegative(),
|
|
8
8
|
}) {
|
|
9
9
|
}
|
|
10
|
-
exports.
|
|
11
|
-
//# sourceMappingURL=move-data-
|
|
10
|
+
exports.MoveDataTableColumnDto = MoveDataTableColumnDto;
|
|
11
|
+
//# sourceMappingURL=move-data-table-column.dto.js.map
|