mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🔀 Merge branch 'arpadgabor-feat/monaco'
This commit is contained in:
@@ -631,10 +631,13 @@ export type NodePropertyTypes =
|
||||
| 'options'
|
||||
| 'string';
|
||||
|
||||
export type EditorTypes = 'code';
|
||||
export type CodeAutocompleteTypes = 'function' | 'functionItem';
|
||||
|
||||
export type EditorTypes = 'code' | 'json';
|
||||
|
||||
export interface INodePropertyTypeOptions {
|
||||
alwaysOpenEditWindow?: boolean; // Supported by: string
|
||||
codeAutocomplete?: CodeAutocompleteTypes; // Supported by: string
|
||||
editor?: EditorTypes; // Supported by: string
|
||||
loadOptionsDependsOn?: string[]; // Supported by: options
|
||||
loadOptionsMethod?: string; // Supported by: options
|
||||
@@ -849,6 +852,7 @@ export interface IWebhookDescription {
|
||||
}
|
||||
|
||||
export interface IWorkflowDataProxyData {
|
||||
[key: string]: any;
|
||||
$binary: any;
|
||||
$data: any;
|
||||
$env: any;
|
||||
|
||||
@@ -92,6 +92,12 @@ export class WorkflowDataProxy {
|
||||
|
||||
return Reflect.ownKeys(target);
|
||||
},
|
||||
getOwnPropertyDescriptor(k) {
|
||||
return {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
};
|
||||
},
|
||||
get(target, name, receiver) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
name = name.toString();
|
||||
@@ -142,6 +148,12 @@ export class WorkflowDataProxy {
|
||||
ownKeys(target) {
|
||||
return Reflect.ownKeys(target);
|
||||
},
|
||||
getOwnPropertyDescriptor(k) {
|
||||
return {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
};
|
||||
},
|
||||
get(target, name, receiver) {
|
||||
name = name.toString();
|
||||
|
||||
@@ -385,6 +397,15 @@ export class WorkflowDataProxy {
|
||||
return new Proxy(
|
||||
{},
|
||||
{
|
||||
ownKeys(target) {
|
||||
return allowedValues;
|
||||
},
|
||||
getOwnPropertyDescriptor(k) {
|
||||
return {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
};
|
||||
},
|
||||
get(target, name, receiver) {
|
||||
if (!allowedValues.includes(name.toString())) {
|
||||
throw new Error(`The key "${name.toString()}" is not supported!`);
|
||||
|
||||
Reference in New Issue
Block a user