@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +202 -0
- package/README.md +400 -0
- package/chunk-3SBD4UJS.js +15 -0
- package/chunk-4AODYIOB.cjs +36 -0
- package/chunk-4FXZT5HT.js +27 -0
- package/chunk-5DYA4LAX.cjs +110 -0
- package/chunk-5FIB7YIT.js +24 -0
- package/chunk-5PHEDSSO.cjs +27 -0
- package/chunk-5SY4KM4Q.js +15 -0
- package/chunk-7B5DLJYY.cjs +30 -0
- package/chunk-BWLFUF76.js +36 -0
- package/chunk-CES6KIG5.cjs +36 -0
- package/chunk-CUO2M75Z.js +29 -0
- package/chunk-DJCG37LZ.js +32 -0
- package/chunk-DK5NLZ6U.js +110 -0
- package/chunk-DURH6QOX.js +30 -0
- package/chunk-FHAZIAHR.js +15 -0
- package/chunk-FZX275Y3.js +24 -0
- package/chunk-I7NGIQIM.cjs +51 -0
- package/chunk-JR7A75YV.js +15 -0
- package/chunk-M7GX3MEN.cjs +15 -0
- package/chunk-MNL65GQB.js +51 -0
- package/chunk-NAZ5MLBL.cjs +32 -0
- package/chunk-NM6A7DX4.cjs +15 -0
- package/chunk-NSCKTOQK.cjs +15 -0
- package/chunk-OOMGKLOT.cjs +24 -0
- package/chunk-QLAAM7TG.cjs +27 -0
- package/chunk-QYAIEIF5.js +36 -0
- package/chunk-RATHO5IW.cjs +15 -0
- package/chunk-SK4VCTMD.js +27 -0
- package/chunk-TCPZWXKM.js +54 -0
- package/chunk-TRHGCMFH.cjs +29 -0
- package/chunk-U7PGEXKS.cjs +36 -0
- package/chunk-YPK2BDPO.cjs +54 -0
- package/chunk-ZAZJHB3O.cjs +24 -0
- package/chunk-ZEQL5KU2.js +36 -0
- package/handles/audit.cjs +7 -0
- package/handles/audit.d.cts +11 -0
- package/handles/audit.d.ts +11 -0
- package/handles/audit.js +7 -0
- package/handles/community-package.cjs +7 -0
- package/handles/community-package.d.cts +17 -0
- package/handles/community-package.d.ts +17 -0
- package/handles/community-package.js +7 -0
- package/handles/credential.cjs +7 -0
- package/handles/credential.d.cts +18 -0
- package/handles/credential.d.ts +18 -0
- package/handles/credential.js +7 -0
- package/handles/data-table.cjs +7 -0
- package/handles/data-table.d.cts +38 -0
- package/handles/data-table.d.ts +38 -0
- package/handles/data-table.js +7 -0
- package/handles/discover.cjs +7 -0
- package/handles/discover.d.cts +15 -0
- package/handles/discover.d.ts +15 -0
- package/handles/discover.js +7 -0
- package/handles/execution.cjs +7 -0
- package/handles/execution.d.cts +29 -0
- package/handles/execution.d.ts +29 -0
- package/handles/execution.js +7 -0
- package/handles/folder.cjs +7 -0
- package/handles/folder.d.cts +23 -0
- package/handles/folder.d.ts +23 -0
- package/handles/folder.js +7 -0
- package/handles/insights.cjs +7 -0
- package/handles/insights.d.cts +15 -0
- package/handles/insights.d.ts +15 -0
- package/handles/insights.js +7 -0
- package/handles/n8n-package.cjs +7 -0
- package/handles/n8n-package.d.cts +18 -0
- package/handles/n8n-package.d.ts +18 -0
- package/handles/n8n-package.js +7 -0
- package/handles/project.cjs +7 -0
- package/handles/project.d.cts +25 -0
- package/handles/project.d.ts +25 -0
- package/handles/project.js +7 -0
- package/handles/source-control.cjs +7 -0
- package/handles/source-control.d.cts +11 -0
- package/handles/source-control.d.ts +11 -0
- package/handles/source-control.js +7 -0
- package/handles/tag.cjs +7 -0
- package/handles/tag.d.cts +19 -0
- package/handles/tag.d.ts +19 -0
- package/handles/tag.js +7 -0
- package/handles/user.cjs +7 -0
- package/handles/user.d.cts +21 -0
- package/handles/user.d.ts +21 -0
- package/handles/user.js +7 -0
- package/handles/variable.cjs +7 -0
- package/handles/variable.d.cts +17 -0
- package/handles/variable.d.ts +17 -0
- package/handles/variable.js +7 -0
- package/handles/workflow.cjs +7 -0
- package/handles/workflow.d.cts +35 -0
- package/handles/workflow.d.ts +35 -0
- package/handles/workflow.js +7 -0
- package/http-client.cjs +10 -0
- package/http-client.d.cts +43 -0
- package/http-client.d.ts +43 -0
- package/http-client.js +10 -0
- package/index.cjs +127 -0
- package/index.d.cts +58 -0
- package/index.d.ts +58 -0
- package/index.js +127 -0
- package/package.json +42 -0
- package/pagination.cjs +1 -0
- package/pagination.d.cts +11 -0
- package/pagination.d.ts +11 -0
- package/pagination.js +1 -0
- package/types.cjs +1 -0
- package/types.d.cts +578 -0
- package/types.d.ts +578 -0
- package/types.js +1 -0
- package/utils/retry.cjs +7 -0
- package/utils/retry.d.cts +3 -0
- package/utils/retry.d.ts +3 -0
- 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,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,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,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,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,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,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,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 };
|
package/handles/tag.cjs
ADDED
|
@@ -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 };
|
package/handles/tag.d.ts
ADDED
|
@@ -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
package/handles/user.cjs
ADDED
|
@@ -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 };
|
package/handles/user.js
ADDED
|
@@ -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 };
|