@atlaskit/teams-client 4.27.0 → 4.29.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/CHANGELOG.md +14 -0
- package/dist/cjs/common/utils/permissions/constants.js +5 -4
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/agg-client/index.js +219 -0
- package/dist/cjs/services/agg-client/utils/mutations/unlink-container-mutation.js +12 -0
- package/dist/cjs/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js +12 -0
- package/dist/cjs/services/agg-client/utils/queries/team-connected-to-container-query.js +12 -0
- package/dist/cjs/services/agg-client/utils/queries/team-containers-query.js +12 -0
- package/dist/cjs/services/legion-client/index.js +3 -1
- package/dist/cjs/services/main.js +782 -631
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/common/utils/permissions/constants.js +5 -4
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/agg-client/index.js +141 -0
- package/dist/es2019/services/agg-client/utils/mutations/unlink-container-mutation.js +20 -0
- package/dist/es2019/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js +14 -0
- package/dist/es2019/services/agg-client/utils/queries/team-connected-to-container-query.js +55 -0
- package/dist/es2019/services/agg-client/utils/queries/team-containers-query.js +53 -0
- package/dist/es2019/services/legion-client/index.js +3 -1
- package/dist/es2019/services/main.js +55 -0
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/common/utils/permissions/constants.js +5 -4
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/agg-client/index.js +221 -0
- package/dist/esm/services/agg-client/utils/mutations/unlink-container-mutation.js +5 -0
- package/dist/esm/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js +5 -0
- package/dist/esm/services/agg-client/utils/queries/team-connected-to-container-query.js +5 -0
- package/dist/esm/services/agg-client/utils/queries/team-containers-query.js +5 -0
- package/dist/esm/services/legion-client/index.js +3 -1
- package/dist/esm/services/main.js +782 -631
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/types/common/utils/permissions/constants.d.ts +1 -0
- package/dist/types/services/agg-client/index.d.ts +23 -1
- package/dist/types/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +18 -0
- package/dist/types/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +11 -0
- package/dist/types/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +47 -0
- package/dist/types/services/agg-client/utils/queries/team-containers-query.d.ts +52 -0
- package/dist/types/services/legion-client/index.d.ts +2 -0
- package/dist/types/services/main.d.ts +39 -2
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +1 -0
- package/dist/types-ts4.5/services/agg-client/index.d.ts +23 -1
- package/dist/types-ts4.5/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +18 -0
- package/dist/types-ts4.5/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +11 -0
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +47 -0
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +52 -0
- package/dist/types-ts4.5/services/legion-client/index.d.ts +2 -0
- package/dist/types-ts4.5/services/main.d.ts +39 -2
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -14,10 +14,17 @@ import { toTeamARI, toUserId } from '../../common/utils/ari';
|
|
|
14
14
|
import { DEFAULT_CONFIG } from '../constants';
|
|
15
15
|
import { BaseGraphQlClient } from '../graphql-client';
|
|
16
16
|
import { logException } from '../sentry/main';
|
|
17
|
+
import { UnlinkContainerMutation } from './utils/mutations/unlink-container-mutation';
|
|
18
|
+
import { NumberOfTeamConnectedToContainerQuery } from './utils/queries/number-of-team-connected-to-container-query';
|
|
19
|
+
import { TeamConnectedToContainerQuery } from './utils/queries/team-connected-to-container-query';
|
|
20
|
+
import { TeamContainersQueryV2 } from './utils/queries/team-containers-query';
|
|
17
21
|
import { TeamHasAgentsQuery } from './utils/queries/team-has-agents-query';
|
|
18
22
|
import TeamMembershipsQuery from './utils/queries/team-membership-query';
|
|
19
23
|
import { TeamsUserQuery } from './utils/queries/user-query';
|
|
20
24
|
import { toUserType } from './utils/user-type';
|
|
25
|
+
|
|
26
|
+
// Local type definition to avoid circular dependency with teams-public
|
|
27
|
+
|
|
21
28
|
export var AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
|
|
22
29
|
function AGGClient(baseUrl, config) {
|
|
23
30
|
_classCallCheck(this, AGGClient);
|
|
@@ -174,6 +181,220 @@ export var AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
|
|
|
174
181
|
};
|
|
175
182
|
});
|
|
176
183
|
}
|
|
184
|
+
}, {
|
|
185
|
+
key: "getTeamContainers",
|
|
186
|
+
value: function () {
|
|
187
|
+
var _getTeamContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(teamId) {
|
|
188
|
+
var teamAri, cypherQuery, response;
|
|
189
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
190
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
191
|
+
case 0:
|
|
192
|
+
teamAri = toTeamARI(teamId);
|
|
193
|
+
cypherQuery = "MATCH (team:IdentityTeam {ari: '".concat(teamAri, "'})-[:team_connected_to_container]->(container) RETURN container");
|
|
194
|
+
_context4.next = 4;
|
|
195
|
+
return this.makeGraphQLRequest({
|
|
196
|
+
query: TeamContainersQueryV2,
|
|
197
|
+
variables: {
|
|
198
|
+
cypherQuery: cypherQuery,
|
|
199
|
+
params: {
|
|
200
|
+
id: teamAri
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
operationName: 'TeamContainersQueryV2'
|
|
205
|
+
});
|
|
206
|
+
case 4:
|
|
207
|
+
response = _context4.sent;
|
|
208
|
+
return _context4.abrupt("return", this.processV2Response(response));
|
|
209
|
+
case 6:
|
|
210
|
+
case "end":
|
|
211
|
+
return _context4.stop();
|
|
212
|
+
}
|
|
213
|
+
}, _callee4, this);
|
|
214
|
+
}));
|
|
215
|
+
function getTeamContainers(_x4) {
|
|
216
|
+
return _getTeamContainers.apply(this, arguments);
|
|
217
|
+
}
|
|
218
|
+
return getTeamContainers;
|
|
219
|
+
}()
|
|
220
|
+
}, {
|
|
221
|
+
key: "processV2Response",
|
|
222
|
+
value: function processV2Response(response) {
|
|
223
|
+
var containersResult = response.graphStore.cypherQueryV2.edges.reduce(function (containers, edge) {
|
|
224
|
+
edge.node.columns.forEach(function (column) {
|
|
225
|
+
var _column$value;
|
|
226
|
+
var containerData = (_column$value = column.value) === null || _column$value === void 0 ? void 0 : _column$value.data;
|
|
227
|
+
if (!containerData) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if ((containerData === null || containerData === void 0 ? void 0 : containerData.__typename) === 'ConfluenceSpace') {
|
|
231
|
+
containers.push({
|
|
232
|
+
id: containerData.id,
|
|
233
|
+
type: containerData.__typename,
|
|
234
|
+
name: containerData.confluenceSpaceName || '',
|
|
235
|
+
icon: "".concat(containerData.links.base).concat(containerData.icon.path),
|
|
236
|
+
createdDate: new Date(containerData.createdDate),
|
|
237
|
+
link: "".concat(containerData.links.base).concat(containerData.links.webUi),
|
|
238
|
+
containerTypeProperties: {
|
|
239
|
+
subType: undefined,
|
|
240
|
+
name: undefined
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
} else if ((containerData === null || containerData === void 0 ? void 0 : containerData.__typename) === 'JiraProject') {
|
|
244
|
+
containers.push({
|
|
245
|
+
id: containerData.id,
|
|
246
|
+
type: containerData.__typename,
|
|
247
|
+
name: containerData.jiraProjectName,
|
|
248
|
+
icon: containerData.avatar.medium,
|
|
249
|
+
createdDate: new Date(containerData.created),
|
|
250
|
+
link: containerData.webUrl,
|
|
251
|
+
containerTypeProperties: {
|
|
252
|
+
subType: containerData.projectType || '',
|
|
253
|
+
name: containerData.projectTypeName || ''
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
} else if ((containerData === null || containerData === void 0 ? void 0 : containerData.__typename) === 'LoomSpace') {
|
|
257
|
+
containers.push({
|
|
258
|
+
id: containerData.id,
|
|
259
|
+
type: containerData.__typename,
|
|
260
|
+
name: containerData.loomSpaceName,
|
|
261
|
+
icon: '',
|
|
262
|
+
link: containerData.url
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
return containers;
|
|
267
|
+
}, []);
|
|
268
|
+
return containersResult;
|
|
269
|
+
}
|
|
270
|
+
}, {
|
|
271
|
+
key: "unlinkTeamContainer",
|
|
272
|
+
value: function () {
|
|
273
|
+
var _unlinkTeamContainer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(teamId, containerId) {
|
|
274
|
+
var teamAri, response;
|
|
275
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
276
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
277
|
+
case 0:
|
|
278
|
+
teamAri = toTeamARI(teamId);
|
|
279
|
+
_context5.next = 3;
|
|
280
|
+
return this.makeGraphQLRequest({
|
|
281
|
+
query: UnlinkContainerMutation,
|
|
282
|
+
variables: {
|
|
283
|
+
containerId: containerId,
|
|
284
|
+
teamId: teamAri
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
operationName: 'UnlinkContainerMutation'
|
|
288
|
+
});
|
|
289
|
+
case 3:
|
|
290
|
+
response = _context5.sent;
|
|
291
|
+
return _context5.abrupt("return", response.graphStore);
|
|
292
|
+
case 5:
|
|
293
|
+
case "end":
|
|
294
|
+
return _context5.stop();
|
|
295
|
+
}
|
|
296
|
+
}, _callee5, this);
|
|
297
|
+
}));
|
|
298
|
+
function unlinkTeamContainer(_x5, _x6) {
|
|
299
|
+
return _unlinkTeamContainer.apply(this, arguments);
|
|
300
|
+
}
|
|
301
|
+
return unlinkTeamContainer;
|
|
302
|
+
}()
|
|
303
|
+
}, {
|
|
304
|
+
key: "queryNumberOfTeamConnectedToContainer",
|
|
305
|
+
value: function () {
|
|
306
|
+
var _queryNumberOfTeamConnectedToContainer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(containerId) {
|
|
307
|
+
var _response$graphStore;
|
|
308
|
+
var response;
|
|
309
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
310
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
311
|
+
case 0:
|
|
312
|
+
_context6.next = 2;
|
|
313
|
+
return this.makeGraphQLRequest({
|
|
314
|
+
query: NumberOfTeamConnectedToContainerQuery,
|
|
315
|
+
variables: {
|
|
316
|
+
containerId: containerId
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
operationName: 'NumberOfTeamConnectedToContainerQuery'
|
|
320
|
+
});
|
|
321
|
+
case 2:
|
|
322
|
+
response = _context6.sent;
|
|
323
|
+
return _context6.abrupt("return", response === null || response === void 0 || (_response$graphStore = response.graphStore) === null || _response$graphStore === void 0 || (_response$graphStore = _response$graphStore.teamConnectedToContainerInverse) === null || _response$graphStore === void 0 || (_response$graphStore = _response$graphStore.edges) === null || _response$graphStore === void 0 ? void 0 : _response$graphStore.length);
|
|
324
|
+
case 4:
|
|
325
|
+
case "end":
|
|
326
|
+
return _context6.stop();
|
|
327
|
+
}
|
|
328
|
+
}, _callee6, this);
|
|
329
|
+
}));
|
|
330
|
+
function queryNumberOfTeamConnectedToContainer(_x7) {
|
|
331
|
+
return _queryNumberOfTeamConnectedToContainer.apply(this, arguments);
|
|
332
|
+
}
|
|
333
|
+
return queryNumberOfTeamConnectedToContainer;
|
|
334
|
+
}()
|
|
335
|
+
}, {
|
|
336
|
+
key: "queryTeamsConnectedToContainer",
|
|
337
|
+
value: function () {
|
|
338
|
+
var _queryTeamsConnectedToContainer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(containerId) {
|
|
339
|
+
var _response$graphStore2;
|
|
340
|
+
var response;
|
|
341
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
342
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
343
|
+
case 0:
|
|
344
|
+
_context7.next = 2;
|
|
345
|
+
return this.makeGraphQLRequest({
|
|
346
|
+
query: TeamConnectedToContainerQuery,
|
|
347
|
+
variables: {
|
|
348
|
+
containerId: containerId
|
|
349
|
+
}
|
|
350
|
+
}, {
|
|
351
|
+
operationName: 'TeamConnectedToContainerQuery'
|
|
352
|
+
});
|
|
353
|
+
case 2:
|
|
354
|
+
response = _context7.sent;
|
|
355
|
+
return _context7.abrupt("return", response === null || response === void 0 || (_response$graphStore2 = response.graphStore) === null || _response$graphStore2 === void 0 || (_response$graphStore2 = _response$graphStore2.teamConnectedToContainerInverse) === null || _response$graphStore2 === void 0 || (_response$graphStore2 = _response$graphStore2.edges) === null || _response$graphStore2 === void 0 ? void 0 : _response$graphStore2.map(function (_ref3) {
|
|
356
|
+
var _node$creator, _node$members$nodes$m, _node$members, _node$members$nodes$l, _node$members2;
|
|
357
|
+
var node = _ref3.node;
|
|
358
|
+
return {
|
|
359
|
+
id: node.id,
|
|
360
|
+
displayName: node.displayName,
|
|
361
|
+
description: node.description,
|
|
362
|
+
state: node.state,
|
|
363
|
+
membershipSettings: node.membershipSettings,
|
|
364
|
+
organizationId: node.organizationId,
|
|
365
|
+
creatorId: (_node$creator = node.creator) === null || _node$creator === void 0 ? void 0 : _node$creator.id,
|
|
366
|
+
isVerified: node.isVerified,
|
|
367
|
+
members: (_node$members$nodes$m = (_node$members = node.members) === null || _node$members === void 0 ? void 0 : _node$members.nodes.map(function (_ref4) {
|
|
368
|
+
var _member$name;
|
|
369
|
+
var member = _ref4.member;
|
|
370
|
+
return {
|
|
371
|
+
id: member !== null && member !== void 0 && member.id ? toUserId(member === null || member === void 0 ? void 0 : member.id) : '',
|
|
372
|
+
fullName: (_member$name = member === null || member === void 0 ? void 0 : member.name) !== null && _member$name !== void 0 ? _member$name : '',
|
|
373
|
+
avatarUrl: member === null || member === void 0 ? void 0 : member.picture,
|
|
374
|
+
status: member === null || member === void 0 ? void 0 : member.accountStatus
|
|
375
|
+
};
|
|
376
|
+
})) !== null && _node$members$nodes$m !== void 0 ? _node$members$nodes$m : [],
|
|
377
|
+
includesYou: false,
|
|
378
|
+
// to-do - this needs to be computed - https://product-fabric.atlassian.net/browse/CCECO-4368
|
|
379
|
+
memberCount: (_node$members$nodes$l = (_node$members2 = node.members) === null || _node$members2 === void 0 ? void 0 : _node$members2.nodes.length) !== null && _node$members$nodes$l !== void 0 ? _node$members$nodes$l : 0,
|
|
380
|
+
largeAvatarImageUrl: node.largeAvatarImageUrl,
|
|
381
|
+
smallAvatarImageUrl: node.smallAvatarImageUrl,
|
|
382
|
+
largeHeaderImageUrl: node.largeHeaderImageUrl,
|
|
383
|
+
smallHeaderImageUrl: node.smallHeaderImageUrl,
|
|
384
|
+
restriction: 'ORG_MEMBERS' // deprecated field, kept for backwards compatibility
|
|
385
|
+
};
|
|
386
|
+
}));
|
|
387
|
+
case 4:
|
|
388
|
+
case "end":
|
|
389
|
+
return _context7.stop();
|
|
390
|
+
}
|
|
391
|
+
}, _callee7, this);
|
|
392
|
+
}));
|
|
393
|
+
function queryTeamsConnectedToContainer(_x8) {
|
|
394
|
+
return _queryTeamsConnectedToContainer.apply(this, arguments);
|
|
395
|
+
}
|
|
396
|
+
return queryTeamsConnectedToContainer;
|
|
397
|
+
}()
|
|
177
398
|
}]);
|
|
178
399
|
}(BaseGraphQlClient);
|
|
179
400
|
export var aggClient = new AGGClient(DEFAULT_CONFIG.stargateRoot, {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { print } from 'graphql';
|
|
4
|
+
import gql from 'graphql-tag';
|
|
5
|
+
export var UnlinkContainerMutation = print(gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tmutation unlinkTeamToContainerMutation($teamId: ID!, $containerId: ID!) {\n\t\tgraphStore @optIn(to: [\"GraphStoreMutation\"]) {\n\t\t\tdeleteTeamConnectedToContainer(\n\t\t\t\tinput: { relationships: [{ from: $teamId, to: $containerId }] }\n\t\t\t) @optIn(to: [\"GraphStoreTeamConnectedToContainer\"]) {\n\t\t\t\terrors {\n\t\t\t\t\tmessage\n\t\t\t\t\textensions {\n\t\t\t\t\t\tstatusCode\n\t\t\t\t\t\terrorType\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsuccess\n\t\t\t}\n\t\t}\n\t}\n"]))));
|
package/dist/esm/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { print } from 'graphql';
|
|
4
|
+
import gql from 'graphql-tag';
|
|
5
|
+
export var NumberOfTeamConnectedToContainerQuery = print(gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tquery getNumberOfTeamsForContainer($containerId: ID!) {\n\t\tgraphStore @optIn(to: \"GraphStore\") {\n\t\t\tteamConnectedToContainerInverse(id: $containerId, consistentRead: true)\n\t\t\t\t@optIn(to: \"GraphStoreTeamConnectedToContainer\") {\n\t\t\t\tedges {\n\t\t\t\t\tid\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { print } from 'graphql';
|
|
4
|
+
import gql from 'graphql-tag';
|
|
5
|
+
export var TeamConnectedToContainerQuery = print(gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tquery getTeamsForContainer($containerId: ID!) {\n\t\tgraphStore @optIn(to: \"GraphStore\") {\n\t\t\tteamConnectedToContainerInverse(id: $containerId, consistentRead: true)\n\t\t\t\t@optIn(to: \"GraphStoreTeamConnectedToContainer\") {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\t... on TeamV2 {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tdescription\n\t\t\t\t\t\t\tdisplayName\n\t\t\t\t\t\t\tcreator {\n\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsmallAvatarImageUrl\n\t\t\t\t\t\t\tsmallHeaderImageUrl\n\t\t\t\t\t\t\tlargeAvatarImageUrl\n\t\t\t\t\t\t\tlargeHeaderImageUrl\n\t\t\t\t\t\t\tmembers {\n\t\t\t\t\t\t\t\tnodes {\n\t\t\t\t\t\t\t\t\tmember {\n\t\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\t\tname\n\t\t\t\t\t\t\t\t\t\tpicture\n\t\t\t\t\t\t\t\t\t\taccountStatus\n\t\t\t\t\t\t\t\t\t\t... on AtlassianAccountUser {\n\t\t\t\t\t\t\t\t\t\t\textendedProfile {\n\t\t\t\t\t\t\t\t\t\t\t\tjobTitle\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t... on AppUser {\n\t\t\t\t\t\t\t\t\t\t\tappType\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\trole\n\t\t\t\t\t\t\t\t\tstate\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpageInfo {\n\t\t\t\t\t\t\t\t\tendCursor\n\t\t\t\t\t\t\t\t\thasNextPage\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\torganizationId\n\t\t\t\t\t\t\tmembershipSettings\n\t\t\t\t\t\t\tisVerified\n\t\t\t\t\t\t\tstate\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { print } from 'graphql';
|
|
4
|
+
import gql from 'graphql-tag';
|
|
5
|
+
export var TeamContainersQueryV2 = print(gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tquery TeamContainersQueryV2($cypherQuery: String!, $params: JSON!) {\n\t\tgraphStore @optIn(to: [\"GraphStore\", \"GraphStoreCypherQueryV2\"]) {\n\t\t\tcypherQueryV2(query: $cypherQuery, params: $params) {\n\t\t\t\tedges {\n\t\t\t\t\tnode {\n\t\t\t\t\t\tcolumns {\n\t\t\t\t\t\t\tkey\n\t\t\t\t\t\t\tvalue {\n\t\t\t\t\t\t\t\t... on GraphStoreCypherQueryV2AriNode {\n\t\t\t\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t\t\t\t__typename\n\t\t\t\t\t\t\t\t\t\t... on ConfluenceSpace {\n\t\t\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\t\t\tconfluenceSpaceName: name\n\t\t\t\t\t\t\t\t\t\t\ttype\n\t\t\t\t\t\t\t\t\t\t\tcreatedDate\n\t\t\t\t\t\t\t\t\t\t\tlinks {\n\t\t\t\t\t\t\t\t\t\t\t\tbase\n\t\t\t\t\t\t\t\t\t\t\t\twebUi\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ticon {\n\t\t\t\t\t\t\t\t\t\t\t\tpath\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t... on JiraProject {\n\t\t\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\t\t\tjiraProjectName: name\n\t\t\t\t\t\t\t\t\t\t\twebUrl\n\t\t\t\t\t\t\t\t\t\t\tcreated\n\t\t\t\t\t\t\t\t\t\t\tavatar {\n\t\t\t\t\t\t\t\t\t\t\t\tmedium\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tprojectType\n\t\t\t\t\t\t\t\t\t\t\tprojectTypeName\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t... on LoomSpace {\n\t\t\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\t\t\tloomSpaceName: name\n\t\t\t\t\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
|
|
@@ -26,6 +26,7 @@ import { RestClient } from '../rest-client';
|
|
|
26
26
|
* @property {string[]} memberAccountIds - List of member account IDs to filter teams
|
|
27
27
|
* @property {boolean} useDefaultSort - Whether to use the default sort order
|
|
28
28
|
* @property {boolean} showEmptyTeams - Whether to return empty teams in the search
|
|
29
|
+
* @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
|
|
29
30
|
*/
|
|
30
31
|
|
|
31
32
|
/**
|
|
@@ -124,7 +125,8 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
|
|
|
124
125
|
membership: {
|
|
125
126
|
memberAccountIds: allTeamsQuery.memberAccountIds
|
|
126
127
|
},
|
|
127
|
-
showEmptyTeams: allTeamsQuery.showEmptyTeams
|
|
128
|
+
showEmptyTeams: allTeamsQuery.showEmptyTeams,
|
|
129
|
+
teamTypeIdsFilter: allTeamsQuery.teamTypeIdsFilter
|
|
128
130
|
});
|
|
129
131
|
case 5:
|
|
130
132
|
_yield$this$postResou = _context2.sent;
|