@probo/n8n-nodes-probo 0.234.0 → 0.235.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.
- package/dist/nodes/Probo/actions/task/get.operation.js +6 -0
- package/dist/nodes/Probo/actions/task/get.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/task/index.d.ts +4 -1
- package/dist/nodes/Probo/actions/task/index.js +28 -1
- package/dist/nodes/Probo/actions/task/index.js.map +1 -1
- package/dist/nodes/Probo/actions/task/listLinearTeams.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/task/listLinearTeams.operation.js +47 -0
- package/dist/nodes/Probo/actions/task/listLinearTeams.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/task/publishToLinear.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/task/publishToLinear.operation.js +60 -0
- package/dist/nodes/Probo/actions/task/publishToLinear.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/task/unlinkExternal.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/task/unlinkExternal.operation.js +39 -0
- package/dist/nodes/Probo/actions/task/unlinkExternal.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/getEvents.operation.js +28 -3
- package/dist/nodes/Probo/actions/webhook/getEvents.operation.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/get.operation.ts"],"names":[],"mappings":";;;AAwCA,
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/get.operation.ts"],"names":[],"mappings":";;;AAwCA,0BA6CC;AAhED,6DAA+E;AAElE,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAW,CAAC;IAEpE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;EAsBb,CAAC;IAEF,MAAM,SAAS,GAAG;QACjB,MAAM;KACN,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IACxE,MAAM,IAAI,GAAG,YAAY,CAAC,IAA+B,CAAC;IAC1D,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAA+B,CAAC;IACnD,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAA,uCAAoB,EAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -4,5 +4,8 @@ import * as updateOp from './update.operation';
|
|
|
4
4
|
import * as deleteOp from './delete.operation';
|
|
5
5
|
import * as getOp from './get.operation';
|
|
6
6
|
import * as getAllOp from './getAll.operation';
|
|
7
|
+
import * as listLinearTeamsOp from './listLinearTeams.operation';
|
|
8
|
+
import * as publishToLinearOp from './publishToLinear.operation';
|
|
9
|
+
import * as unlinkExternalOp from './unlinkExternal.operation';
|
|
7
10
|
export declare const description: INodeProperties[];
|
|
8
|
-
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll };
|
|
11
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, listLinearTeamsOp as listLinearTeams, publishToLinearOp as publishToLinear, unlinkExternalOp as unlinkExternal, };
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
36
|
+
exports.unlinkExternal = exports.publishToLinear = exports.listLinearTeams = exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
37
37
|
const createOp = __importStar(require("./create.operation"));
|
|
38
38
|
exports.create = createOp;
|
|
39
39
|
const updateOp = __importStar(require("./update.operation"));
|
|
@@ -44,6 +44,12 @@ const getOp = __importStar(require("./get.operation"));
|
|
|
44
44
|
exports.get = getOp;
|
|
45
45
|
const getAllOp = __importStar(require("./getAll.operation"));
|
|
46
46
|
exports.getAll = getAllOp;
|
|
47
|
+
const listLinearTeamsOp = __importStar(require("./listLinearTeams.operation"));
|
|
48
|
+
exports.listLinearTeams = listLinearTeamsOp;
|
|
49
|
+
const publishToLinearOp = __importStar(require("./publishToLinear.operation"));
|
|
50
|
+
exports.publishToLinear = publishToLinearOp;
|
|
51
|
+
const unlinkExternalOp = __importStar(require("./unlinkExternal.operation"));
|
|
52
|
+
exports.unlinkExternal = unlinkExternalOp;
|
|
47
53
|
exports.description = [
|
|
48
54
|
{
|
|
49
55
|
displayName: 'Operation',
|
|
@@ -80,6 +86,24 @@ exports.description = [
|
|
|
80
86
|
description: 'Get many tasks',
|
|
81
87
|
action: 'Get many tasks',
|
|
82
88
|
},
|
|
89
|
+
{
|
|
90
|
+
name: 'List Linear Teams',
|
|
91
|
+
value: 'listLinearTeams',
|
|
92
|
+
description: 'List Linear teams for an organization',
|
|
93
|
+
action: 'List linear teams',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Publish To Linear',
|
|
97
|
+
value: 'publishToLinear',
|
|
98
|
+
description: 'Publish a task to Linear',
|
|
99
|
+
action: 'Publish a task to linear',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Unlink External',
|
|
103
|
+
value: 'unlinkExternal',
|
|
104
|
+
description: 'Unlink a task from its external issue',
|
|
105
|
+
action: 'Unlink a task external issue',
|
|
106
|
+
},
|
|
83
107
|
{
|
|
84
108
|
name: 'Update',
|
|
85
109
|
value: 'update',
|
|
@@ -94,5 +118,8 @@ exports.description = [
|
|
|
94
118
|
...deleteOp.description,
|
|
95
119
|
...getOp.description,
|
|
96
120
|
...getAllOp.description,
|
|
121
|
+
...listLinearTeamsOp.description,
|
|
122
|
+
...publishToLinearOp.description,
|
|
123
|
+
...unlinkExternalOp.description,
|
|
97
124
|
];
|
|
98
125
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,6DAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,6DAA+C;AAmFlC,0BAAM;AAlFnB,6DAA+C;AAmFlC,0BAAM;AAlFnB,6DAA+C;AAmFlC,0BAAM;AAlFnB,uDAAyC;AAmF/B,oBAAG;AAlFb,6DAA+C;AAmFlC,0BAAM;AAlFnB,+EAAiE;AAmF3C,4CAAe;AAlFrC,+EAAiE;AAmF3C,4CAAe;AAlFrC,6EAA+D;AAmF1C,0CAAc;AAjFtB,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE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Q,CAAC,WAAW;IACvB,GAAG,iBAAiB,CAAC,WAAW;IAChC,GAAG,iBAAiB,CAAC,WAAW;IAChC,GAAG,gBAAgB,CAAC,WAAW;CAC/B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Organization ID',
|
|
9
|
+
name: 'organizationId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['task'],
|
|
14
|
+
operation: ['listLinearTeams'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
var _a;
|
|
24
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
25
|
+
const query = `
|
|
26
|
+
query ListLinearTeams($id: ID!) {
|
|
27
|
+
node(id: $id) {
|
|
28
|
+
... on Organization {
|
|
29
|
+
linearTeams {
|
|
30
|
+
id
|
|
31
|
+
name
|
|
32
|
+
key
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { id: organizationId });
|
|
39
|
+
const data = responseData.data;
|
|
40
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
41
|
+
const linearTeams = (_a = node === null || node === void 0 ? void 0 : node.linearTeams) !== null && _a !== void 0 ? _a : [];
|
|
42
|
+
return {
|
|
43
|
+
json: { linearTeams },
|
|
44
|
+
pairedItem: { item: itemIndex },
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=listLinearTeams.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listLinearTeams.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/listLinearTeams.operation.ts"],"names":[],"mappings":";;;AAwCA,0BA6BC;AAhDD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAEpF,MAAM,KAAK,GAAG;;;;;;;;;;;;EAYb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC;IACrF,MAAM,IAAI,GAAG,YAAY,CAAC,IAA+B,CAAC;IAC1D,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAA+B,CAAC;IACnD,MAAM,WAAW,GAAG,MAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAyC,mCAAI,EAAE,CAAC;IAE3E,OAAO;QACN,IAAI,EAAE,EAAE,WAAW,EAAE;QACrB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Task ID',
|
|
9
|
+
name: 'taskId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['task'],
|
|
14
|
+
operation: ['publishToLinear'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the task to publish',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Team ID',
|
|
23
|
+
name: 'teamId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['task'],
|
|
28
|
+
operation: ['publishToLinear'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The Linear team ID',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
async function execute(itemIndex) {
|
|
37
|
+
const taskId = this.getNodeParameter('taskId', itemIndex);
|
|
38
|
+
const teamId = this.getNodeParameter('teamId', itemIndex);
|
|
39
|
+
const query = `
|
|
40
|
+
mutation PublishTaskToLinear($input: PublishTaskToLinearInput!) {
|
|
41
|
+
publishTaskToLinear(input: $input) {
|
|
42
|
+
task {
|
|
43
|
+
id
|
|
44
|
+
externalLink {
|
|
45
|
+
identifier
|
|
46
|
+
url
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
|
|
53
|
+
input: { taskId, teamId },
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
json: responseData,
|
|
57
|
+
pairedItem: { item: itemIndex },
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=publishToLinear.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishToLinear.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/publishToLinear.operation.ts"],"names":[],"mappings":";;;AAsDA,0BA6BC;AA9DD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAW,CAAC;IACpE,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAW,CAAC;IAEpE,MAAM,KAAK,GAAG;;;;;;;;;;;;EAYb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAC5D,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;KACzB,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Task ID',
|
|
9
|
+
name: 'taskId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['task'],
|
|
14
|
+
operation: ['unlinkExternal'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the task to unlink',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
async function execute(itemIndex) {
|
|
23
|
+
const taskId = this.getNodeParameter('taskId', itemIndex);
|
|
24
|
+
const query = `
|
|
25
|
+
mutation UnlinkTaskExternal($input: UnlinkTaskExternalInput!) {
|
|
26
|
+
unlinkTaskExternal(input: $input) {
|
|
27
|
+
task {
|
|
28
|
+
id
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input: { taskId } });
|
|
34
|
+
return {
|
|
35
|
+
json: responseData,
|
|
36
|
+
pairedItem: { item: itemIndex },
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=unlinkExternal.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unlinkExternal.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/unlinkExternal.operation.ts"],"names":[],"mappings":";;;AAwCA,0BAsBC;AAzCD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAW,CAAC;IAEpE,MAAM,KAAK,GAAG;;;;;;;;EAQb,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,kCAAe,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;IAEpF,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -48,21 +48,42 @@ exports.description = [
|
|
|
48
48
|
default: 50,
|
|
49
49
|
description: 'Max number of results to return',
|
|
50
50
|
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Status',
|
|
53
|
+
name: 'status',
|
|
54
|
+
type: 'options',
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['webhook'],
|
|
58
|
+
operation: ['getEvents'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
options: [
|
|
62
|
+
{ name: 'All', value: '' },
|
|
63
|
+
{ name: 'Pending', value: 'PENDING' },
|
|
64
|
+
{ name: 'Succeeded', value: 'SUCCEEDED' },
|
|
65
|
+
{ name: 'Failed', value: 'FAILED' },
|
|
66
|
+
],
|
|
67
|
+
default: '',
|
|
68
|
+
description: 'Filter events by delivery status',
|
|
69
|
+
},
|
|
51
70
|
];
|
|
52
71
|
async function execute(itemIndex) {
|
|
53
72
|
const webhookSubscriptionId = this.getNodeParameter('webhookSubscriptionId', itemIndex);
|
|
54
73
|
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
55
74
|
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
75
|
+
const status = this.getNodeParameter('status', itemIndex, '');
|
|
56
76
|
const query = `
|
|
57
|
-
query GetWebhookEvents($webhookSubscriptionId: ID!, $first: Int, $after: CursorKey) {
|
|
77
|
+
query GetWebhookEvents($webhookSubscriptionId: ID!, $first: Int, $after: CursorKey, $filter: WebhookEventFilter) {
|
|
58
78
|
node(id: $webhookSubscriptionId) {
|
|
59
79
|
... on WebhookSubscription {
|
|
60
|
-
events(first: $first, after: $after) {
|
|
80
|
+
events(first: $first, after: $after, filter: $filter) {
|
|
61
81
|
edges {
|
|
62
82
|
node {
|
|
63
83
|
id
|
|
64
84
|
webhookSubscriptionId
|
|
65
85
|
status
|
|
86
|
+
payload
|
|
66
87
|
response
|
|
67
88
|
createdAt
|
|
68
89
|
}
|
|
@@ -76,7 +97,11 @@ async function execute(itemIndex) {
|
|
|
76
97
|
}
|
|
77
98
|
}
|
|
78
99
|
`;
|
|
79
|
-
const
|
|
100
|
+
const variables = { webhookSubscriptionId };
|
|
101
|
+
if (status !== '') {
|
|
102
|
+
variables.filter = { status };
|
|
103
|
+
}
|
|
104
|
+
const events = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, variables, (response) => {
|
|
80
105
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
81
106
|
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
82
107
|
return node === null || node === void 0 ? void 0 : node.events;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEvents.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/webhook/getEvents.operation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getEvents.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/webhook/getEvents.operation.ts"],"names":[],"mappings":";;;AAyFA,0BAwDC;AA5HD,6DAAiE;AAEpD,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,WAAW,CAAC;aACxB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oCAAoC;QACjD,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,WAAW,CAAC;aACxB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,WAAW,CAAC;gBACxB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,W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