@n8n/rest-api-client 2.1.1 → 2.2.1
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 +1 -0
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/api/workflowHistory.cjs +2 -1
- package/dist/api/workflowHistory.d.cts +2 -2
- package/dist/api/workflowHistory.d.mts +2 -2
- package/dist/api/workflowHistory.mjs +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/workflowHistory.cjs +10 -0
- package/dist/workflowHistory.cjs.map +1 -1
- package/dist/workflowHistory.d.cts +7 -1
- package/dist/workflowHistory.d.mts +7 -1
- package/dist/workflowHistory.mjs +6 -2
- package/dist/workflowHistory.mjs.map +1 -1
- package/package.json +7 -7
package/dist/api/index.cjs
CHANGED
|
@@ -97,6 +97,7 @@ exports.getWhatsNewSection = require_versions.getWhatsNewSection;
|
|
|
97
97
|
exports.getWorkflowHistory = require_workflowHistory.getWorkflowHistory;
|
|
98
98
|
exports.getWorkflowTemplate = require_templates.getWorkflowTemplate;
|
|
99
99
|
exports.getWorkflowVersion = require_workflowHistory.getWorkflowVersion;
|
|
100
|
+
exports.getWorkflowVersionsByIds = require_workflowHistory.getWorkflowVersionsByIds;
|
|
100
101
|
exports.getWorkflows = require_templates.getWorkflows;
|
|
101
102
|
exports.hasDestinationId = require_eventbus_ee.hasDestinationId;
|
|
102
103
|
exports.initOidcLogin = require_sso.initOidcLogin;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -27,6 +27,6 @@ import { t as dismissBannerPermanently } from "../ui.cjs";
|
|
|
27
27
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "../usage.cjs";
|
|
28
28
|
import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "../users.cjs";
|
|
29
29
|
import { t as findWebhook } from "../webhooks.cjs";
|
|
30
|
-
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.cjs";
|
|
30
|
+
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, l as getWorkflowVersionsByIds, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.cjs";
|
|
31
31
|
import "../index2.cjs";
|
|
32
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
32
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/api/index.d.mts
CHANGED
|
@@ -27,6 +27,6 @@ import { t as dismissBannerPermanently } from "../ui.mjs";
|
|
|
27
27
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "../usage.mjs";
|
|
28
28
|
import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "../users.mjs";
|
|
29
29
|
import { t as findWebhook } from "../webhooks.mjs";
|
|
30
|
-
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.mjs";
|
|
30
|
+
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, l as getWorkflowVersionsByIds, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.mjs";
|
|
31
31
|
import "../index2.mjs";
|
|
32
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
32
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/api/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as regi
|
|
|
25
25
|
import { _ as updateOtherUserSettings, a as getUsers, c as logout, d as signup, f as submitPersonalizationSurvey, g as updateGlobalRole, h as updateCurrentUserSettings, i as getPasswordResetLink, l as sendForgotPasswordEmail, m as updateCurrentUserPassword, n as deleteUser, o as login, p as updateCurrentUser, r as getInviteLink, s as loginCurrentUser, t as changePassword, u as setupOwner, v as validatePasswordToken, y as validateSignupToken } from "../users.mjs";
|
|
26
26
|
import { n as getWhatsNewSection, t as getNextVersions } from "../versions.mjs";
|
|
27
27
|
import { t as findWebhook } from "../webhooks.mjs";
|
|
28
|
-
import { n as getWorkflowVersion, t as getWorkflowHistory } from "../workflowHistory.mjs";
|
|
28
|
+
import { n as getWorkflowVersion, r as getWorkflowVersionsByIds, t as getWorkflowHistory } from "../workflowHistory.mjs";
|
|
29
29
|
import "../api.mjs";
|
|
30
30
|
|
|
31
|
-
export { activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
31
|
+
export { activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
@@ -2,4 +2,5 @@ require('../utils2.cjs');
|
|
|
2
2
|
const require_workflowHistory = require('../workflowHistory.cjs');
|
|
3
3
|
|
|
4
4
|
exports.getWorkflowHistory = require_workflowHistory.getWorkflowHistory;
|
|
5
|
-
exports.getWorkflowVersion = require_workflowHistory.getWorkflowVersion;
|
|
5
|
+
exports.getWorkflowVersion = require_workflowHistory.getWorkflowVersion;
|
|
6
|
+
exports.getWorkflowVersionsByIds = require_workflowHistory.getWorkflowVersionsByIds;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../types2.cjs";
|
|
2
|
-
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.cjs";
|
|
3
|
-
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion };
|
|
2
|
+
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, l as getWorkflowVersionsByIds, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.cjs";
|
|
3
|
+
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion, getWorkflowVersionsByIds };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../types2.mjs";
|
|
2
|
-
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.mjs";
|
|
3
|
-
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion };
|
|
2
|
+
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, l as getWorkflowVersionsByIds, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.mjs";
|
|
3
|
+
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion, getWorkflowVersionsByIds };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../utils2.mjs";
|
|
2
|
-
import { n as getWorkflowVersion, t as getWorkflowHistory } from "../workflowHistory.mjs";
|
|
2
|
+
import { n as getWorkflowVersion, r as getWorkflowVersionsByIds, t as getWorkflowHistory } from "../workflowHistory.mjs";
|
|
3
3
|
|
|
4
|
-
export { getWorkflowHistory, getWorkflowVersion };
|
|
4
|
+
export { getWorkflowHistory, getWorkflowVersion, getWorkflowVersionsByIds };
|
package/dist/index.cjs
CHANGED
|
@@ -103,6 +103,7 @@ exports.getWhatsNewSection = require_versions.getWhatsNewSection;
|
|
|
103
103
|
exports.getWorkflowHistory = require_workflowHistory.getWorkflowHistory;
|
|
104
104
|
exports.getWorkflowTemplate = require_templates.getWorkflowTemplate;
|
|
105
105
|
exports.getWorkflowVersion = require_workflowHistory.getWorkflowVersion;
|
|
106
|
+
exports.getWorkflowVersionsByIds = require_workflowHistory.getWorkflowVersionsByIds;
|
|
106
107
|
exports.getWorkflows = require_templates.getWorkflows;
|
|
107
108
|
exports.hasDestinationId = require_eventbus_ee.hasDestinationId;
|
|
108
109
|
exports.initOidcLogin = require_sso.initOidcLogin;
|
package/dist/index.d.cts
CHANGED
|
@@ -27,7 +27,7 @@ import { t as dismissBannerPermanently } from "./ui.cjs";
|
|
|
27
27
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "./usage.cjs";
|
|
28
28
|
import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "./users.cjs";
|
|
29
29
|
import { t as findWebhook } from "./webhooks.cjs";
|
|
30
|
-
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "./workflowHistory.cjs";
|
|
30
|
+
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, l as getWorkflowVersionsByIds, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "./workflowHistory.cjs";
|
|
31
31
|
import "./index2.cjs";
|
|
32
32
|
import { a as get, c as patch, d as streamRequest, i as STREAM_SEPARATOR, l as post, n as NO_NETWORK_ERROR_CODE, o as getFullApiResponse, r as ResponseError, s as makeRestApiRequest, t as MfaRequiredError, u as request } from "./utils2.cjs";
|
|
33
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
33
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/index.d.mts
CHANGED
|
@@ -27,7 +27,7 @@ import { t as dismissBannerPermanently } from "./ui.mjs";
|
|
|
27
27
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "./usage.mjs";
|
|
28
28
|
import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "./users.mjs";
|
|
29
29
|
import { t as findWebhook } from "./webhooks.mjs";
|
|
30
|
-
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "./workflowHistory.mjs";
|
|
30
|
+
import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, l as getWorkflowVersionsByIds, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "./workflowHistory.mjs";
|
|
31
31
|
import "./index2.mjs";
|
|
32
32
|
import { a as get, c as patch, d as streamRequest, i as STREAM_SEPARATOR, l as post, n as NO_NETWORK_ERROR_CODE, o as getFullApiResponse, r as ResponseError, s as makeRestApiRequest, t as MfaRequiredError, u as request } from "./utils2.mjs";
|
|
33
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
33
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as regi
|
|
|
25
25
|
import { _ as updateOtherUserSettings, a as getUsers, c as logout, d as signup, f as submitPersonalizationSurvey, g as updateGlobalRole, h as updateCurrentUserSettings, i as getPasswordResetLink, l as sendForgotPasswordEmail, m as updateCurrentUserPassword, n as deleteUser, o as login, p as updateCurrentUser, r as getInviteLink, s as loginCurrentUser, t as changePassword, u as setupOwner, v as validatePasswordToken, y as validateSignupToken } from "./users.mjs";
|
|
26
26
|
import { n as getWhatsNewSection, t as getNextVersions } from "./versions.mjs";
|
|
27
27
|
import { t as findWebhook } from "./webhooks.mjs";
|
|
28
|
-
import { n as getWorkflowVersion, t as getWorkflowHistory } from "./workflowHistory.mjs";
|
|
28
|
+
import { n as getWorkflowVersion, r as getWorkflowVersionsByIds, t as getWorkflowHistory } from "./workflowHistory.mjs";
|
|
29
29
|
import "./api.mjs";
|
|
30
30
|
|
|
31
|
-
export { MfaRequiredError, NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPARATOR, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
31
|
+
export { MfaRequiredError, NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPARATOR, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/workflowHistory.cjs
CHANGED
|
@@ -9,6 +9,10 @@ const getWorkflowVersion = async (context, workflowId, versionId) => {
|
|
|
9
9
|
const { data } = await require_utils.get(context.baseUrl, `/workflow-history/workflow/${workflowId}/version/${versionId}`);
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
12
|
+
const getWorkflowVersionsByIds = async (context, workflowId, versionIds) => {
|
|
13
|
+
const { data } = await require_utils.post(context.baseUrl, `/workflow-history/workflow/${workflowId}/versions`, { versionIds });
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
12
16
|
|
|
13
17
|
//#endregion
|
|
14
18
|
Object.defineProperty(exports, 'getWorkflowHistory', {
|
|
@@ -23,4 +27,10 @@ Object.defineProperty(exports, 'getWorkflowVersion', {
|
|
|
23
27
|
return getWorkflowVersion;
|
|
24
28
|
}
|
|
25
29
|
});
|
|
30
|
+
Object.defineProperty(exports, 'getWorkflowVersionsByIds', {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return getWorkflowVersionsByIds;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
26
36
|
//# sourceMappingURL=workflowHistory.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflowHistory.cjs","names":["get"],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tworkflowPublishHistory: WorkflowPublishHistory[];\n\tname: string | null;\n\tdescription: string | null;\n};\n\nexport type WorkflowPublishHistory = {\n\tcreatedAt: string;\n\tid: number;\n\tevent: 'activated' | 'deactivated';\n\tuserId: string | null;\n\tversionId: string;\n\tworkflowId: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = Array<\n\t'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'\n>;\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAsCA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO"}
|
|
1
|
+
{"version":3,"file":"workflowHistory.cjs","names":["get","post"],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get, post } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tworkflowPublishHistory: WorkflowPublishHistory[];\n\tname: string | null;\n\tdescription: string | null;\n};\n\nexport type WorkflowPublishHistory = {\n\tcreatedAt: string;\n\tid: number;\n\tevent: 'activated' | 'deactivated';\n\tuserId: string | null;\n\tversionId: string;\n\tworkflowId: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = Array<\n\t'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'\n>;\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersionsByIds = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionIds: string[],\n): Promise<{ versions: Array<{ versionId: string; createdAt: string }> }> => {\n\tconst { data } = await post(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/versions`,\n\t\t{ versionIds },\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAsCA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO;;AAGR,MAAa,2BAA2B,OACvC,SACA,YACA,eAC4E;CAC5E,MAAM,EAAE,SAAS,MAAMC,mBACtB,QAAQ,SACR,8BAA8B,WAAW,YACzC,EAAE,YAAY,CACd;AACD,QAAO"}
|
|
@@ -32,6 +32,12 @@ type WorkflowHistoryRequestParams = {
|
|
|
32
32
|
};
|
|
33
33
|
declare const getWorkflowHistory: (context: IRestApiContext, workflowId: string, queryParams: WorkflowHistoryRequestParams) => Promise<WorkflowHistory[]>;
|
|
34
34
|
declare const getWorkflowVersion: (context: IRestApiContext, workflowId: string, versionId: string) => Promise<WorkflowVersion>;
|
|
35
|
+
declare const getWorkflowVersionsByIds: (context: IRestApiContext, workflowId: string, versionIds: string[]) => Promise<{
|
|
36
|
+
versions: Array<{
|
|
37
|
+
versionId: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
35
41
|
//#endregion
|
|
36
|
-
export { WorkflowVersion as a, getWorkflowVersion as c, WorkflowPublishHistory as i, WorkflowHistoryActionTypes as n, WorkflowVersionId as o, WorkflowHistoryRequestParams as r, getWorkflowHistory as s, WorkflowHistory as t };
|
|
42
|
+
export { WorkflowVersion as a, getWorkflowVersion as c, WorkflowPublishHistory as i, getWorkflowVersionsByIds as l, WorkflowHistoryActionTypes as n, WorkflowVersionId as o, WorkflowHistoryRequestParams as r, getWorkflowHistory as s, WorkflowHistory as t };
|
|
37
43
|
//# sourceMappingURL=workflowHistory.d.cts.map
|
|
@@ -32,6 +32,12 @@ type WorkflowHistoryRequestParams = {
|
|
|
32
32
|
};
|
|
33
33
|
declare const getWorkflowHistory: (context: IRestApiContext, workflowId: string, queryParams: WorkflowHistoryRequestParams) => Promise<WorkflowHistory[]>;
|
|
34
34
|
declare const getWorkflowVersion: (context: IRestApiContext, workflowId: string, versionId: string) => Promise<WorkflowVersion>;
|
|
35
|
+
declare const getWorkflowVersionsByIds: (context: IRestApiContext, workflowId: string, versionIds: string[]) => Promise<{
|
|
36
|
+
versions: Array<{
|
|
37
|
+
versionId: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
35
41
|
//#endregion
|
|
36
|
-
export { WorkflowVersion as a, getWorkflowVersion as c, WorkflowPublishHistory as i, WorkflowHistoryActionTypes as n, WorkflowVersionId as o, WorkflowHistoryRequestParams as r, getWorkflowHistory as s, WorkflowHistory as t };
|
|
42
|
+
export { WorkflowVersion as a, getWorkflowVersion as c, WorkflowPublishHistory as i, getWorkflowVersionsByIds as l, WorkflowHistoryActionTypes as n, WorkflowVersionId as o, WorkflowHistoryRequestParams as r, getWorkflowHistory as s, WorkflowHistory as t };
|
|
37
43
|
//# sourceMappingURL=workflowHistory.d.mts.map
|
package/dist/workflowHistory.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as get } from "./utils2.mjs";
|
|
1
|
+
import { a as get, l as post } from "./utils2.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/workflowHistory.ts
|
|
4
4
|
const getWorkflowHistory = async (context, workflowId, queryParams) => {
|
|
@@ -9,7 +9,11 @@ const getWorkflowVersion = async (context, workflowId, versionId) => {
|
|
|
9
9
|
const { data } = await get(context.baseUrl, `/workflow-history/workflow/${workflowId}/version/${versionId}`);
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
12
|
+
const getWorkflowVersionsByIds = async (context, workflowId, versionIds) => {
|
|
13
|
+
const { data } = await post(context.baseUrl, `/workflow-history/workflow/${workflowId}/versions`, { versionIds });
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
12
16
|
|
|
13
17
|
//#endregion
|
|
14
|
-
export { getWorkflowVersion as n, getWorkflowHistory as t };
|
|
18
|
+
export { getWorkflowVersion as n, getWorkflowVersionsByIds as r, getWorkflowHistory as t };
|
|
15
19
|
//# sourceMappingURL=workflowHistory.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflowHistory.mjs","names":[],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tworkflowPublishHistory: WorkflowPublishHistory[];\n\tname: string | null;\n\tdescription: string | null;\n};\n\nexport type WorkflowPublishHistory = {\n\tcreatedAt: string;\n\tid: number;\n\tevent: 'activated' | 'deactivated';\n\tuserId: string | null;\n\tversionId: string;\n\tworkflowId: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = Array<\n\t'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'\n>;\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAsCA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO"}
|
|
1
|
+
{"version":3,"file":"workflowHistory.mjs","names":[],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get, post } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tworkflowPublishHistory: WorkflowPublishHistory[];\n\tname: string | null;\n\tdescription: string | null;\n};\n\nexport type WorkflowPublishHistory = {\n\tcreatedAt: string;\n\tid: number;\n\tevent: 'activated' | 'deactivated';\n\tuserId: string | null;\n\tversionId: string;\n\tworkflowId: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = Array<\n\t'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'\n>;\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersionsByIds = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionIds: string[],\n): Promise<{ versions: Array<{ versionId: string; createdAt: string }> }> => {\n\tconst { data } = await post(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/versions`,\n\t\t{ versionIds },\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAsCA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO;;AAGR,MAAa,2BAA2B,OACvC,SACA,YACA,eAC4E;CAC5E,MAAM,EAAE,SAAS,MAAM,KACtB,QAAQ,SACR,8BAA8B,WAAW,YACzC,EAAE,YAAY,CACd;AACD,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/rest-api-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"LICENSE.md",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"js-base64": "3.7.2",
|
|
27
27
|
"axios": "1.12.0",
|
|
28
28
|
"flatted": "3.2.7",
|
|
29
|
-
"@n8n/api-types": "1.
|
|
29
|
+
"@n8n/api-types": "1.2.1",
|
|
30
30
|
"@n8n/constants": "0.15.0",
|
|
31
|
-
"@n8n/permissions": "0.
|
|
32
|
-
"n8n
|
|
33
|
-
"
|
|
31
|
+
"@n8n/permissions": "0.45.0",
|
|
32
|
+
"@n8n/utils": "1.21.0",
|
|
33
|
+
"n8n-workflow": "2.2.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"typescript": "5.9.2",
|
|
40
40
|
"vite": "npm:rolldown-vite@latest",
|
|
41
41
|
"vitest": "^3.1.3",
|
|
42
|
-
"@n8n/
|
|
42
|
+
"@n8n/i18n": "2.2.1",
|
|
43
43
|
"@n8n/typescript-config": "1.3.0",
|
|
44
44
|
"@n8n/vitest-config": "1.5.0",
|
|
45
|
-
"@n8n/
|
|
45
|
+
"@n8n/eslint-config": "0.0.1"
|
|
46
46
|
},
|
|
47
47
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
48
48
|
"homepage": "https://n8n.io",
|