@egose/n8n-client 0.2.1 → 0.4.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +8 -0
  3. package/{chunk-6JJ6RA5B.cjs → chunk-2T5KNPFX.cjs} +8 -1
  4. package/{chunk-RPB226OX.cjs → chunk-6MUNAE5L.cjs} +6 -6
  5. package/{chunk-3FDDCKAY.js → chunk-AS5WBSR3.js} +6 -6
  6. package/{chunk-TY76RTXQ.cjs → chunk-CWQXMALU.cjs} +7 -1
  7. package/{chunk-YSWBOCXJ.cjs → chunk-D4GV65GT.cjs} +10 -1
  8. package/{chunk-KRPRS2E5.cjs → chunk-DYUXQTFU.cjs} +6 -6
  9. package/{chunk-7H75UBMH.cjs → chunk-FB754K3A.cjs} +7 -1
  10. package/{chunk-4VK7K4IF.js → chunk-FOZHT2ZK.js} +7 -1
  11. package/{chunk-T62VHXNY.js → chunk-FSN23TT6.js} +7 -1
  12. package/{chunk-NBLW25ME.cjs → chunk-GUTI2M4U.cjs} +7 -1
  13. package/{chunk-GZ3POWDP.cjs → chunk-I2VZ7J4P.cjs} +6 -6
  14. package/{chunk-MMN2UKTI.cjs → chunk-JFTS6N3U.cjs} +11 -1
  15. package/{chunk-54N6YD4R.js → chunk-KBFYNP56.js} +2 -2
  16. package/{chunk-ETVDSJLY.js → chunk-KKFA5PJR.js} +2 -2
  17. package/{chunk-I4MMTW33.js → chunk-KMFHNXIH.js} +13 -1
  18. package/{chunk-W5P34RYO.cjs → chunk-O7AV3KS4.cjs} +31 -3
  19. package/{chunk-2R6A6NJE.js → chunk-PEUZAXIY.js} +10 -1
  20. package/{chunk-DTDNBA7W.cjs → chunk-TFMO4KWG.cjs} +4 -4
  21. package/{chunk-3YWWR6UD.cjs → chunk-TUWIRWCR.cjs} +14 -2
  22. package/{chunk-ZIIR24GM.cjs → chunk-U7CFNNJT.cjs} +11 -11
  23. package/{chunk-YE2OS2KS.js → chunk-UCSJX4UC.js} +8 -1
  24. package/{chunk-BQ2OTUXQ.js → chunk-UZYRG5OI.js} +2 -2
  25. package/{chunk-PT5DDLHC.js → chunk-VOCYFQYV.js} +2 -2
  26. package/{chunk-5DDMSYH2.js → chunk-W23TMDMQ.js} +2 -2
  27. package/{chunk-XJP6FPN3.js → chunk-WDO7B3R6.js} +11 -1
  28. package/{chunk-FTIVM52X.cjs → chunk-WO3YZAZT.cjs} +6 -6
  29. package/{chunk-YHSDCE3I.js → chunk-WQJUADC6.js} +7 -1
  30. package/{chunk-LQULSPET.cjs → chunk-WWVQNBTG.cjs} +6 -6
  31. package/{chunk-QJR4WFNV.js → chunk-YAYKWLOQ.js} +2 -2
  32. package/{chunk-GEWLPVNV.cjs → chunk-YWK563XR.cjs} +6 -6
  33. package/{chunk-LTYQTCHM.js → chunk-Z7XHC77E.js} +30 -2
  34. package/{chunk-HISH4ORK.js → chunk-ZPE32BQU.js} +2 -2
  35. package/clients/community-package.cjs +3 -3
  36. package/clients/community-package.d.cts +1 -1
  37. package/clients/community-package.d.ts +1 -1
  38. package/clients/community-package.js +2 -2
  39. package/clients/credential.cjs +3 -3
  40. package/clients/credential.d.cts +1 -1
  41. package/clients/credential.d.ts +1 -1
  42. package/clients/credential.js +2 -2
  43. package/clients/data-table.cjs +3 -3
  44. package/clients/data-table.d.cts +1 -1
  45. package/clients/data-table.d.ts +1 -1
  46. package/clients/data-table.js +2 -2
  47. package/clients/folder.cjs +3 -3
  48. package/clients/folder.d.cts +1 -1
  49. package/clients/folder.d.ts +1 -1
  50. package/clients/folder.js +2 -2
  51. package/clients/project.cjs +11 -11
  52. package/clients/project.d.cts +5 -5
  53. package/clients/project.d.ts +5 -5
  54. package/clients/project.js +10 -10
  55. package/clients/tag.cjs +3 -3
  56. package/clients/tag.d.cts +1 -1
  57. package/clients/tag.d.ts +1 -1
  58. package/clients/tag.js +2 -2
  59. package/clients/variable.cjs +3 -3
  60. package/clients/variable.d.cts +1 -1
  61. package/clients/variable.d.ts +1 -1
  62. package/clients/variable.js +2 -2
  63. package/clients/workflow.cjs +3 -3
  64. package/clients/workflow.d.cts +1 -1
  65. package/clients/workflow.d.ts +1 -1
  66. package/clients/workflow.js +2 -2
  67. package/{community-package-DBpReCPV.d.cts → community-package-BvmF_pP6.d.cts} +1 -0
  68. package/{community-package-CyzAqqwH.d.ts → community-package-xeQrLKme.d.ts} +1 -0
  69. package/{credential-CEH7XbGn.d.cts → credential-DPt1le6v.d.cts} +1 -0
  70. package/{credential-BWcrGfqd.d.ts → credential-Knm3Xhxp.d.ts} +1 -0
  71. package/{data-table-CHGUClGF.d.ts → data-table-Cg92UE2v.d.ts} +1 -0
  72. package/{data-table-CzR5kl9T.d.cts → data-table-ablBPGNU.d.cts} +1 -0
  73. package/{folder-DvgIxSea.d.cts → folder-DDe0xOyE.d.cts} +1 -0
  74. package/{folder-bjRPcy2j.d.ts → folder-JrOxuQPO.d.ts} +1 -0
  75. package/index.cjs +67 -26
  76. package/index.d.cts +74 -16
  77. package/index.d.ts +74 -16
  78. package/index.js +57 -16
  79. package/package.json +1 -1
  80. package/{project-BS1fXSLW.d.cts → project-CfXFXbv5.d.cts} +13 -4
  81. package/{project-uws9k24H.d.ts → project-DwqDoil4.d.ts} +13 -4
  82. package/resources/community-package.cjs +2 -2
  83. package/resources/community-package.d.cts +1 -1
  84. package/resources/community-package.d.ts +1 -1
  85. package/resources/community-package.js +1 -1
  86. package/resources/credential.cjs +2 -2
  87. package/resources/credential.d.cts +1 -1
  88. package/resources/credential.d.ts +1 -1
  89. package/resources/credential.js +1 -1
  90. package/resources/data-table.cjs +2 -2
  91. package/resources/data-table.d.cts +1 -1
  92. package/resources/data-table.d.ts +1 -1
  93. package/resources/data-table.js +1 -1
  94. package/resources/folder.cjs +2 -2
  95. package/resources/folder.d.cts +1 -1
  96. package/resources/folder.d.ts +1 -1
  97. package/resources/folder.js +1 -1
  98. package/resources/project.cjs +3 -3
  99. package/resources/project.d.cts +5 -5
  100. package/resources/project.d.ts +5 -5
  101. package/resources/project.js +2 -2
  102. package/resources/tag.cjs +2 -2
  103. package/resources/tag.d.cts +1 -1
  104. package/resources/tag.d.ts +1 -1
  105. package/resources/tag.js +1 -1
  106. package/resources/variable.cjs +2 -2
  107. package/resources/variable.d.cts +1 -1
  108. package/resources/variable.d.ts +1 -1
  109. package/resources/variable.js +1 -1
  110. package/resources/workflow.cjs +2 -2
  111. package/resources/workflow.d.cts +1 -1
  112. package/resources/workflow.d.ts +1 -1
  113. package/resources/workflow.js +1 -1
  114. package/{tag-lmf8obZe.d.ts → tag-5nOUYuYG.d.ts} +1 -0
  115. package/{tag-CzazpR40.d.cts → tag-DGGIqWix.d.cts} +1 -0
  116. package/types.d.cts +350 -0
  117. package/types.d.ts +350 -0
  118. package/{variable-CuCiwy0G.d.cts → variable-8kNQCTQx.d.cts} +1 -0
  119. package/{variable-C2LmlaTx.d.ts → variable-MVqhrcW-.d.ts} +1 -0
  120. package/{workflow-B2nxUmWq.d.cts → workflow-BD375xvs.d.cts} +1 -0
  121. package/{workflow-8pMj_fR_.d.ts → workflow-CLUVboDB.d.ts} +1 -0
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkW5P34RYOcjs = require('./chunk-W5P34RYO.cjs');
3
+ var _chunkO7AV3KS4cjs = require('./chunk-O7AV3KS4.cjs');
4
4
 
5
5
 
6
- var _chunkDTDNBA7Wcjs = require('./chunk-DTDNBA7W.cjs');
6
+ var _chunkTFMO4KWGcjs = require('./chunk-TFMO4KWG.cjs');
7
7
 
8
8
 
9
- var _chunkGZ3POWDPcjs = require('./chunk-GZ3POWDP.cjs');
9
+ var _chunkI2VZ7J4Pcjs = require('./chunk-I2VZ7J4P.cjs');
10
10
 
11
11
 
12
- var _chunkFTIVM52Xcjs = require('./chunk-FTIVM52X.cjs');
12
+ var _chunkWO3YZAZTcjs = require('./chunk-WO3YZAZT.cjs');
13
13
 
14
14
 
15
15
  var _chunkYBMEMKCNcjs = require('./chunk-YBMEMKCN.cjs');
16
16
 
17
17
 
18
- var _chunkRPB226OXcjs = require('./chunk-RPB226OX.cjs');
18
+ var _chunk6MUNAE5Lcjs = require('./chunk-6MUNAE5L.cjs');
19
19
 
20
20
 
21
21
  var _chunkLC3TKRMXcjs = require('./chunk-LC3TKRMX.cjs');
@@ -65,12 +65,12 @@ var ProjectClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
65
65
  await this.http.patch(`/projects/${projectId}/users/${userId}`, data);
66
66
  }
67
67
  createResource(project) {
68
- return new (0, _chunkW5P34RYOcjs.ProjectResource)(
68
+ return new (0, _chunkO7AV3KS4cjs.ProjectResource)(
69
69
  this,
70
- new (0, _chunkGZ3POWDPcjs.WorkflowClient)(this.http),
71
- new (0, _chunkRPB226OXcjs.FolderClient)(this.http, project.id),
72
- new (0, _chunkDTDNBA7Wcjs.VariableClient)(this.http),
73
- new (0, _chunkFTIVM52Xcjs.DataTableClient)(this.http),
70
+ new (0, _chunkI2VZ7J4Pcjs.WorkflowClient)(this.http),
71
+ new (0, _chunk6MUNAE5Lcjs.FolderClient)(this.http, project.id),
72
+ new (0, _chunkTFMO4KWGcjs.VariableClient)(this.http),
73
+ new (0, _chunkWO3YZAZTcjs.DataTableClient)(this.http),
74
74
  new (0, _chunkYBMEMKCNcjs.ExecutionClient)(this.http),
75
75
  project
76
76
  );
@@ -92,4 +92,4 @@ var ProjectClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
92
92
 
93
93
 
94
94
  exports.ProjectClient = ProjectClient;
95
- //# sourceMappingURL=chunk-ZIIR24GM.cjs.map
95
+ //# sourceMappingURL=chunk-U7CFNNJT.cjs.map
@@ -21,6 +21,13 @@ var FolderResource = class extends BaseResource {
21
21
  async update(data) {
22
22
  return this.replaceSnapshot(await this.folders.update(this.id, data));
23
23
  }
24
+ async patch(data) {
25
+ return this.update({
26
+ name: this.data.name,
27
+ parentFolderId: this.data.parentFolderId,
28
+ ...data
29
+ });
30
+ }
24
31
  async delete(transferToFolderId) {
25
32
  await this.folders.delete(this.id, transferToFolderId);
26
33
  }
@@ -29,4 +36,4 @@ var FolderResource = class extends BaseResource {
29
36
  export {
30
37
  FolderResource
31
38
  };
32
- //# sourceMappingURL=chunk-YE2OS2KS.js.map
39
+ //# sourceMappingURL=chunk-UCSJX4UC.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DataTableResource
3
- } from "./chunk-T62VHXNY.js";
3
+ } from "./chunk-FSN23TT6.js";
4
4
  import {
5
5
  BaseClient
6
6
  } from "./chunk-Q6FSREKN.js";
@@ -70,4 +70,4 @@ var DataTableClient = class extends BaseClient {
70
70
  export {
71
71
  DataTableClient
72
72
  };
73
- //# sourceMappingURL=chunk-BQ2OTUXQ.js.map
73
+ //# sourceMappingURL=chunk-UZYRG5OI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TagResource
3
- } from "./chunk-4VK7K4IF.js";
3
+ } from "./chunk-FOZHT2ZK.js";
4
4
  import {
5
5
  BaseClient
6
6
  } from "./chunk-Q6FSREKN.js";
@@ -43,4 +43,4 @@ var TagClient = class extends BaseClient {
43
43
  export {
44
44
  TagClient
45
45
  };
46
- //# sourceMappingURL=chunk-PT5DDLHC.js.map
46
+ //# sourceMappingURL=chunk-VOCYFQYV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FolderResource
3
- } from "./chunk-YE2OS2KS.js";
3
+ } from "./chunk-UCSJX4UC.js";
4
4
  import {
5
5
  BaseClient
6
6
  } from "./chunk-Q6FSREKN.js";
@@ -51,4 +51,4 @@ var FolderClient = class extends BaseClient {
51
51
  export {
52
52
  FolderClient
53
53
  };
54
- //# sourceMappingURL=chunk-5DDMSYH2.js.map
54
+ //# sourceMappingURL=chunk-W23TMDMQ.js.map
@@ -21,6 +21,16 @@ var CredentialResource = class extends BaseResource {
21
21
  async update(data) {
22
22
  return this.replaceSnapshot(await this.credentials.update(this.id, data));
23
23
  }
24
+ async patch(data) {
25
+ return this.update({
26
+ name: this.data.name,
27
+ type: this.data.type,
28
+ ..."data" in this.data && this.data.data ? { data: this.data.data } : {},
29
+ ..."isGlobal" in this.data ? { isGlobal: this.data.isGlobal } : {},
30
+ ...this.data.isResolvable !== void 0 ? { isResolvable: this.data.isResolvable } : {},
31
+ ...data
32
+ });
33
+ }
24
34
  async delete() {
25
35
  return this.credentials.delete(this.id);
26
36
  }
@@ -38,4 +48,4 @@ var CredentialResource = class extends BaseResource {
38
48
  export {
39
49
  CredentialResource
40
50
  };
41
- //# sourceMappingURL=chunk-XJP6FPN3.js.map
51
+ //# sourceMappingURL=chunk-WDO7B3R6.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNBLW25MEcjs = require('./chunk-NBLW25ME.cjs');
3
+ var _chunkGUTI2M4Ucjs = require('./chunk-GUTI2M4U.cjs');
4
4
 
5
5
 
6
6
  var _chunk4M2HGY3Fcjs = require('./chunk-4M2HGY3F.cjs');
@@ -14,12 +14,12 @@ var DataTableClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
14
14
  return this.http.get(`/data-tables/${id}`);
15
15
  }
16
16
  async getResource(id) {
17
- return new (0, _chunkNBLW25MEcjs.DataTableResource)(this, await this.get(id));
17
+ return new (0, _chunkGUTI2M4Ucjs.DataTableResource)(this, await this.get(id));
18
18
  }
19
19
  async listResources(params) {
20
20
  const response = await this.list(params);
21
21
  return {
22
- data: response.data.map((dataTable) => new (0, _chunkNBLW25MEcjs.DataTableResource)(this, dataTable)),
22
+ data: response.data.map((dataTable) => new (0, _chunkGUTI2M4Ucjs.DataTableResource)(this, dataTable)),
23
23
  nextCursor: response.nextCursor
24
24
  };
25
25
  }
@@ -27,13 +27,13 @@ var DataTableClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
27
27
  return this.http.post("/data-tables", data);
28
28
  }
29
29
  async createResource(data) {
30
- return new (0, _chunkNBLW25MEcjs.DataTableResource)(this, await this.create(data));
30
+ return new (0, _chunkGUTI2M4Ucjs.DataTableResource)(this, await this.create(data));
31
31
  }
32
32
  async update(id, data) {
33
33
  return this.http.patch(`/data-tables/${id}`, data);
34
34
  }
35
35
  async updateResource(id, data) {
36
- return new (0, _chunkNBLW25MEcjs.DataTableResource)(this, await this.update(id, data));
36
+ return new (0, _chunkGUTI2M4Ucjs.DataTableResource)(this, await this.update(id, data));
37
37
  }
38
38
  async delete(id) {
39
39
  await this.http.delete(`/data-tables/${id}`);
@@ -70,4 +70,4 @@ var DataTableClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
70
70
 
71
71
 
72
72
  exports.DataTableClient = DataTableClient;
73
- //# sourceMappingURL=chunk-FTIVM52X.cjs.map
73
+ //# sourceMappingURL=chunk-WO3YZAZT.cjs.map
@@ -21,6 +21,12 @@ var CommunityPackageResource = class extends BaseResource {
21
21
  async update(data) {
22
22
  return this.replaceSnapshot(await this.communityPackages.update(this.packageName, data));
23
23
  }
24
+ async patch(data) {
25
+ return this.update({
26
+ version: this.data.installedVersion,
27
+ ...data
28
+ });
29
+ }
24
30
  async uninstall() {
25
31
  await this.communityPackages.uninstall(this.packageName);
26
32
  }
@@ -29,4 +35,4 @@ var CommunityPackageResource = class extends BaseResource {
29
35
  export {
30
36
  CommunityPackageResource
31
37
  };
32
- //# sourceMappingURL=chunk-YHSDCE3I.js.map
38
+ //# sourceMappingURL=chunk-WQJUADC6.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMMN2UKTIcjs = require('./chunk-MMN2UKTI.cjs');
3
+ var _chunkJFTS6N3Ucjs = require('./chunk-JFTS6N3U.cjs');
4
4
 
5
5
 
6
6
  var _chunk4M2HGY3Fcjs = require('./chunk-4M2HGY3F.cjs');
@@ -14,12 +14,12 @@ var CredentialClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
14
14
  return this.http.get(`/credentials/${id}`);
15
15
  }
16
16
  async getResource(id) {
17
- return new (0, _chunkMMN2UKTIcjs.CredentialResource)(this, await this.get(id));
17
+ return new (0, _chunkJFTS6N3Ucjs.CredentialResource)(this, await this.get(id));
18
18
  }
19
19
  async listResources(params) {
20
20
  const response = await this.list(params);
21
21
  return {
22
- data: response.data.map((credential) => new (0, _chunkMMN2UKTIcjs.CredentialResource)(this, credential)),
22
+ data: response.data.map((credential) => new (0, _chunkJFTS6N3Ucjs.CredentialResource)(this, credential)),
23
23
  nextCursor: response.nextCursor
24
24
  };
25
25
  }
@@ -27,13 +27,13 @@ var CredentialClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
27
27
  return this.http.post("/credentials", data);
28
28
  }
29
29
  async createResource(data) {
30
- return new (0, _chunkMMN2UKTIcjs.CredentialResource)(this, await this.create(data));
30
+ return new (0, _chunkJFTS6N3Ucjs.CredentialResource)(this, await this.create(data));
31
31
  }
32
32
  async update(id, data) {
33
33
  return this.http.patch(`/credentials/${id}`, data);
34
34
  }
35
35
  async updateResource(id, data) {
36
- return new (0, _chunkMMN2UKTIcjs.CredentialResource)(this, await this.update(id, data));
36
+ return new (0, _chunkJFTS6N3Ucjs.CredentialResource)(this, await this.update(id, data));
37
37
  }
38
38
  async delete(id) {
39
39
  return this.http.delete(`/credentials/${id}`);
@@ -52,4 +52,4 @@ var CredentialClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
52
52
 
53
53
 
54
54
  exports.CredentialClient = CredentialClient;
55
- //# sourceMappingURL=chunk-LQULSPET.cjs.map
55
+ //# sourceMappingURL=chunk-WWVQNBTG.cjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CredentialResource
3
- } from "./chunk-XJP6FPN3.js";
3
+ } from "./chunk-WDO7B3R6.js";
4
4
  import {
5
5
  BaseClient
6
6
  } from "./chunk-Q6FSREKN.js";
@@ -52,4 +52,4 @@ var CredentialClient = class extends BaseClient {
52
52
  export {
53
53
  CredentialClient
54
54
  };
55
- //# sourceMappingURL=chunk-QJR4WFNV.js.map
55
+ //# sourceMappingURL=chunk-YAYKWLOQ.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTY76RTXQcjs = require('./chunk-TY76RTXQ.cjs');
3
+ var _chunkCWQXMALUcjs = require('./chunk-CWQXMALU.cjs');
4
4
 
5
5
 
6
6
  var _chunkLC3TKRMXcjs = require('./chunk-LC3TKRMX.cjs');
@@ -15,7 +15,7 @@ var CommunityPackageClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
15
15
  }
16
16
  async listResources() {
17
17
  const communityPackages = await this.list();
18
- return communityPackages.map((communityPackage) => new (0, _chunkTY76RTXQcjs.CommunityPackageResource)(this, communityPackage));
18
+ return communityPackages.map((communityPackage) => new (0, _chunkCWQXMALUcjs.CommunityPackageResource)(this, communityPackage));
19
19
  }
20
20
  async getResource(name) {
21
21
  const communityPackages = await this.list();
@@ -23,19 +23,19 @@ var CommunityPackageClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
23
23
  if (!communityPackage) {
24
24
  throw new (0, _chunkLC3TKRMXcjs.HttpError)(404, `Community package not found: ${name}`, { name });
25
25
  }
26
- return new (0, _chunkTY76RTXQcjs.CommunityPackageResource)(this, communityPackage);
26
+ return new (0, _chunkCWQXMALUcjs.CommunityPackageResource)(this, communityPackage);
27
27
  }
28
28
  async install(data) {
29
29
  return this.http.post("/community-packages", data);
30
30
  }
31
31
  async installResource(data) {
32
- return new (0, _chunkTY76RTXQcjs.CommunityPackageResource)(this, await this.install(data));
32
+ return new (0, _chunkCWQXMALUcjs.CommunityPackageResource)(this, await this.install(data));
33
33
  }
34
34
  async update(name, data) {
35
35
  return this.http.patch(`/community-packages/${name}`, data);
36
36
  }
37
37
  async updateResource(name, data) {
38
- return new (0, _chunkTY76RTXQcjs.CommunityPackageResource)(this, await this.update(name, data));
38
+ return new (0, _chunkCWQXMALUcjs.CommunityPackageResource)(this, await this.update(name, data));
39
39
  }
40
40
  async uninstall(name) {
41
41
  await this.http.delete(`/community-packages/${name}`);
@@ -45,4 +45,4 @@ var CommunityPackageClient = class extends _chunk4M2HGY3Fcjs.BaseClient {
45
45
 
46
46
 
47
47
  exports.CommunityPackageClient = CommunityPackageClient;
48
- //# sourceMappingURL=chunk-GEWLPVNV.cjs.map
48
+ //# sourceMappingURL=chunk-YWK563XR.cjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DataTableResource
3
- } from "./chunk-T62VHXNY.js";
3
+ } from "./chunk-FSN23TT6.js";
4
4
  import {
5
5
  HttpError
6
6
  } from "./chunk-RMEH2UPX.js";
@@ -36,6 +36,12 @@ var ProjectResource = class extends BaseResource {
36
36
  await this.projects.update(this.id, data);
37
37
  return this.mergeSnapshot(data);
38
38
  }
39
+ async patch(data) {
40
+ return this.update({
41
+ name: this.data.name,
42
+ ...data
43
+ });
44
+ }
39
45
  async delete() {
40
46
  await this.projects.delete(this.id);
41
47
  }
@@ -87,6 +93,7 @@ var ProjectResource = class extends BaseResource {
87
93
  }
88
94
  return this.relations.workflows.update(id, data);
89
95
  },
96
+ patch: async (id, data) => (await this.workflows().patchResource(id, data)).data,
90
97
  updateResource: async (id, data) => {
91
98
  if (!await this.hasResourceInProject({
92
99
  listPage: (cursor) => this.relations.workflows.list({ projectId: this.id, cursor }),
@@ -95,6 +102,10 @@ var ProjectResource = class extends BaseResource {
95
102
  throw new HttpError(404, `Workflow not found in project: ${id}`, { id, projectId: this.id });
96
103
  }
97
104
  return this.relations.workflows.updateResource(id, data);
105
+ },
106
+ patchResource: async (id, data) => {
107
+ const workflow = await this.workflows().getResource(id);
108
+ return workflow.patch(data);
98
109
  }
99
110
  };
100
111
  }
@@ -107,7 +118,12 @@ var ProjectResource = class extends BaseResource {
107
118
  create: (data) => this.relations.folders.create(data),
108
119
  get: (id) => this.relations.folders.get(id),
109
120
  update: (id, data) => this.relations.folders.update(id, data),
121
+ patch: async (id, data) => (await this.folders().patchResource(id, data)).data,
110
122
  updateResource: (id, data) => this.relations.folders.updateResource(id, data),
123
+ patchResource: async (id, data) => {
124
+ const folder = await this.relations.folders.getResource(id);
125
+ return folder.patch(data);
126
+ },
111
127
  delete: (id, transferToFolderId) => this.relations.folders.delete(id, transferToFolderId)
112
128
  };
113
129
  }
@@ -119,10 +135,17 @@ var ProjectResource = class extends BaseResource {
119
135
  getResource: (id) => this.relations.variables.getResource(id, { projectId: this.id }),
120
136
  create: (data) => this.relations.variables.create({ ...data, projectId: this.id }),
121
137
  update: (id, data) => this.relations.variables.update(id, { ...data, projectId: this.id }),
138
+ patch: async (id, data) => {
139
+ await (await this.variables().getResource(id)).patch(data);
140
+ },
122
141
  updateResource: async (id, data) => {
123
142
  await this.relations.variables.update(id, { ...data, projectId: this.id });
124
143
  return this.relations.variables.getResource(id, { projectId: this.id });
125
144
  },
145
+ patchResource: async (id, data) => {
146
+ const variable = await this.relations.variables.getResource(id, { projectId: this.id });
147
+ return variable.patch(data);
148
+ },
126
149
  delete: (id) => this.relations.variables.delete(id)
127
150
  };
128
151
  }
@@ -136,10 +159,15 @@ var ProjectResource = class extends BaseResource {
136
159
  await this.getProjectDataTableOrThrow(id);
137
160
  return this.relations.dataTables.update(id, data);
138
161
  },
162
+ patch: async (id, data) => (await this.dataTables().patchResource(id, data)).data,
139
163
  updateResource: async (id, data) => {
140
164
  await this.getProjectDataTableOrThrow(id);
141
165
  return this.relations.dataTables.updateResource(id, data);
142
166
  },
167
+ patchResource: async (id, data) => {
168
+ const dataTable = await this.dataTables().getResource(id);
169
+ return dataTable.patch(data);
170
+ },
143
171
  delete: async (id) => {
144
172
  await this.getProjectDataTableOrThrow(id);
145
173
  await this.relations.dataTables.delete(id);
@@ -193,4 +221,4 @@ var ProjectResource = class extends BaseResource {
193
221
  export {
194
222
  ProjectResource
195
223
  };
196
- //# sourceMappingURL=chunk-LTYQTCHM.js.map
224
+ //# sourceMappingURL=chunk-Z7XHC77E.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VariableResource
3
- } from "./chunk-2R6A6NJE.js";
3
+ } from "./chunk-PEUZAXIY.js";
4
4
  import {
5
5
  HttpError
6
6
  } from "./chunk-RMEH2UPX.js";
@@ -56,4 +56,4 @@ var VariableClient = class extends BaseClient {
56
56
  export {
57
57
  VariableClient
58
58
  };
59
- //# sourceMappingURL=chunk-HISH4ORK.js.map
59
+ //# sourceMappingURL=chunk-ZPE32BQU.js.map
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkGEWLPVNVcjs = require('../chunk-GEWLPVNV.cjs');
4
- require('../chunk-TY76RTXQ.cjs');
3
+ var _chunkYWK563XRcjs = require('../chunk-YWK563XR.cjs');
4
+ require('../chunk-CWQXMALU.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 = _chunkGEWLPVNVcjs.CommunityPackageClient;
11
+ exports.default = _chunkYWK563XRcjs.CommunityPackageClient;
12
12
  //# sourceMappingURL=community-package.cjs.map
@@ -1,6 +1,6 @@
1
1
  import '../types.cjs';
2
2
  import './base.cjs';
3
- export { C as default } from '../community-package-DBpReCPV.cjs';
3
+ export { C as default } from '../community-package-BvmF_pP6.cjs';
4
4
  import '../pagination.cjs';
5
5
  import '../http-client.cjs';
6
6
  import '../resources/base.cjs';
@@ -1,6 +1,6 @@
1
1
  import '../types.js';
2
2
  import './base.js';
3
- export { C as default } from '../community-package-CyzAqqwH.js';
3
+ export { C as default } from '../community-package-xeQrLKme.js';
4
4
  import '../pagination.js';
5
5
  import '../http-client.js';
6
6
  import '../resources/base.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CommunityPackageClient
3
- } from "../chunk-ETVDSJLY.js";
4
- import "../chunk-YHSDCE3I.js";
3
+ } from "../chunk-KKFA5PJR.js";
4
+ import "../chunk-WQJUADC6.js";
5
5
  import "../chunk-RMEH2UPX.js";
6
6
  import "../chunk-DURH6QOX.js";
7
7
  import "../chunk-TLBDBRPJ.js";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLQULSPETcjs = require('../chunk-LQULSPET.cjs');
4
- require('../chunk-MMN2UKTI.cjs');
3
+ var _chunkWWVQNBTGcjs = require('../chunk-WWVQNBTG.cjs');
4
+ require('../chunk-JFTS6N3U.cjs');
5
5
  require('../chunk-FIKGC2EL.cjs');
6
6
  require('../chunk-4M2HGY3F.cjs');
7
7
 
8
8
 
9
- exports.default = _chunkLQULSPETcjs.CredentialClient;
9
+ exports.default = _chunkWWVQNBTGcjs.CredentialClient;
10
10
  //# sourceMappingURL=credential.cjs.map
@@ -1,6 +1,6 @@
1
1
  import '../pagination.cjs';
2
2
  import '../types.cjs';
3
3
  import './base.cjs';
4
- export { C as default } from '../credential-CEH7XbGn.cjs';
4
+ export { C as default } from '../credential-DPt1le6v.cjs';
5
5
  import '../http-client.cjs';
6
6
  import '../resources/base.cjs';
@@ -1,6 +1,6 @@
1
1
  import '../pagination.js';
2
2
  import '../types.js';
3
3
  import './base.js';
4
- export { C as default } from '../credential-BWcrGfqd.js';
4
+ export { C as default } from '../credential-Knm3Xhxp.js';
5
5
  import '../http-client.js';
6
6
  import '../resources/base.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CredentialClient
3
- } from "../chunk-QJR4WFNV.js";
4
- import "../chunk-XJP6FPN3.js";
3
+ } from "../chunk-YAYKWLOQ.js";
4
+ import "../chunk-WDO7B3R6.js";
5
5
  import "../chunk-TLBDBRPJ.js";
6
6
  import "../chunk-Q6FSREKN.js";
7
7
  export {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFTIVM52Xcjs = require('../chunk-FTIVM52X.cjs');
4
- require('../chunk-NBLW25ME.cjs');
3
+ var _chunkWO3YZAZTcjs = require('../chunk-WO3YZAZT.cjs');
4
+ require('../chunk-GUTI2M4U.cjs');
5
5
  require('../chunk-FIKGC2EL.cjs');
6
6
  require('../chunk-4M2HGY3F.cjs');
7
7
 
8
8
 
9
- exports.default = _chunkFTIVM52Xcjs.DataTableClient;
9
+ exports.default = _chunkWO3YZAZTcjs.DataTableClient;
10
10
  //# sourceMappingURL=data-table.cjs.map
@@ -1,6 +1,6 @@
1
1
  import '../pagination.cjs';
2
2
  import '../types.cjs';
3
3
  import './base.cjs';
4
- export { D as default } from '../data-table-CzR5kl9T.cjs';
4
+ export { D as default } from '../data-table-ablBPGNU.cjs';
5
5
  import '../http-client.cjs';
6
6
  import '../resources/base.cjs';
@@ -1,6 +1,6 @@
1
1
  import '../pagination.js';
2
2
  import '../types.js';
3
3
  import './base.js';
4
- export { D as default } from '../data-table-CHGUClGF.js';
4
+ export { D as default } from '../data-table-Cg92UE2v.js';
5
5
  import '../http-client.js';
6
6
  import '../resources/base.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DataTableClient
3
- } from "../chunk-BQ2OTUXQ.js";
4
- import "../chunk-T62VHXNY.js";
3
+ } from "../chunk-UZYRG5OI.js";
4
+ import "../chunk-FSN23TT6.js";
5
5
  import "../chunk-TLBDBRPJ.js";
6
6
  import "../chunk-Q6FSREKN.js";
7
7
  export {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRPB226OXcjs = require('../chunk-RPB226OX.cjs');
4
- require('../chunk-6JJ6RA5B.cjs');
3
+ var _chunk6MUNAE5Lcjs = require('../chunk-6MUNAE5L.cjs');
4
+ require('../chunk-2T5KNPFX.cjs');
5
5
  require('../chunk-FIKGC2EL.cjs');
6
6
  require('../chunk-4M2HGY3F.cjs');
7
7
 
8
8
 
9
- exports.default = _chunkRPB226OXcjs.FolderClient;
9
+ exports.default = _chunk6MUNAE5Lcjs.FolderClient;
10
10
  //# sourceMappingURL=folder.cjs.map
@@ -2,5 +2,5 @@ import '../pagination.cjs';
2
2
  import '../http-client.cjs';
3
3
  import '../types.cjs';
4
4
  import './base.cjs';
5
- export { F as default } from '../folder-DvgIxSea.cjs';
5
+ export { F as default } from '../folder-DDe0xOyE.cjs';
6
6
  import '../resources/base.cjs';
@@ -2,5 +2,5 @@ import '../pagination.js';
2
2
  import '../http-client.js';
3
3
  import '../types.js';
4
4
  import './base.js';
5
- export { F as default } from '../folder-bjRPcy2j.js';
5
+ export { F as default } from '../folder-JrOxuQPO.js';
6
6
  import '../resources/base.js';
package/clients/folder.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FolderClient
3
- } from "../chunk-5DDMSYH2.js";
4
- import "../chunk-YE2OS2KS.js";
3
+ } from "../chunk-W23TMDMQ.js";
4
+ import "../chunk-UCSJX4UC.js";
5
5
  import "../chunk-TLBDBRPJ.js";
6
6
  import "../chunk-Q6FSREKN.js";
7
7
  export {
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZIIR24GMcjs = require('../chunk-ZIIR24GM.cjs');
4
- require('../chunk-W5P34RYO.cjs');
5
- require('../chunk-DTDNBA7W.cjs');
6
- require('../chunk-YSWBOCXJ.cjs');
7
- require('../chunk-GZ3POWDP.cjs');
8
- require('../chunk-3YWWR6UD.cjs');
9
- require('../chunk-FTIVM52X.cjs');
10
- require('../chunk-NBLW25ME.cjs');
3
+ var _chunkU7CFNNJTcjs = require('../chunk-U7CFNNJT.cjs');
4
+ require('../chunk-O7AV3KS4.cjs');
5
+ require('../chunk-TFMO4KWG.cjs');
6
+ require('../chunk-D4GV65GT.cjs');
7
+ require('../chunk-I2VZ7J4P.cjs');
8
+ require('../chunk-TUWIRWCR.cjs');
9
+ require('../chunk-WO3YZAZT.cjs');
10
+ require('../chunk-GUTI2M4U.cjs');
11
11
  require('../chunk-YBMEMKCN.cjs');
12
12
  require('../chunk-Z3D4URRD.cjs');
13
- require('../chunk-RPB226OX.cjs');
14
- require('../chunk-6JJ6RA5B.cjs');
13
+ require('../chunk-6MUNAE5L.cjs');
14
+ require('../chunk-2T5KNPFX.cjs');
15
15
  require('../chunk-LC3TKRMX.cjs');
16
16
  require('../chunk-7B5DLJYY.cjs');
17
17
  require('../chunk-FIKGC2EL.cjs');
18
18
  require('../chunk-4M2HGY3F.cjs');
19
19
 
20
20
 
21
- exports.default = _chunkZIIR24GMcjs.ProjectClient;
21
+ exports.default = _chunkU7CFNNJTcjs.ProjectClient;
22
22
  //# sourceMappingURL=project.cjs.map
@@ -1,11 +1,11 @@
1
1
  import '../pagination.cjs';
2
2
  import '../types.cjs';
3
3
  import './base.cjs';
4
- export { P as default } from '../project-BS1fXSLW.cjs';
4
+ export { P as default } from '../project-CfXFXbv5.cjs';
5
5
  import '../http-client.cjs';
6
- import '../data-table-CzR5kl9T.cjs';
6
+ import '../data-table-ablBPGNU.cjs';
7
7
  import '../resources/base.cjs';
8
8
  import '../execution-C0c9utwa.cjs';
9
- import '../folder-DvgIxSea.cjs';
10
- import '../variable-CuCiwy0G.cjs';
11
- import '../workflow-B2nxUmWq.cjs';
9
+ import '../folder-DDe0xOyE.cjs';
10
+ import '../variable-8kNQCTQx.cjs';
11
+ import '../workflow-BD375xvs.cjs';