@atlaskit/teams-client 4.29.0 → 4.30.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 +2 -1
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/agg-client/utils/query-context-headers.js +2 -3
- package/dist/cjs/services/graphql-client/main.js +2 -3
- package/dist/cjs/services/main.js +4 -11
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/common/utils/permissions/constants.js +2 -1
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/agg-client/utils/query-context-headers.js +2 -4
- package/dist/es2019/services/graphql-client/main.js +2 -3
- package/dist/es2019/services/main.js +5 -12
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/common/utils/permissions/constants.js +2 -1
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/agg-client/utils/query-context-headers.js +2 -4
- package/dist/esm/services/graphql-client/main.js +2 -3
- package/dist/esm/services/main.js +4 -11
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/types/services/agg-client/utils/query-context-headers.d.ts +1 -1
- package/dist/types/services/graphql-client/main.d.ts +1 -1
- package/dist/types-ts4.5/services/agg-client/utils/query-context-headers.d.ts +1 -1
- package/dist/types-ts4.5/services/graphql-client/main.d.ts +1 -1
- package/package.json +1 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/teams-client
|
|
2
2
|
|
|
3
|
+
## 4.30.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8043a09b33198`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8043a09b33198) -
|
|
8
|
+
[ux] Enable editing team types for external teams
|
|
9
|
+
|
|
10
|
+
## 4.29.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`8dadb76e44cfb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8dadb76e44cfb) -
|
|
15
|
+
Clean up enable_x_query_context_header
|
|
16
|
+
|
|
3
17
|
## 4.29.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -112,7 +112,8 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
112
112
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
113
113
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
114
114
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
115
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
115
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin,
|
|
116
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
116
117
|
});
|
|
117
118
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
118
119
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -52,7 +52,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
52
52
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
53
53
|
metadata: {
|
|
54
54
|
error: (0, _utils.createErrorMetadata)(error),
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "0.0.0-development",
|
|
56
56
|
packageName: "@atlaskit/teams-client"
|
|
57
57
|
}
|
|
58
58
|
}]);
|
|
@@ -60,7 +60,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
60
60
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
61
61
|
metadata: {
|
|
62
62
|
error: 'unknown error',
|
|
63
|
-
packageVersion: "
|
|
63
|
+
packageVersion: "0.0.0-development",
|
|
64
64
|
packageName: "@atlaskit/teams-client"
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
@@ -4,13 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createQueryContextHeaders = createQueryContextHeaders;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
/**
|
|
9
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
8
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
10
9
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
11
10
|
*/
|
|
12
11
|
function createQueryContextHeaders(cloudId) {
|
|
13
|
-
if (!cloudId
|
|
12
|
+
if (!cloudId) {
|
|
14
13
|
return undefined;
|
|
15
14
|
}
|
|
16
15
|
return {
|
|
@@ -13,7 +13,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _error = require("../../common/utils/error");
|
|
18
17
|
var _baseClient = require("../base-client");
|
|
19
18
|
var _utils = require("./utils");
|
|
@@ -37,12 +36,12 @@ var BaseGraphQlClient = exports.BaseGraphQlClient = /*#__PURE__*/function (_Base
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
/**
|
|
40
|
-
* Creates query context headers if cloudId is available
|
|
39
|
+
* Creates query context headers if cloudId is available.
|
|
41
40
|
*/
|
|
42
41
|
}, {
|
|
43
42
|
key: "createQueryContextHeaders",
|
|
44
43
|
value: function createQueryContextHeaders(cloudId) {
|
|
45
|
-
if (!cloudId
|
|
44
|
+
if (!cloudId) {
|
|
46
45
|
return undefined;
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
@@ -10,7 +10,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _constants = require("../common/utils/ufo/constants");
|
|
15
14
|
var _aggClient = require("./agg-client");
|
|
16
15
|
var _collaborationgraphClient = _interopRequireDefault(require("./collaborationgraph-client"));
|
|
@@ -161,16 +160,10 @@ var TeamsClient = exports.TeamsClient = /*#__PURE__*/function () {
|
|
|
161
160
|
while (1) switch (_context3.prev = _context3.next) {
|
|
162
161
|
case 0:
|
|
163
162
|
if (cloudId) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}));
|
|
169
|
-
} else {
|
|
170
|
-
this.setContext({
|
|
171
|
-
cloudId: cloudId
|
|
172
|
-
});
|
|
173
|
-
}
|
|
163
|
+
previousContext = this._legionClient.getContext();
|
|
164
|
+
this.setContext(_objectSpread(_objectSpread({}, previousContext), {}, {
|
|
165
|
+
cloudId: cloudId
|
|
166
|
+
}));
|
|
174
167
|
}
|
|
175
168
|
return _context3.abrupt("return", this.measurePerformance('querySettings', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
176
169
|
var response;
|
|
@@ -36,7 +36,7 @@ function getSentryConfig(options) {
|
|
|
36
36
|
return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
|
|
37
37
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
38
38
|
// when building to deploy to production
|
|
39
|
-
release: "".concat("@atlaskit/teams-client", "@").concat("
|
|
39
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("0.0.0-development") ||
|
|
40
40
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
41
41
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
42
42
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -101,7 +101,8 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
|
|
|
101
101
|
...SCIMSyncTeamPermissions(isMember, isOrgAdmin, source),
|
|
102
102
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
103
103
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
104
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
104
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin,
|
|
105
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
105
106
|
};
|
|
106
107
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
107
108
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
27
27
|
return super.failure({
|
|
28
28
|
metadata: {
|
|
29
29
|
error: createErrorMetadata(error),
|
|
30
|
-
packageVersion: "
|
|
30
|
+
packageVersion: "0.0.0-development",
|
|
31
31
|
packageName: "@atlaskit/teams-client"
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -35,7 +35,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
35
35
|
return super.failure({
|
|
36
36
|
metadata: {
|
|
37
37
|
error: 'unknown error',
|
|
38
|
-
packageVersion: "
|
|
38
|
+
packageVersion: "0.0.0-development",
|
|
39
39
|
packageName: "@atlaskit/teams-client"
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
2
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
5
3
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
6
4
|
*/
|
|
7
5
|
export function createQueryContextHeaders(cloudId) {
|
|
8
|
-
if (!cloudId
|
|
6
|
+
if (!cloudId) {
|
|
9
7
|
return undefined;
|
|
10
8
|
}
|
|
11
9
|
return {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { DefaultError, GraphQLError } from '../../common/utils/error';
|
|
3
2
|
import { BaseClient } from '../base-client';
|
|
4
3
|
import { handleGraphQLRequest } from './utils';
|
|
@@ -12,10 +11,10 @@ export class BaseGraphQlClient extends BaseClient {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
|
-
* Creates query context headers if cloudId is available
|
|
14
|
+
* Creates query context headers if cloudId is available.
|
|
16
15
|
*/
|
|
17
16
|
createQueryContextHeaders(cloudId) {
|
|
18
|
-
if (!cloudId
|
|
17
|
+
if (!cloudId) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
20
|
return {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { TEAMS_CLIENT_EXPERIENCES } from '../common/utils/ufo/constants';
|
|
4
3
|
import { aggClient } from './agg-client';
|
|
5
4
|
import collaborationGraphClient from './collaborationgraph-client';
|
|
@@ -110,17 +109,11 @@ export class TeamsClient {
|
|
|
110
109
|
*/
|
|
111
110
|
async querySettings(cloudId, product) {
|
|
112
111
|
if (cloudId) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
} else {
|
|
120
|
-
this.setContext({
|
|
121
|
-
cloudId
|
|
122
|
-
});
|
|
123
|
-
}
|
|
112
|
+
const previousContext = this._legionClient.getContext();
|
|
113
|
+
this.setContext({
|
|
114
|
+
...previousContext,
|
|
115
|
+
cloudId
|
|
116
|
+
});
|
|
124
117
|
}
|
|
125
118
|
return this.measurePerformance('querySettings', async () => {
|
|
126
119
|
if (!product) {
|
|
@@ -28,7 +28,7 @@ export function getSentryConfig(options) {
|
|
|
28
28
|
...DEFAULT_SENTRY_CONFIG,
|
|
29
29
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
30
30
|
// when building to deploy to production
|
|
31
|
-
release: `${"@atlaskit/teams-client"}@${"
|
|
31
|
+
release: `${"@atlaskit/teams-client"}@${"0.0.0-development"}` ||
|
|
32
32
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
33
33
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
34
34
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -105,7 +105,8 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
105
105
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
106
106
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
107
107
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
108
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
108
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin,
|
|
109
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
109
110
|
});
|
|
110
111
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
111
112
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -45,7 +45,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
|
|
|
45
45
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
46
46
|
metadata: {
|
|
47
47
|
error: createErrorMetadata(error),
|
|
48
|
-
packageVersion: "
|
|
48
|
+
packageVersion: "0.0.0-development",
|
|
49
49
|
packageName: "@atlaskit/teams-client"
|
|
50
50
|
}
|
|
51
51
|
}]);
|
|
@@ -53,7 +53,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
|
|
|
53
53
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
54
54
|
metadata: {
|
|
55
55
|
error: 'unknown error',
|
|
56
|
-
packageVersion: "
|
|
56
|
+
packageVersion: "0.0.0-development",
|
|
57
57
|
packageName: "@atlaskit/teams-client"
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
2
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
5
3
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
6
4
|
*/
|
|
7
5
|
export function createQueryContextHeaders(cloudId) {
|
|
8
|
-
if (!cloudId
|
|
6
|
+
if (!cloudId) {
|
|
9
7
|
return undefined;
|
|
10
8
|
}
|
|
11
9
|
return {
|
|
@@ -10,7 +10,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { DefaultError, GraphQLError } from '../../common/utils/error';
|
|
15
14
|
import { BaseClient } from '../base-client';
|
|
16
15
|
import { handleGraphQLRequest } from './utils';
|
|
@@ -30,12 +29,12 @@ export var BaseGraphQlClient = /*#__PURE__*/function (_BaseClient) {
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
|
-
* Creates query context headers if cloudId is available
|
|
32
|
+
* Creates query context headers if cloudId is available.
|
|
34
33
|
*/
|
|
35
34
|
}, {
|
|
36
35
|
key: "createQueryContextHeaders",
|
|
37
36
|
value: function createQueryContextHeaders(cloudId) {
|
|
38
|
-
if (!cloudId
|
|
37
|
+
if (!cloudId) {
|
|
39
38
|
return undefined;
|
|
40
39
|
}
|
|
41
40
|
return {
|
|
@@ -5,7 +5,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { TEAMS_CLIENT_EXPERIENCES } from '../common/utils/ufo/constants';
|
|
10
9
|
import { aggClient } from './agg-client';
|
|
11
10
|
import collaborationGraphClient from './collaborationgraph-client';
|
|
@@ -156,16 +155,10 @@ export var TeamsClient = /*#__PURE__*/function () {
|
|
|
156
155
|
while (1) switch (_context3.prev = _context3.next) {
|
|
157
156
|
case 0:
|
|
158
157
|
if (cloudId) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}));
|
|
164
|
-
} else {
|
|
165
|
-
this.setContext({
|
|
166
|
-
cloudId: cloudId
|
|
167
|
-
});
|
|
168
|
-
}
|
|
158
|
+
previousContext = this._legionClient.getContext();
|
|
159
|
+
this.setContext(_objectSpread(_objectSpread({}, previousContext), {}, {
|
|
160
|
+
cloudId: cloudId
|
|
161
|
+
}));
|
|
169
162
|
}
|
|
170
163
|
return _context3.abrupt("return", this.measurePerformance('querySettings', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
171
164
|
var response;
|
|
@@ -29,7 +29,7 @@ export function getSentryConfig(options) {
|
|
|
29
29
|
return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
|
|
30
30
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
31
31
|
// when building to deploy to production
|
|
32
|
-
release: "".concat("@atlaskit/teams-client", "@").concat("
|
|
32
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("0.0.0-development") ||
|
|
33
33
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
34
34
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
35
35
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
2
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
3
3
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createQueryContextHeaders(cloudId?: string): Record<string, string> | undefined;
|
|
@@ -5,7 +5,7 @@ export declare class BaseGraphQlClient extends BaseClient {
|
|
|
5
5
|
constructor(serviceUrl: string, config: ClientConfig);
|
|
6
6
|
setServiceUrl(serviceUrl: string): void;
|
|
7
7
|
/**
|
|
8
|
-
* Creates query context headers if cloudId is available
|
|
8
|
+
* Creates query context headers if cloudId is available.
|
|
9
9
|
*/
|
|
10
10
|
private createQueryContextHeaders;
|
|
11
11
|
makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Creates headers object with X-Query-Context header if cloudId is provided
|
|
2
|
+
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
3
3
|
* Use this for AGG client makeGraphQLRequest calls.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createQueryContextHeaders(cloudId?: string): Record<string, string> | undefined;
|
|
@@ -5,7 +5,7 @@ export declare class BaseGraphQlClient extends BaseClient {
|
|
|
5
5
|
constructor(serviceUrl: string, config: ClientConfig);
|
|
6
6
|
setServiceUrl(serviceUrl: string): void;
|
|
7
7
|
/**
|
|
8
|
-
* Creates query context headers if cloudId is available
|
|
8
|
+
* Creates query context headers if cloudId is available.
|
|
9
9
|
*/
|
|
10
10
|
private createQueryContextHeaders;
|
|
11
11
|
makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.30.0",
|
|
4
4
|
"description": "A client to retrieve team related data",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -95,14 +95,8 @@
|
|
|
95
95
|
"enable_edit_team_name_external_type_teams": {
|
|
96
96
|
"type": "boolean"
|
|
97
97
|
},
|
|
98
|
-
"fix_query_settings_context": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
},
|
|
101
98
|
"legion-enable-archive-teams": {
|
|
102
99
|
"type": "boolean"
|
|
103
|
-
},
|
|
104
|
-
"enable_x_query_context_header": {
|
|
105
|
-
"type": "boolean"
|
|
106
100
|
}
|
|
107
101
|
}
|
|
108
102
|
}
|