@n8n/api-types 0.25.0 → 0.26.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/dto/ai/ai-build-request.dto.d.ts +14 -0
- package/dist/dto/ai/ai-build-request.dto.js +13 -0
- package/dist/dto/ai/ai-build-request.dto.js.map +1 -0
- package/dist/dto/index.d.ts +3 -0
- package/dist/dto/index.js +8 -1
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/insights/date-filter.dto.d.ts +8 -0
- package/dist/dto/insights/date-filter.dto.js +14 -0
- package/dist/dto/insights/date-filter.dto.js.map +1 -0
- package/dist/dto/insights/list-workflow-query.dto.d.ts +3 -2
- package/dist/dto/insights/list-workflow-query.dto.js +4 -16
- package/dist/dto/insights/list-workflow-query.dto.js.map +1 -1
- package/dist/dto/pagination/pagination.dto.d.ts +14 -0
- package/dist/dto/pagination/pagination.dto.js +35 -0
- package/dist/dto/pagination/pagination.dto.js.map +1 -0
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +2 -2
- package/dist/dto/workflows/transfer.dto.d.ts +1 -0
- package/dist/dto/workflows/transfer.dto.js +1 -0
- package/dist/dto/workflows/transfer.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/insights.schema.d.ts +23 -8
- package/dist/schemas/insights.schema.js +17 -1
- package/dist/schemas/insights.schema.js.map +1 -1
- package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
- package/package.json +6 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
declare const AiBuilderChatRequestDto_base: Z.Class<{
|
|
4
|
+
payload: z.ZodObject<{
|
|
5
|
+
question: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
question: string;
|
|
8
|
+
}, {
|
|
9
|
+
question: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare class AiBuilderChatRequestDto extends AiBuilderChatRequestDto_base {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiBuilderChatRequestDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
class AiBuilderChatRequestDto extends zod_class_1.Z.class({
|
|
7
|
+
payload: zod_1.z.object({
|
|
8
|
+
question: zod_1.z.string(),
|
|
9
|
+
}),
|
|
10
|
+
}) {
|
|
11
|
+
}
|
|
12
|
+
exports.AiBuilderChatRequestDto = AiBuilderChatRequestDto;
|
|
13
|
+
//# sourceMappingURL=ai-build-request.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-build-request.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-build-request.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACF,CAAC;CAAG;AAJL,0DAIK"}
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { AiAskRequestDto } from './ai/ai-ask-request.dto';
|
|
2
2
|
export { AiChatRequestDto } from './ai/ai-chat-request.dto';
|
|
3
|
+
export { AiBuilderChatRequestDto } from './ai/ai-build-request.dto';
|
|
3
4
|
export { AiApplySuggestionRequestDto } from './ai/ai-apply-suggestion-request.dto';
|
|
4
5
|
export { AiFreeCreditsRequestDto } from './ai/ai-free-credits-request.dto';
|
|
5
6
|
export { BinaryDataQueryDto } from './binary-data/binary-data-query.dto';
|
|
@@ -47,3 +48,5 @@ export { UpdateFolderDto } from './folders/update-folder.dto';
|
|
|
47
48
|
export { DeleteFolderDto } from './folders/delete-folder.dto';
|
|
48
49
|
export { ListFolderQueryDto } from './folders/list-folder-query.dto';
|
|
49
50
|
export { ListInsightsWorkflowQueryDto } from './insights/list-workflow-query.dto';
|
|
51
|
+
export { InsightsDateFilterDto } from './insights/date-filter.dto';
|
|
52
|
+
export { PaginationDto } from './pagination/pagination.dto';
|
package/dist/dto/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListInsightsWorkflowQueryDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = exports.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ManualRunQueryDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = 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.DeleteProjectDto = 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.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
|
|
3
|
+
exports.ListInsightsWorkflowQueryDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = exports.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ManualRunQueryDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = 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.DeleteProjectDto = 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.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
|
|
4
|
+
exports.PaginationDto = exports.InsightsDateFilterDto = void 0;
|
|
4
5
|
var ai_ask_request_dto_1 = require("./ai/ai-ask-request.dto");
|
|
5
6
|
Object.defineProperty(exports, "AiAskRequestDto", { enumerable: true, get: function () { return ai_ask_request_dto_1.AiAskRequestDto; } });
|
|
6
7
|
var ai_chat_request_dto_1 = require("./ai/ai-chat-request.dto");
|
|
7
8
|
Object.defineProperty(exports, "AiChatRequestDto", { enumerable: true, get: function () { return ai_chat_request_dto_1.AiChatRequestDto; } });
|
|
9
|
+
var ai_build_request_dto_1 = require("./ai/ai-build-request.dto");
|
|
10
|
+
Object.defineProperty(exports, "AiBuilderChatRequestDto", { enumerable: true, get: function () { return ai_build_request_dto_1.AiBuilderChatRequestDto; } });
|
|
8
11
|
var ai_apply_suggestion_request_dto_1 = require("./ai/ai-apply-suggestion-request.dto");
|
|
9
12
|
Object.defineProperty(exports, "AiApplySuggestionRequestDto", { enumerable: true, get: function () { return ai_apply_suggestion_request_dto_1.AiApplySuggestionRequestDto; } });
|
|
10
13
|
var ai_free_credits_request_dto_1 = require("./ai/ai-free-credits-request.dto");
|
|
@@ -99,4 +102,8 @@ var list_folder_query_dto_1 = require("./folders/list-folder-query.dto");
|
|
|
99
102
|
Object.defineProperty(exports, "ListFolderQueryDto", { enumerable: true, get: function () { return list_folder_query_dto_1.ListFolderQueryDto; } });
|
|
100
103
|
var list_workflow_query_dto_1 = require("./insights/list-workflow-query.dto");
|
|
101
104
|
Object.defineProperty(exports, "ListInsightsWorkflowQueryDto", { enumerable: true, get: function () { return list_workflow_query_dto_1.ListInsightsWorkflowQueryDto; } });
|
|
105
|
+
var date_filter_dto_1 = require("./insights/date-filter.dto");
|
|
106
|
+
Object.defineProperty(exports, "InsightsDateFilterDto", { enumerable: true, get: function () { return date_filter_dto_1.InsightsDateFilterDto; } });
|
|
107
|
+
var pagination_dto_1 = require("./pagination/pagination.dto");
|
|
108
|
+
Object.defineProperty(exports, "PaginationDto", { enumerable: true, get: function () { return pagination_dto_1.PaginationDto; } });
|
|
102
109
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;AAAA,8DAA0D;AAAjD,qHAAA,eAAe,OAAA;AACxB,gEAA4D;AAAnD,uHAAA,gBAAgB,OAAA;AACzB,kEAAoE;AAA3D,+HAAA,uBAAuB,OAAA;AAChC,wFAAmF;AAA1E,8IAAA,2BAA2B,OAAA;AACpC,gFAA2E;AAAlE,sIAAA,uBAAuB,OAAA;AAEhC,6EAAyE;AAAhE,2HAAA,kBAAkB,OAAA;AAC3B,2FAAsF;AAA7E,wIAAA,wBAAwB,OAAA;AAEjC,8DAA2D;AAAlD,oHAAA,eAAe,OAAA;AACxB,wFAAmF;AAA1E,4IAAA,0BAA0B,OAAA;AAEnC,qFAAkF;AAAzE,wHAAA,iBAAiB,OAAA;AAC1B,uGAAmG;AAA1F,yIAAA,yBAAyB,OAAA;AAClC,mHAA8G;AAArG,oJAAA,8BAA8B,OAAA;AACvC,iGAA6F;AAApF,mIAAA,sBAAsB,OAAA;AAE/B,kFAA8E;AAArE,iIAAA,qBAAqB,OAAA;AAC9B,4FAAwF;AAA/E,2IAAA,0BAA0B,OAAA;AAEnC,2EAAuE;AAA9D,+HAAA,oBAAoB,OAAA;AAC7B,iFAA6E;AAApE,qIAAA,uBAAuB,OAAA;AAEhC,4FAAwF;AAA/E,uIAAA,wBAAwB,OAAA;AACjC,sGAAiG;AAAxF,gJAAA,4BAA4B,OAAA;AACrC,4FAAwF;AAA/E,uIAAA,wBAAwB,OAAA;AAEjC,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AACzB,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AACzB,mEAAgE;AAAvD,sHAAA,gBAAgB,OAAA;AAEzB,oDAAiD;AAAxC,0GAAA,UAAU,OAAA;AACnB,oEAA8D;AAArD,uHAAA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od';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
declare const InsightsDateFilterDto_base: Z.Class<{
|
|
4
|
+
dateRange: z.ZodOptional<z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>>;
|
|
5
|
+
}>;
|
|
6
|
+
export declare class InsightsDateFilterDto extends InsightsDateFilterDto_base {
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InsightsDateFilterDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
const insights_schema_1 = require("../../schemas/insights.schema");
|
|
7
|
+
const VALID_DATE_RANGE_OPTIONS = insights_schema_1.insightsDateRangeSchema.shape.key.options;
|
|
8
|
+
const dateRange = zod_1.z.enum(VALID_DATE_RANGE_OPTIONS).optional();
|
|
9
|
+
class InsightsDateFilterDto extends zod_class_1.Z.class({
|
|
10
|
+
dateRange,
|
|
11
|
+
}) {
|
|
12
|
+
}
|
|
13
|
+
exports.InsightsDateFilterDto = InsightsDateFilterDto;
|
|
14
|
+
//# sourceMappingURL=date-filter.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-filter.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/date-filter.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,mEAAwE;AAExE,MAAM,wBAAwB,GAAG,yCAAuB,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AAG3E,MAAM,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAE9D,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClD,SAAS;CACT,CAAC;CAAG;AAFL,sDAEK"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
3
|
declare const ListInsightsWorkflowQueryDto_base: Z.Class<{
|
|
4
|
-
|
|
5
|
-
take: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
|
|
4
|
+
dateRange: z.ZodOptional<z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>>;
|
|
6
5
|
sortBy: z.ZodOptional<z.ZodEnum<["total:asc", "total:desc", "succeeded:asc", "succeeded:desc", "failed:asc", "failed:desc", "failureRate:asc", "failureRate:desc", "timeSaved:asc", "timeSaved:desc", "runTime:asc", "runTime:desc", "averageRunTime:asc", "averageRunTime:desc"]>>;
|
|
6
|
+
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
7
|
+
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>;
|
|
7
8
|
}>;
|
|
8
9
|
export declare class ListInsightsWorkflowQueryDto extends ListInsightsWorkflowQueryDto_base {
|
|
9
10
|
}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ListInsightsWorkflowQueryDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_class_1 = require("zod-class");
|
|
6
|
+
const date_filter_dto_1 = require("./date-filter.dto");
|
|
7
|
+
const pagination_dto_1 = require("../pagination/pagination.dto");
|
|
6
8
|
const VALID_SORT_OPTIONS = [
|
|
7
9
|
'total:asc',
|
|
8
10
|
'total:desc',
|
|
@@ -19,26 +21,12 @@ const VALID_SORT_OPTIONS = [
|
|
|
19
21
|
'averageRunTime:asc',
|
|
20
22
|
'averageRunTime:desc',
|
|
21
23
|
];
|
|
22
|
-
const skipValidator = zod_1.z
|
|
23
|
-
.string()
|
|
24
|
-
.optional()
|
|
25
|
-
.transform((val) => (val ? parseInt(val, 10) : 0))
|
|
26
|
-
.refine((val) => !isNaN(val), {
|
|
27
|
-
message: 'Skip must be a valid number',
|
|
28
|
-
});
|
|
29
|
-
const takeValidator = zod_1.z
|
|
30
|
-
.string()
|
|
31
|
-
.optional()
|
|
32
|
-
.transform((val) => (val ? parseInt(val, 10) : 10))
|
|
33
|
-
.refine((val) => !isNaN(val), {
|
|
34
|
-
message: 'Take must be a valid number',
|
|
35
|
-
});
|
|
36
24
|
const sortByValidator = zod_1.z
|
|
37
25
|
.enum(VALID_SORT_OPTIONS, { message: `sortBy must be one of: ${VALID_SORT_OPTIONS.join(', ')}` })
|
|
38
26
|
.optional();
|
|
39
27
|
class ListInsightsWorkflowQueryDto extends zod_class_1.Z.class({
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
...pagination_dto_1.paginationSchema,
|
|
29
|
+
dateRange: date_filter_dto_1.InsightsDateFilterDto.shape.dateRange,
|
|
42
30
|
sortBy: sortByValidator,
|
|
43
31
|
}) {
|
|
44
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workflow-query.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/list-workflow-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAM,kBAAkB,GAAG;IAC1B,WAAW;IACX,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,qBAAqB;CACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"list-workflow-query.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/list-workflow-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uDAA0D;AAC1D,iEAAgE;AAEhE,MAAM,kBAAkB,GAAG;IAC1B,WAAW;IACX,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,qBAAqB;CACZ,CAAC;AAMX,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,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,GAAG,iCAAgB;IACnB,SAAS,EAAE,uCAAqB,CAAC,KAAK,CAAC,SAAS;IAChD,MAAM,EAAE,eAAe;CACvB,CAAC;CAAG;AAJL,oEAIK"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
export declare const MAX_ITEMS_PER_PAGE = 50;
|
|
4
|
+
export declare const paginationSchema: {
|
|
5
|
+
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
6
|
+
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>;
|
|
7
|
+
};
|
|
8
|
+
declare const PaginationDto_base: Z.Class<{
|
|
9
|
+
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
10
|
+
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>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare class PaginationDto extends PaginationDto_base {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaginationDto = exports.paginationSchema = exports.MAX_ITEMS_PER_PAGE = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
exports.MAX_ITEMS_PER_PAGE = 50;
|
|
7
|
+
const skipValidator = zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.optional()
|
|
10
|
+
.transform((val) => (val ? parseInt(val, 10) : 0))
|
|
11
|
+
.refine((val) => !isNaN(val) && Number.isInteger(val), {
|
|
12
|
+
message: 'Param `skip` must be a valid integer',
|
|
13
|
+
})
|
|
14
|
+
.refine((val) => val >= 0, {
|
|
15
|
+
message: 'Param `skip` must be a non-negative integer',
|
|
16
|
+
});
|
|
17
|
+
const takeValidator = zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.transform((val) => (val ? parseInt(val, 10) : 10))
|
|
21
|
+
.refine((val) => !isNaN(val) && Number.isInteger(val), {
|
|
22
|
+
message: 'Param `take` must be a valid integer',
|
|
23
|
+
})
|
|
24
|
+
.refine((val) => val >= 0, {
|
|
25
|
+
message: 'Param `take` must be a non-negative integer',
|
|
26
|
+
})
|
|
27
|
+
.transform((val) => Math.min(val, exports.MAX_ITEMS_PER_PAGE));
|
|
28
|
+
exports.paginationSchema = {
|
|
29
|
+
skip: skipValidator,
|
|
30
|
+
take: takeValidator,
|
|
31
|
+
};
|
|
32
|
+
class PaginationDto extends zod_class_1.Z.class(exports.paginationSchema) {
|
|
33
|
+
}
|
|
34
|
+
exports.PaginationDto = PaginationDto;
|
|
35
|
+
//# sourceMappingURL=pagination.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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C,CAAC,CAAC;AAE3C,QAAA,gBAAgB,GAAG;IAC/B,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,aAAa;CACnB,CAAC;AAEF,MAAa,aAAc,SAAQ,aAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;CAAG;AAA/D,sCAA+D"}
|
|
@@ -14,8 +14,8 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
|
|
|
14
14
|
updatedAt: z.ZodString;
|
|
15
15
|
pushed: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
18
17
|
type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
18
|
+
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
19
19
|
id: string;
|
|
20
20
|
file: string;
|
|
21
21
|
name: string;
|
|
@@ -24,8 +24,8 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
|
|
|
24
24
|
updatedAt: string;
|
|
25
25
|
pushed?: boolean | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
28
27
|
type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
28
|
+
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
29
29
|
id: string;
|
|
30
30
|
file: string;
|
|
31
31
|
name: string;
|
|
@@ -3,6 +3,7 @@ import { Z } from 'zod-class';
|
|
|
3
3
|
declare const TransferWorkflowBodyDto_base: Z.Class<{
|
|
4
4
|
destinationProjectId: z.ZodString;
|
|
5
5
|
shareCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
destinationParentFolderId: z.ZodOptional<z.ZodString>;
|
|
6
7
|
}>;
|
|
7
8
|
export declare class TransferWorkflowBodyDto extends TransferWorkflowBodyDto_base {
|
|
8
9
|
}
|
|
@@ -6,6 +6,7 @@ const zod_class_1 = require("zod-class");
|
|
|
6
6
|
class TransferWorkflowBodyDto extends zod_class_1.Z.class({
|
|
7
7
|
destinationProjectId: zod_1.z.string(),
|
|
8
8
|
shareCredentials: zod_1.z.array(zod_1.z.string()).optional(),
|
|
9
|
+
destinationParentFolderId: zod_1.z.string().optional(),
|
|
9
10
|
}) {
|
|
10
11
|
}
|
|
11
12
|
exports.TransferWorkflowBodyDto = TransferWorkflowBodyDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/transfer.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC;CAAG;
|
|
1
|
+
{"version":3,"file":"transfer.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/transfer.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC;CAAG;AAJL,0DAIK"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExpressionEvaluatorType, LogLevel, WorkflowSettings } from 'n8n-workflow';
|
|
2
|
+
import { type InsightsDateRange } from './schemas/insights.schema';
|
|
2
3
|
export interface IVersionNotificationSettings {
|
|
3
4
|
enabled: boolean;
|
|
4
5
|
endpoint: string;
|
|
@@ -99,6 +100,7 @@ export interface FrontendSettings {
|
|
|
99
100
|
};
|
|
100
101
|
missingPackages?: boolean;
|
|
101
102
|
executionMode: 'regular' | 'queue';
|
|
103
|
+
isMultiMain: boolean;
|
|
102
104
|
pushBackend: 'sse' | 'websocket';
|
|
103
105
|
communityNodesEnabled: boolean;
|
|
104
106
|
aiAssistant: {
|
|
@@ -155,6 +157,9 @@ export interface FrontendSettings {
|
|
|
155
157
|
folders: {
|
|
156
158
|
enabled: boolean;
|
|
157
159
|
};
|
|
160
|
+
logsView: {
|
|
161
|
+
enabled: boolean;
|
|
162
|
+
};
|
|
158
163
|
banners: {
|
|
159
164
|
dismissed: string[];
|
|
160
165
|
};
|
|
@@ -182,5 +187,6 @@ export interface FrontendSettings {
|
|
|
182
187
|
enabled: boolean;
|
|
183
188
|
summary: boolean;
|
|
184
189
|
dashboard: boolean;
|
|
190
|
+
dateRanges: InsightsDateRange[];
|
|
185
191
|
};
|
|
186
192
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export { ViewableMimeTypes } from './schemas/binaryData.schema';
|
|
|
14
14
|
export { passwordSchema } from './schemas/password.schema';
|
|
15
15
|
export type { ProjectType, ProjectIcon, ProjectRole, ProjectRelation, } from './schemas/project.schema';
|
|
16
16
|
export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
|
|
17
|
-
export type
|
|
17
|
+
export { type InsightsSummaryType, type InsightsSummaryUnit, type InsightsSummary, type InsightsByWorkflow, type InsightsByTime, type InsightsDateRange, INSIGHTS_DATE_RANGE_KEYS, } from './schemas/insights.schema';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ 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.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = void 0;
|
|
17
|
+
exports.INSIGHTS_DATE_RANGE_KEYS = exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = void 0;
|
|
18
18
|
__exportStar(require("./dto"), exports);
|
|
19
19
|
var heartbeat_1 = require("./push/heartbeat");
|
|
20
20
|
Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
|
|
@@ -27,4 +27,6 @@ var source_controlled_file_schema_1 = require("./schemas/source-controlled-file.
|
|
|
27
27
|
Object.defineProperty(exports, "SOURCE_CONTROL_FILE_LOCATION", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_LOCATION; } });
|
|
28
28
|
Object.defineProperty(exports, "SOURCE_CONTROL_FILE_STATUS", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_STATUS; } });
|
|
29
29
|
Object.defineProperty(exports, "SOURCE_CONTROL_FILE_TYPE", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_TYPE; } });
|
|
30
|
+
var insights_schema_1 = require("./schemas/insights.schema");
|
|
31
|
+
Object.defineProperty(exports, "INSIGHTS_DATE_RANGE_KEYS", { enumerable: true, get: function () { return insights_schema_1.INSIGHTS_DATE_RANGE_KEYS; } });
|
|
30
32
|
//# 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;AAStB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,iEAAgE;AAAvD,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AASvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAStB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,iEAAgE;AAAvD,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AASvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA;AAGzB,6DAQmC;AADlC,2HAAA,wBAAwB,OAAA"}
|
|
@@ -205,7 +205,6 @@ export declare const insightsByWorkflowDataSchemas: {
|
|
|
205
205
|
averageRunTime: z.ZodNumber;
|
|
206
206
|
timeSaved: z.ZodNumber;
|
|
207
207
|
}, "strict", z.ZodTypeAny, {
|
|
208
|
-
projectId: string;
|
|
209
208
|
total: number;
|
|
210
209
|
failed: number;
|
|
211
210
|
failureRate: number;
|
|
@@ -213,11 +212,11 @@ export declare const insightsByWorkflowDataSchemas: {
|
|
|
213
212
|
averageRunTime: number;
|
|
214
213
|
workflowId: string;
|
|
215
214
|
workflowName: string;
|
|
215
|
+
projectId: string;
|
|
216
216
|
projectName: string;
|
|
217
217
|
succeeded: number;
|
|
218
218
|
runTime: number;
|
|
219
219
|
}, {
|
|
220
|
-
projectId: string;
|
|
221
220
|
total: number;
|
|
222
221
|
failed: number;
|
|
223
222
|
failureRate: number;
|
|
@@ -225,6 +224,7 @@ export declare const insightsByWorkflowDataSchemas: {
|
|
|
225
224
|
averageRunTime: number;
|
|
226
225
|
workflowId: string;
|
|
227
226
|
workflowName: string;
|
|
227
|
+
projectId: string;
|
|
228
228
|
projectName: string;
|
|
229
229
|
succeeded: number;
|
|
230
230
|
runTime: number;
|
|
@@ -245,7 +245,6 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
245
245
|
averageRunTime: z.ZodNumber;
|
|
246
246
|
timeSaved: z.ZodNumber;
|
|
247
247
|
}, "strict", z.ZodTypeAny, {
|
|
248
|
-
projectId: string;
|
|
249
248
|
total: number;
|
|
250
249
|
failed: number;
|
|
251
250
|
failureRate: number;
|
|
@@ -253,11 +252,11 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
253
252
|
averageRunTime: number;
|
|
254
253
|
workflowId: string;
|
|
255
254
|
workflowName: string;
|
|
255
|
+
projectId: string;
|
|
256
256
|
projectName: string;
|
|
257
257
|
succeeded: number;
|
|
258
258
|
runTime: number;
|
|
259
259
|
}, {
|
|
260
|
-
projectId: string;
|
|
261
260
|
total: number;
|
|
262
261
|
failed: number;
|
|
263
262
|
failureRate: number;
|
|
@@ -265,13 +264,14 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
265
264
|
averageRunTime: number;
|
|
266
265
|
workflowId: string;
|
|
267
266
|
workflowName: string;
|
|
267
|
+
projectId: string;
|
|
268
268
|
projectName: string;
|
|
269
269
|
succeeded: number;
|
|
270
270
|
runTime: number;
|
|
271
271
|
}>, "many">;
|
|
272
272
|
}, "strict", z.ZodTypeAny, {
|
|
273
|
+
count: number;
|
|
273
274
|
data: {
|
|
274
|
-
projectId: string;
|
|
275
275
|
total: number;
|
|
276
276
|
failed: number;
|
|
277
277
|
failureRate: number;
|
|
@@ -279,14 +279,14 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
279
279
|
averageRunTime: number;
|
|
280
280
|
workflowId: string;
|
|
281
281
|
workflowName: string;
|
|
282
|
+
projectId: string;
|
|
282
283
|
projectName: string;
|
|
283
284
|
succeeded: number;
|
|
284
285
|
runTime: number;
|
|
285
286
|
}[];
|
|
286
|
-
count: number;
|
|
287
287
|
}, {
|
|
288
|
+
count: number;
|
|
288
289
|
data: {
|
|
289
|
-
projectId: string;
|
|
290
290
|
total: number;
|
|
291
291
|
failed: number;
|
|
292
292
|
failureRate: number;
|
|
@@ -294,11 +294,11 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
|
|
|
294
294
|
averageRunTime: number;
|
|
295
295
|
workflowId: string;
|
|
296
296
|
workflowName: string;
|
|
297
|
+
projectId: string;
|
|
297
298
|
projectName: string;
|
|
298
299
|
succeeded: number;
|
|
299
300
|
runTime: number;
|
|
300
301
|
}[];
|
|
301
|
-
count: number;
|
|
302
302
|
}>;
|
|
303
303
|
export type InsightsByWorkflow = z.infer<typeof insightsByWorkflowSchema>;
|
|
304
304
|
export declare const insightsByTimeDataSchemas: {
|
|
@@ -372,3 +372,18 @@ export declare const insightsByTimeSchema: z.ZodObject<{
|
|
|
372
372
|
date: string;
|
|
373
373
|
}>;
|
|
374
374
|
export type InsightsByTime = z.infer<typeof insightsByTimeSchema>;
|
|
375
|
+
export declare const INSIGHTS_DATE_RANGE_KEYS: readonly ["day", "week", "2weeks", "month", "quarter", "6months", "year"];
|
|
376
|
+
export declare const insightsDateRangeSchema: z.ZodObject<{
|
|
377
|
+
key: z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>;
|
|
378
|
+
licensed: z.ZodBoolean;
|
|
379
|
+
granularity: z.ZodEnum<["hour", "day", "week"]>;
|
|
380
|
+
}, "strict", z.ZodTypeAny, {
|
|
381
|
+
key: "day" | "week" | "2weeks" | "month" | "quarter" | "6months" | "year";
|
|
382
|
+
licensed: boolean;
|
|
383
|
+
granularity: "day" | "week" | "hour";
|
|
384
|
+
}, {
|
|
385
|
+
key: "day" | "week" | "2weeks" | "month" | "quarter" | "6months" | "year";
|
|
386
|
+
licensed: boolean;
|
|
387
|
+
granularity: "day" | "week" | "hour";
|
|
388
|
+
}>;
|
|
389
|
+
export type InsightsDateRange = z.infer<typeof insightsDateRangeSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.insightsByTimeSchema = exports.insightsByTimeDataSchemas = exports.insightsByWorkflowSchema = exports.insightsByWorkflowDataSchemas = exports.insightsSummarySchema = exports.insightsSummaryDataSchemas = exports.insightsSummaryUnitSchema = exports.insightsSummaryTypeSchema = void 0;
|
|
3
|
+
exports.insightsDateRangeSchema = exports.INSIGHTS_DATE_RANGE_KEYS = exports.insightsByTimeSchema = exports.insightsByTimeDataSchemas = exports.insightsByWorkflowSchema = exports.insightsByWorkflowDataSchemas = exports.insightsSummarySchema = exports.insightsSummaryDataSchemas = exports.insightsSummaryUnitSchema = exports.insightsSummaryTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.insightsSummaryTypeSchema = zod_1.z.enum([
|
|
6
6
|
'total',
|
|
@@ -73,4 +73,20 @@ exports.insightsByTimeDataSchemas = {
|
|
|
73
73
|
.strict(),
|
|
74
74
|
};
|
|
75
75
|
exports.insightsByTimeSchema = zod_1.z.object(exports.insightsByTimeDataSchemas).strict();
|
|
76
|
+
exports.INSIGHTS_DATE_RANGE_KEYS = [
|
|
77
|
+
'day',
|
|
78
|
+
'week',
|
|
79
|
+
'2weeks',
|
|
80
|
+
'month',
|
|
81
|
+
'quarter',
|
|
82
|
+
'6months',
|
|
83
|
+
'year',
|
|
84
|
+
];
|
|
85
|
+
exports.insightsDateRangeSchema = zod_1.z
|
|
86
|
+
.object({
|
|
87
|
+
key: zod_1.z.enum(exports.INSIGHTS_DATE_RANGE_KEYS),
|
|
88
|
+
licensed: zod_1.z.boolean(),
|
|
89
|
+
granularity: zod_1.z.enum(['hour', 'day', 'week']),
|
|
90
|
+
})
|
|
91
|
+
.strict();
|
|
76
92
|
//# sourceMappingURL=insights.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights.schema.js","sourceRoot":"","sources":["../../src/schemas/insights.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,QAAQ;IACR,aAAa;IACb,WAAW;IACX,gBAAgB;CAChB,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGhF,QAAA,0BAA0B,GAAG;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,IAAI,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QAC1C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;KACxB,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,IAAI,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QAC1C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC;KACxB,CAAC;IACF,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QAC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EAAE,KAAK,GAAG,EAAE;QAChG,OAAO,EAAE,8CAA8C;KACvD,CAAC;IACF,MAAM,EAAE,OAAC;SACP,MAAM,CAAC;QACP,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;QAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;KACrB,CAAC;SACD,MAAM,EAAE;CACD,CAAC;AACE,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,iCAAyB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGpE,QAAA,wBAAwB,GAAG;IACvC,KAAK;IACL,MAAM;IACN,QAAQ;IACR,OAAO;IACP,SAAS;IACT,SAAS;IACT,MAAM;CACG,CAAC;AACE,QAAA,uBAAuB,GAAG,OAAC;KACtC,MAAM,CAAC;IACP,GAAG,EAAE,OAAC,CAAC,IAAI,CAAC,gCAAwB,CAAC;IACrC,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;CAC5C,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -13,8 +13,8 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
13
13
|
updatedAt: z.ZodString;
|
|
14
14
|
pushed: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
17
16
|
type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
17
|
+
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
18
18
|
id: string;
|
|
19
19
|
file: string;
|
|
20
20
|
name: string;
|
|
@@ -23,8 +23,8 @@ export declare const SourceControlledFileSchema: z.ZodObject<{
|
|
|
23
23
|
updatedAt: string;
|
|
24
24
|
pushed?: boolean | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
27
26
|
type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
|
|
27
|
+
status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
|
|
28
28
|
id: string;
|
|
29
29
|
file: string;
|
|
30
30
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"LICENSE.md",
|
|
10
|
+
"LICENSE_EE.md"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@n8n/
|
|
14
|
-
"@n8n/config": "1.
|
|
13
|
+
"@n8n/config": "1.38.0",
|
|
14
|
+
"@n8n/typescript-config": "1.2.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"xss": "1.0.15",
|
|
18
18
|
"zod": "3.24.1",
|
|
19
19
|
"zod-class": "0.0.16",
|
|
20
|
-
"n8n-workflow": "1.
|
|
20
|
+
"n8n-workflow": "1.89.0",
|
|
21
21
|
"@n8n/permissions": "0.22.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|