@n8n/rest-api-client 1.3.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.
- package/dist/api/index.cjs +4 -2
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +4 -2
- package/dist/api/versions.cjs +4 -2
- package/dist/api/versions.cjs.map +1 -1
- package/dist/api/versions.d.cts +19 -2
- package/dist/api/versions.d.ts +19 -2
- package/dist/api/versions.js +5 -3
- package/dist/chunk-Q7EXJ6B2.js +23 -0
- package/dist/chunk-Q7EXJ6B2.js.map +1 -0
- package/dist/chunk-ZHELW3VP.cjs +23 -0
- package/dist/chunk-ZHELW3VP.cjs.map +1 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/package.json +14 -14
- package/dist/chunk-FXQQJTT6.js +0 -15
- package/dist/chunk-FXQQJTT6.js.map +0 -1
- package/dist/chunk-RYFRJOLT.cjs +0 -15
- package/dist/chunk-RYFRJOLT.cjs.map +0 -1
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-GLSB4GH3.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
var _chunkZHELW3VPcjs = require('../chunk-ZHELW3VP.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
var _chunkTPJH3ODZcjs = require('../chunk-TPJH3ODZ.cjs');
|
|
@@ -187,5 +188,6 @@ require('../chunk-BJZROXM5.cjs');
|
|
|
187
188
|
|
|
188
189
|
|
|
189
190
|
|
|
190
|
-
|
|
191
|
+
|
|
192
|
+
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 = _chunkZHELW3VPcjs.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.getWhatsNewSection = _chunkZHELW3VPcjs.getWhatsNewSection; 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;
|
|
191
193
|
//# 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;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,
|
|
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;AACA;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;AACA;AACF,6kJAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"}
|
package/dist/api/index.d.cts
CHANGED
|
@@ -17,7 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './tags.cjs';
|
|
18
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';
|
|
19
19
|
export { dismissBannerPermanently } from './ui.cjs';
|
|
20
|
-
export { Version, VersionNode, getNextVersions } from './versions.cjs';
|
|
20
|
+
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './versions.cjs';
|
|
21
21
|
export { findWebhook } from './webhooks.cjs';
|
|
22
22
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './workflowHistory.cjs';
|
|
23
23
|
export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './workflows.cjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './tags.js';
|
|
18
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';
|
|
19
19
|
export { dismissBannerPermanently } from './ui.js';
|
|
20
|
-
export { Version, VersionNode, getNextVersions } from './versions.js';
|
|
20
|
+
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './versions.js';
|
|
21
21
|
export { findWebhook } from './webhooks.js';
|
|
22
22
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './workflowHistory.js';
|
|
23
23
|
export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './workflows.js';
|
package/dist/api/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../chunk-72B7PPKD.js";
|
|
2
2
|
import {
|
|
3
|
-
getNextVersions
|
|
4
|
-
|
|
3
|
+
getNextVersions,
|
|
4
|
+
getWhatsNewSection
|
|
5
|
+
} from "../chunk-Q7EXJ6B2.js";
|
|
5
6
|
import {
|
|
6
7
|
findWebhook
|
|
7
8
|
} from "../chunk-LANSDJGN.js";
|
|
@@ -160,6 +161,7 @@ export {
|
|
|
160
161
|
getSamlMetadata,
|
|
161
162
|
getSettings,
|
|
162
163
|
getTemplateById,
|
|
164
|
+
getWhatsNewSection,
|
|
163
165
|
getWorkflowHistory,
|
|
164
166
|
getWorkflowTemplate,
|
|
165
167
|
getWorkflowVersion,
|
package/dist/api/versions.cjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
var _chunkZHELW3VPcjs = require('../chunk-ZHELW3VP.cjs');
|
|
4
5
|
require('../chunk-BJZROXM5.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
|
|
9
|
+
exports.getNextVersions = _chunkZHELW3VPcjs.getNextVersions; exports.getWhatsNewSection = _chunkZHELW3VPcjs.getWhatsNewSection;
|
|
8
10
|
//# sourceMappingURL=versions.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/versions.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/versions.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,+HAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/versions.cjs"}
|
package/dist/api/versions.d.cts
CHANGED
|
@@ -24,6 +24,23 @@ interface Version {
|
|
|
24
24
|
hasSecurityIssue: boolean;
|
|
25
25
|
securityIssueFixVersion: string;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
interface WhatsNewSection {
|
|
28
|
+
title: string;
|
|
29
|
+
calloutText: string;
|
|
30
|
+
footer: string;
|
|
31
|
+
items: WhatsNewArticle[];
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string | null;
|
|
34
|
+
}
|
|
35
|
+
interface WhatsNewArticle {
|
|
36
|
+
id: number;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string | null;
|
|
39
|
+
publishedAt: string;
|
|
40
|
+
title: string;
|
|
41
|
+
content: string;
|
|
42
|
+
}
|
|
43
|
+
declare function getNextVersions(endpoint: string, currentVersion: string, instanceId: string): Promise<Version[]>;
|
|
44
|
+
declare function getWhatsNewSection(endpoint: string, currentVersion: string, instanceId: string): Promise<WhatsNewSection>;
|
|
28
45
|
|
|
29
|
-
export { type Version, type VersionNode, getNextVersions };
|
|
46
|
+
export { type Version, type VersionNode, type WhatsNewArticle, type WhatsNewSection, getNextVersions, getWhatsNewSection };
|
package/dist/api/versions.d.ts
CHANGED
|
@@ -24,6 +24,23 @@ interface Version {
|
|
|
24
24
|
hasSecurityIssue: boolean;
|
|
25
25
|
securityIssueFixVersion: string;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
interface WhatsNewSection {
|
|
28
|
+
title: string;
|
|
29
|
+
calloutText: string;
|
|
30
|
+
footer: string;
|
|
31
|
+
items: WhatsNewArticle[];
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string | null;
|
|
34
|
+
}
|
|
35
|
+
interface WhatsNewArticle {
|
|
36
|
+
id: number;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string | null;
|
|
39
|
+
publishedAt: string;
|
|
40
|
+
title: string;
|
|
41
|
+
content: string;
|
|
42
|
+
}
|
|
43
|
+
declare function getNextVersions(endpoint: string, currentVersion: string, instanceId: string): Promise<Version[]>;
|
|
44
|
+
declare function getWhatsNewSection(endpoint: string, currentVersion: string, instanceId: string): Promise<WhatsNewSection>;
|
|
28
45
|
|
|
29
|
-
export { type Version, type VersionNode, getNextVersions };
|
|
46
|
+
export { type Version, type VersionNode, type WhatsNewArticle, type WhatsNewSection, getNextVersions, getWhatsNewSection };
|
package/dist/api/versions.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
getNextVersions
|
|
3
|
-
|
|
2
|
+
getNextVersions,
|
|
3
|
+
getWhatsNewSection
|
|
4
|
+
} from "../chunk-Q7EXJ6B2.js";
|
|
4
5
|
import "../chunk-XEWNI57X.js";
|
|
5
6
|
export {
|
|
6
|
-
getNextVersions
|
|
7
|
+
getNextVersions,
|
|
8
|
+
getWhatsNewSection
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=versions.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
get
|
|
3
|
+
} from "./chunk-XEWNI57X.js";
|
|
4
|
+
|
|
5
|
+
// src/api/versions.ts
|
|
6
|
+
import { INSTANCE_ID_HEADER, INSTANCE_VERSION_HEADER } from "@n8n/constants";
|
|
7
|
+
async function getNextVersions(endpoint, currentVersion, instanceId) {
|
|
8
|
+
const headers = { [INSTANCE_ID_HEADER]: instanceId };
|
|
9
|
+
return await get(endpoint, currentVersion, {}, headers);
|
|
10
|
+
}
|
|
11
|
+
async function getWhatsNewSection(endpoint, currentVersion, instanceId) {
|
|
12
|
+
const headers = {
|
|
13
|
+
[INSTANCE_ID_HEADER]: instanceId,
|
|
14
|
+
[INSTANCE_VERSION_HEADER]: currentVersion
|
|
15
|
+
};
|
|
16
|
+
return await get(endpoint, "", {}, headers);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
getNextVersions,
|
|
21
|
+
getWhatsNewSection
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk-Q7EXJ6B2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/api/versions.ts"],"sourcesContent":["import { INSTANCE_ID_HEADER, INSTANCE_VERSION_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 interface WhatsNewSection {\n\ttitle: string;\n\tcalloutText: string;\n\tfooter: string;\n\titems: WhatsNewArticle[];\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n}\n\nexport interface WhatsNewArticle {\n\tid: number;\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n\tpublishedAt: string;\n\ttitle: string;\n\tcontent: string;\n}\n\nexport async function getNextVersions(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<Version[]> {\n\tconst headers = { [INSTANCE_ID_HEADER as string]: instanceId };\n\treturn await get(endpoint, currentVersion, {}, headers);\n}\n\nexport async function getWhatsNewSection(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<WhatsNewSection> {\n\tconst headers = {\n\t\t[INSTANCE_ID_HEADER as string]: instanceId,\n\t\t[INSTANCE_VERSION_HEADER as string]: currentVersion,\n\t};\n\treturn await get(endpoint, '', {}, headers);\n}\n"],"mappings":";;;;;AAAA,SAAS,oBAAoB,+BAA+B;AAiD5D,eAAsB,gBACrB,UACA,gBACA,YACqB;AACrB,QAAM,UAAU,EAAE,CAAC,kBAA4B,GAAG,WAAW;AAC7D,SAAO,MAAM,IAAI,UAAU,gBAAgB,CAAC,GAAG,OAAO;AACvD;AAEA,eAAsB,mBACrB,UACA,gBACA,YAC2B;AAC3B,QAAM,UAAU;AAAA,IACf,CAAC,kBAA4B,GAAG;AAAA,IAChC,CAAC,uBAAiC,GAAG;AAAA,EACtC;AACA,SAAO,MAAM,IAAI,UAAU,IAAI,CAAC,GAAG,OAAO;AAC3C;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
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, currentVersion, instanceId) {
|
|
8
|
+
const headers = { [_constants.INSTANCE_ID_HEADER]: instanceId };
|
|
9
|
+
return await _chunkBJZROXM5cjs.get.call(void 0, endpoint, currentVersion, {}, headers);
|
|
10
|
+
}
|
|
11
|
+
async function getWhatsNewSection(endpoint, currentVersion, instanceId) {
|
|
12
|
+
const headers = {
|
|
13
|
+
[_constants.INSTANCE_ID_HEADER]: instanceId,
|
|
14
|
+
[_constants.INSTANCE_VERSION_HEADER]: currentVersion
|
|
15
|
+
};
|
|
16
|
+
return await _chunkBJZROXM5cjs.get.call(void 0, endpoint, "", {}, headers);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.getNextVersions = getNextVersions; exports.getWhatsNewSection = getWhatsNewSection;
|
|
23
|
+
//# sourceMappingURL=chunk-ZHELW3VP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-ZHELW3VP.cjs","../src/api/versions.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACJA,2CAA4D;AAiD5D,MAAA,SAAsB,eAAA,CACrB,QAAA,EACA,cAAA,EACA,UAAA,EACqB;AACrB,EAAA,MAAM,QAAA,EAAU,EAAE,CAAC,6BAA4B,CAAA,EAAG,WAAW,CAAA;AAC7D,EAAA,OAAO,MAAM,mCAAA,QAAI,EAAU,cAAA,EAAgB,CAAC,CAAA,EAAG,OAAO,CAAA;AACvD;AAEA,MAAA,SAAsB,kBAAA,CACrB,QAAA,EACA,cAAA,EACA,UAAA,EAC2B;AAC3B,EAAA,MAAM,QAAA,EAAU;AAAA,IACf,CAAC,6BAA4B,CAAA,EAAG,UAAA;AAAA,IAChC,CAAC,kCAAiC,CAAA,EAAG;AAAA,EACtC,CAAA;AACA,EAAA,OAAO,MAAM,mCAAA,QAAI,EAAU,EAAA,EAAI,CAAC,CAAA,EAAG,OAAO,CAAA;AAC3C;ADnDA;AACA;AACE;AACA;AACF,2FAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-ZHELW3VP.cjs","sourcesContent":[null,"import { INSTANCE_ID_HEADER, INSTANCE_VERSION_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 interface WhatsNewSection {\n\ttitle: string;\n\tcalloutText: string;\n\tfooter: string;\n\titems: WhatsNewArticle[];\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n}\n\nexport interface WhatsNewArticle {\n\tid: number;\n\tcreatedAt: string;\n\tupdatedAt: string | null;\n\tpublishedAt: string;\n\ttitle: string;\n\tcontent: string;\n}\n\nexport async function getNextVersions(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<Version[]> {\n\tconst headers = { [INSTANCE_ID_HEADER as string]: instanceId };\n\treturn await get(endpoint, currentVersion, {}, headers);\n}\n\nexport async function getWhatsNewSection(\n\tendpoint: string,\n\tcurrentVersion: string,\n\tinstanceId: string,\n): Promise<WhatsNewSection> {\n\tconst headers = {\n\t\t[INSTANCE_ID_HEADER as string]: instanceId,\n\t\t[INSTANCE_VERSION_HEADER as string]: currentVersion,\n\t};\n\treturn await get(endpoint, '', {}, headers);\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-GLSB4GH3.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
var _chunkZHELW3VPcjs = require('./chunk-ZHELW3VP.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
var _chunkTPJH3ODZcjs = require('./chunk-TPJH3ODZ.cjs');
|
|
@@ -209,5 +210,6 @@ var _chunkBJZROXM5cjs = require('./chunk-BJZROXM5.cjs');
|
|
|
209
210
|
|
|
210
211
|
|
|
211
212
|
|
|
212
|
-
|
|
213
|
+
|
|
214
|
+
exports.NO_NETWORK_ERROR_CODE = _chunkBJZROXM5cjs.NO_NETWORK_ERROR_CODE; exports.ResponseError = _chunkBJZROXM5cjs.ResponseError; exports.STREAM_SEPERATOR = _chunkBJZROXM5cjs.STREAM_SEPERATOR; 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.get = _chunkBJZROXM5cjs.get; 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.getFullApiResponse = _chunkBJZROXM5cjs.getFullApiResponse; 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 = _chunkZHELW3VPcjs.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.getWhatsNewSection = _chunkZHELW3VPcjs.getWhatsNewSection; 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.makeRestApiRequest = _chunkBJZROXM5cjs.makeRestApiRequest; exports.patch = _chunkBJZROXM5cjs.patch; exports.post = _chunkBJZROXM5cjs.post; exports.request = _chunkBJZROXM5cjs.request; 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.streamRequest = _chunkBJZROXM5cjs.streamRequest; 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;
|
|
213
215
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+mKAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -17,7 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './api/tags.cjs';
|
|
18
18
|
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './api/templates.cjs';
|
|
19
19
|
export { dismissBannerPermanently } from './api/ui.cjs';
|
|
20
|
-
export { Version, VersionNode, getNextVersions } from './api/versions.cjs';
|
|
20
|
+
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './api/versions.cjs';
|
|
21
21
|
export { findWebhook } from './api/webhooks.cjs';
|
|
22
22
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './api/workflowHistory.cjs';
|
|
23
23
|
export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './api/workflows.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './api/tags.js';
|
|
18
18
|
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './api/templates.js';
|
|
19
19
|
export { dismissBannerPermanently } from './api/ui.js';
|
|
20
|
-
export { Version, VersionNode, getNextVersions } from './api/versions.js';
|
|
20
|
+
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './api/versions.js';
|
|
21
21
|
export { findWebhook } from './api/webhooks.js';
|
|
22
22
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './api/workflowHistory.js';
|
|
23
23
|
export { WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowMetadata } from './api/workflows.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./chunk-72B7PPKD.js";
|
|
2
2
|
import {
|
|
3
|
-
getNextVersions
|
|
4
|
-
|
|
3
|
+
getNextVersions,
|
|
4
|
+
getWhatsNewSection
|
|
5
|
+
} from "./chunk-Q7EXJ6B2.js";
|
|
5
6
|
import {
|
|
6
7
|
findWebhook
|
|
7
8
|
} from "./chunk-LANSDJGN.js";
|
|
@@ -177,6 +178,7 @@ export {
|
|
|
177
178
|
getSamlMetadata,
|
|
178
179
|
getSettings,
|
|
179
180
|
getTemplateById,
|
|
181
|
+
getWhatsNewSection,
|
|
180
182
|
getWorkflowHistory,
|
|
181
183
|
getWorkflowTemplate,
|
|
182
184
|
getWorkflowVersion,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/rest-api-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
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/api-types": "0.
|
|
30
|
-
"@n8n/constants": "0.
|
|
31
|
-
"@n8n/permissions": "0.
|
|
32
|
-
"@n8n/utils": "1.
|
|
33
|
-
"n8n-workflow": "1.
|
|
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.
|
|
39
|
-
"typescript": "
|
|
40
|
-
"vite": "
|
|
41
|
-
"vitest": "
|
|
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.
|
|
43
|
+
"@n8n/i18n": "1.5.0",
|
|
44
44
|
"@n8n/typescript-config": "1.2.0",
|
|
45
|
-
"@n8n/vitest-config": "1.
|
|
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 --
|
|
65
|
-
"lintfix": "eslint src --
|
|
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
|
}
|
package/dist/chunk-FXQQJTT6.js
DELETED
|
@@ -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":[]}
|
package/dist/chunk-RYFRJOLT.cjs
DELETED
|
@@ -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"]}
|