@egose/n8n-client 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +188 -46
- package/chunk-2R6A6NJE.js +38 -0
- package/chunk-3FDDCKAY.js +95 -0
- package/chunk-3YWWR6UD.cjs +98 -0
- package/chunk-4M2HGY3F.cjs +12 -0
- package/chunk-4VK7K4IF.js +29 -0
- package/chunk-54MX3Y2M.cjs +15 -0
- package/{chunk-NMKH2J77.js → chunk-54N6YD4R.js} +28 -6
- package/{chunk-2H3GEKKO.js → chunk-5DDMSYH2.js} +25 -6
- package/chunk-5ZRUF6XZ.cjs +15 -0
- package/chunk-6JJ6RA5B.cjs +32 -0
- package/chunk-7H75UBMH.cjs +29 -0
- package/chunk-B7CINZ27.cjs +43 -0
- package/chunk-BA4KTRMX.cjs +15 -0
- package/{chunk-DO5OI6ZU.js → chunk-BQ2OTUXQ.js} +25 -6
- package/chunk-C3JBYESS.cjs +35 -0
- package/chunk-C6W6ERQD.js +53 -0
- package/{chunk-5WH4FOE2.cjs → chunk-CCS5ALTN.cjs} +5 -5
- package/chunk-DTDNBA7W.cjs +59 -0
- package/chunk-ETVDSJLY.js +48 -0
- package/chunk-F5RPJMNK.js +15 -0
- package/chunk-FIKGC2EL.cjs +29 -0
- package/{chunk-YONLN7XM.cjs → chunk-FTIVM52X.cjs} +24 -5
- package/chunk-GEWLPVNV.cjs +48 -0
- package/{chunk-75AXCCWF.cjs → chunk-GZ3POWDP.cjs} +27 -5
- package/chunk-HISH4ORK.js +59 -0
- package/chunk-I4MMTW33.js +98 -0
- package/chunk-KRPRS2E5.cjs +46 -0
- package/chunk-L2FFL3BY.js +35 -0
- package/chunk-LQULSPET.cjs +55 -0
- package/chunk-LTYQTCHM.js +196 -0
- package/chunk-MMN2UKTI.cjs +41 -0
- package/chunk-NBLW25ME.cjs +67 -0
- package/chunk-NS2RDZ7W.js +15 -0
- package/chunk-OUOWDGL7.js +15 -0
- package/chunk-PT5DDLHC.js +46 -0
- package/chunk-Q6FSREKN.js +12 -0
- package/chunk-QJR4WFNV.js +55 -0
- package/chunk-RPB226OX.cjs +54 -0
- package/chunk-S4ZASMBT.js +43 -0
- package/chunk-T62VHXNY.js +67 -0
- package/chunk-TLBDBRPJ.js +29 -0
- package/chunk-TY76RTXQ.cjs +32 -0
- package/chunk-USTEEQQG.js +43 -0
- package/chunk-W5P34RYO.cjs +196 -0
- package/chunk-XJP6FPN3.js +41 -0
- package/chunk-YBMEMKCN.cjs +53 -0
- package/chunk-YE2OS2KS.js +32 -0
- package/chunk-YHSDCE3I.js +32 -0
- package/chunk-YSWBOCXJ.cjs +38 -0
- package/chunk-YUCX7HE3.js +15 -0
- package/chunk-Z3D4URRD.cjs +43 -0
- package/chunk-ZIIR24GM.cjs +95 -0
- package/chunk-ZPU6PQES.cjs +15 -0
- package/{chunk-6L3JVMUK.js → chunk-ZVZIMJRM.js} +6 -6
- package/clients/audit.cjs +8 -0
- package/{handles → clients}/audit.d.cts +3 -3
- package/{handles → clients}/audit.d.ts +3 -3
- package/clients/audit.js +8 -0
- package/clients/base.cjs +7 -0
- package/{handles → clients}/base.d.cts +2 -2
- package/{handles → clients}/base.d.ts +2 -2
- package/clients/base.js +7 -0
- package/clients/community-package.cjs +12 -0
- package/clients/community-package.d.cts +6 -0
- package/clients/community-package.d.ts +6 -0
- package/clients/community-package.js +12 -0
- package/clients/credential.cjs +10 -0
- package/clients/credential.d.cts +6 -0
- package/clients/credential.d.ts +6 -0
- package/clients/credential.js +10 -0
- package/clients/data-table.cjs +10 -0
- package/clients/data-table.d.cts +6 -0
- package/clients/data-table.d.ts +6 -0
- package/clients/data-table.js +10 -0
- package/clients/discover.cjs +8 -0
- package/{handles → clients}/discover.d.cts +3 -3
- package/{handles → clients}/discover.d.ts +3 -3
- package/clients/discover.js +8 -0
- package/clients/execution.cjs +10 -0
- package/clients/execution.d.cts +6 -0
- package/clients/execution.d.ts +6 -0
- package/clients/execution.js +10 -0
- package/clients/folder.cjs +10 -0
- package/clients/folder.d.cts +6 -0
- package/clients/folder.d.ts +6 -0
- package/clients/folder.js +10 -0
- package/clients/insights.cjs +8 -0
- package/{handles → clients}/insights.d.cts +3 -3
- package/{handles → clients}/insights.d.ts +3 -3
- package/clients/insights.js +8 -0
- package/clients/n8n-package.cjs +8 -0
- package/{handles → clients}/n8n-package.d.cts +3 -3
- package/{handles → clients}/n8n-package.d.ts +3 -3
- package/clients/n8n-package.js +8 -0
- package/clients/project.cjs +22 -0
- package/clients/project.d.cts +11 -0
- package/clients/project.d.ts +11 -0
- package/clients/project.js +22 -0
- package/clients/source-control.cjs +8 -0
- package/{handles → clients}/source-control.d.cts +3 -3
- package/{handles → clients}/source-control.d.ts +3 -3
- package/clients/source-control.js +8 -0
- package/clients/tag.cjs +10 -0
- package/clients/tag.d.cts +6 -0
- package/clients/tag.d.ts +6 -0
- package/clients/tag.js +10 -0
- package/clients/user.cjs +10 -0
- package/clients/user.d.cts +6 -0
- package/clients/user.d.ts +6 -0
- package/clients/user.js +10 -0
- package/clients/variable.cjs +12 -0
- package/clients/variable.d.cts +6 -0
- package/clients/variable.d.ts +6 -0
- package/clients/variable.js +12 -0
- package/clients/workflow.cjs +14 -0
- package/clients/workflow.d.cts +7 -0
- package/clients/workflow.d.ts +7 -0
- package/clients/workflow.js +14 -0
- package/community-package-CyzAqqwH.d.ts +26 -0
- package/community-package-DBpReCPV.d.cts +26 -0
- package/credential-BWcrGfqd.d.ts +34 -0
- package/credential-CEH7XbGn.d.cts +34 -0
- package/data-table-CHGUClGF.d.ts +60 -0
- package/data-table-CzR5kl9T.d.cts +60 -0
- package/execution-BjR6z5Vu.d.ts +33 -0
- package/execution-C0c9utwa.d.cts +33 -0
- package/folder-DvgIxSea.d.cts +31 -0
- package/folder-bjRPcy2j.d.ts +31 -0
- package/index.cjs +85 -44
- package/index.d.cts +42 -31
- package/index.d.ts +42 -31
- package/index.js +98 -57
- package/package.json +1 -1
- package/project-BS1fXSLW.d.cts +94 -0
- package/project-uws9k24H.d.ts +94 -0
- package/resources/base.cjs +7 -0
- package/resources/base.d.cts +11 -0
- package/resources/base.d.ts +11 -0
- package/resources/base.js +7 -0
- package/resources/community-package.cjs +8 -0
- package/resources/community-package.d.cts +6 -0
- package/resources/community-package.d.ts +6 -0
- package/resources/community-package.js +8 -0
- package/resources/credential.cjs +8 -0
- package/resources/credential.d.cts +6 -0
- package/resources/credential.d.ts +6 -0
- package/resources/credential.js +8 -0
- package/resources/data-table.cjs +8 -0
- package/resources/data-table.d.cts +6 -0
- package/resources/data-table.d.ts +6 -0
- package/resources/data-table.js +8 -0
- package/resources/execution.cjs +8 -0
- package/resources/execution.d.cts +6 -0
- package/resources/execution.d.ts +6 -0
- package/resources/execution.js +8 -0
- package/resources/folder.cjs +8 -0
- package/resources/folder.d.cts +6 -0
- package/resources/folder.d.ts +6 -0
- package/resources/folder.js +8 -0
- package/resources/project.cjs +11 -0
- package/resources/project.d.cts +11 -0
- package/resources/project.d.ts +11 -0
- package/resources/project.js +11 -0
- package/resources/tag.cjs +8 -0
- package/resources/tag.d.cts +6 -0
- package/resources/tag.d.ts +6 -0
- package/resources/tag.js +8 -0
- package/resources/user.cjs +8 -0
- package/resources/user.d.cts +6 -0
- package/resources/user.d.ts +6 -0
- package/resources/user.js +8 -0
- package/resources/variable.cjs +8 -0
- package/resources/variable.d.cts +6 -0
- package/resources/variable.d.ts +6 -0
- package/resources/variable.js +8 -0
- package/resources/workflow.cjs +10 -0
- package/resources/workflow.d.cts +7 -0
- package/resources/workflow.d.ts +7 -0
- package/resources/workflow.js +10 -0
- package/tag-CzazpR40.d.cts +27 -0
- package/tag-lmf8obZe.d.ts +27 -0
- package/user-B0WdVahA.d.ts +27 -0
- package/user-CBa2VjYj.d.cts +27 -0
- package/variable-C2LmlaTx.d.ts +29 -0
- package/variable-CuCiwy0G.d.cts +29 -0
- package/workflow-8pMj_fR_.d.ts +56 -0
- package/workflow-B2nxUmWq.d.cts +56 -0
- package/chunk-2DSU5F3J.js +0 -37
- package/chunk-2JBRCS53.js +0 -27
- package/chunk-4QPHBRTA.js +0 -15
- package/chunk-ACVK7R2L.cjs +0 -12
- package/chunk-BI6R6RFB.js +0 -36
- package/chunk-CDYFI72K.js +0 -28
- package/chunk-FKHPF5R5.cjs +0 -37
- package/chunk-GYCE5P4Y.js +0 -24
- package/chunk-HDN3VTQ4.cjs +0 -15
- package/chunk-HYJ7KYNG.cjs +0 -35
- package/chunk-IDD662MQ.js +0 -15
- package/chunk-JUWY746V.cjs +0 -15
- package/chunk-JWSD43W3.js +0 -36
- package/chunk-L36NK3EC.cjs +0 -27
- package/chunk-LBBJ6MTN.cjs +0 -36
- package/chunk-OHQBXLTJ.js +0 -12
- package/chunk-ONBMQHLH.cjs +0 -28
- package/chunk-R3HQQ6JP.cjs +0 -15
- package/chunk-RXHHER7R.js +0 -24
- package/chunk-THVPKRZ6.js +0 -15
- package/chunk-UKWCRX4F.cjs +0 -36
- package/chunk-UPL3BYDO.js +0 -15
- package/chunk-UU6H6FNY.cjs +0 -15
- package/chunk-VS6V3PD6.cjs +0 -24
- package/chunk-XHPNV55G.cjs +0 -24
- package/handles/audit.cjs +0 -8
- package/handles/audit.js +0 -8
- package/handles/base.cjs +0 -7
- package/handles/base.js +0 -7
- package/handles/community-package.cjs +0 -8
- package/handles/community-package.d.cts +0 -13
- package/handles/community-package.d.ts +0 -13
- package/handles/community-package.js +0 -8
- package/handles/credential.cjs +0 -8
- package/handles/credential.d.cts +0 -17
- package/handles/credential.d.ts +0 -17
- package/handles/credential.js +0 -8
- package/handles/data-table.cjs +0 -8
- package/handles/data-table.d.cts +0 -30
- package/handles/data-table.d.ts +0 -30
- package/handles/data-table.js +0 -8
- package/handles/discover.cjs +0 -8
- package/handles/discover.js +0 -8
- package/handles/execution.cjs +0 -8
- package/handles/execution.d.cts +0 -17
- package/handles/execution.d.ts +0 -17
- package/handles/execution.js +0 -8
- package/handles/folder.cjs +0 -8
- package/handles/folder.d.cts +0 -16
- package/handles/folder.d.ts +0 -16
- package/handles/folder.js +0 -8
- package/handles/insights.cjs +0 -8
- package/handles/insights.js +0 -8
- package/handles/n8n-package.cjs +0 -8
- package/handles/n8n-package.js +0 -8
- package/handles/project.cjs +0 -8
- package/handles/project.d.cts +0 -17
- package/handles/project.d.ts +0 -17
- package/handles/project.js +0 -8
- package/handles/source-control.cjs +0 -8
- package/handles/source-control.js +0 -8
- package/handles/tag.cjs +0 -8
- package/handles/tag.d.cts +0 -14
- package/handles/tag.d.ts +0 -14
- package/handles/tag.js +0 -8
- package/handles/user.cjs +0 -8
- package/handles/user.d.cts +0 -14
- package/handles/user.d.ts +0 -14
- package/handles/user.js +0 -8
- package/handles/variable.cjs +0 -8
- package/handles/variable.d.cts +0 -13
- package/handles/variable.d.ts +0 -13
- package/handles/variable.js +0 -8
- package/handles/workflow.cjs +0 -8
- package/handles/workflow.d.cts +0 -22
- package/handles/workflow.d.ts +0 -22
- package/handles/workflow.js +0 -8
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { DataTable, UpdateDataTableRequest, DataTableRowListParams, DataTableRowListResponse, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsAllRequest, DataTableRow, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, DeleteRowsBooleanParams, DeleteRowsDataParams, DataTableColumn, CreateColumnRequest, UpdateColumnRequest, DataTableListParams, DataTableListResponse, CreateDataTableRequest } from './types.js';
|
|
3
|
+
import BaseClient from './clients/base.js';
|
|
4
|
+
import BaseResource from './resources/base.js';
|
|
5
|
+
|
|
6
|
+
declare class DataTableResource extends BaseResource<DataTable> {
|
|
7
|
+
private readonly dataTables;
|
|
8
|
+
constructor(dataTables: DataTableClient, dataTable: DataTable);
|
|
9
|
+
get id(): string;
|
|
10
|
+
get name(): string;
|
|
11
|
+
refresh(): Promise<this>;
|
|
12
|
+
update(data: UpdateDataTableRequest): Promise<this>;
|
|
13
|
+
delete(): Promise<void>;
|
|
14
|
+
listRows(params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
|
|
15
|
+
insertRows(data: InsertRowsCountRequest): Promise<{
|
|
16
|
+
count: number;
|
|
17
|
+
}>;
|
|
18
|
+
insertRows(data: InsertRowsIdsRequest): Promise<number[]>;
|
|
19
|
+
insertRows(data: InsertRowsAllRequest): Promise<DataTableRow[]>;
|
|
20
|
+
updateRows(data: UpdateRowsBooleanRequest): Promise<boolean>;
|
|
21
|
+
updateRows(data: UpdateRowsDataRequest): Promise<DataTableRow[]>;
|
|
22
|
+
upsertRow(data: UpsertRowBooleanRequest): Promise<boolean>;
|
|
23
|
+
upsertRow(data: UpsertRowDataRequest): Promise<DataTableRow>;
|
|
24
|
+
deleteRows(params: DeleteRowsBooleanParams): Promise<boolean>;
|
|
25
|
+
deleteRows(params: DeleteRowsDataParams): Promise<DataTableRow[]>;
|
|
26
|
+
listColumns(): Promise<DataTableColumn[]>;
|
|
27
|
+
createColumn(data: CreateColumnRequest): Promise<DataTableColumn>;
|
|
28
|
+
updateColumn(columnId: string, data: UpdateColumnRequest): Promise<DataTableColumn>;
|
|
29
|
+
deleteColumn(columnId: string): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class DataTableClient extends BaseClient {
|
|
33
|
+
list(params?: DataTableListParams): Promise<DataTableListResponse>;
|
|
34
|
+
get(id: string): Promise<DataTable>;
|
|
35
|
+
getResource(id: string): Promise<DataTableResource>;
|
|
36
|
+
listResources(params?: DataTableListParams): Promise<PaginatedResponse<DataTableResource>>;
|
|
37
|
+
create(data: CreateDataTableRequest): Promise<DataTable>;
|
|
38
|
+
createResource(data: CreateDataTableRequest): Promise<DataTableResource>;
|
|
39
|
+
update(id: string, data: UpdateDataTableRequest): Promise<DataTable>;
|
|
40
|
+
updateResource(id: string, data: UpdateDataTableRequest): Promise<DataTableResource>;
|
|
41
|
+
delete(id: string): Promise<void>;
|
|
42
|
+
listRows(dataTableId: string, params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
|
|
43
|
+
insertRows(dataTableId: string, data: InsertRowsCountRequest): Promise<{
|
|
44
|
+
count: number;
|
|
45
|
+
}>;
|
|
46
|
+
insertRows(dataTableId: string, data: InsertRowsIdsRequest): Promise<number[]>;
|
|
47
|
+
insertRows(dataTableId: string, data: InsertRowsAllRequest): Promise<DataTableRow[]>;
|
|
48
|
+
updateRows(dataTableId: string, data: UpdateRowsBooleanRequest): Promise<boolean>;
|
|
49
|
+
updateRows(dataTableId: string, data: UpdateRowsDataRequest): Promise<DataTableRow[]>;
|
|
50
|
+
upsertRow(dataTableId: string, data: UpsertRowBooleanRequest): Promise<boolean>;
|
|
51
|
+
upsertRow(dataTableId: string, data: UpsertRowDataRequest): Promise<DataTableRow>;
|
|
52
|
+
deleteRows(dataTableId: string, params: DeleteRowsBooleanParams): Promise<boolean>;
|
|
53
|
+
deleteRows(dataTableId: string, params: DeleteRowsDataParams): Promise<DataTableRow[]>;
|
|
54
|
+
listColumns(dataTableId: string): Promise<DataTableColumn[]>;
|
|
55
|
+
createColumn(dataTableId: string, data: CreateColumnRequest): Promise<DataTableColumn>;
|
|
56
|
+
deleteColumn(dataTableId: string, columnId: string): Promise<void>;
|
|
57
|
+
updateColumn(dataTableId: string, columnId: string, data: UpdateColumnRequest): Promise<DataTableColumn>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { DataTableClient as D, DataTableResource as a };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { DataTable, UpdateDataTableRequest, DataTableRowListParams, DataTableRowListResponse, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsAllRequest, DataTableRow, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, DeleteRowsBooleanParams, DeleteRowsDataParams, DataTableColumn, CreateColumnRequest, UpdateColumnRequest, DataTableListParams, DataTableListResponse, CreateDataTableRequest } from './types.cjs';
|
|
3
|
+
import BaseClient from './clients/base.cjs';
|
|
4
|
+
import BaseResource from './resources/base.cjs';
|
|
5
|
+
|
|
6
|
+
declare class DataTableResource extends BaseResource<DataTable> {
|
|
7
|
+
private readonly dataTables;
|
|
8
|
+
constructor(dataTables: DataTableClient, dataTable: DataTable);
|
|
9
|
+
get id(): string;
|
|
10
|
+
get name(): string;
|
|
11
|
+
refresh(): Promise<this>;
|
|
12
|
+
update(data: UpdateDataTableRequest): Promise<this>;
|
|
13
|
+
delete(): Promise<void>;
|
|
14
|
+
listRows(params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
|
|
15
|
+
insertRows(data: InsertRowsCountRequest): Promise<{
|
|
16
|
+
count: number;
|
|
17
|
+
}>;
|
|
18
|
+
insertRows(data: InsertRowsIdsRequest): Promise<number[]>;
|
|
19
|
+
insertRows(data: InsertRowsAllRequest): Promise<DataTableRow[]>;
|
|
20
|
+
updateRows(data: UpdateRowsBooleanRequest): Promise<boolean>;
|
|
21
|
+
updateRows(data: UpdateRowsDataRequest): Promise<DataTableRow[]>;
|
|
22
|
+
upsertRow(data: UpsertRowBooleanRequest): Promise<boolean>;
|
|
23
|
+
upsertRow(data: UpsertRowDataRequest): Promise<DataTableRow>;
|
|
24
|
+
deleteRows(params: DeleteRowsBooleanParams): Promise<boolean>;
|
|
25
|
+
deleteRows(params: DeleteRowsDataParams): Promise<DataTableRow[]>;
|
|
26
|
+
listColumns(): Promise<DataTableColumn[]>;
|
|
27
|
+
createColumn(data: CreateColumnRequest): Promise<DataTableColumn>;
|
|
28
|
+
updateColumn(columnId: string, data: UpdateColumnRequest): Promise<DataTableColumn>;
|
|
29
|
+
deleteColumn(columnId: string): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class DataTableClient extends BaseClient {
|
|
33
|
+
list(params?: DataTableListParams): Promise<DataTableListResponse>;
|
|
34
|
+
get(id: string): Promise<DataTable>;
|
|
35
|
+
getResource(id: string): Promise<DataTableResource>;
|
|
36
|
+
listResources(params?: DataTableListParams): Promise<PaginatedResponse<DataTableResource>>;
|
|
37
|
+
create(data: CreateDataTableRequest): Promise<DataTable>;
|
|
38
|
+
createResource(data: CreateDataTableRequest): Promise<DataTableResource>;
|
|
39
|
+
update(id: string, data: UpdateDataTableRequest): Promise<DataTable>;
|
|
40
|
+
updateResource(id: string, data: UpdateDataTableRequest): Promise<DataTableResource>;
|
|
41
|
+
delete(id: string): Promise<void>;
|
|
42
|
+
listRows(dataTableId: string, params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
|
|
43
|
+
insertRows(dataTableId: string, data: InsertRowsCountRequest): Promise<{
|
|
44
|
+
count: number;
|
|
45
|
+
}>;
|
|
46
|
+
insertRows(dataTableId: string, data: InsertRowsIdsRequest): Promise<number[]>;
|
|
47
|
+
insertRows(dataTableId: string, data: InsertRowsAllRequest): Promise<DataTableRow[]>;
|
|
48
|
+
updateRows(dataTableId: string, data: UpdateRowsBooleanRequest): Promise<boolean>;
|
|
49
|
+
updateRows(dataTableId: string, data: UpdateRowsDataRequest): Promise<DataTableRow[]>;
|
|
50
|
+
upsertRow(dataTableId: string, data: UpsertRowBooleanRequest): Promise<boolean>;
|
|
51
|
+
upsertRow(dataTableId: string, data: UpsertRowDataRequest): Promise<DataTableRow>;
|
|
52
|
+
deleteRows(dataTableId: string, params: DeleteRowsBooleanParams): Promise<boolean>;
|
|
53
|
+
deleteRows(dataTableId: string, params: DeleteRowsDataParams): Promise<DataTableRow[]>;
|
|
54
|
+
listColumns(dataTableId: string): Promise<DataTableColumn[]>;
|
|
55
|
+
createColumn(dataTableId: string, data: CreateColumnRequest): Promise<DataTableColumn>;
|
|
56
|
+
deleteColumn(dataTableId: string, columnId: string): Promise<void>;
|
|
57
|
+
updateColumn(dataTableId: string, columnId: string, data: UpdateColumnRequest): Promise<DataTableColumn>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { DataTableClient as D, DataTableResource as a };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { Execution, ExecutionGetParams, ExecutionRetryRequest, Tag, TagId, ExecutionListParams, ExecutionListResponse, StopManyExecutionsRequest, StopManyExecutionsResponse } from './types.js';
|
|
3
|
+
import BaseClient from './clients/base.js';
|
|
4
|
+
import BaseResource from './resources/base.js';
|
|
5
|
+
|
|
6
|
+
declare class ExecutionResource extends BaseResource<Execution> {
|
|
7
|
+
private readonly executions;
|
|
8
|
+
private readonly params?;
|
|
9
|
+
constructor(executions: ExecutionClient, execution: Execution, params?: ExecutionGetParams | undefined);
|
|
10
|
+
get id(): number;
|
|
11
|
+
get status(): Execution['status'];
|
|
12
|
+
refresh(): Promise<this>;
|
|
13
|
+
delete(): Promise<Execution>;
|
|
14
|
+
retry(data?: ExecutionRetryRequest): Promise<this>;
|
|
15
|
+
stop(): Promise<this>;
|
|
16
|
+
getTags(): Promise<Tag[]>;
|
|
17
|
+
updateTags(tags: TagId[]): Promise<Tag[]>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class ExecutionClient extends BaseClient {
|
|
21
|
+
list(params?: ExecutionListParams): Promise<ExecutionListResponse>;
|
|
22
|
+
get(id: number, params?: ExecutionGetParams): Promise<Execution>;
|
|
23
|
+
getResource(id: number, params?: ExecutionGetParams): Promise<ExecutionResource>;
|
|
24
|
+
listResources(params?: ExecutionListParams): Promise<PaginatedResponse<ExecutionResource>>;
|
|
25
|
+
delete(id: number): Promise<Execution>;
|
|
26
|
+
retry(id: number, data?: ExecutionRetryRequest): Promise<Execution>;
|
|
27
|
+
stop(id: number): Promise<Execution>;
|
|
28
|
+
stopMany(data: StopManyExecutionsRequest): Promise<StopManyExecutionsResponse>;
|
|
29
|
+
getTags(id: number): Promise<Tag[]>;
|
|
30
|
+
updateTags(id: number, tags: TagId[]): Promise<Tag[]>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ExecutionClient as E, ExecutionResource as a };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { Execution, ExecutionGetParams, ExecutionRetryRequest, Tag, TagId, ExecutionListParams, ExecutionListResponse, StopManyExecutionsRequest, StopManyExecutionsResponse } from './types.cjs';
|
|
3
|
+
import BaseClient from './clients/base.cjs';
|
|
4
|
+
import BaseResource from './resources/base.cjs';
|
|
5
|
+
|
|
6
|
+
declare class ExecutionResource extends BaseResource<Execution> {
|
|
7
|
+
private readonly executions;
|
|
8
|
+
private readonly params?;
|
|
9
|
+
constructor(executions: ExecutionClient, execution: Execution, params?: ExecutionGetParams | undefined);
|
|
10
|
+
get id(): number;
|
|
11
|
+
get status(): Execution['status'];
|
|
12
|
+
refresh(): Promise<this>;
|
|
13
|
+
delete(): Promise<Execution>;
|
|
14
|
+
retry(data?: ExecutionRetryRequest): Promise<this>;
|
|
15
|
+
stop(): Promise<this>;
|
|
16
|
+
getTags(): Promise<Tag[]>;
|
|
17
|
+
updateTags(tags: TagId[]): Promise<Tag[]>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class ExecutionClient extends BaseClient {
|
|
21
|
+
list(params?: ExecutionListParams): Promise<ExecutionListResponse>;
|
|
22
|
+
get(id: number, params?: ExecutionGetParams): Promise<Execution>;
|
|
23
|
+
getResource(id: number, params?: ExecutionGetParams): Promise<ExecutionResource>;
|
|
24
|
+
listResources(params?: ExecutionListParams): Promise<PaginatedResponse<ExecutionResource>>;
|
|
25
|
+
delete(id: number): Promise<Execution>;
|
|
26
|
+
retry(id: number, data?: ExecutionRetryRequest): Promise<Execution>;
|
|
27
|
+
stop(id: number): Promise<Execution>;
|
|
28
|
+
stopMany(data: StopManyExecutionsRequest): Promise<StopManyExecutionsResponse>;
|
|
29
|
+
getTags(id: number): Promise<Tag[]>;
|
|
30
|
+
updateTags(id: number, tags: TagId[]): Promise<Tag[]>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ExecutionClient as E, ExecutionResource as a };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { HttpClient } from './http-client.cjs';
|
|
3
|
+
import { Folder, FolderDetail, FolderUpdate, FolderListParams, FolderListResponse, FolderCreate } from './types.cjs';
|
|
4
|
+
import BaseClient from './clients/base.cjs';
|
|
5
|
+
import BaseResource from './resources/base.cjs';
|
|
6
|
+
|
|
7
|
+
declare class FolderResource extends BaseResource<Folder | FolderDetail> {
|
|
8
|
+
private readonly folders;
|
|
9
|
+
constructor(folders: FolderClient, folder: Folder | FolderDetail);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get name(): string;
|
|
12
|
+
get parentFolderId(): string | undefined;
|
|
13
|
+
update(data: FolderUpdate): Promise<this>;
|
|
14
|
+
delete(transferToFolderId?: string): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class FolderClient extends BaseClient {
|
|
18
|
+
private readonly projectId;
|
|
19
|
+
constructor(http: HttpClient, projectId: string);
|
|
20
|
+
list(params?: FolderListParams): Promise<FolderListResponse>;
|
|
21
|
+
get(folderId: string): Promise<FolderDetail>;
|
|
22
|
+
getResource(folderId: string): Promise<FolderResource>;
|
|
23
|
+
listResources(params?: FolderListParams): Promise<PaginatedResponse<FolderResource>>;
|
|
24
|
+
create(data: FolderCreate): Promise<Folder>;
|
|
25
|
+
createResource(data: FolderCreate): Promise<FolderResource>;
|
|
26
|
+
update(folderId: string, data: FolderUpdate): Promise<Folder>;
|
|
27
|
+
updateResource(folderId: string, data: FolderUpdate): Promise<FolderResource>;
|
|
28
|
+
delete(folderId: string, transferToFolderId?: string): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { FolderClient as F, FolderResource as a };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { HttpClient } from './http-client.js';
|
|
3
|
+
import { Folder, FolderDetail, FolderUpdate, FolderListParams, FolderListResponse, FolderCreate } from './types.js';
|
|
4
|
+
import BaseClient from './clients/base.js';
|
|
5
|
+
import BaseResource from './resources/base.js';
|
|
6
|
+
|
|
7
|
+
declare class FolderResource extends BaseResource<Folder | FolderDetail> {
|
|
8
|
+
private readonly folders;
|
|
9
|
+
constructor(folders: FolderClient, folder: Folder | FolderDetail);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get name(): string;
|
|
12
|
+
get parentFolderId(): string | undefined;
|
|
13
|
+
update(data: FolderUpdate): Promise<this>;
|
|
14
|
+
delete(transferToFolderId?: string): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class FolderClient extends BaseClient {
|
|
18
|
+
private readonly projectId;
|
|
19
|
+
constructor(http: HttpClient, projectId: string);
|
|
20
|
+
list(params?: FolderListParams): Promise<FolderListResponse>;
|
|
21
|
+
get(folderId: string): Promise<FolderDetail>;
|
|
22
|
+
getResource(folderId: string): Promise<FolderResource>;
|
|
23
|
+
listResources(params?: FolderListParams): Promise<PaginatedResponse<FolderResource>>;
|
|
24
|
+
create(data: FolderCreate): Promise<Folder>;
|
|
25
|
+
createResource(data: FolderCreate): Promise<FolderResource>;
|
|
26
|
+
update(folderId: string, data: FolderUpdate): Promise<Folder>;
|
|
27
|
+
updateResource(folderId: string, data: FolderUpdate): Promise<FolderResource>;
|
|
28
|
+
delete(folderId: string, transferToFolderId?: string): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { FolderClient as F, FolderResource as a };
|
package/index.cjs
CHANGED
|
@@ -1,54 +1,85 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKRPRS2E5cjs = require('./chunk-KRPRS2E5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7H75UBMHcjs = require('./chunk-7H75UBMH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkB7CINZ27cjs = require('./chunk-B7CINZ27.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkC3JBYESScjs = require('./chunk-C3JBYESS.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkBA4KTRMXcjs = require('./chunk-BA4KTRMX.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk54MX3Y2Mcjs = require('./chunk-54MX3Y2M.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkCCS5ALTNcjs = require('./chunk-CCS5ALTN.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkZIIR24GMcjs = require('./chunk-ZIIR24GM.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkW5P34RYOcjs = require('./chunk-W5P34RYO.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkDTDNBA7Wcjs = require('./chunk-DTDNBA7W.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkYSWBOCXJcjs = require('./chunk-YSWBOCXJ.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkGZ3POWDPcjs = require('./chunk-GZ3POWDP.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
var _chunk3YWWR6UDcjs = require('./chunk-3YWWR6UD.cjs');
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
require('./chunk-
|
|
41
|
+
|
|
42
|
+
var _chunkFTIVM52Xcjs = require('./chunk-FTIVM52X.cjs');
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var _chunkNBLW25MEcjs = require('./chunk-NBLW25ME.cjs');
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
var _chunkYBMEMKCNcjs = require('./chunk-YBMEMKCN.cjs');
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
var _chunkZ3D4URRDcjs = require('./chunk-Z3D4URRD.cjs');
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
var _chunkRPB226OXcjs = require('./chunk-RPB226OX.cjs');
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
var _chunk6JJ6RA5Bcjs = require('./chunk-6JJ6RA5B.cjs');
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var _chunkZPU6PQEScjs = require('./chunk-ZPU6PQES.cjs');
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
var _chunk5ZRUF6XZcjs = require('./chunk-5ZRUF6XZ.cjs');
|
|
42
64
|
|
|
43
65
|
|
|
44
|
-
var
|
|
66
|
+
var _chunkGEWLPVNVcjs = require('./chunk-GEWLPVNV.cjs');
|
|
45
67
|
|
|
46
68
|
|
|
47
|
-
var
|
|
69
|
+
var _chunkTY76RTXQcjs = require('./chunk-TY76RTXQ.cjs');
|
|
48
70
|
|
|
49
71
|
|
|
50
|
-
|
|
51
|
-
require('./chunk-
|
|
72
|
+
|
|
73
|
+
var _chunkLC3TKRMXcjs = require('./chunk-LC3TKRMX.cjs');
|
|
74
|
+
require('./chunk-7B5DLJYY.cjs');
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
var _chunkLQULSPETcjs = require('./chunk-LQULSPET.cjs');
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var _chunkMMN2UKTIcjs = require('./chunk-MMN2UKTI.cjs');
|
|
81
|
+
require('./chunk-FIKGC2EL.cjs');
|
|
82
|
+
require('./chunk-4M2HGY3F.cjs');
|
|
52
83
|
|
|
53
84
|
// src/index.ts
|
|
54
85
|
var N8nClient = class {
|
|
@@ -74,55 +105,65 @@ var N8nClient = class {
|
|
|
74
105
|
delete(path, query, headers) {
|
|
75
106
|
return this.#http.delete(path, query, headers);
|
|
76
107
|
}
|
|
77
|
-
|
|
78
|
-
return new (0,
|
|
108
|
+
workflows() {
|
|
109
|
+
return new (0, _chunkGZ3POWDPcjs.WorkflowClient)(this.#http);
|
|
79
110
|
}
|
|
80
|
-
|
|
81
|
-
return new (0,
|
|
111
|
+
executions() {
|
|
112
|
+
return new (0, _chunkYBMEMKCNcjs.ExecutionClient)(this.#http);
|
|
82
113
|
}
|
|
83
|
-
|
|
84
|
-
return new (0,
|
|
114
|
+
credentials() {
|
|
115
|
+
return new (0, _chunkLQULSPETcjs.CredentialClient)(this.#http);
|
|
85
116
|
}
|
|
86
|
-
|
|
87
|
-
return new (0,
|
|
117
|
+
tags() {
|
|
118
|
+
return new (0, _chunkKRPRS2E5cjs.TagClient)(this.#http);
|
|
88
119
|
}
|
|
89
|
-
|
|
90
|
-
return new (0,
|
|
120
|
+
users() {
|
|
121
|
+
return new (0, _chunkB7CINZ27cjs.UserClient)(this.#http);
|
|
91
122
|
}
|
|
92
|
-
|
|
93
|
-
return new (0,
|
|
123
|
+
variables() {
|
|
124
|
+
return new (0, _chunkDTDNBA7Wcjs.VariableClient)(this.#http);
|
|
94
125
|
}
|
|
95
|
-
|
|
96
|
-
return new (0,
|
|
126
|
+
projects() {
|
|
127
|
+
return new (0, _chunkZIIR24GMcjs.ProjectClient)(this.#http);
|
|
97
128
|
}
|
|
98
|
-
|
|
99
|
-
return new (0,
|
|
129
|
+
dataTables() {
|
|
130
|
+
return new (0, _chunkFTIVM52Xcjs.DataTableClient)(this.#http);
|
|
100
131
|
}
|
|
101
|
-
|
|
102
|
-
return new (0,
|
|
132
|
+
folders(projectId) {
|
|
133
|
+
return new (0, _chunkRPB226OXcjs.FolderClient)(this.#http, projectId);
|
|
103
134
|
}
|
|
104
|
-
|
|
105
|
-
return new (0,
|
|
135
|
+
communityPackages() {
|
|
136
|
+
return new (0, _chunkGEWLPVNVcjs.CommunityPackageClient)(this.#http);
|
|
106
137
|
}
|
|
107
138
|
audit() {
|
|
108
|
-
return new (0,
|
|
139
|
+
return new (0, _chunk5ZRUF6XZcjs.AuditClient)(this.#http);
|
|
109
140
|
}
|
|
110
141
|
insights() {
|
|
111
|
-
return new (0,
|
|
142
|
+
return new (0, _chunk54MX3Y2Mcjs.InsightsClient)(this.#http);
|
|
112
143
|
}
|
|
113
144
|
sourceControl() {
|
|
114
|
-
return new (0,
|
|
145
|
+
return new (0, _chunkZPU6PQEScjs.SourceControlClient)(this.#http);
|
|
115
146
|
}
|
|
116
147
|
discover() {
|
|
117
|
-
return new (0,
|
|
148
|
+
return new (0, _chunkBA4KTRMXcjs.DiscoverClient)(this.#http);
|
|
118
149
|
}
|
|
119
150
|
n8nPackage() {
|
|
120
|
-
return new (0,
|
|
151
|
+
return new (0, _chunkCCS5ALTNcjs.N8nPackageClient)(this.#http);
|
|
121
152
|
}
|
|
122
153
|
};
|
|
123
154
|
|
|
124
155
|
|
|
125
156
|
|
|
126
157
|
|
|
127
|
-
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
exports.CommunityPackageResource = _chunkTY76RTXQcjs.CommunityPackageResource; exports.CredentialResource = _chunkMMN2UKTIcjs.CredentialResource; exports.DataTableResource = _chunkNBLW25MEcjs.DataTableResource; exports.ExecutionResource = _chunkZ3D4URRDcjs.ExecutionResource; exports.FolderResource = _chunk6JJ6RA5Bcjs.FolderResource; exports.HttpClient = _chunkLC3TKRMXcjs.HttpClient; exports.HttpError = _chunkLC3TKRMXcjs.HttpError; exports.ProjectResource = _chunkW5P34RYOcjs.ProjectResource; exports.TagResource = _chunk7H75UBMHcjs.TagResource; exports.UserResource = _chunkC3JBYESScjs.UserResource; exports.VariableResource = _chunkYSWBOCXJcjs.VariableResource; exports.WorkflowResource = _chunk3YWWR6UDcjs.WorkflowResource; exports.default = N8nClient;
|
|
128
169
|
//# sourceMappingURL=index.cjs.map
|
package/index.d.cts
CHANGED
|
@@ -2,23 +2,34 @@ import { RequestOptions } from './http-client.cjs';
|
|
|
2
2
|
export { HttpClient, HttpError } from './http-client.cjs';
|
|
3
3
|
import { N8nClientConfig } from './types.cjs';
|
|
4
4
|
export { ActiveVersion, Audit, AuditAdditionalOptions, AuditCommunityLocation, AuditCredentialLocation, AuditNodeLocation, AuditRequest, AuditRisk, AuditRiskLocation, AuditRiskReport, AuditRiskSection, CommunityPackage, CommunityPackageNode, CreateColumnRequest, CreateDataTableRequest, Credential, CredentialCreate, CredentialListItem, CredentialListResponse, CredentialResponse, CredentialSharedItem, CredentialTestResponse, CredentialUpdate, DataTable, DataTableColumn, DataTableFilter, DataTableListParams, DataTableListResponse, DataTableRow, DataTableRowListParams, DataTableRowListResponse, DeleteRowsBooleanParams, DeleteRowsDataParams, DeleteRowsParams, DiscoverEndpoint, DiscoverFilter, DiscoverParams, DiscoverResource, DiscoverResponse, Execution, ExecutionGetParams, ExecutionListParams, ExecutionListResponse, ExecutionMode, ExecutionRetryRequest, ExecutionStatus, ExportWorkflowsRequest, Folder, FolderCreate, FolderDetail, FolderListParams, FolderListResponse, FolderUpdate, ImportPackageBindings, ImportPackageConflictError, ImportPackageOptions, ImportPackageResponse, ImportPackageUnprocessableError, ImportPackageWorkflow, InsertRowsAllRequest, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsRequest, InsightsMetric, InsightsSummary, InsightsSummaryParams, InstallCommunityPackageRequest, JsonArray, JsonObject, JsonPrimitive, JsonValue, N8nApiError, Project, ProjectListResponse, ProjectMember, ProjectMemberListResponse, ProjectMemberRelation, ProjectMemberRoleChangeRequest, ProjectMutation, PullRequest, SharedWorkflow, SharedWorkflowProject, SourceControlledFile, SourceControlledOwner, StopManyExecutionsRequest, StopManyExecutionsResponse, Tag, TagId, TagListResponse, TagMutation, UpdateColumnRequest, UpdateCommunityPackageRequest, UpdateDataTableRequest, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpdateRowsRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, UpsertRowRequest, User, UserCreate, UserCreateResponse, UserGetParams, UserListParams, UserListResponse, UserRoleChangeRequest, Variable, VariableCreate, VariableListParams, VariableListResponse, Workflow, WorkflowActivateRequest, WorkflowConnection, WorkflowConnectionBranch, WorkflowConnectionTypeMap, WorkflowConnections, WorkflowCreate, WorkflowGetParams, WorkflowListParams, WorkflowListResponse, WorkflowMeta, WorkflowNode, WorkflowNodeTelemetryTags, WorkflowPinData, WorkflowSettings, WorkflowTelemetryTag, WorkflowUpdate, WorkflowVersion } from './types.cjs';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
import
|
|
5
|
+
import { W as WorkflowClient } from './workflow-B2nxUmWq.cjs';
|
|
6
|
+
export { a as WorkflowExecutionResourceCollection, b as WorkflowResource } from './workflow-B2nxUmWq.cjs';
|
|
7
|
+
import { E as ExecutionClient } from './execution-C0c9utwa.cjs';
|
|
8
|
+
export { a as ExecutionResource } from './execution-C0c9utwa.cjs';
|
|
9
|
+
import { C as CredentialClient } from './credential-CEH7XbGn.cjs';
|
|
10
|
+
export { a as CredentialResource } from './credential-CEH7XbGn.cjs';
|
|
11
|
+
import { T as TagClient } from './tag-CzazpR40.cjs';
|
|
12
|
+
export { a as TagResource } from './tag-CzazpR40.cjs';
|
|
13
|
+
import { U as UserClient } from './user-CBa2VjYj.cjs';
|
|
14
|
+
export { a as UserResource } from './user-CBa2VjYj.cjs';
|
|
15
|
+
import { V as VariableClient } from './variable-CuCiwy0G.cjs';
|
|
16
|
+
export { a as VariableResource } from './variable-CuCiwy0G.cjs';
|
|
17
|
+
import { P as ProjectClient } from './project-BS1fXSLW.cjs';
|
|
18
|
+
export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, d as ProjectResource, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection } from './project-BS1fXSLW.cjs';
|
|
19
|
+
import { D as DataTableClient } from './data-table-CzR5kl9T.cjs';
|
|
20
|
+
export { a as DataTableResource } from './data-table-CzR5kl9T.cjs';
|
|
21
|
+
import { F as FolderClient } from './folder-DvgIxSea.cjs';
|
|
22
|
+
export { a as FolderResource } from './folder-DvgIxSea.cjs';
|
|
23
|
+
import { C as CommunityPackageClient } from './community-package-DBpReCPV.cjs';
|
|
24
|
+
export { a as CommunityPackageResource } from './community-package-DBpReCPV.cjs';
|
|
25
|
+
import AuditClient from './clients/audit.cjs';
|
|
26
|
+
import InsightsClient from './clients/insights.cjs';
|
|
27
|
+
import SourceControlClient from './clients/source-control.cjs';
|
|
28
|
+
import DiscoverClient from './clients/discover.cjs';
|
|
29
|
+
import N8nPackageClient from './clients/n8n-package.cjs';
|
|
20
30
|
export { PaginatedResponse, PaginationParams } from './pagination.cjs';
|
|
21
|
-
import './
|
|
31
|
+
import './clients/base.cjs';
|
|
32
|
+
import './resources/base.cjs';
|
|
22
33
|
|
|
23
34
|
declare class N8nClient {
|
|
24
35
|
#private;
|
|
@@ -29,21 +40,21 @@ declare class N8nClient {
|
|
|
29
40
|
put<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
30
41
|
patch<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
31
42
|
delete<T>(path: string, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
audit():
|
|
43
|
-
insights():
|
|
44
|
-
sourceControl():
|
|
45
|
-
discover():
|
|
46
|
-
n8nPackage():
|
|
43
|
+
workflows(): WorkflowClient;
|
|
44
|
+
executions(): ExecutionClient;
|
|
45
|
+
credentials(): CredentialClient;
|
|
46
|
+
tags(): TagClient;
|
|
47
|
+
users(): UserClient;
|
|
48
|
+
variables(): VariableClient;
|
|
49
|
+
projects(): ProjectClient;
|
|
50
|
+
dataTables(): DataTableClient;
|
|
51
|
+
folders(projectId: string): FolderClient;
|
|
52
|
+
communityPackages(): CommunityPackageClient;
|
|
53
|
+
audit(): AuditClient;
|
|
54
|
+
insights(): InsightsClient;
|
|
55
|
+
sourceControl(): SourceControlClient;
|
|
56
|
+
discover(): DiscoverClient;
|
|
57
|
+
n8nPackage(): N8nPackageClient;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
export { N8nClientConfig, RequestOptions, N8nClient as default };
|
package/index.d.ts
CHANGED
|
@@ -2,23 +2,34 @@ import { RequestOptions } from './http-client.js';
|
|
|
2
2
|
export { HttpClient, HttpError } from './http-client.js';
|
|
3
3
|
import { N8nClientConfig } from './types.js';
|
|
4
4
|
export { ActiveVersion, Audit, AuditAdditionalOptions, AuditCommunityLocation, AuditCredentialLocation, AuditNodeLocation, AuditRequest, AuditRisk, AuditRiskLocation, AuditRiskReport, AuditRiskSection, CommunityPackage, CommunityPackageNode, CreateColumnRequest, CreateDataTableRequest, Credential, CredentialCreate, CredentialListItem, CredentialListResponse, CredentialResponse, CredentialSharedItem, CredentialTestResponse, CredentialUpdate, DataTable, DataTableColumn, DataTableFilter, DataTableListParams, DataTableListResponse, DataTableRow, DataTableRowListParams, DataTableRowListResponse, DeleteRowsBooleanParams, DeleteRowsDataParams, DeleteRowsParams, DiscoverEndpoint, DiscoverFilter, DiscoverParams, DiscoverResource, DiscoverResponse, Execution, ExecutionGetParams, ExecutionListParams, ExecutionListResponse, ExecutionMode, ExecutionRetryRequest, ExecutionStatus, ExportWorkflowsRequest, Folder, FolderCreate, FolderDetail, FolderListParams, FolderListResponse, FolderUpdate, ImportPackageBindings, ImportPackageConflictError, ImportPackageOptions, ImportPackageResponse, ImportPackageUnprocessableError, ImportPackageWorkflow, InsertRowsAllRequest, InsertRowsCountRequest, InsertRowsIdsRequest, InsertRowsRequest, InsightsMetric, InsightsSummary, InsightsSummaryParams, InstallCommunityPackageRequest, JsonArray, JsonObject, JsonPrimitive, JsonValue, N8nApiError, Project, ProjectListResponse, ProjectMember, ProjectMemberListResponse, ProjectMemberRelation, ProjectMemberRoleChangeRequest, ProjectMutation, PullRequest, SharedWorkflow, SharedWorkflowProject, SourceControlledFile, SourceControlledOwner, StopManyExecutionsRequest, StopManyExecutionsResponse, Tag, TagId, TagListResponse, TagMutation, UpdateColumnRequest, UpdateCommunityPackageRequest, UpdateDataTableRequest, UpdateRowsBooleanRequest, UpdateRowsDataRequest, UpdateRowsRequest, UpsertRowBooleanRequest, UpsertRowDataRequest, UpsertRowRequest, User, UserCreate, UserCreateResponse, UserGetParams, UserListParams, UserListResponse, UserRoleChangeRequest, Variable, VariableCreate, VariableListParams, VariableListResponse, Workflow, WorkflowActivateRequest, WorkflowConnection, WorkflowConnectionBranch, WorkflowConnectionTypeMap, WorkflowConnections, WorkflowCreate, WorkflowGetParams, WorkflowListParams, WorkflowListResponse, WorkflowMeta, WorkflowNode, WorkflowNodeTelemetryTags, WorkflowPinData, WorkflowSettings, WorkflowTelemetryTag, WorkflowUpdate, WorkflowVersion } from './types.js';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
import
|
|
5
|
+
import { W as WorkflowClient } from './workflow-8pMj_fR_.js';
|
|
6
|
+
export { a as WorkflowExecutionResourceCollection, b as WorkflowResource } from './workflow-8pMj_fR_.js';
|
|
7
|
+
import { E as ExecutionClient } from './execution-BjR6z5Vu.js';
|
|
8
|
+
export { a as ExecutionResource } from './execution-BjR6z5Vu.js';
|
|
9
|
+
import { C as CredentialClient } from './credential-BWcrGfqd.js';
|
|
10
|
+
export { a as CredentialResource } from './credential-BWcrGfqd.js';
|
|
11
|
+
import { T as TagClient } from './tag-lmf8obZe.js';
|
|
12
|
+
export { a as TagResource } from './tag-lmf8obZe.js';
|
|
13
|
+
import { U as UserClient } from './user-B0WdVahA.js';
|
|
14
|
+
export { a as UserResource } from './user-B0WdVahA.js';
|
|
15
|
+
import { V as VariableClient } from './variable-C2LmlaTx.js';
|
|
16
|
+
export { a as VariableResource } from './variable-C2LmlaTx.js';
|
|
17
|
+
import { P as ProjectClient } from './project-uws9k24H.js';
|
|
18
|
+
export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, d as ProjectResource, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection } from './project-uws9k24H.js';
|
|
19
|
+
import { D as DataTableClient } from './data-table-CHGUClGF.js';
|
|
20
|
+
export { a as DataTableResource } from './data-table-CHGUClGF.js';
|
|
21
|
+
import { F as FolderClient } from './folder-bjRPcy2j.js';
|
|
22
|
+
export { a as FolderResource } from './folder-bjRPcy2j.js';
|
|
23
|
+
import { C as CommunityPackageClient } from './community-package-CyzAqqwH.js';
|
|
24
|
+
export { a as CommunityPackageResource } from './community-package-CyzAqqwH.js';
|
|
25
|
+
import AuditClient from './clients/audit.js';
|
|
26
|
+
import InsightsClient from './clients/insights.js';
|
|
27
|
+
import SourceControlClient from './clients/source-control.js';
|
|
28
|
+
import DiscoverClient from './clients/discover.js';
|
|
29
|
+
import N8nPackageClient from './clients/n8n-package.js';
|
|
20
30
|
export { PaginatedResponse, PaginationParams } from './pagination.js';
|
|
21
|
-
import './
|
|
31
|
+
import './clients/base.js';
|
|
32
|
+
import './resources/base.js';
|
|
22
33
|
|
|
23
34
|
declare class N8nClient {
|
|
24
35
|
#private;
|
|
@@ -29,21 +40,21 @@ declare class N8nClient {
|
|
|
29
40
|
put<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
30
41
|
patch<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
31
42
|
delete<T>(path: string, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
audit():
|
|
43
|
-
insights():
|
|
44
|
-
sourceControl():
|
|
45
|
-
discover():
|
|
46
|
-
n8nPackage():
|
|
43
|
+
workflows(): WorkflowClient;
|
|
44
|
+
executions(): ExecutionClient;
|
|
45
|
+
credentials(): CredentialClient;
|
|
46
|
+
tags(): TagClient;
|
|
47
|
+
users(): UserClient;
|
|
48
|
+
variables(): VariableClient;
|
|
49
|
+
projects(): ProjectClient;
|
|
50
|
+
dataTables(): DataTableClient;
|
|
51
|
+
folders(projectId: string): FolderClient;
|
|
52
|
+
communityPackages(): CommunityPackageClient;
|
|
53
|
+
audit(): AuditClient;
|
|
54
|
+
insights(): InsightsClient;
|
|
55
|
+
sourceControl(): SourceControlClient;
|
|
56
|
+
discover(): DiscoverClient;
|
|
57
|
+
n8nPackage(): N8nPackageClient;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
export { N8nClientConfig, RequestOptions, N8nClient as default };
|