@atlaskit/web-config-client 0.8.0 → 0.9.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 +8 -1
- package/dist/cjs/main.js +15 -16
- package/dist/cjs/types.js +2 -0
- package/dist/es2019/types.js +2 -0
- package/dist/esm/main.js +15 -16
- package/dist/esm/types.js +2 -0
- package/dist/types/types.d.ts +2 -0
- package/dist/types-ts4.5/types.d.ts +2 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
# @atlaskit/web-config-client
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`adb4e7777d502`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/adb4e7777d502) -
|
|
8
|
+
Add new identifiers for customerAccountId and csmAccountId
|
|
9
|
+
|
|
3
10
|
## 0.8.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
6
13
|
|
|
7
|
-
- [`
|
|
14
|
+
- [`ebab8f80bfc40`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebab8f80bfc40) -
|
|
8
15
|
Autofix: add explicit package exports (barrel removal)
|
|
9
16
|
|
|
10
17
|
### Patch Changes
|
package/dist/cjs/main.js
CHANGED
|
@@ -19,12 +19,12 @@ var ConfigClient = exports.ConfigClient = /*#__PURE__*/function () {
|
|
|
19
19
|
value: function () {
|
|
20
20
|
var _fetch = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(options) {
|
|
21
21
|
var _options$fetch;
|
|
22
|
-
var fetch, response, valuesPayload;
|
|
23
|
-
return _regenerator.default.wrap(function
|
|
22
|
+
var fetch, response, valuesPayload, _t, _t2, _t3;
|
|
23
|
+
return _regenerator.default.wrap(function (_context) {
|
|
24
24
|
while (1) switch (_context.prev = _context.next) {
|
|
25
25
|
case 0:
|
|
26
26
|
fetch = (_options$fetch = options.fetch) !== null && _options$fetch !== void 0 ? _options$fetch : globalThis.fetch;
|
|
27
|
-
_context.next =
|
|
27
|
+
_context.next = 1;
|
|
28
28
|
return fetch("".concat(options.ffsBaseUrl, "/api/v2/configurations"), {
|
|
29
29
|
method: 'POST',
|
|
30
30
|
body: JSON.stringify(options.context),
|
|
@@ -33,27 +33,26 @@ var ConfigClient = exports.ConfigClient = /*#__PURE__*/function () {
|
|
|
33
33
|
'x-api-key': options.ffsApiKey
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
case
|
|
36
|
+
case 1:
|
|
37
37
|
response = _context.sent;
|
|
38
38
|
if (response.ok) {
|
|
39
|
-
_context.next =
|
|
39
|
+
_context.next = 3;
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
_context.next =
|
|
42
|
+
_t = Error;
|
|
43
|
+
_t2 = "Unexpected response ".concat(response.status, ": ");
|
|
44
|
+
_context.next = 2;
|
|
45
45
|
return response.text();
|
|
46
|
-
case
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
_context.next = 14;
|
|
46
|
+
case 2:
|
|
47
|
+
_t3 = _t2.concat.call(_t2, _context.sent);
|
|
48
|
+
throw new _t(_t3);
|
|
49
|
+
case 3:
|
|
50
|
+
_context.next = 4;
|
|
52
51
|
return response.text();
|
|
53
|
-
case
|
|
52
|
+
case 4:
|
|
54
53
|
valuesPayload = _context.sent;
|
|
55
54
|
return _context.abrupt("return", _configCommonLibs.ConfigCollection.fromValues(valuesPayload));
|
|
56
|
-
case
|
|
55
|
+
case 5:
|
|
57
56
|
case "end":
|
|
58
57
|
return _context.stop();
|
|
59
58
|
}
|
package/dist/cjs/types.js
CHANGED
|
@@ -13,6 +13,8 @@ var IdentifierEnum = exports.IdentifierEnum = {
|
|
|
13
13
|
BitbucketConnectAppId: 'bitbucketConnectAppId',
|
|
14
14
|
BitbucketRepositoryId: 'bitbucketRepositoryId',
|
|
15
15
|
BitbucketWorkspaceId: 'bitbucketWorkspaceId',
|
|
16
|
+
CSMAccountId: 'csmAccountId',
|
|
17
|
+
CustomerAccountId: 'customerAccountId',
|
|
16
18
|
GsacIssueId: 'gsacIssueId',
|
|
17
19
|
IntercomConversationId: 'intercomConversationId',
|
|
18
20
|
MarketplaceAnonymousId: 'marketplaceAnonymousId',
|
package/dist/es2019/types.js
CHANGED
|
@@ -7,6 +7,8 @@ export const IdentifierEnum = {
|
|
|
7
7
|
BitbucketConnectAppId: 'bitbucketConnectAppId',
|
|
8
8
|
BitbucketRepositoryId: 'bitbucketRepositoryId',
|
|
9
9
|
BitbucketWorkspaceId: 'bitbucketWorkspaceId',
|
|
10
|
+
CSMAccountId: 'csmAccountId',
|
|
11
|
+
CustomerAccountId: 'customerAccountId',
|
|
10
12
|
GsacIssueId: 'gsacIssueId',
|
|
11
13
|
IntercomConversationId: 'intercomConversationId',
|
|
12
14
|
MarketplaceAnonymousId: 'marketplaceAnonymousId',
|
package/dist/esm/main.js
CHANGED
|
@@ -12,12 +12,12 @@ export var ConfigClient = /*#__PURE__*/function () {
|
|
|
12
12
|
value: function () {
|
|
13
13
|
var _fetch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
|
|
14
14
|
var _options$fetch;
|
|
15
|
-
var fetch, response, valuesPayload;
|
|
16
|
-
return _regeneratorRuntime.wrap(function
|
|
15
|
+
var fetch, response, valuesPayload, _t, _t2, _t3;
|
|
16
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
17
17
|
while (1) switch (_context.prev = _context.next) {
|
|
18
18
|
case 0:
|
|
19
19
|
fetch = (_options$fetch = options.fetch) !== null && _options$fetch !== void 0 ? _options$fetch : globalThis.fetch;
|
|
20
|
-
_context.next =
|
|
20
|
+
_context.next = 1;
|
|
21
21
|
return fetch("".concat(options.ffsBaseUrl, "/api/v2/configurations"), {
|
|
22
22
|
method: 'POST',
|
|
23
23
|
body: JSON.stringify(options.context),
|
|
@@ -26,27 +26,26 @@ export var ConfigClient = /*#__PURE__*/function () {
|
|
|
26
26
|
'x-api-key': options.ffsApiKey
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
case
|
|
29
|
+
case 1:
|
|
30
30
|
response = _context.sent;
|
|
31
31
|
if (response.ok) {
|
|
32
|
-
_context.next =
|
|
32
|
+
_context.next = 3;
|
|
33
33
|
break;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_context.next =
|
|
35
|
+
_t = Error;
|
|
36
|
+
_t2 = "Unexpected response ".concat(response.status, ": ");
|
|
37
|
+
_context.next = 2;
|
|
38
38
|
return response.text();
|
|
39
|
-
case
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
_context.next = 14;
|
|
39
|
+
case 2:
|
|
40
|
+
_t3 = _t2.concat.call(_t2, _context.sent);
|
|
41
|
+
throw new _t(_t3);
|
|
42
|
+
case 3:
|
|
43
|
+
_context.next = 4;
|
|
45
44
|
return response.text();
|
|
46
|
-
case
|
|
45
|
+
case 4:
|
|
47
46
|
valuesPayload = _context.sent;
|
|
48
47
|
return _context.abrupt("return", ConfigCollection.fromValues(valuesPayload));
|
|
49
|
-
case
|
|
48
|
+
case 5:
|
|
50
49
|
case "end":
|
|
51
50
|
return _context.stop();
|
|
52
51
|
}
|
package/dist/esm/types.js
CHANGED
|
@@ -7,6 +7,8 @@ export var IdentifierEnum = {
|
|
|
7
7
|
BitbucketConnectAppId: 'bitbucketConnectAppId',
|
|
8
8
|
BitbucketRepositoryId: 'bitbucketRepositoryId',
|
|
9
9
|
BitbucketWorkspaceId: 'bitbucketWorkspaceId',
|
|
10
|
+
CSMAccountId: 'csmAccountId',
|
|
11
|
+
CustomerAccountId: 'customerAccountId',
|
|
10
12
|
GsacIssueId: 'gsacIssueId',
|
|
11
13
|
IntercomConversationId: 'intercomConversationId',
|
|
12
14
|
MarketplaceAnonymousId: 'marketplaceAnonymousId',
|
package/dist/types/types.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export declare const IdentifierEnum: {
|
|
|
7
7
|
readonly BitbucketConnectAppId: "bitbucketConnectAppId";
|
|
8
8
|
readonly BitbucketRepositoryId: "bitbucketRepositoryId";
|
|
9
9
|
readonly BitbucketWorkspaceId: "bitbucketWorkspaceId";
|
|
10
|
+
readonly CSMAccountId: "csmAccountId";
|
|
11
|
+
readonly CustomerAccountId: "customerAccountId";
|
|
10
12
|
readonly GsacIssueId: "gsacIssueId";
|
|
11
13
|
readonly IntercomConversationId: "intercomConversationId";
|
|
12
14
|
readonly MarketplaceAnonymousId: "marketplaceAnonymousId";
|
|
@@ -7,6 +7,8 @@ export declare const IdentifierEnum: {
|
|
|
7
7
|
readonly BitbucketConnectAppId: "bitbucketConnectAppId";
|
|
8
8
|
readonly BitbucketRepositoryId: "bitbucketRepositoryId";
|
|
9
9
|
readonly BitbucketWorkspaceId: "bitbucketWorkspaceId";
|
|
10
|
+
readonly CSMAccountId: "csmAccountId";
|
|
11
|
+
readonly CustomerAccountId: "customerAccountId";
|
|
10
12
|
readonly GsacIssueId: "gsacIssueId";
|
|
11
13
|
readonly IntercomConversationId: "intercomConversationId";
|
|
12
14
|
readonly MarketplaceAnonymousId: "marketplaceAnonymousId";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/web-config-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "JavaScript Frontend Web Client for Dynamic Configuration.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@af/visual-regression": "workspace:^",
|
|
44
44
|
"@atlaskit/ssr": "workspace:^",
|
|
45
45
|
"@testing-library/react": "^16.3.0",
|
|
46
|
+
"react": "^18.2.0",
|
|
46
47
|
"react-dom": "^18.2.0",
|
|
47
48
|
"wait-for-expect": "^1.2.0"
|
|
48
49
|
},
|