n8n-nodes-base 1.53.2 → 1.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +1 -5
  2. package/dist/build.tsbuildinfo +1 -1
  3. package/dist/credentials/WebflowOAuth2Api.credentials.js +8 -1
  4. package/dist/credentials/WebflowOAuth2Api.credentials.js.map +1 -1
  5. package/dist/nodes/Aws/AwsLambda.node.js +5 -3
  6. package/dist/nodes/Aws/AwsLambda.node.js.map +1 -1
  7. package/dist/nodes/Calendly/CalendlyTrigger.node.js +2 -2
  8. package/dist/nodes/Calendly/CalendlyTrigger.node.js.map +1 -1
  9. package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js +97 -10
  10. package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js.map +1 -1
  11. package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.d.ts +1 -0
  12. package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.js +34 -2
  13. package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.js.map +1 -1
  14. package/dist/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.js +36 -0
  15. package/dist/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.js.map +1 -1
  16. package/dist/nodes/Form/FormTrigger.node.json +1 -1
  17. package/dist/nodes/Form/common.descriptions.js +5 -4
  18. package/dist/nodes/Form/common.descriptions.js.map +1 -1
  19. package/dist/nodes/Form/utils.js +3 -1
  20. package/dist/nodes/Form/utils.js.map +1 -1
  21. package/dist/nodes/InvoiceNinja/ExpenseDescription.js +206 -0
  22. package/dist/nodes/InvoiceNinja/ExpenseDescription.js.map +1 -1
  23. package/dist/nodes/InvoiceNinja/PaymentDescription.js +206 -0
  24. package/dist/nodes/InvoiceNinja/PaymentDescription.js.map +1 -1
  25. package/dist/nodes/Lemlist/GenericFunctions.js +43 -6
  26. package/dist/nodes/Lemlist/GenericFunctions.js.map +1 -1
  27. package/dist/nodes/Lemlist/LemlistTrigger.node.js +1 -1
  28. package/dist/nodes/MongoDb/MongoDb.node.js +4 -0
  29. package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
  30. package/dist/nodes/MongoDb/MongoDbProperties.js +12 -1
  31. package/dist/nodes/MongoDb/MongoDbProperties.js.map +1 -1
  32. package/dist/nodes/Postgres/v2/helpers/utils.d.ts +1 -0
  33. package/dist/nodes/Slack/V2/UserDescription.js +1 -1
  34. package/dist/nodes/Slack/V2/UserDescription.js.map +1 -1
  35. package/dist/nodes/Stripe/StripeTrigger.node.js +2 -0
  36. package/dist/nodes/Stripe/StripeTrigger.node.js.map +1 -1
  37. package/dist/nodes/Webflow/GenericFunctions.d.ts +4 -1
  38. package/dist/nodes/Webflow/GenericFunctions.js +58 -11
  39. package/dist/nodes/Webflow/GenericFunctions.js.map +1 -1
  40. package/dist/nodes/Webflow/V1/ItemDescription.js.map +1 -0
  41. package/dist/nodes/Webflow/V1/WebflowTriggerV1.node.d.ts +19 -0
  42. package/dist/nodes/Webflow/V1/WebflowTriggerV1.node.js +189 -0
  43. package/dist/nodes/Webflow/V1/WebflowTriggerV1.node.js.map +1 -0
  44. package/dist/nodes/Webflow/V1/WebflowV1.node.d.ts +14 -0
  45. package/dist/nodes/Webflow/V1/WebflowV1.node.js +152 -0
  46. package/dist/nodes/Webflow/V1/WebflowV1.node.js.map +1 -0
  47. package/dist/nodes/Webflow/V2/WebflowTriggerV2.node.d.ts +19 -0
  48. package/dist/nodes/Webflow/V2/WebflowTriggerV2.node.js +159 -0
  49. package/dist/nodes/Webflow/V2/WebflowTriggerV2.node.js.map +1 -0
  50. package/dist/nodes/Webflow/V2/WebflowV2.node.d.ts +14 -0
  51. package/dist/nodes/Webflow/V2/WebflowV2.node.js +26 -0
  52. package/dist/nodes/Webflow/V2/WebflowV2.node.js.map +1 -0
  53. package/dist/nodes/Webflow/V2/actions/Item/Item.resource.d.ts +8 -0
  54. package/dist/nodes/Webflow/V2/actions/Item/Item.resource.js +83 -0
  55. package/dist/nodes/Webflow/V2/actions/Item/Item.resource.js.map +1 -0
  56. package/dist/nodes/Webflow/V2/actions/Item/create.operation.d.ts +25 -0
  57. package/dist/nodes/Webflow/V2/actions/Item/create.operation.js +110 -0
  58. package/dist/nodes/Webflow/V2/actions/Item/create.operation.js.map +1 -0
  59. package/dist/nodes/Webflow/V2/actions/Item/delete.operation.d.ts +25 -0
  60. package/dist/nodes/Webflow/V2/actions/Item/delete.operation.js +73 -0
  61. package/dist/nodes/Webflow/V2/actions/Item/delete.operation.js.map +1 -0
  62. package/dist/nodes/Webflow/V2/actions/Item/get.operation.d.ts +25 -0
  63. package/dist/nodes/Webflow/V2/actions/Item/get.operation.js +68 -0
  64. package/dist/nodes/Webflow/V2/actions/Item/get.operation.js.map +1 -0
  65. package/dist/nodes/Webflow/V2/actions/Item/getAll.operation.d.ts +25 -0
  66. package/dist/nodes/Webflow/V2/actions/Item/getAll.operation.js +91 -0
  67. package/dist/nodes/Webflow/V2/actions/Item/getAll.operation.js.map +1 -0
  68. package/dist/nodes/Webflow/V2/actions/Item/update.operation.d.ts +25 -0
  69. package/dist/nodes/Webflow/V2/actions/Item/update.operation.js +119 -0
  70. package/dist/nodes/Webflow/V2/actions/Item/update.operation.js.map +1 -0
  71. package/dist/nodes/Webflow/V2/actions/node.type.d.ts +6 -0
  72. package/dist/nodes/Webflow/V2/actions/node.type.js +3 -0
  73. package/dist/nodes/Webflow/V2/actions/node.type.js.map +1 -0
  74. package/dist/nodes/Webflow/V2/actions/router.d.ts +2 -0
  75. package/dist/nodes/Webflow/V2/actions/router.js +52 -0
  76. package/dist/nodes/Webflow/V2/actions/router.js.map +1 -0
  77. package/dist/nodes/Webflow/V2/actions/versionDescription.d.ts +2 -0
  78. package/dist/nodes/Webflow/V2/actions/versionDescription.js +64 -0
  79. package/dist/nodes/Webflow/V2/actions/versionDescription.js.map +1 -0
  80. package/dist/nodes/Webflow/Webflow.node.d.ts +3 -11
  81. package/dist/nodes/Webflow/Webflow.node.js +10 -171
  82. package/dist/nodes/Webflow/Webflow.node.js.map +1 -1
  83. package/dist/nodes/Webflow/WebflowTrigger.node.d.ts +3 -16
  84. package/dist/nodes/Webflow/WebflowTrigger.node.js +10 -179
  85. package/dist/nodes/Webflow/WebflowTrigger.node.js.map +1 -1
  86. package/dist/types/credentials.json +1 -1
  87. package/dist/types/nodes.json +15 -13
  88. package/package.json +5 -5
  89. package/dist/nodes/Webflow/ItemDescription.js.map +0 -1
  90. /package/dist/nodes/Webflow/{ItemDescription.d.ts → V1/ItemDescription.d.ts} +0 -0
  91. /package/dist/nodes/Webflow/{ItemDescription.js → V1/ItemDescription.js} +0 -0
@@ -0,0 +1,25 @@
1
+ import type { INodeExecutionData, INodeProperties, IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const GenericFunctions_1 = require("../../../GenericFunctions");
7
+ const properties = [
8
+ {
9
+ displayName: 'Site Name or ID',
10
+ name: 'siteId',
11
+ type: 'options',
12
+ required: true,
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getSites',
15
+ },
16
+ default: '',
17
+ description: 'ID of the site containing the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
18
+ },
19
+ {
20
+ displayName: 'Collection Name or ID',
21
+ name: 'collectionId',
22
+ type: 'options',
23
+ required: true,
24
+ typeOptions: {
25
+ loadOptionsMethod: 'getCollections',
26
+ loadOptionsDependsOn: ['siteId'],
27
+ },
28
+ default: '',
29
+ description: 'ID of the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
30
+ },
31
+ {
32
+ displayName: 'Item ID',
33
+ name: 'itemId',
34
+ type: 'string',
35
+ required: true,
36
+ default: '',
37
+ description: 'ID of the item to operate on',
38
+ },
39
+ ];
40
+ const displayOptions = {
41
+ show: {
42
+ resource: ['item'],
43
+ operation: ['deleteItem'],
44
+ },
45
+ };
46
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
47
+ async function execute(items) {
48
+ const returnData = [];
49
+ for (let i = 0; i < items.length; i++) {
50
+ try {
51
+ const collectionId = this.getNodeParameter('collectionId', i);
52
+ const itemId = this.getNodeParameter('itemId', i);
53
+ let responseData = await GenericFunctions_1.webflowApiRequest.call(this, 'DELETE', `/collections/${collectionId}/items/${itemId}`);
54
+ if (responseData.statusCode === 204) {
55
+ responseData = { success: true };
56
+ }
57
+ else {
58
+ responseData = { success: false };
59
+ }
60
+ const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData), { itemData: { item: i } });
61
+ returnData.push(...executionData);
62
+ }
63
+ catch (error) {
64
+ if (this.continueOnFail()) {
65
+ returnData.push({ json: { message: error.message, error } });
66
+ continue;
67
+ }
68
+ throw error;
69
+ }
70
+ }
71
+ return returnData;
72
+ }
73
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Webflow/V2/actions/Item/delete.operation.ts"],"names":[],"mappings":";;;AAuDA,0BAsCC;AAtFD,8DAAgF;AAChF,gEAA8D;AAE9D,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,UAAU;SAC7B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,8LAA8L;KAC/L;IACD;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,gBAAgB;YACnC,oBAAoB,EAAE,CAAC,QAAQ,CAAC;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,0KAA0K;KAC3K;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;KAC3C;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,MAAM,CAAC;QAClB,SAAS,EAAE,CAAC,YAAY,CAAC;KACzB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAE5B,KAA2B;IAE3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eProperties, IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const GenericFunctions_1 = require("../../../GenericFunctions");
7
+ const properties = [
8
+ {
9
+ displayName: 'Site Name or ID',
10
+ name: 'siteId',
11
+ type: 'options',
12
+ required: true,
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getSites',
15
+ },
16
+ default: '',
17
+ description: 'ID of the site containing the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
18
+ },
19
+ {
20
+ displayName: 'Collection Name or ID',
21
+ name: 'collectionId',
22
+ type: 'options',
23
+ required: true,
24
+ typeOptions: {
25
+ loadOptionsMethod: 'getCollections',
26
+ loadOptionsDependsOn: ['siteId'],
27
+ },
28
+ default: '',
29
+ description: 'ID of the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
30
+ },
31
+ {
32
+ displayName: 'Item ID',
33
+ name: 'itemId',
34
+ type: 'string',
35
+ required: true,
36
+ default: '',
37
+ description: 'ID of the item to operate on',
38
+ },
39
+ ];
40
+ const displayOptions = {
41
+ show: {
42
+ resource: ['item'],
43
+ operation: ['get'],
44
+ },
45
+ };
46
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
47
+ async function execute(items) {
48
+ const returnData = [];
49
+ let responseData;
50
+ for (let i = 0; i < items.length; i++) {
51
+ try {
52
+ const collectionId = this.getNodeParameter('collectionId', i);
53
+ const itemId = this.getNodeParameter('itemId', i);
54
+ responseData = await GenericFunctions_1.webflowApiRequest.call(this, 'GET', `/collections/${collectionId}/items/${itemId}`);
55
+ const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData.body), { itemData: { item: i } });
56
+ returnData.push(...executionData);
57
+ }
58
+ catch (error) {
59
+ if (this.continueOnFail()) {
60
+ returnData.push({ json: { message: error.message, error } });
61
+ continue;
62
+ }
63
+ throw error;
64
+ }
65
+ }
66
+ return returnData;
67
+ }
68
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Webflow/V2/actions/Item/get.operation.ts"],"names":[],"mappings":";;;AAuDA,0BAgCC;AAhFD,8DAAgF;AAChF,gEAA8D;AAE9D,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,UAAU;SAC7B;QACD,OAAO,EAAE,EAAE;Q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Q,EAAC,YAAY,CAAC,IAAqB,CAAC,EAC5C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;YAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC7D,SAAS;YACV,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { INodeExecutionData, INodeProperties, IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const GenericFunctions_1 = require("../../../GenericFunctions");
7
+ const properties = [
8
+ {
9
+ displayName: 'Site Name or ID',
10
+ name: 'siteId',
11
+ type: 'options',
12
+ required: true,
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getSites',
15
+ },
16
+ default: '',
17
+ description: 'ID of the site containing the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
18
+ },
19
+ {
20
+ displayName: 'Collection Name or ID',
21
+ name: 'collectionId',
22
+ type: 'options',
23
+ required: true,
24
+ typeOptions: {
25
+ loadOptionsMethod: 'getCollections',
26
+ loadOptionsDependsOn: ['siteId'],
27
+ },
28
+ default: '',
29
+ description: 'ID of the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
30
+ },
31
+ {
32
+ displayName: 'Return All',
33
+ name: 'returnAll',
34
+ type: 'boolean',
35
+ default: false,
36
+ description: 'Whether to return all results or only up to a given limit',
37
+ },
38
+ {
39
+ displayName: 'Limit',
40
+ name: 'limit',
41
+ type: 'number',
42
+ typeOptions: {
43
+ minValue: 1,
44
+ maxValue: 100,
45
+ },
46
+ displayOptions: {
47
+ show: {
48
+ returnAll: [false],
49
+ },
50
+ },
51
+ default: 100,
52
+ description: 'Max number of results to return',
53
+ },
54
+ ];
55
+ const displayOptions = {
56
+ show: {
57
+ resource: ['item'],
58
+ operation: ['getAll'],
59
+ },
60
+ };
61
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
62
+ async function execute(items) {
63
+ const returnData = [];
64
+ let responseData;
65
+ for (let i = 0; i < items.length; i++) {
66
+ try {
67
+ const returnAll = this.getNodeParameter('returnAll', i);
68
+ const collectionId = this.getNodeParameter('collectionId', i);
69
+ const qs = {};
70
+ if (returnAll) {
71
+ responseData = await GenericFunctions_1.webflowApiRequestAllItems.call(this, 'GET', `/collections/${collectionId}/items`, {});
72
+ }
73
+ else {
74
+ qs.limit = this.getNodeParameter('limit', i);
75
+ responseData = await GenericFunctions_1.webflowApiRequest.call(this, 'GET', `/collections/${collectionId}/items`, {}, qs);
76
+ responseData = responseData.body.items;
77
+ }
78
+ const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData), { itemData: { item: i } });
79
+ returnData.push(...executionData);
80
+ }
81
+ catch (error) {
82
+ if (this.continueOnFail()) {
83
+ returnData.push({ json: { message: error.message, error } });
84
+ continue;
85
+ }
86
+ throw error;
87
+ }
88
+ }
89
+ return returnData;
90
+ }
91
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Webflow/V2/actions/Item/getAll.operation.ts"],"names":[],"mappings":";;;AAsEA,0BA+CC;AA9GD,8DAAgF;AAChF,gEAAyF;AAEzF,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,UAAU;SAC7B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,8LAA8L;KAC/L;IACD;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,gBAAgB;YACnC,oBAAoB,EAAE,CAAC,QAAQ,CAAC;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,0KAA0K;KAC3K;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WA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C,OAAO,EAAE,CAAC,CAAC,CAAC;gBAC7C,YAAY,GAAG,MAAM,oCAAiB,CAAC,IAAI,CAC1C,IAAI,EACJ,KAAK,EACL,gBAAgB,YAAY,QAAQ,EACpC,EAAE,EACF,EAAE,CACF,CAAC;gBACF,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;YACxC,CAAC;YAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAA,oBAAQ,EAAC,YAA6B,CAAC,EACvC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;YAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC7D,SAAS;YACV,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { INodeExecutionData, INodeProperties, IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const GenericFunctions_1 = require("../../../GenericFunctions");
7
+ const properties = [
8
+ {
9
+ displayName: 'Site Name or ID',
10
+ name: 'siteId',
11
+ type: 'options',
12
+ required: true,
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getSites',
15
+ },
16
+ default: '',
17
+ description: 'ID of the site containing the collection whose items to add to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
18
+ },
19
+ {
20
+ displayName: 'Collection Name or ID',
21
+ name: 'collectionId',
22
+ type: 'options',
23
+ required: true,
24
+ typeOptions: {
25
+ loadOptionsMethod: 'getCollections',
26
+ loadOptionsDependsOn: ['siteId'],
27
+ },
28
+ default: '',
29
+ description: 'ID of the collection to add an item to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
30
+ },
31
+ {
32
+ displayName: 'Item ID',
33
+ name: 'itemId',
34
+ type: 'string',
35
+ required: true,
36
+ default: '',
37
+ description: 'ID of the item to update',
38
+ },
39
+ {
40
+ displayName: 'Live',
41
+ name: 'live',
42
+ type: 'boolean',
43
+ required: true,
44
+ default: false,
45
+ description: 'Whether the item should be published on the live site',
46
+ },
47
+ {
48
+ displayName: 'Fields',
49
+ name: 'fieldsUi',
50
+ placeholder: 'Add Field',
51
+ type: 'fixedCollection',
52
+ typeOptions: {
53
+ multipleValues: true,
54
+ },
55
+ default: {},
56
+ options: [
57
+ {
58
+ displayName: 'Field',
59
+ name: 'fieldValues',
60
+ values: [
61
+ {
62
+ displayName: 'Field Name or ID',
63
+ name: 'fieldId',
64
+ type: 'options',
65
+ typeOptions: {
66
+ loadOptionsMethod: 'getFields',
67
+ loadOptionsDependsOn: ['collectionId'],
68
+ },
69
+ default: '',
70
+ description: 'Field to set for the item to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
71
+ },
72
+ {
73
+ displayName: 'Field Value',
74
+ name: 'fieldValue',
75
+ type: 'string',
76
+ default: '',
77
+ description: 'Value to set for the item to create',
78
+ },
79
+ ],
80
+ },
81
+ ],
82
+ },
83
+ ];
84
+ const displayOptions = {
85
+ show: {
86
+ resource: ['item'],
87
+ operation: ['update'],
88
+ },
89
+ };
90
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
91
+ async function execute(items) {
92
+ const returnData = [];
93
+ let responseData;
94
+ for (let i = 0; i < items.length; i++) {
95
+ try {
96
+ const collectionId = this.getNodeParameter('collectionId', i);
97
+ const itemId = this.getNodeParameter('itemId', i);
98
+ const uiFields = this.getNodeParameter('fieldsUi.fieldValues', i, []);
99
+ const live = this.getNodeParameter('live', i);
100
+ const fieldData = {};
101
+ uiFields.forEach((data) => (fieldData[data.fieldId] = data.fieldValue));
102
+ const body = {
103
+ fieldData,
104
+ };
105
+ responseData = await GenericFunctions_1.webflowApiRequest.call(this, 'PATCH', `/collections/${collectionId}/items/${itemId}`, body, { live });
106
+ const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData.body), { itemData: { item: i } });
107
+ returnData.push(...executionData);
108
+ }
109
+ catch (error) {
110
+ if (this.continueOnFail()) {
111
+ returnData.push({ json: { message: error.message, error } });
112
+ continue;
113
+ }
114
+ throw error;
115
+ }
116
+ }
117
+ return returnData;
118
+ }
119
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Webflow/V2/actions/Item/update.operation.ts"],"names":[],"mappings":";;;AAoGA,0BA+CC;AA5ID,8DAAgF;AAChF,gEAA8D;AAE9D,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,UAAU;SAC7B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,0LAA0L;KAC3L;IACD;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,gBAAgB;YACnC,oBAAoB,EAAE,CAAC,QAAQ,CAAC;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,kKAAkK;KACnK;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,uDAAuD;KACpE;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,I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,GAAG,EAAiB,CAAC;YAEpC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,OAAiB,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;YAElF,MAAM,IAAI,GAAgB;gBACzB,SAAS;aACT,CAAC;YAEF,YAAY,GAAG,MAAM,oCAAiB,CAAC,IAAI,CAC1C,IAAI,EACJ,OAAO,EACP,gBAAgB,YAAY,UAAU,MAAM,EAAE,EAC9C,IAAI,EACJ,EAAE,IAAI,EAAE,CACR,CAAC;YAEF,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAA,oBAAQ,EAAC,YAAY,CAAC,IAAqB,CAAC,EAC5C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;YAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC7D,SAAS;YACV,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { AllEntities } from 'n8n-workflow';
2
+ type NodeMap = {
3
+ item: 'create' | 'deleteItem' | 'get' | 'getAll' | 'update';
4
+ };
5
+ export type WebflowType = AllEntities<NodeMap>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=node.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.type.js","sourceRoot":"","sources":["../../../../../nodes/Webflow/V2/actions/node.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.router = router;
27
+ const n8n_workflow_1 = require("n8n-workflow");
28
+ const item = __importStar(require("./Item/Item.resource"));
29
+ async function router() {
30
+ let returnData = [];
31
+ const items = this.getInputData();
32
+ const resource = this.getNodeParameter('resource', 0);
33
+ const operation = this.getNodeParameter('operation', 0);
34
+ const webflowNodeData = {
35
+ resource,
36
+ operation,
37
+ };
38
+ try {
39
+ switch (webflowNodeData.resource) {
40
+ case 'item':
41
+ returnData = await item[webflowNodeData.operation].execute.call(this, items);
42
+ break;
43
+ default:
44
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not supported!`);
45
+ }
46
+ }
47
+ catch (error) {
48
+ throw error;
49
+ }
50
+ return [returnData];
51
+ }
52
+ //# sourceMappingURL=router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../../nodes/Webflow/V2/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA4BC;AAjCD,+CAAkD;AAGlD,2DAA6C;AAEtC,KAAK,UAAU,MAAM;IAC3B,IAAI,UAAU,GAAyB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAc,UAAU,EAAE,CAAC,CAAC,CAAC;IACnE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAExD,MAAM,eAAe,GAAG;QACvB,QAAQ;QACR,SAAS;KACM,CAAC;IAEjB,IAAI,CAAC;QACJ,QAAQ,eAAe,CAAC,QAAQ,EAAE,CAAC;YAClC,KAAK,MAAM;gBACV,UAAU,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC7E,MAAM;YACP;gBACC,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,kBAAkB,SAAS,qBAAqB,CAChD,CAAC;QACJ,CAAC;IACF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;IAED,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeTypeDescription } from 'n8n-workflow';
2
+ export declare const versionDescription: INodeTypeDescription;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.versionDescription = void 0;
27
+ const item = __importStar(require("./Item/Item.resource"));
28
+ exports.versionDescription = {
29
+ displayName: 'Webflow',
30
+ name: 'webflow',
31
+ icon: 'file:webflow.svg',
32
+ group: ['transform'],
33
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
34
+ description: 'Consume the Webflow API',
35
+ version: [2],
36
+ defaults: {
37
+ name: 'Webflow',
38
+ },
39
+ inputs: ['main'],
40
+ outputs: ['main'],
41
+ credentials: [
42
+ {
43
+ name: 'webflowOAuth2Api',
44
+ required: true,
45
+ },
46
+ ],
47
+ properties: [
48
+ {
49
+ displayName: 'Resource',
50
+ name: 'resource',
51
+ type: 'options',
52
+ noDataExpression: true,
53
+ options: [
54
+ {
55
+ name: 'Item',
56
+ value: 'item',
57
+ },
58
+ ],
59
+ default: 'item',
60
+ },
61
+ ...item.description,
62
+ ],
63
+ };
64
+ //# sourceMappingURL=versionDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionDescription.js","sourceRoot":"","sources":["../../../../../nodes/Webflow/V2/actions/versionDescription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,2DAA6C;AAEhC,QAAA,kBAAkB,GAAyB;IACvD,WAAW,EAAE,SAAS;IACtB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,CAAC,WAAW,CAAC;IACpB,QAAQ,EAAE,8DAA8D;IACxE,WAAW,EAAE,yBAAyB;IACtC,OAAO,EAAE,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;KACf;IACD,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,IAAI;SACd;KACD;IACD,UAAU,EAAE;QACX;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,SAAS;YACf,gBAAgB,EAAE,IAAI;YACtB,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;iBACb;aACD;YACD,OAAO,EAAE,MAAM;SACf;QACD,GAAG,IAAI,CAAC,WAAW;KACnB;CACD,CAAC"}
@@ -1,12 +1,4 @@
1
- import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class Webflow implements INodeType {
3
- description: INodeTypeDescription;
4
- methods: {
5
- loadOptions: {
6
- getSites(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
- getCollections(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
- getFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
9
- };
10
- };
11
- execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
1
+ import { VersionedNodeType } from 'n8n-workflow';
2
+ export declare class Webflow extends VersionedNodeType {
3
+ constructor();
12
4
  }