@n8n/rest-api-client 1.2.0 → 1.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/dist/api/index.cjs +31 -9
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +5 -0
- package/dist/api/index.d.ts +5 -0
- package/dist/api/index.js +36 -14
- package/dist/api/module-settings.cjs +8 -0
- package/dist/api/module-settings.cjs.map +1 -0
- package/dist/api/module-settings.d.cts +6 -0
- package/dist/api/module-settings.d.ts +6 -0
- package/dist/api/module-settings.js +8 -0
- package/dist/api/tags.cjs +2 -0
- package/dist/api/tags.cjs.map +1 -0
- package/dist/api/tags.d.cts +9 -0
- package/dist/api/tags.d.ts +9 -0
- package/dist/api/tags.js +2 -0
- package/dist/api/tags.js.map +1 -0
- package/dist/api/templates.cjs +20 -0
- package/dist/api/templates.cjs.map +1 -0
- package/dist/api/templates.d.cts +120 -0
- package/dist/api/templates.d.ts +120 -0
- package/dist/api/templates.js +20 -0
- package/dist/api/templates.js.map +1 -0
- package/dist/api/workflows.cjs +2 -0
- package/dist/api/workflows.cjs.map +1 -0
- package/dist/api/workflows.d.cts +39 -0
- package/dist/api/workflows.d.ts +39 -0
- package/dist/api/workflows.js +2 -0
- package/dist/api/workflows.js.map +1 -0
- package/dist/chunk-5HPYAEBR.cjs +13 -0
- package/dist/chunk-5HPYAEBR.cjs.map +1 -0
- package/dist/chunk-72B7PPKD.js +1 -0
- package/dist/chunk-72B7PPKD.js.map +1 -0
- package/dist/chunk-F2BR3GFD.cjs +1 -0
- package/dist/{chunk-7GMP4OAL.cjs.map → chunk-F2BR3GFD.cjs.map} +1 -1
- package/dist/chunk-GEZ7P5JL.cjs +55 -0
- package/dist/chunk-GEZ7P5JL.cjs.map +1 -0
- package/dist/chunk-GLSB4GH3.cjs +1 -0
- package/dist/chunk-GLSB4GH3.cjs.map +1 -0
- package/dist/chunk-LWPFHULW.js +13 -0
- package/dist/chunk-LWPFHULW.js.map +1 -0
- package/dist/chunk-P652HZKI.js +1 -0
- package/dist/chunk-P652HZKI.js.map +1 -0
- package/dist/chunk-PUTYSFAZ.js +55 -0
- package/dist/chunk-PUTYSFAZ.js.map +1 -0
- package/dist/chunk-QGKFNOJQ.js +1 -0
- package/dist/chunk-QGKFNOJQ.js.map +1 -0
- package/dist/chunk-QUUEZXZJ.cjs +1 -0
- package/dist/chunk-QUUEZXZJ.cjs.map +1 -0
- package/dist/index.cjs +31 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +36 -14
- package/package.json +4 -4
- package/dist/chunk-7GMP4OAL.cjs +0 -1
- package/dist/chunk-YUAOJ44N.js +0 -1
- /package/dist/{chunk-YUAOJ44N.js.map → api/module-settings.js.map} +0 -0
package/dist/api/index.cjs
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-GLSB4GH3.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkRYFRJOLTcjs = require('../chunk-RYFRJOLT.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkTPJH3ODZcjs = require('../chunk-TPJH3ODZ.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkI7RGOI7Mcjs = require('../chunk-I7RGOI7M.cjs');
|
|
12
|
+
require('../chunk-QUUEZXZJ.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunkEC4X5QK7cjs = require('../chunk-EC4X5QK7.cjs');
|
|
2
16
|
|
|
3
17
|
|
|
4
18
|
|
|
@@ -20,19 +34,19 @@ var _chunkSRXOQNCAcjs = require('../chunk-SRXOQNCA.cjs');
|
|
|
20
34
|
|
|
21
35
|
|
|
22
36
|
var _chunkPINAQIUHcjs = require('../chunk-PINAQIUH.cjs');
|
|
37
|
+
require('../chunk-F2BR3GFD.cjs');
|
|
23
38
|
|
|
24
39
|
|
|
25
|
-
var _chunkVIX6KJAAcjs = require('../chunk-VIX6KJAA.cjs');
|
|
26
40
|
|
|
27
41
|
|
|
28
|
-
var _chunkRYFRJOLTcjs = require('../chunk-RYFRJOLT.cjs');
|
|
29
42
|
|
|
30
43
|
|
|
31
|
-
var _chunkTPJH3ODZcjs = require('../chunk-TPJH3ODZ.cjs');
|
|
32
44
|
|
|
33
45
|
|
|
46
|
+
var _chunkGEZ7P5JLcjs = require('../chunk-GEZ7P5JL.cjs');
|
|
34
47
|
|
|
35
|
-
|
|
48
|
+
|
|
49
|
+
var _chunkVIX6KJAAcjs = require('../chunk-VIX6KJAA.cjs');
|
|
36
50
|
|
|
37
51
|
|
|
38
52
|
var _chunk4V4RUEM3cjs = require('../chunk-4V4RUEM3.cjs');
|
|
@@ -52,6 +66,7 @@ var _chunkV23ZNIFQcjs = require('../chunk-V23ZNIFQ.cjs');
|
|
|
52
66
|
var _chunk6BEPD323cjs = require('../chunk-6BEPD323.cjs');
|
|
53
67
|
|
|
54
68
|
|
|
69
|
+
var _chunk5HPYAEBRcjs = require('../chunk-5HPYAEBR.cjs');
|
|
55
70
|
|
|
56
71
|
|
|
57
72
|
|
|
@@ -61,13 +76,12 @@ var _chunk6BEPD323cjs = require('../chunk-6BEPD323.cjs');
|
|
|
61
76
|
|
|
62
77
|
|
|
63
78
|
|
|
64
|
-
var _chunkB5P5VN56cjs = require('../chunk-B5P5VN56.cjs');
|
|
65
79
|
|
|
66
80
|
|
|
67
|
-
var
|
|
81
|
+
var _chunkB5P5VN56cjs = require('../chunk-B5P5VN56.cjs');
|
|
68
82
|
|
|
69
83
|
|
|
70
|
-
var
|
|
84
|
+
var _chunk4IDLCD6Ccjs = require('../chunk-4IDLCD6C.cjs');
|
|
71
85
|
|
|
72
86
|
|
|
73
87
|
|
|
@@ -165,5 +179,13 @@ require('../chunk-BJZROXM5.cjs');
|
|
|
165
179
|
|
|
166
180
|
|
|
167
181
|
|
|
168
|
-
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
exports.canEnableMFA = _chunk6BEPD323cjs.canEnableMFA; exports.createApiKey = _chunkJAFCRNMHcjs.createApiKey; exports.deleteApiKey = _chunkJAFCRNMHcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunk575X4GYWcjs.deleteDestinationFromDb; exports.disableMfa = _chunk6BEPD323cjs.disableMfa; exports.dismissBannerPermanently = _chunkVIX6KJAAcjs.dismissBannerPermanently; exports.enableMfa = _chunk6BEPD323cjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkB5P5VN56cjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkB5P5VN56cjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkTPJH3ODZcjs.findWebhook; exports.getAdminPanelLoginCode = _chunkMOQI72I4cjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkJAFCRNMHcjs.getApiKeyScopes; exports.getApiKeys = _chunkJAFCRNMHcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkWCUCSPGIcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunk7TPC6CKZcjs.getBecomeCreatorCta; exports.getCategories = _chunkGEZ7P5JLcjs.getCategories; exports.getCloudUserInfo = _chunkMOQI72I4cjs.getCloudUserInfo; exports.getCollectionById = _chunkGEZ7P5JLcjs.getCollectionById; exports.getCollections = _chunkGEZ7P5JLcjs.getCollections; exports.getCurrentPlan = _chunkMOQI72I4cjs.getCurrentPlan; exports.getCurrentUsage = _chunkMOQI72I4cjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunk575X4GYWcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunk575X4GYWcjs.getEventNamesFromBackend; exports.getInstalledCommunityNodes = _chunkWCUCSPGIcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkV23ZNIFQcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkV23ZNIFQcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkB5P5VN56cjs.getLocalResourceMapperFields; exports.getMfaQR = _chunk6BEPD323cjs.getMfaQR; exports.getModuleSettings = _chunk5HPYAEBRcjs.getModuleSettings; exports.getNextVersions = _chunkRYFRJOLTcjs.getNextVersions; exports.getNodeParameterActionResult = _chunkB5P5VN56cjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkB5P5VN56cjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkB5P5VN56cjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkB5P5VN56cjs.getNodeTypes; exports.getNodesInformation = _chunkB5P5VN56cjs.getNodesInformation; exports.getOidcConfig = _chunkPINAQIUHcjs.getOidcConfig; exports.getPromptsData = _chunkMGE7P7D5cjs.getPromptsData; exports.getResourceLocatorResults = _chunkB5P5VN56cjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkB5P5VN56cjs.getResourceMapperFields; exports.getRoles = _chunkGD7AFETXcjs.getRoles; exports.getSamlConfig = _chunkPINAQIUHcjs.getSamlConfig; exports.getSamlMetadata = _chunkPINAQIUHcjs.getSamlMetadata; exports.getSettings = _chunkSRXOQNCAcjs.getSettings; exports.getTemplateById = _chunkGEZ7P5JLcjs.getTemplateById; exports.getWorkflowHistory = _chunkI7RGOI7Mcjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkGEZ7P5JLcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkI7RGOI7Mcjs.getWorkflowVersion; exports.getWorkflows = _chunkGEZ7P5JLcjs.getWorkflows; exports.hasDestinationId = _chunk575X4GYWcjs.hasDestinationId; exports.initOidcLogin = _chunkPINAQIUHcjs.initOidcLogin; exports.initSSO = _chunkPINAQIUHcjs.initSSO; exports.installNewPackage = _chunkWCUCSPGIcjs.installNewPackage; exports.runLdapSync = _chunkV23ZNIFQcjs.runLdapSync; exports.saveDestinationToDb = _chunk575X4GYWcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkPINAQIUHcjs.saveOidcConfig; exports.saveSamlConfig = _chunkPINAQIUHcjs.saveSamlConfig; exports.sendConfirmationEmail = _chunkMOQI72I4cjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkEC4X5QK7cjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunk575X4GYWcjs.sendTestMessageToDestination; exports.sessionStarted = _chunk4V4RUEM3cjs.sessionStarted; exports.submitContactInfo = _chunkMGE7P7D5cjs.submitContactInfo; exports.testHealthEndpoint = _chunkGEZ7P5JLcjs.testHealthEndpoint; exports.testLdapConnection = _chunkV23ZNIFQcjs.testLdapConnection; exports.testSamlConfig = _chunkPINAQIUHcjs.testSamlConfig; exports.toggleSamlConfig = _chunkPINAQIUHcjs.toggleSamlConfig; exports.uninstallPackage = _chunkWCUCSPGIcjs.uninstallPackage; exports.updateApiKey = _chunkJAFCRNMHcjs.updateApiKey; exports.updateLdapConfig = _chunkV23ZNIFQcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk4IDLCD6Ccjs.updateNpsSurveyState; exports.updatePackage = _chunkWCUCSPGIcjs.updatePackage; exports.verifyMfaCode = _chunk6BEPD323cjs.verifyMfaCode;
|
|
169
191
|
//# sourceMappingURL=index.cjs.map
|
package/dist/api/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0gJAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"}
|
package/dist/api/index.d.cts
CHANGED
|
@@ -12,13 +12,18 @@ export { sendGetWorkerStatus } from './orchestration.cjs';
|
|
|
12
12
|
export { N8nPromptResponse, N8nPrompts, getPromptsData, submitContactInfo } from './prompts.cjs';
|
|
13
13
|
export { getRoles } from './roles.cjs';
|
|
14
14
|
export { getSettings } from './settings.cjs';
|
|
15
|
+
export { getModuleSettings } from './module-settings.cjs';
|
|
15
16
|
export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testSamlConfig, toggleSamlConfig } from './sso.cjs';
|
|
17
|
+
export { ITag } from './tags.cjs';
|
|
18
|
+
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './templates.cjs';
|
|
16
19
|
export { dismissBannerPermanently } from './ui.cjs';
|
|
17
20
|
export { Version, VersionNode, getNextVersions } from './versions.cjs';
|
|
18
21
|
export { findWebhook } from './webhooks.cjs';
|
|
19
22
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './workflowHistory.cjs';
|
|
23
|
+
export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './workflows.cjs';
|
|
20
24
|
import '@n8n/api-types';
|
|
21
25
|
import '@n8n/permissions';
|
|
22
26
|
import '../types.cjs';
|
|
23
27
|
import 'n8n-workflow';
|
|
24
28
|
import '@n8n/i18n';
|
|
29
|
+
import 'axios';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -12,13 +12,18 @@ export { sendGetWorkerStatus } from './orchestration.js';
|
|
|
12
12
|
export { N8nPromptResponse, N8nPrompts, getPromptsData, submitContactInfo } from './prompts.js';
|
|
13
13
|
export { getRoles } from './roles.js';
|
|
14
14
|
export { getSettings } from './settings.js';
|
|
15
|
+
export { getModuleSettings } from './module-settings.js';
|
|
15
16
|
export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testSamlConfig, toggleSamlConfig } from './sso.js';
|
|
17
|
+
export { ITag } from './tags.js';
|
|
18
|
+
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './templates.js';
|
|
16
19
|
export { dismissBannerPermanently } from './ui.js';
|
|
17
20
|
export { Version, VersionNode, getNextVersions } from './versions.js';
|
|
18
21
|
export { findWebhook } from './webhooks.js';
|
|
19
22
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './workflowHistory.js';
|
|
23
|
+
export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './workflows.js';
|
|
20
24
|
import '@n8n/api-types';
|
|
21
25
|
import '@n8n/permissions';
|
|
22
26
|
import '../types.js';
|
|
23
27
|
import 'n8n-workflow';
|
|
24
28
|
import '@n8n/i18n';
|
|
29
|
+
import 'axios';
|
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-72B7PPKD.js";
|
|
2
|
+
import {
|
|
3
|
+
getNextVersions
|
|
4
|
+
} from "../chunk-FXQQJTT6.js";
|
|
5
|
+
import {
|
|
6
|
+
findWebhook
|
|
7
|
+
} from "../chunk-LANSDJGN.js";
|
|
8
|
+
import {
|
|
9
|
+
getWorkflowHistory,
|
|
10
|
+
getWorkflowVersion
|
|
11
|
+
} from "../chunk-5ZAHIRQP.js";
|
|
12
|
+
import "../chunk-P652HZKI.js";
|
|
13
|
+
import {
|
|
14
|
+
sendGetWorkerStatus
|
|
15
|
+
} from "../chunk-D3AYNAEZ.js";
|
|
2
16
|
import {
|
|
3
17
|
getPromptsData,
|
|
4
18
|
submitContactInfo
|
|
@@ -20,19 +34,19 @@ import {
|
|
|
20
34
|
testSamlConfig,
|
|
21
35
|
toggleSamlConfig
|
|
22
36
|
} from "../chunk-7H2QUQ5E.js";
|
|
37
|
+
import "../chunk-QGKFNOJQ.js";
|
|
38
|
+
import {
|
|
39
|
+
getCategories,
|
|
40
|
+
getCollectionById,
|
|
41
|
+
getCollections,
|
|
42
|
+
getTemplateById,
|
|
43
|
+
getWorkflowTemplate,
|
|
44
|
+
getWorkflows,
|
|
45
|
+
testHealthEndpoint
|
|
46
|
+
} from "../chunk-PUTYSFAZ.js";
|
|
23
47
|
import {
|
|
24
48
|
dismissBannerPermanently
|
|
25
49
|
} 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
50
|
import {
|
|
37
51
|
sessionStarted
|
|
38
52
|
} from "../chunk-ZGSTB4KU.js";
|
|
@@ -50,6 +64,9 @@ import {
|
|
|
50
64
|
getMfaQR,
|
|
51
65
|
verifyMfaCode
|
|
52
66
|
} from "../chunk-6NXKJCOT.js";
|
|
67
|
+
import {
|
|
68
|
+
getModuleSettings
|
|
69
|
+
} from "../chunk-LWPFHULW.js";
|
|
53
70
|
import {
|
|
54
71
|
fetchCommunityNodeAttributes,
|
|
55
72
|
fetchCommunityNodeTypes,
|
|
@@ -65,9 +82,6 @@ import {
|
|
|
65
82
|
import {
|
|
66
83
|
updateNpsSurveyState
|
|
67
84
|
} from "../chunk-V2IC2A47.js";
|
|
68
|
-
import {
|
|
69
|
-
sendGetWorkerStatus
|
|
70
|
-
} from "../chunk-D3AYNAEZ.js";
|
|
71
85
|
import {
|
|
72
86
|
createApiKey,
|
|
73
87
|
deleteApiKey,
|
|
@@ -117,7 +131,10 @@ export {
|
|
|
117
131
|
getApiKeys,
|
|
118
132
|
getAvailableCommunityPackageCount,
|
|
119
133
|
getBecomeCreatorCta,
|
|
134
|
+
getCategories,
|
|
120
135
|
getCloudUserInfo,
|
|
136
|
+
getCollectionById,
|
|
137
|
+
getCollections,
|
|
121
138
|
getCurrentPlan,
|
|
122
139
|
getCurrentUsage,
|
|
123
140
|
getDestinationsFromBackend,
|
|
@@ -127,6 +144,7 @@ export {
|
|
|
127
144
|
getLdapSynchronizations,
|
|
128
145
|
getLocalResourceMapperFields,
|
|
129
146
|
getMfaQR,
|
|
147
|
+
getModuleSettings,
|
|
130
148
|
getNextVersions,
|
|
131
149
|
getNodeParameterActionResult,
|
|
132
150
|
getNodeParameterOptions,
|
|
@@ -141,8 +159,11 @@ export {
|
|
|
141
159
|
getSamlConfig,
|
|
142
160
|
getSamlMetadata,
|
|
143
161
|
getSettings,
|
|
162
|
+
getTemplateById,
|
|
144
163
|
getWorkflowHistory,
|
|
164
|
+
getWorkflowTemplate,
|
|
145
165
|
getWorkflowVersion,
|
|
166
|
+
getWorkflows,
|
|
146
167
|
hasDestinationId,
|
|
147
168
|
initOidcLogin,
|
|
148
169
|
initSSO,
|
|
@@ -156,6 +177,7 @@ export {
|
|
|
156
177
|
sendTestMessageToDestination,
|
|
157
178
|
sessionStarted,
|
|
158
179
|
submitContactInfo,
|
|
180
|
+
testHealthEndpoint,
|
|
159
181
|
testLdapConnection,
|
|
160
182
|
testSamlConfig,
|
|
161
183
|
toggleSamlConfig,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk5HPYAEBRcjs = require('../chunk-5HPYAEBR.cjs');
|
|
4
|
+
require('../chunk-BJZROXM5.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.getModuleSettings = _chunk5HPYAEBRcjs.getModuleSettings;
|
|
8
|
+
//# sourceMappingURL=module-settings.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/module-settings.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,gEAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/module-settings.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/tags.cjs"],"names":[],"mappings":"AAAA,8CAA8B","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/tags.cjs"}
|
package/dist/api/tags.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkGEZ7P5JLcjs = require('../chunk-GEZ7P5JL.cjs');
|
|
10
|
+
require('../chunk-BJZROXM5.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.getCategories = _chunkGEZ7P5JLcjs.getCategories; exports.getCollectionById = _chunkGEZ7P5JLcjs.getCollectionById; exports.getCollections = _chunkGEZ7P5JLcjs.getCollections; exports.getTemplateById = _chunkGEZ7P5JLcjs.getTemplateById; exports.getWorkflowTemplate = _chunkGEZ7P5JLcjs.getWorkflowTemplate; exports.getWorkflows = _chunkGEZ7P5JLcjs.getWorkflows; exports.testHealthEndpoint = _chunkGEZ7P5JLcjs.testHealthEndpoint;
|
|
20
|
+
//# sourceMappingURL=templates.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/templates.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gbAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/templates.cjs"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { RawAxiosRequestHeaders } from 'axios';
|
|
2
|
+
import { INode, INodeCredentialsDetails } from 'n8n-workflow';
|
|
3
|
+
import { VersionNode } from './versions.cjs';
|
|
4
|
+
import { WorkflowData } from './workflows.cjs';
|
|
5
|
+
import './tags.cjs';
|
|
6
|
+
|
|
7
|
+
interface IWorkflowTemplateNode extends Pick<INode, 'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'> {
|
|
8
|
+
credentials?: IWorkflowTemplateNodeCredentials;
|
|
9
|
+
}
|
|
10
|
+
interface IWorkflowTemplateNodeCredentials {
|
|
11
|
+
[key: string]: string | INodeCredentialsDetails;
|
|
12
|
+
}
|
|
13
|
+
interface IWorkflowTemplate {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
workflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {
|
|
17
|
+
nodes: IWorkflowTemplateNode[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface ITemplatesNode extends VersionNode {
|
|
21
|
+
id: number;
|
|
22
|
+
categories?: ITemplatesCategory[];
|
|
23
|
+
}
|
|
24
|
+
interface ITemplatesCollection {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
nodes: ITemplatesNode[];
|
|
28
|
+
workflows: Array<{
|
|
29
|
+
id: number;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
interface ITemplatesImage {
|
|
33
|
+
id: number;
|
|
34
|
+
url: string;
|
|
35
|
+
}
|
|
36
|
+
interface ITemplatesCollectionExtended extends ITemplatesCollection {
|
|
37
|
+
description: string | null;
|
|
38
|
+
image: ITemplatesImage[];
|
|
39
|
+
categories: ITemplatesCategory[];
|
|
40
|
+
createdAt: string;
|
|
41
|
+
}
|
|
42
|
+
interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {
|
|
43
|
+
full: true;
|
|
44
|
+
}
|
|
45
|
+
interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {
|
|
46
|
+
workflows: ITemplatesWorkflow[];
|
|
47
|
+
}
|
|
48
|
+
interface ITemplatesWorkflow {
|
|
49
|
+
id: number;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
name: string;
|
|
52
|
+
nodes: ITemplatesNode[];
|
|
53
|
+
totalViews: number;
|
|
54
|
+
user: {
|
|
55
|
+
username: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
interface ITemplatesWorkflowInfo {
|
|
59
|
+
nodeCount: number;
|
|
60
|
+
nodeTypes: {
|
|
61
|
+
[key: string]: {
|
|
62
|
+
count: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
type TemplateSearchFacet = {
|
|
67
|
+
field_name: string;
|
|
68
|
+
sampled: boolean;
|
|
69
|
+
stats: {
|
|
70
|
+
total_values: number;
|
|
71
|
+
};
|
|
72
|
+
counts: Array<{
|
|
73
|
+
count: number;
|
|
74
|
+
highlighted: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
78
|
+
interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {
|
|
79
|
+
description: string | null;
|
|
80
|
+
image: ITemplatesImage[];
|
|
81
|
+
categories: ITemplatesCategory[];
|
|
82
|
+
workflowInfo: ITemplatesWorkflowInfo;
|
|
83
|
+
}
|
|
84
|
+
interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {
|
|
85
|
+
full: true;
|
|
86
|
+
}
|
|
87
|
+
interface ITemplatesQuery {
|
|
88
|
+
categories: string[];
|
|
89
|
+
search: string;
|
|
90
|
+
}
|
|
91
|
+
interface ITemplatesCategory {
|
|
92
|
+
id: number;
|
|
93
|
+
name: string;
|
|
94
|
+
}
|
|
95
|
+
declare function testHealthEndpoint(apiEndpoint: string): Promise<any>;
|
|
96
|
+
declare function getCategories(apiEndpoint: string, headers?: RawAxiosRequestHeaders): Promise<{
|
|
97
|
+
categories: ITemplatesCategory[];
|
|
98
|
+
}>;
|
|
99
|
+
declare function getCollections(apiEndpoint: string, query: ITemplatesQuery, headers?: RawAxiosRequestHeaders): Promise<{
|
|
100
|
+
collections: ITemplatesCollection[];
|
|
101
|
+
}>;
|
|
102
|
+
declare function getWorkflows(apiEndpoint: string, query: {
|
|
103
|
+
page: number;
|
|
104
|
+
limit: number;
|
|
105
|
+
categories: string[];
|
|
106
|
+
search: string;
|
|
107
|
+
}, headers?: RawAxiosRequestHeaders): Promise<{
|
|
108
|
+
totalWorkflows: number;
|
|
109
|
+
workflows: ITemplatesWorkflow[];
|
|
110
|
+
filters: TemplateSearchFacet[];
|
|
111
|
+
}>;
|
|
112
|
+
declare function getCollectionById(apiEndpoint: string, collectionId: string, headers?: RawAxiosRequestHeaders): Promise<{
|
|
113
|
+
collection: ITemplatesCollectionResponse;
|
|
114
|
+
}>;
|
|
115
|
+
declare function getTemplateById(apiEndpoint: string, templateId: string, headers?: RawAxiosRequestHeaders): Promise<{
|
|
116
|
+
workflow: ITemplatesWorkflowResponse;
|
|
117
|
+
}>;
|
|
118
|
+
declare function getWorkflowTemplate(apiEndpoint: string, templateId: string, headers?: RawAxiosRequestHeaders): Promise<IWorkflowTemplate>;
|
|
119
|
+
|
|
120
|
+
export { type ITemplatesCategory, type ITemplatesCollection, type ITemplatesCollectionFull, type ITemplatesCollectionResponse, type ITemplatesNode, type ITemplatesQuery, type ITemplatesWorkflow, type ITemplatesWorkflowFull, type ITemplatesWorkflowInfo, type ITemplatesWorkflowResponse, type IWorkflowTemplate, type IWorkflowTemplateNode, type IWorkflowTemplateNodeCredentials, type TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { RawAxiosRequestHeaders } from 'axios';
|
|
2
|
+
import { INode, INodeCredentialsDetails } from 'n8n-workflow';
|
|
3
|
+
import { VersionNode } from './versions.js';
|
|
4
|
+
import { WorkflowData } from './workflows.js';
|
|
5
|
+
import './tags.js';
|
|
6
|
+
|
|
7
|
+
interface IWorkflowTemplateNode extends Pick<INode, 'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'> {
|
|
8
|
+
credentials?: IWorkflowTemplateNodeCredentials;
|
|
9
|
+
}
|
|
10
|
+
interface IWorkflowTemplateNodeCredentials {
|
|
11
|
+
[key: string]: string | INodeCredentialsDetails;
|
|
12
|
+
}
|
|
13
|
+
interface IWorkflowTemplate {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
workflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {
|
|
17
|
+
nodes: IWorkflowTemplateNode[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface ITemplatesNode extends VersionNode {
|
|
21
|
+
id: number;
|
|
22
|
+
categories?: ITemplatesCategory[];
|
|
23
|
+
}
|
|
24
|
+
interface ITemplatesCollection {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
nodes: ITemplatesNode[];
|
|
28
|
+
workflows: Array<{
|
|
29
|
+
id: number;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
interface ITemplatesImage {
|
|
33
|
+
id: number;
|
|
34
|
+
url: string;
|
|
35
|
+
}
|
|
36
|
+
interface ITemplatesCollectionExtended extends ITemplatesCollection {
|
|
37
|
+
description: string | null;
|
|
38
|
+
image: ITemplatesImage[];
|
|
39
|
+
categories: ITemplatesCategory[];
|
|
40
|
+
createdAt: string;
|
|
41
|
+
}
|
|
42
|
+
interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {
|
|
43
|
+
full: true;
|
|
44
|
+
}
|
|
45
|
+
interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {
|
|
46
|
+
workflows: ITemplatesWorkflow[];
|
|
47
|
+
}
|
|
48
|
+
interface ITemplatesWorkflow {
|
|
49
|
+
id: number;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
name: string;
|
|
52
|
+
nodes: ITemplatesNode[];
|
|
53
|
+
totalViews: number;
|
|
54
|
+
user: {
|
|
55
|
+
username: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
interface ITemplatesWorkflowInfo {
|
|
59
|
+
nodeCount: number;
|
|
60
|
+
nodeTypes: {
|
|
61
|
+
[key: string]: {
|
|
62
|
+
count: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
type TemplateSearchFacet = {
|
|
67
|
+
field_name: string;
|
|
68
|
+
sampled: boolean;
|
|
69
|
+
stats: {
|
|
70
|
+
total_values: number;
|
|
71
|
+
};
|
|
72
|
+
counts: Array<{
|
|
73
|
+
count: number;
|
|
74
|
+
highlighted: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
78
|
+
interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {
|
|
79
|
+
description: string | null;
|
|
80
|
+
image: ITemplatesImage[];
|
|
81
|
+
categories: ITemplatesCategory[];
|
|
82
|
+
workflowInfo: ITemplatesWorkflowInfo;
|
|
83
|
+
}
|
|
84
|
+
interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {
|
|
85
|
+
full: true;
|
|
86
|
+
}
|
|
87
|
+
interface ITemplatesQuery {
|
|
88
|
+
categories: string[];
|
|
89
|
+
search: string;
|
|
90
|
+
}
|
|
91
|
+
interface ITemplatesCategory {
|
|
92
|
+
id: number;
|
|
93
|
+
name: string;
|
|
94
|
+
}
|
|
95
|
+
declare function testHealthEndpoint(apiEndpoint: string): Promise<any>;
|
|
96
|
+
declare function getCategories(apiEndpoint: string, headers?: RawAxiosRequestHeaders): Promise<{
|
|
97
|
+
categories: ITemplatesCategory[];
|
|
98
|
+
}>;
|
|
99
|
+
declare function getCollections(apiEndpoint: string, query: ITemplatesQuery, headers?: RawAxiosRequestHeaders): Promise<{
|
|
100
|
+
collections: ITemplatesCollection[];
|
|
101
|
+
}>;
|
|
102
|
+
declare function getWorkflows(apiEndpoint: string, query: {
|
|
103
|
+
page: number;
|
|
104
|
+
limit: number;
|
|
105
|
+
categories: string[];
|
|
106
|
+
search: string;
|
|
107
|
+
}, headers?: RawAxiosRequestHeaders): Promise<{
|
|
108
|
+
totalWorkflows: number;
|
|
109
|
+
workflows: ITemplatesWorkflow[];
|
|
110
|
+
filters: TemplateSearchFacet[];
|
|
111
|
+
}>;
|
|
112
|
+
declare function getCollectionById(apiEndpoint: string, collectionId: string, headers?: RawAxiosRequestHeaders): Promise<{
|
|
113
|
+
collection: ITemplatesCollectionResponse;
|
|
114
|
+
}>;
|
|
115
|
+
declare function getTemplateById(apiEndpoint: string, templateId: string, headers?: RawAxiosRequestHeaders): Promise<{
|
|
116
|
+
workflow: ITemplatesWorkflowResponse;
|
|
117
|
+
}>;
|
|
118
|
+
declare function getWorkflowTemplate(apiEndpoint: string, templateId: string, headers?: RawAxiosRequestHeaders): Promise<IWorkflowTemplate>;
|
|
119
|
+
|
|
120
|
+
export { type ITemplatesCategory, type ITemplatesCollection, type ITemplatesCollectionFull, type ITemplatesCollectionResponse, type ITemplatesNode, type ITemplatesQuery, type ITemplatesWorkflow, type ITemplatesWorkflowFull, type ITemplatesWorkflowInfo, type ITemplatesWorkflowResponse, type IWorkflowTemplate, type IWorkflowTemplateNode, type IWorkflowTemplateNodeCredentials, type TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCategories,
|
|
3
|
+
getCollectionById,
|
|
4
|
+
getCollections,
|
|
5
|
+
getTemplateById,
|
|
6
|
+
getWorkflowTemplate,
|
|
7
|
+
getWorkflows,
|
|
8
|
+
testHealthEndpoint
|
|
9
|
+
} from "../chunk-PUTYSFAZ.js";
|
|
10
|
+
import "../chunk-XEWNI57X.js";
|
|
11
|
+
export {
|
|
12
|
+
getCategories,
|
|
13
|
+
getCollectionById,
|
|
14
|
+
getCollections,
|
|
15
|
+
getTemplateById,
|
|
16
|
+
getWorkflowTemplate,
|
|
17
|
+
getWorkflows,
|
|
18
|
+
testHealthEndpoint
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/workflows.cjs"],"names":[],"mappings":"AAAA,8CAA8B","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/workflows.cjs"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { INode, IConnections, IWorkflowSettings, IPinData } from 'n8n-workflow';
|
|
2
|
+
import { ITag } from './tags.cjs';
|
|
3
|
+
|
|
4
|
+
interface WorkflowMetadata {
|
|
5
|
+
onboardingId?: string;
|
|
6
|
+
templateId?: string;
|
|
7
|
+
instanceId?: string;
|
|
8
|
+
templateCredsSetupCompleted?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface WorkflowData {
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
nodes: INode[];
|
|
15
|
+
connections: IConnections;
|
|
16
|
+
settings?: IWorkflowSettings;
|
|
17
|
+
tags?: string[];
|
|
18
|
+
pinData?: IPinData;
|
|
19
|
+
versionId?: string;
|
|
20
|
+
meta?: WorkflowMetadata;
|
|
21
|
+
}
|
|
22
|
+
interface WorkflowDataUpdate {
|
|
23
|
+
id?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
nodes?: INode[];
|
|
26
|
+
connections?: IConnections;
|
|
27
|
+
settings?: IWorkflowSettings;
|
|
28
|
+
active?: boolean;
|
|
29
|
+
tags?: ITag[] | string[];
|
|
30
|
+
pinData?: IPinData;
|
|
31
|
+
versionId?: string;
|
|
32
|
+
meta?: WorkflowMetadata;
|
|
33
|
+
parentFolderId?: string;
|
|
34
|
+
}
|
|
35
|
+
interface WorkflowDataCreate extends WorkflowDataUpdate {
|
|
36
|
+
projectId?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata };
|