@n8n/api-types 0.49.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/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.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 +11 -11
- package/dist/dto/index.js +22 -22
- 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/frontend-settings.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13 -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/project.schema.d.ts +2 -2
- package/dist/schemas/user.schema.d.ts +20 -20
- 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
|
@@ -4,6 +4,7 @@ declare const ActionResultRequestDto_base: {
|
|
|
4
4
|
Handler: z.ZodString;
|
|
5
5
|
Payload: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>, z.ZodString]>>;
|
|
6
6
|
} & {
|
|
7
|
+
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7
8
|
schema: <T>(this: {
|
|
8
9
|
new (input: any): T;
|
|
9
10
|
[key: string]: any;
|
|
@@ -22,7 +23,6 @@ declare const ActionResultRequestDto_base: {
|
|
|
22
23
|
}>;
|
|
23
24
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
24
25
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
25
|
-
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
26
|
prototype: BaseDynamicParametersRequestDto;
|
|
27
27
|
staticProps: {
|
|
28
28
|
Path: z.ZodString;
|
|
@@ -55,11 +55,11 @@ declare const ActionResultRequestDto_base: {
|
|
|
55
55
|
[x: string]: any;
|
|
56
56
|
};
|
|
57
57
|
} & {
|
|
58
|
-
projectId?: string | undefined;
|
|
59
|
-
methodName?: string | undefined;
|
|
60
58
|
credentials?: {
|
|
61
59
|
[x: string]: any;
|
|
62
60
|
} | undefined;
|
|
61
|
+
projectId?: string | undefined;
|
|
62
|
+
methodName?: string | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
handler: string;
|
|
65
65
|
} & {
|
|
@@ -4,6 +4,7 @@ import { BaseDynamicParametersRequestDto } from './base-dynamic-parameters-reque
|
|
|
4
4
|
declare const OptionsRequestDto_base: {
|
|
5
5
|
LoadOptions: z.ZodType<ILoadOptions | undefined, z.ZodTypeDef, ILoadOptions | undefined>;
|
|
6
6
|
} & {
|
|
7
|
+
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7
8
|
schema: <T>(this: {
|
|
8
9
|
new (input: any): T;
|
|
9
10
|
[key: string]: any;
|
|
@@ -22,7 +23,6 @@ declare const OptionsRequestDto_base: {
|
|
|
22
23
|
}>;
|
|
23
24
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
24
25
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
25
|
-
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
26
|
prototype: BaseDynamicParametersRequestDto;
|
|
27
27
|
staticProps: {
|
|
28
28
|
Path: z.ZodString;
|
|
@@ -53,11 +53,11 @@ declare const OptionsRequestDto_base: {
|
|
|
53
53
|
[x: string]: any;
|
|
54
54
|
};
|
|
55
55
|
} & {
|
|
56
|
-
projectId?: string | undefined;
|
|
57
|
-
methodName?: string | undefined;
|
|
58
56
|
credentials?: {
|
|
59
57
|
[x: string]: any;
|
|
60
58
|
} | undefined;
|
|
59
|
+
projectId?: string | undefined;
|
|
60
|
+
methodName?: string | undefined;
|
|
61
61
|
}, {} & {
|
|
62
62
|
loadOptions?: ILoadOptions | undefined;
|
|
63
63
|
} & BaseDynamicParametersRequestDto, Omit<{
|
|
@@ -5,6 +5,7 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
5
5
|
Filter: z.ZodOptional<z.ZodString>;
|
|
6
6
|
PaginationToken: z.ZodOptional<z.ZodString>;
|
|
7
7
|
} & {
|
|
8
|
+
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8
9
|
schema: <T>(this: {
|
|
9
10
|
new (input: any): T;
|
|
10
11
|
[key: string]: any;
|
|
@@ -23,7 +24,6 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
23
24
|
}>;
|
|
24
25
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
25
26
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
26
|
-
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
27
|
prototype: BaseDynamicParametersRequestDto;
|
|
28
28
|
staticProps: {
|
|
29
29
|
Path: z.ZodString;
|
|
@@ -57,11 +57,11 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
57
57
|
[x: string]: any;
|
|
58
58
|
};
|
|
59
59
|
} & {
|
|
60
|
-
projectId?: string | undefined;
|
|
61
|
-
methodName?: string | undefined;
|
|
62
60
|
credentials?: {
|
|
63
61
|
[x: string]: any;
|
|
64
62
|
} | undefined;
|
|
63
|
+
projectId?: string | undefined;
|
|
64
|
+
methodName?: string | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
methodName: string;
|
|
67
67
|
} & {
|
|
@@ -3,6 +3,7 @@ import { BaseDynamicParametersRequestDto } from './base-dynamic-parameters-reque
|
|
|
3
3
|
declare const ResourceMapperFieldsRequestDto_base: {
|
|
4
4
|
MethodName: z.ZodString;
|
|
5
5
|
} & {
|
|
6
|
+
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6
7
|
schema: <T>(this: {
|
|
7
8
|
new (input: any): T;
|
|
8
9
|
[key: string]: any;
|
|
@@ -21,7 +22,6 @@ declare const ResourceMapperFieldsRequestDto_base: {
|
|
|
21
22
|
}>;
|
|
22
23
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
23
24
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
24
|
-
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
25
25
|
prototype: BaseDynamicParametersRequestDto;
|
|
26
26
|
staticProps: {
|
|
27
27
|
Path: z.ZodString;
|
|
@@ -52,11 +52,11 @@ declare const ResourceMapperFieldsRequestDto_base: {
|
|
|
52
52
|
[x: string]: any;
|
|
53
53
|
};
|
|
54
54
|
} & {
|
|
55
|
-
projectId?: string | undefined;
|
|
56
|
-
methodName?: string | undefined;
|
|
57
55
|
credentials?: {
|
|
58
56
|
[x: string]: any;
|
|
59
57
|
} | undefined;
|
|
58
|
+
projectId?: string | undefined;
|
|
59
|
+
methodName?: string | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
methodName: string;
|
|
62
62
|
} & {} & BaseDynamicParametersRequestDto, Omit<{
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -61,14 +61,14 @@ export { CreateRoleDto } from './roles/create-role.dto';
|
|
|
61
61
|
export { RoleListQueryDto } from './roles/role-list-query.dto';
|
|
62
62
|
export { RoleGetQueryDto } from './roles/role-get-query.dto';
|
|
63
63
|
export { OidcConfigDto } from './oidc/config.dto';
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export { UpdateDataTableRowDto } from './data-
|
|
67
|
-
export { DeleteDataTableRowsDto } from './data-
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
64
|
+
export { CreateDataTableDto } from './data-table/create-data-table.dto';
|
|
65
|
+
export { UpdateDataTableDto } from './data-table/update-data-table.dto';
|
|
66
|
+
export { UpdateDataTableRowDto } from './data-table/update-data-table-row.dto';
|
|
67
|
+
export { DeleteDataTableRowsDto } from './data-table/delete-data-table-rows.dto';
|
|
68
|
+
export { UpsertDataTableRowDto } from './data-table/upsert-data-table-row.dto';
|
|
69
|
+
export { ListDataTableQueryDto } from './data-table/list-data-table-query.dto';
|
|
70
|
+
export { ListDataTableContentQueryDto } from './data-table/list-data-table-content-query.dto';
|
|
71
|
+
export { CreateDataTableColumnDto } from './data-table/create-data-table-column.dto';
|
|
72
|
+
export { AddDataTableRowsDto } from './data-table/add-data-table-rows.dto';
|
|
73
|
+
export { AddDataTableColumnDto } from './data-table/add-data-table-column.dto';
|
|
74
|
+
export { MoveDataTableColumnDto } from './data-table/move-data-table-column.dto';
|
package/dist/dto/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = exports.UpdateVariableRequestDto = exports.CreateVariableRequestDto = exports.VariableListRequestDto = exports.CreateCredentialDto = exports.PushWorkFolderRequestDto = exports.PullWorkFolderRequestDto = exports.CommunityRegisteredRequestDto = exports.UserUpdateRequestDto = exports.SettingsUpdateRequestDto = exports.RoleChangeRequestDto = exports.PasswordUpdateRequestDto = exports.SamlToggleDto = exports.SamlPreferences = exports.SamlAcsDto = exports.ChangeUserRoleInProject = exports.AddUsersToProjectDto = exports.DeleteProjectDto = exports.UpdateProjectWithRelationsDto = exports.UpdateProjectDto = exports.CreateProjectDto = exports.ChangePasswordRequestDto = exports.ResolvePasswordTokenQueryDto = exports.ForgotPasswordRequestDto = exports.DismissBannerRequestDto = exports.OwnerSetupRequestDto = exports.AcceptInvitationRequestDto = exports.InviteUsersRequestDto = exports.ActionResultRequestDto = exports.ResourceMapperFieldsRequestDto = exports.ResourceLocatorRequestDto = exports.OptionsRequestDto = exports.ResolveSignupTokenQueryDto = exports.LoginRequestDto = exports.BinaryDataSignedQueryDto = exports.BinaryDataQueryDto = exports.AiSessionRetrievalRequestDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.MoveDataTableColumnDto = exports.AddDataTableColumnDto = exports.AddDataTableRowsDto = exports.CreateDataTableColumnDto = exports.ListDataTableContentQueryDto = exports.ListDataTableQueryDto = exports.UpsertDataTableRowDto = exports.DeleteDataTableRowsDto = exports.UpdateDataTableRowDto = exports.UpdateDataTableDto = exports.CreateDataTableDto = exports.OidcConfigDto = exports.RoleGetQueryDto = exports.RoleListQueryDto = exports.CreateRoleDto = exports.UpdateRoleDto = exports.USERS_LIST_SORT_OPTIONS = exports.UsersListFilterDto = exports.PaginationDto = exports.InsightsDateFilterDto = exports.ListInsightsWorkflowQueryDto = exports.TransferFolderBodyDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = void 0;
|
|
5
5
|
var ai_ask_request_dto_1 = require("./ai/ai-ask-request.dto");
|
|
6
6
|
Object.defineProperty(exports, "AiAskRequestDto", { enumerable: true, get: function () { return ai_ask_request_dto_1.AiAskRequestDto; } });
|
|
7
7
|
var ai_chat_request_dto_1 = require("./ai/ai-chat-request.dto");
|
|
@@ -130,26 +130,26 @@ var role_get_query_dto_1 = require("./roles/role-get-query.dto");
|
|
|
130
130
|
Object.defineProperty(exports, "RoleGetQueryDto", { enumerable: true, get: function () { return role_get_query_dto_1.RoleGetQueryDto; } });
|
|
131
131
|
var config_dto_1 = require("./oidc/config.dto");
|
|
132
132
|
Object.defineProperty(exports, "OidcConfigDto", { enumerable: true, get: function () { return config_dto_1.OidcConfigDto; } });
|
|
133
|
-
var
|
|
134
|
-
Object.defineProperty(exports, "
|
|
135
|
-
var
|
|
136
|
-
Object.defineProperty(exports, "
|
|
137
|
-
var
|
|
138
|
-
Object.defineProperty(exports, "UpdateDataTableRowDto", { enumerable: true, get: function () { return
|
|
139
|
-
var delete_data_table_rows_dto_1 = require("./data-
|
|
133
|
+
var create_data_table_dto_1 = require("./data-table/create-data-table.dto");
|
|
134
|
+
Object.defineProperty(exports, "CreateDataTableDto", { enumerable: true, get: function () { return create_data_table_dto_1.CreateDataTableDto; } });
|
|
135
|
+
var update_data_table_dto_1 = require("./data-table/update-data-table.dto");
|
|
136
|
+
Object.defineProperty(exports, "UpdateDataTableDto", { enumerable: true, get: function () { return update_data_table_dto_1.UpdateDataTableDto; } });
|
|
137
|
+
var update_data_table_row_dto_1 = require("./data-table/update-data-table-row.dto");
|
|
138
|
+
Object.defineProperty(exports, "UpdateDataTableRowDto", { enumerable: true, get: function () { return update_data_table_row_dto_1.UpdateDataTableRowDto; } });
|
|
139
|
+
var delete_data_table_rows_dto_1 = require("./data-table/delete-data-table-rows.dto");
|
|
140
140
|
Object.defineProperty(exports, "DeleteDataTableRowsDto", { enumerable: true, get: function () { return delete_data_table_rows_dto_1.DeleteDataTableRowsDto; } });
|
|
141
|
-
var
|
|
142
|
-
Object.defineProperty(exports, "
|
|
143
|
-
var
|
|
144
|
-
Object.defineProperty(exports, "
|
|
145
|
-
var
|
|
146
|
-
Object.defineProperty(exports, "
|
|
147
|
-
var
|
|
148
|
-
Object.defineProperty(exports, "
|
|
149
|
-
var
|
|
150
|
-
Object.defineProperty(exports, "
|
|
151
|
-
var
|
|
152
|
-
Object.defineProperty(exports, "
|
|
153
|
-
var
|
|
154
|
-
Object.defineProperty(exports, "
|
|
141
|
+
var upsert_data_table_row_dto_1 = require("./data-table/upsert-data-table-row.dto");
|
|
142
|
+
Object.defineProperty(exports, "UpsertDataTableRowDto", { enumerable: true, get: function () { return upsert_data_table_row_dto_1.UpsertDataTableRowDto; } });
|
|
143
|
+
var list_data_table_query_dto_1 = require("./data-table/list-data-table-query.dto");
|
|
144
|
+
Object.defineProperty(exports, "ListDataTableQueryDto", { enumerable: true, get: function () { return list_data_table_query_dto_1.ListDataTableQueryDto; } });
|
|
145
|
+
var list_data_table_content_query_dto_1 = require("./data-table/list-data-table-content-query.dto");
|
|
146
|
+
Object.defineProperty(exports, "ListDataTableContentQueryDto", { enumerable: true, get: function () { return list_data_table_content_query_dto_1.ListDataTableContentQueryDto; } });
|
|
147
|
+
var create_data_table_column_dto_1 = require("./data-table/create-data-table-column.dto");
|
|
148
|
+
Object.defineProperty(exports, "CreateDataTableColumnDto", { enumerable: true, get: function () { return create_data_table_column_dto_1.CreateDataTableColumnDto; } });
|
|
149
|
+
var add_data_table_rows_dto_1 = require("./data-table/add-data-table-rows.dto");
|
|
150
|
+
Object.defineProperty(exports, "AddDataTableRowsDto", { enumerable: true, get: function () { return add_data_table_rows_dto_1.AddDataTableRowsDto; } });
|
|
151
|
+
var add_data_table_column_dto_1 = require("./data-table/add-data-table-column.dto");
|
|
152
|
+
Object.defineProperty(exports, "AddDataTableColumnDto", { enumerable: true, get: function () { return add_data_table_column_dto_1.AddDataTableColumnDto; } });
|
|
153
|
+
var move_data_table_column_dto_1 = require("./data-table/move-data-table-column.dto");
|
|
154
|
+
Object.defineProperty(exports, "MoveDataTableColumnDto", { enumerable: true, get: function () { return move_data_table_column_dto_1.MoveDataTableColumnDto; } });
|
|
155
155
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,8 +3,8 @@ declare const invitedUserSchema: z.ZodObject<{
|
|
|
3
3
|
email: z.ZodString;
|
|
4
4
|
role: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["global:admin", "global:member"]>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
email: string;
|
|
7
6
|
role: string;
|
|
7
|
+
email: string;
|
|
8
8
|
}, {
|
|
9
9
|
email: string;
|
|
10
10
|
role?: string | undefined;
|
|
@@ -14,8 +14,8 @@ export declare class InviteUsersRequestDto extends Array<z.infer<typeof invitedU
|
|
|
14
14
|
email: string;
|
|
15
15
|
role?: string | undefined;
|
|
16
16
|
}[], {
|
|
17
|
-
email: string;
|
|
18
17
|
role: string;
|
|
18
|
+
email: string;
|
|
19
19
|
}[]>;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Z } from 'zod-class';
|
|
2
2
|
declare const DismissBannerRequestDto_base: Z.Class<{
|
|
3
|
-
banner: import("zod").ZodOptional<import("zod").ZodEnum<["V1", "TRIAL_OVER", "TRIAL", "NON_PRODUCTION_LICENSE", "EMAIL_CONFIRMATION", "
|
|
3
|
+
banner: import("zod").ZodOptional<import("zod").ZodEnum<["V1", "TRIAL_OVER", "TRIAL", "NON_PRODUCTION_LICENSE", "EMAIL_CONFIRMATION", "DATA_TABLE_STORAGE_LIMIT_WARNING", "DATA_TABLE_STORAGE_LIMIT_ERROR"]>>;
|
|
4
4
|
}>;
|
|
5
5
|
export declare class DismissBannerRequestDto extends DismissBannerRequestDto_base {
|
|
6
6
|
}
|
|
@@ -5,11 +5,11 @@ declare const AddUsersToProjectDto_base: Z.Class<{
|
|
|
5
5
|
userId: z.ZodString;
|
|
6
6
|
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
userId: string;
|
|
9
8
|
role: string;
|
|
10
|
-
}, {
|
|
11
9
|
userId: string;
|
|
10
|
+
}, {
|
|
12
11
|
role: string;
|
|
12
|
+
userId: string;
|
|
13
13
|
}>, "many">;
|
|
14
14
|
}>;
|
|
15
15
|
export declare class AddUsersToProjectDto extends AddUsersToProjectDto_base {
|
|
@@ -21,11 +21,11 @@ declare const UpdateProjectWithRelationsDto_base: Z.Class<{
|
|
|
21
21
|
userId: z.ZodString;
|
|
22
22
|
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
userId: string;
|
|
25
24
|
role: string;
|
|
26
|
-
}, {
|
|
27
25
|
userId: string;
|
|
26
|
+
}, {
|
|
28
27
|
role: string;
|
|
28
|
+
userId: string;
|
|
29
29
|
}>, "many">>;
|
|
30
30
|
name: z.ZodOptional<z.ZodString>;
|
|
31
31
|
icon: z.ZodOptional<z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type * from './frontend-settings';
|
|
|
6
6
|
export type * from './user';
|
|
7
7
|
export type * from './api-keys';
|
|
8
8
|
export type * from './community-node-types';
|
|
9
|
+
export { chatHubConversationModelSchema, type ChatHubConversationModel, chatHubProviderSchema, type ChatHubProvider, PROVIDER_CREDENTIAL_TYPE_MAP, chatModelsRequestSchema, type ChatModelsRequest, type ChatModelsResponse, ChatHubSendMessageRequest, type ChatHubConversationsResponse, type ChatHubMessagesResponse, type ChatHubConversation, type ChatHubMessage, } from './chat-hub';
|
|
9
10
|
export type { Collaborator } from './push/collaboration';
|
|
10
11
|
export type { HeartbeatMessage } from './push/heartbeat';
|
|
11
12
|
export { createHeartbeatMessage, heartbeatMessageSchema } from './push/heartbeat';
|
|
@@ -17,7 +18,7 @@ export type { ProjectType, ProjectIcon, ProjectRelation, } from './schemas/proje
|
|
|
17
18
|
export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
|
|
18
19
|
export { type InsightsSummaryType, type InsightsSummaryUnit, type InsightsSummary, type InsightsByWorkflow, type InsightsByTime, type InsightsDateRange, type RestrictedInsightsByTime, } from './schemas/insights.schema';
|
|
19
20
|
export { ROLE, type Role, type User, type UsersList, usersListSchema, userBaseSchema, userDetailSchema, } from './schemas/user.schema';
|
|
20
|
-
export {
|
|
21
|
+
export { DATA_TABLE_COLUMN_REGEX, DATA_TABLE_COLUMN_MAX_LENGTH, DATA_TABLE_COLUMN_ERROR_MESSAGE, type DataTable, type DataTableColumn, type DataTableCreateColumnSchema, type DataTableListFilter, type DataTableListOptions, dateTimeSchema, dataTableColumnNameSchema, } from './schemas/data-table.schema';
|
|
21
22
|
export type { DataTableFilter, DataTableFilterConditionType, } from './schemas/data-table-filter.schema';
|
|
22
23
|
export type { ExternalSecretsProvider, ExternalSecretsProviderSecret, ExternalSecretsProviderData, ExternalSecretsProviderProperty, ExternalSecretsProviderState, } from './schemas/external-secrets.schema';
|
|
23
24
|
export type { UsageState } from './schemas/usage.schema';
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.dataTableColumnNameSchema = exports.dateTimeSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.userDetailSchema = exports.userBaseSchema = exports.usersListSchema = exports.ROLE = exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = exports.ChatHubSendMessageRequest = exports.chatModelsRequestSchema = exports.PROVIDER_CREDENTIAL_TYPE_MAP = exports.chatHubProviderSchema = exports.chatHubConversationModelSchema = void 0;
|
|
18
18
|
__exportStar(require("./dto"), exports);
|
|
19
|
+
var chat_hub_1 = require("./chat-hub");
|
|
20
|
+
Object.defineProperty(exports, "chatHubConversationModelSchema", { enumerable: true, get: function () { return chat_hub_1.chatHubConversationModelSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "chatHubProviderSchema", { enumerable: true, get: function () { return chat_hub_1.chatHubProviderSchema; } });
|
|
22
|
+
Object.defineProperty(exports, "PROVIDER_CREDENTIAL_TYPE_MAP", { enumerable: true, get: function () { return chat_hub_1.PROVIDER_CREDENTIAL_TYPE_MAP; } });
|
|
23
|
+
Object.defineProperty(exports, "chatModelsRequestSchema", { enumerable: true, get: function () { return chat_hub_1.chatModelsRequestSchema; } });
|
|
24
|
+
Object.defineProperty(exports, "ChatHubSendMessageRequest", { enumerable: true, get: function () { return chat_hub_1.ChatHubSendMessageRequest; } });
|
|
19
25
|
var heartbeat_1 = require("./push/heartbeat");
|
|
20
26
|
Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
|
|
21
27
|
Object.defineProperty(exports, "heartbeatMessageSchema", { enumerable: true, get: function () { return heartbeat_1.heartbeatMessageSchema; } });
|
|
@@ -32,10 +38,10 @@ Object.defineProperty(exports, "ROLE", { enumerable: true, get: function () { re
|
|
|
32
38
|
Object.defineProperty(exports, "usersListSchema", { enumerable: true, get: function () { return user_schema_1.usersListSchema; } });
|
|
33
39
|
Object.defineProperty(exports, "userBaseSchema", { enumerable: true, get: function () { return user_schema_1.userBaseSchema; } });
|
|
34
40
|
Object.defineProperty(exports, "userDetailSchema", { enumerable: true, get: function () { return user_schema_1.userDetailSchema; } });
|
|
35
|
-
var
|
|
36
|
-
Object.defineProperty(exports, "
|
|
37
|
-
Object.defineProperty(exports, "
|
|
38
|
-
Object.defineProperty(exports, "
|
|
39
|
-
Object.defineProperty(exports, "dateTimeSchema", { enumerable: true, get: function () { return
|
|
40
|
-
Object.defineProperty(exports, "
|
|
41
|
+
var data_table_schema_1 = require("./schemas/data-table.schema");
|
|
42
|
+
Object.defineProperty(exports, "DATA_TABLE_COLUMN_REGEX", { enumerable: true, get: function () { return data_table_schema_1.DATA_TABLE_COLUMN_REGEX; } });
|
|
43
|
+
Object.defineProperty(exports, "DATA_TABLE_COLUMN_MAX_LENGTH", { enumerable: true, get: function () { return data_table_schema_1.DATA_TABLE_COLUMN_MAX_LENGTH; } });
|
|
44
|
+
Object.defineProperty(exports, "DATA_TABLE_COLUMN_ERROR_MESSAGE", { enumerable: true, get: function () { return data_table_schema_1.DATA_TABLE_COLUMN_ERROR_MESSAGE; } });
|
|
45
|
+
Object.defineProperty(exports, "dateTimeSchema", { enumerable: true, get: function () { return data_table_schema_1.dateTimeSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "dataTableColumnNameSchema", { enumerable: true, get: function () { return data_table_schema_1.dataTableColumnNameSchema; } });
|
|
41
47
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAOtB,uCAcoB;AAbnB,0HAAA,8BAA8B,OAAA;AAE9B,iHAAA,qBAAqB,OAAA;AAErB,wHAAA,4BAA4B,OAAA;AAC5B,mHAAA,uBAAuB,OAAA;AAGvB,qHAAA,yBAAyB,OAAA;AAS1B,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,mEAAiE;AAAxD,uHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AAQvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA;AAazB,qDAQ+B;AAP9B,mGAAA,IAAI,OAAA;AAIJ,8GAAA,eAAe,OAAA;AACf,6GAAA,cAAc,OAAA;AACd,+GAAA,gBAAgB,OAAA;AAGjB,iEAWqC;AAVpC,4HAAA,uBAAuB,OAAA;AACvB,iIAAA,4BAA4B,OAAA;AAC5B,oIAAA,+BAA+B,OAAA;AAM/B,mHAAA,cAAc,OAAA;AACd,8HAAA,yBAAyB,OAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const bannerNameSchema: z.ZodEnum<["V1", "TRIAL_OVER", "TRIAL", "NON_PRODUCTION_LICENSE", "EMAIL_CONFIRMATION", "
|
|
2
|
+
export declare const bannerNameSchema: z.ZodEnum<["V1", "TRIAL_OVER", "TRIAL", "NON_PRODUCTION_LICENSE", "EMAIL_CONFIRMATION", "DATA_TABLE_STORAGE_LIMIT_WARNING", "DATA_TABLE_STORAGE_LIMIT_ERROR"]>;
|
|
3
3
|
export type BannerName = z.infer<typeof bannerNameSchema>;
|
|
@@ -8,7 +8,7 @@ exports.bannerNameSchema = zod_1.z.enum([
|
|
|
8
8
|
'TRIAL',
|
|
9
9
|
'NON_PRODUCTION_LICENSE',
|
|
10
10
|
'EMAIL_CONFIRMATION',
|
|
11
|
-
'
|
|
12
|
-
'
|
|
11
|
+
'DATA_TABLE_STORAGE_LIMIT_WARNING',
|
|
12
|
+
'DATA_TABLE_STORAGE_LIMIT_ERROR',
|
|
13
13
|
]);
|
|
14
14
|
//# sourceMappingURL=banner-name.schema.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.dataTableFilterSchema = exports.dataTableFilterTypeSchema = exports.dataTableFilterRecordSchema = exports.FilterConditionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const data_table_schema_1 = require("./data-table.schema");
|
|
6
6
|
exports.FilterConditionSchema = zod_1.z.union([
|
|
7
7
|
zod_1.z.literal('eq'),
|
|
8
8
|
zod_1.z.literal('neq'),
|
|
@@ -14,7 +14,7 @@ exports.FilterConditionSchema = zod_1.z.union([
|
|
|
14
14
|
zod_1.z.literal('lte'),
|
|
15
15
|
]);
|
|
16
16
|
exports.dataTableFilterRecordSchema = zod_1.z.object({
|
|
17
|
-
columnName:
|
|
17
|
+
columnName: data_table_schema_1.dataTableColumnNameSchema,
|
|
18
18
|
condition: exports.FilterConditionSchema.default('eq'),
|
|
19
19
|
value: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.date(), zod_1.z.null()]),
|
|
20
20
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ListDataTableQueryDto } from '../dto';
|
|
3
3
|
export declare const insertRowReturnType: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"count">, z.ZodLiteral<"id">]>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
4
|
+
export declare const dataTableNameSchema: z.ZodString;
|
|
5
|
+
export declare const dataTableIdSchema: z.ZodString;
|
|
6
|
+
export declare const DATA_TABLE_COLUMN_REGEX: RegExp;
|
|
7
|
+
export declare const DATA_TABLE_COLUMN_MAX_LENGTH = 63;
|
|
8
|
+
export declare const DATA_TABLE_COLUMN_ERROR_MESSAGE = "Only alphabetical characters and non-leading numbers and underscores are allowed for column names, and the maximum length is 63 characters.";
|
|
9
|
+
export declare const dataTableColumnNameSchema: z.ZodString;
|
|
10
|
+
export declare const dataTableColumnTypeSchema: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
11
|
+
export declare const dataTableCreateColumnSchema: z.ZodObject<{
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
14
14
|
index: z.ZodOptional<z.ZodNumber>;
|
|
@@ -21,25 +21,25 @@ export declare const dataStoreCreateColumnSchema: z.ZodObject<{
|
|
|
21
21
|
name: string;
|
|
22
22
|
index?: number | undefined;
|
|
23
23
|
}>;
|
|
24
|
-
export type
|
|
25
|
-
export declare const
|
|
24
|
+
export type DataTableCreateColumnSchema = z.infer<typeof dataTableCreateColumnSchema>;
|
|
25
|
+
export declare const dataTableColumnSchema: z.ZodObject<{
|
|
26
26
|
name: z.ZodString;
|
|
27
27
|
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
28
28
|
index: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
} & {
|
|
30
|
-
|
|
30
|
+
dataTableId: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
type: "string" | "number" | "boolean" | "date";
|
|
33
33
|
name: string;
|
|
34
|
-
|
|
34
|
+
dataTableId: string;
|
|
35
35
|
index?: number | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
type: "string" | "number" | "boolean" | "date";
|
|
38
38
|
name: string;
|
|
39
|
-
|
|
39
|
+
dataTableId: string;
|
|
40
40
|
index?: number | undefined;
|
|
41
41
|
}>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const dataTableSchema: z.ZodObject<{
|
|
43
43
|
id: z.ZodString;
|
|
44
44
|
name: z.ZodString;
|
|
45
45
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -47,16 +47,16 @@ export declare const dataStoreSchema: z.ZodObject<{
|
|
|
47
47
|
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
48
48
|
index: z.ZodOptional<z.ZodNumber>;
|
|
49
49
|
} & {
|
|
50
|
-
|
|
50
|
+
dataTableId: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
type: "string" | "number" | "boolean" | "date";
|
|
53
53
|
name: string;
|
|
54
|
-
|
|
54
|
+
dataTableId: string;
|
|
55
55
|
index?: number | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
type: "string" | "number" | "boolean" | "date";
|
|
58
58
|
name: string;
|
|
59
|
-
|
|
59
|
+
dataTableId: string;
|
|
60
60
|
index?: number | undefined;
|
|
61
61
|
}>, "many">;
|
|
62
62
|
createdAt: z.ZodString;
|
|
@@ -69,7 +69,7 @@ export declare const dataStoreSchema: z.ZodObject<{
|
|
|
69
69
|
columns: {
|
|
70
70
|
type: "string" | "number" | "boolean" | "date";
|
|
71
71
|
name: string;
|
|
72
|
-
|
|
72
|
+
dataTableId: string;
|
|
73
73
|
index?: number | undefined;
|
|
74
74
|
}[];
|
|
75
75
|
}, {
|
|
@@ -80,21 +80,21 @@ export declare const dataStoreSchema: z.ZodObject<{
|
|
|
80
80
|
columns: {
|
|
81
81
|
type: "string" | "number" | "boolean" | "date";
|
|
82
82
|
name: string;
|
|
83
|
-
|
|
83
|
+
dataTableId: string;
|
|
84
84
|
index?: number | undefined;
|
|
85
85
|
}[];
|
|
86
86
|
}>;
|
|
87
|
-
export type
|
|
88
|
-
export type
|
|
89
|
-
export type
|
|
87
|
+
export type DataTable = z.infer<typeof dataTableSchema>;
|
|
88
|
+
export type DataTableColumn = z.infer<typeof dataTableColumnSchema>;
|
|
89
|
+
export type DataTableListFilter = {
|
|
90
90
|
id?: string | string[];
|
|
91
91
|
projectId?: string | string[];
|
|
92
92
|
name?: string;
|
|
93
93
|
};
|
|
94
|
-
export type
|
|
94
|
+
export type DataTableListOptions = Partial<ListDataTableQueryDto> & {
|
|
95
95
|
filter: {
|
|
96
96
|
projectId: string;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
export declare const dateTimeSchema: z.ZodPipeline<z.ZodEffects<z.ZodString, Date, string>, z.ZodDate>;
|
|
100
|
-
export declare const
|
|
100
|
+
export declare const dataTableColumnValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodDate]>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dataTableColumnValueSchema = exports.dateTimeSchema = exports.dataTableSchema = exports.dataTableColumnSchema = exports.dataTableCreateColumnSchema = exports.dataTableColumnTypeSchema = exports.dataTableColumnNameSchema = exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = exports.DATA_TABLE_COLUMN_MAX_LENGTH = exports.DATA_TABLE_COLUMN_REGEX = exports.dataTableIdSchema = exports.dataTableNameSchema = exports.insertRowReturnType = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.insertRowReturnType = zod_1.z.union([zod_1.z.literal('all'), zod_1.z.literal('count'), zod_1.z.literal('id')]);
|
|
6
|
+
exports.dataTableNameSchema = zod_1.z.string().trim().min(1).max(128);
|
|
7
|
+
exports.dataTableIdSchema = zod_1.z.string().max(36);
|
|
8
|
+
exports.DATA_TABLE_COLUMN_REGEX = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
|
9
|
+
exports.DATA_TABLE_COLUMN_MAX_LENGTH = 63;
|
|
10
|
+
exports.DATA_TABLE_COLUMN_ERROR_MESSAGE = 'Only alphabetical characters and non-leading numbers and underscores are allowed for column names, and the maximum length is 63 characters.';
|
|
11
|
+
exports.dataTableColumnNameSchema = zod_1.z
|
|
12
|
+
.string()
|
|
13
|
+
.trim()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(exports.DATA_TABLE_COLUMN_MAX_LENGTH)
|
|
16
|
+
.regex(exports.DATA_TABLE_COLUMN_REGEX, exports.DATA_TABLE_COLUMN_ERROR_MESSAGE);
|
|
17
|
+
exports.dataTableColumnTypeSchema = zod_1.z.enum(['string', 'number', 'boolean', 'date']);
|
|
18
|
+
exports.dataTableCreateColumnSchema = zod_1.z.object({
|
|
19
|
+
name: exports.dataTableColumnNameSchema,
|
|
20
|
+
type: exports.dataTableColumnTypeSchema,
|
|
21
|
+
index: zod_1.z.number().optional(),
|
|
22
|
+
});
|
|
23
|
+
exports.dataTableColumnSchema = exports.dataTableCreateColumnSchema.extend({
|
|
24
|
+
dataTableId: exports.dataTableIdSchema,
|
|
25
|
+
});
|
|
26
|
+
exports.dataTableSchema = zod_1.z.object({
|
|
27
|
+
id: exports.dataTableIdSchema,
|
|
28
|
+
name: exports.dataTableNameSchema,
|
|
29
|
+
columns: zod_1.z.array(exports.dataTableColumnSchema),
|
|
30
|
+
createdAt: zod_1.z.string().datetime(),
|
|
31
|
+
updatedAt: zod_1.z.string().datetime(),
|
|
32
|
+
});
|
|
33
|
+
exports.dateTimeSchema = zod_1.z
|
|
34
|
+
.string()
|
|
35
|
+
.datetime({ offset: true })
|
|
36
|
+
.transform((s) => new Date(s))
|
|
37
|
+
.pipe(zod_1.z.date());
|
|
38
|
+
exports.dataTableColumnValueSchema = zod_1.z.union([
|
|
39
|
+
zod_1.z.string(),
|
|
40
|
+
zod_1.z.number(),
|
|
41
|
+
zod_1.z.boolean(),
|
|
42
|
+
zod_1.z.null(),
|
|
43
|
+
zod_1.z.date(),
|
|
44
|
+
]);
|
|
45
|
+
//# sourceMappingURL=data-table.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-
|
|
1
|
+
{"version":3,"file":"data-table.schema.js","sourceRoot":"","sources":["../../src/schemas/data-table.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIX,QAAA,mBAAmB,GAAG,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEvF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACxD,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAGvC,QAAA,uBAAuB,GAAG,yBAAyB,CAAC;AACpD,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAClC,QAAA,+BAA+B,GAC3C,6IAA6I,CAAC;AAElI,QAAA,yBAAyB,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,oCAA4B,CAAC;KACjC,KAAK,CAAC,+BAAuB,EAAE,uCAA+B,CAAC,CAAC;AACrD,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5E,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,iCAAyB;IAC/B,IAAI,EAAE,iCAAyB;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,mCAA2B,CAAC,MAAM,CAAC;IACvE,WAAW,EAAE,yBAAiB;CAC9B,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,2BAAmB;IACzB,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAcU,QAAA,cAAc,GAAG,OAAC;KAC7B,MAAM,EAAE;KACR,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC1B,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;KAC7B,IAAI,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAEJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC;IACjD,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,OAAO,EAAE;IACX,OAAC,CAAC,IAAI,EAAE;IACR,OAAC,CAAC,IAAI,EAAE;CACR,CAAC,CAAC"}
|
|
@@ -18,10 +18,10 @@ export declare const projectRelationSchema: z.ZodObject<{
|
|
|
18
18
|
userId: z.ZodString;
|
|
19
19
|
role: z.ZodUnion<[z.ZodEnum<["project:admin", "project:editor", "project:viewer"]>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
userId: string;
|
|
22
21
|
role: string;
|
|
23
|
-
}, {
|
|
24
22
|
userId: string;
|
|
23
|
+
}, {
|
|
25
24
|
role: string;
|
|
25
|
+
userId: string;
|
|
26
26
|
}>;
|
|
27
27
|
export type ProjectRelation = z.infer<typeof projectRelationSchema>;
|