@n8n/api-types 0.24.1 → 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.
Files changed (48) hide show
  1. package/dist/api-keys.d.ts +2 -0
  2. package/dist/build.tsbuildinfo +1 -1
  3. package/dist/dto/ai/ai-build-request.dto.d.ts +14 -0
  4. package/dist/dto/ai/ai-build-request.dto.js +13 -0
  5. package/dist/dto/ai/ai-build-request.dto.js.map +1 -0
  6. package/dist/dto/api-keys/create-api-key-request.dto.d.ts +4 -0
  7. package/dist/dto/api-keys/update-api-key-request.dto.d.ts +1 -0
  8. package/dist/dto/api-keys/update-api-key-request.dto.js +2 -0
  9. package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
  10. package/dist/dto/binary-data/binary-data-query.dto.d.ts +11 -0
  11. package/dist/dto/binary-data/binary-data-query.dto.js +24 -0
  12. package/dist/dto/binary-data/binary-data-query.dto.js.map +1 -0
  13. package/dist/dto/binary-data/binary-data-signed-query.dto.d.ts +8 -0
  14. package/dist/dto/binary-data/binary-data-signed-query.dto.js +13 -0
  15. package/dist/dto/binary-data/binary-data-signed-query.dto.js.map +1 -0
  16. package/dist/dto/folders/list-folder-query.dto.d.ts +1 -1
  17. package/dist/dto/index.d.ts +5 -0
  18. package/dist/dto/index.js +12 -1
  19. package/dist/dto/index.js.map +1 -1
  20. package/dist/dto/insights/date-filter.dto.d.ts +8 -0
  21. package/dist/dto/insights/date-filter.dto.js +14 -0
  22. package/dist/dto/insights/date-filter.dto.js.map +1 -0
  23. package/dist/dto/insights/list-workflow-query.dto.d.ts +3 -2
  24. package/dist/dto/insights/list-workflow-query.dto.js +4 -16
  25. package/dist/dto/insights/list-workflow-query.dto.js.map +1 -1
  26. package/dist/dto/pagination/pagination.dto.d.ts +14 -0
  27. package/dist/dto/pagination/pagination.dto.js +35 -0
  28. package/dist/dto/pagination/pagination.dto.js.map +1 -0
  29. package/dist/dto/saml/saml-preferences.dto.d.ts +4 -4
  30. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +6 -6
  31. package/dist/dto/workflows/transfer.dto.d.ts +1 -0
  32. package/dist/dto/workflows/transfer.dto.js +1 -0
  33. package/dist/dto/workflows/transfer.dto.js.map +1 -1
  34. package/dist/frontend-settings.d.ts +7 -0
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.js +5 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/schemas/binaryData.schema.d.ts +1 -0
  39. package/dist/schemas/binaryData.schema.js +24 -0
  40. package/dist/schemas/binaryData.schema.js.map +1 -0
  41. package/dist/schemas/insights.schema.d.ts +23 -8
  42. package/dist/schemas/insights.schema.js +17 -1
  43. package/dist/schemas/insights.schema.js.map +1 -1
  44. package/dist/schemas/scopes.schema.d.ts +3 -0
  45. package/dist/schemas/scopes.schema.js +13 -0
  46. package/dist/schemas/scopes.schema.js.map +1 -0
  47. package/dist/schemas/source-controlled-file.schema.d.ts +6 -6
  48. package/package.json +5 -4
@@ -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"}
@@ -10,16 +10,20 @@ declare const CreateApiKeyRequestDto_base: {
10
10
  prototype: UpdateApiKeyRequestDto;
11
11
  staticProps: {
12
12
  Label: z.ZodEffects<z.ZodString, string, string>;
13
+ Scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
13
14
  };
14
15
  Label: z.ZodEffects<z.ZodString, string, string>;
16
+ Scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
15
17
  } & import("zod-class").ZodClass<{
16
18
  expiresAt: number | null;
17
19
  } & {} & {
18
20
  label: string;
21
+ scopes: string[];
19
22
  } & {}, {
20
23
  expiresAt: number | null;
21
24
  } & {} & UpdateApiKeyRequestDto, Omit<{
22
25
  label: z.ZodEffects<z.ZodString, string, string>;
26
+ scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
23
27
  }, "expiresAt"> & {
24
28
  expiresAt: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number | null, number | null>;
25
29
  }>;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { Z } from 'zod-class';
3
3
  declare const UpdateApiKeyRequestDto_base: Z.Class<{
4
4
  label: z.ZodEffects<z.ZodString, string, string>;
5
+ scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, import("@n8n/permissions").ApiKeyScope[], string[]>;
5
6
  }>;
6
7
  export declare class UpdateApiKeyRequestDto extends UpdateApiKeyRequestDto_base {
7
8
  }
@@ -7,12 +7,14 @@ exports.UpdateApiKeyRequestDto = void 0;
7
7
  const xss_1 = __importDefault(require("xss"));
8
8
  const zod_1 = require("zod");
9
9
  const zod_class_1 = require("zod-class");
10
+ const scopes_schema_1 = require("../../schemas/scopes.schema");
10
11
  const xssCheck = (value) => value ===
11
12
  (0, xss_1.default)(value, {
12
13
  whiteList: {},
13
14
  });
14
15
  class UpdateApiKeyRequestDto extends zod_class_1.Z.class({
15
16
  label: zod_1.z.string().max(50).min(1).refine(xssCheck),
17
+ scopes: scopes_schema_1.scopesSchema,
16
18
  }) {
17
19
  }
18
20
  exports.UpdateApiKeyRequestDto = UpdateApiKeyRequestDto;
@@ -1 +1 @@
1
- {"version":3,"file":"update-api-key-request.dto.js","sourceRoot":"","sources":["../../../src/dto/api-keys/update-api-key-request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AACxB,yCAA8B;AAE9B,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAClC,KAAK;IACL,IAAA,aAAG,EAAC,KAAK,EAAE;QACV,SAAS,EAAE,EAAE;KACb,CAAC,CAAC;AAEJ,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CACjD,CAAC;CAAG;AAFL,wDAEK"}
1
+ {"version":3,"file":"update-api-key-request.dto.js","sourceRoot":"","sources":["../../../src/dto/api-keys/update-api-key-request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,6BAAwB;AACxB,yCAA8B;AAE9B,+DAA2D;AAE3D,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAClC,KAAK;IACL,IAAA,aAAG,EAAC,KAAK,EAAE;QACV,SAAS,EAAE,EAAE;KACb,CAAC,CAAC;AAEJ,MAAa,sBAAuB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IACjD,MAAM,EAAE,4BAAY;CACpB,CAAC;CAAG;AAHL,wDAGK"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const BinaryDataQueryDto_base: Z.Class<{
4
+ id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ action: z.ZodEnum<["view", "download"]>;
6
+ fileName: z.ZodOptional<z.ZodString>;
7
+ mimeType: z.ZodOptional<z.ZodString>;
8
+ }>;
9
+ export declare class BinaryDataQueryDto extends BinaryDataQueryDto_base {
10
+ }
11
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BinaryDataQueryDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class BinaryDataQueryDto extends zod_class_1.Z.class({
7
+ id: zod_1.z
8
+ .string()
9
+ .refine((id) => id.includes(':'), {
10
+ message: 'Missing binary data mode',
11
+ })
12
+ .refine((id) => {
13
+ const [mode] = id.split(':');
14
+ return ['filesystem', 'filesystem-v2', 's3'].includes(mode);
15
+ }, {
16
+ message: 'Invalid binary data mode',
17
+ }),
18
+ action: zod_1.z.enum(['view', 'download']),
19
+ fileName: zod_1.z.string().optional(),
20
+ mimeType: zod_1.z.string().optional(),
21
+ }) {
22
+ }
23
+ exports.BinaryDataQueryDto = BinaryDataQueryDto;
24
+ //# sourceMappingURL=binary-data-query.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-data-query.dto.js","sourceRoot":"","sources":["../../../src/dto/binary-data/binary-data-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,kBAAmB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC/C,EAAE,EAAE,OAAC;SACH,MAAM,EAAE;SACR,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACjC,OAAO,EAAE,0BAA0B;KACnC,CAAC;SACD,MAAM,CACN,CAAC,EAAE,EAAE,EAAE;QACN,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7B,OAAO,CAAC,YAAY,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC,EACD;QACC,OAAO,EAAE,0BAA0B;KACnC,CACD;IACF,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC;CAAG;AAlBL,gDAkBK"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const BinaryDataSignedQueryDto_base: Z.Class<{
4
+ token: z.ZodString;
5
+ }>;
6
+ export declare class BinaryDataSignedQueryDto extends BinaryDataSignedQueryDto_base {
7
+ }
8
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BinaryDataSignedQueryDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class BinaryDataSignedQueryDto extends zod_class_1.Z.class({
7
+ token: zod_1.z.string().regex(/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+$/, {
8
+ message: 'Token must be a valid JWT format',
9
+ }),
10
+ }) {
11
+ }
12
+ exports.BinaryDataSignedQueryDto = BinaryDataSignedQueryDto;
13
+ //# sourceMappingURL=binary-data-signed-query.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-data-signed-query.dto.js","sourceRoot":"","sources":["../../../src/dto/binary-data/binary-data-signed-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,wBAAyB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACrD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kDAAkD,EAAE;QAC3E,OAAO,EAAE,kCAAkC;KAC3C,CAAC;CACF,CAAC;CAAG;AAJL,4DAIK"}
@@ -25,7 +25,7 @@ declare const ListFolderQueryDto_base: Z.Class<{
25
25
  } | undefined, string | undefined>;
26
26
  skip: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
27
27
  take: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
28
- select: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<"project" | "name" | "tags" | "id" | "updatedAt" | "createdAt" | "parentFolder" | "workflowCount" | "subFolderCount", true> | undefined, string | undefined>;
28
+ select: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<"project" | "id" | "name" | "tags" | "updatedAt" | "createdAt" | "parentFolder" | "workflowCount" | "subFolderCount", true> | undefined, string | undefined>;
29
29
  sortBy: z.ZodOptional<z.ZodEnum<["name:asc", "name:desc", "createdAt:asc", "createdAt:desc", "updatedAt:asc", "updatedAt:desc"]>>;
30
30
  }>;
31
31
  export declare class ListFolderQueryDto extends ListFolderQueryDto_base {
@@ -1,7 +1,10 @@
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';
6
+ export { BinaryDataQueryDto } from './binary-data/binary-data-query.dto';
7
+ export { BinaryDataSignedQueryDto } from './binary-data/binary-data-signed-query.dto';
5
8
  export { LoginRequestDto } from './auth/login-request.dto';
6
9
  export { ResolveSignupTokenQueryDto } from './auth/resolve-signup-token-query.dto';
7
10
  export { OptionsRequestDto } from './dynamic-node-parameters/options-request.dto';
@@ -45,3 +48,5 @@ export { UpdateFolderDto } from './folders/update-folder.dto';
45
48
  export { DeleteFolderDto } from './folders/delete-folder.dto';
46
49
  export { ListFolderQueryDto } from './folders/list-folder-query.dto';
47
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,14 +1,21 @@
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.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");
11
14
  Object.defineProperty(exports, "AiFreeCreditsRequestDto", { enumerable: true, get: function () { return ai_free_credits_request_dto_1.AiFreeCreditsRequestDto; } });
15
+ var binary_data_query_dto_1 = require("./binary-data/binary-data-query.dto");
16
+ Object.defineProperty(exports, "BinaryDataQueryDto", { enumerable: true, get: function () { return binary_data_query_dto_1.BinaryDataQueryDto; } });
17
+ var binary_data_signed_query_dto_1 = require("./binary-data/binary-data-signed-query.dto");
18
+ Object.defineProperty(exports, "BinaryDataSignedQueryDto", { enumerable: true, get: function () { return binary_data_signed_query_dto_1.BinaryDataSignedQueryDto; } });
12
19
  var login_request_dto_1 = require("./auth/login-request.dto");
13
20
  Object.defineProperty(exports, "LoginRequestDto", { enumerable: true, get: function () { return login_request_dto_1.LoginRequestDto; } });
14
21
  var resolve_signup_token_query_dto_1 = require("./auth/resolve-signup-token-query.dto");
@@ -95,4 +102,8 @@ var list_folder_query_dto_1 = require("./folders/list-folder-query.dto");
95
102
  Object.defineProperty(exports, "ListFolderQueryDto", { enumerable: true, get: function () { return list_folder_query_dto_1.ListFolderQueryDto; } });
96
103
  var list_workflow_query_dto_1 = require("./insights/list-workflow-query.dto");
97
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; } });
98
109
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,wFAAmF;AAA1E,8IAAA,2BAA2B,OAAA;AACpC,gFAA2E;AAAlE,sIAAA,uBAAuB,OAAA;AAEhC,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,O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,qBAAqB,OAAA;AAE9B,8DAA4D;AAAnD,+GAAA,aAAa,OAAA"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
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
- skip: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
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
- skip: skipValidator,
41
- take: takeValidator,
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;AAOX,MAAM,aAAa,GAAG,OAAC;KACrB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACjD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IAC7B,OAAO,EAAE,6BAA6B;CACtC,CAAC,CAAC;AAGJ,MAAM,aAAa,GAAG,OAAC;KACrB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAClD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IAC7B,OAAO,EAAE,6BAA6B;CACtC,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,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,eAAe;CACvB,CAAC;CAAG;AAJL,oEAIK"}
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,"file":"pagination.dto.js","sourceRoot":"","sources":["../../../src/dto/pagination/pagination.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAEjB,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAErC,MAAM,aAAa,GAAG,OAAC;KACrB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACjD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACtD,OAAO,EAAE,sCAAsC;CAC/C,CAAC;KACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;IAC1B,OAAO,EAAE,6CAA6C;CACtD,CAAC,CAAC;AAEJ,MAAM,aAAa,GAAG,OAAC;KACrB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAClD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACtD,OAAO,EAAE,sCAAsC;CAC/C,CAAC;KACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;IAC1B,OAAO,EAAE,6CAA6C;CACtD,CAAC;KACD,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,0BAAkB,CAAC,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"}
@@ -33,22 +33,22 @@ declare const SamlPreferences_base: Z.Class<{
33
33
  reference: z.ZodString;
34
34
  action: z.ZodEnum<["before", "after", "prepend", "append"]>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- reference: string;
37
36
  action: "before" | "after" | "prepend" | "append";
38
- }, {
39
37
  reference: string;
38
+ }, {
40
39
  action: "before" | "after" | "prepend" | "append";
40
+ reference: string;
41
41
  }>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  prefix: string;
44
44
  location: {
45
- reference: string;
46
45
  action: "before" | "after" | "prepend" | "append";
46
+ reference: string;
47
47
  };
48
48
  }, {
49
49
  location: {
50
- reference: string;
51
50
  action: "before" | "after" | "prepend" | "append";
51
+ reference: string;
52
52
  };
53
53
  prefix?: string | undefined;
54
54
  }>>;
@@ -14,22 +14,22 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
14
14
  updatedAt: z.ZodString;
15
15
  pushed: z.ZodOptional<z.ZodBoolean>;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
17
18
  status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
18
- type: "credential" | "workflow" | "tags" | "variables" | "file" | "folders";
19
+ id: string;
20
+ file: string;
19
21
  name: string;
20
22
  location: "local" | "remote";
21
- file: string;
22
- id: string;
23
23
  conflict: boolean;
24
24
  updatedAt: string;
25
25
  pushed?: boolean | undefined;
26
26
  }, {
27
+ type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
27
28
  status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
28
- type: "credential" | "workflow" | "tags" | "variables" | "file" | "folders";
29
+ id: string;
30
+ file: string;
29
31
  name: string;
30
32
  location: "local" | "remote";
31
- file: string;
32
- id: string;
33
33
  conflict: boolean;
34
34
  updatedAt: string;
35
35
  pushed?: boolean | undefined;
@@ -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;AAHL,0DAGK"}
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: {
@@ -130,6 +132,7 @@ export interface FrontendSettings {
130
132
  workflowHistory: boolean;
131
133
  workerView: boolean;
132
134
  advancedPermissions: boolean;
135
+ apiKeyScopes: boolean;
133
136
  projects: {
134
137
  team: {
135
138
  limit: number;
@@ -154,6 +157,9 @@ export interface FrontendSettings {
154
157
  folders: {
155
158
  enabled: boolean;
156
159
  };
160
+ logsView: {
161
+ enabled: boolean;
162
+ };
157
163
  banners: {
158
164
  dismissed: string[];
159
165
  };
@@ -181,5 +187,6 @@ export interface FrontendSettings {
181
187
  enabled: boolean;
182
188
  summary: boolean;
183
189
  dashboard: boolean;
190
+ dateRanges: InsightsDateRange[];
184
191
  };
185
192
  }
package/dist/index.d.ts CHANGED
@@ -10,7 +10,8 @@ export type { HeartbeatMessage } from './push/heartbeat';
10
10
  export { createHeartbeatMessage, heartbeatMessageSchema } from './push/heartbeat';
11
11
  export type { SendWorkerStatusMessage } from './push/worker';
12
12
  export type { BannerName } from './schemas/bannerName.schema';
13
+ export { ViewableMimeTypes } from './schemas/binaryData.schema';
13
14
  export { passwordSchema } from './schemas/password.schema';
14
15
  export type { ProjectType, ProjectIcon, ProjectRole, ProjectRelation, } from './schemas/project.schema';
15
16
  export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
16
- export type { InsightsSummaryType, InsightsSummaryUnit, InsightsSummary, InsightsByWorkflow, InsightsByTime, } from './schemas/insights.schema';
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,15 +14,19 @@ 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.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; } });
21
21
  Object.defineProperty(exports, "heartbeatMessageSchema", { enumerable: true, get: function () { return heartbeat_1.heartbeatMessageSchema; } });
22
+ var binaryData_schema_1 = require("./schemas/binaryData.schema");
23
+ Object.defineProperty(exports, "ViewableMimeTypes", { enumerable: true, get: function () { return binaryData_schema_1.ViewableMimeTypes; } });
22
24
  var password_schema_1 = require("./schemas/password.schema");
23
25
  Object.defineProperty(exports, "passwordSchema", { enumerable: true, get: function () { return password_schema_1.passwordSchema; } });
24
26
  var source_controlled_file_schema_1 = require("./schemas/source-controlled-file.schema");
25
27
  Object.defineProperty(exports, "SOURCE_CONTROL_FILE_LOCATION", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_LOCATION; } });
26
28
  Object.defineProperty(exports, "SOURCE_CONTROL_FILE_STATUS", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_STATUS; } });
27
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; } });
28
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,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"}
@@ -0,0 +1 @@
1
+ export declare const ViewableMimeTypes: string[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewableMimeTypes = void 0;
4
+ exports.ViewableMimeTypes = [
5
+ 'application/json',
6
+ 'audio/mpeg',
7
+ 'audio/ogg',
8
+ 'audio/wav',
9
+ 'image/bmp',
10
+ 'image/gif',
11
+ 'image/jpeg',
12
+ 'image/jpg',
13
+ 'image/png',
14
+ 'image/tiff',
15
+ 'image/webp',
16
+ 'text/css',
17
+ 'text/csv',
18
+ 'text/markdown',
19
+ 'text/plain',
20
+ 'video/mp4',
21
+ 'video/ogg',
22
+ 'video/webm',
23
+ ];
24
+ //# sourceMappingURL=binaryData.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binaryData.schema.js","sourceRoot":"","sources":["../../src/schemas/binaryData.schema.ts"],"names":[],"mappings":";;;AAQa,QAAA,iBAAiB,GAAG;IAChC,kBAAkB;IAElB,YAAY;IACZ,WAAW;IACX,WAAW;IAEX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,WAAW;IACX,YAAY;IACZ,YAAY;IAEZ,UAAU;IACV,UAAU;IACV,eAAe;IACf,YAAY;IAEZ,WAAW;IACX,WAAW;IACX,YAAY;CACZ,CAAC"}