@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,11 @@
|
|
|
1
|
+
import '../types.js';
|
|
2
|
+
import '../pagination.js';
|
|
3
|
+
import '../data-table-CHGUClGF.js';
|
|
4
|
+
import '../execution-BjR6z5Vu.js';
|
|
5
|
+
import '../folder-bjRPcy2j.js';
|
|
6
|
+
export { a as ProjectDataTableResourceCollection, b as ProjectExecutionResourceCollection, c as ProjectFolderResourceCollection, e as ProjectVariableResourceCollection, f as ProjectWorkflowResourceCollection, d as default } from '../project-uws9k24H.js';
|
|
7
|
+
import '../variable-C2LmlaTx.js';
|
|
8
|
+
import '../workflow-8pMj_fR_.js';
|
|
9
|
+
import './base.js';
|
|
10
|
+
import '../clients/base.js';
|
|
11
|
+
import '../http-client.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProjectResource
|
|
3
|
+
} from "../chunk-LTYQTCHM.js";
|
|
4
|
+
import "../chunk-T62VHXNY.js";
|
|
5
|
+
import "../chunk-RMEH2UPX.js";
|
|
6
|
+
import "../chunk-DURH6QOX.js";
|
|
7
|
+
import "../chunk-TLBDBRPJ.js";
|
|
8
|
+
export {
|
|
9
|
+
ProjectResource as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=project.js.map
|
package/resources/tag.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkYSWBOCXJcjs = require('../chunk-YSWBOCXJ.cjs');
|
|
4
|
+
require('../chunk-FIKGC2EL.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = _chunkYSWBOCXJcjs.VariableResource;
|
|
8
|
+
//# sourceMappingURL=variable.cjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk3YWWR6UDcjs = require('../chunk-3YWWR6UD.cjs');
|
|
4
|
+
require('../chunk-LC3TKRMX.cjs');
|
|
5
|
+
require('../chunk-7B5DLJYY.cjs');
|
|
6
|
+
require('../chunk-FIKGC2EL.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = _chunk3YWWR6UDcjs.WorkflowResource;
|
|
10
|
+
//# sourceMappingURL=workflow.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '../types.cjs';
|
|
2
|
+
import '../pagination.cjs';
|
|
3
|
+
import '../execution-C0c9utwa.cjs';
|
|
4
|
+
export { a as WorkflowExecutionResourceCollection, b as default } from '../workflow-B2nxUmWq.cjs';
|
|
5
|
+
import './base.cjs';
|
|
6
|
+
import '../clients/base.cjs';
|
|
7
|
+
import '../http-client.cjs';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '../types.js';
|
|
2
|
+
import '../pagination.js';
|
|
3
|
+
import '../execution-BjR6z5Vu.js';
|
|
4
|
+
export { a as WorkflowExecutionResourceCollection, b as default } from '../workflow-8pMj_fR_.js';
|
|
5
|
+
import './base.js';
|
|
6
|
+
import '../clients/base.js';
|
|
7
|
+
import '../http-client.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PaginationParams, PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { Tag, TagMutation, TagListResponse } from './types.cjs';
|
|
3
|
+
import BaseClient from './clients/base.cjs';
|
|
4
|
+
import BaseResource from './resources/base.cjs';
|
|
5
|
+
|
|
6
|
+
declare class TagResource extends BaseResource<Tag> {
|
|
7
|
+
private readonly tags;
|
|
8
|
+
constructor(tags: TagClient, tag: Tag);
|
|
9
|
+
get id(): string;
|
|
10
|
+
get name(): string;
|
|
11
|
+
update(data: TagMutation): Promise<this>;
|
|
12
|
+
delete(): Promise<Tag>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class TagClient extends BaseClient {
|
|
16
|
+
list(params?: PaginationParams): Promise<TagListResponse>;
|
|
17
|
+
get(id: string): Promise<Tag>;
|
|
18
|
+
getResource(id: string): Promise<TagResource>;
|
|
19
|
+
listResources(params?: PaginationParams): Promise<PaginatedResponse<TagResource>>;
|
|
20
|
+
create(data: TagMutation): Promise<Tag>;
|
|
21
|
+
createResource(data: TagMutation): Promise<TagResource>;
|
|
22
|
+
update(id: string, data: TagMutation): Promise<Tag>;
|
|
23
|
+
updateResource(id: string, data: TagMutation): Promise<TagResource>;
|
|
24
|
+
delete(id: string): Promise<Tag>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { TagClient as T, TagResource as a };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PaginationParams, PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { Tag, TagMutation, TagListResponse } from './types.js';
|
|
3
|
+
import BaseClient from './clients/base.js';
|
|
4
|
+
import BaseResource from './resources/base.js';
|
|
5
|
+
|
|
6
|
+
declare class TagResource extends BaseResource<Tag> {
|
|
7
|
+
private readonly tags;
|
|
8
|
+
constructor(tags: TagClient, tag: Tag);
|
|
9
|
+
get id(): string;
|
|
10
|
+
get name(): string;
|
|
11
|
+
update(data: TagMutation): Promise<this>;
|
|
12
|
+
delete(): Promise<Tag>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class TagClient extends BaseClient {
|
|
16
|
+
list(params?: PaginationParams): Promise<TagListResponse>;
|
|
17
|
+
get(id: string): Promise<Tag>;
|
|
18
|
+
getResource(id: string): Promise<TagResource>;
|
|
19
|
+
listResources(params?: PaginationParams): Promise<PaginatedResponse<TagResource>>;
|
|
20
|
+
create(data: TagMutation): Promise<Tag>;
|
|
21
|
+
createResource(data: TagMutation): Promise<TagResource>;
|
|
22
|
+
update(id: string, data: TagMutation): Promise<Tag>;
|
|
23
|
+
updateResource(id: string, data: TagMutation): Promise<TagResource>;
|
|
24
|
+
delete(id: string): Promise<Tag>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { TagClient as T, TagResource as a };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { User, UserGetParams, UserListParams, UserListResponse, UserCreate, UserCreateResponse } from './types.js';
|
|
3
|
+
import BaseClient from './clients/base.js';
|
|
4
|
+
import BaseResource from './resources/base.js';
|
|
5
|
+
|
|
6
|
+
declare class UserResource extends BaseResource<User> {
|
|
7
|
+
private readonly users;
|
|
8
|
+
private readonly params?;
|
|
9
|
+
constructor(users: UserClient, user: User, params?: UserGetParams | undefined);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get email(): string;
|
|
12
|
+
refresh(): Promise<this>;
|
|
13
|
+
delete(): Promise<void>;
|
|
14
|
+
changeRole(newRoleName: string): Promise<this>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class UserClient extends BaseClient {
|
|
18
|
+
list(params?: UserListParams): Promise<UserListResponse>;
|
|
19
|
+
get(id: string, params?: UserGetParams): Promise<User>;
|
|
20
|
+
getResource(id: string, params?: UserGetParams): Promise<UserResource>;
|
|
21
|
+
listResources(params?: UserListParams): Promise<PaginatedResponse<UserResource>>;
|
|
22
|
+
create(data: UserCreate[]): Promise<UserCreateResponse>;
|
|
23
|
+
delete(id: string): Promise<void>;
|
|
24
|
+
changeRole(id: string, newRoleName: string): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { UserClient as U, UserResource as a };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { User, UserGetParams, UserListParams, UserListResponse, UserCreate, UserCreateResponse } from './types.cjs';
|
|
3
|
+
import BaseClient from './clients/base.cjs';
|
|
4
|
+
import BaseResource from './resources/base.cjs';
|
|
5
|
+
|
|
6
|
+
declare class UserResource extends BaseResource<User> {
|
|
7
|
+
private readonly users;
|
|
8
|
+
private readonly params?;
|
|
9
|
+
constructor(users: UserClient, user: User, params?: UserGetParams | undefined);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get email(): string;
|
|
12
|
+
refresh(): Promise<this>;
|
|
13
|
+
delete(): Promise<void>;
|
|
14
|
+
changeRole(newRoleName: string): Promise<this>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class UserClient extends BaseClient {
|
|
18
|
+
list(params?: UserListParams): Promise<UserListResponse>;
|
|
19
|
+
get(id: string, params?: UserGetParams): Promise<User>;
|
|
20
|
+
getResource(id: string, params?: UserGetParams): Promise<UserResource>;
|
|
21
|
+
listResources(params?: UserListParams): Promise<PaginatedResponse<UserResource>>;
|
|
22
|
+
create(data: UserCreate[]): Promise<UserCreateResponse>;
|
|
23
|
+
delete(id: string): Promise<void>;
|
|
24
|
+
changeRole(id: string, newRoleName: string): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { UserClient as U, UserResource as a };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { Variable, VariableListParams, VariableCreate, VariableListResponse } from './types.js';
|
|
3
|
+
import BaseClient from './clients/base.js';
|
|
4
|
+
import BaseResource from './resources/base.js';
|
|
5
|
+
|
|
6
|
+
declare class VariableResource extends BaseResource<Variable> {
|
|
7
|
+
private readonly variables;
|
|
8
|
+
private readonly params?;
|
|
9
|
+
constructor(variables: VariableClient, variable: Variable, params?: VariableListParams | undefined);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get key(): string;
|
|
12
|
+
get value(): string;
|
|
13
|
+
refresh(): Promise<this>;
|
|
14
|
+
update(data: VariableCreate): Promise<this>;
|
|
15
|
+
delete(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class VariableClient extends BaseClient {
|
|
19
|
+
list(params?: VariableListParams): Promise<VariableListResponse>;
|
|
20
|
+
get(id: string, params?: VariableListParams): Promise<Variable>;
|
|
21
|
+
getResource(id: string, params?: VariableListParams): Promise<VariableResource>;
|
|
22
|
+
listResources(params?: VariableListParams): Promise<PaginatedResponse<VariableResource>>;
|
|
23
|
+
create(data: VariableCreate): Promise<void>;
|
|
24
|
+
update(id: string, data: VariableCreate): Promise<void>;
|
|
25
|
+
delete(id: string): Promise<void>;
|
|
26
|
+
private findVariable;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { VariableClient as V, VariableResource as a };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { Variable, VariableListParams, VariableCreate, VariableListResponse } from './types.cjs';
|
|
3
|
+
import BaseClient from './clients/base.cjs';
|
|
4
|
+
import BaseResource from './resources/base.cjs';
|
|
5
|
+
|
|
6
|
+
declare class VariableResource extends BaseResource<Variable> {
|
|
7
|
+
private readonly variables;
|
|
8
|
+
private readonly params?;
|
|
9
|
+
constructor(variables: VariableClient, variable: Variable, params?: VariableListParams | undefined);
|
|
10
|
+
get id(): string;
|
|
11
|
+
get key(): string;
|
|
12
|
+
get value(): string;
|
|
13
|
+
refresh(): Promise<this>;
|
|
14
|
+
update(data: VariableCreate): Promise<this>;
|
|
15
|
+
delete(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class VariableClient extends BaseClient {
|
|
19
|
+
list(params?: VariableListParams): Promise<VariableListResponse>;
|
|
20
|
+
get(id: string, params?: VariableListParams): Promise<Variable>;
|
|
21
|
+
getResource(id: string, params?: VariableListParams): Promise<VariableResource>;
|
|
22
|
+
listResources(params?: VariableListParams): Promise<PaginatedResponse<VariableResource>>;
|
|
23
|
+
create(data: VariableCreate): Promise<void>;
|
|
24
|
+
update(id: string, data: VariableCreate): Promise<void>;
|
|
25
|
+
delete(id: string): Promise<void>;
|
|
26
|
+
private findVariable;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { VariableClient as V, VariableResource as a };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.js';
|
|
2
|
+
import { Workflow, WorkflowUpdate, WorkflowActivateRequest, Tag, TagId, WorkflowVersion, ExecutionListParams, ExecutionListResponse, ExecutionGetParams, Execution, WorkflowListParams, WorkflowListResponse, WorkflowGetParams, WorkflowCreate } from './types.js';
|
|
3
|
+
import BaseClient from './clients/base.js';
|
|
4
|
+
import { E as ExecutionClient, a as ExecutionResource } from './execution-BjR6z5Vu.js';
|
|
5
|
+
import BaseResource from './resources/base.js';
|
|
6
|
+
|
|
7
|
+
interface WorkflowExecutionResourceCollection {
|
|
8
|
+
list(params?: Omit<ExecutionListParams, 'workflowId'>): Promise<ExecutionListResponse>;
|
|
9
|
+
listResources(params?: Omit<ExecutionListParams, 'workflowId'>): Promise<PaginatedResponse<ExecutionResource>>;
|
|
10
|
+
get(id: number, params?: ExecutionGetParams): Promise<Execution>;
|
|
11
|
+
getResource(id: number, params?: ExecutionGetParams): Promise<ExecutionResource>;
|
|
12
|
+
}
|
|
13
|
+
declare class WorkflowResource extends BaseResource<Workflow> {
|
|
14
|
+
private readonly workflows;
|
|
15
|
+
private readonly executionsClient;
|
|
16
|
+
constructor(workflows: WorkflowClient, executionsClient: ExecutionClient, workflow: Workflow);
|
|
17
|
+
get id(): string;
|
|
18
|
+
get name(): string;
|
|
19
|
+
get active(): boolean;
|
|
20
|
+
get isArchived(): boolean;
|
|
21
|
+
get versionId(): string;
|
|
22
|
+
update(data: WorkflowUpdate): Promise<this>;
|
|
23
|
+
delete(): Promise<Workflow>;
|
|
24
|
+
activate(data?: WorkflowActivateRequest): Promise<this>;
|
|
25
|
+
deactivate(): Promise<this>;
|
|
26
|
+
archive(): Promise<this>;
|
|
27
|
+
unarchive(): Promise<this>;
|
|
28
|
+
transfer(destinationProjectId: string): Promise<void>;
|
|
29
|
+
getTags(): Promise<Tag[]>;
|
|
30
|
+
updateTags(tags: TagId[]): Promise<Tag[]>;
|
|
31
|
+
getVersion(versionId: string): Promise<WorkflowVersion>;
|
|
32
|
+
executions(): WorkflowExecutionResourceCollection;
|
|
33
|
+
private hasExecutionInWorkflow;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class WorkflowClient extends BaseClient {
|
|
37
|
+
list(params?: WorkflowListParams): Promise<WorkflowListResponse>;
|
|
38
|
+
get(id: string, params?: WorkflowGetParams): Promise<Workflow>;
|
|
39
|
+
getResource(id: string, params?: WorkflowGetParams): Promise<WorkflowResource>;
|
|
40
|
+
listResources(params?: WorkflowListParams): Promise<PaginatedResponse<WorkflowResource>>;
|
|
41
|
+
create(data: WorkflowCreate): Promise<Workflow>;
|
|
42
|
+
createResource(data: WorkflowCreate): Promise<WorkflowResource>;
|
|
43
|
+
update(id: string, data: WorkflowUpdate): Promise<Workflow>;
|
|
44
|
+
updateResource(id: string, data: WorkflowUpdate): Promise<WorkflowResource>;
|
|
45
|
+
delete(id: string): Promise<Workflow>;
|
|
46
|
+
activate(id: string, data?: WorkflowActivateRequest): Promise<Workflow>;
|
|
47
|
+
deactivate(id: string): Promise<Workflow>;
|
|
48
|
+
archive(id: string): Promise<Workflow>;
|
|
49
|
+
unarchive(id: string): Promise<Workflow>;
|
|
50
|
+
transfer(id: string, destinationProjectId: string): Promise<void>;
|
|
51
|
+
getTags(id: string): Promise<Tag[]>;
|
|
52
|
+
updateTags(id: string, tags: TagId[]): Promise<Tag[]>;
|
|
53
|
+
getVersion(id: string, versionId: string): Promise<WorkflowVersion>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { WorkflowClient as W, type WorkflowExecutionResourceCollection as a, WorkflowResource as b };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PaginatedResponse } from './pagination.cjs';
|
|
2
|
+
import { Workflow, WorkflowUpdate, WorkflowActivateRequest, Tag, TagId, WorkflowVersion, ExecutionListParams, ExecutionListResponse, ExecutionGetParams, Execution, WorkflowListParams, WorkflowListResponse, WorkflowGetParams, WorkflowCreate } from './types.cjs';
|
|
3
|
+
import BaseClient from './clients/base.cjs';
|
|
4
|
+
import { E as ExecutionClient, a as ExecutionResource } from './execution-C0c9utwa.cjs';
|
|
5
|
+
import BaseResource from './resources/base.cjs';
|
|
6
|
+
|
|
7
|
+
interface WorkflowExecutionResourceCollection {
|
|
8
|
+
list(params?: Omit<ExecutionListParams, 'workflowId'>): Promise<ExecutionListResponse>;
|
|
9
|
+
listResources(params?: Omit<ExecutionListParams, 'workflowId'>): Promise<PaginatedResponse<ExecutionResource>>;
|
|
10
|
+
get(id: number, params?: ExecutionGetParams): Promise<Execution>;
|
|
11
|
+
getResource(id: number, params?: ExecutionGetParams): Promise<ExecutionResource>;
|
|
12
|
+
}
|
|
13
|
+
declare class WorkflowResource extends BaseResource<Workflow> {
|
|
14
|
+
private readonly workflows;
|
|
15
|
+
private readonly executionsClient;
|
|
16
|
+
constructor(workflows: WorkflowClient, executionsClient: ExecutionClient, workflow: Workflow);
|
|
17
|
+
get id(): string;
|
|
18
|
+
get name(): string;
|
|
19
|
+
get active(): boolean;
|
|
20
|
+
get isArchived(): boolean;
|
|
21
|
+
get versionId(): string;
|
|
22
|
+
update(data: WorkflowUpdate): Promise<this>;
|
|
23
|
+
delete(): Promise<Workflow>;
|
|
24
|
+
activate(data?: WorkflowActivateRequest): Promise<this>;
|
|
25
|
+
deactivate(): Promise<this>;
|
|
26
|
+
archive(): Promise<this>;
|
|
27
|
+
unarchive(): Promise<this>;
|
|
28
|
+
transfer(destinationProjectId: string): Promise<void>;
|
|
29
|
+
getTags(): Promise<Tag[]>;
|
|
30
|
+
updateTags(tags: TagId[]): Promise<Tag[]>;
|
|
31
|
+
getVersion(versionId: string): Promise<WorkflowVersion>;
|
|
32
|
+
executions(): WorkflowExecutionResourceCollection;
|
|
33
|
+
private hasExecutionInWorkflow;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class WorkflowClient extends BaseClient {
|
|
37
|
+
list(params?: WorkflowListParams): Promise<WorkflowListResponse>;
|
|
38
|
+
get(id: string, params?: WorkflowGetParams): Promise<Workflow>;
|
|
39
|
+
getResource(id: string, params?: WorkflowGetParams): Promise<WorkflowResource>;
|
|
40
|
+
listResources(params?: WorkflowListParams): Promise<PaginatedResponse<WorkflowResource>>;
|
|
41
|
+
create(data: WorkflowCreate): Promise<Workflow>;
|
|
42
|
+
createResource(data: WorkflowCreate): Promise<WorkflowResource>;
|
|
43
|
+
update(id: string, data: WorkflowUpdate): Promise<Workflow>;
|
|
44
|
+
updateResource(id: string, data: WorkflowUpdate): Promise<WorkflowResource>;
|
|
45
|
+
delete(id: string): Promise<Workflow>;
|
|
46
|
+
activate(id: string, data?: WorkflowActivateRequest): Promise<Workflow>;
|
|
47
|
+
deactivate(id: string): Promise<Workflow>;
|
|
48
|
+
archive(id: string): Promise<Workflow>;
|
|
49
|
+
unarchive(id: string): Promise<Workflow>;
|
|
50
|
+
transfer(id: string, destinationProjectId: string): Promise<void>;
|
|
51
|
+
getTags(id: string): Promise<Tag[]>;
|
|
52
|
+
updateTags(id: string, tags: TagId[]): Promise<Tag[]>;
|
|
53
|
+
getVersion(id: string, versionId: string): Promise<WorkflowVersion>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { WorkflowClient as W, type WorkflowExecutionResourceCollection as a, WorkflowResource as b };
|
package/chunk-2DSU5F3J.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseHandle
|
|
3
|
-
} from "./chunk-OHQBXLTJ.js";
|
|
4
|
-
|
|
5
|
-
// src/handles/project.ts
|
|
6
|
-
var ProjectHandle = class extends BaseHandle {
|
|
7
|
-
async list(params) {
|
|
8
|
-
return this.http.get("/projects", params);
|
|
9
|
-
}
|
|
10
|
-
async create(data) {
|
|
11
|
-
await this.http.post("/projects", data);
|
|
12
|
-
}
|
|
13
|
-
async update(id, data) {
|
|
14
|
-
await this.http.put(`/projects/${id}`, data);
|
|
15
|
-
}
|
|
16
|
-
async delete(id) {
|
|
17
|
-
await this.http.delete(`/projects/${id}`);
|
|
18
|
-
}
|
|
19
|
-
async listMembers(projectId, params) {
|
|
20
|
-
return this.http.get(`/projects/${projectId}/users`, params);
|
|
21
|
-
}
|
|
22
|
-
async addMembers(projectId, relations) {
|
|
23
|
-
await this.http.post(`/projects/${projectId}/users`, { relations });
|
|
24
|
-
}
|
|
25
|
-
async removeMember(projectId, userId) {
|
|
26
|
-
await this.http.delete(`/projects/${projectId}/users/${userId}`);
|
|
27
|
-
}
|
|
28
|
-
async changeMemberRole(projectId, userId, role) {
|
|
29
|
-
const data = { role };
|
|
30
|
-
await this.http.patch(`/projects/${projectId}/users/${userId}`, data);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
ProjectHandle
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=chunk-2DSU5F3J.js.map
|
package/chunk-2JBRCS53.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseHandle
|
|
3
|
-
} from "./chunk-OHQBXLTJ.js";
|
|
4
|
-
|
|
5
|
-
// src/handles/tag.ts
|
|
6
|
-
var TagHandle = class extends BaseHandle {
|
|
7
|
-
async list(params) {
|
|
8
|
-
return this.http.get("/tags", params);
|
|
9
|
-
}
|
|
10
|
-
async get(id) {
|
|
11
|
-
return this.http.get(`/tags/${id}`);
|
|
12
|
-
}
|
|
13
|
-
async create(data) {
|
|
14
|
-
return this.http.post("/tags", data);
|
|
15
|
-
}
|
|
16
|
-
async update(id, data) {
|
|
17
|
-
return this.http.put(`/tags/${id}`, data);
|
|
18
|
-
}
|
|
19
|
-
async delete(id) {
|
|
20
|
-
return this.http.delete(`/tags/${id}`);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
TagHandle
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=chunk-2JBRCS53.js.map
|
package/chunk-4QPHBRTA.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseHandle
|
|
3
|
-
} from "./chunk-OHQBXLTJ.js";
|
|
4
|
-
|
|
5
|
-
// src/handles/audit.ts
|
|
6
|
-
var AuditHandle = class extends BaseHandle {
|
|
7
|
-
async generate(data) {
|
|
8
|
-
return this.http.post("/audit", data);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
AuditHandle
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=chunk-4QPHBRTA.js.map
|
package/chunk-ACVK7R2L.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/handles/base.ts
|
|
2
|
-
var BaseHandle = class {
|
|
3
|
-
constructor(http) {
|
|
4
|
-
this.http = http;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.BaseHandle = BaseHandle;
|
|
12
|
-
//# sourceMappingURL=chunk-ACVK7R2L.cjs.map
|
package/chunk-BI6R6RFB.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseHandle
|
|
3
|
-
} from "./chunk-OHQBXLTJ.js";
|
|
4
|
-
|
|
5
|
-
// src/handles/execution.ts
|
|
6
|
-
var ExecutionHandle = class extends BaseHandle {
|
|
7
|
-
async list(params) {
|
|
8
|
-
return this.http.get("/executions", params);
|
|
9
|
-
}
|
|
10
|
-
async get(id, params) {
|
|
11
|
-
return this.http.get(`/executions/${id}`, params);
|
|
12
|
-
}
|
|
13
|
-
async delete(id) {
|
|
14
|
-
return this.http.delete(`/executions/${id}`);
|
|
15
|
-
}
|
|
16
|
-
async retry(id, data) {
|
|
17
|
-
return this.http.post(`/executions/${id}/retry`, data);
|
|
18
|
-
}
|
|
19
|
-
async stop(id) {
|
|
20
|
-
return this.http.post(`/executions/${id}/stop`);
|
|
21
|
-
}
|
|
22
|
-
async stopMany(data) {
|
|
23
|
-
return this.http.post("/executions/stop", data);
|
|
24
|
-
}
|
|
25
|
-
async getTags(id) {
|
|
26
|
-
return this.http.get(`/executions/${id}/tags`);
|
|
27
|
-
}
|
|
28
|
-
async updateTags(id, tags) {
|
|
29
|
-
return this.http.put(`/executions/${id}/tags`, tags);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
ExecutionHandle
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=chunk-BI6R6RFB.js.map
|
package/chunk-CDYFI72K.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseHandle
|
|
3
|
-
} from "./chunk-OHQBXLTJ.js";
|
|
4
|
-
|
|
5
|
-
// src/handles/user.ts
|
|
6
|
-
var UserHandle = class extends BaseHandle {
|
|
7
|
-
async list(params) {
|
|
8
|
-
return this.http.get("/users", params);
|
|
9
|
-
}
|
|
10
|
-
async get(id, params) {
|
|
11
|
-
return this.http.get(`/users/${id}`, params);
|
|
12
|
-
}
|
|
13
|
-
async create(data) {
|
|
14
|
-
return this.http.post("/users", data);
|
|
15
|
-
}
|
|
16
|
-
async delete(id) {
|
|
17
|
-
await this.http.delete(`/users/${id}`);
|
|
18
|
-
}
|
|
19
|
-
async changeRole(id, newRoleName) {
|
|
20
|
-
const data = { newRoleName };
|
|
21
|
-
await this.http.patch(`/users/${id}/role`, data);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
UserHandle
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=chunk-CDYFI72K.js.map
|