@worktables/n8n-nodes-worktables 12.0.5 → 12.0.6

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.
@@ -0,0 +1,5 @@
1
+ import { IWebhookFunctions, IWebhookResponseData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class MondayWebhook implements INodeType {
3
+ description: INodeTypeDescription;
4
+ webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
5
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MondayWebhook = void 0;
4
+ class MondayWebhook {
5
+ constructor() {
6
+ this.description = {
7
+ displayName: 'Worktables Webhook',
8
+ name: 'mondayWebhook',
9
+ icon: 'file:worktables_icon.svg',
10
+ group: ['trigger'],
11
+ version: 1,
12
+ description: 'Triggers workflows when an event occurs in Monday.com',
13
+ defaults: {
14
+ name: 'Monday Webhook',
15
+ },
16
+ inputs: ["main"],
17
+ outputs: ["main"],
18
+ credentials: [],
19
+ webhooks: [
20
+ {
21
+ name: 'default',
22
+ httpMethod: 'POST',
23
+ responseMode: 'onReceived',
24
+ path: '/webhook',
25
+ },
26
+ ],
27
+ properties: [],
28
+ };
29
+ }
30
+ async webhook() {
31
+ const req = this.getRequestObject();
32
+ const res = this.getResponseObject();
33
+ const body = req.body;
34
+ console.log('Webhook received', body);
35
+ if (body.challenge) {
36
+ res.status(200).json({ challenge: body.challenge });
37
+ return {};
38
+ }
39
+ return {
40
+ workflowData: [this.helpers.returnJsonArray([body])],
41
+ };
42
+ }
43
+ }
44
+ exports.MondayWebhook = MondayWebhook;
45
+ //# sourceMappingURL=MondayWebhook.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MondayWebhook.node.js","sourceRoot":"","sources":["../../../nodes/WorktablesV2/MondayWebhook.node.ts"],"names":[],"mappings":";;;AAWA,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,0BAA0B;YAChC,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE;gBACT,IAAI,EAAE,gBAAgB;aACtB;YACD,MAAM,EAAE,QAAyB;YACjC,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE;gBACT;oBACC,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,MAAM;oBAClB,YAAY,EAAE,YAAY;oBAC1B,IAAI,EAAE,UAAU;iBAChB;aACD;YACD,UAAU,EAAE,EAAE;SACd,CAAC;IAqBH,CAAC;IAnBA,KAAK,CAAC,OAAO;QACZ,MAAM,GAAG,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACpC,MAAM,GAAG,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAErC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QAEtB,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAGtC,IAAI,IAAI,CAAC,SAAS,EAAE;YACnB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YACpD,OAAO,EAAE,CAAC;SACV;QAGD,OAAO;YACN,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SACpD,CAAC;IACH,CAAC;CACD;AA5CD,sCA4CC"}
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "MondayWebhook",
3
+ "version": 1,
4
+ "description": "Triggers workflows when an event occurs in Monday.com",
5
+ "type": "trigger",
6
+ "class": "MondayWebhook",
7
+ "defaults": {
8
+ "name": "Monday Webhook"
9
+ },
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "main",
14
+ "type": "output"
15
+ }
16
+ ],
17
+ "credentials": [],
18
+ "webhooks": [
19
+ {
20
+ "name": "default",
21
+ "httpMethod": "POST",
22
+ "responseMode": "onReceived",
23
+ "path": "monday-webhook"
24
+ }
25
+ ],
26
+ "properties": []
27
+ }
@@ -0,0 +1,33 @@
1
+ import { INodeType, INodeTypeDescription, ILoadOptionsFunctions, INodePropertyOptions, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare class Worktables implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getResources(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ getWorkspaces(): Promise<{
8
+ name: string;
9
+ value: string;
10
+ }[]>;
11
+ getBoards(): Promise<{
12
+ name: string;
13
+ value: string;
14
+ type: string;
15
+ }[]>;
16
+ getGroupsFromBoard(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
17
+ getItemsFromBoard(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
18
+ getItemsOrSubitemsFromBoard(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
19
+ getSubitemFromItem(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
20
+ getColumnsFromBoard(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
21
+ getSubscribersFromBoard(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
22
+ getSubitems(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
23
+ getColumnsItems(this: ILoadOptionsFunctions): Promise<any>;
24
+ getFolders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
25
+ getUsers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
26
+ getTeams(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
27
+ getFileColumns(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
28
+ getUpdates(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
29
+ getAllLabelStatus(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
30
+ };
31
+ };
32
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][] | null>;
33
+ }