@n8n/rest-api-client 1.8.0 → 1.8.2

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.
@@ -44,7 +44,7 @@ require('../chunk-F2BR3GFD.cjs');
44
44
 
45
45
 
46
46
 
47
- var _chunkN3KYHSJNcjs = require('../chunk-N3KYHSJN.cjs');
47
+ var _chunkPDW6HEEZcjs = require('../chunk-PDW6HEEZ.cjs');
48
48
 
49
49
 
50
50
  var _chunkDSZQ3LTRcjs = require('../chunk-DSZQ3LTR.cjs');
@@ -191,5 +191,5 @@ require('../chunk-CXANUEOE.cjs');
191
191
 
192
192
 
193
193
 
194
- exports.canEnableMFA = _chunkOV7UJVKRcjs.canEnableMFA; exports.createApiKey = _chunkK5WSAZTLcjs.createApiKey; exports.deleteApiKey = _chunkK5WSAZTLcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunkOB6QUZZOcjs.deleteDestinationFromDb; exports.disableMfa = _chunkOV7UJVKRcjs.disableMfa; exports.dismissBannerPermanently = _chunkDSZQ3LTRcjs.dismissBannerPermanently; exports.enableMfa = _chunkOV7UJVKRcjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkXR664FGVcjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkXR664FGVcjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkC7EDXYMGcjs.findWebhook; exports.getAdminPanelLoginCode = _chunk2UDX6KSWcjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkK5WSAZTLcjs.getApiKeyScopes; exports.getApiKeys = _chunkK5WSAZTLcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkOHF4O34Mcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunkOOJBVMQTcjs.getBecomeCreatorCta; exports.getCategories = _chunkN3KYHSJNcjs.getCategories; exports.getCloudUserInfo = _chunk2UDX6KSWcjs.getCloudUserInfo; exports.getCollectionById = _chunkN3KYHSJNcjs.getCollectionById; exports.getCollections = _chunkN3KYHSJNcjs.getCollections; exports.getCurrentPlan = _chunk2UDX6KSWcjs.getCurrentPlan; exports.getCurrentUsage = _chunk2UDX6KSWcjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunkOB6QUZZOcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunkOB6QUZZOcjs.getEventNamesFromBackend; exports.getInstalledCommunityNodes = _chunkOHF4O34Mcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkZYTDV3ZPcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkZYTDV3ZPcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkXR664FGVcjs.getLocalResourceMapperFields; exports.getMfaQR = _chunkOV7UJVKRcjs.getMfaQR; exports.getModuleSettings = _chunkSROE4HVCcjs.getModuleSettings; exports.getNextVersions = _chunkO3LVSY2Ocjs.getNextVersions; exports.getNodeParameterActionResult = _chunkXR664FGVcjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkXR664FGVcjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkXR664FGVcjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkXR664FGVcjs.getNodeTypes; exports.getNodesInformation = _chunkXR664FGVcjs.getNodesInformation; exports.getOidcConfig = _chunkXCKMEOZ6cjs.getOidcConfig; exports.getPromptsData = _chunk7P4MIN3Icjs.getPromptsData; exports.getResourceLocatorResults = _chunkXR664FGVcjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkXR664FGVcjs.getResourceMapperFields; exports.getRoles = _chunkLZN3X7AKcjs.getRoles; exports.getSamlConfig = _chunkXCKMEOZ6cjs.getSamlConfig; exports.getSamlMetadata = _chunkXCKMEOZ6cjs.getSamlMetadata; exports.getSettings = _chunk3FTGUK44cjs.getSettings; exports.getTemplateById = _chunkN3KYHSJNcjs.getTemplateById; exports.getWhatsNewSection = _chunkO3LVSY2Ocjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkSW7IBR4Ecjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkN3KYHSJNcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkSW7IBR4Ecjs.getWorkflowVersion; exports.getWorkflows = _chunkN3KYHSJNcjs.getWorkflows; exports.hasDestinationId = _chunkOB6QUZZOcjs.hasDestinationId; exports.initOidcLogin = _chunkXCKMEOZ6cjs.initOidcLogin; exports.initSSO = _chunkXCKMEOZ6cjs.initSSO; exports.installNewPackage = _chunkOHF4O34Mcjs.installNewPackage; exports.runLdapSync = _chunkZYTDV3ZPcjs.runLdapSync; exports.saveDestinationToDb = _chunkOB6QUZZOcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkXCKMEOZ6cjs.saveOidcConfig; exports.saveSamlConfig = _chunkXCKMEOZ6cjs.saveSamlConfig; exports.sendConfirmationEmail = _chunk2UDX6KSWcjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkJKPZR2TJcjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunkOB6QUZZOcjs.sendTestMessageToDestination; exports.sessionStarted = _chunkY55DMGV3cjs.sessionStarted; exports.submitContactInfo = _chunk7P4MIN3Icjs.submitContactInfo; exports.testHealthEndpoint = _chunkN3KYHSJNcjs.testHealthEndpoint; exports.testLdapConnection = _chunkZYTDV3ZPcjs.testLdapConnection; exports.testSamlConfig = _chunkXCKMEOZ6cjs.testSamlConfig; exports.toggleSamlConfig = _chunkXCKMEOZ6cjs.toggleSamlConfig; exports.uninstallPackage = _chunkOHF4O34Mcjs.uninstallPackage; exports.updateApiKey = _chunkK5WSAZTLcjs.updateApiKey; exports.updateEnforceMfa = _chunkOV7UJVKRcjs.updateEnforceMfa; exports.updateLdapConfig = _chunkZYTDV3ZPcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk3XQAB4AGcjs.updateNpsSurveyState; exports.updatePackage = _chunkOHF4O34Mcjs.updatePackage; exports.verifyMfaCode = _chunkOV7UJVKRcjs.verifyMfaCode;
194
+ exports.canEnableMFA = _chunkOV7UJVKRcjs.canEnableMFA; exports.createApiKey = _chunkK5WSAZTLcjs.createApiKey; exports.deleteApiKey = _chunkK5WSAZTLcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunkOB6QUZZOcjs.deleteDestinationFromDb; exports.disableMfa = _chunkOV7UJVKRcjs.disableMfa; exports.dismissBannerPermanently = _chunkDSZQ3LTRcjs.dismissBannerPermanently; exports.enableMfa = _chunkOV7UJVKRcjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkXR664FGVcjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkXR664FGVcjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkC7EDXYMGcjs.findWebhook; exports.getAdminPanelLoginCode = _chunk2UDX6KSWcjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkK5WSAZTLcjs.getApiKeyScopes; exports.getApiKeys = _chunkK5WSAZTLcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkOHF4O34Mcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunkOOJBVMQTcjs.getBecomeCreatorCta; exports.getCategories = _chunkPDW6HEEZcjs.getCategories; exports.getCloudUserInfo = _chunk2UDX6KSWcjs.getCloudUserInfo; exports.getCollectionById = _chunkPDW6HEEZcjs.getCollectionById; exports.getCollections = _chunkPDW6HEEZcjs.getCollections; exports.getCurrentPlan = _chunk2UDX6KSWcjs.getCurrentPlan; exports.getCurrentUsage = _chunk2UDX6KSWcjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunkOB6QUZZOcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunkOB6QUZZOcjs.getEventNamesFromBackend; exports.getInstalledCommunityNodes = _chunkOHF4O34Mcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkZYTDV3ZPcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkZYTDV3ZPcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkXR664FGVcjs.getLocalResourceMapperFields; exports.getMfaQR = _chunkOV7UJVKRcjs.getMfaQR; exports.getModuleSettings = _chunkSROE4HVCcjs.getModuleSettings; exports.getNextVersions = _chunkO3LVSY2Ocjs.getNextVersions; exports.getNodeParameterActionResult = _chunkXR664FGVcjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkXR664FGVcjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkXR664FGVcjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkXR664FGVcjs.getNodeTypes; exports.getNodesInformation = _chunkXR664FGVcjs.getNodesInformation; exports.getOidcConfig = _chunkXCKMEOZ6cjs.getOidcConfig; exports.getPromptsData = _chunk7P4MIN3Icjs.getPromptsData; exports.getResourceLocatorResults = _chunkXR664FGVcjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkXR664FGVcjs.getResourceMapperFields; exports.getRoles = _chunkLZN3X7AKcjs.getRoles; exports.getSamlConfig = _chunkXCKMEOZ6cjs.getSamlConfig; exports.getSamlMetadata = _chunkXCKMEOZ6cjs.getSamlMetadata; exports.getSettings = _chunk3FTGUK44cjs.getSettings; exports.getTemplateById = _chunkPDW6HEEZcjs.getTemplateById; exports.getWhatsNewSection = _chunkO3LVSY2Ocjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkSW7IBR4Ecjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkPDW6HEEZcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkSW7IBR4Ecjs.getWorkflowVersion; exports.getWorkflows = _chunkPDW6HEEZcjs.getWorkflows; exports.hasDestinationId = _chunkOB6QUZZOcjs.hasDestinationId; exports.initOidcLogin = _chunkXCKMEOZ6cjs.initOidcLogin; exports.initSSO = _chunkXCKMEOZ6cjs.initSSO; exports.installNewPackage = _chunkOHF4O34Mcjs.installNewPackage; exports.runLdapSync = _chunkZYTDV3ZPcjs.runLdapSync; exports.saveDestinationToDb = _chunkOB6QUZZOcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkXCKMEOZ6cjs.saveOidcConfig; exports.saveSamlConfig = _chunkXCKMEOZ6cjs.saveSamlConfig; exports.sendConfirmationEmail = _chunk2UDX6KSWcjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkJKPZR2TJcjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunkOB6QUZZOcjs.sendTestMessageToDestination; exports.sessionStarted = _chunkY55DMGV3cjs.sessionStarted; exports.submitContactInfo = _chunk7P4MIN3Icjs.submitContactInfo; exports.testHealthEndpoint = _chunkPDW6HEEZcjs.testHealthEndpoint; exports.testLdapConnection = _chunkZYTDV3ZPcjs.testLdapConnection; exports.testSamlConfig = _chunkXCKMEOZ6cjs.testSamlConfig; exports.toggleSamlConfig = _chunkXCKMEOZ6cjs.toggleSamlConfig; exports.uninstallPackage = _chunkOHF4O34Mcjs.uninstallPackage; exports.updateApiKey = _chunkK5WSAZTLcjs.updateApiKey; exports.updateEnforceMfa = _chunkOV7UJVKRcjs.updateEnforceMfa; exports.updateLdapConfig = _chunkZYTDV3ZPcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk3XQAB4AGcjs.updateNpsSurveyState; exports.updatePackage = _chunkOHF4O34Mcjs.updatePackage; exports.verifyMfaCode = _chunkOV7UJVKRcjs.verifyMfaCode;
195
195
  //# sourceMappingURL=index.cjs.map
package/dist/api/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  getWorkflowTemplate,
45
45
  getWorkflows,
46
46
  testHealthEndpoint
47
- } from "../chunk-WRJVRWH6.js";
47
+ } from "../chunk-DUXKOLQR.js";
48
48
  import {
49
49
  dismissBannerPermanently
50
50
  } from "../chunk-YUD6EP3J.js";
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkN3KYHSJNcjs = require('../chunk-N3KYHSJN.cjs');
9
+ var _chunkPDW6HEEZcjs = require('../chunk-PDW6HEEZ.cjs');
10
10
  require('../chunk-CXANUEOE.cjs');
11
11
 
12
12
 
@@ -16,5 +16,5 @@ require('../chunk-CXANUEOE.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.getCategories = _chunkN3KYHSJNcjs.getCategories; exports.getCollectionById = _chunkN3KYHSJNcjs.getCollectionById; exports.getCollections = _chunkN3KYHSJNcjs.getCollections; exports.getTemplateById = _chunkN3KYHSJNcjs.getTemplateById; exports.getWorkflowTemplate = _chunkN3KYHSJNcjs.getWorkflowTemplate; exports.getWorkflows = _chunkN3KYHSJNcjs.getWorkflows; exports.testHealthEndpoint = _chunkN3KYHSJNcjs.testHealthEndpoint;
19
+ exports.getCategories = _chunkPDW6HEEZcjs.getCategories; exports.getCollectionById = _chunkPDW6HEEZcjs.getCollectionById; exports.getCollections = _chunkPDW6HEEZcjs.getCollections; exports.getTemplateById = _chunkPDW6HEEZcjs.getTemplateById; exports.getWorkflowTemplate = _chunkPDW6HEEZcjs.getWorkflowTemplate; exports.getWorkflows = _chunkPDW6HEEZcjs.getWorkflows; exports.testHealthEndpoint = _chunkPDW6HEEZcjs.testHealthEndpoint;
20
20
  //# sourceMappingURL=templates.cjs.map
@@ -88,6 +88,7 @@ interface ITemplatesQuery {
88
88
  categories: string[];
89
89
  search: string;
90
90
  apps?: string[];
91
+ nodes?: string[];
91
92
  sort?: string;
92
93
  combineWith?: string;
93
94
  }
@@ -109,6 +110,7 @@ declare function getWorkflows(apiEndpoint: string, query: {
109
110
  search: string;
110
111
  sort?: string;
111
112
  apps?: string[];
113
+ nodes?: string[];
112
114
  combineWith?: string;
113
115
  }, headers?: RawAxiosRequestHeaders): Promise<{
114
116
  totalWorkflows: number;
@@ -88,6 +88,7 @@ interface ITemplatesQuery {
88
88
  categories: string[];
89
89
  search: string;
90
90
  apps?: string[];
91
+ nodes?: string[];
91
92
  sort?: string;
92
93
  combineWith?: string;
93
94
  }
@@ -109,6 +110,7 @@ declare function getWorkflows(apiEndpoint: string, query: {
109
110
  search: string;
110
111
  sort?: string;
111
112
  apps?: string[];
113
+ nodes?: string[];
112
114
  combineWith?: string;
113
115
  }, headers?: RawAxiosRequestHeaders): Promise<{
114
116
  totalWorkflows: number;
@@ -6,7 +6,7 @@ import {
6
6
  getWorkflowTemplate,
7
7
  getWorkflows,
8
8
  testHealthEndpoint
9
- } from "../chunk-WRJVRWH6.js";
9
+ } from "../chunk-DUXKOLQR.js";
10
10
  import "../chunk-SHSKCS7V.js";
11
11
  export {
12
12
  getCategories,
@@ -21,11 +21,12 @@ async function getCollections(apiEndpoint, query, headers) {
21
21
  );
22
22
  }
23
23
  async function getWorkflows(apiEndpoint, query, headers) {
24
- const { apps, sort, combineWith, categories, ...restQuery } = query;
24
+ const { apps, sort, combineWith, categories, nodes, ...restQuery } = query;
25
25
  const finalQuery = {
26
26
  ...restQuery,
27
27
  category: stringifyArray(categories),
28
- ...apps && { app: stringifyArray(apps) },
28
+ ...apps && { apps: stringifyArray(apps) },
29
+ ...nodes && { nodes: stringifyArray(nodes) },
29
30
  ...sort && { sort },
30
31
  ...combineWith && { combineWith }
31
32
  };
@@ -50,4 +51,4 @@ export {
50
51
  getTemplateById,
51
52
  getWorkflowTemplate
52
53
  };
53
- //# sourceMappingURL=chunk-WRJVRWH6.js.map
54
+ //# sourceMappingURL=chunk-DUXKOLQR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/api/templates.ts"],"sourcesContent":["import type { RawAxiosRequestHeaders } from 'axios';\nimport type { INode, INodeCredentialsDetails } from 'n8n-workflow';\n\nimport type { VersionNode } from './versions';\nimport type { WorkflowData } from './workflows';\nimport { get } from '../utils';\n\nexport interface IWorkflowTemplateNode\n\textends Pick<\n\t\tINode,\n\t\t'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'\n\t> {\n\t// The credentials in a template workflow have a different type than in a regular workflow\n\tcredentials?: IWorkflowTemplateNodeCredentials;\n}\n\nexport interface IWorkflowTemplateNodeCredentials {\n\t[key: string]: string | INodeCredentialsDetails;\n}\n\nexport interface IWorkflowTemplate {\n\tid: number;\n\tname: string;\n\tworkflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {\n\t\tnodes: IWorkflowTemplateNode[];\n\t};\n}\n\nexport interface ITemplatesNode extends VersionNode {\n\tid: number;\n\tcategories?: ITemplatesCategory[];\n}\n\nexport interface ITemplatesCollection {\n\tid: number;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\tworkflows: Array<{ id: number }>;\n}\n\ninterface ITemplatesImage {\n\tid: number;\n\turl: string;\n}\n\ninterface ITemplatesCollectionExtended extends ITemplatesCollection {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tcreatedAt: string;\n}\n\nexport interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {\n\tfull: true;\n}\n\nexport interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {\n\tworkflows: ITemplatesWorkflow[];\n}\n\n/**\n * A template without the actual workflow definition\n */\n\nexport interface ITemplatesWorkflow {\n\tid: number;\n\tcreatedAt: string;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\ttotalViews: number;\n\tuser: {\n\t\tusername: string;\n\t};\n}\n\nexport interface ITemplatesWorkflowInfo {\n\tnodeCount: number;\n\tnodeTypes: {\n\t\t[key: string]: {\n\t\t\tcount: number;\n\t\t};\n\t};\n}\n\nexport type TemplateSearchFacet = {\n\tfield_name: string;\n\tsampled: boolean;\n\tstats: {\n\t\ttotal_values: number;\n\t};\n\tcounts: Array<{\n\t\tcount: number;\n\t\thighlighted: string;\n\t\tvalue: string;\n\t}>;\n};\n\nexport interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tworkflowInfo: ITemplatesWorkflowInfo;\n}\n\n/**\n * A template with also the full workflow definition\n */\n\nexport interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {\n\tfull: true;\n}\n\nexport interface ITemplatesQuery {\n\tcategories: string[];\n\tsearch: string;\n\tapps?: string[];\n\tnodes?: string[];\n\tsort?: string;\n\tcombineWith?: string;\n}\n\nexport interface ITemplatesCategory {\n\tid: number;\n\tname: string;\n}\n\nfunction stringifyArray(arr: string[]) {\n\treturn arr.join(',');\n}\n\nexport async function testHealthEndpoint(apiEndpoint: string) {\n\treturn await get(apiEndpoint, '/health');\n}\n\nexport async function getCategories(\n\tapiEndpoint: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ categories: ITemplatesCategory[] }> {\n\treturn await get(apiEndpoint, '/templates/categories', undefined, headers);\n}\n\nexport async function getCollections(\n\tapiEndpoint: string,\n\tquery: ITemplatesQuery,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collections: ITemplatesCollection[] }> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/collections',\n\t\t{ category: query.categories, search: query.search },\n\t\theaders,\n\t);\n}\n\nexport async function getWorkflows(\n\tapiEndpoint: string,\n\tquery: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tnodes?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, nodes, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { apps: stringifyArray(apps) }),\n\t\t...(nodes && { nodes: stringifyArray(nodes) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\n}\n\nexport async function getCollectionById(\n\tapiEndpoint: string,\n\tcollectionId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collection: ITemplatesCollectionResponse }> {\n\treturn await get(apiEndpoint, `/templates/collections/${collectionId}`, undefined, headers);\n}\n\nexport async function getTemplateById(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ workflow: ITemplatesWorkflowResponse }> {\n\treturn await get(apiEndpoint, `/templates/workflows/${templateId}`, undefined, headers);\n}\n\nexport async function getWorkflowTemplate(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<IWorkflowTemplate> {\n\treturn await get(apiEndpoint, `/workflows/templates/${templateId}`, undefined, headers);\n}\n"],"mappings":";;;;;AA8HA,SAAS,eAAe,KAAe;AACtC,SAAO,IAAI,KAAK,GAAG;AACpB;AAEA,eAAsB,mBAAmB,aAAqB;AAC7D,SAAO,MAAM,IAAI,aAAa,SAAS;AACxC;AAEA,eAAsB,cACrB,aACA,SACgD;AAChD,SAAO,MAAM,IAAI,aAAa,yBAAyB,QAAW,OAAO;AAC1E;AAEA,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,IACA,EAAE,UAAU,MAAM,YAAY,QAAQ,MAAM,OAAO;AAAA,IACnD;AAAA,EACD;AACD;AAEA,eAAsB,aACrB,aACA,OAUA,SAKE;AACF,QAAM,EAAE,MAAM,MAAM,aAAa,YAAY,OAAO,GAAG,UAAU,IAAI;AACrE,QAAM,aAAa;AAAA,IAClB,GAAG;AAAA,IACH,UAAU,eAAe,UAAU;AAAA,IACnC,GAAI,QAAQ,EAAE,MAAM,eAAe,IAAI,EAAE;AAAA,IACzC,GAAI,SAAS,EAAE,OAAO,eAAe,KAAK,EAAE;AAAA,IAC5C,GAAI,QAAQ,EAAE,KAAK;AAAA,IACnB,GAAI,eAAe,EAAE,YAAY;AAAA,EAClC;AAEA,SAAO,MAAM,IAAI,aAAa,qBAAqB,YAAY,OAAO;AACvE;AAEA,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,SAAO,MAAM,IAAI,aAAa,0BAA0B,YAAY,IAAI,QAAW,OAAO;AAC3F;AAEA,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,SAAO,MAAM,IAAI,aAAa,wBAAwB,UAAU,IAAI,QAAW,OAAO;AACvF;AAEA,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,SAAO,MAAM,IAAI,aAAa,wBAAwB,UAAU,IAAI,QAAW,OAAO;AACvF;","names":[]}
@@ -21,11 +21,12 @@ async function getCollections(apiEndpoint, query, headers) {
21
21
  );
22
22
  }
23
23
  async function getWorkflows(apiEndpoint, query, headers) {
24
- const { apps, sort, combineWith, categories, ...restQuery } = query;
24
+ const { apps, sort, combineWith, categories, nodes, ...restQuery } = query;
25
25
  const finalQuery = {
26
26
  ...restQuery,
27
27
  category: stringifyArray(categories),
28
- ...apps && { app: stringifyArray(apps) },
28
+ ...apps && { apps: stringifyArray(apps) },
29
+ ...nodes && { nodes: stringifyArray(nodes) },
29
30
  ...sort && { sort },
30
31
  ...combineWith && { combineWith }
31
32
  };
@@ -50,4 +51,4 @@ async function getWorkflowTemplate(apiEndpoint, templateId, headers) {
50
51
 
51
52
 
52
53
  exports.testHealthEndpoint = testHealthEndpoint; exports.getCategories = getCategories; exports.getCollections = getCollections; exports.getWorkflows = getWorkflows; exports.getCollectionById = getCollectionById; exports.getTemplateById = getTemplateById; exports.getWorkflowTemplate = getWorkflowTemplate;
53
- //# sourceMappingURL=chunk-N3KYHSJN.cjs.map
54
+ //# sourceMappingURL=chunk-PDW6HEEZ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-PDW6HEEZ.cjs","../src/api/templates.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;AC0HA,SAAS,cAAA,CAAe,GAAA,EAAe;AACtC,EAAA,OAAO,GAAA,CAAI,IAAA,CAAK,GAAG,CAAA;AACpB;AAEA,MAAA,SAAsB,kBAAA,CAAmB,WAAA,EAAqB;AAC7D,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,SAAS,CAAA;AACxC;AAEA,MAAA,SAAsB,aAAA,CACrB,WAAA,EACA,OAAA,EACgD;AAChD,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,uBAAA,EAAyB,KAAA,CAAA,EAAW,OAAO,CAAA;AAC1E;AAEA,MAAA,SAAsB,cAAA,CACrB,WAAA,EACA,KAAA,EACA,OAAA,EACmD;AACnD,EAAA,OAAO,MAAM,mCAAA;AAAA,IACZ,WAAA;AAAA,IACA,wBAAA;AAAA,IACA,EAAE,QAAA,EAAU,KAAA,CAAM,UAAA,EAAY,MAAA,EAAQ,KAAA,CAAM,OAAO,CAAA;AAAA,IACnD;AAAA,EACD,CAAA;AACD;AAEA,MAAA,SAAsB,YAAA,CACrB,WAAA,EACA,KAAA,EAUA,OAAA,EAKE;AACF,EAAA,MAAM,EAAE,IAAA,EAAM,IAAA,EAAM,WAAA,EAAa,UAAA,EAAY,KAAA,EAAO,GAAG,UAAU,EAAA,EAAI,KAAA;AACrE,EAAA,MAAM,WAAA,EAAa;AAAA,IAClB,GAAG,SAAA;AAAA,IACH,QAAA,EAAU,cAAA,CAAe,UAAU,CAAA;AAAA,IACnC,GAAI,KAAA,GAAQ,EAAE,IAAA,EAAM,cAAA,CAAe,IAAI,EAAE,CAAA;AAAA,IACzC,GAAI,MAAA,GAAS,EAAE,KAAA,EAAO,cAAA,CAAe,KAAK,EAAE,CAAA;AAAA,IAC5C,GAAI,KAAA,GAAQ,EAAE,KAAK,CAAA;AAAA,IACnB,GAAI,YAAA,GAAe,EAAE,YAAY;AAAA,EAClC,CAAA;AAEA,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,mBAAA,EAAqB,UAAA,EAAY,OAAO,CAAA;AACvE;AAEA,MAAA,SAAsB,iBAAA,CACrB,WAAA,EACA,YAAA,EACA,OAAA,EACwD;AACxD,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,CAAA,uBAAA,EAA0B,YAAY,CAAA,CAAA;AACrE;AAMqD;AACgB,EAAA;AACrE;AAM8B;AACuC,EAAA;AACrE;ADpKuE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-PDW6HEEZ.cjs","sourcesContent":[null,"import type { RawAxiosRequestHeaders } from 'axios';\nimport type { INode, INodeCredentialsDetails } from 'n8n-workflow';\n\nimport type { VersionNode } from './versions';\nimport type { WorkflowData } from './workflows';\nimport { get } from '../utils';\n\nexport interface IWorkflowTemplateNode\n\textends Pick<\n\t\tINode,\n\t\t'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'\n\t> {\n\t// The credentials in a template workflow have a different type than in a regular workflow\n\tcredentials?: IWorkflowTemplateNodeCredentials;\n}\n\nexport interface IWorkflowTemplateNodeCredentials {\n\t[key: string]: string | INodeCredentialsDetails;\n}\n\nexport interface IWorkflowTemplate {\n\tid: number;\n\tname: string;\n\tworkflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {\n\t\tnodes: IWorkflowTemplateNode[];\n\t};\n}\n\nexport interface ITemplatesNode extends VersionNode {\n\tid: number;\n\tcategories?: ITemplatesCategory[];\n}\n\nexport interface ITemplatesCollection {\n\tid: number;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\tworkflows: Array<{ id: number }>;\n}\n\ninterface ITemplatesImage {\n\tid: number;\n\turl: string;\n}\n\ninterface ITemplatesCollectionExtended extends ITemplatesCollection {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tcreatedAt: string;\n}\n\nexport interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {\n\tfull: true;\n}\n\nexport interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {\n\tworkflows: ITemplatesWorkflow[];\n}\n\n/**\n * A template without the actual workflow definition\n */\n\nexport interface ITemplatesWorkflow {\n\tid: number;\n\tcreatedAt: string;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\ttotalViews: number;\n\tuser: {\n\t\tusername: string;\n\t};\n}\n\nexport interface ITemplatesWorkflowInfo {\n\tnodeCount: number;\n\tnodeTypes: {\n\t\t[key: string]: {\n\t\t\tcount: number;\n\t\t};\n\t};\n}\n\nexport type TemplateSearchFacet = {\n\tfield_name: string;\n\tsampled: boolean;\n\tstats: {\n\t\ttotal_values: number;\n\t};\n\tcounts: Array<{\n\t\tcount: number;\n\t\thighlighted: string;\n\t\tvalue: string;\n\t}>;\n};\n\nexport interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tworkflowInfo: ITemplatesWorkflowInfo;\n}\n\n/**\n * A template with also the full workflow definition\n */\n\nexport interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {\n\tfull: true;\n}\n\nexport interface ITemplatesQuery {\n\tcategories: string[];\n\tsearch: string;\n\tapps?: string[];\n\tnodes?: string[];\n\tsort?: string;\n\tcombineWith?: string;\n}\n\nexport interface ITemplatesCategory {\n\tid: number;\n\tname: string;\n}\n\nfunction stringifyArray(arr: string[]) {\n\treturn arr.join(',');\n}\n\nexport async function testHealthEndpoint(apiEndpoint: string) {\n\treturn await get(apiEndpoint, '/health');\n}\n\nexport async function getCategories(\n\tapiEndpoint: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ categories: ITemplatesCategory[] }> {\n\treturn await get(apiEndpoint, '/templates/categories', undefined, headers);\n}\n\nexport async function getCollections(\n\tapiEndpoint: string,\n\tquery: ITemplatesQuery,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collections: ITemplatesCollection[] }> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/collections',\n\t\t{ category: query.categories, search: query.search },\n\t\theaders,\n\t);\n}\n\nexport async function getWorkflows(\n\tapiEndpoint: string,\n\tquery: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tnodes?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, nodes, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { apps: stringifyArray(apps) }),\n\t\t...(nodes && { nodes: stringifyArray(nodes) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\n}\n\nexport async function getCollectionById(\n\tapiEndpoint: string,\n\tcollectionId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collection: ITemplatesCollectionResponse }> {\n\treturn await get(apiEndpoint, `/templates/collections/${collectionId}`, undefined, headers);\n}\n\nexport async function getTemplateById(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ workflow: ITemplatesWorkflowResponse }> {\n\treturn await get(apiEndpoint, `/templates/workflows/${templateId}`, undefined, headers);\n}\n\nexport async function getWorkflowTemplate(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<IWorkflowTemplate> {\n\treturn await get(apiEndpoint, `/workflows/templates/${templateId}`, undefined, headers);\n}\n"]}
package/dist/index.cjs CHANGED
@@ -44,7 +44,7 @@ require('./chunk-F2BR3GFD.cjs');
44
44
 
45
45
 
46
46
 
47
- var _chunkN3KYHSJNcjs = require('./chunk-N3KYHSJN.cjs');
47
+ var _chunkPDW6HEEZcjs = require('./chunk-PDW6HEEZ.cjs');
48
48
 
49
49
 
50
50
  var _chunkDSZQ3LTRcjs = require('./chunk-DSZQ3LTR.cjs');
@@ -215,5 +215,5 @@ var _chunkCXANUEOEcjs = require('./chunk-CXANUEOE.cjs');
215
215
 
216
216
 
217
217
 
218
- exports.MfaRequiredError = _chunkCXANUEOEcjs.MfaRequiredError; exports.NO_NETWORK_ERROR_CODE = _chunkCXANUEOEcjs.NO_NETWORK_ERROR_CODE; exports.ResponseError = _chunkCXANUEOEcjs.ResponseError; exports.STREAM_SEPERATOR = _chunkCXANUEOEcjs.STREAM_SEPERATOR; exports.canEnableMFA = _chunkOV7UJVKRcjs.canEnableMFA; exports.createApiKey = _chunkK5WSAZTLcjs.createApiKey; exports.deleteApiKey = _chunkK5WSAZTLcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunkOB6QUZZOcjs.deleteDestinationFromDb; exports.disableMfa = _chunkOV7UJVKRcjs.disableMfa; exports.dismissBannerPermanently = _chunkDSZQ3LTRcjs.dismissBannerPermanently; exports.enableMfa = _chunkOV7UJVKRcjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkXR664FGVcjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkXR664FGVcjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkC7EDXYMGcjs.findWebhook; exports.get = _chunkCXANUEOEcjs.get; exports.getAdminPanelLoginCode = _chunk2UDX6KSWcjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkK5WSAZTLcjs.getApiKeyScopes; exports.getApiKeys = _chunkK5WSAZTLcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkOHF4O34Mcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunkOOJBVMQTcjs.getBecomeCreatorCta; exports.getCategories = _chunkN3KYHSJNcjs.getCategories; exports.getCloudUserInfo = _chunk2UDX6KSWcjs.getCloudUserInfo; exports.getCollectionById = _chunkN3KYHSJNcjs.getCollectionById; exports.getCollections = _chunkN3KYHSJNcjs.getCollections; exports.getCurrentPlan = _chunk2UDX6KSWcjs.getCurrentPlan; exports.getCurrentUsage = _chunk2UDX6KSWcjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunkOB6QUZZOcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunkOB6QUZZOcjs.getEventNamesFromBackend; exports.getFullApiResponse = _chunkCXANUEOEcjs.getFullApiResponse; exports.getInstalledCommunityNodes = _chunkOHF4O34Mcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkZYTDV3ZPcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkZYTDV3ZPcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkXR664FGVcjs.getLocalResourceMapperFields; exports.getMfaQR = _chunkOV7UJVKRcjs.getMfaQR; exports.getModuleSettings = _chunkSROE4HVCcjs.getModuleSettings; exports.getNextVersions = _chunkO3LVSY2Ocjs.getNextVersions; exports.getNodeParameterActionResult = _chunkXR664FGVcjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkXR664FGVcjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkXR664FGVcjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkXR664FGVcjs.getNodeTypes; exports.getNodesInformation = _chunkXR664FGVcjs.getNodesInformation; exports.getOidcConfig = _chunkXCKMEOZ6cjs.getOidcConfig; exports.getPromptsData = _chunk7P4MIN3Icjs.getPromptsData; exports.getResourceLocatorResults = _chunkXR664FGVcjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkXR664FGVcjs.getResourceMapperFields; exports.getRoles = _chunkLZN3X7AKcjs.getRoles; exports.getSamlConfig = _chunkXCKMEOZ6cjs.getSamlConfig; exports.getSamlMetadata = _chunkXCKMEOZ6cjs.getSamlMetadata; exports.getSettings = _chunk3FTGUK44cjs.getSettings; exports.getTemplateById = _chunkN3KYHSJNcjs.getTemplateById; exports.getWhatsNewSection = _chunkO3LVSY2Ocjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkSW7IBR4Ecjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkN3KYHSJNcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkSW7IBR4Ecjs.getWorkflowVersion; exports.getWorkflows = _chunkN3KYHSJNcjs.getWorkflows; exports.hasDestinationId = _chunkOB6QUZZOcjs.hasDestinationId; exports.initOidcLogin = _chunkXCKMEOZ6cjs.initOidcLogin; exports.initSSO = _chunkXCKMEOZ6cjs.initSSO; exports.installNewPackage = _chunkOHF4O34Mcjs.installNewPackage; exports.makeRestApiRequest = _chunkCXANUEOEcjs.makeRestApiRequest; exports.patch = _chunkCXANUEOEcjs.patch; exports.post = _chunkCXANUEOEcjs.post; exports.request = _chunkCXANUEOEcjs.request; exports.runLdapSync = _chunkZYTDV3ZPcjs.runLdapSync; exports.saveDestinationToDb = _chunkOB6QUZZOcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkXCKMEOZ6cjs.saveOidcConfig; exports.saveSamlConfig = _chunkXCKMEOZ6cjs.saveSamlConfig; exports.sendConfirmationEmail = _chunk2UDX6KSWcjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkJKPZR2TJcjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunkOB6QUZZOcjs.sendTestMessageToDestination; exports.sessionStarted = _chunkY55DMGV3cjs.sessionStarted; exports.streamRequest = _chunkCXANUEOEcjs.streamRequest; exports.submitContactInfo = _chunk7P4MIN3Icjs.submitContactInfo; exports.testHealthEndpoint = _chunkN3KYHSJNcjs.testHealthEndpoint; exports.testLdapConnection = _chunkZYTDV3ZPcjs.testLdapConnection; exports.testSamlConfig = _chunkXCKMEOZ6cjs.testSamlConfig; exports.toggleSamlConfig = _chunkXCKMEOZ6cjs.toggleSamlConfig; exports.uninstallPackage = _chunkOHF4O34Mcjs.uninstallPackage; exports.updateApiKey = _chunkK5WSAZTLcjs.updateApiKey; exports.updateEnforceMfa = _chunkOV7UJVKRcjs.updateEnforceMfa; exports.updateLdapConfig = _chunkZYTDV3ZPcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk3XQAB4AGcjs.updateNpsSurveyState; exports.updatePackage = _chunkOHF4O34Mcjs.updatePackage; exports.verifyMfaCode = _chunkOV7UJVKRcjs.verifyMfaCode;
218
+ exports.MfaRequiredError = _chunkCXANUEOEcjs.MfaRequiredError; exports.NO_NETWORK_ERROR_CODE = _chunkCXANUEOEcjs.NO_NETWORK_ERROR_CODE; exports.ResponseError = _chunkCXANUEOEcjs.ResponseError; exports.STREAM_SEPERATOR = _chunkCXANUEOEcjs.STREAM_SEPERATOR; exports.canEnableMFA = _chunkOV7UJVKRcjs.canEnableMFA; exports.createApiKey = _chunkK5WSAZTLcjs.createApiKey; exports.deleteApiKey = _chunkK5WSAZTLcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunkOB6QUZZOcjs.deleteDestinationFromDb; exports.disableMfa = _chunkOV7UJVKRcjs.disableMfa; exports.dismissBannerPermanently = _chunkDSZQ3LTRcjs.dismissBannerPermanently; exports.enableMfa = _chunkOV7UJVKRcjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkXR664FGVcjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkXR664FGVcjs.fetchCommunityNodeTypes; exports.findWebhook = _chunkC7EDXYMGcjs.findWebhook; exports.get = _chunkCXANUEOEcjs.get; exports.getAdminPanelLoginCode = _chunk2UDX6KSWcjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkK5WSAZTLcjs.getApiKeyScopes; exports.getApiKeys = _chunkK5WSAZTLcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkOHF4O34Mcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunkOOJBVMQTcjs.getBecomeCreatorCta; exports.getCategories = _chunkPDW6HEEZcjs.getCategories; exports.getCloudUserInfo = _chunk2UDX6KSWcjs.getCloudUserInfo; exports.getCollectionById = _chunkPDW6HEEZcjs.getCollectionById; exports.getCollections = _chunkPDW6HEEZcjs.getCollections; exports.getCurrentPlan = _chunk2UDX6KSWcjs.getCurrentPlan; exports.getCurrentUsage = _chunk2UDX6KSWcjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunkOB6QUZZOcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunkOB6QUZZOcjs.getEventNamesFromBackend; exports.getFullApiResponse = _chunkCXANUEOEcjs.getFullApiResponse; exports.getInstalledCommunityNodes = _chunkOHF4O34Mcjs.getInstalledCommunityNodes; exports.getLdapConfig = _chunkZYTDV3ZPcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkZYTDV3ZPcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkXR664FGVcjs.getLocalResourceMapperFields; exports.getMfaQR = _chunkOV7UJVKRcjs.getMfaQR; exports.getModuleSettings = _chunkSROE4HVCcjs.getModuleSettings; exports.getNextVersions = _chunkO3LVSY2Ocjs.getNextVersions; exports.getNodeParameterActionResult = _chunkXR664FGVcjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkXR664FGVcjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkXR664FGVcjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkXR664FGVcjs.getNodeTypes; exports.getNodesInformation = _chunkXR664FGVcjs.getNodesInformation; exports.getOidcConfig = _chunkXCKMEOZ6cjs.getOidcConfig; exports.getPromptsData = _chunk7P4MIN3Icjs.getPromptsData; exports.getResourceLocatorResults = _chunkXR664FGVcjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkXR664FGVcjs.getResourceMapperFields; exports.getRoles = _chunkLZN3X7AKcjs.getRoles; exports.getSamlConfig = _chunkXCKMEOZ6cjs.getSamlConfig; exports.getSamlMetadata = _chunkXCKMEOZ6cjs.getSamlMetadata; exports.getSettings = _chunk3FTGUK44cjs.getSettings; exports.getTemplateById = _chunkPDW6HEEZcjs.getTemplateById; exports.getWhatsNewSection = _chunkO3LVSY2Ocjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkSW7IBR4Ecjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkPDW6HEEZcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkSW7IBR4Ecjs.getWorkflowVersion; exports.getWorkflows = _chunkPDW6HEEZcjs.getWorkflows; exports.hasDestinationId = _chunkOB6QUZZOcjs.hasDestinationId; exports.initOidcLogin = _chunkXCKMEOZ6cjs.initOidcLogin; exports.initSSO = _chunkXCKMEOZ6cjs.initSSO; exports.installNewPackage = _chunkOHF4O34Mcjs.installNewPackage; exports.makeRestApiRequest = _chunkCXANUEOEcjs.makeRestApiRequest; exports.patch = _chunkCXANUEOEcjs.patch; exports.post = _chunkCXANUEOEcjs.post; exports.request = _chunkCXANUEOEcjs.request; exports.runLdapSync = _chunkZYTDV3ZPcjs.runLdapSync; exports.saveDestinationToDb = _chunkOB6QUZZOcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkXCKMEOZ6cjs.saveOidcConfig; exports.saveSamlConfig = _chunkXCKMEOZ6cjs.saveSamlConfig; exports.sendConfirmationEmail = _chunk2UDX6KSWcjs.sendConfirmationEmail; exports.sendGetWorkerStatus = _chunkJKPZR2TJcjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunkOB6QUZZOcjs.sendTestMessageToDestination; exports.sessionStarted = _chunkY55DMGV3cjs.sessionStarted; exports.streamRequest = _chunkCXANUEOEcjs.streamRequest; exports.submitContactInfo = _chunk7P4MIN3Icjs.submitContactInfo; exports.testHealthEndpoint = _chunkPDW6HEEZcjs.testHealthEndpoint; exports.testLdapConnection = _chunkZYTDV3ZPcjs.testLdapConnection; exports.testSamlConfig = _chunkXCKMEOZ6cjs.testSamlConfig; exports.toggleSamlConfig = _chunkXCKMEOZ6cjs.toggleSamlConfig; exports.uninstallPackage = _chunkOHF4O34Mcjs.uninstallPackage; exports.updateApiKey = _chunkK5WSAZTLcjs.updateApiKey; exports.updateEnforceMfa = _chunkOV7UJVKRcjs.updateEnforceMfa; exports.updateLdapConfig = _chunkZYTDV3ZPcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunk3XQAB4AGcjs.updateNpsSurveyState; exports.updatePackage = _chunkOHF4O34Mcjs.updatePackage; exports.verifyMfaCode = _chunkOV7UJVKRcjs.verifyMfaCode;
219
219
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  getWorkflowTemplate,
45
45
  getWorkflows,
46
46
  testHealthEndpoint
47
- } from "./chunk-WRJVRWH6.js";
47
+ } from "./chunk-DUXKOLQR.js";
48
48
  import {
49
49
  dismissBannerPermanently
50
50
  } from "./chunk-YUD6EP3J.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@n8n/rest-api-client",
3
3
  "type": "module",
4
- "version": "1.8.0",
4
+ "version": "1.8.2",
5
5
  "files": [
6
6
  "dist",
7
7
  "LICENSE.md",
@@ -26,10 +26,10 @@
26
26
  "js-base64": "3.7.2",
27
27
  "axios": "1.8.3",
28
28
  "flatted": "3.2.7",
29
- "@n8n/api-types": "0.39.0",
29
+ "@n8n/api-types": "0.39.2",
30
30
  "@n8n/permissions": "0.31.0",
31
- "n8n-workflow": "1.102.0",
32
31
  "@n8n/constants": "0.10.0",
32
+ "n8n-workflow": "1.102.2",
33
33
  "@n8n/utils": "1.14.0"
34
34
  },
35
35
  "devDependencies": {
@@ -39,10 +39,10 @@
39
39
  "typescript": "5.8.3",
40
40
  "vite": "^6.3.5",
41
41
  "vitest": "^3.1.3",
42
- "@n8n/i18n": "1.9.0",
43
42
  "@n8n/eslint-config": "0.0.1",
44
- "@n8n/typescript-config": "1.3.0",
45
- "@n8n/vitest-config": "1.5.0"
43
+ "@n8n/i18n": "1.9.2",
44
+ "@n8n/vitest-config": "1.5.0",
45
+ "@n8n/typescript-config": "1.3.0"
46
46
  },
47
47
  "license": "SEE LICENSE IN LICENSE.md",
48
48
  "homepage": "https://n8n.io",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-N3KYHSJN.cjs","../src/api/templates.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACyHA,SAAS,cAAA,CAAe,GAAA,EAAe;AACtC,EAAA,OAAO,GAAA,CAAI,IAAA,CAAK,GAAG,CAAA;AACpB;AAEA,MAAA,SAAsB,kBAAA,CAAmB,WAAA,EAAqB;AAC7D,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,SAAS,CAAA;AACxC;AAEA,MAAA,SAAsB,aAAA,CACrB,WAAA,EACA,OAAA,EACgD;AAChD,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,uBAAA,EAAyB,KAAA,CAAA,EAAW,OAAO,CAAA;AAC1E;AAEA,MAAA,SAAsB,cAAA,CACrB,WAAA,EACA,KAAA,EACA,OAAA,EACmD;AACnD,EAAA,OAAO,MAAM,mCAAA;AAAA,IACZ,WAAA;AAAA,IACA,wBAAA;AAAA,IACA,EAAE,QAAA,EAAU,KAAA,CAAM,UAAA,EAAY,MAAA,EAAQ,KAAA,CAAM,OAAO,CAAA;AAAA,IACnD;AAAA,EACD,CAAA;AACD;AAEA,MAAA,SAAsB,YAAA,CACrB,WAAA,EACA,KAAA,EASA,OAAA,EAKE;AACF,EAAA,MAAM,EAAE,IAAA,EAAM,IAAA,EAAM,WAAA,EAAa,UAAA,EAAY,GAAG,UAAU,EAAA,EAAI,KAAA;AAC9D,EAAA,MAAM,WAAA,EAAa;AAAA,IAClB,GAAG,SAAA;AAAA,IACH,QAAA,EAAU,cAAA,CAAe,UAAU,CAAA;AAAA,IACnC,GAAI,KAAA,GAAQ,EAAE,GAAA,EAAK,cAAA,CAAe,IAAI,EAAE,CAAA;AAAA,IACxC,GAAI,KAAA,GAAQ,EAAE,KAAK,CAAA;AAAA,IACnB,GAAI,YAAA,GAAe,EAAE,YAAY;AAAA,EAClC,CAAA;AAEA,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,mBAAA,EAAqB,UAAA,EAAY,OAAO,CAAA;AACvE;AAEA,MAAA,SAAsB,iBAAA,CACrB,WAAA,EACA,YAAA,EACA,OAAA,EACwD;AACxD,EAAA,OAAO,MAAM,mCAAA,WAAI,EAAa,CAAA,uBAAA,EAA0B,YAAY,CAAA,CAAA;AACrE;AAMqD;AACgB,EAAA;AACrE;AAM8B;AACuC,EAAA;AACrE;ADlKuE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-N3KYHSJN.cjs","sourcesContent":[null,"import type { RawAxiosRequestHeaders } from 'axios';\nimport type { INode, INodeCredentialsDetails } from 'n8n-workflow';\n\nimport type { VersionNode } from './versions';\nimport type { WorkflowData } from './workflows';\nimport { get } from '../utils';\n\nexport interface IWorkflowTemplateNode\n\textends Pick<\n\t\tINode,\n\t\t'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'\n\t> {\n\t// The credentials in a template workflow have a different type than in a regular workflow\n\tcredentials?: IWorkflowTemplateNodeCredentials;\n}\n\nexport interface IWorkflowTemplateNodeCredentials {\n\t[key: string]: string | INodeCredentialsDetails;\n}\n\nexport interface IWorkflowTemplate {\n\tid: number;\n\tname: string;\n\tworkflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {\n\t\tnodes: IWorkflowTemplateNode[];\n\t};\n}\n\nexport interface ITemplatesNode extends VersionNode {\n\tid: number;\n\tcategories?: ITemplatesCategory[];\n}\n\nexport interface ITemplatesCollection {\n\tid: number;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\tworkflows: Array<{ id: number }>;\n}\n\ninterface ITemplatesImage {\n\tid: number;\n\turl: string;\n}\n\ninterface ITemplatesCollectionExtended extends ITemplatesCollection {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tcreatedAt: string;\n}\n\nexport interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {\n\tfull: true;\n}\n\nexport interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {\n\tworkflows: ITemplatesWorkflow[];\n}\n\n/**\n * A template without the actual workflow definition\n */\n\nexport interface ITemplatesWorkflow {\n\tid: number;\n\tcreatedAt: string;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\ttotalViews: number;\n\tuser: {\n\t\tusername: string;\n\t};\n}\n\nexport interface ITemplatesWorkflowInfo {\n\tnodeCount: number;\n\tnodeTypes: {\n\t\t[key: string]: {\n\t\t\tcount: number;\n\t\t};\n\t};\n}\n\nexport type TemplateSearchFacet = {\n\tfield_name: string;\n\tsampled: boolean;\n\tstats: {\n\t\ttotal_values: number;\n\t};\n\tcounts: Array<{\n\t\tcount: number;\n\t\thighlighted: string;\n\t\tvalue: string;\n\t}>;\n};\n\nexport interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tworkflowInfo: ITemplatesWorkflowInfo;\n}\n\n/**\n * A template with also the full workflow definition\n */\n\nexport interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {\n\tfull: true;\n}\n\nexport interface ITemplatesQuery {\n\tcategories: string[];\n\tsearch: string;\n\tapps?: string[];\n\tsort?: string;\n\tcombineWith?: string;\n}\n\nexport interface ITemplatesCategory {\n\tid: number;\n\tname: string;\n}\n\nfunction stringifyArray(arr: string[]) {\n\treturn arr.join(',');\n}\n\nexport async function testHealthEndpoint(apiEndpoint: string) {\n\treturn await get(apiEndpoint, '/health');\n}\n\nexport async function getCategories(\n\tapiEndpoint: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ categories: ITemplatesCategory[] }> {\n\treturn await get(apiEndpoint, '/templates/categories', undefined, headers);\n}\n\nexport async function getCollections(\n\tapiEndpoint: string,\n\tquery: ITemplatesQuery,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collections: ITemplatesCollection[] }> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/collections',\n\t\t{ category: query.categories, search: query.search },\n\t\theaders,\n\t);\n}\n\nexport async function getWorkflows(\n\tapiEndpoint: string,\n\tquery: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { app: stringifyArray(apps) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\n}\n\nexport async function getCollectionById(\n\tapiEndpoint: string,\n\tcollectionId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collection: ITemplatesCollectionResponse }> {\n\treturn await get(apiEndpoint, `/templates/collections/${collectionId}`, undefined, headers);\n}\n\nexport async function getTemplateById(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ workflow: ITemplatesWorkflowResponse }> {\n\treturn await get(apiEndpoint, `/templates/workflows/${templateId}`, undefined, headers);\n}\n\nexport async function getWorkflowTemplate(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<IWorkflowTemplate> {\n\treturn await get(apiEndpoint, `/workflows/templates/${templateId}`, undefined, headers);\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/api/templates.ts"],"sourcesContent":["import type { RawAxiosRequestHeaders } from 'axios';\nimport type { INode, INodeCredentialsDetails } from 'n8n-workflow';\n\nimport type { VersionNode } from './versions';\nimport type { WorkflowData } from './workflows';\nimport { get } from '../utils';\n\nexport interface IWorkflowTemplateNode\n\textends Pick<\n\t\tINode,\n\t\t'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'\n\t> {\n\t// The credentials in a template workflow have a different type than in a regular workflow\n\tcredentials?: IWorkflowTemplateNodeCredentials;\n}\n\nexport interface IWorkflowTemplateNodeCredentials {\n\t[key: string]: string | INodeCredentialsDetails;\n}\n\nexport interface IWorkflowTemplate {\n\tid: number;\n\tname: string;\n\tworkflow: Pick<WorkflowData, 'connections' | 'settings' | 'pinData'> & {\n\t\tnodes: IWorkflowTemplateNode[];\n\t};\n}\n\nexport interface ITemplatesNode extends VersionNode {\n\tid: number;\n\tcategories?: ITemplatesCategory[];\n}\n\nexport interface ITemplatesCollection {\n\tid: number;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\tworkflows: Array<{ id: number }>;\n}\n\ninterface ITemplatesImage {\n\tid: number;\n\turl: string;\n}\n\ninterface ITemplatesCollectionExtended extends ITemplatesCollection {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tcreatedAt: string;\n}\n\nexport interface ITemplatesCollectionFull extends ITemplatesCollectionExtended {\n\tfull: true;\n}\n\nexport interface ITemplatesCollectionResponse extends ITemplatesCollectionExtended {\n\tworkflows: ITemplatesWorkflow[];\n}\n\n/**\n * A template without the actual workflow definition\n */\n\nexport interface ITemplatesWorkflow {\n\tid: number;\n\tcreatedAt: string;\n\tname: string;\n\tnodes: ITemplatesNode[];\n\ttotalViews: number;\n\tuser: {\n\t\tusername: string;\n\t};\n}\n\nexport interface ITemplatesWorkflowInfo {\n\tnodeCount: number;\n\tnodeTypes: {\n\t\t[key: string]: {\n\t\t\tcount: number;\n\t\t};\n\t};\n}\n\nexport type TemplateSearchFacet = {\n\tfield_name: string;\n\tsampled: boolean;\n\tstats: {\n\t\ttotal_values: number;\n\t};\n\tcounts: Array<{\n\t\tcount: number;\n\t\thighlighted: string;\n\t\tvalue: string;\n\t}>;\n};\n\nexport interface ITemplatesWorkflowResponse extends ITemplatesWorkflow, IWorkflowTemplate {\n\tdescription: string | null;\n\timage: ITemplatesImage[];\n\tcategories: ITemplatesCategory[];\n\tworkflowInfo: ITemplatesWorkflowInfo;\n}\n\n/**\n * A template with also the full workflow definition\n */\n\nexport interface ITemplatesWorkflowFull extends ITemplatesWorkflowResponse {\n\tfull: true;\n}\n\nexport interface ITemplatesQuery {\n\tcategories: string[];\n\tsearch: string;\n\tapps?: string[];\n\tsort?: string;\n\tcombineWith?: string;\n}\n\nexport interface ITemplatesCategory {\n\tid: number;\n\tname: string;\n}\n\nfunction stringifyArray(arr: string[]) {\n\treturn arr.join(',');\n}\n\nexport async function testHealthEndpoint(apiEndpoint: string) {\n\treturn await get(apiEndpoint, '/health');\n}\n\nexport async function getCategories(\n\tapiEndpoint: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ categories: ITemplatesCategory[] }> {\n\treturn await get(apiEndpoint, '/templates/categories', undefined, headers);\n}\n\nexport async function getCollections(\n\tapiEndpoint: string,\n\tquery: ITemplatesQuery,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collections: ITemplatesCollection[] }> {\n\treturn await get(\n\t\tapiEndpoint,\n\t\t'/templates/collections',\n\t\t{ category: query.categories, search: query.search },\n\t\theaders,\n\t);\n}\n\nexport async function getWorkflows(\n\tapiEndpoint: string,\n\tquery: {\n\t\tpage: number;\n\t\tlimit: number;\n\t\tcategories: string[];\n\t\tsearch: string;\n\t\tsort?: string;\n\t\tapps?: string[];\n\t\tcombineWith?: string;\n\t},\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{\n\ttotalWorkflows: number;\n\tworkflows: ITemplatesWorkflow[];\n\tfilters: TemplateSearchFacet[];\n}> {\n\tconst { apps, sort, combineWith, categories, ...restQuery } = query;\n\tconst finalQuery = {\n\t\t...restQuery,\n\t\tcategory: stringifyArray(categories),\n\t\t...(apps && { app: stringifyArray(apps) }),\n\t\t...(sort && { sort }),\n\t\t...(combineWith && { combineWith }),\n\t};\n\n\treturn await get(apiEndpoint, '/templates/search', finalQuery, headers);\n}\n\nexport async function getCollectionById(\n\tapiEndpoint: string,\n\tcollectionId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ collection: ITemplatesCollectionResponse }> {\n\treturn await get(apiEndpoint, `/templates/collections/${collectionId}`, undefined, headers);\n}\n\nexport async function getTemplateById(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<{ workflow: ITemplatesWorkflowResponse }> {\n\treturn await get(apiEndpoint, `/templates/workflows/${templateId}`, undefined, headers);\n}\n\nexport async function getWorkflowTemplate(\n\tapiEndpoint: string,\n\ttemplateId: string,\n\theaders?: RawAxiosRequestHeaders,\n): Promise<IWorkflowTemplate> {\n\treturn await get(apiEndpoint, `/workflows/templates/${templateId}`, undefined, headers);\n}\n"],"mappings":";;;;;AA6HA,SAAS,eAAe,KAAe;AACtC,SAAO,IAAI,KAAK,GAAG;AACpB;AAEA,eAAsB,mBAAmB,aAAqB;AAC7D,SAAO,MAAM,IAAI,aAAa,SAAS;AACxC;AAEA,eAAsB,cACrB,aACA,SACgD;AAChD,SAAO,MAAM,IAAI,aAAa,yBAAyB,QAAW,OAAO;AAC1E;AAEA,eAAsB,eACrB,aACA,OACA,SACmD;AACnD,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,IACA,EAAE,UAAU,MAAM,YAAY,QAAQ,MAAM,OAAO;AAAA,IACnD;AAAA,EACD;AACD;AAEA,eAAsB,aACrB,aACA,OASA,SAKE;AACF,QAAM,EAAE,MAAM,MAAM,aAAa,YAAY,GAAG,UAAU,IAAI;AAC9D,QAAM,aAAa;AAAA,IAClB,GAAG;AAAA,IACH,UAAU,eAAe,UAAU;AAAA,IACnC,GAAI,QAAQ,EAAE,KAAK,eAAe,IAAI,EAAE;AAAA,IACxC,GAAI,QAAQ,EAAE,KAAK;AAAA,IACnB,GAAI,eAAe,EAAE,YAAY;AAAA,EAClC;AAEA,SAAO,MAAM,IAAI,aAAa,qBAAqB,YAAY,OAAO;AACvE;AAEA,eAAsB,kBACrB,aACA,cACA,SACwD;AACxD,SAAO,MAAM,IAAI,aAAa,0BAA0B,YAAY,IAAI,QAAW,OAAO;AAC3F;AAEA,eAAsB,gBACrB,aACA,YACA,SACoD;AACpD,SAAO,MAAM,IAAI,aAAa,wBAAwB,UAAU,IAAI,QAAW,OAAO;AACvF;AAEA,eAAsB,oBACrB,aACA,YACA,SAC6B;AAC7B,SAAO,MAAM,IAAI,aAAa,wBAAwB,UAAU,IAAI,QAAW,OAAO;AACvF;","names":[]}