@api-client/core 0.9.8 → 0.9.10
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/build/src/runtime/store/AuthSdk.js +3 -3
- package/build/src/runtime/store/AuthSdk.js.map +1 -1
- package/build/src/runtime/store/BackendSdk.js +1 -1
- package/build/src/runtime/store/BackendSdk.js.map +1 -1
- package/build/src/runtime/store/CertificatesSdk.d.ts +7 -0
- package/build/src/runtime/store/CertificatesSdk.js +18 -7
- package/build/src/runtime/store/CertificatesSdk.js.map +1 -1
- package/build/src/runtime/store/FilesSdk.d.ts +2 -1
- package/build/src/runtime/store/FilesSdk.js +13 -11
- package/build/src/runtime/store/FilesSdk.js.map +1 -1
- package/build/src/runtime/store/HistorySdk.d.ts +7 -0
- package/build/src/runtime/store/HistorySdk.js +20 -9
- package/build/src/runtime/store/HistorySdk.js.map +1 -1
- package/build/src/runtime/store/RevisionsSdk.js +1 -1
- package/build/src/runtime/store/RevisionsSdk.js.map +1 -1
- package/build/src/runtime/store/SdkBase.d.ts +1 -1
- package/build/src/runtime/store/SdkBase.js +5 -4
- package/build/src/runtime/store/SdkBase.js.map +1 -1
- package/build/src/runtime/store/SharedSdk.js +1 -1
- package/build/src/runtime/store/SharedSdk.js.map +1 -1
- package/build/src/runtime/store/SpacesSdk.js +4 -4
- package/build/src/runtime/store/SpacesSdk.js.map +1 -1
- package/build/src/runtime/store/TrashSdk.js +5 -5
- package/build/src/runtime/store/TrashSdk.js.map +1 -1
- package/build/src/runtime/store/UsersSdk.js +3 -3
- package/build/src/runtime/store/UsersSdk.js.map +1 -1
- package/package.json +2 -2
- package/src/runtime/store/AuthSdk.ts +3 -3
- package/src/runtime/store/BackendSdk.ts +1 -1
- package/src/runtime/store/CertificatesSdk.ts +20 -7
- package/src/runtime/store/FilesSdk.ts +13 -11
- package/src/runtime/store/HistorySdk.ts +22 -9
- package/src/runtime/store/RevisionsSdk.ts +1 -1
- package/src/runtime/store/SdkBase.ts +5 -4
- package/src/runtime/store/SharedSdk.ts +1 -1
- package/src/runtime/store/SpacesSdk.ts +4 -4
- package/src/runtime/store/TrashSdk.ts +5 -5
- package/src/runtime/store/UsersSdk.ts +3 -3
|
@@ -14,7 +14,7 @@ export class SpacesSdk extends SdkBase {
|
|
|
14
14
|
const url = this.sdk.getUrl(RouteBuilder.spaces());
|
|
15
15
|
this.sdk.appendListOptions(url, options);
|
|
16
16
|
const result = await this.sdk.http.get(url.toString(), { token });
|
|
17
|
-
this.inspectCommonStatusCodes(result
|
|
17
|
+
this.inspectCommonStatusCodes(result);
|
|
18
18
|
const E_PREFIX = 'Unable to list spaces. ';
|
|
19
19
|
if (result.status !== 200) {
|
|
20
20
|
this.logInvalidResponse(result);
|
|
@@ -50,7 +50,7 @@ export class SpacesSdk extends SdkBase {
|
|
|
50
50
|
const url = this.sdk.getUrl(RouteBuilder.spaces());
|
|
51
51
|
const body = JSON.stringify(space);
|
|
52
52
|
const result = await this.sdk.http.post(url.toString(), { token, body });
|
|
53
|
-
this.inspectCommonStatusCodes(result
|
|
53
|
+
this.inspectCommonStatusCodes(result);
|
|
54
54
|
const E_PREFIX = 'Unable to create a space. ';
|
|
55
55
|
if (result.status !== 200) {
|
|
56
56
|
this.logInvalidResponse(result);
|
|
@@ -84,7 +84,7 @@ export class SpacesSdk extends SdkBase {
|
|
|
84
84
|
const token = request.token || this.sdk.token;
|
|
85
85
|
const url = this.sdk.getUrl(RouteBuilder.space(key));
|
|
86
86
|
const result = await this.sdk.http.get(url.toString(), { token });
|
|
87
|
-
this.inspectCommonStatusCodes(result
|
|
87
|
+
this.inspectCommonStatusCodes(result);
|
|
88
88
|
const E_PREFIX = 'Unable to read a space. ';
|
|
89
89
|
if (result.status !== 200) {
|
|
90
90
|
this.logInvalidResponse(result);
|
|
@@ -121,7 +121,7 @@ export class SpacesSdk extends SdkBase {
|
|
|
121
121
|
const token = request.token || this.sdk.token;
|
|
122
122
|
const url = this.sdk.getUrl(RouteBuilder.space(key));
|
|
123
123
|
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
124
|
-
this.inspectCommonStatusCodes(result
|
|
124
|
+
this.inspectCommonStatusCodes(result);
|
|
125
125
|
const E_PREFIX = 'Unable to delete the space. ';
|
|
126
126
|
if (result.status !== 204) {
|
|
127
127
|
this.logInvalidResponse(result);
|
|
@@ -18,7 +18,7 @@ export class TrashSdk extends SdkBase {
|
|
|
18
18
|
url.searchParams.set('space', space);
|
|
19
19
|
const body = JSON.stringify(entry);
|
|
20
20
|
const result = await this.sdk.http.post(url.toString(), { token, body });
|
|
21
|
-
this.inspectCommonStatusCodes(result
|
|
21
|
+
this.inspectCommonStatusCodes(result);
|
|
22
22
|
const E_PREFIX = 'Unable to create a trash. ';
|
|
23
23
|
if (result.status !== 200) {
|
|
24
24
|
this.logInvalidResponse(result);
|
|
@@ -53,7 +53,7 @@ export class TrashSdk extends SdkBase {
|
|
|
53
53
|
const url = this.sdk.getUrl(RouteBuilder.trash());
|
|
54
54
|
this.sdk.appendListOptions(url, options);
|
|
55
55
|
const result = await this.sdk.http.get(url.toString(), { token });
|
|
56
|
-
this.inspectCommonStatusCodes(result
|
|
56
|
+
this.inspectCommonStatusCodes(result);
|
|
57
57
|
const E_PREFIX = 'Unable to list trash. ';
|
|
58
58
|
if (result.status !== 200) {
|
|
59
59
|
this.logInvalidResponse(result);
|
|
@@ -87,7 +87,7 @@ export class TrashSdk extends SdkBase {
|
|
|
87
87
|
const token = request.token || this.sdk.token;
|
|
88
88
|
const url = this.sdk.getUrl(RouteBuilder.trashItem(key));
|
|
89
89
|
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
90
|
-
this.inspectCommonStatusCodes(result
|
|
90
|
+
this.inspectCommonStatusCodes(result);
|
|
91
91
|
const E_PREFIX = 'Unable to delete the trash entry. ';
|
|
92
92
|
if (result.status !== 204) {
|
|
93
93
|
this.logInvalidResponse(result);
|
|
@@ -110,7 +110,7 @@ export class TrashSdk extends SdkBase {
|
|
|
110
110
|
const token = request.token || this.sdk.token;
|
|
111
111
|
const url = this.sdk.getUrl(RouteBuilder.trashRestore(key));
|
|
112
112
|
const result = await this.sdk.http.put(url.toString(), { token });
|
|
113
|
-
this.inspectCommonStatusCodes(result
|
|
113
|
+
this.inspectCommonStatusCodes(result);
|
|
114
114
|
const E_PREFIX = 'Unable to restore from trash. ';
|
|
115
115
|
if (result.status !== 204) {
|
|
116
116
|
this.logInvalidResponse(result);
|
|
@@ -144,7 +144,7 @@ export class TrashSdk extends SdkBase {
|
|
|
144
144
|
const token = request.token || this.sdk.token;
|
|
145
145
|
const url = this.sdk.getUrl(RouteBuilder.trashEmpty(space));
|
|
146
146
|
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
147
|
-
this.inspectCommonStatusCodes(result
|
|
147
|
+
this.inspectCommonStatusCodes(result);
|
|
148
148
|
const E_PREFIX = 'Unable to empty trash. ';
|
|
149
149
|
if (result.status !== 204) {
|
|
150
150
|
this.logInvalidResponse(result);
|
|
@@ -12,7 +12,7 @@ export class UsersSdk extends SdkBase {
|
|
|
12
12
|
const token = request.token || this.sdk.token;
|
|
13
13
|
const url = this.sdk.getUrl(RouteBuilder.usersMe());
|
|
14
14
|
const result = await this.sdk.http.get(url.toString(), { token });
|
|
15
|
-
this.inspectCommonStatusCodes(result
|
|
15
|
+
this.inspectCommonStatusCodes(result);
|
|
16
16
|
const E_PREFIX = 'Unable to read a user. ';
|
|
17
17
|
if (result.status !== 200) {
|
|
18
18
|
this.logInvalidResponse(result);
|
|
@@ -44,7 +44,7 @@ export class UsersSdk extends SdkBase {
|
|
|
44
44
|
const url = this.sdk.getUrl(RouteBuilder.users());
|
|
45
45
|
this.sdk.appendListOptions(url, options);
|
|
46
46
|
const result = await this.sdk.http.get(url.toString(), { token });
|
|
47
|
-
this.inspectCommonStatusCodes(result
|
|
47
|
+
this.inspectCommonStatusCodes(result);
|
|
48
48
|
const E_PREFIX = 'Unable to list projects. ';
|
|
49
49
|
if (result.status !== 200) {
|
|
50
50
|
this.logInvalidResponse(result);
|
|
@@ -75,7 +75,7 @@ export class UsersSdk extends SdkBase {
|
|
|
75
75
|
const token = request.token || this.sdk.token;
|
|
76
76
|
const url = this.sdk.getUrl(RouteBuilder.user(key));
|
|
77
77
|
const result = await this.sdk.http.get(url.toString(), { token });
|
|
78
|
-
this.inspectCommonStatusCodes(result
|
|
78
|
+
this.inspectCommonStatusCodes(result);
|
|
79
79
|
const E_PREFIX = 'Unable to read the user info. ';
|
|
80
80
|
if (result.status !== 200) {
|
|
81
81
|
this.logInvalidResponse(result);
|