@se-uulm/snowballr-api-client 0.1.1-alpha.0f85732

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 (59) hide show
  1. package/.openapi-generator/FILES +17 -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/ProjectsControllerApi.d.ts +102 -0
  8. package/dist/apis/ProjectsControllerApi.js +141 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +19 -0
  11. package/dist/esm/apis/ProjectsControllerApi.d.ts +102 -0
  12. package/dist/esm/apis/ProjectsControllerApi.js +137 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +3 -0
  15. package/dist/esm/index.d.ts +3 -0
  16. package/dist/esm/index.js +5 -0
  17. package/dist/esm/models/CreateProjectRequest.d.ts +32 -0
  18. package/dist/esm/models/CreateProjectRequest.js +41 -0
  19. package/dist/esm/models/DecisionMatrixPattern.d.ts +49 -0
  20. package/dist/esm/models/DecisionMatrixPattern.js +53 -0
  21. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +47 -0
  22. package/dist/esm/models/DecisionMatrixPatternEntry.js +51 -0
  23. package/dist/esm/models/Project.d.ts +117 -0
  24. package/dist/esm/models/Project.js +80 -0
  25. package/dist/esm/models/ReviewDecisionMatrix.d.ts +39 -0
  26. package/dist/esm/models/ReviewDecisionMatrix.js +44 -0
  27. package/dist/esm/models/index.d.ts +5 -0
  28. package/dist/esm/models/index.js +7 -0
  29. package/dist/esm/runtime.d.ts +184 -0
  30. package/dist/esm/runtime.js +334 -0
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.js +21 -0
  33. package/dist/models/CreateProjectRequest.d.ts +32 -0
  34. package/dist/models/CreateProjectRequest.js +48 -0
  35. package/dist/models/DecisionMatrixPattern.d.ts +49 -0
  36. package/dist/models/DecisionMatrixPattern.js +61 -0
  37. package/dist/models/DecisionMatrixPatternEntry.d.ts +47 -0
  38. package/dist/models/DecisionMatrixPatternEntry.js +59 -0
  39. package/dist/models/Project.d.ts +117 -0
  40. package/dist/models/Project.js +88 -0
  41. package/dist/models/ReviewDecisionMatrix.d.ts +39 -0
  42. package/dist/models/ReviewDecisionMatrix.js +51 -0
  43. package/dist/models/index.d.ts +5 -0
  44. package/dist/models/index.js +23 -0
  45. package/dist/runtime.d.ts +184 -0
  46. package/dist/runtime.js +350 -0
  47. package/package.json +22 -0
  48. package/src/apis/ProjectsControllerApi.ts +238 -0
  49. package/src/apis/index.ts +3 -0
  50. package/src/index.ts +5 -0
  51. package/src/models/CreateProjectRequest.ts +65 -0
  52. package/src/models/DecisionMatrixPattern.ts +94 -0
  53. package/src/models/DecisionMatrixPatternEntry.ts +85 -0
  54. package/src/models/Project.ts +177 -0
  55. package/src/models/ReviewDecisionMatrix.ts +81 -0
  56. package/src/models/index.ts +7 -0
  57. package/src/runtime.ts +432 -0
  58. package/tsconfig.esm.json +7 -0
  59. package/tsconfig.json +16 -0
@@ -0,0 +1,94 @@
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 { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
17
+ import {
18
+ DecisionMatrixPatternEntryFromJSON,
19
+ DecisionMatrixPatternEntryFromJSONTyped,
20
+ DecisionMatrixPatternEntryToJSON,
21
+ DecisionMatrixPatternEntryToJSONTyped,
22
+ } from './DecisionMatrixPatternEntry';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DecisionMatrixPattern
28
+ */
29
+ export interface DecisionMatrixPattern {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof DecisionMatrixPattern
34
+ */
35
+ decision?: DecisionMatrixPatternDecisionEnum;
36
+ /**
37
+ *
38
+ * @type {Array<DecisionMatrixPatternEntry>}
39
+ * @memberof DecisionMatrixPattern
40
+ */
41
+ entries?: Array<DecisionMatrixPatternEntry>;
42
+ }
43
+
44
+
45
+ /**
46
+ * @export
47
+ */
48
+ export const DecisionMatrixPatternDecisionEnum = {
49
+ UNREVIEWED: 'UNREVIEWED',
50
+ IN_REVIEW: 'IN_REVIEW',
51
+ DECLINED: 'DECLINED',
52
+ ACCEPTED: 'ACCEPTED'
53
+ } as const;
54
+ export type DecisionMatrixPatternDecisionEnum = typeof DecisionMatrixPatternDecisionEnum[keyof typeof DecisionMatrixPatternDecisionEnum];
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the DecisionMatrixPattern interface.
59
+ */
60
+ export function instanceOfDecisionMatrixPattern(value: object): value is DecisionMatrixPattern {
61
+ return true;
62
+ }
63
+
64
+ export function DecisionMatrixPatternFromJSON(json: any): DecisionMatrixPattern {
65
+ return DecisionMatrixPatternFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function DecisionMatrixPatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPattern {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'decision': json['decision'] == null ? undefined : json['decision'],
75
+ 'entries': json['entries'] == null ? undefined : ((json['entries'] as Array<any>).map(DecisionMatrixPatternEntryFromJSON)),
76
+ };
77
+ }
78
+
79
+ export function DecisionMatrixPatternToJSON(json: any): DecisionMatrixPattern {
80
+ return DecisionMatrixPatternToJSONTyped(json, false);
81
+ }
82
+
83
+ export function DecisionMatrixPatternToJSONTyped(value?: DecisionMatrixPattern | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'decision': value['decision'],
91
+ 'entries': value['entries'] == null ? undefined : ((value['entries'] as Array<any>).map(DecisionMatrixPatternEntryToJSON)),
92
+ };
93
+ }
94
+
@@ -0,0 +1,85 @@
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 DecisionMatrixPatternEntry
20
+ */
21
+ export interface DecisionMatrixPatternEntry {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DecisionMatrixPatternEntry
26
+ */
27
+ decision?: DecisionMatrixPatternEntryDecisionEnum;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof DecisionMatrixPatternEntry
32
+ */
33
+ count?: number;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const DecisionMatrixPatternEntryDecisionEnum = {
41
+ DECLINED: 'DECLINED',
42
+ MAYBE: 'MAYBE',
43
+ ACCEPTED: 'ACCEPTED'
44
+ } as const;
45
+ export type DecisionMatrixPatternEntryDecisionEnum = typeof DecisionMatrixPatternEntryDecisionEnum[keyof typeof DecisionMatrixPatternEntryDecisionEnum];
46
+
47
+
48
+ /**
49
+ * Check if a given object implements the DecisionMatrixPatternEntry interface.
50
+ */
51
+ export function instanceOfDecisionMatrixPatternEntry(value: object): value is DecisionMatrixPatternEntry {
52
+ return true;
53
+ }
54
+
55
+ export function DecisionMatrixPatternEntryFromJSON(json: any): DecisionMatrixPatternEntry {
56
+ return DecisionMatrixPatternEntryFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function DecisionMatrixPatternEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPatternEntry {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'decision': json['decision'] == null ? undefined : json['decision'],
66
+ 'count': json['count'] == null ? undefined : json['count'],
67
+ };
68
+ }
69
+
70
+ export function DecisionMatrixPatternEntryToJSON(json: any): DecisionMatrixPatternEntry {
71
+ return DecisionMatrixPatternEntryToJSONTyped(json, false);
72
+ }
73
+
74
+ export function DecisionMatrixPatternEntryToJSONTyped(value?: DecisionMatrixPatternEntry | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'decision': value['decision'],
82
+ 'count': value['count'],
83
+ };
84
+ }
85
+
@@ -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 Project
28
+ */
29
+ export interface Project {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Project
34
+ */
35
+ id?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Project
40
+ */
41
+ name?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof Project
46
+ */
47
+ status?: ProjectStatusEnum;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof Project
52
+ */
53
+ currentStage?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof Project
58
+ */
59
+ maxStage?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof Project
64
+ */
65
+ similarityThreshold?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof Project
70
+ */
71
+ snowballingType?: ProjectSnowballingTypeEnum;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof Project
76
+ */
77
+ reviewMaybeAllowed?: boolean;
78
+ /**
79
+ *
80
+ * @type {ReviewDecisionMatrix}
81
+ * @memberof Project
82
+ */
83
+ reviewDecisionMatrix?: ReviewDecisionMatrix;
84
+ /**
85
+ *
86
+ * @type {{ [key: string]: { [key: string]: string; }; }}
87
+ * @memberof Project
88
+ */
89
+ fetchers?: { [key: string]: { [key: string]: string; }; };
90
+ /**
91
+ *
92
+ * @type {Date}
93
+ * @memberof Project
94
+ */
95
+ currentStageStartedAt?: Date;
96
+ }
97
+
98
+
99
+ /**
100
+ * @export
101
+ */
102
+ export const ProjectStatusEnum = {
103
+ ACTIVE: 'ACTIVE',
104
+ ACTIVE_LOCKED: 'ACTIVE_LOCKED',
105
+ ARCHIVED: 'ARCHIVED',
106
+ DELETED: 'DELETED',
107
+ CLEARED: 'CLEARED'
108
+ } as const;
109
+ export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const ProjectSnowballingTypeEnum = {
115
+ FORWARD: 'FORWARD',
116
+ BACKWARD: 'BACKWARD',
117
+ BOTH: 'BOTH'
118
+ } as const;
119
+ export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
120
+
121
+
122
+ /**
123
+ * Check if a given object implements the Project interface.
124
+ */
125
+ export function instanceOfProject(value: object): value is Project {
126
+ return true;
127
+ }
128
+
129
+ export function ProjectFromJSON(json: any): Project {
130
+ return ProjectFromJSONTyped(json, false);
131
+ }
132
+
133
+ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
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 ProjectToJSON(json: any): Project {
154
+ return ProjectToJSONTyped(json, false);
155
+ }
156
+
157
+ export function ProjectToJSONTyped(value?: Project | 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,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,7 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './CreateProjectRequest';
4
+ export * from './DecisionMatrixPattern';
5
+ export * from './DecisionMatrixPatternEntry';
6
+ export * from './Project';
7
+ export * from './ReviewDecisionMatrix';