@api-client/core 0.10.2 → 0.10.3

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.
Files changed (53) hide show
  1. package/build/cjs/src/amf/AmfMixin.js.map +1 -1
  2. package/build/cjs/src/amf/ApiSchemaValues.js.map +1 -1
  3. package/build/cjs/src/runtime/store/FilesSdk.js +11 -21
  4. package/build/cjs/src/runtime/store/FilesSdk.js.map +1 -1
  5. package/build/cjs/src/runtime/store/RevisionsSdk.js +4 -1
  6. package/build/cjs/src/runtime/store/RevisionsSdk.js.map +1 -1
  7. package/build/cjs/src/runtime/store/RouteBuilder.d.ts +12 -17
  8. package/build/cjs/src/runtime/store/RouteBuilder.js +25 -40
  9. package/build/cjs/src/runtime/store/RouteBuilder.js.map +1 -1
  10. package/build/cjs/src/runtime/store/Sdk.d.ts +0 -5
  11. package/build/cjs/src/runtime/store/Sdk.js +0 -5
  12. package/build/cjs/src/runtime/store/Sdk.js.map +1 -1
  13. package/build/cjs/src/runtime/store/SharedSdk.js +1 -2
  14. package/build/cjs/src/runtime/store/SharedSdk.js.map +1 -1
  15. package/build/cjs/src/runtime/store/TrashSdk.d.ts +4 -4
  16. package/build/cjs/src/runtime/store/TrashSdk.js +10 -11
  17. package/build/cjs/src/runtime/store/TrashSdk.js.map +1 -1
  18. package/build/cjs/src/testing/TestCliHelper.js.map +1 -1
  19. package/build/esm/src/amf/AmfMixin.js.map +1 -1
  20. package/build/esm/src/amf/ApiSchemaValues.js +2 -1
  21. package/build/esm/src/amf/ApiSchemaValues.js.map +1 -1
  22. package/build/esm/src/runtime/store/FilesSdk.js +11 -21
  23. package/build/esm/src/runtime/store/FilesSdk.js.map +1 -1
  24. package/build/esm/src/runtime/store/RevisionsSdk.js +5 -2
  25. package/build/esm/src/runtime/store/RevisionsSdk.js.map +1 -1
  26. package/build/esm/src/runtime/store/RouteBuilder.d.ts +12 -17
  27. package/build/esm/src/runtime/store/RouteBuilder.js +25 -40
  28. package/build/esm/src/runtime/store/RouteBuilder.js.map +1 -1
  29. package/build/esm/src/runtime/store/Sdk.d.ts +0 -5
  30. package/build/esm/src/runtime/store/Sdk.js +0 -5
  31. package/build/esm/src/runtime/store/Sdk.js.map +1 -1
  32. package/build/esm/src/runtime/store/SharedSdk.js +1 -2
  33. package/build/esm/src/runtime/store/SharedSdk.js.map +1 -1
  34. package/build/esm/src/runtime/store/TrashSdk.d.ts +4 -4
  35. package/build/esm/src/runtime/store/TrashSdk.js +10 -11
  36. package/build/esm/src/runtime/store/TrashSdk.js.map +1 -1
  37. package/build/esm/src/testing/TestCliHelper.js +2 -1
  38. package/build/esm/src/testing/TestCliHelper.js.map +1 -1
  39. package/package.json +3 -3
  40. package/src/amf/AmfMixin.ts +2 -2
  41. package/src/runtime/store/FilesSdk.ts +11 -21
  42. package/src/runtime/store/RevisionsSdk.ts +5 -2
  43. package/src/runtime/store/RouteBuilder.ts +25 -45
  44. package/src/runtime/store/Sdk.ts +0 -6
  45. package/src/runtime/store/SharedSdk.ts +1 -2
  46. package/src/runtime/store/TrashSdk.ts +10 -11
  47. package/build/cjs/src/runtime/store/CertificatesSdk.d.ts +0 -53
  48. package/build/cjs/src/runtime/store/CertificatesSdk.js +0 -238
  49. package/build/cjs/src/runtime/store/CertificatesSdk.js.map +0 -1
  50. package/build/esm/src/runtime/store/CertificatesSdk.d.ts +0 -53
  51. package/build/esm/src/runtime/store/CertificatesSdk.js +0 -234
  52. package/build/esm/src/runtime/store/CertificatesSdk.js.map +0 -1
  53. package/src/runtime/store/CertificatesSdk.ts +0 -238
@@ -17,43 +17,43 @@ export class RouteBuilder {
17
17
  /**
18
18
  * @returns The path to the /files route.
19
19
  */
20
- static files(): string {
21
- return '/files';
20
+ static files(space: string): string {
21
+ return `/files/${space}`;
22
22
  }
23
23
 
24
24
  /**
25
25
  * @returns The path to the /files/batch route.
26
26
  */
27
- static filesBatch(): string {
28
- return '/files/batch';
27
+ static filesBatch(space: string): string {
28
+ return `/files/${space}/batch`;
29
29
  }
30
30
 
31
31
  /**
32
32
  * @returns The path to the /files/[id] route.
33
33
  */
34
- static file(key: string): string {
35
- return `/files/${key}`;
34
+ static file(space: string, key: string): string {
35
+ return `/files/${space}/${key}`;
36
36
  }
37
37
 
38
38
  /**
39
39
  * @returns The path to the /files/[id]/users route.
40
40
  */
41
- static fileUsers(key: string): string {
42
- return `/files/${key}/users`;
41
+ static fileUsers(space: string, key: string): string {
42
+ return `/files/${space}/${key}/users`;
43
43
  }
44
44
 
45
45
  /**
46
46
  * @returns The path to the /file/[id]/revisions route.
47
47
  */
48
- static fileRevisions(file: string): string {
49
- return `/file/${file}/revisions`;
48
+ static fileRevisions(space: string, file: string): string {
49
+ return `/file/${space}/${file}/revisions`;
50
50
  }
51
51
 
52
52
  /**
53
53
  * @returns The path to the /file/[id]/revisions route.
54
54
  */
55
- static fileBreadcrumbs(file: string): string {
56
- return `/file/${file}/breadcrumbs`;
55
+ static fileBreadcrumbs(space: string, file: string): string {
56
+ return `/file/${space}/${file}/breadcrumbs`;
57
57
  }
58
58
 
59
59
  /**
@@ -103,53 +103,33 @@ export class RouteBuilder {
103
103
  return `/history/clear/${type}/${key.join('/')}`;
104
104
  }
105
105
 
106
- static shared(): string {
107
- return '/shared';
106
+ static shared(space: string): string {
107
+ return `/shared/${space}`;
108
108
  }
109
109
 
110
- static certificates(): string {
111
- return '/certificates';
110
+ static trash(space: string): string {
111
+ return `/trash/${space}`
112
112
  }
113
113
 
114
- static certificate(key: string): string {
115
- return `/certificates/${key}`;
116
- }
117
-
118
- static certificatesEmpty(key: string): string {
119
- return `/certificates/empty/${key}`;
120
- }
121
-
122
- static certificateBatchCreate(): string {
123
- return `/certificate/batch/create`;
124
- }
125
-
126
- static certificateBatchDelete(): string {
127
- return `/certificate/batch/delete`;
128
- }
129
-
130
- static trash(): string {
131
- return `/trash`
132
- }
133
-
134
- static trashItem(trashKey: string): string {
114
+ static trashItem(space: string, trashKey: string): string {
135
115
  // GET + DELETE (link to ./delete)
136
- return `/trash/${trashKey}`;
116
+ return `/trash/${space}/${trashKey}`;
137
117
  }
138
118
 
139
- static trashRestore(trashKey: string): string {
140
- return `/trash/${trashKey}/restore`
119
+ static trashRestore(space: string, trashKey: string): string {
120
+ return `/trash/${space}/${trashKey}/restore`
141
121
  }
142
122
 
143
123
  static trashEmpty(space: string): string {
144
- return `/trash/empty/${space}`
124
+ return `/trash/${space}/empty`
145
125
  }
146
126
 
147
- static trashBatchRestore(): string {
148
- return `/trash/batch/restore`
127
+ static trashBatchRestore(space: string): string {
128
+ return `/trash/${space}/batch/restore`
149
129
  }
150
130
 
151
- static trashBatchDelete(): string {
152
- return `/trash/batch/delete`;
131
+ static trashBatchDelete(space: string): string {
132
+ return `/trash/${space}/batch/delete`;
153
133
  }
154
134
 
155
135
  static projectExecutions(): string {
@@ -7,7 +7,6 @@ import { UsersSdk } from './UsersSdk.js';
7
7
  import { HistorySdk } from './HistorySdk.js';
8
8
  import { SharedSdk } from './SharedSdk.js';
9
9
  import { ContextListOptions, ContextSpaceListOptions } from '../../events/BaseEvents.js';
10
- import { CertificatesSdk } from './CertificatesSdk.js';
11
10
  import { RevisionsSdk } from './RevisionsSdk.js';
12
11
  import { SpacesSdk } from './SpacesSdk.js';
13
12
  import { TrashSdk } from './TrashSdk.js';
@@ -56,11 +55,6 @@ export abstract class Sdk {
56
55
  */
57
56
  shared = new SharedSdk(this);
58
57
 
59
- /**
60
- * @deprecated Use the `files` to store certificates.
61
- */
62
- certificates = new CertificatesSdk(this);
63
-
64
58
  revisions = new RevisionsSdk(this);
65
59
 
66
60
  spaces = new SpacesSdk(this);
@@ -15,12 +15,11 @@ export class SharedSdk extends SdkBase {
15
15
  */
16
16
  async list(space: string, kinds?: ListFileKind[], options?: ContextListOptions, request: ISdkRequestOptions = {}): Promise<ContextListResult<IFile>> {
17
17
  const token = request.token || this.sdk.token;
18
- const url = this.sdk.getUrl(RouteBuilder.shared());
18
+ const url = this.sdk.getUrl(RouteBuilder.shared(space));
19
19
  this.sdk.appendListOptions(url, options);
20
20
  if (Array.isArray(kinds)) {
21
21
  kinds.forEach(k => url.searchParams.append('kind', k));
22
22
  }
23
- url.searchParams.set('space', space);
24
23
  const result = await this.sdk.http.get(url.toString(), { token });
25
24
  this.inspectCommonStatusCodes(result);
26
25
  const E_PREFIX = 'Unable to list spaces. ';
@@ -27,8 +27,7 @@ export class TrashSdk extends SdkBase {
27
27
  */
28
28
  async add(entry: TrashEntryCreate, space: string, request: ISdkRequestOptions = {}): Promise<ContextChangeRecord<TrashEntry>> {
29
29
  const token = request.token || this.sdk.token;
30
- const url = this.sdk.getUrl(RouteBuilder.trash());
31
- url.searchParams.set('space', space);
30
+ const url = this.sdk.getUrl(RouteBuilder.trash(space));
32
31
  const body = JSON.stringify(entry);
33
32
  const result = await this.sdk.http.post(url.toString(), { token, body });
34
33
  this.inspectCommonStatusCodes(result);
@@ -63,7 +62,7 @@ export class TrashSdk extends SdkBase {
63
62
  */
64
63
  async list(options: ContextSpaceListOptions, request: ISdkRequestOptions = {}): Promise<ContextListResult<TrashEntry>> {
65
64
  const token = request.token || this.sdk.token;
66
- const url = this.sdk.getUrl(RouteBuilder.trash());
65
+ const url = this.sdk.getUrl(RouteBuilder.trash(options.space));
67
66
  this.sdk.appendListOptions(url, options);
68
67
  const result = await this.sdk.http.get(url.toString(), { token });
69
68
  this.inspectCommonStatusCodes(result);
@@ -97,8 +96,8 @@ export class TrashSdk extends SdkBase {
97
96
  *
98
97
  * @param key The key of the deleted object
99
98
  */
100
- async delete(key: string, request: ISdkRequestOptions = {}): Promise<void> {
101
- const url = this.sdk.getUrl(RouteBuilder.trashItem(key));
99
+ async delete(space: string, key: string, request: ISdkRequestOptions = {}): Promise<void> {
100
+ const url = this.sdk.getUrl(RouteBuilder.trashItem(space, key));
102
101
  return this.genericDelete(url, request);
103
102
  }
104
103
 
@@ -109,8 +108,8 @@ export class TrashSdk extends SdkBase {
109
108
  * @param request Optional request options.
110
109
  * @returns The list of delete records.
111
110
  */
112
- async batchDelete(keys: string[], request: ISdkRequestOptions = {}): Promise<IBulkOperationResult<ContextDeleteRecord>> {
113
- const path = RouteBuilder.trashBatchDelete();
111
+ async batchDelete(space: string, keys: string[], request: ISdkRequestOptions = {}): Promise<IBulkOperationResult<ContextDeleteRecord>> {
112
+ const path = RouteBuilder.trashBatchDelete(space);
114
113
  const url = this.sdk.getUrl(path);
115
114
  return this.genericBatchDelete(url, keys, request);
116
115
  }
@@ -121,8 +120,8 @@ export class TrashSdk extends SdkBase {
121
120
  *
122
121
  * @param key The key of the file to restore
123
122
  */
124
- async restore(key: string, request: ISdkRequestOptions = {}): Promise<ContextChangeRecord<IFile>> {
125
- const url = this.sdk.getUrl(RouteBuilder.trashRestore(key));
123
+ async restore(space: string, key: string, request: ISdkRequestOptions = {}): Promise<ContextChangeRecord<IFile>> {
124
+ const url = this.sdk.getUrl(RouteBuilder.trashRestore(space, key));
126
125
  const token = request.token || this.sdk.token;
127
126
  const result = await this.sdk.http.put(url.toString(), { token });
128
127
  this.inspectCommonStatusCodes(result);
@@ -151,8 +150,8 @@ export class TrashSdk extends SdkBase {
151
150
  return data;
152
151
  }
153
152
 
154
- async batchRestore(keys: string[], request: ISdkRequestOptions = {}): Promise<IBulkOperationResult<ContextChangeRecord<IFile>>> {
155
- const url = this.sdk.getUrl(RouteBuilder.trashBatchRestore());
153
+ async batchRestore(space: string, keys: string[], request: ISdkRequestOptions = {}): Promise<IBulkOperationResult<ContextChangeRecord<IFile>>> {
154
+ const url = this.sdk.getUrl(RouteBuilder.trashBatchRestore(space));
156
155
  const token = request.token || this.sdk.token;
157
156
  const result = await this.sdk.http.post(url.toString(), { token, body: JSON.stringify(keys) });
158
157
  this.inspectCommonStatusCodes(result);
@@ -1,53 +0,0 @@
1
- import { SdkBase, ISdkRequestOptions } from './SdkBase.js';
2
- import { ContextChangeRecord, ContextDeleteRecord, ContextListResult, ContextSpaceListOptions, IBulkOperationResult } from '../../events/BaseEvents.js';
3
- import { HttpCertificate } from '../../models/ClientCertificate.js';
4
- export declare class CertificatesSdk extends SdkBase {
5
- /**
6
- * Inserts a certificate to the store
7
- *
8
- * @param value The value to insert.
9
- * @param space The parent space of the certificate.
10
- * @deprecated Use the `files` to store certificates.
11
- */
12
- add(value: HttpCertificate, space: string, request?: ISdkRequestOptions): Promise<ContextChangeRecord<HttpCertificate>>;
13
- /**
14
- * Adds certificates in a bulk operation.
15
- * @param value The lits of certificates to add.
16
- * @param space The parent workspace
17
- * @returns The list of inserted certificates. `undefined` when there was an error inserting a certificate.
18
- * @deprecated Use the `files` to store certificates.
19
- */
20
- addBulk(values: HttpCertificate[], space: string, request?: ISdkRequestOptions): Promise<IBulkOperationResult<ContextChangeRecord<HttpCertificate>>>;
21
- /**
22
- * @param key The key of the certificate to read.
23
- * @deprecated Use the `files` to store certificates.
24
- */
25
- read(key: string, request?: ISdkRequestOptions): Promise<HttpCertificate>;
26
- /**
27
- * Lists certificate entires.
28
- *
29
- * @param space The parent space of the certificate.
30
- * @param options The list query options.
31
- * @deprecated Use the `files` to store certificates.
32
- */
33
- list(options?: ContextSpaceListOptions, request?: ISdkRequestOptions): Promise<ContextListResult<HttpCertificate>>;
34
- /**
35
- * Marks the certificate as deleted.
36
- *
37
- * @param key The key of the certificate to delete.
38
- * @deprecated Use the `files` to store certificates.
39
- */
40
- delete(key: string, request?: ISdkRequestOptions): Promise<void>;
41
- /**
42
- * Removed certificates in a bulk operation.
43
- * @param keys The list of certificate keys to delete.
44
- * @deprecated Use the `files` to store certificates.
45
- */
46
- deleteBulk(keys: string[], request?: ISdkRequestOptions): Promise<IBulkOperationResult<ContextDeleteRecord>>;
47
- /**
48
- * Removes all certificates from the store for the given workspace.
49
- * @param space The parent workspace key
50
- * @deprecated Use the `files` to store certificates.
51
- */
52
- empty(space: string, request?: ISdkRequestOptions): Promise<void>;
53
- }
@@ -1,238 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CertificatesSdk = void 0;
4
- const SdkBase_js_1 = require("./SdkBase.js");
5
- const RouteBuilder_js_1 = require("./RouteBuilder.js");
6
- const Errors_js_1 = require("./Errors.js");
7
- class CertificatesSdk extends SdkBase_js_1.SdkBase {
8
- /**
9
- * Inserts a certificate to the store
10
- *
11
- * @param value The value to insert.
12
- * @param space The parent space of the certificate.
13
- * @deprecated Use the `files` to store certificates.
14
- */
15
- async add(value, space, request = {}) {
16
- const token = request.token || this.sdk.token;
17
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificates());
18
- url.searchParams.set('space', space);
19
- const body = JSON.stringify(value);
20
- const result = await this.sdk.http.post(url.toString(), { token, body });
21
- this.inspectCommonStatusCodes(result);
22
- const E_PREFIX = 'Unable to create a certificate. ';
23
- if (result.status !== 200) {
24
- this.logInvalidResponse(result);
25
- let e = this.createGenericSdkError(result.body);
26
- if (!e) {
27
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
28
- e.response = result.body;
29
- }
30
- throw e;
31
- }
32
- if (!result.body) {
33
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_NO_VALUE}`);
34
- }
35
- let data;
36
- try {
37
- data = JSON.parse(result.body);
38
- }
39
- catch (e) {
40
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_INVALID_JSON}.`);
41
- }
42
- if (!data.key) {
43
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_UNKNOWN}.`);
44
- }
45
- return data;
46
- }
47
- /**
48
- * Adds certificates in a bulk operation.
49
- * @param value The lits of certificates to add.
50
- * @param space The parent workspace
51
- * @returns The list of inserted certificates. `undefined` when there was an error inserting a certificate.
52
- * @deprecated Use the `files` to store certificates.
53
- */
54
- async addBulk(values, space, request = {}) {
55
- const token = request.token || this.sdk.token;
56
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificateBatchCreate());
57
- url.searchParams.set('space', space);
58
- const body = JSON.stringify(values);
59
- const result = await this.sdk.http.post(url.toString(), { token, body });
60
- this.inspectCommonStatusCodes(result);
61
- const E_PREFIX = 'Unable to create a bulk certificates. ';
62
- if (result.status !== 200) {
63
- this.logInvalidResponse(result);
64
- let e = this.createGenericSdkError(result.body);
65
- if (!e) {
66
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
67
- e.response = result.body;
68
- }
69
- throw e;
70
- }
71
- if (!result.body) {
72
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_NO_VALUE}`);
73
- }
74
- let data;
75
- try {
76
- data = JSON.parse(result.body);
77
- }
78
- catch (e) {
79
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_INVALID_JSON}.`);
80
- }
81
- if (!data.items) {
82
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_UNKNOWN}.`);
83
- }
84
- return data;
85
- }
86
- /**
87
- * @param key The key of the certificate to read.
88
- * @deprecated Use the `files` to store certificates.
89
- */
90
- async read(key, request = {}) {
91
- const token = request.token || this.sdk.token;
92
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificate(key));
93
- const result = await this.sdk.http.get(url.toString(), { token });
94
- this.inspectCommonStatusCodes(result);
95
- const E_PREFIX = 'Unable to read a certificate. ';
96
- if (result.status !== 200) {
97
- this.logInvalidResponse(result);
98
- let e = this.createGenericSdkError(result.body);
99
- if (!e) {
100
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
101
- e.response = result.body;
102
- }
103
- throw e;
104
- }
105
- if (!result.body) {
106
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_NO_VALUE}`);
107
- }
108
- let data;
109
- try {
110
- data = JSON.parse(result.body);
111
- }
112
- catch (e) {
113
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_INVALID_JSON}.`);
114
- }
115
- if (!data.kind) {
116
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_UNKNOWN}.`);
117
- }
118
- return data;
119
- }
120
- /**
121
- * Lists certificate entires.
122
- *
123
- * @param space The parent space of the certificate.
124
- * @param options The list query options.
125
- * @deprecated Use the `files` to store certificates.
126
- */
127
- async list(options, request = {}) {
128
- const token = request.token || this.sdk.token;
129
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificates());
130
- this.sdk.appendListOptions(url, options);
131
- const result = await this.sdk.http.get(url.toString(), { token });
132
- this.inspectCommonStatusCodes(result);
133
- const E_PREFIX = 'Unable to list certificates. ';
134
- if (result.status !== 200) {
135
- this.logInvalidResponse(result);
136
- let e = this.createGenericSdkError(result.body);
137
- if (!e) {
138
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
139
- e.response = result.body;
140
- }
141
- throw e;
142
- }
143
- if (!result.body) {
144
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_NO_VALUE}`);
145
- }
146
- let data;
147
- try {
148
- data = JSON.parse(result.body);
149
- }
150
- catch (e) {
151
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_INVALID_JSON}.`);
152
- }
153
- if (!Array.isArray(data.items)) {
154
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_UNKNOWN}.`);
155
- }
156
- return data;
157
- }
158
- /**
159
- * Marks the certificate as deleted.
160
- *
161
- * @param key The key of the certificate to delete.
162
- * @deprecated Use the `files` to store certificates.
163
- */
164
- async delete(key, request = {}) {
165
- const token = request.token || this.sdk.token;
166
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificate(key));
167
- const result = await this.sdk.http.delete(url.toString(), { token });
168
- this.inspectCommonStatusCodes(result);
169
- const E_PREFIX = 'Unable to delete the certificate. ';
170
- if (result.status !== 204) {
171
- this.logInvalidResponse(result);
172
- let e = this.createGenericSdkError(result.body);
173
- if (!e) {
174
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
175
- e.response = result.body;
176
- }
177
- throw e;
178
- }
179
- }
180
- /**
181
- * Removed certificates in a bulk operation.
182
- * @param keys The list of certificate keys to delete.
183
- * @deprecated Use the `files` to store certificates.
184
- */
185
- async deleteBulk(keys, request = {}) {
186
- const token = request.token || this.sdk.token;
187
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificateBatchDelete());
188
- const result = await this.sdk.http.post(url.toString(), { token, body: JSON.stringify(keys) });
189
- this.inspectCommonStatusCodes(result);
190
- const E_PREFIX = 'Unable to delete history. ';
191
- if (result.status !== 200) {
192
- this.logInvalidResponse(result);
193
- let e = this.createGenericSdkError(result.body);
194
- if (!e) {
195
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
196
- e.response = result.body;
197
- }
198
- throw e;
199
- }
200
- if (!result.body) {
201
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_NO_VALUE}`);
202
- }
203
- let data;
204
- try {
205
- data = JSON.parse(result.body);
206
- }
207
- catch (e) {
208
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_INVALID_JSON}.`);
209
- }
210
- if (!Array.isArray(data.items)) {
211
- throw new Error(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_UNKNOWN}.`);
212
- }
213
- return data;
214
- }
215
- /**
216
- * Removes all certificates from the store for the given workspace.
217
- * @param space The parent workspace key
218
- * @deprecated Use the `files` to store certificates.
219
- */
220
- async empty(space, request = {}) {
221
- const token = request.token || this.sdk.token;
222
- const url = this.sdk.getUrl(RouteBuilder_js_1.RouteBuilder.certificatesEmpty(space));
223
- const result = await this.sdk.http.delete(url.toString(), { token });
224
- this.inspectCommonStatusCodes(result);
225
- const E_PREFIX = 'Unable to delete the certificate. ';
226
- if (result.status !== 204) {
227
- this.logInvalidResponse(result);
228
- let e = this.createGenericSdkError(result.body);
229
- if (!e) {
230
- e = new Errors_js_1.SdkError(`${E_PREFIX}${SdkBase_js_1.E_RESPONSE_STATUS}${result.status}`, result.status);
231
- e.response = result.body;
232
- }
233
- throw e;
234
- }
235
- }
236
- }
237
- exports.CertificatesSdk = CertificatesSdk;
238
- //# sourceMappingURL=CertificatesSdk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CertificatesSdk.js","sourceRoot":"","sources":["../../../../../src/runtime/store/CertificatesSdk.ts"],"names":[],"mappings":";;;AAAA,6CAAuI;AACvI,uDAAiD;AAGjD,2CAAuC;AAEvC,MAAa,eAAgB,SAAQ,oBAAO;IAC1C;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,CAAC,KAAsB,EAAE,KAAa,EAAE,UAA8B,EAAE;QAC/E,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,8BAAY,CAAC,YAAY,EAAE,CAAC,CAAC;QACzD,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG,kCAAkC,CAAC;QACpD,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE;YACzB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;YAChC,IAAI,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,IA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,CAAC;aAC1B;YACD,MAAM,CAAC,CAAC;SACT;IACH,CAAC;CACF;AAvOD,0CAuOC"}
@@ -1,53 +0,0 @@
1
- import { SdkBase, ISdkRequestOptions } from './SdkBase.js';
2
- import { ContextChangeRecord, ContextDeleteRecord, ContextListResult, ContextSpaceListOptions, IBulkOperationResult } from '../../events/BaseEvents.js';
3
- import { HttpCertificate } from '../../models/ClientCertificate.js';
4
- export declare class CertificatesSdk extends SdkBase {
5
- /**
6
- * Inserts a certificate to the store
7
- *
8
- * @param value The value to insert.
9
- * @param space The parent space of the certificate.
10
- * @deprecated Use the `files` to store certificates.
11
- */
12
- add(value: HttpCertificate, space: string, request?: ISdkRequestOptions): Promise<ContextChangeRecord<HttpCertificate>>;
13
- /**
14
- * Adds certificates in a bulk operation.
15
- * @param value The lits of certificates to add.
16
- * @param space The parent workspace
17
- * @returns The list of inserted certificates. `undefined` when there was an error inserting a certificate.
18
- * @deprecated Use the `files` to store certificates.
19
- */
20
- addBulk(values: HttpCertificate[], space: string, request?: ISdkRequestOptions): Promise<IBulkOperationResult<ContextChangeRecord<HttpCertificate>>>;
21
- /**
22
- * @param key The key of the certificate to read.
23
- * @deprecated Use the `files` to store certificates.
24
- */
25
- read(key: string, request?: ISdkRequestOptions): Promise<HttpCertificate>;
26
- /**
27
- * Lists certificate entires.
28
- *
29
- * @param space The parent space of the certificate.
30
- * @param options The list query options.
31
- * @deprecated Use the `files` to store certificates.
32
- */
33
- list(options?: ContextSpaceListOptions, request?: ISdkRequestOptions): Promise<ContextListResult<HttpCertificate>>;
34
- /**
35
- * Marks the certificate as deleted.
36
- *
37
- * @param key The key of the certificate to delete.
38
- * @deprecated Use the `files` to store certificates.
39
- */
40
- delete(key: string, request?: ISdkRequestOptions): Promise<void>;
41
- /**
42
- * Removed certificates in a bulk operation.
43
- * @param keys The list of certificate keys to delete.
44
- * @deprecated Use the `files` to store certificates.
45
- */
46
- deleteBulk(keys: string[], request?: ISdkRequestOptions): Promise<IBulkOperationResult<ContextDeleteRecord>>;
47
- /**
48
- * Removes all certificates from the store for the given workspace.
49
- * @param space The parent workspace key
50
- * @deprecated Use the `files` to store certificates.
51
- */
52
- empty(space: string, request?: ISdkRequestOptions): Promise<void>;
53
- }