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

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 (53) 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/README.md +2 -2
  5. package/dist/apis/ProjectsControllerApi.d.ts +13 -13
  6. package/dist/apis/ProjectsControllerApi.js +7 -7
  7. package/dist/apis/index.d.ts +0 -2
  8. package/dist/apis/index.js +0 -2
  9. package/dist/esm/apis/ProjectsControllerApi.d.ts +13 -13
  10. package/dist/esm/apis/ProjectsControllerApi.js +8 -8
  11. package/dist/esm/apis/index.d.ts +0 -2
  12. package/dist/esm/apis/index.js +0 -2
  13. package/dist/esm/models/{ProjectResponse.d.ts → Project.d.ts} +25 -25
  14. package/dist/esm/models/{ProjectResponse.js → Project.js} +10 -10
  15. package/dist/esm/models/index.d.ts +1 -4
  16. package/dist/esm/models/index.js +1 -4
  17. package/dist/models/{ProjectResponse.d.ts → Project.d.ts} +25 -25
  18. package/dist/models/{ProjectResponse.js → Project.js} +16 -16
  19. package/dist/models/index.d.ts +1 -4
  20. package/dist/models/index.js +1 -4
  21. package/package.json +4 -10
  22. package/src/apis/ProjectsControllerApi.ts +238 -0
  23. package/src/apis/index.ts +3 -0
  24. package/src/index.ts +5 -0
  25. package/src/models/CreateProjectRequest.ts +65 -0
  26. package/src/models/DecisionMatrixPattern.ts +94 -0
  27. package/src/models/DecisionMatrixPatternEntry.ts +85 -0
  28. package/src/models/Project.ts +177 -0
  29. package/src/models/ReviewDecisionMatrix.ts +81 -0
  30. package/src/models/index.ts +7 -0
  31. package/src/runtime.ts +432 -0
  32. package/tsconfig.esm.json +7 -0
  33. package/tsconfig.json +16 -0
  34. package/dist/apis/AuthControllerApi.d.ts +0 -118
  35. package/dist/apis/AuthControllerApi.js +0 -170
  36. package/dist/apis/UsersControllerApi.d.ts +0 -46
  37. package/dist/apis/UsersControllerApi.js +0 -61
  38. package/dist/esm/apis/AuthControllerApi.d.ts +0 -118
  39. package/dist/esm/apis/AuthControllerApi.js +0 -166
  40. package/dist/esm/apis/UsersControllerApi.d.ts +0 -46
  41. package/dist/esm/apis/UsersControllerApi.js +0 -57
  42. package/dist/esm/models/ChangePasswordRequest.d.ts +0 -38
  43. package/dist/esm/models/ChangePasswordRequest.js +0 -43
  44. package/dist/esm/models/LoginRequest.d.ts +0 -38
  45. package/dist/esm/models/LoginRequest.js +0 -43
  46. package/dist/esm/models/RegisterRequest.d.ts +0 -50
  47. package/dist/esm/models/RegisterRequest.js +0 -47
  48. package/dist/models/ChangePasswordRequest.d.ts +0 -38
  49. package/dist/models/ChangePasswordRequest.js +0 -50
  50. package/dist/models/LoginRequest.d.ts +0 -38
  51. package/dist/models/LoginRequest.js +0 -50
  52. package/dist/models/RegisterRequest.d.ts +0 -50
  53. package/dist/models/RegisterRequest.js +0 -54
@@ -13,67 +13,67 @@ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface ProjectResponse
16
+ * @interface Project
17
17
  */
18
- export interface ProjectResponse {
18
+ export interface Project {
19
19
  /**
20
20
  *
21
21
  * @type {string}
22
- * @memberof ProjectResponse
22
+ * @memberof Project
23
23
  */
24
24
  id?: string;
25
25
  /**
26
26
  *
27
27
  * @type {string}
28
- * @memberof ProjectResponse
28
+ * @memberof Project
29
29
  */
30
30
  name?: string;
31
31
  /**
32
32
  *
33
33
  * @type {string}
34
- * @memberof ProjectResponse
34
+ * @memberof Project
35
35
  */
36
- status?: ProjectResponseStatusEnum;
36
+ status?: ProjectStatusEnum;
37
37
  /**
38
38
  *
39
39
  * @type {number}
40
- * @memberof ProjectResponse
40
+ * @memberof Project
41
41
  */
42
42
  currentStage?: number;
43
43
  /**
44
44
  *
45
45
  * @type {number}
46
- * @memberof ProjectResponse
46
+ * @memberof Project
47
47
  */
48
48
  maxStage?: number;
49
49
  /**
50
50
  *
51
51
  * @type {number}
52
- * @memberof ProjectResponse
52
+ * @memberof Project
53
53
  */
54
54
  similarityThreshold?: number;
55
55
  /**
56
56
  *
57
57
  * @type {string}
58
- * @memberof ProjectResponse
58
+ * @memberof Project
59
59
  */
60
- snowballingType?: ProjectResponseSnowballingTypeEnum;
60
+ snowballingType?: ProjectSnowballingTypeEnum;
61
61
  /**
62
62
  *
63
63
  * @type {boolean}
64
- * @memberof ProjectResponse
64
+ * @memberof Project
65
65
  */
66
66
  reviewMaybeAllowed?: boolean;
67
67
  /**
68
68
  *
69
69
  * @type {ReviewDecisionMatrix}
70
- * @memberof ProjectResponse
70
+ * @memberof Project
71
71
  */
72
72
  reviewDecisionMatrix?: ReviewDecisionMatrix;
73
73
  /**
74
74
  *
75
75
  * @type {{ [key: string]: { [key: string]: string; }; }}
76
- * @memberof ProjectResponse
76
+ * @memberof Project
77
77
  */
78
78
  fetchers?: {
79
79
  [key: string]: {
@@ -83,35 +83,35 @@ export interface ProjectResponse {
83
83
  /**
84
84
  *
85
85
  * @type {Date}
86
- * @memberof ProjectResponse
86
+ * @memberof Project
87
87
  */
88
88
  currentStageStartedAt?: Date;
89
89
  }
90
90
  /**
91
91
  * @export
92
92
  */
93
- export declare const ProjectResponseStatusEnum: {
93
+ export declare const ProjectStatusEnum: {
94
94
  readonly ACTIVE: "ACTIVE";
95
95
  readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
96
96
  readonly ARCHIVED: "ARCHIVED";
97
97
  readonly DELETED: "DELETED";
98
98
  readonly CLEARED: "CLEARED";
99
99
  };
100
- export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
100
+ export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
101
101
  /**
102
102
  * @export
103
103
  */
104
- export declare const ProjectResponseSnowballingTypeEnum: {
104
+ export declare const ProjectSnowballingTypeEnum: {
105
105
  readonly FORWARD: "FORWARD";
106
106
  readonly BACKWARD: "BACKWARD";
107
107
  readonly BOTH: "BOTH";
108
108
  };
109
- export type ProjectResponseSnowballingTypeEnum = typeof ProjectResponseSnowballingTypeEnum[keyof typeof ProjectResponseSnowballingTypeEnum];
109
+ export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
110
110
  /**
111
- * Check if a given object implements the ProjectResponse interface.
111
+ * Check if a given object implements the Project interface.
112
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;
113
+ export declare function instanceOfProject(value: object): value is Project;
114
+ export declare function ProjectFromJSON(json: any): Project;
115
+ export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
116
+ export declare function ProjectToJSON(json: any): Project;
117
+ export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
@@ -13,17 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
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;
16
+ exports.ProjectSnowballingTypeEnum = exports.ProjectStatusEnum = void 0;
17
+ exports.instanceOfProject = instanceOfProject;
18
+ exports.ProjectFromJSON = ProjectFromJSON;
19
+ exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
20
+ exports.ProjectToJSON = ProjectToJSON;
21
+ exports.ProjectToJSONTyped = ProjectToJSONTyped;
22
22
  const ReviewDecisionMatrix_1 = require("./ReviewDecisionMatrix");
23
23
  /**
24
24
  * @export
25
25
  */
26
- exports.ProjectResponseStatusEnum = {
26
+ exports.ProjectStatusEnum = {
27
27
  ACTIVE: 'ACTIVE',
28
28
  ACTIVE_LOCKED: 'ACTIVE_LOCKED',
29
29
  ARCHIVED: 'ARCHIVED',
@@ -33,21 +33,21 @@ exports.ProjectResponseStatusEnum = {
33
33
  /**
34
34
  * @export
35
35
  */
36
- exports.ProjectResponseSnowballingTypeEnum = {
36
+ exports.ProjectSnowballingTypeEnum = {
37
37
  FORWARD: 'FORWARD',
38
38
  BACKWARD: 'BACKWARD',
39
39
  BOTH: 'BOTH'
40
40
  };
41
41
  /**
42
- * Check if a given object implements the ProjectResponse interface.
42
+ * Check if a given object implements the Project interface.
43
43
  */
44
- function instanceOfProjectResponse(value) {
44
+ function instanceOfProject(value) {
45
45
  return true;
46
46
  }
47
- function ProjectResponseFromJSON(json) {
48
- return ProjectResponseFromJSONTyped(json, false);
47
+ function ProjectFromJSON(json) {
48
+ return ProjectFromJSONTyped(json, false);
49
49
  }
50
- function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
50
+ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
51
51
  if (json == null) {
52
52
  return json;
53
53
  }
@@ -65,10 +65,10 @@ function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
66
66
  };
67
67
  }
68
- function ProjectResponseToJSON(json) {
69
- return ProjectResponseToJSONTyped(json, false);
68
+ function ProjectToJSON(json) {
69
+ return ProjectToJSONTyped(json, false);
70
70
  }
71
- function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
71
+ function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
72
72
  if (value == null) {
73
73
  return value;
74
74
  }
@@ -1,8 +1,5 @@
1
- export * from './ChangePasswordRequest';
2
1
  export * from './CreateProjectRequest';
3
2
  export * from './DecisionMatrixPattern';
4
3
  export * from './DecisionMatrixPatternEntry';
5
- export * from './LoginRequest';
6
- export * from './ProjectResponse';
7
- export * from './RegisterRequest';
4
+ export * from './Project';
8
5
  export * from './ReviewDecisionMatrix';
@@ -16,11 +16,8 @@ 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);
20
19
  __exportStar(require("./CreateProjectRequest"), exports);
21
20
  __exportStar(require("./DecisionMatrixPattern"), exports);
22
21
  __exportStar(require("./DecisionMatrixPatternEntry"), exports);
23
- __exportStar(require("./LoginRequest"), exports);
24
- __exportStar(require("./ProjectResponse"), exports);
25
- __exportStar(require("./RegisterRequest"), exports);
22
+ __exportStar(require("./Project"), exports);
26
23
  __exportStar(require("./ReviewDecisionMatrix"), exports);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@se-uulm/snowballr-api-client",
3
- "version": "0.2.1-alpha.fba5056",
4
- "description": "API client for the SnowballR Web Application",
5
- "author": "SnowballR",
3
+ "version": "0.2.1-beta.9bf37cd",
4
+ "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
+ "author": "OpenAPI-Generator",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/SE-UUlm/snowballr-backend.git"
@@ -18,11 +18,5 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^4.0 || ^5.0"
21
- },
22
- "files": [
23
- "dist",
24
- "README.md",
25
- "LICENSE",
26
- "CHANGELOG.md"
27
- ]
21
+ }
28
22
  }
@@ -0,0 +1,238 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ CreateProjectRequest,
19
+ Project,
20
+ } from '../models/index';
21
+ import {
22
+ CreateProjectRequestFromJSON,
23
+ CreateProjectRequestToJSON,
24
+ ProjectFromJSON,
25
+ ProjectToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface CreateProjectOperationRequest {
29
+ createProjectRequest: CreateProjectRequest;
30
+ }
31
+
32
+ export interface DeleteProjectRequest {
33
+ id: string;
34
+ }
35
+
36
+ export interface GetProjectRequest {
37
+ id: string;
38
+ }
39
+
40
+ /**
41
+ * ProjectsControllerApi - interface
42
+ *
43
+ * @export
44
+ * @interface ProjectsControllerApiInterface
45
+ */
46
+ export interface ProjectsControllerApiInterface {
47
+ /**
48
+ *
49
+ * @param {CreateProjectRequest} createProjectRequest
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof ProjectsControllerApiInterface
53
+ */
54
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
55
+
56
+ /**
57
+ */
58
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
59
+
60
+ /**
61
+ *
62
+ * @param {string} id
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ * @memberof ProjectsControllerApiInterface
66
+ */
67
+ deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
68
+
69
+ /**
70
+ */
71
+ deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
72
+
73
+ /**
74
+ *
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ * @memberof ProjectsControllerApiInterface
78
+ */
79
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
80
+
81
+ /**
82
+ */
83
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
84
+
85
+ /**
86
+ *
87
+ * @param {string} id
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof ProjectsControllerApiInterface
91
+ */
92
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
93
+
94
+ /**
95
+ */
96
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
97
+
98
+ }
99
+
100
+ /**
101
+ *
102
+ */
103
+ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
104
+
105
+ /**
106
+ */
107
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
108
+ if (requestParameters['createProjectRequest'] == null) {
109
+ throw new runtime.RequiredError(
110
+ 'createProjectRequest',
111
+ 'Required parameter "createProjectRequest" was null or undefined when calling createProject().'
112
+ );
113
+ }
114
+
115
+ const queryParameters: any = {};
116
+
117
+ const headerParameters: runtime.HTTPHeaders = {};
118
+
119
+ headerParameters['Content-Type'] = 'application/json';
120
+
121
+
122
+ let urlPath = `/projects`;
123
+
124
+ const response = await this.request({
125
+ path: urlPath,
126
+ method: 'POST',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
130
+ }, initOverrides);
131
+
132
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
133
+ }
134
+
135
+ /**
136
+ */
137
+ async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
138
+ const response = await this.createProjectRaw(requestParameters, initOverrides);
139
+ return await response.value();
140
+ }
141
+
142
+ /**
143
+ */
144
+ async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
145
+ if (requestParameters['id'] == null) {
146
+ throw new runtime.RequiredError(
147
+ 'id',
148
+ 'Required parameter "id" was null or undefined when calling deleteProject().'
149
+ );
150
+ }
151
+
152
+ const queryParameters: any = {};
153
+
154
+ const headerParameters: runtime.HTTPHeaders = {};
155
+
156
+
157
+ let urlPath = `/projects/{id}`;
158
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
159
+
160
+ const response = await this.request({
161
+ path: urlPath,
162
+ method: 'DELETE',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ }, initOverrides);
166
+
167
+ return new runtime.VoidApiResponse(response);
168
+ }
169
+
170
+ /**
171
+ */
172
+ async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
173
+ await this.deleteProjectRaw(requestParameters, initOverrides);
174
+ }
175
+
176
+ /**
177
+ */
178
+ async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
179
+ const queryParameters: any = {};
180
+
181
+ const headerParameters: runtime.HTTPHeaders = {};
182
+
183
+
184
+ let urlPath = `/projects`;
185
+
186
+ const response = await this.request({
187
+ path: urlPath,
188
+ method: 'GET',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ }, initOverrides);
192
+
193
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
194
+ }
195
+
196
+ /**
197
+ */
198
+ async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>> {
199
+ const response = await this.getAllProjectsRaw(initOverrides);
200
+ return await response.value();
201
+ }
202
+
203
+ /**
204
+ */
205
+ async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
206
+ if (requestParameters['id'] == null) {
207
+ throw new runtime.RequiredError(
208
+ 'id',
209
+ 'Required parameter "id" was null or undefined when calling getProject().'
210
+ );
211
+ }
212
+
213
+ const queryParameters: any = {};
214
+
215
+ const headerParameters: runtime.HTTPHeaders = {};
216
+
217
+
218
+ let urlPath = `/projects/{id}`;
219
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
220
+
221
+ const response = await this.request({
222
+ path: urlPath,
223
+ method: 'GET',
224
+ headers: headerParameters,
225
+ query: queryParameters,
226
+ }, initOverrides);
227
+
228
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
229
+ }
230
+
231
+ /**
232
+ */
233
+ async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
234
+ const response = await this.getProjectRaw(requestParameters, initOverrides);
235
+ return await response.value();
236
+ }
237
+
238
+ }
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ProjectsControllerApi';
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,65 @@
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 CreateProjectRequest
20
+ */
21
+ export interface CreateProjectRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateProjectRequest
26
+ */
27
+ name?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateProjectRequest interface.
32
+ */
33
+ export function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest {
34
+ return true;
35
+ }
36
+
37
+ export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
38
+ return CreateProjectRequestFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'name': json['name'] == null ? undefined : json['name'],
48
+ };
49
+ }
50
+
51
+ export function CreateProjectRequestToJSON(json: any): CreateProjectRequest {
52
+ return CreateProjectRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'name': value['name'],
63
+ };
64
+ }
65
+
@@ -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
+