@probo/n8n-nodes-probo 0.235.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/Probo.node.js +5 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/connector/createOrg.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/connector/createOrg.operation.js +246 -0
- package/dist/nodes/Probo/actions/connector/createOrg.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/connector/discover.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/connector/discover.operation.js +43 -0
- package/dist/nodes/Probo/actions/connector/discover.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/connector/enable.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/connector/enable.operation.js +78 -0
- package/dist/nodes/Probo/actions/connector/enable.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/connector/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/connector/get.operation.js +80 -0
- package/dist/nodes/Probo/actions/connector/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/connector/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/connector/getAll.operation.js +44 -0
- package/dist/nodes/Probo/actions/connector/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/connector/index.d.ts +8 -0
- package/dist/nodes/Probo/actions/connector/index.js +98 -0
- package/dist/nodes/Probo/actions/connector/index.js.map +1 -0
- package/dist/nodes/Probo/actions/finding/getAll.operation.js +34 -3
- package/dist/nodes/Probo/actions/finding/getAll.operation.js.map +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- 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/nodes/Probo/actions/webhook/events.js +6 -0
- package/dist/nodes/Probo/actions/webhook/events.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
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.getAll = exports.get = exports.enable = exports.discover = exports.createOrg = exports.description = void 0;
|
|
37
|
+
const createOrgOp = __importStar(require("./createOrg.operation"));
|
|
38
|
+
exports.createOrg = createOrgOp;
|
|
39
|
+
const discoverOp = __importStar(require("./discover.operation"));
|
|
40
|
+
exports.discover = discoverOp;
|
|
41
|
+
const enableOp = __importStar(require("./enable.operation"));
|
|
42
|
+
exports.enable = enableOp;
|
|
43
|
+
const getOp = __importStar(require("./get.operation"));
|
|
44
|
+
exports.get = getOp;
|
|
45
|
+
const getAllOp = __importStar(require("./getAll.operation"));
|
|
46
|
+
exports.getAll = getAllOp;
|
|
47
|
+
exports.description = [
|
|
48
|
+
{
|
|
49
|
+
displayName: 'Operation',
|
|
50
|
+
name: 'operation',
|
|
51
|
+
type: 'options',
|
|
52
|
+
noDataExpression: true,
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['connector'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Create Organization Connector',
|
|
61
|
+
value: 'createOrg',
|
|
62
|
+
description: 'Create an organization-scoped workload-identity connector',
|
|
63
|
+
action: 'Create an organization connector',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Discover Accounts',
|
|
67
|
+
value: 'discover',
|
|
68
|
+
description: 'Discover accounts under a connector',
|
|
69
|
+
action: 'Discover connector accounts',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Enable Accounts',
|
|
73
|
+
value: 'enable',
|
|
74
|
+
description: 'Enable discovered connector accounts',
|
|
75
|
+
action: 'Enable connector accounts',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Get',
|
|
79
|
+
value: 'get',
|
|
80
|
+
description: 'Get a connector',
|
|
81
|
+
action: 'Get a connector',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Get Many',
|
|
85
|
+
value: 'getAll',
|
|
86
|
+
description: 'Get many connectors',
|
|
87
|
+
action: 'Get many connectors',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
default: 'getAll',
|
|
91
|
+
},
|
|
92
|
+
...createOrgOp.description,
|
|
93
|
+
...discoverOp.description,
|
|
94
|
+
...enableOp.description,
|
|
95
|
+
...getOp.description,
|
|
96
|
+
...getAllOp.description,
|
|
97
|
+
];
|
|
98
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/connector/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,mEAAqD;AA2DrC,gCAAS;AA1DzB,iEAAmD;AA2DpC,8BAAQ;AA1DvB,6DAA+C;AA2DlC,0BAAM;AA1DnB,uDAAyC;AA2D/B,oBAAG;AA1Db,6DAA+C;AA2DlC,0BAAM;AAzDN,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,WAAW,CAAC;aACvB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,+BAA+B;gBACrC,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,2DAA2D;gBACxE,MAAM,EAAE,kCAAkC;aAC1C;YACD;gBACC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,qCAAqC;gBAClD,MAAM,EAAE,6BAA6B;aACrC;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sCAAsC;gBACnD,MAAM,EAAE,2BAA2B;aACnC;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,qBAAqB;aAC7B;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,WAAW,CAAC,WAAW;IAC1B,GAAG,UAAU,CAAC,WAAW;IACzB,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,QAAQ,CAAC,WAAW;CACvB,CAAC"}
|
|
@@ -48,16 +48,39 @@ exports.description = [
|
|
|
48
48
|
default: 50,
|
|
49
49
|
description: 'Max number of results to return',
|
|
50
50
|
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Filters',
|
|
53
|
+
name: 'filters',
|
|
54
|
+
type: 'collection',
|
|
55
|
+
placeholder: 'Add Filter',
|
|
56
|
+
default: {},
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: ['finding'],
|
|
60
|
+
operation: ['getAll'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Audit ID',
|
|
66
|
+
name: 'auditId',
|
|
67
|
+
type: 'string',
|
|
68
|
+
default: '',
|
|
69
|
+
description: 'Only return findings linked to this audit',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
51
73
|
];
|
|
52
74
|
async function execute(itemIndex) {
|
|
53
75
|
const organizationId = this.getNodeParameter('organizationId', itemIndex);
|
|
54
76
|
const returnAll = this.getNodeParameter('returnAll', itemIndex);
|
|
55
77
|
const limit = this.getNodeParameter('limit', itemIndex, 50);
|
|
78
|
+
const filters = this.getNodeParameter('filters', itemIndex, {});
|
|
56
79
|
const query = `
|
|
57
|
-
query GetFindings($organizationId: ID!, $first: Int, $after: CursorKey) {
|
|
80
|
+
query GetFindings($organizationId: ID!, $first: Int, $after: CursorKey, $filter: FindingFilter) {
|
|
58
81
|
node(id: $organizationId) {
|
|
59
82
|
... on Organization {
|
|
60
|
-
findings(first: $first, after: $after) {
|
|
83
|
+
findings(first: $first, after: $after, filter: $filter) {
|
|
61
84
|
edges {
|
|
62
85
|
node {
|
|
63
86
|
id
|
|
@@ -84,7 +107,15 @@ async function execute(itemIndex) {
|
|
|
84
107
|
}
|
|
85
108
|
}
|
|
86
109
|
`;
|
|
87
|
-
const
|
|
110
|
+
const variables = { organizationId };
|
|
111
|
+
const filter = {};
|
|
112
|
+
if (filters.auditId) {
|
|
113
|
+
filter.auditId = filters.auditId;
|
|
114
|
+
}
|
|
115
|
+
if (Object.keys(filter).length > 0) {
|
|
116
|
+
variables.filter = filter;
|
|
117
|
+
}
|
|
118
|
+
const findings = await GenericFunctions_1.proboApiRequestAllItems.call(this, query, variables, (response) => {
|
|
88
119
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
89
120
|
const node = data === null || data === void 0 ? void 0 : data.node;
|
|
90
121
|
return node === null || node === void 0 ? void 0 : node.findings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/finding/getAll.operation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/finding/getAll.operation.ts"],"names":[],"mappings":";;;AA4FA,0BAuEC;AA9ID,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,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,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,QAAQ,CAAC;aACrB;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,QAAQ,CAAC;gBACrB,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,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,I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AAR,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,QAAmC,CAAC;IAClD,CAAC,EACD,SAAS,EACT,KAAK,CACL,CAAC;IAEF,OAAO;QACN,IAAI,EAAE,EAAE,QAAQ,EAAE;QAClB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -74,6 +74,7 @@ const taskComment = __importStar(require("./taskComment"));
|
|
|
74
74
|
const taskActivity = __importStar(require("./taskActivity"));
|
|
75
75
|
const tia = __importStar(require("./tia"));
|
|
76
76
|
const compliancePortal = __importStar(require("./compliancePortal"));
|
|
77
|
+
const connector = __importStar(require("./connector"));
|
|
77
78
|
const thirdParty = __importStar(require("./thirdParty"));
|
|
78
79
|
const webhook = __importStar(require("./webhook"));
|
|
79
80
|
exports.resources = {
|
|
@@ -114,6 +115,7 @@ exports.resources = {
|
|
|
114
115
|
treatmentPlan: treatmentPlan,
|
|
115
116
|
tia: tia,
|
|
116
117
|
compliancePortal: compliancePortal,
|
|
118
|
+
connector: connector,
|
|
117
119
|
thirdParty: thirdParty,
|
|
118
120
|
webhook: webhook,
|
|
119
121
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Probo/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmHA,4DAWC;AAED,oDAQC;AAED,gDAeC;AApID,qDAAuC;AACvC,6DAA+C;AAC/C,yEAA2D;AAC3D,+CAAiC;AACjC,+CAAiC;AACjC,q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AAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,qBAAqB,YAAY,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,YAAY,GAAG,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC;IAE5E,MAAM,SAAS,GAAG,QAAQ,CAAC,YAAY,CAAoB,CAAC;IAE5D,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,sBAAsB,aAAa,kBAAkB,YAAY,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,OAAO,SAAS,CAAC,OAAO,CAAC;AAC1B,CAAC"}
|
|
@@ -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;AAmGlC,0BAAM;AAlGnB,uDAAyC;AAmG/B,oBAAG;AAlGb,6DAA+C;AAmGlC,0BAAM;AAlGnB,yEAA2D;AAmGxC,sCAAY;AAlG/B,iFAAmE;AAmG5C,8CAAgB;AAlGvC,+EAAiE;AAmG3C,4CAAe;AAlGrC,+EAAiE;AAmG3C,4CAAe;AAlGrC,6EAA+D;AAmG1C,0CAAc;AAjGtB,Q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AAE,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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
|
|
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/listLinearTeams.operation.ts"],"names":[],"mappings":";;;AAmFA,0BAgDC;AA9GD,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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,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"}
|