@se-uulm/snowballr-api-client 0.2.1-beta.deaceec → 0.2.1-beta.f9d1b4c

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 (76) hide show
  1. package/README.md +111 -28
  2. package/dist/apis/AuthControllerApi.d.ts +181 -0
  3. package/dist/apis/AuthControllerApi.js +216 -0
  4. package/dist/apis/ProjectsControllerApi.d.ts +66 -13
  5. package/dist/apis/ProjectsControllerApi.js +60 -23
  6. package/dist/apis/UsersControllerApi.d.ts +60 -0
  7. package/dist/apis/UsersControllerApi.js +70 -0
  8. package/dist/apis/index.d.ts +2 -0
  9. package/dist/apis/index.js +2 -0
  10. package/dist/esm/apis/AuthControllerApi.d.ts +181 -0
  11. package/dist/esm/apis/AuthControllerApi.js +212 -0
  12. package/dist/esm/apis/ProjectsControllerApi.d.ts +66 -13
  13. package/dist/esm/apis/ProjectsControllerApi.js +59 -22
  14. package/dist/esm/apis/UsersControllerApi.d.ts +60 -0
  15. package/dist/esm/apis/UsersControllerApi.js +66 -0
  16. package/dist/esm/apis/index.d.ts +2 -0
  17. package/dist/esm/apis/index.js +2 -0
  18. package/dist/esm/models/ChangePasswordRequest.d.ts +34 -0
  19. package/dist/esm/models/ChangePasswordRequest.js +43 -0
  20. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  21. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  22. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  23. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  24. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  25. package/dist/esm/models/LoginRequest.d.ts +34 -0
  26. package/dist/esm/models/LoginRequest.js +43 -0
  27. package/dist/esm/models/ProjectResponse.d.ts +66 -0
  28. package/dist/esm/models/{Project.js → ProjectResponse.js} +13 -12
  29. package/dist/esm/models/ProjectSettings.d.ts +0 -10
  30. package/dist/esm/models/ProjectSettings.js +1 -1
  31. package/dist/esm/models/RegisterRequest.d.ts +42 -0
  32. package/dist/esm/models/RegisterRequest.js +47 -0
  33. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  34. package/dist/esm/models/index.d.ts +4 -1
  35. package/dist/esm/models/index.js +4 -1
  36. package/dist/esm/runtime.d.ts +34 -1
  37. package/dist/esm/runtime.js +130 -4
  38. package/dist/models/ChangePasswordRequest.d.ts +34 -0
  39. package/dist/models/ChangePasswordRequest.js +50 -0
  40. package/dist/models/CreateProjectRequest.d.ts +0 -2
  41. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  42. package/dist/models/DecisionMatrixPattern.js +1 -1
  43. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  44. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  45. package/dist/models/LoginRequest.d.ts +34 -0
  46. package/dist/models/LoginRequest.js +50 -0
  47. package/dist/models/ProjectResponse.d.ts +66 -0
  48. package/dist/models/{Project.js → ProjectResponse.js} +19 -18
  49. package/dist/models/ProjectSettings.d.ts +0 -10
  50. package/dist/models/ProjectSettings.js +1 -1
  51. package/dist/models/RegisterRequest.d.ts +42 -0
  52. package/dist/models/RegisterRequest.js +54 -0
  53. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  54. package/dist/models/index.d.ts +4 -1
  55. package/dist/models/index.js +4 -1
  56. package/dist/runtime.d.ts +34 -1
  57. package/dist/runtime.js +136 -4
  58. package/package.json +11 -5
  59. package/.openapi-generator/FILES +0 -18
  60. package/.openapi-generator/VERSION +0 -1
  61. package/.openapi-generator-ignore +0 -23
  62. package/dist/esm/models/Project.d.ts +0 -80
  63. package/dist/models/Project.d.ts +0 -80
  64. package/src/apis/ProjectsControllerApi.ts +0 -238
  65. package/src/apis/index.ts +0 -3
  66. package/src/index.ts +0 -5
  67. package/src/models/CreateProjectRequest.ts +0 -65
  68. package/src/models/DecisionMatrixPattern.ts +0 -94
  69. package/src/models/DecisionMatrixPatternEntry.ts +0 -85
  70. package/src/models/Project.ts +0 -135
  71. package/src/models/ProjectSettings.ts +0 -117
  72. package/src/models/ReviewDecisionMatrix.ts +0 -81
  73. package/src/models/index.ts +0 -8
  74. package/src/runtime.ts +0 -432
  75. package/tsconfig.esm.json +0 -7
  76. package/tsconfig.json +0 -16
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnowballR API
6
+ * REST API for the SnowballR Application
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRegisterRequest = instanceOfRegisterRequest;
17
+ exports.RegisterRequestFromJSON = RegisterRequestFromJSON;
18
+ exports.RegisterRequestFromJSONTyped = RegisterRequestFromJSONTyped;
19
+ exports.RegisterRequestToJSON = RegisterRequestToJSON;
20
+ exports.RegisterRequestToJSONTyped = RegisterRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RegisterRequest interface.
23
+ */
24
+ function instanceOfRegisterRequest(value) {
25
+ return true;
26
+ }
27
+ function RegisterRequestFromJSON(json) {
28
+ return RegisterRequestFromJSONTyped(json, false);
29
+ }
30
+ function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
36
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
37
+ 'email': json['email'] == null ? undefined : json['email'],
38
+ 'password': json['password'] == null ? undefined : json['password'],
39
+ };
40
+ }
41
+ function RegisterRequestToJSON(json) {
42
+ return RegisterRequestToJSONTyped(json, false);
43
+ }
44
+ function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'firstName': value['firstName'],
50
+ 'lastName': value['lastName'],
51
+ 'email': value['email'],
52
+ 'password': value['password'],
53
+ };
54
+ }
@@ -18,14 +18,10 @@ import type { DecisionMatrixPattern } from './DecisionMatrixPattern';
18
18
  export interface ReviewDecisionMatrix {
19
19
  /**
20
20
  *
21
- * @type {number}
22
- * @memberof ReviewDecisionMatrix
23
21
  */
24
22
  numberOfReviewers?: number;
25
23
  /**
26
24
  *
27
- * @type {Array<DecisionMatrixPattern>}
28
- * @memberof ReviewDecisionMatrix
29
25
  */
30
26
  patterns?: Array<DecisionMatrixPattern>;
31
27
  }
@@ -1,6 +1,9 @@
1
+ export * from './ChangePasswordRequest';
1
2
  export * from './CreateProjectRequest';
2
3
  export * from './DecisionMatrixPattern';
3
4
  export * from './DecisionMatrixPatternEntry';
4
- export * from './Project';
5
+ export * from './LoginRequest';
6
+ export * from './ProjectResponse';
5
7
  export * from './ProjectSettings';
8
+ export * from './RegisterRequest';
6
9
  export * from './ReviewDecisionMatrix';
@@ -16,9 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./ChangePasswordRequest"), exports);
19
20
  __exportStar(require("./CreateProjectRequest"), exports);
20
21
  __exportStar(require("./DecisionMatrixPattern"), exports);
21
22
  __exportStar(require("./DecisionMatrixPatternEntry"), exports);
22
- __exportStar(require("./Project"), exports);
23
+ __exportStar(require("./LoginRequest"), exports);
24
+ __exportStar(require("./ProjectResponse"), exports);
23
25
  __exportStar(require("./ProjectSettings"), exports);
26
+ __exportStar(require("./RegisterRequest"), exports);
24
27
  __exportStar(require("./ReviewDecisionMatrix"), exports);
package/dist/runtime.d.ts CHANGED
@@ -124,9 +124,21 @@ export interface RequestOpts {
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
126
  export declare function exists(json: any, key: string): boolean;
127
+ /**
128
+ * Every generated date call site routes through these.
129
+ *
130
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
131
+ * against the local calendar on both ends: they have to agree or the date shifts by
132
+ * a day. `format: date-time` is an instant and uses UTC.
133
+ */
134
+ export declare function serializeDateTime(value: Date): string;
135
+ export declare function serializeDate(value: Date): string;
136
+ export declare function parseDate(value: Date | string): Date;
137
+ export declare function parseDateTime(value: any): Date;
127
138
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
139
  [key: string]: any;
129
140
  };
141
+ export declare function anyToJSON(value: any): any;
130
142
  export declare function canConsumeForm(consumes: Consume[]): boolean;
131
143
  export interface Consume {
132
144
  contentType: string;
@@ -172,11 +184,32 @@ export declare class VoidApiResponse {
172
184
  constructor(raw: Response);
173
185
  value(): Promise<void>;
174
186
  }
187
+ /**
188
+ * A Blob carrying the file name the server advertised, empty when it did not send one. It is a File
189
+ * wherever one can be built, and the bare Blob given a name otherwise. Same name and shape as the
190
+ * `typescript` generator's browser HttpFile.
191
+ */
192
+ export type HttpFile = Blob & {
193
+ readonly name: string;
194
+ };
175
195
  export declare class BlobApiResponse {
176
196
  raw: Response;
177
197
  constructor(raw: Response);
178
- value(): Promise<Blob>;
198
+ /**
199
+ * The body named after the Content-Disposition header, so that a download keeps the name the
200
+ * server gave it. A File is built from a native Blob; the Blob itself is named where there is no
201
+ * global File (Node.js before 20), where File cannot be constructed, or where the Blob is not the
202
+ * native one, as returned by an injected fetch implementation such as node-fetch, which a File
203
+ * would stringify instead of wrapping.
204
+ */
205
+ value(): Promise<HttpFile>;
179
206
  }
207
+ /**
208
+ * The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
209
+ * `filename*` parameter first, falling back to the plain `filename` when it is malformed, not UTF-8
210
+ * or has no usable name. Any directory part is dropped; undefined when no usable name is advertised.
211
+ */
212
+ export declare function parseContentDispositionFilename(headers: Headers): string | undefined;
180
213
  export declare class TextApiResponse {
181
214
  raw: Response;
182
215
  constructor(raw: Response);
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.1-beta.deaceec",
4
- "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
- "author": "OpenAPI-Generator",
3
+ "version": "0.2.1-beta.f9d1b4c",
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,18 +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/ProjectSettings.ts
14
- src/models/ReviewDecisionMatrix.ts
15
- src/models/index.ts
16
- src/runtime.ts
17
- tsconfig.esm.json
18
- 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,80 +0,0 @@
1
- /**
2
- * SnowballR API
3
- * REST API for the SnowballR Application
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ProjectSettings } from './ProjectSettings';
13
- /**
14
- *
15
- * @export
16
- * @interface Project
17
- */
18
- export interface Project {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof Project
23
- */
24
- id?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof Project
29
- */
30
- name?: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof Project
35
- */
36
- status?: ProjectStatusEnum;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof Project
41
- */
42
- currentStage?: number;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof Project
47
- */
48
- maxStage?: number;
49
- /**
50
- *
51
- * @type {Date}
52
- * @memberof Project
53
- */
54
- currentStageStartedAt?: Date;
55
- /**
56
- *
57
- * @type {ProjectSettings}
58
- * @memberof Project
59
- */
60
- settings?: ProjectSettings;
61
- }
62
- /**
63
- * @export
64
- */
65
- export declare const ProjectStatusEnum: {
66
- readonly ACTIVE: "ACTIVE";
67
- readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
68
- readonly ARCHIVED: "ARCHIVED";
69
- readonly DELETED: "DELETED";
70
- readonly CLEARED: "CLEARED";
71
- };
72
- export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
73
- /**
74
- * Check if a given object implements the Project interface.
75
- */
76
- export declare function instanceOfProject(value: object): value is Project;
77
- export declare function ProjectFromJSON(json: any): Project;
78
- export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
79
- export declare function ProjectToJSON(json: any): Project;
80
- export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
@@ -1,80 +0,0 @@
1
- /**
2
- * SnowballR API
3
- * REST API for the SnowballR Application
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ProjectSettings } from './ProjectSettings';
13
- /**
14
- *
15
- * @export
16
- * @interface Project
17
- */
18
- export interface Project {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof Project
23
- */
24
- id?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof Project
29
- */
30
- name?: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof Project
35
- */
36
- status?: ProjectStatusEnum;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof Project
41
- */
42
- currentStage?: number;
43
- /**
44
- *
45
- * @type {number}
46
- * @memberof Project
47
- */
48
- maxStage?: number;
49
- /**
50
- *
51
- * @type {Date}
52
- * @memberof Project
53
- */
54
- currentStageStartedAt?: Date;
55
- /**
56
- *
57
- * @type {ProjectSettings}
58
- * @memberof Project
59
- */
60
- settings?: ProjectSettings;
61
- }
62
- /**
63
- * @export
64
- */
65
- export declare const ProjectStatusEnum: {
66
- readonly ACTIVE: "ACTIVE";
67
- readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
68
- readonly ARCHIVED: "ARCHIVED";
69
- readonly DELETED: "DELETED";
70
- readonly CLEARED: "CLEARED";
71
- };
72
- export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
73
- /**
74
- * Check if a given object implements the Project interface.
75
- */
76
- export declare function instanceOfProject(value: object): value is Project;
77
- export declare function ProjectFromJSON(json: any): Project;
78
- export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
79
- export declare function ProjectToJSON(json: any): Project;
80
- export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;