@se-uulm/snowballr-api-client 0.2.0 → 0.2.1-alpha.07afd14

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 (49) hide show
  1. package/README.md +102 -28
  2. package/dist/apis/ProjectsControllerApi.d.ts +54 -1
  3. package/dist/apis/ProjectsControllerApi.js +60 -23
  4. package/dist/esm/apis/ProjectsControllerApi.d.ts +54 -1
  5. package/dist/esm/apis/ProjectsControllerApi.js +56 -19
  6. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  7. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  8. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  9. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  10. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  11. package/dist/esm/models/Project.d.ts +3 -54
  12. package/dist/esm/models/Project.js +7 -22
  13. package/dist/esm/models/ProjectSettings.d.ts +60 -0
  14. package/dist/esm/models/ProjectSettings.js +58 -0
  15. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  16. package/dist/esm/models/index.d.ts +1 -0
  17. package/dist/esm/models/index.js +1 -0
  18. package/dist/esm/runtime.d.ts +34 -1
  19. package/dist/esm/runtime.js +130 -4
  20. package/dist/models/CreateProjectRequest.d.ts +0 -2
  21. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  22. package/dist/models/DecisionMatrixPattern.js +1 -1
  23. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  24. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  25. package/dist/models/Project.d.ts +3 -54
  26. package/dist/models/Project.js +8 -23
  27. package/dist/models/ProjectSettings.d.ts +60 -0
  28. package/dist/models/ProjectSettings.js +66 -0
  29. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  30. package/dist/models/index.d.ts +1 -0
  31. package/dist/models/index.js +1 -0
  32. package/dist/runtime.d.ts +34 -1
  33. package/dist/runtime.js +136 -4
  34. package/package.json +11 -5
  35. package/.openapi-generator/FILES +0 -17
  36. package/.openapi-generator/VERSION +0 -1
  37. package/.openapi-generator-ignore +0 -23
  38. package/src/apis/ProjectsControllerApi.ts +0 -238
  39. package/src/apis/index.ts +0 -3
  40. package/src/index.ts +0 -5
  41. package/src/models/CreateProjectRequest.ts +0 -65
  42. package/src/models/DecisionMatrixPattern.ts +0 -94
  43. package/src/models/DecisionMatrixPatternEntry.ts +0 -85
  44. package/src/models/Project.ts +0 -177
  45. package/src/models/ReviewDecisionMatrix.ts +0 -81
  46. package/src/models/index.ts +0 -7
  47. package/src/runtime.ts +0 -432
  48. package/tsconfig.esm.json +0 -7
  49. package/tsconfig.json +0 -16
package/dist/runtime.js CHANGED
@@ -25,8 +25,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
26
  exports.querystring = querystring;
27
27
  exports.exists = exists;
28
+ exports.serializeDateTime = serializeDateTime;
29
+ exports.serializeDate = serializeDate;
30
+ exports.parseDate = parseDate;
31
+ exports.parseDateTime = parseDateTime;
28
32
  exports.mapValues = mapValues;
33
+ exports.anyToJSON = anyToJSON;
29
34
  exports.canConsumeForm = canConsumeForm;
35
+ exports.parseContentDispositionFilename = parseContentDispositionFilename;
30
36
  exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
31
37
  class Configuration {
32
38
  constructor(configuration = {}) {
@@ -219,7 +225,7 @@ class BaseAPI {
219
225
  }
220
226
  }
221
227
  exports.BaseAPI = BaseAPI;
222
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
228
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
223
229
  ;
224
230
  function isBlob(value) {
225
231
  return typeof Blob !== 'undefined' && value instanceof Blob;
@@ -232,6 +238,11 @@ class ResponseError extends Error {
232
238
  super(msg);
233
239
  this.response = response;
234
240
  this.name = "ResponseError";
241
+ // restore prototype chain
242
+ const actualProto = new.target.prototype;
243
+ if (Object.setPrototypeOf) {
244
+ Object.setPrototypeOf(this, actualProto);
245
+ }
235
246
  }
236
247
  }
237
248
  exports.ResponseError = ResponseError;
@@ -240,6 +251,11 @@ class FetchError extends Error {
240
251
  super(msg);
241
252
  this.cause = cause;
242
253
  this.name = "FetchError";
254
+ // restore prototype chain
255
+ const actualProto = new.target.prototype;
256
+ if (Object.setPrototypeOf) {
257
+ Object.setPrototypeOf(this, actualProto);
258
+ }
243
259
  }
244
260
  }
245
261
  exports.FetchError = FetchError;
@@ -248,6 +264,11 @@ class RequiredError extends Error {
248
264
  super(msg);
249
265
  this.field = field;
250
266
  this.name = "RequiredError";
267
+ // restore prototype chain
268
+ const actualProto = new.target.prototype;
269
+ if (Object.setPrototypeOf) {
270
+ Object.setPrototypeOf(this, actualProto);
271
+ }
251
272
  }
252
273
  }
253
274
  exports.RequiredError = RequiredError;
@@ -275,7 +296,7 @@ function querystringSingleKey(key, value, keyPrefix = '') {
275
296
  return querystringSingleKey(key, valueAsArray, keyPrefix);
276
297
  }
277
298
  if (value instanceof Date) {
278
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
299
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
279
300
  }
280
301
  if (value instanceof Object) {
281
302
  return querystring(value, fullKey);
@@ -286,6 +307,52 @@ function exists(json, key) {
286
307
  const value = json[key];
287
308
  return value !== null && value !== undefined;
288
309
  }
310
+ /**
311
+ * Every generated date call site routes through these.
312
+ *
313
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
314
+ * against the local calendar on both ends: they have to agree or the date shifts by
315
+ * a day. `format: date-time` is an instant and uses UTC.
316
+ */
317
+ function serializeDateTime(value) {
318
+ return value.toISOString();
319
+ }
320
+ function serializeDate(value) {
321
+ if (isNaN(value.getTime())) {
322
+ throw new RangeError('Invalid time value');
323
+ }
324
+ const year = ('000' + value.getFullYear()).slice(-4);
325
+ const month = ('0' + (value.getMonth() + 1)).slice(-2);
326
+ const day = ('0' + value.getDate()).slice(-2);
327
+ return `${year}-${month}-${day}`;
328
+ }
329
+ function parseDate(value) {
330
+ if (value instanceof Date) {
331
+ return value;
332
+ }
333
+ // `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
334
+ // Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
335
+ // multi-argument constructor applies to years 0-99.
336
+ const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
337
+ if (fullDate) {
338
+ const year = Number(fullDate[1]);
339
+ const month = Number(fullDate[2]) - 1;
340
+ const day = Number(fullDate[3]);
341
+ const date = new Date(0);
342
+ date.setFullYear(year, month, day);
343
+ date.setHours(0, 0, 0, 0);
344
+ // Out-of-range components (or a day the local zone skipped) silently roll over,
345
+ // which would hand back a date the server never sent.
346
+ if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
347
+ return new Date(NaN);
348
+ }
349
+ return date;
350
+ }
351
+ return new Date(value);
352
+ }
353
+ function parseDateTime(value) {
354
+ return new Date(value);
355
+ }
289
356
  function mapValues(data, fn) {
290
357
  const result = {};
291
358
  for (const key of Object.keys(data)) {
@@ -293,9 +360,14 @@ function mapValues(data, fn) {
293
360
  }
294
361
  return result;
295
362
  }
363
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
364
+ function anyToJSON(value) {
365
+ return value;
366
+ }
296
367
  function canConsumeForm(consumes) {
368
+ var _a;
297
369
  for (const consume of consumes) {
298
- if ('multipart/form-data' === consume.contentType) {
370
+ if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
299
371
  return true;
300
372
  }
301
373
  }
@@ -328,14 +400,74 @@ class BlobApiResponse {
328
400
  constructor(raw) {
329
401
  this.raw = raw;
330
402
  }
403
+ /**
404
+ * The body named after the Content-Disposition header, so that a download keeps the name the
405
+ * server gave it. A File is built from a native Blob; the Blob itself is named where there is no
406
+ * global File (Node.js before 20), where File cannot be constructed, or where the Blob is not the
407
+ * native one, as returned by an injected fetch implementation such as node-fetch, which a File
408
+ * would stringify instead of wrapping.
409
+ */
331
410
  value() {
332
411
  return __awaiter(this, void 0, void 0, function* () {
333
- return yield this.raw.blob();
412
+ var _a;
413
+ const blob = yield this.raw.blob();
414
+ const name = (_a = parseContentDispositionFilename(this.raw.headers)) !== null && _a !== void 0 ? _a : '';
415
+ if (typeof File !== 'undefined' && blob instanceof Blob) {
416
+ try {
417
+ return new File([blob], name, { type: blob.type });
418
+ }
419
+ catch (_b) {
420
+ // File cannot be constructed: name the Blob itself
421
+ }
422
+ }
423
+ return Object.assign(blob, { name });
334
424
  });
335
425
  }
336
426
  ;
337
427
  }
338
428
  exports.BlobApiResponse = BlobApiResponse;
429
+ /**
430
+ * The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
431
+ * `filename*` parameter first, falling back to the plain `filename` when it is malformed, not UTF-8
432
+ * or has no usable name. Any directory part is dropped; undefined when no usable name is advertised.
433
+ */
434
+ function parseContentDispositionFilename(headers) {
435
+ var _a, _b;
436
+ const params = parseHeaderParameters((_a = headers.get('Content-Disposition')) !== null && _a !== void 0 ? _a : '');
437
+ return (_b = basename(decodeExtValue(params.get('filename*')))) !== null && _b !== void 0 ? _b : basename(params.get('filename'));
438
+ }
439
+ /** The decoded RFC 5987 ext-value, or undefined when it is not UTF-8 or its percent-encoding is malformed. */
440
+ function decodeExtValue(value) {
441
+ const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
442
+ try {
443
+ return match ? decodeURIComponent(match[1]) : undefined;
444
+ }
445
+ catch (_a) {
446
+ return undefined;
447
+ }
448
+ }
449
+ /**
450
+ * The `name=value` parameters of a header value, consumed one at a time so that a quoted-string is
451
+ * taken whole, `;` included. Names are lower-cased, quoted-string values are unquoted with their
452
+ * backslash escapes resolved, and the first occurrence of a name wins.
453
+ */
454
+ function parseHeaderParameters(value) {
455
+ const params = new Map();
456
+ const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
457
+ let match;
458
+ while ((match = parameter.exec(value)) !== null) {
459
+ const name = match[1].toLowerCase();
460
+ if (!params.has(name)) {
461
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
462
+ }
463
+ }
464
+ return params;
465
+ }
466
+ /** The last `/` or `\` separated segment of a file name, or undefined when it is not a file name. */
467
+ function basename(name) {
468
+ const base = name === null || name === void 0 ? void 0 : name.split(/[\\/]/).pop();
469
+ return !base || base === '.' || base === '..' ? undefined : base;
470
+ }
339
471
  class TextApiResponse {
340
472
  constructor(raw) {
341
473
  this.raw = raw;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@se-uulm/snowballr-api-client",
3
- "version": "0.2.0",
4
- "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
- "author": "OpenAPI-Generator",
3
+ "version": "0.2.1-alpha.07afd14",
4
+ "description": "API client for the SnowballR Web Application",
5
+ "author": "SnowballR",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/SE-UUlm/snowballr-backend.git"
9
9
  },
10
10
  "license": "GPL-3.0-or-later",
11
11
  "main": "./dist/index.js",
12
- "typings": "./dist/index.d.ts",
12
+ "types": "./dist/index.d.ts",
13
13
  "module": "./dist/esm/index.js",
14
14
  "sideEffects": false,
15
15
  "scripts": {
@@ -18,5 +18,11 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^4.0 || ^5.0"
21
- }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE",
26
+ "CHANGELOG.md"
27
+ ]
22
28
  }
@@ -1,17 +0,0 @@
1
- .gitignore
2
- .npmignore
3
- .openapi-generator-ignore
4
- README.md
5
- package.json
6
- src/apis/ProjectsControllerApi.ts
7
- src/apis/index.ts
8
- src/index.ts
9
- src/models/CreateProjectRequest.ts
10
- src/models/DecisionMatrixPattern.ts
11
- src/models/DecisionMatrixPatternEntry.ts
12
- src/models/Project.ts
13
- src/models/ReviewDecisionMatrix.ts
14
- src/models/index.ts
15
- src/runtime.ts
16
- tsconfig.esm.json
17
- tsconfig.json
@@ -1 +0,0 @@
1
- 7.14.0
@@ -1,23 +0,0 @@
1
- # OpenAPI Generator Ignore
2
- # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
@@ -1,238 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * SnowballR API
5
- * REST API for the SnowballR Application
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- CreateProjectRequest,
19
- Project,
20
- } from '../models/index';
21
- import {
22
- CreateProjectRequestFromJSON,
23
- CreateProjectRequestToJSON,
24
- ProjectFromJSON,
25
- ProjectToJSON,
26
- } from '../models/index';
27
-
28
- export interface CreateProjectOperationRequest {
29
- createProjectRequest: CreateProjectRequest;
30
- }
31
-
32
- export interface DeleteProjectRequest {
33
- id: string;
34
- }
35
-
36
- export interface GetProjectRequest {
37
- id: string;
38
- }
39
-
40
- /**
41
- * ProjectsControllerApi - interface
42
- *
43
- * @export
44
- * @interface ProjectsControllerApiInterface
45
- */
46
- export interface ProjectsControllerApiInterface {
47
- /**
48
- *
49
- * @param {CreateProjectRequest} createProjectRequest
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- * @memberof ProjectsControllerApiInterface
53
- */
54
- createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
55
-
56
- /**
57
- */
58
- createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
59
-
60
- /**
61
- *
62
- * @param {string} id
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- * @memberof ProjectsControllerApiInterface
66
- */
67
- deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
68
-
69
- /**
70
- */
71
- deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
72
-
73
- /**
74
- *
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- * @memberof ProjectsControllerApiInterface
78
- */
79
- getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
80
-
81
- /**
82
- */
83
- getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
84
-
85
- /**
86
- *
87
- * @param {string} id
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- * @memberof ProjectsControllerApiInterface
91
- */
92
- getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
93
-
94
- /**
95
- */
96
- getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
97
-
98
- }
99
-
100
- /**
101
- *
102
- */
103
- export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
104
-
105
- /**
106
- */
107
- async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
108
- if (requestParameters['createProjectRequest'] == null) {
109
- throw new runtime.RequiredError(
110
- 'createProjectRequest',
111
- 'Required parameter "createProjectRequest" was null or undefined when calling createProject().'
112
- );
113
- }
114
-
115
- const queryParameters: any = {};
116
-
117
- const headerParameters: runtime.HTTPHeaders = {};
118
-
119
- headerParameters['Content-Type'] = 'application/json';
120
-
121
-
122
- let urlPath = `/projects`;
123
-
124
- const response = await this.request({
125
- path: urlPath,
126
- method: 'POST',
127
- headers: headerParameters,
128
- query: queryParameters,
129
- body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
130
- }, initOverrides);
131
-
132
- return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
133
- }
134
-
135
- /**
136
- */
137
- async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
138
- const response = await this.createProjectRaw(requestParameters, initOverrides);
139
- return await response.value();
140
- }
141
-
142
- /**
143
- */
144
- async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
145
- if (requestParameters['id'] == null) {
146
- throw new runtime.RequiredError(
147
- 'id',
148
- 'Required parameter "id" was null or undefined when calling deleteProject().'
149
- );
150
- }
151
-
152
- const queryParameters: any = {};
153
-
154
- const headerParameters: runtime.HTTPHeaders = {};
155
-
156
-
157
- let urlPath = `/projects/{id}`;
158
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
159
-
160
- const response = await this.request({
161
- path: urlPath,
162
- method: 'DELETE',
163
- headers: headerParameters,
164
- query: queryParameters,
165
- }, initOverrides);
166
-
167
- return new runtime.VoidApiResponse(response);
168
- }
169
-
170
- /**
171
- */
172
- async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
173
- await this.deleteProjectRaw(requestParameters, initOverrides);
174
- }
175
-
176
- /**
177
- */
178
- async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
179
- const queryParameters: any = {};
180
-
181
- const headerParameters: runtime.HTTPHeaders = {};
182
-
183
-
184
- let urlPath = `/projects`;
185
-
186
- const response = await this.request({
187
- path: urlPath,
188
- method: 'GET',
189
- headers: headerParameters,
190
- query: queryParameters,
191
- }, initOverrides);
192
-
193
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
194
- }
195
-
196
- /**
197
- */
198
- async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>> {
199
- const response = await this.getAllProjectsRaw(initOverrides);
200
- return await response.value();
201
- }
202
-
203
- /**
204
- */
205
- async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
206
- if (requestParameters['id'] == null) {
207
- throw new runtime.RequiredError(
208
- 'id',
209
- 'Required parameter "id" was null or undefined when calling getProject().'
210
- );
211
- }
212
-
213
- const queryParameters: any = {};
214
-
215
- const headerParameters: runtime.HTTPHeaders = {};
216
-
217
-
218
- let urlPath = `/projects/{id}`;
219
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
220
-
221
- const response = await this.request({
222
- path: urlPath,
223
- method: 'GET',
224
- headers: headerParameters,
225
- query: queryParameters,
226
- }, initOverrides);
227
-
228
- return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
229
- }
230
-
231
- /**
232
- */
233
- async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
234
- const response = await this.getProjectRaw(requestParameters, initOverrides);
235
- return await response.value();
236
- }
237
-
238
- }
package/src/apis/index.ts DELETED
@@ -1,3 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './ProjectsControllerApi';
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './runtime';
4
- export * from './apis/index';
5
- export * from './models/index';
@@ -1,65 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * SnowballR API
5
- * REST API for the SnowballR Application
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateProjectRequest
20
- */
21
- export interface CreateProjectRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateProjectRequest
26
- */
27
- name?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateProjectRequest interface.
32
- */
33
- export function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest {
34
- return true;
35
- }
36
-
37
- export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
38
- return CreateProjectRequestFromJSONTyped(json, false);
39
- }
40
-
41
- export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'name': json['name'] == null ? undefined : json['name'],
48
- };
49
- }
50
-
51
- export function CreateProjectRequestToJSON(json: any): CreateProjectRequest {
52
- return CreateProjectRequestToJSONTyped(json, false);
53
- }
54
-
55
- export function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator: boolean = false): any {
56
- if (value == null) {
57
- return value;
58
- }
59
-
60
- return {
61
-
62
- 'name': value['name'],
63
- };
64
- }
65
-