@egose/n8n-client 0.1.1

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 (118) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +202 -0
  3. package/README.md +400 -0
  4. package/chunk-3SBD4UJS.js +15 -0
  5. package/chunk-4AODYIOB.cjs +36 -0
  6. package/chunk-4FXZT5HT.js +27 -0
  7. package/chunk-5DYA4LAX.cjs +110 -0
  8. package/chunk-5FIB7YIT.js +24 -0
  9. package/chunk-5PHEDSSO.cjs +27 -0
  10. package/chunk-5SY4KM4Q.js +15 -0
  11. package/chunk-7B5DLJYY.cjs +30 -0
  12. package/chunk-BWLFUF76.js +36 -0
  13. package/chunk-CES6KIG5.cjs +36 -0
  14. package/chunk-CUO2M75Z.js +29 -0
  15. package/chunk-DJCG37LZ.js +32 -0
  16. package/chunk-DK5NLZ6U.js +110 -0
  17. package/chunk-DURH6QOX.js +30 -0
  18. package/chunk-FHAZIAHR.js +15 -0
  19. package/chunk-FZX275Y3.js +24 -0
  20. package/chunk-I7NGIQIM.cjs +51 -0
  21. package/chunk-JR7A75YV.js +15 -0
  22. package/chunk-M7GX3MEN.cjs +15 -0
  23. package/chunk-MNL65GQB.js +51 -0
  24. package/chunk-NAZ5MLBL.cjs +32 -0
  25. package/chunk-NM6A7DX4.cjs +15 -0
  26. package/chunk-NSCKTOQK.cjs +15 -0
  27. package/chunk-OOMGKLOT.cjs +24 -0
  28. package/chunk-QLAAM7TG.cjs +27 -0
  29. package/chunk-QYAIEIF5.js +36 -0
  30. package/chunk-RATHO5IW.cjs +15 -0
  31. package/chunk-SK4VCTMD.js +27 -0
  32. package/chunk-TCPZWXKM.js +54 -0
  33. package/chunk-TRHGCMFH.cjs +29 -0
  34. package/chunk-U7PGEXKS.cjs +36 -0
  35. package/chunk-YPK2BDPO.cjs +54 -0
  36. package/chunk-ZAZJHB3O.cjs +24 -0
  37. package/chunk-ZEQL5KU2.js +36 -0
  38. package/handles/audit.cjs +7 -0
  39. package/handles/audit.d.cts +11 -0
  40. package/handles/audit.d.ts +11 -0
  41. package/handles/audit.js +7 -0
  42. package/handles/community-package.cjs +7 -0
  43. package/handles/community-package.d.cts +17 -0
  44. package/handles/community-package.d.ts +17 -0
  45. package/handles/community-package.js +7 -0
  46. package/handles/credential.cjs +7 -0
  47. package/handles/credential.d.cts +18 -0
  48. package/handles/credential.d.ts +18 -0
  49. package/handles/credential.js +7 -0
  50. package/handles/data-table.cjs +7 -0
  51. package/handles/data-table.d.cts +38 -0
  52. package/handles/data-table.d.ts +38 -0
  53. package/handles/data-table.js +7 -0
  54. package/handles/discover.cjs +7 -0
  55. package/handles/discover.d.cts +15 -0
  56. package/handles/discover.d.ts +15 -0
  57. package/handles/discover.js +7 -0
  58. package/handles/execution.cjs +7 -0
  59. package/handles/execution.d.cts +29 -0
  60. package/handles/execution.d.ts +29 -0
  61. package/handles/execution.js +7 -0
  62. package/handles/folder.cjs +7 -0
  63. package/handles/folder.d.cts +23 -0
  64. package/handles/folder.d.ts +23 -0
  65. package/handles/folder.js +7 -0
  66. package/handles/insights.cjs +7 -0
  67. package/handles/insights.d.cts +15 -0
  68. package/handles/insights.d.ts +15 -0
  69. package/handles/insights.js +7 -0
  70. package/handles/n8n-package.cjs +7 -0
  71. package/handles/n8n-package.d.cts +18 -0
  72. package/handles/n8n-package.d.ts +18 -0
  73. package/handles/n8n-package.js +7 -0
  74. package/handles/project.cjs +7 -0
  75. package/handles/project.d.cts +25 -0
  76. package/handles/project.d.ts +25 -0
  77. package/handles/project.js +7 -0
  78. package/handles/source-control.cjs +7 -0
  79. package/handles/source-control.d.cts +11 -0
  80. package/handles/source-control.d.ts +11 -0
  81. package/handles/source-control.js +7 -0
  82. package/handles/tag.cjs +7 -0
  83. package/handles/tag.d.cts +19 -0
  84. package/handles/tag.d.ts +19 -0
  85. package/handles/tag.js +7 -0
  86. package/handles/user.cjs +7 -0
  87. package/handles/user.d.cts +21 -0
  88. package/handles/user.d.ts +21 -0
  89. package/handles/user.js +7 -0
  90. package/handles/variable.cjs +7 -0
  91. package/handles/variable.d.cts +17 -0
  92. package/handles/variable.d.ts +17 -0
  93. package/handles/variable.js +7 -0
  94. package/handles/workflow.cjs +7 -0
  95. package/handles/workflow.d.cts +35 -0
  96. package/handles/workflow.d.ts +35 -0
  97. package/handles/workflow.js +7 -0
  98. package/http-client.cjs +10 -0
  99. package/http-client.d.cts +43 -0
  100. package/http-client.d.ts +43 -0
  101. package/http-client.js +10 -0
  102. package/index.cjs +127 -0
  103. package/index.d.cts +58 -0
  104. package/index.d.ts +58 -0
  105. package/index.js +127 -0
  106. package/package.json +42 -0
  107. package/pagination.cjs +1 -0
  108. package/pagination.d.cts +11 -0
  109. package/pagination.d.ts +11 -0
  110. package/pagination.js +1 -0
  111. package/types.cjs +1 -0
  112. package/types.d.cts +578 -0
  113. package/types.d.ts +578 -0
  114. package/types.js +1 -0
  115. package/utils/retry.cjs +7 -0
  116. package/utils/retry.d.cts +3 -0
  117. package/utils/retry.d.ts +3 -0
  118. package/utils/retry.js +7 -0
@@ -0,0 +1,38 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { DataTableListResponse, DataTable, CreateDataTableRequest, UpdateDataTableRequest, DataTableRowListResponse, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsAllRequest, DataTableRow, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, DeleteRowsBooleanParams, DeleteRowsDataParams, DataTableColumn, CreateColumnRequest, UpdateColumnRequest } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ declare class DataTableHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ filter?: string;
10
+ sortBy?: string;
11
+ }): Promise<DataTableListResponse>;
12
+ get(id: string): Promise<DataTable>;
13
+ create(data: CreateDataTableRequest): Promise<DataTable>;
14
+ update(id: string, data: UpdateDataTableRequest): Promise<DataTable>;
15
+ delete(id: string): Promise<void>;
16
+ listRows(dataTableId: string, params?: PaginationParams & {
17
+ filter?: string;
18
+ sortBy?: string;
19
+ search?: string;
20
+ }): Promise<DataTableRowListResponse>;
21
+ insertRows(dataTableId: string, data: InsertRowsCountRequest): Promise<{
22
+ count: number;
23
+ }>;
24
+ insertRows(dataTableId: string, data: InsertRowsIdsRequest): Promise<number[]>;
25
+ insertRows(dataTableId: string, data: InsertRowsAllRequest): Promise<DataTableRow[]>;
26
+ updateRows(dataTableId: string, data: UpdateRowsBooleanRequest): Promise<boolean>;
27
+ updateRows(dataTableId: string, data: UpdateRowsDataRequest): Promise<DataTableRow[]>;
28
+ upsertRow(dataTableId: string, data: UpsertRowBooleanRequest): Promise<boolean>;
29
+ upsertRow(dataTableId: string, data: UpsertRowDataRequest): Promise<DataTableRow>;
30
+ deleteRows(dataTableId: string, params: DeleteRowsBooleanParams): Promise<boolean>;
31
+ deleteRows(dataTableId: string, params: DeleteRowsDataParams): Promise<DataTableRow[]>;
32
+ listColumns(dataTableId: string): Promise<DataTableColumn[]>;
33
+ createColumn(dataTableId: string, data: CreateColumnRequest): Promise<DataTableColumn>;
34
+ deleteColumn(dataTableId: string, columnId: string): Promise<void>;
35
+ updateColumn(dataTableId: string, columnId: string, data: UpdateColumnRequest): Promise<DataTableColumn>;
36
+ }
37
+
38
+ export { DataTableHandle as default };
@@ -0,0 +1,38 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { DataTableListResponse, DataTable, CreateDataTableRequest, UpdateDataTableRequest, DataTableRowListResponse, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsAllRequest, DataTableRow, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, DeleteRowsBooleanParams, DeleteRowsDataParams, DataTableColumn, CreateColumnRequest, UpdateColumnRequest } from '../types.js';
3
+ import { PaginationParams } from '../pagination.js';
4
+
5
+ declare class DataTableHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ filter?: string;
10
+ sortBy?: string;
11
+ }): Promise<DataTableListResponse>;
12
+ get(id: string): Promise<DataTable>;
13
+ create(data: CreateDataTableRequest): Promise<DataTable>;
14
+ update(id: string, data: UpdateDataTableRequest): Promise<DataTable>;
15
+ delete(id: string): Promise<void>;
16
+ listRows(dataTableId: string, params?: PaginationParams & {
17
+ filter?: string;
18
+ sortBy?: string;
19
+ search?: string;
20
+ }): Promise<DataTableRowListResponse>;
21
+ insertRows(dataTableId: string, data: InsertRowsCountRequest): Promise<{
22
+ count: number;
23
+ }>;
24
+ insertRows(dataTableId: string, data: InsertRowsIdsRequest): Promise<number[]>;
25
+ insertRows(dataTableId: string, data: InsertRowsAllRequest): Promise<DataTableRow[]>;
26
+ updateRows(dataTableId: string, data: UpdateRowsBooleanRequest): Promise<boolean>;
27
+ updateRows(dataTableId: string, data: UpdateRowsDataRequest): Promise<DataTableRow[]>;
28
+ upsertRow(dataTableId: string, data: UpsertRowBooleanRequest): Promise<boolean>;
29
+ upsertRow(dataTableId: string, data: UpsertRowDataRequest): Promise<DataTableRow>;
30
+ deleteRows(dataTableId: string, params: DeleteRowsBooleanParams): Promise<boolean>;
31
+ deleteRows(dataTableId: string, params: DeleteRowsDataParams): Promise<DataTableRow[]>;
32
+ listColumns(dataTableId: string): Promise<DataTableColumn[]>;
33
+ createColumn(dataTableId: string, data: CreateColumnRequest): Promise<DataTableColumn>;
34
+ deleteColumn(dataTableId: string, columnId: string): Promise<void>;
35
+ updateColumn(dataTableId: string, columnId: string, data: UpdateColumnRequest): Promise<DataTableColumn>;
36
+ }
37
+
38
+ export { DataTableHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ DataTableHandle
3
+ } from "../chunk-TCPZWXKM.js";
4
+ export {
5
+ DataTableHandle as default
6
+ };
7
+ //# sourceMappingURL=data-table.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkRATHO5IWcjs = require('../chunk-RATHO5IW.cjs');
4
+
5
+
6
+ exports.default = _chunkRATHO5IWcjs.DiscoverHandle;
7
+ //# sourceMappingURL=discover.cjs.map
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { DiscoverResponse } from '../types.cjs';
3
+ import '../pagination.cjs';
4
+
5
+ declare class DiscoverHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ get(params?: {
9
+ include?: 'schemas';
10
+ resource?: string;
11
+ operation?: string;
12
+ }): Promise<DiscoverResponse>;
13
+ }
14
+
15
+ export { DiscoverHandle as default };
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { DiscoverResponse } from '../types.js';
3
+ import '../pagination.js';
4
+
5
+ declare class DiscoverHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ get(params?: {
9
+ include?: 'schemas';
10
+ resource?: string;
11
+ operation?: string;
12
+ }): Promise<DiscoverResponse>;
13
+ }
14
+
15
+ export { DiscoverHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ DiscoverHandle
3
+ } from "../chunk-FHAZIAHR.js";
4
+ export {
5
+ DiscoverHandle as default
6
+ };
7
+ //# sourceMappingURL=discover.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkU7PGEXKScjs = require('../chunk-U7PGEXKS.cjs');
4
+
5
+
6
+ exports.default = _chunkU7PGEXKScjs.ExecutionHandle;
7
+ //# sourceMappingURL=execution.cjs.map
@@ -0,0 +1,29 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { ExecutionStatus, ExecutionListResponse, Execution, StopManyExecutionsRequest, StopManyExecutionsResponse, Tag, TagId } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ declare class ExecutionHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ includeData?: boolean;
10
+ redactExecutionData?: boolean;
11
+ status?: ExecutionStatus;
12
+ workflowId?: string;
13
+ projectId?: string;
14
+ }): Promise<ExecutionListResponse>;
15
+ get(id: number, params?: {
16
+ includeData?: boolean;
17
+ redactExecutionData?: boolean;
18
+ }): Promise<Execution>;
19
+ delete(id: number): Promise<Execution>;
20
+ retry(id: number, data?: {
21
+ loadWorkflow?: boolean;
22
+ }): Promise<Execution>;
23
+ stop(id: number): Promise<Execution>;
24
+ stopMany(data: StopManyExecutionsRequest): Promise<StopManyExecutionsResponse>;
25
+ getTags(id: number): Promise<Tag[]>;
26
+ updateTags(id: number, tags: TagId[]): Promise<Tag[]>;
27
+ }
28
+
29
+ export { ExecutionHandle as default };
@@ -0,0 +1,29 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { ExecutionStatus, ExecutionListResponse, Execution, StopManyExecutionsRequest, StopManyExecutionsResponse, Tag, TagId } from '../types.js';
3
+ import { PaginationParams } from '../pagination.js';
4
+
5
+ declare class ExecutionHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ includeData?: boolean;
10
+ redactExecutionData?: boolean;
11
+ status?: ExecutionStatus;
12
+ workflowId?: string;
13
+ projectId?: string;
14
+ }): Promise<ExecutionListResponse>;
15
+ get(id: number, params?: {
16
+ includeData?: boolean;
17
+ redactExecutionData?: boolean;
18
+ }): Promise<Execution>;
19
+ delete(id: number): Promise<Execution>;
20
+ retry(id: number, data?: {
21
+ loadWorkflow?: boolean;
22
+ }): Promise<Execution>;
23
+ stop(id: number): Promise<Execution>;
24
+ stopMany(data: StopManyExecutionsRequest): Promise<StopManyExecutionsResponse>;
25
+ getTags(id: number): Promise<Tag[]>;
26
+ updateTags(id: number, tags: TagId[]): Promise<Tag[]>;
27
+ }
28
+
29
+ export { ExecutionHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ ExecutionHandle
3
+ } from "../chunk-QYAIEIF5.js";
4
+ export {
5
+ ExecutionHandle as default
6
+ };
7
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNAZ5MLBLcjs = require('../chunk-NAZ5MLBL.cjs');
4
+
5
+
6
+ exports.default = _chunkNAZ5MLBLcjs.FolderHandle;
7
+ //# sourceMappingURL=folder.cjs.map
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { FolderListResponse, FolderDetail, FolderCreate, Folder, FolderUpdate } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ interface FolderListParams extends PaginationParams {
6
+ filter?: string;
7
+ select?: string;
8
+ sortBy?: 'name:asc' | 'name:desc' | 'createdAt:asc' | 'createdAt:desc' | 'updatedAt:asc' | 'updatedAt:desc';
9
+ skip?: string;
10
+ take?: string;
11
+ }
12
+ declare class FolderHandle {
13
+ protected http: HttpClient;
14
+ protected projectId: string;
15
+ constructor(http: HttpClient, projectId: string);
16
+ list(params?: FolderListParams): Promise<FolderListResponse>;
17
+ get(folderId: string): Promise<FolderDetail>;
18
+ create(data: FolderCreate): Promise<Folder>;
19
+ update(folderId: string, data: FolderUpdate): Promise<Folder>;
20
+ delete(folderId: string, transferToFolderId?: string): Promise<void>;
21
+ }
22
+
23
+ export { type FolderListParams, FolderHandle as default };
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { FolderListResponse, FolderDetail, FolderCreate, Folder, FolderUpdate } from '../types.js';
3
+ import { PaginationParams } from '../pagination.js';
4
+
5
+ interface FolderListParams extends PaginationParams {
6
+ filter?: string;
7
+ select?: string;
8
+ sortBy?: 'name:asc' | 'name:desc' | 'createdAt:asc' | 'createdAt:desc' | 'updatedAt:asc' | 'updatedAt:desc';
9
+ skip?: string;
10
+ take?: string;
11
+ }
12
+ declare class FolderHandle {
13
+ protected http: HttpClient;
14
+ protected projectId: string;
15
+ constructor(http: HttpClient, projectId: string);
16
+ list(params?: FolderListParams): Promise<FolderListResponse>;
17
+ get(folderId: string): Promise<FolderDetail>;
18
+ create(data: FolderCreate): Promise<Folder>;
19
+ update(folderId: string, data: FolderUpdate): Promise<Folder>;
20
+ delete(folderId: string, transferToFolderId?: string): Promise<void>;
21
+ }
22
+
23
+ export { type FolderListParams, FolderHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ FolderHandle
3
+ } from "../chunk-DJCG37LZ.js";
4
+ export {
5
+ FolderHandle as default
6
+ };
7
+ //# sourceMappingURL=folder.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNSCKTOQKcjs = require('../chunk-NSCKTOQK.cjs');
4
+
5
+
6
+ exports.default = _chunkNSCKTOQKcjs.InsightsHandle;
7
+ //# sourceMappingURL=insights.cjs.map
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { InsightsSummary } from '../types.cjs';
3
+ import '../pagination.cjs';
4
+
5
+ declare class InsightsHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ getSummary(params?: {
9
+ startDate?: string;
10
+ endDate?: string;
11
+ projectId?: string;
12
+ }): Promise<InsightsSummary>;
13
+ }
14
+
15
+ export { InsightsHandle as default };
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { InsightsSummary } from '../types.js';
3
+ import '../pagination.js';
4
+
5
+ declare class InsightsHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ getSummary(params?: {
9
+ startDate?: string;
10
+ endDate?: string;
11
+ projectId?: string;
12
+ }): Promise<InsightsSummary>;
13
+ }
14
+
15
+ export { InsightsHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ InsightsHandle
3
+ } from "../chunk-5SY4KM4Q.js";
4
+ export {
5
+ InsightsHandle as default
6
+ };
7
+ //# sourceMappingURL=insights.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkTRHGCMFHcjs = require('../chunk-TRHGCMFH.cjs');
4
+
5
+
6
+ exports.default = _chunkTRHGCMFHcjs.N8nPackageHandle;
7
+ //# sourceMappingURL=n8n-package.cjs.map
@@ -0,0 +1,18 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { ExportWorkflowsRequest, ImportPackageResponse } from '../types.cjs';
3
+ import '../pagination.cjs';
4
+
5
+ declare class N8nPackageHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ exportWorkflows(data: ExportWorkflowsRequest): Promise<ArrayBuffer>;
9
+ importPackage(pkg: File | Blob, options: {
10
+ projectId?: string;
11
+ folderId?: string;
12
+ credentialMatchingMode?: 'id-only';
13
+ credentialMissingMode?: 'must-preexist';
14
+ workflowConflictPolicy: 'new-version' | 'fail' | 'skip';
15
+ }): Promise<ImportPackageResponse>;
16
+ }
17
+
18
+ export { N8nPackageHandle as default };
@@ -0,0 +1,18 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { ExportWorkflowsRequest, ImportPackageResponse } from '../types.js';
3
+ import '../pagination.js';
4
+
5
+ declare class N8nPackageHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ exportWorkflows(data: ExportWorkflowsRequest): Promise<ArrayBuffer>;
9
+ importPackage(pkg: File | Blob, options: {
10
+ projectId?: string;
11
+ folderId?: string;
12
+ credentialMatchingMode?: 'id-only';
13
+ credentialMissingMode?: 'must-preexist';
14
+ workflowConflictPolicy: 'new-version' | 'fail' | 'skip';
15
+ }): Promise<ImportPackageResponse>;
16
+ }
17
+
18
+ export { N8nPackageHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ N8nPackageHandle
3
+ } from "../chunk-CUO2M75Z.js";
4
+ export {
5
+ N8nPackageHandle as default
6
+ };
7
+ //# sourceMappingURL=n8n-package.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk4AODYIOBcjs = require('../chunk-4AODYIOB.cjs');
4
+
5
+
6
+ exports.default = _chunk4AODYIOBcjs.ProjectHandle;
7
+ //# sourceMappingURL=project.cjs.map
@@ -0,0 +1,25 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { ProjectListResponse, ProjectMemberListResponse } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ declare class ProjectHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams): Promise<ProjectListResponse>;
9
+ create(data: {
10
+ name: string;
11
+ }): Promise<void>;
12
+ update(id: string, data: {
13
+ name: string;
14
+ }): Promise<void>;
15
+ delete(id: string): Promise<void>;
16
+ listMembers(projectId: string, params?: PaginationParams): Promise<ProjectMemberListResponse>;
17
+ addMembers(projectId: string, relations: Array<{
18
+ userId: string;
19
+ role: string;
20
+ }>): Promise<void>;
21
+ removeMember(projectId: string, userId: string): Promise<void>;
22
+ changeMemberRole(projectId: string, userId: string, role: string): Promise<void>;
23
+ }
24
+
25
+ export { ProjectHandle as default };
@@ -0,0 +1,25 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { ProjectListResponse, ProjectMemberListResponse } from '../types.js';
3
+ import { PaginationParams } from '../pagination.js';
4
+
5
+ declare class ProjectHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams): Promise<ProjectListResponse>;
9
+ create(data: {
10
+ name: string;
11
+ }): Promise<void>;
12
+ update(id: string, data: {
13
+ name: string;
14
+ }): Promise<void>;
15
+ delete(id: string): Promise<void>;
16
+ listMembers(projectId: string, params?: PaginationParams): Promise<ProjectMemberListResponse>;
17
+ addMembers(projectId: string, relations: Array<{
18
+ userId: string;
19
+ role: string;
20
+ }>): Promise<void>;
21
+ removeMember(projectId: string, userId: string): Promise<void>;
22
+ changeMemberRole(projectId: string, userId: string, role: string): Promise<void>;
23
+ }
24
+
25
+ export { ProjectHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ ProjectHandle
3
+ } from "../chunk-ZEQL5KU2.js";
4
+ export {
5
+ ProjectHandle as default
6
+ };
7
+ //# sourceMappingURL=project.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNM6A7DX4cjs = require('../chunk-NM6A7DX4.cjs');
4
+
5
+
6
+ exports.default = _chunkNM6A7DX4cjs.SourceControlHandle;
7
+ //# sourceMappingURL=source-control.cjs.map
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { PullRequest, SourceControlledFile } from '../types.cjs';
3
+ import '../pagination.cjs';
4
+
5
+ declare class SourceControlHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ pull(data: PullRequest): Promise<SourceControlledFile[]>;
9
+ }
10
+
11
+ export { SourceControlHandle as default };
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { PullRequest, SourceControlledFile } from '../types.js';
3
+ import '../pagination.js';
4
+
5
+ declare class SourceControlHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ pull(data: PullRequest): Promise<SourceControlledFile[]>;
9
+ }
10
+
11
+ export { SourceControlHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ SourceControlHandle
3
+ } from "../chunk-JR7A75YV.js";
4
+ export {
5
+ SourceControlHandle as default
6
+ };
7
+ //# sourceMappingURL=source-control.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk5PHEDSSOcjs = require('../chunk-5PHEDSSO.cjs');
4
+
5
+
6
+ exports.default = _chunk5PHEDSSOcjs.TagHandle;
7
+ //# sourceMappingURL=tag.cjs.map
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { TagListResponse, Tag } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ declare class TagHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams): Promise<TagListResponse>;
9
+ get(id: string): Promise<Tag>;
10
+ create(data: {
11
+ name: string;
12
+ }): Promise<Tag>;
13
+ update(id: string, data: {
14
+ name: string;
15
+ }): Promise<Tag>;
16
+ delete(id: string): Promise<Tag>;
17
+ }
18
+
19
+ export { TagHandle as default };
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { TagListResponse, Tag } from '../types.js';
3
+ import { PaginationParams } from '../pagination.js';
4
+
5
+ declare class TagHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams): Promise<TagListResponse>;
9
+ get(id: string): Promise<Tag>;
10
+ create(data: {
11
+ name: string;
12
+ }): Promise<Tag>;
13
+ update(id: string, data: {
14
+ name: string;
15
+ }): Promise<Tag>;
16
+ delete(id: string): Promise<Tag>;
17
+ }
18
+
19
+ export { TagHandle as default };
package/handles/tag.js ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ TagHandle
3
+ } from "../chunk-4FXZT5HT.js";
4
+ export {
5
+ TagHandle as default
6
+ };
7
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkQLAAM7TGcjs = require('../chunk-QLAAM7TG.cjs');
4
+
5
+
6
+ exports.default = _chunkQLAAM7TGcjs.UserHandle;
7
+ //# sourceMappingURL=user.cjs.map
@@ -0,0 +1,21 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { UserListResponse, User, UserCreate, UserCreateResponse } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ declare class UserHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ offset?: number;
10
+ includeRole?: boolean;
11
+ projectId?: string;
12
+ }): Promise<UserListResponse>;
13
+ get(id: string, params?: {
14
+ includeRole?: boolean;
15
+ }): Promise<User>;
16
+ create(data: UserCreate[]): Promise<UserCreateResponse>;
17
+ delete(id: string): Promise<void>;
18
+ changeRole(id: string, newRoleName: string): Promise<void>;
19
+ }
20
+
21
+ export { UserHandle as default };
@@ -0,0 +1,21 @@
1
+ import { HttpClient } from '../http-client.js';
2
+ import { UserListResponse, User, UserCreate, UserCreateResponse } from '../types.js';
3
+ import { PaginationParams } from '../pagination.js';
4
+
5
+ declare class UserHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ offset?: number;
10
+ includeRole?: boolean;
11
+ projectId?: string;
12
+ }): Promise<UserListResponse>;
13
+ get(id: string, params?: {
14
+ includeRole?: boolean;
15
+ }): Promise<User>;
16
+ create(data: UserCreate[]): Promise<UserCreateResponse>;
17
+ delete(id: string): Promise<void>;
18
+ changeRole(id: string, newRoleName: string): Promise<void>;
19
+ }
20
+
21
+ export { UserHandle as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ UserHandle
3
+ } from "../chunk-SK4VCTMD.js";
4
+ export {
5
+ UserHandle as default
6
+ };
7
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZAZJHB3Ocjs = require('../chunk-ZAZJHB3O.cjs');
4
+
5
+
6
+ exports.default = _chunkZAZJHB3Ocjs.VariableHandle;
7
+ //# sourceMappingURL=variable.cjs.map
@@ -0,0 +1,17 @@
1
+ import { HttpClient } from '../http-client.cjs';
2
+ import { VariableListResponse, VariableCreate } from '../types.cjs';
3
+ import { PaginationParams } from '../pagination.cjs';
4
+
5
+ declare class VariableHandle {
6
+ protected http: HttpClient;
7
+ constructor(http: HttpClient);
8
+ list(params?: PaginationParams & {
9
+ projectId?: string;
10
+ state?: 'empty';
11
+ }): Promise<VariableListResponse>;
12
+ create(data: VariableCreate): Promise<void>;
13
+ update(id: string, data: VariableCreate): Promise<void>;
14
+ delete(id: string): Promise<void>;
15
+ }
16
+
17
+ export { VariableHandle as default };