@probo/n8n-nodes-probo 0.236.0 → 0.237.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/index.d.ts +3 -1
- package/dist/nodes/Probo/actions/task/index.js +21 -3
- package/dist/nodes/Probo/actions/task/index.js.map +1 -1
- package/dist/nodes/Probo/actions/task/linkToLinear.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/task/linkToLinear.operation.js +87 -0
- package/dist/nodes/Probo/actions/task/linkToLinear.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/task/listLinearIssues.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/task/listLinearIssues.operation.js +116 -0
- package/dist/nodes/Probo/actions/task/listLinearIssues.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/task/listLinearTeams.operation.js +64 -10
- package/dist/nodes/Probo/actions/task/listLinearTeams.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/task/publishToLinear.operation.js +1 -1
- package/dist/nodes/Probo/actions/task/publishToLinear.operation.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,10 @@ 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 linkToLinearOp from './linkToLinear.operation';
|
|
8
|
+
import * as listLinearIssuesOp from './listLinearIssues.operation';
|
|
7
9
|
import * as listLinearTeamsOp from './listLinearTeams.operation';
|
|
8
10
|
import * as publishToLinearOp from './publishToLinear.operation';
|
|
9
11
|
import * as unlinkExternalOp from './unlinkExternal.operation';
|
|
10
12
|
export declare const description: INodeProperties[];
|
|
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, };
|
|
13
|
+
export { createOp as create, updateOp as update, deleteOp as delete, getOp as get, getAllOp as getAll, linkToLinearOp as linkToLinear, listLinearIssuesOp as listLinearIssues, 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.unlinkExternal = exports.publishToLinear = exports.listLinearTeams = exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
36
|
+
exports.unlinkExternal = exports.publishToLinear = exports.listLinearTeams = exports.listLinearIssues = exports.linkToLinear = 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,10 @@ 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 linkToLinearOp = __importStar(require("./linkToLinear.operation"));
|
|
48
|
+
exports.linkToLinear = linkToLinearOp;
|
|
49
|
+
const listLinearIssuesOp = __importStar(require("./listLinearIssues.operation"));
|
|
50
|
+
exports.listLinearIssues = listLinearIssuesOp;
|
|
47
51
|
const listLinearTeamsOp = __importStar(require("./listLinearTeams.operation"));
|
|
48
52
|
exports.listLinearTeams = listLinearTeamsOp;
|
|
49
53
|
const publishToLinearOp = __importStar(require("./publishToLinear.operation"));
|
|
@@ -86,16 +90,28 @@ exports.description = [
|
|
|
86
90
|
description: 'Get many tasks',
|
|
87
91
|
action: 'Get many tasks',
|
|
88
92
|
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Link To Linear',
|
|
95
|
+
value: 'linkToLinear',
|
|
96
|
+
description: 'Link a task to an existing Linear issue. This updates the Probo task with the Linear issue.',
|
|
97
|
+
action: 'Link a task to linear',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'List Linear Issues',
|
|
101
|
+
value: 'listLinearIssues',
|
|
102
|
+
description: 'Search Linear issues in a team',
|
|
103
|
+
action: 'List linear issues',
|
|
104
|
+
},
|
|
89
105
|
{
|
|
90
106
|
name: 'List Linear Teams',
|
|
91
107
|
value: 'listLinearTeams',
|
|
92
|
-
description: '
|
|
108
|
+
description: 'Search Linear teams for an organization',
|
|
93
109
|
action: 'List linear teams',
|
|
94
110
|
},
|
|
95
111
|
{
|
|
96
112
|
name: 'Publish To Linear',
|
|
97
113
|
value: 'publishToLinear',
|
|
98
|
-
description: 'Publish a task
|
|
114
|
+
description: 'Publish a task as a new Linear issue',
|
|
99
115
|
action: 'Publish a task to linear',
|
|
100
116
|
},
|
|
101
117
|
{
|
|
@@ -118,6 +134,8 @@ exports.description = [
|
|
|
118
134
|
...deleteOp.description,
|
|
119
135
|
...getOp.description,
|
|
120
136
|
...getAllOp.description,
|
|
137
|
+
...linkToLinearOp.description,
|
|
138
|
+
...listLinearIssuesOp.description,
|
|
121
139
|
...listLinearTeamsOp.description,
|
|
122
140
|
...publishToLinearOp.description,
|
|
123
141
|
...unlinkExternalOp.description,
|
|
@@ -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;AAmGlC,0BAAM;AAlGnB,6DAA+C;AAmGlC,0BAAM;AAlGnB,6DAA+C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ACxB,WAAW,EAAE,yCAAyC;gBACtD,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,sCAAsC;gBACnD,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,8BAA8B;aACtC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,eAAe;aACvB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,cAAc,CAAC,WAAW;IAC7B,GAAG,kBAAkB,CAAC,WAAW;IACjC,GAAG,iBAAiB,CAAC,WAAW;IAChC,GAAG,iBAAiB,CAAC,WAAW;IAChC,GAAG,gBAAgB,CAAC,WAAW;CAC/B,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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: 'Linking updates the Probo task with the Linear issue',
|
|
9
|
+
name: 'linkWarning',
|
|
10
|
+
type: 'notice',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['task'],
|
|
14
|
+
operation: ['linkToLinear'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Task ID',
|
|
21
|
+
name: 'taskId',
|
|
22
|
+
type: 'string',
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: {
|
|
25
|
+
resource: ['task'],
|
|
26
|
+
operation: ['linkToLinear'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
default: '',
|
|
30
|
+
description: 'The ID of the task to link',
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Team ID',
|
|
35
|
+
name: 'teamId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: {
|
|
39
|
+
resource: ['task'],
|
|
40
|
+
operation: ['linkToLinear'],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
default: '',
|
|
44
|
+
description: 'The Linear team ID',
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Issue ID',
|
|
49
|
+
name: 'issueId',
|
|
50
|
+
type: 'string',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['task'],
|
|
54
|
+
operation: ['linkToLinear'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: '',
|
|
58
|
+
description: 'The existing Linear issue ID. Linking updates the Probo task with this issue.',
|
|
59
|
+
required: true,
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
async function execute(itemIndex) {
|
|
63
|
+
const taskId = this.getNodeParameter('taskId', itemIndex);
|
|
64
|
+
const teamId = this.getNodeParameter('teamId', itemIndex);
|
|
65
|
+
const issueId = this.getNodeParameter('issueId', itemIndex);
|
|
66
|
+
const query = `
|
|
67
|
+
mutation LinkTaskToLinear($input: LinkTaskToLinearInput!) {
|
|
68
|
+
linkTaskToLinear(input: $input) {
|
|
69
|
+
task {
|
|
70
|
+
id
|
|
71
|
+
externalLink {
|
|
72
|
+
identifier
|
|
73
|
+
url
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, {
|
|
80
|
+
input: { taskId, teamId, issueId },
|
|
81
|
+
});
|
|
82
|
+
return {
|
|
83
|
+
json: responseData,
|
|
84
|
+
pairedItem: { item: itemIndex },
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=linkToLinear.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkToLinear.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/linkToLinear.operation.ts"],"names":[],"mappings":";;;AAgFA,0BA8BC;AAzFD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,EAAE;KACX;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,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,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,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+EAA+E;QAC5F,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;IACpE,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAW,CAAC;IAEtE,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,OAAO,EAAE;KAClC,CAAC,CAAC;IAEH,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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: ['listLinearIssues'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the organization',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Team ID',
|
|
23
|
+
name: 'teamId',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['task'],
|
|
28
|
+
operation: ['listLinearIssues'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The Linear team ID',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Query',
|
|
37
|
+
name: 'query',
|
|
38
|
+
type: 'string',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['task'],
|
|
42
|
+
operation: ['listLinearIssues'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'Search issues in the team',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: 'Return All',
|
|
50
|
+
name: 'returnAll',
|
|
51
|
+
type: 'boolean',
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: {
|
|
54
|
+
resource: ['task'],
|
|
55
|
+
operation: ['listLinearIssues'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
default: false,
|
|
59
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Limit',
|
|
63
|
+
name: 'limit',
|
|
64
|
+
type: 'number',
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['task'],
|
|
68
|
+
operation: ['listLinearIssues'],
|
|
69
|
+
returnAll: [false],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
typeOptions: {
|
|
73
|
+
minValue: 1,
|
|
74
|
+
},
|
|
75
|
+
default: 50,
|
|
76
|
+
description: 'Max number of results to return',
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
async function execute(itemIndex) {
|
|
80
|
+
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
81
|
+
const teamId = this.getNodeParameter('teamId', itemIndex);
|
|
82
|
+
const search = this.getNodeParameter('query', itemIndex);
|
|
83
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
84
|
+
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
85
|
+
const query = `
|
|
86
|
+
query ListLinearIssues($id: ID!, $teamId: String!, $first: Int!, $after: String, $query: String) {
|
|
87
|
+
node(id: $id) {
|
|
88
|
+
... on Organization {
|
|
89
|
+
linearIssues(teamId: $teamId, first: $first, after: $after, query: $query) {
|
|
90
|
+
edges {
|
|
91
|
+
node {
|
|
92
|
+
id
|
|
93
|
+
identifier
|
|
94
|
+
title
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
pageInfo {
|
|
98
|
+
hasNextPage
|
|
99
|
+
endCursor
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
const linearIssues = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { id: organizationId, teamId, query: search || null }, (response) => {
|
|
107
|
+
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
108
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
109
|
+
return node === null || node === void 0 ? void 0 : node.linearIssues;
|
|
110
|
+
}, returnAll, limit);
|
|
111
|
+
return {
|
|
112
|
+
json: { linearIssues },
|
|
113
|
+
pairedItem: { item: itemIndex },
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=listLinearIssues.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listLinearIssues.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/listLinearIssues.operation.ts"],"names":[],"mappings":";;;AAiGA,0BAiDC;AA7HD,6DAAiE;AAEpD,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,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,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,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2BAA2B;KACxC;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE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,IAAI,CAAE,YAAuC,CAAC;IACtD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,YAAY,EAAE;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -18,27 +18,81 @@ exports.description = [
|
|
|
18
18
|
description: 'The ID of the organization',
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Query',
|
|
23
|
+
name: 'query',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['task'],
|
|
28
|
+
operation: ['listLinearTeams'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'Search teams by name or key',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Return All',
|
|
36
|
+
name: 'returnAll',
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['task'],
|
|
41
|
+
operation: ['listLinearTeams'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: false,
|
|
45
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Limit',
|
|
49
|
+
name: 'limit',
|
|
50
|
+
type: 'number',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['task'],
|
|
54
|
+
operation: ['listLinearTeams'],
|
|
55
|
+
returnAll: [false],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
typeOptions: {
|
|
59
|
+
minValue: 1,
|
|
60
|
+
},
|
|
61
|
+
default: 50,
|
|
62
|
+
description: 'Max number of results to return',
|
|
63
|
+
},
|
|
21
64
|
];
|
|
22
65
|
async function execute(itemIndex) {
|
|
23
|
-
var _a;
|
|
24
66
|
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
67
|
+
const search = this.getNodeParameter('query', itemIndex);
|
|
68
|
+
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
69
|
+
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
25
70
|
const query = `
|
|
26
|
-
query ListLinearTeams($id: ID
|
|
71
|
+
query ListLinearTeams($id: ID!, $first: Int!, $after: String, $query: String) {
|
|
27
72
|
node(id: $id) {
|
|
28
73
|
... on Organization {
|
|
29
|
-
linearTeams {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
74
|
+
linearTeams(first: $first, after: $after, query: $query) {
|
|
75
|
+
edges {
|
|
76
|
+
node {
|
|
77
|
+
id
|
|
78
|
+
name
|
|
79
|
+
key
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
pageInfo {
|
|
83
|
+
hasNextPage
|
|
84
|
+
endCursor
|
|
85
|
+
}
|
|
33
86
|
}
|
|
34
87
|
}
|
|
35
88
|
}
|
|
36
89
|
}
|
|
37
90
|
`;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
91
|
+
const linearTeams = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, { id: organizationId, query: search || null }, (response) => {
|
|
92
|
+
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
93
|
+
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
94
|
+
return node === null || node === void 0 ? void 0 : node.linearTeams;
|
|
95
|
+
}, returnAll, limit);
|
|
42
96
|
return {
|
|
43
97
|
json: { linearTeams },
|
|
44
98
|
pairedItem: { item: itemIndex },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listLinearTeams.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/listLinearTeams.operation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"listLinearTeams.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/task/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;AAEK,KAAK,UAAU,OAAO,CAE5B,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IACpF,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,CAAW,CAAC;IACnE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAY,CAAC;IAC3E,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IAEtE,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;EAoBb,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,0CAAuB,CAAC,IAAI,CACrD,IAAI,EACJ,KAAK,EACL,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,IAAI,IAAI,EAAE,EAC7C,CAAC,QAAQ,EAAE,EAAE;QACZ,MAAM,IAAI,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAA+B,CAAC;QACvD,MAAM,IAAI,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAA+B,CAAC;QACnD,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAsC,CAAC;IACrD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,WAAW,EAAE;QACrB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -1 +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
|
|
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,qDAAqD;QAClE,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"}
|