@se-uulm/snowballr-api-client 0.1.1-alpha.16a25a3

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 (84) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/CHANGELOG.md +9 -0
  5. package/LICENSE +674 -0
  6. package/README.md +46 -0
  7. package/dist/apis/AuthControllerApi.d.ts +118 -0
  8. package/dist/apis/AuthControllerApi.js +170 -0
  9. package/dist/apis/ProjectsControllerApi.d.ts +102 -0
  10. package/dist/apis/ProjectsControllerApi.js +141 -0
  11. package/dist/apis/UsersControllerApi.d.ts +46 -0
  12. package/dist/apis/UsersControllerApi.js +61 -0
  13. package/dist/apis/index.d.ts +3 -0
  14. package/dist/apis/index.js +21 -0
  15. package/dist/esm/apis/AuthControllerApi.d.ts +118 -0
  16. package/dist/esm/apis/AuthControllerApi.js +166 -0
  17. package/dist/esm/apis/ProjectsControllerApi.d.ts +102 -0
  18. package/dist/esm/apis/ProjectsControllerApi.js +137 -0
  19. package/dist/esm/apis/UsersControllerApi.d.ts +46 -0
  20. package/dist/esm/apis/UsersControllerApi.js +57 -0
  21. package/dist/esm/apis/index.d.ts +3 -0
  22. package/dist/esm/apis/index.js +5 -0
  23. package/dist/esm/index.d.ts +3 -0
  24. package/dist/esm/index.js +5 -0
  25. package/dist/esm/models/ChangePasswordRequest.d.ts +38 -0
  26. package/dist/esm/models/ChangePasswordRequest.js +43 -0
  27. package/dist/esm/models/CreateProjectRequest.d.ts +32 -0
  28. package/dist/esm/models/CreateProjectRequest.js +41 -0
  29. package/dist/esm/models/DecisionMatrixPattern.d.ts +49 -0
  30. package/dist/esm/models/DecisionMatrixPattern.js +53 -0
  31. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +47 -0
  32. package/dist/esm/models/DecisionMatrixPatternEntry.js +51 -0
  33. package/dist/esm/models/LoginRequest.d.ts +38 -0
  34. package/dist/esm/models/LoginRequest.js +43 -0
  35. package/dist/esm/models/ProjectResponse.d.ts +117 -0
  36. package/dist/esm/models/ProjectResponse.js +80 -0
  37. package/dist/esm/models/RegisterRequest.d.ts +50 -0
  38. package/dist/esm/models/RegisterRequest.js +47 -0
  39. package/dist/esm/models/ReviewDecisionMatrix.d.ts +39 -0
  40. package/dist/esm/models/ReviewDecisionMatrix.js +44 -0
  41. package/dist/esm/models/index.d.ts +8 -0
  42. package/dist/esm/models/index.js +10 -0
  43. package/dist/esm/runtime.d.ts +184 -0
  44. package/dist/esm/runtime.js +334 -0
  45. package/dist/index.d.ts +3 -0
  46. package/dist/index.js +21 -0
  47. package/dist/models/ChangePasswordRequest.d.ts +38 -0
  48. package/dist/models/ChangePasswordRequest.js +50 -0
  49. package/dist/models/CreateProjectRequest.d.ts +32 -0
  50. package/dist/models/CreateProjectRequest.js +48 -0
  51. package/dist/models/DecisionMatrixPattern.d.ts +49 -0
  52. package/dist/models/DecisionMatrixPattern.js +61 -0
  53. package/dist/models/DecisionMatrixPatternEntry.d.ts +47 -0
  54. package/dist/models/DecisionMatrixPatternEntry.js +59 -0
  55. package/dist/models/LoginRequest.d.ts +38 -0
  56. package/dist/models/LoginRequest.js +50 -0
  57. package/dist/models/ProjectResponse.d.ts +117 -0
  58. package/dist/models/ProjectResponse.js +88 -0
  59. package/dist/models/RegisterRequest.d.ts +50 -0
  60. package/dist/models/RegisterRequest.js +54 -0
  61. package/dist/models/ReviewDecisionMatrix.d.ts +39 -0
  62. package/dist/models/ReviewDecisionMatrix.js +51 -0
  63. package/dist/models/index.d.ts +8 -0
  64. package/dist/models/index.js +26 -0
  65. package/dist/runtime.d.ts +184 -0
  66. package/dist/runtime.js +350 -0
  67. package/package.json +22 -0
  68. package/src/apis/AuthControllerApi.ts +283 -0
  69. package/src/apis/ProjectsControllerApi.ts +238 -0
  70. package/src/apis/UsersControllerApi.ts +92 -0
  71. package/src/apis/index.ts +5 -0
  72. package/src/index.ts +5 -0
  73. package/src/models/ChangePasswordRequest.ts +73 -0
  74. package/src/models/CreateProjectRequest.ts +65 -0
  75. package/src/models/DecisionMatrixPattern.ts +94 -0
  76. package/src/models/DecisionMatrixPatternEntry.ts +85 -0
  77. package/src/models/LoginRequest.ts +73 -0
  78. package/src/models/ProjectResponse.ts +177 -0
  79. package/src/models/RegisterRequest.ts +89 -0
  80. package/src/models/ReviewDecisionMatrix.ts +81 -0
  81. package/src/models/index.ts +10 -0
  82. package/src/runtime.ts +432 -0
  83. package/tsconfig.esm.json +7 -0
  84. package/tsconfig.json +16 -0
@@ -0,0 +1,38 @@
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
+ * @type {string}
21
+ * @memberof ChangePasswordRequest
22
+ */
23
+ oldPassword?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ChangePasswordRequest
28
+ */
29
+ newPassword?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ChangePasswordRequest interface.
33
+ */
34
+ export declare function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest;
35
+ export declare function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest;
36
+ export declare function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest;
37
+ export declare function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest;
38
+ 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
+ }
@@ -0,0 +1,32 @@
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 CreateProjectRequest
16
+ */
17
+ export interface CreateProjectRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateProjectRequest
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateProjectRequest interface.
27
+ */
28
+ export declare function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest;
29
+ export declare function CreateProjectRequestFromJSON(json: any): CreateProjectRequest;
30
+ export declare function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest;
31
+ export declare function CreateProjectRequestToJSON(json: any): CreateProjectRequest;
32
+ export declare function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfCreateProjectRequest = instanceOfCreateProjectRequest;
17
+ exports.CreateProjectRequestFromJSON = CreateProjectRequestFromJSON;
18
+ exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
19
+ exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
20
+ exports.CreateProjectRequestToJSONTyped = CreateProjectRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateProjectRequest interface.
23
+ */
24
+ function instanceOfCreateProjectRequest(value) {
25
+ return true;
26
+ }
27
+ function CreateProjectRequestFromJSON(json) {
28
+ return CreateProjectRequestFromJSONTyped(json, false);
29
+ }
30
+ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ };
37
+ }
38
+ function CreateProjectRequestToJSON(json) {
39
+ return CreateProjectRequestToJSONTyped(json, false);
40
+ }
41
+ function CreateProjectRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ };
48
+ }
@@ -0,0 +1,49 @@
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 { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DecisionMatrixPattern
17
+ */
18
+ export interface DecisionMatrixPattern {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof DecisionMatrixPattern
23
+ */
24
+ decision?: DecisionMatrixPatternDecisionEnum;
25
+ /**
26
+ *
27
+ * @type {Array<DecisionMatrixPatternEntry>}
28
+ * @memberof DecisionMatrixPattern
29
+ */
30
+ entries?: Array<DecisionMatrixPatternEntry>;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const DecisionMatrixPatternDecisionEnum: {
36
+ readonly UNREVIEWED: "UNREVIEWED";
37
+ readonly IN_REVIEW: "IN_REVIEW";
38
+ readonly DECLINED: "DECLINED";
39
+ readonly ACCEPTED: "ACCEPTED";
40
+ };
41
+ export type DecisionMatrixPatternDecisionEnum = typeof DecisionMatrixPatternDecisionEnum[keyof typeof DecisionMatrixPatternDecisionEnum];
42
+ /**
43
+ * Check if a given object implements the DecisionMatrixPattern interface.
44
+ */
45
+ export declare function instanceOfDecisionMatrixPattern(value: object): value is DecisionMatrixPattern;
46
+ export declare function DecisionMatrixPatternFromJSON(json: any): DecisionMatrixPattern;
47
+ export declare function DecisionMatrixPatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPattern;
48
+ export declare function DecisionMatrixPatternToJSON(json: any): DecisionMatrixPattern;
49
+ export declare function DecisionMatrixPatternToJSONTyped(value?: DecisionMatrixPattern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.DecisionMatrixPatternDecisionEnum = void 0;
17
+ exports.instanceOfDecisionMatrixPattern = instanceOfDecisionMatrixPattern;
18
+ exports.DecisionMatrixPatternFromJSON = DecisionMatrixPatternFromJSON;
19
+ exports.DecisionMatrixPatternFromJSONTyped = DecisionMatrixPatternFromJSONTyped;
20
+ exports.DecisionMatrixPatternToJSON = DecisionMatrixPatternToJSON;
21
+ exports.DecisionMatrixPatternToJSONTyped = DecisionMatrixPatternToJSONTyped;
22
+ const DecisionMatrixPatternEntry_1 = require("./DecisionMatrixPatternEntry");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.DecisionMatrixPatternDecisionEnum = {
27
+ UNREVIEWED: 'UNREVIEWED',
28
+ IN_REVIEW: 'IN_REVIEW',
29
+ DECLINED: 'DECLINED',
30
+ ACCEPTED: 'ACCEPTED'
31
+ };
32
+ /**
33
+ * Check if a given object implements the DecisionMatrixPattern interface.
34
+ */
35
+ function instanceOfDecisionMatrixPattern(value) {
36
+ return true;
37
+ }
38
+ function DecisionMatrixPatternFromJSON(json) {
39
+ return DecisionMatrixPatternFromJSONTyped(json, false);
40
+ }
41
+ function DecisionMatrixPatternFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'decision': json['decision'] == null ? undefined : json['decision'],
47
+ 'entries': json['entries'] == null ? undefined : (json['entries'].map(DecisionMatrixPatternEntry_1.DecisionMatrixPatternEntryFromJSON)),
48
+ };
49
+ }
50
+ function DecisionMatrixPatternToJSON(json) {
51
+ return DecisionMatrixPatternToJSONTyped(json, false);
52
+ }
53
+ function DecisionMatrixPatternToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'decision': value['decision'],
59
+ 'entries': value['entries'] == null ? undefined : (value['entries'].map(DecisionMatrixPatternEntry_1.DecisionMatrixPatternEntryToJSON)),
60
+ };
61
+ }
@@ -0,0 +1,47 @@
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 DecisionMatrixPatternEntry
16
+ */
17
+ export interface DecisionMatrixPatternEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DecisionMatrixPatternEntry
22
+ */
23
+ decision?: DecisionMatrixPatternEntryDecisionEnum;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof DecisionMatrixPatternEntry
28
+ */
29
+ count?: number;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const DecisionMatrixPatternEntryDecisionEnum: {
35
+ readonly DECLINED: "DECLINED";
36
+ readonly MAYBE: "MAYBE";
37
+ readonly ACCEPTED: "ACCEPTED";
38
+ };
39
+ export type DecisionMatrixPatternEntryDecisionEnum = typeof DecisionMatrixPatternEntryDecisionEnum[keyof typeof DecisionMatrixPatternEntryDecisionEnum];
40
+ /**
41
+ * Check if a given object implements the DecisionMatrixPatternEntry interface.
42
+ */
43
+ export declare function instanceOfDecisionMatrixPatternEntry(value: object): value is DecisionMatrixPatternEntry;
44
+ export declare function DecisionMatrixPatternEntryFromJSON(json: any): DecisionMatrixPatternEntry;
45
+ export declare function DecisionMatrixPatternEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPatternEntry;
46
+ export declare function DecisionMatrixPatternEntryToJSON(json: any): DecisionMatrixPatternEntry;
47
+ export declare function DecisionMatrixPatternEntryToJSONTyped(value?: DecisionMatrixPatternEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.DecisionMatrixPatternEntryDecisionEnum = void 0;
17
+ exports.instanceOfDecisionMatrixPatternEntry = instanceOfDecisionMatrixPatternEntry;
18
+ exports.DecisionMatrixPatternEntryFromJSON = DecisionMatrixPatternEntryFromJSON;
19
+ exports.DecisionMatrixPatternEntryFromJSONTyped = DecisionMatrixPatternEntryFromJSONTyped;
20
+ exports.DecisionMatrixPatternEntryToJSON = DecisionMatrixPatternEntryToJSON;
21
+ exports.DecisionMatrixPatternEntryToJSONTyped = DecisionMatrixPatternEntryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DecisionMatrixPatternEntryDecisionEnum = {
26
+ DECLINED: 'DECLINED',
27
+ MAYBE: 'MAYBE',
28
+ ACCEPTED: 'ACCEPTED'
29
+ };
30
+ /**
31
+ * Check if a given object implements the DecisionMatrixPatternEntry interface.
32
+ */
33
+ function instanceOfDecisionMatrixPatternEntry(value) {
34
+ return true;
35
+ }
36
+ function DecisionMatrixPatternEntryFromJSON(json) {
37
+ return DecisionMatrixPatternEntryFromJSONTyped(json, false);
38
+ }
39
+ function DecisionMatrixPatternEntryFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'decision': json['decision'] == null ? undefined : json['decision'],
45
+ 'count': json['count'] == null ? undefined : json['count'],
46
+ };
47
+ }
48
+ function DecisionMatrixPatternEntryToJSON(json) {
49
+ return DecisionMatrixPatternEntryToJSONTyped(json, false);
50
+ }
51
+ function DecisionMatrixPatternEntryToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'decision': value['decision'],
57
+ 'count': value['count'],
58
+ };
59
+ }
@@ -0,0 +1,38 @@
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
+ * @type {string}
21
+ * @memberof LoginRequest
22
+ */
23
+ email?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LoginRequest
28
+ */
29
+ password?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LoginRequest interface.
33
+ */
34
+ export declare function instanceOfLoginRequest(value: object): value is LoginRequest;
35
+ export declare function LoginRequestFromJSON(json: any): LoginRequest;
36
+ export declare function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest;
37
+ export declare function LoginRequestToJSON(json: any): LoginRequest;
38
+ 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,117 @@
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 ProjectResponse
17
+ */
18
+ export interface ProjectResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ProjectResponse
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProjectResponse
29
+ */
30
+ name?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProjectResponse
35
+ */
36
+ status?: ProjectResponseStatusEnum;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ProjectResponse
41
+ */
42
+ currentStage?: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof ProjectResponse
47
+ */
48
+ maxStage?: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof ProjectResponse
53
+ */
54
+ similarityThreshold?: number;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ProjectResponse
59
+ */
60
+ snowballingType?: ProjectResponseSnowballingTypeEnum;
61
+ /**
62
+ *
63
+ * @type {boolean}
64
+ * @memberof ProjectResponse
65
+ */
66
+ reviewMaybeAllowed?: boolean;
67
+ /**
68
+ *
69
+ * @type {ReviewDecisionMatrix}
70
+ * @memberof ProjectResponse
71
+ */
72
+ reviewDecisionMatrix?: ReviewDecisionMatrix;
73
+ /**
74
+ *
75
+ * @type {{ [key: string]: { [key: string]: string; }; }}
76
+ * @memberof ProjectResponse
77
+ */
78
+ fetchers?: {
79
+ [key: string]: {
80
+ [key: string]: string;
81
+ };
82
+ };
83
+ /**
84
+ *
85
+ * @type {Date}
86
+ * @memberof ProjectResponse
87
+ */
88
+ currentStageStartedAt?: Date;
89
+ }
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const ProjectResponseStatusEnum: {
94
+ readonly ACTIVE: "ACTIVE";
95
+ readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
96
+ readonly ARCHIVED: "ARCHIVED";
97
+ readonly DELETED: "DELETED";
98
+ readonly CLEARED: "CLEARED";
99
+ };
100
+ export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
101
+ /**
102
+ * @export
103
+ */
104
+ export declare const ProjectResponseSnowballingTypeEnum: {
105
+ readonly FORWARD: "FORWARD";
106
+ readonly BACKWARD: "BACKWARD";
107
+ readonly BOTH: "BOTH";
108
+ };
109
+ export type ProjectResponseSnowballingTypeEnum = typeof ProjectResponseSnowballingTypeEnum[keyof typeof ProjectResponseSnowballingTypeEnum];
110
+ /**
111
+ * Check if a given object implements the ProjectResponse interface.
112
+ */
113
+ export declare function instanceOfProjectResponse(value: object): value is ProjectResponse;
114
+ export declare function ProjectResponseFromJSON(json: any): ProjectResponse;
115
+ export declare function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResponse;
116
+ export declare function ProjectResponseToJSON(json: any): ProjectResponse;
117
+ export declare function ProjectResponseToJSONTyped(value?: ProjectResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,88 @@
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.ProjectResponseSnowballingTypeEnum = 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 ReviewDecisionMatrix_1 = require("./ReviewDecisionMatrix");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ProjectResponseStatusEnum = {
27
+ ACTIVE: 'ACTIVE',
28
+ ACTIVE_LOCKED: 'ACTIVE_LOCKED',
29
+ ARCHIVED: 'ARCHIVED',
30
+ DELETED: 'DELETED',
31
+ CLEARED: 'CLEARED'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.ProjectResponseSnowballingTypeEnum = {
37
+ FORWARD: 'FORWARD',
38
+ BACKWARD: 'BACKWARD',
39
+ BOTH: 'BOTH'
40
+ };
41
+ /**
42
+ * Check if a given object implements the ProjectResponse interface.
43
+ */
44
+ function instanceOfProjectResponse(value) {
45
+ return true;
46
+ }
47
+ function ProjectResponseFromJSON(json) {
48
+ return ProjectResponseFromJSONTyped(json, false);
49
+ }
50
+ function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'id': json['id'] == null ? undefined : json['id'],
56
+ 'name': json['name'] == null ? undefined : json['name'],
57
+ 'status': json['status'] == null ? undefined : json['status'],
58
+ 'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
59
+ 'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
60
+ 'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
61
+ 'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
62
+ 'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
63
+ 'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixFromJSON)(json['reviewDecisionMatrix']),
64
+ 'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
65
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
66
+ };
67
+ }
68
+ function ProjectResponseToJSON(json) {
69
+ return ProjectResponseToJSONTyped(json, false);
70
+ }
71
+ function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'id': value['id'],
77
+ 'name': value['name'],
78
+ 'status': value['status'],
79
+ 'currentStage': value['currentStage'],
80
+ 'maxStage': value['maxStage'],
81
+ 'similarityThreshold': value['similarityThreshold'],
82
+ 'snowballingType': value['snowballingType'],
83
+ 'reviewMaybeAllowed': value['reviewMaybeAllowed'],
84
+ 'reviewDecisionMatrix': (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixToJSON)(value['reviewDecisionMatrix']),
85
+ 'fetchers': value['fetchers'],
86
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
87
+ };
88
+ }