@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,73 @@
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 LoginRequest
20
+ */
21
+ export interface LoginRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LoginRequest
26
+ */
27
+ email?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof LoginRequest
32
+ */
33
+ password?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the LoginRequest interface.
38
+ */
39
+ export function instanceOfLoginRequest(value: object): value is LoginRequest {
40
+ return true;
41
+ }
42
+
43
+ export function LoginRequestFromJSON(json: any): LoginRequest {
44
+ return LoginRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'email': json['email'] == null ? undefined : json['email'],
54
+ 'password': json['password'] == null ? undefined : json['password'],
55
+ };
56
+ }
57
+
58
+ export function LoginRequestToJSON(json: any): LoginRequest {
59
+ return LoginRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'email': value['email'],
70
+ 'password': value['password'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,177 @@
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
+ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
17
+ import {
18
+ ReviewDecisionMatrixFromJSON,
19
+ ReviewDecisionMatrixFromJSONTyped,
20
+ ReviewDecisionMatrixToJSON,
21
+ ReviewDecisionMatrixToJSONTyped,
22
+ } from './ReviewDecisionMatrix';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProjectResponse
28
+ */
29
+ export interface ProjectResponse {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ProjectResponse
34
+ */
35
+ id?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ProjectResponse
40
+ */
41
+ name?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ProjectResponse
46
+ */
47
+ status?: ProjectResponseStatusEnum;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ProjectResponse
52
+ */
53
+ currentStage?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ProjectResponse
58
+ */
59
+ maxStage?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ProjectResponse
64
+ */
65
+ similarityThreshold?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ProjectResponse
70
+ */
71
+ snowballingType?: ProjectResponseSnowballingTypeEnum;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof ProjectResponse
76
+ */
77
+ reviewMaybeAllowed?: boolean;
78
+ /**
79
+ *
80
+ * @type {ReviewDecisionMatrix}
81
+ * @memberof ProjectResponse
82
+ */
83
+ reviewDecisionMatrix?: ReviewDecisionMatrix;
84
+ /**
85
+ *
86
+ * @type {{ [key: string]: { [key: string]: string; }; }}
87
+ * @memberof ProjectResponse
88
+ */
89
+ fetchers?: { [key: string]: { [key: string]: string; }; };
90
+ /**
91
+ *
92
+ * @type {Date}
93
+ * @memberof ProjectResponse
94
+ */
95
+ currentStageStartedAt?: Date;
96
+ }
97
+
98
+
99
+ /**
100
+ * @export
101
+ */
102
+ export const ProjectResponseStatusEnum = {
103
+ ACTIVE: 'ACTIVE',
104
+ ACTIVE_LOCKED: 'ACTIVE_LOCKED',
105
+ ARCHIVED: 'ARCHIVED',
106
+ DELETED: 'DELETED',
107
+ CLEARED: 'CLEARED'
108
+ } as const;
109
+ export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const ProjectResponseSnowballingTypeEnum = {
115
+ FORWARD: 'FORWARD',
116
+ BACKWARD: 'BACKWARD',
117
+ BOTH: 'BOTH'
118
+ } as const;
119
+ export type ProjectResponseSnowballingTypeEnum = typeof ProjectResponseSnowballingTypeEnum[keyof typeof ProjectResponseSnowballingTypeEnum];
120
+
121
+
122
+ /**
123
+ * Check if a given object implements the ProjectResponse interface.
124
+ */
125
+ export function instanceOfProjectResponse(value: object): value is ProjectResponse {
126
+ return true;
127
+ }
128
+
129
+ export function ProjectResponseFromJSON(json: any): ProjectResponse {
130
+ return ProjectResponseFromJSONTyped(json, false);
131
+ }
132
+
133
+ export function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResponse {
134
+ if (json == null) {
135
+ return json;
136
+ }
137
+ return {
138
+
139
+ 'id': json['id'] == null ? undefined : json['id'],
140
+ 'name': json['name'] == null ? undefined : json['name'],
141
+ 'status': json['status'] == null ? undefined : json['status'],
142
+ 'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
143
+ 'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
144
+ 'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
145
+ 'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
146
+ 'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
147
+ 'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
148
+ 'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
149
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
150
+ };
151
+ }
152
+
153
+ export function ProjectResponseToJSON(json: any): ProjectResponse {
154
+ return ProjectResponseToJSONTyped(json, false);
155
+ }
156
+
157
+ export function ProjectResponseToJSONTyped(value?: ProjectResponse | null, ignoreDiscriminator: boolean = false): any {
158
+ if (value == null) {
159
+ return value;
160
+ }
161
+
162
+ return {
163
+
164
+ 'id': value['id'],
165
+ 'name': value['name'],
166
+ 'status': value['status'],
167
+ 'currentStage': value['currentStage'],
168
+ 'maxStage': value['maxStage'],
169
+ 'similarityThreshold': value['similarityThreshold'],
170
+ 'snowballingType': value['snowballingType'],
171
+ 'reviewMaybeAllowed': value['reviewMaybeAllowed'],
172
+ 'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
173
+ 'fetchers': value['fetchers'],
174
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
175
+ };
176
+ }
177
+
@@ -0,0 +1,89 @@
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 RegisterRequest
20
+ */
21
+ export interface RegisterRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RegisterRequest
26
+ */
27
+ firstName?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RegisterRequest
32
+ */
33
+ lastName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RegisterRequest
38
+ */
39
+ email?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RegisterRequest
44
+ */
45
+ password?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the RegisterRequest interface.
50
+ */
51
+ export function instanceOfRegisterRequest(value: object): value is RegisterRequest {
52
+ return true;
53
+ }
54
+
55
+ export function RegisterRequestFromJSON(json: any): RegisterRequest {
56
+ return RegisterRequestFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
66
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
67
+ 'email': json['email'] == null ? undefined : json['email'],
68
+ 'password': json['password'] == null ? undefined : json['password'],
69
+ };
70
+ }
71
+
72
+ export function RegisterRequestToJSON(json: any): RegisterRequest {
73
+ return RegisterRequestToJSONTyped(json, false);
74
+ }
75
+
76
+ export function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'firstName': value['firstName'],
84
+ 'lastName': value['lastName'],
85
+ 'email': value['email'],
86
+ 'password': value['password'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,81 @@
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
+ import type { DecisionMatrixPattern } from './DecisionMatrixPattern';
17
+ import {
18
+ DecisionMatrixPatternFromJSON,
19
+ DecisionMatrixPatternFromJSONTyped,
20
+ DecisionMatrixPatternToJSON,
21
+ DecisionMatrixPatternToJSONTyped,
22
+ } from './DecisionMatrixPattern';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ReviewDecisionMatrix
28
+ */
29
+ export interface ReviewDecisionMatrix {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ReviewDecisionMatrix
34
+ */
35
+ numberOfReviewers?: number;
36
+ /**
37
+ *
38
+ * @type {Array<DecisionMatrixPattern>}
39
+ * @memberof ReviewDecisionMatrix
40
+ */
41
+ patterns?: Array<DecisionMatrixPattern>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ReviewDecisionMatrix interface.
46
+ */
47
+ export function instanceOfReviewDecisionMatrix(value: object): value is ReviewDecisionMatrix {
48
+ return true;
49
+ }
50
+
51
+ export function ReviewDecisionMatrixFromJSON(json: any): ReviewDecisionMatrix {
52
+ return ReviewDecisionMatrixFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ReviewDecisionMatrixFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReviewDecisionMatrix {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'numberOfReviewers': json['numberOfReviewers'] == null ? undefined : json['numberOfReviewers'],
62
+ 'patterns': json['patterns'] == null ? undefined : ((json['patterns'] as Array<any>).map(DecisionMatrixPatternFromJSON)),
63
+ };
64
+ }
65
+
66
+ export function ReviewDecisionMatrixToJSON(json: any): ReviewDecisionMatrix {
67
+ return ReviewDecisionMatrixToJSONTyped(json, false);
68
+ }
69
+
70
+ export function ReviewDecisionMatrixToJSONTyped(value?: ReviewDecisionMatrix | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'numberOfReviewers': value['numberOfReviewers'],
78
+ 'patterns': value['patterns'] == null ? undefined : ((value['patterns'] as Array<any>).map(DecisionMatrixPatternToJSON)),
79
+ };
80
+ }
81
+
@@ -0,0 +1,10 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ChangePasswordRequest';
4
+ export * from './CreateProjectRequest';
5
+ export * from './DecisionMatrixPattern';
6
+ export * from './DecisionMatrixPatternEntry';
7
+ export * from './LoginRequest';
8
+ export * from './ProjectResponse';
9
+ export * from './RegisterRequest';
10
+ export * from './ReviewDecisionMatrix';