@se-uulm/snowballr-api-client 0.2.1-beta.9bf37cd → 0.2.1-beta.a26015b

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/ProjectResponse.js +65 -0
  29. package/dist/esm/models/ProjectSettings.d.ts +60 -0
  30. package/dist/esm/models/{Project.js → ProjectSettings.js} +10 -32
  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 +5 -1
  35. package/dist/esm/models/index.js +5 -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/ProjectResponse.js +73 -0
  49. package/dist/models/ProjectSettings.d.ts +60 -0
  50. package/dist/models/ProjectSettings.js +66 -0
  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 +5 -1
  55. package/dist/models/index.js +5 -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 -17
  60. package/.openapi-generator/VERSION +0 -1
  61. package/.openapi-generator-ignore +0 -23
  62. package/dist/esm/models/Project.d.ts +0 -117
  63. package/dist/models/Project.d.ts +0 -117
  64. package/dist/models/Project.js +0 -88
  65. package/src/apis/ProjectsControllerApi.ts +0 -238
  66. package/src/apis/index.ts +0 -3
  67. package/src/index.ts +0 -5
  68. package/src/models/CreateProjectRequest.ts +0 -65
  69. package/src/models/DecisionMatrixPattern.ts +0 -94
  70. package/src/models/DecisionMatrixPatternEntry.ts +0 -85
  71. package/src/models/Project.ts +0 -177
  72. package/src/models/ReviewDecisionMatrix.ts +0 -81
  73. package/src/models/index.ts +0 -7
  74. package/src/runtime.ts +0 -432
  75. package/tsconfig.esm.json +0 -7
  76. package/tsconfig.json +0 -16
@@ -210,7 +210,7 @@ export class BaseAPI {
210
210
  return next;
211
211
  }
212
212
  }
213
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
213
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
214
214
  ;
215
215
  function isBlob(value) {
216
216
  return typeof Blob !== 'undefined' && value instanceof Blob;
@@ -223,6 +223,11 @@ export class ResponseError extends Error {
223
223
  super(msg);
224
224
  this.response = response;
225
225
  this.name = "ResponseError";
226
+ // restore prototype chain
227
+ const actualProto = new.target.prototype;
228
+ if (Object.setPrototypeOf) {
229
+ Object.setPrototypeOf(this, actualProto);
230
+ }
226
231
  }
227
232
  }
228
233
  export class FetchError extends Error {
@@ -230,6 +235,11 @@ export class FetchError extends Error {
230
235
  super(msg);
231
236
  this.cause = cause;
232
237
  this.name = "FetchError";
238
+ // restore prototype chain
239
+ const actualProto = new.target.prototype;
240
+ if (Object.setPrototypeOf) {
241
+ Object.setPrototypeOf(this, actualProto);
242
+ }
233
243
  }
234
244
  }
235
245
  export class RequiredError extends Error {
@@ -237,6 +247,11 @@ export class RequiredError extends Error {
237
247
  super(msg);
238
248
  this.field = field;
239
249
  this.name = "RequiredError";
250
+ // restore prototype chain
251
+ const actualProto = new.target.prototype;
252
+ if (Object.setPrototypeOf) {
253
+ Object.setPrototypeOf(this, actualProto);
254
+ }
240
255
  }
241
256
  }
242
257
  export const COLLECTION_FORMATS = {
@@ -263,7 +278,7 @@ function querystringSingleKey(key, value, keyPrefix = '') {
263
278
  return querystringSingleKey(key, valueAsArray, keyPrefix);
264
279
  }
265
280
  if (value instanceof Date) {
266
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
281
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
267
282
  }
268
283
  if (value instanceof Object) {
269
284
  return querystring(value, fullKey);
@@ -274,6 +289,52 @@ export function exists(json, key) {
274
289
  const value = json[key];
275
290
  return value !== null && value !== undefined;
276
291
  }
292
+ /**
293
+ * Every generated date call site routes through these.
294
+ *
295
+ * `format: date` is a calendar date, with no time and no offset, so it is converted
296
+ * against the local calendar on both ends: they have to agree or the date shifts by
297
+ * a day. `format: date-time` is an instant and uses UTC.
298
+ */
299
+ export function serializeDateTime(value) {
300
+ return value.toISOString();
301
+ }
302
+ export function serializeDate(value) {
303
+ if (isNaN(value.getTime())) {
304
+ throw new RangeError('Invalid time value');
305
+ }
306
+ const year = ('000' + value.getFullYear()).slice(-4);
307
+ const month = ('0' + (value.getMonth() + 1)).slice(-2);
308
+ const day = ('0' + value.getDate()).slice(-2);
309
+ return `${year}-${month}-${day}`;
310
+ }
311
+ export function parseDate(value) {
312
+ if (value instanceof Date) {
313
+ return value;
314
+ }
315
+ // `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
316
+ // Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
317
+ // multi-argument constructor applies to years 0-99.
318
+ const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
319
+ if (fullDate) {
320
+ const year = Number(fullDate[1]);
321
+ const month = Number(fullDate[2]) - 1;
322
+ const day = Number(fullDate[3]);
323
+ const date = new Date(0);
324
+ date.setFullYear(year, month, day);
325
+ date.setHours(0, 0, 0, 0);
326
+ // Out-of-range components (or a day the local zone skipped) silently roll over,
327
+ // which would hand back a date the server never sent.
328
+ if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
329
+ return new Date(NaN);
330
+ }
331
+ return date;
332
+ }
333
+ return new Date(value);
334
+ }
335
+ export function parseDateTime(value) {
336
+ return new Date(value);
337
+ }
277
338
  export function mapValues(data, fn) {
278
339
  const result = {};
279
340
  for (const key of Object.keys(data)) {
@@ -281,9 +342,14 @@ export function mapValues(data, fn) {
281
342
  }
282
343
  return result;
283
344
  }
345
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
346
+ export function anyToJSON(value) {
347
+ return value;
348
+ }
284
349
  export function canConsumeForm(consumes) {
350
+ var _a;
285
351
  for (const consume of consumes) {
286
- if ('multipart/form-data' === consume.contentType) {
352
+ if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
287
353
  return true;
288
354
  }
289
355
  }
@@ -314,13 +380,73 @@ export class BlobApiResponse {
314
380
  constructor(raw) {
315
381
  this.raw = raw;
316
382
  }
383
+ /**
384
+ * The body named after the Content-Disposition header, so that a download keeps the name the
385
+ * server gave it. A File is built from a native Blob; the Blob itself is named where there is no
386
+ * global File (Node.js before 20), where File cannot be constructed, or where the Blob is not the
387
+ * native one, as returned by an injected fetch implementation such as node-fetch, which a File
388
+ * would stringify instead of wrapping.
389
+ */
317
390
  value() {
318
391
  return __awaiter(this, void 0, void 0, function* () {
319
- return yield this.raw.blob();
392
+ var _a;
393
+ const blob = yield this.raw.blob();
394
+ const name = (_a = parseContentDispositionFilename(this.raw.headers)) !== null && _a !== void 0 ? _a : '';
395
+ if (typeof File !== 'undefined' && blob instanceof Blob) {
396
+ try {
397
+ return new File([blob], name, { type: blob.type });
398
+ }
399
+ catch (_b) {
400
+ // File cannot be constructed: name the Blob itself
401
+ }
402
+ }
403
+ return Object.assign(blob, { name });
320
404
  });
321
405
  }
322
406
  ;
323
407
  }
408
+ /**
409
+ * The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
410
+ * `filename*` parameter first, falling back to the plain `filename` when it is malformed, not UTF-8
411
+ * or has no usable name. Any directory part is dropped; undefined when no usable name is advertised.
412
+ */
413
+ export function parseContentDispositionFilename(headers) {
414
+ var _a, _b;
415
+ const params = parseHeaderParameters((_a = headers.get('Content-Disposition')) !== null && _a !== void 0 ? _a : '');
416
+ return (_b = basename(decodeExtValue(params.get('filename*')))) !== null && _b !== void 0 ? _b : basename(params.get('filename'));
417
+ }
418
+ /** The decoded RFC 5987 ext-value, or undefined when it is not UTF-8 or its percent-encoding is malformed. */
419
+ function decodeExtValue(value) {
420
+ const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
421
+ try {
422
+ return match ? decodeURIComponent(match[1]) : undefined;
423
+ }
424
+ catch (_a) {
425
+ return undefined;
426
+ }
427
+ }
428
+ /**
429
+ * The `name=value` parameters of a header value, consumed one at a time so that a quoted-string is
430
+ * taken whole, `;` included. Names are lower-cased, quoted-string values are unquoted with their
431
+ * backslash escapes resolved, and the first occurrence of a name wins.
432
+ */
433
+ function parseHeaderParameters(value) {
434
+ const params = new Map();
435
+ const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
436
+ let match;
437
+ while ((match = parameter.exec(value)) !== null) {
438
+ const name = match[1].toLowerCase();
439
+ if (!params.has(name)) {
440
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
441
+ }
442
+ }
443
+ return params;
444
+ }
445
+ /** The last `/` or `\` separated segment of a file name, or undefined when it is not a file name. */
446
+ function basename(name) {
447
+ const base = name === null || name === void 0 ? void 0 : name.split(/[\\/]/).pop();
448
+ return !base || base === '.' || base === '..' ? undefined : base;
449
+ }
324
450
  export class TextApiResponse {
325
451
  constructor(raw) {
326
452
  this.raw = raw;
@@ -0,0 +1,34 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ChangePasswordRequest
16
+ */
17
+ export interface ChangePasswordRequest {
18
+ /**
19
+ *
20
+ */
21
+ oldPassword?: string;
22
+ /**
23
+ *
24
+ */
25
+ newPassword?: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the ChangePasswordRequest interface.
29
+ */
30
+ export declare function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest;
31
+ export declare function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest;
32
+ export declare function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest;
33
+ export declare function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest;
34
+ export declare function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfChangePasswordRequest = instanceOfChangePasswordRequest;
17
+ exports.ChangePasswordRequestFromJSON = ChangePasswordRequestFromJSON;
18
+ exports.ChangePasswordRequestFromJSONTyped = ChangePasswordRequestFromJSONTyped;
19
+ exports.ChangePasswordRequestToJSON = ChangePasswordRequestToJSON;
20
+ exports.ChangePasswordRequestToJSONTyped = ChangePasswordRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChangePasswordRequest interface.
23
+ */
24
+ function instanceOfChangePasswordRequest(value) {
25
+ return true;
26
+ }
27
+ function ChangePasswordRequestFromJSON(json) {
28
+ return ChangePasswordRequestFromJSONTyped(json, false);
29
+ }
30
+ function ChangePasswordRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'oldPassword': json['oldPassword'] == null ? undefined : json['oldPassword'],
36
+ 'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
37
+ };
38
+ }
39
+ function ChangePasswordRequestToJSON(json) {
40
+ return ChangePasswordRequestToJSONTyped(json, false);
41
+ }
42
+ function ChangePasswordRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'oldPassword': value['oldPassword'],
48
+ 'newPassword': value['newPassword'],
49
+ };
50
+ }
@@ -17,8 +17,6 @@
17
17
  export interface CreateProjectRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof CreateProjectRequest
22
20
  */
23
21
  name?: string;
24
22
  }
@@ -18,14 +18,10 @@ import type { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
18
18
  export interface DecisionMatrixPattern {
19
19
  /**
20
20
  *
21
- * @type {string}
22
- * @memberof DecisionMatrixPattern
23
21
  */
24
22
  decision?: DecisionMatrixPatternDecisionEnum;
25
23
  /**
26
24
  *
27
- * @type {Array<DecisionMatrixPatternEntry>}
28
- * @memberof DecisionMatrixPattern
29
25
  */
30
26
  entries?: Array<DecisionMatrixPatternEntry>;
31
27
  }
@@ -27,7 +27,7 @@ exports.DecisionMatrixPatternDecisionEnum = {
27
27
  UNREVIEWED: 'UNREVIEWED',
28
28
  IN_REVIEW: 'IN_REVIEW',
29
29
  DECLINED: 'DECLINED',
30
- ACCEPTED: 'ACCEPTED'
30
+ ACCEPTED: 'ACCEPTED',
31
31
  };
32
32
  /**
33
33
  * Check if a given object implements the DecisionMatrixPattern interface.
@@ -17,14 +17,10 @@
17
17
  export interface DecisionMatrixPatternEntry {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof DecisionMatrixPatternEntry
22
20
  */
23
21
  decision?: DecisionMatrixPatternEntryDecisionEnum;
24
22
  /**
25
23
  *
26
- * @type {number}
27
- * @memberof DecisionMatrixPatternEntry
28
24
  */
29
25
  count?: number;
30
26
  }
@@ -25,7 +25,7 @@ exports.DecisionMatrixPatternEntryToJSONTyped = DecisionMatrixPatternEntryToJSON
25
25
  exports.DecisionMatrixPatternEntryDecisionEnum = {
26
26
  DECLINED: 'DECLINED',
27
27
  MAYBE: 'MAYBE',
28
- ACCEPTED: 'ACCEPTED'
28
+ ACCEPTED: 'ACCEPTED',
29
29
  };
30
30
  /**
31
31
  * Check if a given object implements the DecisionMatrixPatternEntry interface.
@@ -0,0 +1,34 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LoginRequest
16
+ */
17
+ export interface LoginRequest {
18
+ /**
19
+ *
20
+ */
21
+ email?: string;
22
+ /**
23
+ *
24
+ */
25
+ password?: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the LoginRequest interface.
29
+ */
30
+ export declare function instanceOfLoginRequest(value: object): value is LoginRequest;
31
+ export declare function LoginRequestFromJSON(json: any): LoginRequest;
32
+ export declare function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest;
33
+ export declare function LoginRequestToJSON(json: any): LoginRequest;
34
+ export declare function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfLoginRequest = instanceOfLoginRequest;
17
+ exports.LoginRequestFromJSON = LoginRequestFromJSON;
18
+ exports.LoginRequestFromJSONTyped = LoginRequestFromJSONTyped;
19
+ exports.LoginRequestToJSON = LoginRequestToJSON;
20
+ exports.LoginRequestToJSONTyped = LoginRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LoginRequest interface.
23
+ */
24
+ function instanceOfLoginRequest(value) {
25
+ return true;
26
+ }
27
+ function LoginRequestFromJSON(json) {
28
+ return LoginRequestFromJSONTyped(json, false);
29
+ }
30
+ function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'email': json['email'] == null ? undefined : json['email'],
36
+ 'password': json['password'] == null ? undefined : json['password'],
37
+ };
38
+ }
39
+ function LoginRequestToJSON(json) {
40
+ return LoginRequestToJSONTyped(json, false);
41
+ }
42
+ function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'email': value['email'],
48
+ 'password': value['password'],
49
+ };
50
+ }
@@ -0,0 +1,66 @@
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 ProjectResponse
17
+ */
18
+ export interface ProjectResponse {
19
+ /**
20
+ *
21
+ */
22
+ id?: string;
23
+ /**
24
+ *
25
+ */
26
+ name?: string;
27
+ /**
28
+ *
29
+ */
30
+ status?: ProjectResponseStatusEnum;
31
+ /**
32
+ *
33
+ */
34
+ currentStage?: number;
35
+ /**
36
+ *
37
+ */
38
+ maxStage?: number;
39
+ /**
40
+ *
41
+ */
42
+ settings?: ProjectSettings;
43
+ /**
44
+ *
45
+ */
46
+ currentStageStartedAt?: Date;
47
+ }
48
+ /**
49
+ * @export
50
+ */
51
+ export declare const ProjectResponseStatusEnum: {
52
+ readonly ACTIVE: "ACTIVE";
53
+ readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
54
+ readonly ARCHIVED: "ARCHIVED";
55
+ readonly DELETED: "DELETED";
56
+ readonly CLEARED: "CLEARED";
57
+ };
58
+ export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
59
+ /**
60
+ * Check if a given object implements the ProjectResponse interface.
61
+ */
62
+ export declare function instanceOfProjectResponse(value: object): value is ProjectResponse;
63
+ export declare function ProjectResponseFromJSON(json: any): ProjectResponse;
64
+ export declare function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResponse;
65
+ export declare function ProjectResponseToJSON(json: any): ProjectResponse;
66
+ export declare function ProjectResponseToJSONTyped(value?: ProjectResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.ProjectResponseStatusEnum = void 0;
17
+ exports.instanceOfProjectResponse = instanceOfProjectResponse;
18
+ exports.ProjectResponseFromJSON = ProjectResponseFromJSON;
19
+ exports.ProjectResponseFromJSONTyped = ProjectResponseFromJSONTyped;
20
+ exports.ProjectResponseToJSON = ProjectResponseToJSON;
21
+ exports.ProjectResponseToJSONTyped = ProjectResponseToJSONTyped;
22
+ const runtime_1 = require("../runtime");
23
+ const ProjectSettings_1 = require("./ProjectSettings");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ProjectResponseStatusEnum = {
28
+ ACTIVE: 'ACTIVE',
29
+ ACTIVE_LOCKED: 'ACTIVE_LOCKED',
30
+ ARCHIVED: 'ARCHIVED',
31
+ DELETED: 'DELETED',
32
+ CLEARED: 'CLEARED',
33
+ };
34
+ /**
35
+ * Check if a given object implements the ProjectResponse interface.
36
+ */
37
+ function instanceOfProjectResponse(value) {
38
+ return true;
39
+ }
40
+ function ProjectResponseFromJSON(json) {
41
+ return ProjectResponseFromJSONTyped(json, false);
42
+ }
43
+ function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'] == null ? undefined : json['id'],
49
+ 'name': json['name'] == null ? undefined : json['name'],
50
+ 'status': json['status'] == null ? undefined : json['status'],
51
+ 'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
52
+ 'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
53
+ 'settings': json['settings'] == null ? undefined : (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
54
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : ((0, runtime_1.parseDateTime)(json['currentStageStartedAt'])),
55
+ };
56
+ }
57
+ function ProjectResponseToJSON(json) {
58
+ return ProjectResponseToJSONTyped(json, false);
59
+ }
60
+ function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'name': value['name'],
67
+ 'status': value['status'],
68
+ 'currentStage': value['currentStage'],
69
+ 'maxStage': value['maxStage'],
70
+ 'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value['settings']),
71
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : (0, runtime_1.serializeDateTime)(value['currentStageStartedAt']),
72
+ };
73
+ }
@@ -0,0 +1,60 @@
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 { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProjectSettings
17
+ */
18
+ export interface ProjectSettings {
19
+ /**
20
+ *
21
+ */
22
+ similarityThreshold?: number;
23
+ /**
24
+ *
25
+ */
26
+ snowballingType?: ProjectSettingsSnowballingTypeEnum;
27
+ /**
28
+ *
29
+ */
30
+ reviewMaybeAllowed?: boolean;
31
+ /**
32
+ *
33
+ */
34
+ reviewDecisionMatrix?: ReviewDecisionMatrix;
35
+ /**
36
+ *
37
+ */
38
+ fetchers?: {
39
+ [key: string]: {
40
+ [key: string]: string;
41
+ };
42
+ };
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const ProjectSettingsSnowballingTypeEnum: {
48
+ readonly FORWARD: "FORWARD";
49
+ readonly BACKWARD: "BACKWARD";
50
+ readonly BOTH: "BOTH";
51
+ };
52
+ export type ProjectSettingsSnowballingTypeEnum = typeof ProjectSettingsSnowballingTypeEnum[keyof typeof ProjectSettingsSnowballingTypeEnum];
53
+ /**
54
+ * Check if a given object implements the ProjectSettings interface.
55
+ */
56
+ export declare function instanceOfProjectSettings(value: object): value is ProjectSettings;
57
+ export declare function ProjectSettingsFromJSON(json: any): ProjectSettings;
58
+ export declare function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettings;
59
+ export declare function ProjectSettingsToJSON(json: any): ProjectSettings;
60
+ export declare function ProjectSettingsToJSONTyped(value?: ProjectSettings | null, ignoreDiscriminator?: boolean): any;