@egose/n8n-client 0.2.0 → 0.3.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 +17 -0
- package/README.md +14 -1
- package/{chunk-6JJ6RA5B.cjs → chunk-2T5KNPFX.cjs} +8 -1
- package/{chunk-RPB226OX.cjs → chunk-6MUNAE5L.cjs} +6 -6
- package/{chunk-3FDDCKAY.js → chunk-AS5WBSR3.js} +6 -6
- package/{chunk-TY76RTXQ.cjs → chunk-CWQXMALU.cjs} +7 -1
- package/{chunk-YSWBOCXJ.cjs → chunk-D4GV65GT.cjs} +10 -1
- package/{chunk-KRPRS2E5.cjs → chunk-DYUXQTFU.cjs} +6 -6
- package/{chunk-7H75UBMH.cjs → chunk-FB754K3A.cjs} +7 -1
- package/{chunk-4VK7K4IF.js → chunk-FOZHT2ZK.js} +7 -1
- package/{chunk-T62VHXNY.js → chunk-FSN23TT6.js} +7 -1
- package/{chunk-NBLW25ME.cjs → chunk-GUTI2M4U.cjs} +7 -1
- package/{chunk-GZ3POWDP.cjs → chunk-I2VZ7J4P.cjs} +6 -6
- package/{chunk-MMN2UKTI.cjs → chunk-JFTS6N3U.cjs} +11 -1
- package/{chunk-54N6YD4R.js → chunk-KBFYNP56.js} +2 -2
- package/{chunk-ETVDSJLY.js → chunk-KKFA5PJR.js} +2 -2
- package/{chunk-I4MMTW33.js → chunk-KMFHNXIH.js} +13 -1
- package/{chunk-W5P34RYO.cjs → chunk-O7AV3KS4.cjs} +31 -3
- package/{chunk-2R6A6NJE.js → chunk-PEUZAXIY.js} +10 -1
- package/{chunk-DTDNBA7W.cjs → chunk-TFMO4KWG.cjs} +4 -4
- package/{chunk-3YWWR6UD.cjs → chunk-TUWIRWCR.cjs} +14 -2
- package/{chunk-ZIIR24GM.cjs → chunk-U7CFNNJT.cjs} +11 -11
- package/{chunk-YE2OS2KS.js → chunk-UCSJX4UC.js} +8 -1
- package/{chunk-BQ2OTUXQ.js → chunk-UZYRG5OI.js} +2 -2
- package/{chunk-PT5DDLHC.js → chunk-VOCYFQYV.js} +2 -2
- package/{chunk-5DDMSYH2.js → chunk-W23TMDMQ.js} +2 -2
- package/{chunk-XJP6FPN3.js → chunk-WDO7B3R6.js} +11 -1
- package/{chunk-FTIVM52X.cjs → chunk-WO3YZAZT.cjs} +6 -6
- package/{chunk-YHSDCE3I.js → chunk-WQJUADC6.js} +7 -1
- package/{chunk-LQULSPET.cjs → chunk-WWVQNBTG.cjs} +6 -6
- package/{chunk-QJR4WFNV.js → chunk-YAYKWLOQ.js} +2 -2
- package/{chunk-GEWLPVNV.cjs → chunk-YWK563XR.cjs} +6 -6
- package/{chunk-LTYQTCHM.js → chunk-Z7XHC77E.js} +30 -2
- package/{chunk-HISH4ORK.js → chunk-ZPE32BQU.js} +2 -2
- package/clients/community-package.cjs +3 -3
- package/clients/community-package.d.cts +1 -1
- package/clients/community-package.d.ts +1 -1
- package/clients/community-package.js +2 -2
- package/clients/credential.cjs +3 -3
- package/clients/credential.d.cts +1 -1
- package/clients/credential.d.ts +1 -1
- package/clients/credential.js +2 -2
- package/clients/data-table.cjs +3 -3
- package/clients/data-table.d.cts +1 -1
- package/clients/data-table.d.ts +1 -1
- package/clients/data-table.js +2 -2
- package/clients/folder.cjs +3 -3
- package/clients/folder.d.cts +1 -1
- package/clients/folder.d.ts +1 -1
- package/clients/folder.js +2 -2
- package/clients/project.cjs +11 -11
- package/clients/project.d.cts +5 -5
- package/clients/project.d.ts +5 -5
- package/clients/project.js +10 -10
- package/clients/tag.cjs +3 -3
- package/clients/tag.d.cts +1 -1
- package/clients/tag.d.ts +1 -1
- package/clients/tag.js +2 -2
- package/clients/variable.cjs +3 -3
- package/clients/variable.d.cts +1 -1
- package/clients/variable.d.ts +1 -1
- package/clients/variable.js +2 -2
- package/clients/workflow.cjs +3 -3
- package/clients/workflow.d.cts +1 -1
- package/clients/workflow.d.ts +1 -1
- package/clients/workflow.js +2 -2
- package/{community-package-DBpReCPV.d.cts → community-package-BvmF_pP6.d.cts} +1 -0
- package/{community-package-CyzAqqwH.d.ts → community-package-xeQrLKme.d.ts} +1 -0
- package/{credential-CEH7XbGn.d.cts → credential-DPt1le6v.d.cts} +1 -0
- package/{credential-BWcrGfqd.d.ts → credential-Knm3Xhxp.d.ts} +1 -0
- package/{data-table-CHGUClGF.d.ts → data-table-Cg92UE2v.d.ts} +1 -0
- package/{data-table-CzR5kl9T.d.cts → data-table-ablBPGNU.d.cts} +1 -0
- package/{folder-DvgIxSea.d.cts → folder-DDe0xOyE.d.cts} +1 -0
- package/{folder-bjRPcy2j.d.ts → folder-JrOxuQPO.d.ts} +1 -0
- package/index.cjs +67 -26
- package/index.d.cts +74 -16
- package/index.d.ts +74 -16
- package/index.js +57 -16
- package/package.json +1 -1
- package/{project-BS1fXSLW.d.cts → project-CfXFXbv5.d.cts} +13 -4
- package/{project-uws9k24H.d.ts → project-DwqDoil4.d.ts} +13 -4
- package/resources/community-package.cjs +2 -2
- package/resources/community-package.d.cts +1 -1
- package/resources/community-package.d.ts +1 -1
- package/resources/community-package.js +1 -1
- package/resources/credential.cjs +2 -2
- package/resources/credential.d.cts +1 -1
- package/resources/credential.d.ts +1 -1
- package/resources/credential.js +1 -1
- package/resources/data-table.cjs +2 -2
- package/resources/data-table.d.cts +1 -1
- package/resources/data-table.d.ts +1 -1
- package/resources/data-table.js +1 -1
- package/resources/folder.cjs +2 -2
- package/resources/folder.d.cts +1 -1
- package/resources/folder.d.ts +1 -1
- package/resources/folder.js +1 -1
- package/resources/project.cjs +3 -3
- package/resources/project.d.cts +5 -5
- package/resources/project.d.ts +5 -5
- package/resources/project.js +2 -2
- package/resources/tag.cjs +2 -2
- package/resources/tag.d.cts +1 -1
- package/resources/tag.d.ts +1 -1
- package/resources/tag.js +1 -1
- package/resources/variable.cjs +2 -2
- package/resources/variable.d.cts +1 -1
- package/resources/variable.d.ts +1 -1
- package/resources/variable.js +1 -1
- package/resources/workflow.cjs +2 -2
- package/resources/workflow.d.cts +1 -1
- package/resources/workflow.d.ts +1 -1
- package/resources/workflow.js +1 -1
- package/{tag-lmf8obZe.d.ts → tag-5nOUYuYG.d.ts} +1 -0
- package/{tag-CzazpR40.d.cts → tag-DGGIqWix.d.cts} +1 -0
- package/types.d.cts +350 -0
- package/types.d.ts +350 -0
- package/{variable-CuCiwy0G.d.cts → variable-8kNQCTQx.d.cts} +1 -0
- package/{variable-C2LmlaTx.d.ts → variable-MVqhrcW-.d.ts} +1 -0
- package/{workflow-B2nxUmWq.d.cts → workflow-BD375xvs.d.cts} +1 -0
- package/{workflow-8pMj_fR_.d.ts → workflow-CLUVboDB.d.ts} +1 -0
package/clients/project.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../pagination.js';
|
|
2
2
|
import '../types.js';
|
|
3
3
|
import './base.js';
|
|
4
|
-
export { P as default } from '../project-
|
|
4
|
+
export { P as default } from '../project-DwqDoil4.js';
|
|
5
5
|
import '../http-client.js';
|
|
6
|
-
import '../data-table-
|
|
6
|
+
import '../data-table-Cg92UE2v.js';
|
|
7
7
|
import '../resources/base.js';
|
|
8
8
|
import '../execution-BjR6z5Vu.js';
|
|
9
|
-
import '../folder-
|
|
10
|
-
import '../variable-
|
|
11
|
-
import '../workflow-
|
|
9
|
+
import '../folder-JrOxuQPO.js';
|
|
10
|
+
import '../variable-MVqhrcW-.js';
|
|
11
|
+
import '../workflow-CLUVboDB.js';
|
package/clients/project.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectClient
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-AS5WBSR3.js";
|
|
4
|
+
import "../chunk-Z7XHC77E.js";
|
|
5
|
+
import "../chunk-ZPE32BQU.js";
|
|
6
|
+
import "../chunk-PEUZAXIY.js";
|
|
7
|
+
import "../chunk-KBFYNP56.js";
|
|
8
|
+
import "../chunk-KMFHNXIH.js";
|
|
9
|
+
import "../chunk-UZYRG5OI.js";
|
|
10
|
+
import "../chunk-FSN23TT6.js";
|
|
11
11
|
import "../chunk-C6W6ERQD.js";
|
|
12
12
|
import "../chunk-S4ZASMBT.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-W23TMDMQ.js";
|
|
14
|
+
import "../chunk-UCSJX4UC.js";
|
|
15
15
|
import "../chunk-RMEH2UPX.js";
|
|
16
16
|
import "../chunk-DURH6QOX.js";
|
|
17
17
|
import "../chunk-TLBDBRPJ.js";
|
package/clients/tag.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkDYUXQTFUcjs = require('../chunk-DYUXQTFU.cjs');
|
|
4
|
+
require('../chunk-FB754K3A.cjs');
|
|
5
5
|
require('../chunk-FIKGC2EL.cjs');
|
|
6
6
|
require('../chunk-4M2HGY3F.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkDYUXQTFUcjs.TagClient;
|
|
10
10
|
//# sourceMappingURL=tag.cjs.map
|
package/clients/tag.d.cts
CHANGED
package/clients/tag.d.ts
CHANGED
package/clients/tag.js
CHANGED
package/clients/variable.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkTFMO4KWGcjs = require('../chunk-TFMO4KWG.cjs');
|
|
4
|
+
require('../chunk-D4GV65GT.cjs');
|
|
5
5
|
require('../chunk-LC3TKRMX.cjs');
|
|
6
6
|
require('../chunk-7B5DLJYY.cjs');
|
|
7
7
|
require('../chunk-FIKGC2EL.cjs');
|
|
8
8
|
require('../chunk-4M2HGY3F.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkTFMO4KWGcjs.VariableClient;
|
|
12
12
|
//# sourceMappingURL=variable.cjs.map
|
package/clients/variable.d.cts
CHANGED
package/clients/variable.d.ts
CHANGED
package/clients/variable.js
CHANGED
package/clients/workflow.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkI2VZ7J4Pcjs = require('../chunk-I2VZ7J4P.cjs');
|
|
4
|
+
require('../chunk-TUWIRWCR.cjs');
|
|
5
5
|
require('../chunk-YBMEMKCN.cjs');
|
|
6
6
|
require('../chunk-Z3D4URRD.cjs');
|
|
7
7
|
require('../chunk-LC3TKRMX.cjs');
|
|
@@ -10,5 +10,5 @@ require('../chunk-FIKGC2EL.cjs');
|
|
|
10
10
|
require('../chunk-4M2HGY3F.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default =
|
|
13
|
+
exports.default = _chunkI2VZ7J4Pcjs.WorkflowClient;
|
|
14
14
|
//# sourceMappingURL=workflow.cjs.map
|
package/clients/workflow.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../pagination.cjs';
|
|
2
2
|
import '../types.cjs';
|
|
3
3
|
import './base.cjs';
|
|
4
|
-
export { W as default } from '../workflow-
|
|
4
|
+
export { W as default } from '../workflow-BD375xvs.cjs';
|
|
5
5
|
import '../http-client.cjs';
|
|
6
6
|
import '../execution-C0c9utwa.cjs';
|
|
7
7
|
import '../resources/base.cjs';
|
package/clients/workflow.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../pagination.js';
|
|
2
2
|
import '../types.js';
|
|
3
3
|
import './base.js';
|
|
4
|
-
export { W as default } from '../workflow-
|
|
4
|
+
export { W as default } from '../workflow-CLUVboDB.js';
|
|
5
5
|
import '../http-client.js';
|
|
6
6
|
import '../execution-BjR6z5Vu.js';
|
|
7
7
|
import '../resources/base.js';
|
package/clients/workflow.js
CHANGED
|
@@ -9,6 +9,7 @@ declare class CommunityPackageResource extends BaseResource<CommunityPackage> {
|
|
|
9
9
|
get installedVersion(): string;
|
|
10
10
|
refresh(): Promise<this>;
|
|
11
11
|
update(data?: UpdateCommunityPackageRequest): Promise<this>;
|
|
12
|
+
patch(data?: UpdateCommunityPackageRequest): Promise<this>;
|
|
12
13
|
uninstall(): Promise<void>;
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -9,6 +9,7 @@ declare class CommunityPackageResource extends BaseResource<CommunityPackage> {
|
|
|
9
9
|
get installedVersion(): string;
|
|
10
10
|
refresh(): Promise<this>;
|
|
11
11
|
update(data?: UpdateCommunityPackageRequest): Promise<this>;
|
|
12
|
+
patch(data?: UpdateCommunityPackageRequest): Promise<this>;
|
|
12
13
|
uninstall(): Promise<void>;
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -10,6 +10,7 @@ declare class CredentialResource extends BaseResource<Credential | CredentialRes
|
|
|
10
10
|
get name(): string;
|
|
11
11
|
get type(): string;
|
|
12
12
|
update(data: CredentialUpdate): Promise<this>;
|
|
13
|
+
patch(data: CredentialUpdate): Promise<this>;
|
|
13
14
|
delete(): Promise<Credential>;
|
|
14
15
|
test(): Promise<CredentialTestResponse>;
|
|
15
16
|
transfer(destinationProjectId: string): Promise<void>;
|
|
@@ -10,6 +10,7 @@ declare class CredentialResource extends BaseResource<Credential | CredentialRes
|
|
|
10
10
|
get name(): string;
|
|
11
11
|
get type(): string;
|
|
12
12
|
update(data: CredentialUpdate): Promise<this>;
|
|
13
|
+
patch(data: CredentialUpdate): Promise<this>;
|
|
13
14
|
delete(): Promise<Credential>;
|
|
14
15
|
test(): Promise<CredentialTestResponse>;
|
|
15
16
|
transfer(destinationProjectId: string): Promise<void>;
|
|
@@ -10,6 +10,7 @@ declare class DataTableResource extends BaseResource<DataTable> {
|
|
|
10
10
|
get name(): string;
|
|
11
11
|
refresh(): Promise<this>;
|
|
12
12
|
update(data: UpdateDataTableRequest): Promise<this>;
|
|
13
|
+
patch(data: Partial<UpdateDataTableRequest>): Promise<this>;
|
|
13
14
|
delete(): Promise<void>;
|
|
14
15
|
listRows(params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
|
|
15
16
|
insertRows(data: InsertRowsCountRequest): Promise<{
|
|
@@ -10,6 +10,7 @@ declare class DataTableResource extends BaseResource<DataTable> {
|
|
|
10
10
|
get name(): string;
|
|
11
11
|
refresh(): Promise<this>;
|
|
12
12
|
update(data: UpdateDataTableRequest): Promise<this>;
|
|
13
|
+
patch(data: Partial<UpdateDataTableRequest>): Promise<this>;
|
|
13
14
|
delete(): Promise<void>;
|
|
14
15
|
listRows(params?: DataTableRowListParams): Promise<DataTableRowListResponse>;
|
|
15
16
|
insertRows(data: InsertRowsCountRequest): Promise<{
|
|
@@ -11,6 +11,7 @@ declare class FolderResource extends BaseResource<Folder | FolderDetail> {
|
|
|
11
11
|
get name(): string;
|
|
12
12
|
get parentFolderId(): string | undefined;
|
|
13
13
|
update(data: FolderUpdate): Promise<this>;
|
|
14
|
+
patch(data: FolderUpdate): Promise<this>;
|
|
14
15
|
delete(transferToFolderId?: string): Promise<void>;
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -11,6 +11,7 @@ declare class FolderResource extends BaseResource<Folder | FolderDetail> {
|
|
|
11
11
|
get name(): string;
|
|
12
12
|
get parentFolderId(): string | undefined;
|
|
13
13
|
update(data: FolderUpdate): Promise<this>;
|
|
14
|
+
patch(data: FolderUpdate): Promise<this>;
|
|
14
15
|
delete(transferToFolderId?: string): Promise<void>;
|
|
15
16
|
}
|
|
16
17
|
|
package/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDYUXQTFUcjs = require('./chunk-DYUXQTFU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFB754K3Acjs = require('./chunk-FB754K3A.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkB7CINZ27cjs = require('./chunk-B7CINZ27.cjs');
|
|
@@ -21,28 +21,28 @@ var _chunk54MX3Y2Mcjs = require('./chunk-54MX3Y2M.cjs');
|
|
|
21
21
|
var _chunkCCS5ALTNcjs = require('./chunk-CCS5ALTN.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkU7CFNNJTcjs = require('./chunk-U7CFNNJT.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkO7AV3KS4cjs = require('./chunk-O7AV3KS4.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkTFMO4KWGcjs = require('./chunk-TFMO4KWG.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkD4GV65GTcjs = require('./chunk-D4GV65GT.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkI2VZ7J4Pcjs = require('./chunk-I2VZ7J4P.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkTUWIRWCRcjs = require('./chunk-TUWIRWCR.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkWO3YZAZTcjs = require('./chunk-WO3YZAZT.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkGUTI2M4Ucjs = require('./chunk-GUTI2M4U.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunkYBMEMKCNcjs = require('./chunk-YBMEMKCN.cjs');
|
|
@@ -51,10 +51,10 @@ var _chunkYBMEMKCNcjs = require('./chunk-YBMEMKCN.cjs');
|
|
|
51
51
|
var _chunkZ3D4URRDcjs = require('./chunk-Z3D4URRD.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunk6MUNAE5Lcjs = require('./chunk-6MUNAE5L.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunk2T5KNPFXcjs = require('./chunk-2T5KNPFX.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
var _chunkZPU6PQEScjs = require('./chunk-ZPU6PQES.cjs');
|
|
@@ -63,10 +63,10 @@ var _chunkZPU6PQEScjs = require('./chunk-ZPU6PQES.cjs');
|
|
|
63
63
|
var _chunk5ZRUF6XZcjs = require('./chunk-5ZRUF6XZ.cjs');
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkYWK563XRcjs = require('./chunk-YWK563XR.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkCWQXMALUcjs = require('./chunk-CWQXMALU.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
@@ -74,19 +74,37 @@ var _chunkLC3TKRMXcjs = require('./chunk-LC3TKRMX.cjs');
|
|
|
74
74
|
require('./chunk-7B5DLJYY.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkWWVQNBTGcjs = require('./chunk-WWVQNBTG.cjs');
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkJFTS6N3Ucjs = require('./chunk-JFTS6N3U.cjs');
|
|
81
81
|
require('./chunk-FIKGC2EL.cjs');
|
|
82
82
|
require('./chunk-4M2HGY3F.cjs');
|
|
83
83
|
|
|
84
84
|
// src/index.ts
|
|
85
85
|
var N8nClient = class {
|
|
86
86
|
#http;
|
|
87
|
+
/**
|
|
88
|
+
* Create a new client instance.
|
|
89
|
+
*
|
|
90
|
+
* @param config - Client configuration. Must include `baseUrl` and exactly one of `apiKey` or `bearerToken`.
|
|
91
|
+
* @throws {Error} If both or neither auth method is provided.
|
|
92
|
+
*/
|
|
87
93
|
constructor(config) {
|
|
88
94
|
this.#http = new (0, _chunkLC3TKRMXcjs.HttpClient)(config);
|
|
89
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Send an arbitrary HTTP request through the client's transport layer.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* const result = await client.request<Workflow>({
|
|
102
|
+
* method: 'GET',
|
|
103
|
+
* path: '/workflows',
|
|
104
|
+
* query: { limit: 5 },
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
90
108
|
request(options) {
|
|
91
109
|
return this.#http.request(options);
|
|
92
110
|
}
|
|
@@ -105,48 +123,71 @@ var N8nClient = class {
|
|
|
105
123
|
delete(path, query, headers) {
|
|
106
124
|
return this.#http.delete(path, query, headers);
|
|
107
125
|
}
|
|
126
|
+
/** Workflow management — list, get, create, update, delete, activate, deactivate, archive, transfer, tags, versions. */
|
|
108
127
|
workflows() {
|
|
109
|
-
return new (0,
|
|
128
|
+
return new (0, _chunkI2VZ7J4Pcjs.WorkflowClient)(this.#http);
|
|
110
129
|
}
|
|
130
|
+
/** Execution monitoring — list, get, delete, retry, stop, tags. */
|
|
111
131
|
executions() {
|
|
112
132
|
return new (0, _chunkYBMEMKCNcjs.ExecutionClient)(this.#http);
|
|
113
133
|
}
|
|
134
|
+
/** Credential management — list, get, create, update, delete, test, transfer, schema. */
|
|
114
135
|
credentials() {
|
|
115
|
-
return new (0,
|
|
136
|
+
return new (0, _chunkWWVQNBTGcjs.CredentialClient)(this.#http);
|
|
116
137
|
}
|
|
138
|
+
/** Tag management — list, get, create, update, delete. */
|
|
117
139
|
tags() {
|
|
118
|
-
return new (0,
|
|
140
|
+
return new (0, _chunkDYUXQTFUcjs.TagClient)(this.#http);
|
|
119
141
|
}
|
|
142
|
+
/** User management — list, get, create, delete, role changes. */
|
|
120
143
|
users() {
|
|
121
144
|
return new (0, _chunkB7CINZ27cjs.UserClient)(this.#http);
|
|
122
145
|
}
|
|
146
|
+
/** Variable management — list, get (paginated search), create, update, delete. */
|
|
123
147
|
variables() {
|
|
124
|
-
return new (0,
|
|
148
|
+
return new (0, _chunkTFMO4KWGcjs.VariableClient)(this.#http);
|
|
125
149
|
}
|
|
150
|
+
/** Project management — list, create, update, delete, members. No `get(id)` — use `list()` to find projects. */
|
|
126
151
|
projects() {
|
|
127
|
-
return new (0,
|
|
152
|
+
return new (0, _chunkU7CFNNJTcjs.ProjectClient)(this.#http);
|
|
128
153
|
}
|
|
154
|
+
/** Data table management — list, get, create, update, delete, rows, columns. */
|
|
129
155
|
dataTables() {
|
|
130
|
-
return new (0,
|
|
131
|
-
}
|
|
156
|
+
return new (0, _chunkWO3YZAZTcjs.DataTableClient)(this.#http);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Folder management — requires `projectId` because folder endpoints are project-scoped.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const folders = client.folders('project-id');
|
|
164
|
+
* await folders.list();
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
132
167
|
folders(projectId) {
|
|
133
|
-
return new (0,
|
|
168
|
+
return new (0, _chunk6MUNAE5Lcjs.FolderClient)(this.#http, projectId);
|
|
134
169
|
}
|
|
170
|
+
/** Community package management — list, install, update, uninstall. */
|
|
135
171
|
communityPackages() {
|
|
136
|
-
return new (0,
|
|
172
|
+
return new (0, _chunkYWK563XRcjs.CommunityPackageClient)(this.#http);
|
|
137
173
|
}
|
|
174
|
+
/** Audit report generation (singleton — no `list`/`get`). */
|
|
138
175
|
audit() {
|
|
139
176
|
return new (0, _chunk5ZRUF6XZcjs.AuditClient)(this.#http);
|
|
140
177
|
}
|
|
178
|
+
/** Execution insights summary (singleton — no `list`/`get`). */
|
|
141
179
|
insights() {
|
|
142
180
|
return new (0, _chunk54MX3Y2Mcjs.InsightsClient)(this.#http);
|
|
143
181
|
}
|
|
182
|
+
/** Source control operations — pull, list files (singleton). */
|
|
144
183
|
sourceControl() {
|
|
145
184
|
return new (0, _chunkZPU6PQEScjs.SourceControlClient)(this.#http);
|
|
146
185
|
}
|
|
186
|
+
/** Resource discovery — list available API resources, operations, and filters (singleton). */
|
|
147
187
|
discover() {
|
|
148
188
|
return new (0, _chunkBA4KTRMXcjs.DiscoverClient)(this.#http);
|
|
149
189
|
}
|
|
190
|
+
/** n8n package import/export — export workflows as gzipped packages, import packages (singleton). */
|
|
150
191
|
n8nPackage() {
|
|
151
192
|
return new (0, _chunkCCS5ALTNcjs.N8nPackageClient)(this.#http);
|
|
152
193
|
}
|
|
@@ -165,5 +206,5 @@ var N8nClient = class {
|
|
|
165
206
|
|
|
166
207
|
|
|
167
208
|
|
|
168
|
-
exports.CommunityPackageResource =
|
|
209
|
+
exports.CommunityPackageResource = _chunkCWQXMALUcjs.CommunityPackageResource; exports.CredentialResource = _chunkJFTS6N3Ucjs.CredentialResource; exports.DataTableResource = _chunkGUTI2M4Ucjs.DataTableResource; exports.ExecutionResource = _chunkZ3D4URRDcjs.ExecutionResource; exports.FolderResource = _chunk2T5KNPFXcjs.FolderResource; exports.HttpClient = _chunkLC3TKRMXcjs.HttpClient; exports.HttpError = _chunkLC3TKRMXcjs.HttpError; exports.ProjectResource = _chunkO7AV3KS4cjs.ProjectResource; exports.TagResource = _chunkFB754K3Acjs.TagResource; exports.UserResource = _chunkC3JBYESScjs.UserResource; exports.VariableResource = _chunkD4GV65GTcjs.VariableResource; exports.WorkflowResource = _chunkTUWIRWCRcjs.WorkflowResource; exports.default = N8nClient;
|
|
169
210
|
//# sourceMappingURL=index.cjs.map
|
package/index.d.cts
CHANGED
|
@@ -2,26 +2,26 @@ 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 { W as WorkflowClient } from './workflow-
|
|
6
|
-
export { a as WorkflowExecutionResourceCollection, b as WorkflowResource } from './workflow-
|
|
5
|
+
import { W as WorkflowClient } from './workflow-BD375xvs.cjs';
|
|
6
|
+
export { a as WorkflowExecutionResourceCollection, b as WorkflowResource } from './workflow-BD375xvs.cjs';
|
|
7
7
|
import { E as ExecutionClient } from './execution-C0c9utwa.cjs';
|
|
8
8
|
export { a as ExecutionResource } from './execution-C0c9utwa.cjs';
|
|
9
|
-
import { C as CredentialClient } from './credential-
|
|
10
|
-
export { a as CredentialResource } from './credential-
|
|
11
|
-
import { T as TagClient } from './tag-
|
|
12
|
-
export { a as TagResource } from './tag-
|
|
9
|
+
import { C as CredentialClient } from './credential-DPt1le6v.cjs';
|
|
10
|
+
export { a as CredentialResource } from './credential-DPt1le6v.cjs';
|
|
11
|
+
import { T as TagClient } from './tag-DGGIqWix.cjs';
|
|
12
|
+
export { a as TagResource } from './tag-DGGIqWix.cjs';
|
|
13
13
|
import { U as UserClient } from './user-CBa2VjYj.cjs';
|
|
14
14
|
export { a as UserResource } from './user-CBa2VjYj.cjs';
|
|
15
|
-
import { V as VariableClient } from './variable-
|
|
16
|
-
export { a as VariableResource } from './variable-
|
|
17
|
-
import { P as ProjectClient } from './project-
|
|
18
|
-
export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, d as ProjectResource, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection } from './project-
|
|
19
|
-
import { D as DataTableClient } from './data-table-
|
|
20
|
-
export { a as DataTableResource } from './data-table-
|
|
21
|
-
import { F as FolderClient } from './folder-
|
|
22
|
-
export { a as FolderResource } from './folder-
|
|
23
|
-
import { C as CommunityPackageClient } from './community-package-
|
|
24
|
-
export { a as CommunityPackageResource } from './community-package-
|
|
15
|
+
import { V as VariableClient } from './variable-8kNQCTQx.cjs';
|
|
16
|
+
export { a as VariableResource } from './variable-8kNQCTQx.cjs';
|
|
17
|
+
import { P as ProjectClient } from './project-CfXFXbv5.cjs';
|
|
18
|
+
export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, d as ProjectResource, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection } from './project-CfXFXbv5.cjs';
|
|
19
|
+
import { D as DataTableClient } from './data-table-ablBPGNU.cjs';
|
|
20
|
+
export { a as DataTableResource } from './data-table-ablBPGNU.cjs';
|
|
21
|
+
import { F as FolderClient } from './folder-DDe0xOyE.cjs';
|
|
22
|
+
export { a as FolderResource } from './folder-DDe0xOyE.cjs';
|
|
23
|
+
import { C as CommunityPackageClient } from './community-package-BvmF_pP6.cjs';
|
|
24
|
+
export { a as CommunityPackageResource } from './community-package-BvmF_pP6.cjs';
|
|
25
25
|
import AuditClient from './clients/audit.cjs';
|
|
26
26
|
import InsightsClient from './clients/insights.cjs';
|
|
27
27
|
import SourceControlClient from './clients/source-control.cjs';
|
|
@@ -31,29 +31,87 @@ export { PaginatedResponse, PaginationParams } from './pagination.cjs';
|
|
|
31
31
|
import './clients/base.cjs';
|
|
32
32
|
import './resources/base.cjs';
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Root client for the n8n Public API v1.
|
|
36
|
+
*
|
|
37
|
+
* Creates an HTTP client and provides access to all 15 resource clients.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* import N8nClient from '@egose/n8n-client';
|
|
42
|
+
*
|
|
43
|
+
* const client = new N8nClient({
|
|
44
|
+
* baseUrl: 'http://localhost:5678',
|
|
45
|
+
* apiKey: process.env.N8N_API_KEY,
|
|
46
|
+
* });
|
|
47
|
+
*
|
|
48
|
+
* const { data } = await client.workflows().list({ limit: 10 });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
34
51
|
declare class N8nClient {
|
|
35
52
|
#private;
|
|
53
|
+
/**
|
|
54
|
+
* Create a new client instance.
|
|
55
|
+
*
|
|
56
|
+
* @param config - Client configuration. Must include `baseUrl` and exactly one of `apiKey` or `bearerToken`.
|
|
57
|
+
* @throws {Error} If both or neither auth method is provided.
|
|
58
|
+
*/
|
|
36
59
|
constructor(config: N8nClientConfig);
|
|
60
|
+
/**
|
|
61
|
+
* Send an arbitrary HTTP request through the client's transport layer.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const result = await client.request<Workflow>({
|
|
66
|
+
* method: 'GET',
|
|
67
|
+
* path: '/workflows',
|
|
68
|
+
* query: { limit: 5 },
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
37
72
|
request<T>(options: RequestOptions): Promise<T>;
|
|
38
73
|
get<T>(path: string, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
39
74
|
post<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
40
75
|
put<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
41
76
|
patch<T>(path: string, body?: unknown, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
42
77
|
delete<T>(path: string, query?: object, headers?: Record<string, string>): Promise<T>;
|
|
78
|
+
/** Workflow management — list, get, create, update, delete, activate, deactivate, archive, transfer, tags, versions. */
|
|
43
79
|
workflows(): WorkflowClient;
|
|
80
|
+
/** Execution monitoring — list, get, delete, retry, stop, tags. */
|
|
44
81
|
executions(): ExecutionClient;
|
|
82
|
+
/** Credential management — list, get, create, update, delete, test, transfer, schema. */
|
|
45
83
|
credentials(): CredentialClient;
|
|
84
|
+
/** Tag management — list, get, create, update, delete. */
|
|
46
85
|
tags(): TagClient;
|
|
86
|
+
/** User management — list, get, create, delete, role changes. */
|
|
47
87
|
users(): UserClient;
|
|
88
|
+
/** Variable management — list, get (paginated search), create, update, delete. */
|
|
48
89
|
variables(): VariableClient;
|
|
90
|
+
/** Project management — list, create, update, delete, members. No `get(id)` — use `list()` to find projects. */
|
|
49
91
|
projects(): ProjectClient;
|
|
92
|
+
/** Data table management — list, get, create, update, delete, rows, columns. */
|
|
50
93
|
dataTables(): DataTableClient;
|
|
94
|
+
/**
|
|
95
|
+
* Folder management — requires `projectId` because folder endpoints are project-scoped.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const folders = client.folders('project-id');
|
|
100
|
+
* await folders.list();
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
51
103
|
folders(projectId: string): FolderClient;
|
|
104
|
+
/** Community package management — list, install, update, uninstall. */
|
|
52
105
|
communityPackages(): CommunityPackageClient;
|
|
106
|
+
/** Audit report generation (singleton — no `list`/`get`). */
|
|
53
107
|
audit(): AuditClient;
|
|
108
|
+
/** Execution insights summary (singleton — no `list`/`get`). */
|
|
54
109
|
insights(): InsightsClient;
|
|
110
|
+
/** Source control operations — pull, list files (singleton). */
|
|
55
111
|
sourceControl(): SourceControlClient;
|
|
112
|
+
/** Resource discovery — list available API resources, operations, and filters (singleton). */
|
|
56
113
|
discover(): DiscoverClient;
|
|
114
|
+
/** n8n package import/export — export workflows as gzipped packages, import packages (singleton). */
|
|
57
115
|
n8nPackage(): N8nPackageClient;
|
|
58
116
|
}
|
|
59
117
|
|