@luzconsulting/n8n-nodes-vibetrack 0.1.0

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 (56) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +69 -0
  3. package/dist/credentials/VibeTrackApi.credentials.d.ts +10 -0
  4. package/dist/credentials/VibeTrackApi.credentials.js +48 -0
  5. package/dist/credentials/vibetrack-dark-icon.svg +1 -0
  6. package/dist/credentials/vibetrack-light-icon.svg +1 -0
  7. package/dist/nodes/VibeTrack/VibeTrack.node.d.ts +13 -0
  8. package/dist/nodes/VibeTrack/VibeTrack.node.js +141 -0
  9. package/dist/nodes/VibeTrack/VibeTrack.node.json +18 -0
  10. package/dist/nodes/VibeTrack/actions/apiCall/apiCall.actions.d.ts +2 -0
  11. package/dist/nodes/VibeTrack/actions/apiCall/apiCall.actions.js +35 -0
  12. package/dist/nodes/VibeTrack/actions/apiCall/index.d.ts +3 -0
  13. package/dist/nodes/VibeTrack/actions/apiCall/index.js +105 -0
  14. package/dist/nodes/VibeTrack/actions/attribution/attribution.actions.d.ts +2 -0
  15. package/dist/nodes/VibeTrack/actions/attribution/attribution.actions.js +58 -0
  16. package/dist/nodes/VibeTrack/actions/attribution/index.d.ts +3 -0
  17. package/dist/nodes/VibeTrack/actions/attribution/index.js +105 -0
  18. package/dist/nodes/VibeTrack/actions/conversion/conversion.actions.d.ts +2 -0
  19. package/dist/nodes/VibeTrack/actions/conversion/conversion.actions.js +86 -0
  20. package/dist/nodes/VibeTrack/actions/conversion/index.d.ts +3 -0
  21. package/dist/nodes/VibeTrack/actions/conversion/index.js +193 -0
  22. package/dist/nodes/VibeTrack/actions/project/index.d.ts +3 -0
  23. package/dist/nodes/VibeTrack/actions/project/index.js +22 -0
  24. package/dist/nodes/VibeTrack/actions/project/project.actions.d.ts +2 -0
  25. package/dist/nodes/VibeTrack/actions/project/project.actions.js +16 -0
  26. package/dist/nodes/VibeTrack/actions/resource.selector.d.ts +2 -0
  27. package/dist/nodes/VibeTrack/actions/resource.selector.js +47 -0
  28. package/dist/nodes/VibeTrack/actions/router.d.ts +2 -0
  29. package/dist/nodes/VibeTrack/actions/router.js +31 -0
  30. package/dist/nodes/VibeTrack/actions/team/index.d.ts +3 -0
  31. package/dist/nodes/VibeTrack/actions/team/index.js +104 -0
  32. package/dist/nodes/VibeTrack/actions/team/team.actions.d.ts +2 -0
  33. package/dist/nodes/VibeTrack/actions/team/team.actions.js +37 -0
  34. package/dist/nodes/VibeTrack/actions/trigger/index.d.ts +3 -0
  35. package/dist/nodes/VibeTrack/actions/trigger/index.js +88 -0
  36. package/dist/nodes/VibeTrack/actions/trigger/trigger.actions.d.ts +2 -0
  37. package/dist/nodes/VibeTrack/actions/trigger/trigger.actions.js +31 -0
  38. package/dist/nodes/VibeTrack/actions/webhook/index.d.ts +3 -0
  39. package/dist/nodes/VibeTrack/actions/webhook/index.js +129 -0
  40. package/dist/nodes/VibeTrack/actions/webhook/webhook.actions.d.ts +2 -0
  41. package/dist/nodes/VibeTrack/actions/webhook/webhook.actions.js +83 -0
  42. package/dist/nodes/VibeTrack/helpers/apiclient.d.ts +14 -0
  43. package/dist/nodes/VibeTrack/helpers/apiclient.js +61 -0
  44. package/dist/nodes/VibeTrack/methods/loadOptions/common.loadOptions.d.ts +5 -0
  45. package/dist/nodes/VibeTrack/methods/loadOptions/common.loadOptions.js +86 -0
  46. package/dist/nodes/VibeTrack/methods/loadOptions/index.d.ts +1 -0
  47. package/dist/nodes/VibeTrack/methods/loadOptions/index.js +37 -0
  48. package/dist/nodes/VibeTrack/trigger/VibeTrackTrigger.node.d.ts +19 -0
  49. package/dist/nodes/VibeTrack/trigger/VibeTrackTrigger.node.js +208 -0
  50. package/dist/nodes/VibeTrack/trigger/VibeTrackTrigger.node.json +18 -0
  51. package/dist/nodes/VibeTrack/trigger/trigger.instant.properties.d.ts +2 -0
  52. package/dist/nodes/VibeTrack/trigger/trigger.instant.properties.js +71 -0
  53. package/dist/nodes/VibeTrack/vibetrack-dark-icon.svg +1 -0
  54. package/dist/nodes/VibeTrack/vibetrack-light-icon.svg +1 -0
  55. package/dist/package.json +76 -0
  56. package/package.json +76 -0
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handleTrigger = handleTrigger;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const apiclient_1 = require("../../helpers/apiclient");
6
+ async function handleTrigger(i, operation) {
7
+ var _a, _b, _c;
8
+ switch (operation) {
9
+ case "getAll": {
10
+ const projectId = (_a = this.getNodeParameter("projectId", i)) === null || _a === void 0 ? void 0 : _a.trim();
11
+ if (!projectId) {
12
+ throw new n8n_workflow_1.ApplicationError("projectId is required.");
13
+ }
14
+ const triggerType = this.getNodeParameter("triggerType", i, "conversion");
15
+ if (triggerType === "offline") {
16
+ const source = this.getNodeParameter("source", i, "any");
17
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/offline-triggers", {
18
+ qs: {
19
+ projectId,
20
+ source: source !== "any" ? source : undefined,
21
+ },
22
+ });
23
+ return (_b = data === null || data === void 0 ? void 0 : data.offlineTriggers) !== null && _b !== void 0 ? _b : [];
24
+ }
25
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/conversion-triggers", { qs: { projectId } });
26
+ return (_c = data === null || data === void 0 ? void 0 : data.conversionTriggers) !== null && _c !== void 0 ? _c : [];
27
+ }
28
+ default:
29
+ throw new n8n_workflow_1.ApplicationError(`Unsupported trigger operation: ${operation}`);
30
+ }
31
+ }
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from "n8n-workflow";
2
+ export declare const webhookOperations: INodeProperties[];
3
+ export declare const webhookFields: INodeProperties[];
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webhookFields = exports.webhookOperations = void 0;
4
+ exports.webhookOperations = [
5
+ {
6
+ displayName: "Operation",
7
+ name: "operation",
8
+ type: "options",
9
+ noDataExpression: true,
10
+ displayOptions: { show: { resource: ["webhook"] } },
11
+ options: [
12
+ {
13
+ name: "Create",
14
+ value: "create",
15
+ description: "Create a webhook subscription",
16
+ action: "Create a webhook",
17
+ },
18
+ {
19
+ name: "Delete",
20
+ value: "delete",
21
+ description: "Delete a webhook subscription",
22
+ action: "Delete a webhook",
23
+ },
24
+ {
25
+ name: "Get",
26
+ value: "get",
27
+ description: "Get a webhook subscription",
28
+ action: "Get a webhook",
29
+ },
30
+ {
31
+ name: "Get Many",
32
+ value: "getAll",
33
+ description: "Retrieve many webhook subscriptions of a project",
34
+ action: "Get many webhooks",
35
+ },
36
+ {
37
+ name: "Update",
38
+ value: "update",
39
+ description: "Update a webhook subscription",
40
+ action: "Update a webhook",
41
+ },
42
+ ],
43
+ default: "getAll",
44
+ },
45
+ ];
46
+ exports.webhookFields = [
47
+ {
48
+ displayName: "Project Name or ID",
49
+ name: "projectId",
50
+ type: "options",
51
+ typeOptions: { loadOptionsMethod: "getProjects" },
52
+ default: "",
53
+ required: true,
54
+ displayOptions: {
55
+ show: {
56
+ resource: ["webhook"],
57
+ operation: ["create", "delete", "get", "getAll", "update"],
58
+ },
59
+ },
60
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
61
+ },
62
+ {
63
+ displayName: "Webhook Name or ID",
64
+ name: "webhookId",
65
+ type: "options",
66
+ typeOptions: {
67
+ loadOptionsMethod: "getWebhooks",
68
+ loadOptionsDependsOn: ["projectId"],
69
+ },
70
+ default: "",
71
+ required: true,
72
+ displayOptions: {
73
+ show: { resource: ["webhook"], operation: ["delete", "get", "update"] },
74
+ },
75
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
76
+ },
77
+ {
78
+ displayName: "Hook URL",
79
+ name: "hookUrl",
80
+ type: "string",
81
+ default: "",
82
+ required: true,
83
+ placeholder: "https://example.com/webhook",
84
+ displayOptions: {
85
+ show: { resource: ["webhook"], operation: ["create", "update"] },
86
+ },
87
+ description: "URL that receives the webhook deliveries",
88
+ },
89
+ {
90
+ displayName: "Filter",
91
+ name: "filter",
92
+ type: "collection",
93
+ placeholder: "Add Filter",
94
+ default: {},
95
+ displayOptions: {
96
+ show: { resource: ["webhook"], operation: ["create", "update"] },
97
+ },
98
+ options: [
99
+ {
100
+ displayName: "Event Name",
101
+ name: "eventName",
102
+ type: "string",
103
+ default: "",
104
+ description: "Only deliver conversions containing this event name",
105
+ },
106
+ {
107
+ displayName: "Trigger Name or ID",
108
+ name: "triggerId",
109
+ type: "options",
110
+ typeOptions: {
111
+ loadOptionsMethod: "getConversionTriggers",
112
+ loadOptionsDependsOn: ["projectId"],
113
+ },
114
+ default: "",
115
+ description: 'Only deliver conversions of this conversion trigger. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
116
+ },
117
+ ],
118
+ },
119
+ {
120
+ displayName: "Active",
121
+ name: "active",
122
+ type: "boolean",
123
+ default: true,
124
+ displayOptions: {
125
+ show: { resource: ["webhook"], operation: ["update"] },
126
+ },
127
+ description: "Whether the webhook subscription is active",
128
+ },
129
+ ];
@@ -0,0 +1,2 @@
1
+ import { IExecuteFunctions } from "n8n-workflow";
2
+ export declare function handleWebhook(this: IExecuteFunctions, i: number, operation: string): Promise<unknown>;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handleWebhook = handleWebhook;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const apiclient_1 = require("../../helpers/apiclient");
6
+ function buildFilter(ctx, i) {
7
+ const raw = ctx.getNodeParameter("filter", i, {});
8
+ const filter = {};
9
+ if (typeof raw.triggerId === "string" && raw.triggerId.trim()) {
10
+ filter.triggerId = raw.triggerId.trim();
11
+ }
12
+ if (typeof raw.eventName === "string" && raw.eventName.trim()) {
13
+ filter.eventName = raw.eventName.trim();
14
+ }
15
+ return filter;
16
+ }
17
+ async function handleWebhook(i, operation) {
18
+ var _a, _b, _c, _d, _e, _f, _g;
19
+ const projectId = (_a = this.getNodeParameter("projectId", i)) === null || _a === void 0 ? void 0 : _a.trim();
20
+ if (!projectId) {
21
+ throw new n8n_workflow_1.ApplicationError("projectId is required.");
22
+ }
23
+ switch (operation) {
24
+ case "getAll": {
25
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/webhooks", { qs: { projectId } });
26
+ return (_b = data === null || data === void 0 ? void 0 : data.webhooks) !== null && _b !== void 0 ? _b : [];
27
+ }
28
+ case "get": {
29
+ const id = (_c = this.getNodeParameter("webhookId", i)) === null || _c === void 0 ? void 0 : _c.trim();
30
+ if (!id) {
31
+ throw new n8n_workflow_1.ApplicationError("webhookId is required.");
32
+ }
33
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", `/v1/webhooks/${encodeURIComponent(id)}`, { qs: { projectId } });
34
+ return data !== null && data !== void 0 ? data : {};
35
+ }
36
+ case "create": {
37
+ const hookUrl = (_d = this.getNodeParameter("hookUrl", i)) === null || _d === void 0 ? void 0 : _d.trim();
38
+ if (!hookUrl) {
39
+ throw new n8n_workflow_1.ApplicationError("hookUrl is required.");
40
+ }
41
+ const filter = buildFilter(this, i);
42
+ const body = {
43
+ projectId,
44
+ hookUrl,
45
+ type: "conversion.created",
46
+ };
47
+ if (Object.keys(filter).length) {
48
+ body.filter = filter;
49
+ }
50
+ const data = await (0, apiclient_1.vtRequest)(this, "POST", "/v1/webhooks", { body });
51
+ return data !== null && data !== void 0 ? data : {};
52
+ }
53
+ case "update": {
54
+ const id = (_e = this.getNodeParameter("webhookId", i)) === null || _e === void 0 ? void 0 : _e.trim();
55
+ const hookUrl = (_f = this.getNodeParameter("hookUrl", i)) === null || _f === void 0 ? void 0 : _f.trim();
56
+ if (!id || !hookUrl) {
57
+ throw new n8n_workflow_1.ApplicationError("webhookId and hookUrl are required.");
58
+ }
59
+ const active = this.getNodeParameter("active", i, true);
60
+ const filter = buildFilter(this, i);
61
+ const data = await (0, apiclient_1.vtRequest)(this, "PUT", `/v1/webhooks/${encodeURIComponent(id)}`, {
62
+ body: {
63
+ projectId,
64
+ hookUrl,
65
+ type: "conversion.created",
66
+ filter,
67
+ active,
68
+ },
69
+ });
70
+ return data !== null && data !== void 0 ? data : {};
71
+ }
72
+ case "delete": {
73
+ const id = (_g = this.getNodeParameter("webhookId", i)) === null || _g === void 0 ? void 0 : _g.trim();
74
+ if (!id) {
75
+ throw new n8n_workflow_1.ApplicationError("webhookId is required.");
76
+ }
77
+ const data = await (0, apiclient_1.vtRequest)(this, "DELETE", `/v1/webhooks/${encodeURIComponent(id)}`, { qs: { projectId } });
78
+ return data !== null && data !== void 0 ? data : {};
79
+ }
80
+ default:
81
+ throw new n8n_workflow_1.ApplicationError(`Unsupported webhook operation: ${operation}`);
82
+ }
83
+ }
@@ -0,0 +1,14 @@
1
+ import type { IDataObject, IExecuteFunctions, IHookFunctions, IHttpRequestOptions, ILoadOptionsFunctions, IWebhookFunctions } from "n8n-workflow";
2
+ export type ApiContext = IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions;
3
+ export declare function vtRequest(ctx: ApiContext, method: IHttpRequestOptions["method"], path: string, opts?: {
4
+ qs?: IDataObject;
5
+ body?: IDataObject | string;
6
+ json?: boolean;
7
+ headers?: Record<string, string>;
8
+ }): Promise<unknown>;
9
+ export declare function vtRequest<T>(ctx: ApiContext, method: IHttpRequestOptions["method"], path: string, opts?: {
10
+ qs?: IDataObject;
11
+ body?: IDataObject | string;
12
+ json?: boolean;
13
+ headers?: Record<string, string>;
14
+ }): Promise<T>;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vtRequest = vtRequest;
4
+ function hasRequestWithAuthentication(ctx) {
5
+ var _a;
6
+ return typeof ((_a = ctx.helpers) === null || _a === void 0 ? void 0 : _a.httpRequestWithAuthentication) === "function";
7
+ }
8
+ function normalizeBaseUrl(baseUrl) {
9
+ return baseUrl
10
+ .trim()
11
+ .replace(/\/+$/, "")
12
+ .replace(/\/api(\/v\d+)?$/i, "");
13
+ }
14
+ function normalizePath(path) {
15
+ const normalizedPath = path.trim();
16
+ if (!normalizedPath.startsWith("/")) {
17
+ throw new Error(`VibeTrack API path must start with a slash, for example /v1/auth. Received: ${path}`);
18
+ }
19
+ if (/^\/api\/v\d+(\/|$)/i.test(normalizedPath)) {
20
+ return normalizedPath;
21
+ }
22
+ if (/^\/v\d+(\/|$)/i.test(normalizedPath)) {
23
+ return `/api${normalizedPath}`;
24
+ }
25
+ return `/api/v1${normalizedPath}`;
26
+ }
27
+ async function vtRequest(ctx, method, path, opts = {}) {
28
+ var _a;
29
+ const credentials = await ctx.getCredentials("vibeTrackApi");
30
+ const apiKey = String(credentials.apiKey || "").trim();
31
+ const baseUrl = normalizeBaseUrl(String(credentials.baseUrl || ""));
32
+ const requestPath = normalizePath(path);
33
+ const json = (_a = opts.json) !== null && _a !== void 0 ? _a : typeof opts.body !== "string";
34
+ const options = {
35
+ method,
36
+ url: `${baseUrl}${requestPath}`,
37
+ json,
38
+ headers: {
39
+ "X-API-Key": apiKey,
40
+ ...opts.headers,
41
+ },
42
+ };
43
+ if (opts.qs) {
44
+ const filteredQs = {};
45
+ for (const [key, val] of Object.entries(opts.qs)) {
46
+ if (val !== undefined && val !== null && val !== "") {
47
+ filteredQs[key] = val;
48
+ }
49
+ }
50
+ if (Object.keys(filteredQs).length) {
51
+ options.qs = filteredQs;
52
+ }
53
+ }
54
+ if (opts.body !== undefined) {
55
+ options.body = opts.body;
56
+ }
57
+ if (!hasRequestWithAuthentication(ctx)) {
58
+ throw new Error("No HTTP helper available");
59
+ }
60
+ return (await ctx.helpers.httpRequestWithAuthentication.call(ctx, "vibeTrackApi", options));
61
+ }
@@ -0,0 +1,5 @@
1
+ import { ILoadOptionsFunctions, INodePropertyOptions } from "n8n-workflow";
2
+ export declare function getProjects(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
3
+ export declare function getConversionTriggers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
4
+ export declare function getOfflineTriggers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
5
+ export declare function getWebhooks(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProjects = getProjects;
4
+ exports.getConversionTriggers = getConversionTriggers;
5
+ exports.getOfflineTriggers = getOfflineTriggers;
6
+ exports.getWebhooks = getWebhooks;
7
+ const apiclient_1 = require("../../helpers/apiclient");
8
+ function getCurrentProjectId(ctx) {
9
+ try {
10
+ return (ctx.getCurrentNodeParameter("projectId") || "").trim();
11
+ }
12
+ catch {
13
+ return "";
14
+ }
15
+ }
16
+ async function getProjects() {
17
+ var _a;
18
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/projects");
19
+ const projects = (_a = data === null || data === void 0 ? void 0 : data.projects) !== null && _a !== void 0 ? _a : [];
20
+ if (!projects.length) {
21
+ return [{ name: "No Projects Found", value: "" }];
22
+ }
23
+ return projects.map((project) => {
24
+ var _a, _b;
25
+ return ({
26
+ name: project.name || project.id || "Unknown",
27
+ value: String((_a = project.id) !== null && _a !== void 0 ? _a : ""),
28
+ description: (_b = project.domain) !== null && _b !== void 0 ? _b : undefined,
29
+ });
30
+ });
31
+ }
32
+ async function getConversionTriggers() {
33
+ var _a;
34
+ const projectId = getCurrentProjectId(this);
35
+ if (!projectId)
36
+ return [];
37
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/conversion-triggers", { qs: { projectId } });
38
+ const triggers = (_a = data === null || data === void 0 ? void 0 : data.conversionTriggers) !== null && _a !== void 0 ? _a : [];
39
+ if (!triggers.length) {
40
+ return [{ name: "No Conversion Triggers Found", value: "" }];
41
+ }
42
+ return triggers.map((trigger) => {
43
+ var _a;
44
+ return ({
45
+ name: trigger.name || trigger.id || "Unknown",
46
+ value: String((_a = trigger.id) !== null && _a !== void 0 ? _a : ""),
47
+ });
48
+ });
49
+ }
50
+ async function getOfflineTriggers() {
51
+ var _a;
52
+ const projectId = getCurrentProjectId(this);
53
+ if (!projectId)
54
+ return [];
55
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/offline-triggers", { qs: { projectId, source: "api" } });
56
+ const triggers = (_a = data === null || data === void 0 ? void 0 : data.offlineTriggers) !== null && _a !== void 0 ? _a : [];
57
+ if (!triggers.length) {
58
+ return [{ name: "No Offline Triggers Found", value: "" }];
59
+ }
60
+ return triggers.map((trigger) => {
61
+ var _a;
62
+ return ({
63
+ name: trigger.name || trigger.id || "Unknown",
64
+ value: String((_a = trigger.id) !== null && _a !== void 0 ? _a : ""),
65
+ });
66
+ });
67
+ }
68
+ async function getWebhooks() {
69
+ var _a;
70
+ const projectId = getCurrentProjectId(this);
71
+ if (!projectId)
72
+ return [];
73
+ const data = await (0, apiclient_1.vtRequest)(this, "GET", "/v1/webhooks", { qs: { projectId } });
74
+ const webhooks = (_a = data === null || data === void 0 ? void 0 : data.webhooks) !== null && _a !== void 0 ? _a : [];
75
+ if (!webhooks.length) {
76
+ return [{ name: "No Webhooks Found", value: "" }];
77
+ }
78
+ return webhooks.map((webhook) => {
79
+ var _a, _b, _c;
80
+ return ({
81
+ name: `${(_a = webhook.type) !== null && _a !== void 0 ? _a : "conversion.created"} → ${(_b = webhook.hookUrl) !== null && _b !== void 0 ? _b : webhook.id}`,
82
+ value: String((_c = webhook.id) !== null && _c !== void 0 ? _c : ""),
83
+ description: webhook.active === false ? "Inactive" : undefined,
84
+ });
85
+ });
86
+ }
@@ -0,0 +1 @@
1
+ export * as commonLoaders from "./common.loadOptions";
@@ -0,0 +1,37 @@
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 () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.commonLoaders = void 0;
37
+ exports.commonLoaders = __importStar(require("./common.loadOptions"));
@@ -0,0 +1,19 @@
1
+ import { IHookFunctions, INodeType, INodeTypeDescription, IWebhookFunctions, IWebhookResponseData } from "n8n-workflow";
2
+ import { getConversionTriggers, getProjects } from "../methods/loadOptions/common.loadOptions";
3
+ export declare class VibeTrackTrigger implements INodeType {
4
+ description: INodeTypeDescription;
5
+ methods: {
6
+ loadOptions: {
7
+ getProjects: typeof getProjects;
8
+ getConversionTriggers: typeof getConversionTriggers;
9
+ };
10
+ };
11
+ webhookMethods: {
12
+ default: {
13
+ checkExists(this: IHookFunctions): Promise<boolean>;
14
+ create(this: IHookFunctions): Promise<boolean>;
15
+ delete(this: IHookFunctions): Promise<boolean>;
16
+ };
17
+ };
18
+ webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
19
+ }