@n8n/rest-api-client 1.2.0 → 1.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 (70) hide show
  1. package/dist/api/index.cjs +33 -9
  2. package/dist/api/index.cjs.map +1 -1
  3. package/dist/api/index.d.cts +6 -1
  4. package/dist/api/index.d.ts +6 -1
  5. package/dist/api/index.js +38 -14
  6. package/dist/api/module-settings.cjs +8 -0
  7. package/dist/api/module-settings.cjs.map +1 -0
  8. package/dist/api/module-settings.d.cts +6 -0
  9. package/dist/api/module-settings.d.ts +6 -0
  10. package/dist/api/module-settings.js +8 -0
  11. package/dist/api/tags.cjs +2 -0
  12. package/dist/api/tags.cjs.map +1 -0
  13. package/dist/api/tags.d.cts +9 -0
  14. package/dist/api/tags.d.ts +9 -0
  15. package/dist/api/tags.js +2 -0
  16. package/dist/api/tags.js.map +1 -0
  17. package/dist/api/templates.cjs +20 -0
  18. package/dist/api/templates.cjs.map +1 -0
  19. package/dist/api/templates.d.cts +120 -0
  20. package/dist/api/templates.d.ts +120 -0
  21. package/dist/api/templates.js +20 -0
  22. package/dist/api/templates.js.map +1 -0
  23. package/dist/api/versions.cjs +4 -2
  24. package/dist/api/versions.cjs.map +1 -1
  25. package/dist/api/versions.d.cts +19 -2
  26. package/dist/api/versions.d.ts +19 -2
  27. package/dist/api/versions.js +5 -3
  28. package/dist/api/workflows.cjs +2 -0
  29. package/dist/api/workflows.cjs.map +1 -0
  30. package/dist/api/workflows.d.cts +39 -0
  31. package/dist/api/workflows.d.ts +39 -0
  32. package/dist/api/workflows.js +2 -0
  33. package/dist/api/workflows.js.map +1 -0
  34. package/dist/chunk-5HPYAEBR.cjs +13 -0
  35. package/dist/chunk-5HPYAEBR.cjs.map +1 -0
  36. package/dist/chunk-72B7PPKD.js +1 -0
  37. package/dist/chunk-72B7PPKD.js.map +1 -0
  38. package/dist/chunk-F2BR3GFD.cjs +1 -0
  39. package/dist/{chunk-7GMP4OAL.cjs.map → chunk-F2BR3GFD.cjs.map} +1 -1
  40. package/dist/chunk-GEZ7P5JL.cjs +55 -0
  41. package/dist/chunk-GEZ7P5JL.cjs.map +1 -0
  42. package/dist/chunk-GLSB4GH3.cjs +1 -0
  43. package/dist/chunk-GLSB4GH3.cjs.map +1 -0
  44. package/dist/chunk-LWPFHULW.js +13 -0
  45. package/dist/chunk-LWPFHULW.js.map +1 -0
  46. package/dist/chunk-P652HZKI.js +1 -0
  47. package/dist/chunk-P652HZKI.js.map +1 -0
  48. package/dist/chunk-PUTYSFAZ.js +55 -0
  49. package/dist/chunk-PUTYSFAZ.js.map +1 -0
  50. package/dist/chunk-Q7EXJ6B2.js +23 -0
  51. package/dist/chunk-Q7EXJ6B2.js.map +1 -0
  52. package/dist/chunk-QGKFNOJQ.js +1 -0
  53. package/dist/chunk-QGKFNOJQ.js.map +1 -0
  54. package/dist/chunk-QUUEZXZJ.cjs +1 -0
  55. package/dist/chunk-QUUEZXZJ.cjs.map +1 -0
  56. package/dist/chunk-ZHELW3VP.cjs +23 -0
  57. package/dist/chunk-ZHELW3VP.cjs.map +1 -0
  58. package/dist/index.cjs +33 -9
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.cts +5 -1
  61. package/dist/index.d.ts +5 -1
  62. package/dist/index.js +38 -14
  63. package/package.json +14 -14
  64. package/dist/chunk-7GMP4OAL.cjs +0 -1
  65. package/dist/chunk-FXQQJTT6.js +0 -15
  66. package/dist/chunk-FXQQJTT6.js.map +0 -1
  67. package/dist/chunk-RYFRJOLT.cjs +0 -15
  68. package/dist/chunk-RYFRJOLT.cjs.map +0 -1
  69. package/dist/chunk-YUAOJ44N.js +0 -1
  70. /package/dist/{chunk-YUAOJ44N.js.map → api/module-settings.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,4 +1,19 @@
1
- import "./chunk-YUAOJ44N.js";
1
+ import "./chunk-72B7PPKD.js";
2
+ import {
3
+ getNextVersions,
4
+ getWhatsNewSection
5
+ } from "./chunk-Q7EXJ6B2.js";
6
+ import {
7
+ findWebhook
8
+ } from "./chunk-LANSDJGN.js";
9
+ import {
10
+ getWorkflowHistory,
11
+ getWorkflowVersion
12
+ } from "./chunk-5ZAHIRQP.js";
13
+ import "./chunk-P652HZKI.js";
14
+ import {
15
+ sendGetWorkerStatus
16
+ } from "./chunk-D3AYNAEZ.js";
2
17
  import {
3
18
  getPromptsData,
4
19
  submitContactInfo
@@ -20,19 +35,19 @@ import {
20
35
  testSamlConfig,
21
36
  toggleSamlConfig
22
37
  } from "./chunk-7H2QUQ5E.js";
38
+ import "./chunk-QGKFNOJQ.js";
39
+ import {
40
+ getCategories,
41
+ getCollectionById,
42
+ getCollections,
43
+ getTemplateById,
44
+ getWorkflowTemplate,
45
+ getWorkflows,
46
+ testHealthEndpoint
47
+ } from "./chunk-PUTYSFAZ.js";
23
48
  import {
24
49
  dismissBannerPermanently
25
50
  } from "./chunk-MO55LHZW.js";
26
- import {
27
- getNextVersions
28
- } from "./chunk-FXQQJTT6.js";
29
- import {
30
- findWebhook
31
- } from "./chunk-LANSDJGN.js";
32
- import {
33
- getWorkflowHistory,
34
- getWorkflowVersion
35
- } from "./chunk-5ZAHIRQP.js";
36
51
  import {
37
52
  sessionStarted
38
53
  } from "./chunk-ZGSTB4KU.js";
@@ -50,6 +65,9 @@ import {
50
65
  getMfaQR,
51
66
  verifyMfaCode
52
67
  } from "./chunk-6NXKJCOT.js";
68
+ import {
69
+ getModuleSettings
70
+ } from "./chunk-LWPFHULW.js";
53
71
  import {
54
72
  fetchCommunityNodeAttributes,
55
73
  fetchCommunityNodeTypes,
@@ -65,9 +83,6 @@ import {
65
83
  import {
66
84
  updateNpsSurveyState
67
85
  } from "./chunk-V2IC2A47.js";
68
- import {
69
- sendGetWorkerStatus
70
- } from "./chunk-D3AYNAEZ.js";
71
86
  import "./chunk-55J6XMHW.js";
72
87
  import {
73
88
  createApiKey,
@@ -133,7 +148,10 @@ export {
133
148
  getApiKeys,
134
149
  getAvailableCommunityPackageCount,
135
150
  getBecomeCreatorCta,
151
+ getCategories,
136
152
  getCloudUserInfo,
153
+ getCollectionById,
154
+ getCollections,
137
155
  getCurrentPlan,
138
156
  getCurrentUsage,
139
157
  getDestinationsFromBackend,
@@ -144,6 +162,7 @@ export {
144
162
  getLdapSynchronizations,
145
163
  getLocalResourceMapperFields,
146
164
  getMfaQR,
165
+ getModuleSettings,
147
166
  getNextVersions,
148
167
  getNodeParameterActionResult,
149
168
  getNodeParameterOptions,
@@ -158,8 +177,12 @@ export {
158
177
  getSamlConfig,
159
178
  getSamlMetadata,
160
179
  getSettings,
180
+ getTemplateById,
181
+ getWhatsNewSection,
161
182
  getWorkflowHistory,
183
+ getWorkflowTemplate,
162
184
  getWorkflowVersion,
185
+ getWorkflows,
163
186
  hasDestinationId,
164
187
  initOidcLogin,
165
188
  initSSO,
@@ -178,6 +201,7 @@ export {
178
201
  sessionStarted,
179
202
  streamRequest,
180
203
  submitContactInfo,
204
+ testHealthEndpoint,
181
205
  testLdapConnection,
182
206
  testSamlConfig,
183
207
  toggleSamlConfig,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@n8n/rest-api-client",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.4.0",
5
5
  "files": [
6
6
  "dist",
7
7
  "LICENSE.md",
@@ -26,23 +26,23 @@
26
26
  "js-base64": "3.7.2",
27
27
  "axios": "1.8.3",
28
28
  "flatted": "3.2.7",
29
- "@n8n/constants": "0.7.0",
30
- "@n8n/api-types": "0.33.0",
31
- "@n8n/permissions": "0.28.0",
32
- "@n8n/utils": "1.11.0",
33
- "n8n-workflow": "1.96.0"
29
+ "@n8n/api-types": "0.35.0",
30
+ "@n8n/constants": "0.8.0",
31
+ "@n8n/permissions": "0.29.0",
32
+ "@n8n/utils": "1.12.0",
33
+ "n8n-workflow": "1.98.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@testing-library/jest-dom": "^6.6.3",
37
37
  "@testing-library/user-event": "^14.6.1",
38
- "tsup": "^8.4.0",
39
- "typescript": "^5.8.2",
40
- "vite": "^6.3.5",
41
- "vitest": "^3.1.3",
38
+ "tsup": "^8.5.0",
39
+ "typescript": "5.8.3",
40
+ "vite": "6.3.5",
41
+ "vitest": "3.1.3",
42
42
  "@n8n/eslint-config": "0.0.1",
43
- "@n8n/i18n": "1.3.0",
43
+ "@n8n/i18n": "1.5.0",
44
44
  "@n8n/typescript-config": "1.2.0",
45
- "@n8n/vitest-config": "1.3.0"
45
+ "@n8n/vitest-config": "1.4.0"
46
46
  },
47
47
  "license": "SEE LICENSE IN LICENSE.md",
48
48
  "homepage": "https://n8n.io",
@@ -61,8 +61,8 @@
61
61
  "typecheck": "vue-tsc --noEmit",
62
62
  "test": "vitest run",
63
63
  "test:dev": "vitest --silent=false",
64
- "lint": "eslint src --ext .js,.ts,.vue --quiet",
65
- "lintfix": "eslint src --ext .js,.ts,.vue --fix",
64
+ "lint": "eslint src --quiet",
65
+ "lintfix": "eslint src --fix",
66
66
  "format": "biome format --write . && prettier --write . --ignore-path ../../../../.prettierignore",
67
67
  "format:check": "biome ci . && prettier --check . --ignore-path ../../../../.prettierignore"
68
68
  }
@@ -1 +0,0 @@
1
- "use strict";//# sourceMappingURL=chunk-7GMP4OAL.cjs.map
@@ -1,15 +0,0 @@
1
- import {
2
- get
3
- } from "./chunk-XEWNI57X.js";
4
-
5
- // src/api/versions.ts
6
- import { INSTANCE_ID_HEADER } from "@n8n/constants";
7
- async function getNextVersions(endpoint, version, instanceId) {
8
- const headers = { [INSTANCE_ID_HEADER]: instanceId };
9
- return await get(endpoint, version, {}, headers);
10
- }
11
-
12
- export {
13
- getNextVersions
14
- };
15
- //# sourceMappingURL=chunk-FXQQJTT6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/api/versions.ts"],"sourcesContent":["import { INSTANCE_ID_HEADER } from '@n8n/constants';\nimport type { INodeParameters } from 'n8n-workflow';\n\nimport { get } from '../utils';\n\nexport interface VersionNode {\n\tname: string;\n\tdisplayName: string;\n\ticon: string;\n\ticonUrl?: string;\n\tdefaults: INodeParameters;\n\ticonData: {\n\t\ttype: string;\n\t\ticon?: string;\n\t\tfileBuffer?: string;\n\t};\n\ttypeVersion?: number;\n}\n\nexport interface Version {\n\tname: string;\n\tnodes: VersionNode[];\n\tcreatedAt: string;\n\tdescription: string;\n\tdocumentationUrl: string;\n\thasBreakingChange: boolean;\n\thasSecurityFix: boolean;\n\thasSecurityIssue: boolean;\n\tsecurityIssueFixVersion: string;\n}\n\nexport async function getNextVersions(\n\tendpoint: string,\n\tversion: string,\n\tinstanceId: string,\n): Promise<Version[]> {\n\tconst headers = { [INSTANCE_ID_HEADER as string]: instanceId };\n\treturn await get(endpoint, version, {}, headers);\n}\n"],"mappings":";;;;;AAAA,SAAS,0BAA0B;AA+BnC,eAAsB,gBACrB,UACA,SACA,YACqB;AACrB,QAAM,UAAU,EAAE,CAAC,kBAA4B,GAAG,WAAW;AAC7D,SAAO,MAAM,IAAI,UAAU,SAAS,CAAC,GAAG,OAAO;AAChD;","names":[]}
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkBJZROXM5cjs = require('./chunk-BJZROXM5.cjs');
4
-
5
- // src/api/versions.ts
6
- var _constants = require('@n8n/constants');
7
- async function getNextVersions(endpoint, version, instanceId) {
8
- const headers = { [_constants.INSTANCE_ID_HEADER]: instanceId };
9
- return await _chunkBJZROXM5cjs.get.call(void 0, endpoint, version, {}, headers);
10
- }
11
-
12
-
13
-
14
- exports.getNextVersions = getNextVersions;
15
- //# sourceMappingURL=chunk-RYFRJOLT.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-RYFRJOLT.cjs","../src/api/versions.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACJA,2CAAmC;AA+BnC,MAAA,SAAsB,eAAA,CACrB,QAAA,EACA,OAAA,EACA,UAAA,EACqB;AACrB,EAAA,MAAM,QAAA,EAAU,EAAE,CAAC,6BAA4B,CAAA,EAAG,WAAW,CAAA;AAC7D,EAAA,OAAO,MAAM,mCAAA,QAAI,EAAU,OAAA,EAAS,CAAC,CAAA,EAAG,OAAO,CAAA;AAChD;AD5BA;AACA;AACE;AACF,0CAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-RYFRJOLT.cjs","sourcesContent":[null,"import { INSTANCE_ID_HEADER } from '@n8n/constants';\nimport type { INodeParameters } from 'n8n-workflow';\n\nimport { get } from '../utils';\n\nexport interface VersionNode {\n\tname: string;\n\tdisplayName: string;\n\ticon: string;\n\ticonUrl?: string;\n\tdefaults: INodeParameters;\n\ticonData: {\n\t\ttype: string;\n\t\ticon?: string;\n\t\tfileBuffer?: string;\n\t};\n\ttypeVersion?: number;\n}\n\nexport interface Version {\n\tname: string;\n\tnodes: VersionNode[];\n\tcreatedAt: string;\n\tdescription: string;\n\tdocumentationUrl: string;\n\thasBreakingChange: boolean;\n\thasSecurityFix: boolean;\n\thasSecurityIssue: boolean;\n\tsecurityIssueFixVersion: string;\n}\n\nexport async function getNextVersions(\n\tendpoint: string,\n\tversion: string,\n\tinstanceId: string,\n): Promise<Version[]> {\n\tconst headers = { [INSTANCE_ID_HEADER as string]: instanceId };\n\treturn await get(endpoint, version, {}, headers);\n}\n"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-YUAOJ44N.js.map