mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
fix: Expand nodes-base
formatting validation (no-changelog) (#4689)
* ⚡ Simplify `format` command * 🎨 Format more deeply nested files
This commit is contained in:
parent
ad6c6f60a1
commit
eafef019d7
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import { INodeProperties } from 'n8n-workflow';
|
||||||
INodeProperties,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
export const listenerCertificateOperations: INodeProperties[] = [
|
export const listenerCertificateOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
|
@ -10,16 +8,15 @@ export const listenerCertificateOperations: INodeProperties[] = [
|
||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Add',
|
name: 'Add',
|
||||||
value: 'add',
|
value: 'add',
|
||||||
description: 'Add the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener',
|
description:
|
||||||
|
'Add the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener',
|
||||||
action: 'Add a listener certificate',
|
action: 'Add a listener certificate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -31,7 +28,8 @@ export const listenerCertificateOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Remove',
|
name: 'Remove',
|
||||||
value: 'remove',
|
value: 'remove',
|
||||||
description: 'Remove the specified certificate from the certificate list for the specified HTTPS or TLS listener',
|
description:
|
||||||
|
'Remove the specified certificate from the certificate list for the specified HTTPS or TLS listener',
|
||||||
action: 'Remove a listener certificate',
|
action: 'Remove a listener certificate',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -40,7 +38,6 @@ export const listenerCertificateOperations: INodeProperties[] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
export const listenerCertificateFields: INodeProperties[] = [
|
export const listenerCertificateFields: INodeProperties[] = [
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* listenerCertificate:add */
|
/* listenerCertificate:add */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
@ -54,16 +51,13 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['add'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'add',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
description:
|
||||||
|
'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Listener ARN Name or ID',
|
displayName: 'Listener ARN Name or ID',
|
||||||
|
@ -72,22 +66,17 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getLoadBalancerListeners',
|
loadOptionsMethod: 'getLoadBalancerListeners',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: ['loadBalancerId'],
|
||||||
'loadBalancerId',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['add'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'add',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
description:
|
||||||
|
'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Certificate ARN',
|
displayName: 'Certificate ARN',
|
||||||
|
@ -96,12 +85,8 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['add'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'add',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -122,16 +107,13 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['getMany'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
description:
|
||||||
|
'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Listener ARN Name or ID',
|
displayName: 'Listener ARN Name or ID',
|
||||||
|
@ -140,22 +122,17 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getLoadBalancerListeners',
|
loadOptionsMethod: 'getLoadBalancerListeners',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: ['loadBalancerId'],
|
||||||
'loadBalancerId',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['getMany'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
description:
|
||||||
|
'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
|
@ -163,12 +140,8 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['getMany'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -186,15 +159,9 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['getMany'],
|
||||||
],
|
returnAll: [false],
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
returnAll: [
|
|
||||||
false,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -212,16 +179,13 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['remove'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'remove',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
description:
|
||||||
|
'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Listener ARN Name or ID',
|
displayName: 'Listener ARN Name or ID',
|
||||||
|
@ -230,22 +194,17 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getLoadBalancerListeners',
|
loadOptionsMethod: 'getLoadBalancerListeners',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: ['loadBalancerId'],
|
||||||
'loadBalancerId',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['remove'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'remove',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
description:
|
||||||
|
'Unique identifier for a particular loadBalancer. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Certificate ARN',
|
displayName: 'Certificate ARN',
|
||||||
|
@ -254,16 +213,11 @@ export const listenerCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['listenerCertificate'],
|
||||||
'listenerCertificate',
|
operation: ['remove'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'remove',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Unique identifier for a particular loadBalancer',
|
description: 'Unique identifier for a particular loadBalancer',
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import { INodeProperties } from 'n8n-workflow';
|
||||||
INodeProperties,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
export const loadBalancerOperations: INodeProperties[] = [
|
export const loadBalancerOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
|
@ -10,9 +8,7 @@ export const loadBalancerOperations: INodeProperties[] = [
|
||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -46,7 +42,6 @@ export const loadBalancerOperations: INodeProperties[] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
export const loadBalancerFields: INodeProperties[] = [
|
export const loadBalancerFields: INodeProperties[] = [
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* loadBalancer:create */
|
/* loadBalancer:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
@ -57,12 +52,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['create'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'create',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -85,16 +76,13 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['create'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'create',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'This name must be unique per region per account, can have a maximum of 32 characters',
|
description:
|
||||||
|
'This name must be unique per region per account, can have a maximum of 32 characters',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Schema',
|
displayName: 'Schema',
|
||||||
|
@ -103,12 +91,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['create'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'create',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -130,12 +114,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['create'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'create',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -154,15 +134,12 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
displayName: 'Subnet ID Names or IDs',
|
displayName: 'Subnet ID Names or IDs',
|
||||||
name: 'subnets',
|
name: 'subnets',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
description:
|
||||||
|
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['create'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'create',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
|
@ -178,12 +155,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
placeholder: 'Add Field',
|
placeholder: 'Add Field',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: ['create'],
|
||||||
'create',
|
resource: ['loadBalancer'],
|
||||||
],
|
|
||||||
resource: [
|
|
||||||
'loadBalancer',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: {},
|
default: {},
|
||||||
|
@ -192,7 +165,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
displayName: 'Security Group IDs',
|
displayName: 'Security Group IDs',
|
||||||
name: 'securityGroups',
|
name: 'securityGroups',
|
||||||
type: 'multiOptions',
|
type: 'multiOptions',
|
||||||
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
description:
|
||||||
|
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getSecurityGroups',
|
loadOptionsMethod: 'getSecurityGroups',
|
||||||
},
|
},
|
||||||
|
@ -243,12 +217,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['get'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'get',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -264,12 +234,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['getMany'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -287,15 +253,9 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['getMany'],
|
||||||
],
|
returnAll: [false],
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
returnAll: [
|
|
||||||
false,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -306,15 +266,9 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
placeholder: 'Add Filter',
|
placeholder: 'Add Filter',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: ['getMany'],
|
||||||
'getMany',
|
resource: ['loadBalancer'],
|
||||||
],
|
returnAll: [true],
|
||||||
resource: [
|
|
||||||
'loadBalancer',
|
|
||||||
],
|
|
||||||
returnAll: [
|
|
||||||
true,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: {},
|
default: {},
|
||||||
|
@ -324,7 +278,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
name: 'names',
|
name: 'names',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The names of the load balancers. Multiples can be defined separated by comma.',
|
description:
|
||||||
|
'The names of the load balancers. Multiples can be defined separated by comma.',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -339,12 +294,8 @@ export const loadBalancerFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['loadBalancer'],
|
||||||
'loadBalancer',
|
operation: ['delete'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'delete',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -343,7 +343,8 @@ export const certificateDescription: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Name of and, optionally, path to the X509 certificate file that is used to form the certificate-key pair. /nsconfig/ssl/ is the default path.',
|
description:
|
||||||
|
'Name of and, optionally, path to the X509 certificate file that is used to form the certificate-key pair. /nsconfig/ssl/ is the default path.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Private Key File Name',
|
displayName: 'Private Key File Name',
|
||||||
|
@ -357,7 +358,8 @@ export const certificateDescription: INodeProperties[] = [
|
||||||
operation: ['install'],
|
operation: ['install'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'Name of and, optionally, path to the X509 certificate file that is used to form the certificate-key pair. /nsconfig/ssl/ is the default path.',
|
description:
|
||||||
|
'Name of and, optionally, path to the X509 certificate file that is used to form the certificate-key pair. /nsconfig/ssl/ is the default path.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Certificate Format',
|
displayName: 'Certificate Format',
|
||||||
|
|
|
@ -26,9 +26,7 @@ export const fileDescription: INodeProperties[] = [
|
||||||
default: 'upload',
|
default: 'upload',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['file'],
|
||||||
'file',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -90,7 +88,7 @@ export const fileDescription: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['delete', 'download' ],
|
operation: ['delete', 'download'],
|
||||||
resource: ['file'],
|
resource: ['file'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -105,7 +103,7 @@ export const fileDescription: INodeProperties[] = [
|
||||||
description: 'Name of the file. It should not include filepath.',
|
description: 'Name of the file. It should not include filepath.',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['delete', 'download' ],
|
operation: ['delete', 'download'],
|
||||||
resource: ['file'],
|
resource: ['file'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -116,11 +114,10 @@ export const fileDescription: INodeProperties[] = [
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
default: 'data',
|
default: 'data',
|
||||||
description:
|
description: 'The name of the output field to put the binary file data in',
|
||||||
'The name of the output field to put the binary file data in',
|
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['download' ],
|
operation: ['download'],
|
||||||
resource: ['file'],
|
resource: ['file'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,8 +19,7 @@ export async function citrixADCApiRequest(
|
||||||
uri?: string,
|
uri?: string,
|
||||||
option: IDataObject = {},
|
option: IDataObject = {},
|
||||||
// tslint:disable-next-line:no-any
|
// tslint:disable-next-line:no-any
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
|
|
||||||
const { url } = (await this.getCredentials('citrixAdcApi')) as { url: string };
|
const { url } = (await this.getCredentials('citrixAdcApi')) as { url: string };
|
||||||
|
|
||||||
let options: OptionsWithUri = {
|
let options: OptionsWithUri = {
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import { OptionsWithUri } from 'request';
|
||||||
OptionsWithUri,
|
|
||||||
} from 'request';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IExecuteFunctions,
|
IExecuteFunctions,
|
||||||
|
@ -9,12 +7,18 @@ import {
|
||||||
IPollFunctions,
|
IPollFunctions,
|
||||||
} from 'n8n-core';
|
} from 'n8n-core';
|
||||||
|
|
||||||
import {
|
import { IDataObject, NodeApiError } from 'n8n-workflow';
|
||||||
IDataObject, NodeApiError,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
export async function cloudflareApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IPollFunctions, method: string, resource: string, body: any = {}, qs: IDataObject = {}, uri?: string, headers: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
|
|
||||||
|
|
||||||
|
export async function cloudflareApiRequest(
|
||||||
|
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IPollFunctions,
|
||||||
|
method: string,
|
||||||
|
resource: string,
|
||||||
|
body = {},
|
||||||
|
qs: IDataObject = {},
|
||||||
|
uri?: string,
|
||||||
|
headers: IDataObject = {},
|
||||||
|
// tslint:disable-next-line:no-any
|
||||||
|
): Promise<any> {
|
||||||
const options: OptionsWithUri = {
|
const options: OptionsWithUri = {
|
||||||
method,
|
method,
|
||||||
body,
|
body,
|
||||||
|
@ -51,13 +55,7 @@ export async function cloudflareApiRequestAllItems(
|
||||||
query.page = 1;
|
query.page = 1;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
responseData = await cloudflareApiRequest.call(
|
responseData = await cloudflareApiRequest.call(this, method, endpoint, body, query);
|
||||||
this,
|
|
||||||
method,
|
|
||||||
endpoint,
|
|
||||||
body,
|
|
||||||
query,
|
|
||||||
);
|
|
||||||
query.page++;
|
query.page++;
|
||||||
returnData.push.apply(returnData, responseData[propertyName]);
|
returnData.push.apply(returnData, responseData[propertyName]);
|
||||||
} while (responseData.result_info.total_pages !== responseData.result_info.page);
|
} while (responseData.result_info.total_pages !== responseData.result_info.page);
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import {
|
import { INodeProperties } from 'n8n-workflow';
|
||||||
INodeProperties,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
export const zoneCertificateOperations: INodeProperties[] = [
|
export const zoneCertificateOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
|
@ -10,9 +8,7 @@ export const zoneCertificateOperations: INodeProperties[] = [
|
||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -53,22 +49,16 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
displayName: 'Zone Name or ID',
|
displayName: 'Zone Name or ID',
|
||||||
name: 'zoneId',
|
name: 'zoneId',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
description:
|
||||||
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getZones',
|
loadOptionsMethod: 'getZones',
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['upload', 'getMany', 'get', 'delete'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'upload',
|
|
||||||
'getMany',
|
|
||||||
'get',
|
|
||||||
'delete',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -80,16 +70,12 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['upload'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'upload',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The zone\'s leaf certificate',
|
description: "The zone's leaf certificate",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Private Key',
|
displayName: 'Private Key',
|
||||||
|
@ -98,12 +84,8 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['upload'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'upload',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -119,12 +101,8 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
default: false,
|
default: false,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['getMany'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -139,15 +117,9 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['getMany'],
|
||||||
],
|
returnAll: [false],
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
returnAll: [
|
|
||||||
false,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'Max number of results to return',
|
description: 'Max number of results to return',
|
||||||
|
@ -160,12 +132,8 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
default: {},
|
default: {},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['getMany'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'getMany',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
@ -192,7 +160,7 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Status of the zone\'s custom SSL',
|
description: "Status of the zone's custom SSL",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -206,13 +174,8 @@ export const zoneCertificateFields: INodeProperties[] = [
|
||||||
required: true,
|
required: true,
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['zoneCertificate'],
|
||||||
'zoneCertificate',
|
operation: ['get', 'delete'],
|
||||||
],
|
|
||||||
operation: [
|
|
||||||
'get',
|
|
||||||
'delete',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -46,7 +46,8 @@ export async function elasticsearchApiRequestAllItems(
|
||||||
indexId: string,
|
indexId: string,
|
||||||
body: IDataObject = {},
|
body: IDataObject = {},
|
||||||
qs: IDataObject = {},
|
qs: IDataObject = {},
|
||||||
): Promise<any> { //tslint:disable-line:no-any
|
// tslint:disable-next-line:no-any
|
||||||
|
): Promise<any> {
|
||||||
//https://www.elastic.co/guide/en/elasticsearch/reference/7.16/paginate-search-results.html#search-after
|
//https://www.elastic.co/guide/en/elasticsearch/reference/7.16/paginate-search-results.html#search-after
|
||||||
try {
|
try {
|
||||||
//create a point in time (PIT) to preserve the current index state over your searches
|
//create a point in time (PIT) to preserve the current index state over your searches
|
||||||
|
|
|
@ -195,21 +195,16 @@ export const documentFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'By default, you cannot page through more than 10,000 hits. To page through more hits, add "Sort" from options.',
|
displayName:
|
||||||
|
'By default, you cannot page through more than 10,000 hits. To page through more hits, add "Sort" from options.',
|
||||||
name: 'paginateNotice',
|
name: 'paginateNotice',
|
||||||
type: 'notice',
|
type: 'notice',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
resource: [
|
resource: ['document'],
|
||||||
'document',
|
operation: ['getAll'],
|
||||||
],
|
returnAll: [true],
|
||||||
operation: [
|
|
||||||
'getAll',
|
|
||||||
],
|
|
||||||
returnAll: [
|
|
||||||
true,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class ExecuteWorkflowTrigger implements INodeType {
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
displayName:
|
displayName:
|
||||||
'When an ‘execute workflow’ node calls this workflow, the execution starts here. Any data passed into the \'execute workflow\' node will be output by this node.',
|
"When an ‘execute workflow’ node calls this workflow, the execution starts here. Any data passed into the 'execute workflow' node will be output by this node.",
|
||||||
name: 'notice',
|
name: 'notice',
|
||||||
type: 'notice',
|
type: 'notice',
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -10,4 +10,4 @@ export type IUpdateFields = IDataObject & {
|
||||||
control: string;
|
control: string;
|
||||||
value: string;
|
value: string;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
import { INodeProperties } from 'n8n-workflow';
|
import { INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
import { dueDatePreSendAction, taskPostReceiceAction, taskUpdatePreSendAction } from '../GenericFunctions';
|
import {
|
||||||
|
dueDatePreSendAction,
|
||||||
|
taskPostReceiceAction,
|
||||||
|
taskUpdatePreSendAction,
|
||||||
|
} from '../GenericFunctions';
|
||||||
|
|
||||||
export const taskOperations: INodeProperties[] = [
|
export const taskOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -315,7 +315,8 @@ export class If implements INodeType {
|
||||||
let item: INodeExecutionData;
|
let item: INodeExecutionData;
|
||||||
let combineOperation: string;
|
let combineOperation: string;
|
||||||
|
|
||||||
const isDateObject = (value: NodeParameterValue) => Object.prototype.toString.call(value) === '[object Date]';
|
const isDateObject = (value: NodeParameterValue) =>
|
||||||
|
Object.prototype.toString.call(value) === '[object Date]';
|
||||||
const isDateInvalid = (value: NodeParameterValue) => value?.toString() === 'Invalid Date';
|
const isDateInvalid = (value: NodeParameterValue) => value?.toString() === 'Invalid Date';
|
||||||
|
|
||||||
// The compare operations
|
// The compare operations
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const contactTagOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Get Many',
|
name: 'Get Many',
|
||||||
value: 'getAll',
|
value: 'getAll',
|
||||||
description: 'Retrieve many contact\'s tags',
|
description: "Retrieve many contact's tags",
|
||||||
action: 'Get many contact tags',
|
action: 'Get many contact tags',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
import { IExecuteFunctions } from 'n8n-core';
|
import { IExecuteFunctions } from 'n8n-core';
|
||||||
|
|
||||||
import {
|
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||||
IDataObject,
|
|
||||||
INodeExecutionData,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
import * as channel from './channel';
|
import * as channel from './channel';
|
||||||
import * as message from './message';
|
import * as message from './message';
|
||||||
|
|
|
@ -30,7 +30,8 @@ export const descriptions: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Deactive',
|
name: 'Deactive',
|
||||||
value: 'deactive',
|
value: 'deactive',
|
||||||
description: 'Deactivates the user and revokes all its sessions by archiving its user object',
|
description:
|
||||||
|
'Deactivates the user and revokes all its sessions by archiving its user object',
|
||||||
action: 'Deactivate a user',
|
action: 'Deactivate a user',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ export const folderOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Create',
|
name: 'Create',
|
||||||
value: 'create',
|
value: 'create',
|
||||||
description: 'Create a new mail folder in the root folder of the user\'s mailbox',
|
description: "Create a new mail folder in the root folder of the user's mailbox",
|
||||||
action: 'Create a folder',
|
action: 'Create a folder',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const messageOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Get Many',
|
name: 'Get Many',
|
||||||
value: 'getAll',
|
value: 'getAll',
|
||||||
description: 'Get many messages in the signed-in user\'s mailbox',
|
description: "Get many messages in the signed-in user's mailbox",
|
||||||
action: 'Get many messages',
|
action: 'Get many messages',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -108,7 +108,7 @@ export class MicrosoftToDo implements INodeType {
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
applicationName: this.getNodeParameter('applicationName', i) as string,
|
applicationName: this.getNodeParameter('applicationName', i) as string,
|
||||||
displayName: this.getNodeParameter('displayName', i) as string,
|
displayName: this.getNodeParameter('displayName', i) as string,
|
||||||
...(this.getNodeParameter('additionalFields', i)),
|
...this.getNodeParameter('additionalFields', i),
|
||||||
};
|
};
|
||||||
|
|
||||||
responseData = await microsoftApiRequest.call(
|
responseData = await microsoftApiRequest.call(
|
||||||
|
|
|
@ -33,8 +33,8 @@ export const boardItemOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Create',
|
name: 'Create',
|
||||||
value: 'create',
|
value: 'create',
|
||||||
description: 'Create an item in a board\'s group',
|
description: "Create an item in a board's group",
|
||||||
action: 'Create an item in a board\'s group',
|
action: "Create an item in a board's group",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Delete',
|
name: 'Delete',
|
||||||
|
|
|
@ -16,7 +16,13 @@ import { nodeDescription } from './MongoDbDescription';
|
||||||
|
|
||||||
import { buildParameterizedConnString, prepareFields, prepareItems } from './GenericFunctions';
|
import { buildParameterizedConnString, prepareFields, prepareItems } from './GenericFunctions';
|
||||||
|
|
||||||
import { FindOneAndReplaceOptions, FindOneAndUpdateOptions, MongoClient, ObjectId, UpdateOptions } from 'mongodb';
|
import {
|
||||||
|
FindOneAndReplaceOptions,
|
||||||
|
FindOneAndUpdateOptions,
|
||||||
|
MongoClient,
|
||||||
|
ObjectId,
|
||||||
|
UpdateOptions,
|
||||||
|
} from 'mongodb';
|
||||||
|
|
||||||
import { validateAndResolveMongoCredentials } from './GenericFunctions';
|
import { validateAndResolveMongoCredentials } from './GenericFunctions';
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,8 @@ export const operationFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
description:
|
||||||
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getProjects',
|
loadOptionsMethod: 'getProjects',
|
||||||
},
|
},
|
||||||
|
|
|
@ -47,21 +47,21 @@ export const blockFields: INodeProperties[] = [
|
||||||
displayName: 'Link',
|
displayName: 'Link',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder:
|
placeholder: 'https://www.notion.so/My-Page-b4eeb113e118403ba450af65ac25f0b9',
|
||||||
'https://www.notion.so/My-Page-b4eeb113e118403ba450af65ac25f0b9',
|
|
||||||
validation: [
|
validation: [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Block URL',
|
errorMessage: 'Not a valid Notion Block URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,8 @@ export const blockFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Block ID',
|
errorMessage: 'Not a valid Notion Block ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -91,7 +92,7 @@ export const blockFields: INodeProperties[] = [
|
||||||
operation: ['append'],
|
operation: ['append'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Block to append blocks to",
|
description: 'The Notion Block to append blocks to',
|
||||||
},
|
},
|
||||||
...blocks('block', 'append'),
|
...blocks('block', 'append'),
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
@ -108,21 +109,21 @@ export const blockFields: INodeProperties[] = [
|
||||||
displayName: 'Link',
|
displayName: 'Link',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder:
|
placeholder: 'https://www.notion.so/My-Page-b4eeb113e118403ba450af65ac25f0b9',
|
||||||
'https://www.notion.so/My-Page-b4eeb113e118403ba450af65ac25f0b9',
|
|
||||||
validation: [
|
validation: [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Block URL',
|
errorMessage: 'Not a valid Notion Block URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -134,7 +135,8 @@ export const blockFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Block ID',
|
errorMessage: 'Not a valid Notion Block ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -152,7 +154,7 @@ export const blockFields: INodeProperties[] = [
|
||||||
operation: ['getAll'],
|
operation: ['getAll'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Block to get all children from",
|
description: 'The Notion Block to get all children from',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
|
|
|
@ -222,14 +222,15 @@ const typeMention: INodeProperties[] = [
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Database URL',
|
errorMessage: 'Not a valid Notion Database URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -241,7 +242,8 @@ const typeMention: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Database ID',
|
errorMessage: 'Not a valid Notion Database ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -258,7 +260,7 @@ const typeMention: INodeProperties[] = [
|
||||||
mentionType: ['database'],
|
mentionType: ['database'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database being mentioned",
|
description: 'The Notion Database being mentioned',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Range',
|
displayName: 'Range',
|
||||||
|
|
|
@ -96,14 +96,16 @@ export const databaseFields: INodeProperties[] = [
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Database URL. Hint: use the URL of the database itself, not a page containing it.',
|
errorMessage:
|
||||||
|
'Not a valid Notion Database URL. Hint: use the URL of the database itself, not a page containing it.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -115,7 +117,8 @@ export const databaseFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Database ID',
|
errorMessage: 'Not a valid Notion Database ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -133,7 +136,7 @@ export const databaseFields: INodeProperties[] = [
|
||||||
operation: ['get'],
|
operation: ['get'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database to get",
|
description: 'The Notion Database to get',
|
||||||
},
|
},
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* database:getAll */
|
/* database:getAll */
|
||||||
|
|
|
@ -113,14 +113,15 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Database URL',
|
errorMessage: 'Not a valid Notion Database URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -132,7 +133,8 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Database ID',
|
errorMessage: 'Not a valid Notion Database ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -150,7 +152,7 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
operation: ['create'],
|
operation: ['create'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database to operate on",
|
description: 'The Notion Database to operate on',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Title',
|
displayName: 'Title',
|
||||||
|
@ -546,21 +548,21 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
displayName: 'Link',
|
displayName: 'Link',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder:
|
placeholder: 'https://www.notion.so/My-Database-Page-b4eeb113e118403ba450af65ac25f0b9',
|
||||||
'https://www.notion.so/My-Database-Page-b4eeb113e118403ba450af65ac25f0b9',
|
|
||||||
validation: [
|
validation: [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Database Page URL',
|
errorMessage: 'Not a valid Notion Database Page URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -572,7 +574,8 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Database Page ID',
|
errorMessage: 'Not a valid Notion Database Page ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -590,7 +593,7 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database Page to update",
|
description: 'The Notion Database Page to update',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Simplify',
|
displayName: 'Simplify',
|
||||||
|
@ -970,21 +973,21 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
displayName: 'Link',
|
displayName: 'Link',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder:
|
placeholder: 'https://www.notion.so/My-Database-Page-b4eeb113e118403ba450af65ac25f0b9',
|
||||||
'https://www.notion.so/My-Database-Page-b4eeb113e118403ba450af65ac25f0b9',
|
|
||||||
validation: [
|
validation: [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Database Page URL',
|
errorMessage: 'Not a valid Notion Database Page URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -996,7 +999,8 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Database Page ID',
|
errorMessage: 'Not a valid Notion Database Page ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1015,7 +1019,7 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
operation: ['get'],
|
operation: ['get'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database Page to get",
|
description: 'The Notion Database Page to get',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Simplify',
|
displayName: 'Simplify',
|
||||||
|
@ -1062,14 +1066,15 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Database URL',
|
errorMessage: 'Not a valid Notion Database URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1081,7 +1086,8 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Database ID',
|
errorMessage: 'Not a valid Notion Database ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1099,7 +1105,7 @@ export const databasePageFields: INodeProperties[] = [
|
||||||
operation: ['getAll'],
|
operation: ['getAll'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database to operate on",
|
description: 'The Notion Database to operate on',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
|
|
|
@ -950,10 +950,20 @@ export function validateJSON(json: string | undefined): any {
|
||||||
* @param blockValues the blockUi.blockValues node parameter.
|
* @param blockValues the blockUi.blockValues node parameter.
|
||||||
*/
|
*/
|
||||||
export function extractDatabaseMentionRLC(blockValues: IDataObject[]) {
|
export function extractDatabaseMentionRLC(blockValues: IDataObject[]) {
|
||||||
blockValues.forEach(bv => {
|
blockValues.forEach((bv) => {
|
||||||
if (bv.richText && bv.text) {
|
if (bv.richText && bv.text) {
|
||||||
const texts = (bv.text as { text: [{ textType: string, mentionType: string, database: string | { value: string, mode: string, __rl: boolean, __regex: string } }] }).text;
|
const texts = (
|
||||||
texts.forEach(txt => {
|
bv.text as {
|
||||||
|
text: [
|
||||||
|
{
|
||||||
|
textType: string;
|
||||||
|
mentionType: string;
|
||||||
|
database: string | { value: string; mode: string; __rl: boolean; __regex: string };
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
).text;
|
||||||
|
texts.forEach((txt) => {
|
||||||
if (txt.textType === 'mention' && txt.mentionType === 'database') {
|
if (txt.textType === 'mention' && txt.mentionType === 'database') {
|
||||||
if (typeof txt.database === 'object' && txt.database.__rl) {
|
if (typeof txt.database === 'object' && txt.database.__rl) {
|
||||||
if (txt.database.__regex) {
|
if (txt.database.__regex) {
|
||||||
|
|
|
@ -86,21 +86,21 @@ export const pageFields: INodeProperties[] = [
|
||||||
displayName: 'Link',
|
displayName: 'Link',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder:
|
placeholder: 'https://www.notion.so/My-Page-b4eeb113e118403aa450af65ac25f0b9',
|
||||||
'https://www.notion.so/My-Page-b4eeb113e118403aa450af65ac25f0b9',
|
|
||||||
validation: [
|
validation: [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Page URL',
|
errorMessage: 'Not a valid Notion Page URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,8 @@ export const pageFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Page ID',
|
errorMessage: 'Not a valid Notion Page ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -131,7 +132,7 @@ export const pageFields: INodeProperties[] = [
|
||||||
operation: ['archive'],
|
operation: ['archive'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Page to archive",
|
description: 'The Notion Page to archive',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Simplify',
|
displayName: 'Simplify',
|
||||||
|
@ -161,21 +162,21 @@ export const pageFields: INodeProperties[] = [
|
||||||
displayName: 'Link',
|
displayName: 'Link',
|
||||||
name: 'url',
|
name: 'url',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder:
|
placeholder: 'https://www.notion.so/My-Page-b4eeb113e118403aa450af65ac25f0b9',
|
||||||
'https://www.notion.so/My-Page-b4eeb113e118403aa450af65ac25f0b9',
|
|
||||||
validation: [
|
validation: [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex:
|
regex:
|
||||||
'(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12}).*',
|
||||||
errorMessage: 'Not a valid Notion Page URL',
|
errorMessage: 'Not a valid Notion Page URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extractValue: {
|
extractValue: {
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
regex: '(?:https|http):\/\/www.notion.so\/(?:[a-z0-9\-]{2,}\/)?(?:[a-zA-Z0-9\-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
regex:
|
||||||
|
'(?:https|http)://www.notion.so/(?:[a-z0-9-]{2,}/)?(?:[a-zA-Z0-9-]{2,}-)?([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -187,7 +188,8 @@ export const pageFields: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
properties: {
|
properties: {
|
||||||
regex: '^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
regex:
|
||||||
|
'^(([0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[89ab][0-9a-f]{3}[0-9a-f]{12})|([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))[ \t]*',
|
||||||
errorMessage: 'Not a valid Notion Page ID',
|
errorMessage: 'Not a valid Notion Page ID',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -205,7 +207,7 @@ export const pageFields: INodeProperties[] = [
|
||||||
operation: ['create'],
|
operation: ['create'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: "The Notion Database Page to create a child page for",
|
description: 'The Notion Database Page to create a child page for',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Title',
|
displayName: 'Title',
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
import { IDataObject, ILoadOptionsFunctions, INodeListSearchItems, INodeListSearchResult } from "n8n-workflow";
|
import {
|
||||||
import { notionApiRequestAllItems } from "./GenericFunctions";
|
IDataObject,
|
||||||
|
ILoadOptionsFunctions,
|
||||||
|
INodeListSearchItems,
|
||||||
|
INodeListSearchResult,
|
||||||
|
} from 'n8n-workflow';
|
||||||
|
import { notionApiRequestAllItems } from './GenericFunctions';
|
||||||
|
|
||||||
export async function getDatabases(
|
export async function getDatabases(
|
||||||
this: ILoadOptionsFunctions,
|
this: ILoadOptionsFunctions,
|
||||||
|
@ -11,13 +16,7 @@ export async function getDatabases(
|
||||||
query: filter,
|
query: filter,
|
||||||
filter: { property: 'object', value: 'database' },
|
filter: { property: 'object', value: 'database' },
|
||||||
};
|
};
|
||||||
const databases = await notionApiRequestAllItems.call(
|
const databases = await notionApiRequestAllItems.call(this, 'results', 'POST', `/search`, body);
|
||||||
this,
|
|
||||||
'results',
|
|
||||||
'POST',
|
|
||||||
`/search`,
|
|
||||||
body,
|
|
||||||
);
|
|
||||||
for (const database of databases) {
|
for (const database of databases) {
|
||||||
returnData.push({
|
returnData.push({
|
||||||
name: database.title[0]?.plain_text || database.id,
|
name: database.title[0]?.plain_text || database.id,
|
||||||
|
|
|
@ -21,7 +21,7 @@ export const incidentNoteOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Get Many',
|
name: 'Get Many',
|
||||||
value: 'getAll',
|
value: 'getAll',
|
||||||
description: 'Get many incident\'s notes',
|
description: "Get many incident's notes",
|
||||||
action: 'Get many incident notes',
|
action: 'Get many incident notes',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const agentOperations: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'Get Many',
|
name: 'Get Many',
|
||||||
value: 'getAll',
|
value: 'getAll',
|
||||||
description: 'Get many agents of the current user\'s organization',
|
description: "Get many agents of the current user's organization",
|
||||||
action: 'Get many agents',
|
action: 'Get many agents',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,9 @@ export async function raindropApiRequest(
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.helpers.requestOAuth2!.call(this, 'raindropOAuth2Api', options, { includeCredentialsOnRefreshOnBody: true });
|
return await this.helpers.requestOAuth2!.call(this, 'raindropOAuth2Api', options, {
|
||||||
|
includeCredentialsOnRefreshOnBody: true,
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new NodeApiError(this.getNode(), error);
|
throw new NodeApiError(this.getNode(), error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -767,12 +767,8 @@ export const alertFields: INodeProperties[] = [
|
||||||
name: 'options',
|
name: 'options',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: ['get'],
|
||||||
'get',
|
resource: ['alert'],
|
||||||
],
|
|
||||||
resource: [
|
|
||||||
'alert',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
type: 'collection',
|
type: 'collection',
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -623,8 +623,7 @@ export const certificateFields: INodeProperties[] = [
|
||||||
resource: ['certificate'],
|
resource: ['certificate'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description:
|
description: 'The name of the input field containing the binary file data to be uploaded',
|
||||||
'The name of the input field containing the binary file data to be uploaded',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
|
|
|
@ -168,8 +168,7 @@ export const certificateFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
description:
|
description: 'The name of the input field containing the binary file data to be uploaded',
|
||||||
'The name of the input field containing the binary file data to be uploaded',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Options',
|
displayName: 'Options',
|
||||||
|
|
|
@ -64,9 +64,7 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getCertificateIssuingTemplates',
|
loadOptionsMethod: 'getCertificateIssuingTemplates',
|
||||||
loadOptionsDependsOn: [
|
loadOptionsDependsOn: ['applicationId'],
|
||||||
'applicationId',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
@ -155,7 +153,7 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||||
default: 'RSA',
|
default: 'RSA',
|
||||||
description: 'The encryption algorithm for the public key',
|
description: 'The encryption algorithm for the public key',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Key Curve',
|
displayName: 'Key Curve',
|
||||||
name: 'keyCurve',
|
name: 'keyCurve',
|
||||||
type: 'options',
|
type: 'options',
|
||||||
|
@ -323,7 +321,8 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||||
type: 'string',
|
type: 'string',
|
||||||
placeholder: 'P1Y',
|
placeholder: 'P1Y',
|
||||||
default: 'P1Y',
|
default: 'P1Y',
|
||||||
description: 'Specify how long the issued certificate should be valid for. Use ISO8601 format.',
|
description:
|
||||||
|
'Specify how long the issued certificate should be valid for. Use ISO8601 format.',
|
||||||
hint: 'e.g. 1 year -> P1Y',
|
hint: 'e.g. 1 year -> P1Y',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
import { OptionsWithUri } from 'request';
|
import { OptionsWithUri } from 'request';
|
||||||
|
|
||||||
import {
|
import { IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||||
IExecuteFunctions,
|
|
||||||
IExecuteSingleFunctions,
|
|
||||||
ILoadOptionsFunctions,
|
|
||||||
} from 'n8n-core';
|
|
||||||
|
|
||||||
import { IDataObject, IHookFunctions, JsonObject, NodeApiError } from 'n8n-workflow';
|
import { IDataObject, IHookFunctions, JsonObject, NodeApiError } from 'n8n-workflow';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"dev": "pnpm watch",
|
"dev": "pnpm watch",
|
||||||
"build": "tsc && gulp build:icons && gulp build:translations",
|
"build": "tsc && gulp build:icons && gulp build:translations",
|
||||||
"build:translations": "gulp build:translations",
|
"build:translations": "gulp build:translations",
|
||||||
"format": "prettier --write **/*.{ts,js,json,md} --ignore-path ../../.prettierignore",
|
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
||||||
"lint": "tslint -p tsconfig.json -c tslint.json && eslint nodes credentials",
|
"lint": "tslint -p tsconfig.json -c tslint.json && eslint nodes credentials",
|
||||||
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json && eslint nodes credentials --fix",
|
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json && eslint nodes credentials --fix",
|
||||||
"watch": "tsc --watch",
|
"watch": "tsc --watch",
|
||||||
|
|
Loading…
Reference in a new issue