@se-uulm/snowballr-api-client 0.2.1-alpha.04f980a → 0.2.1-alpha.08a35a4

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 (48) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +102 -28
  4. package/dist/apis/ProjectsControllerApi.d.ts +54 -1
  5. package/dist/apis/ProjectsControllerApi.js +56 -19
  6. package/dist/esm/apis/ProjectsControllerApi.d.ts +54 -1
  7. package/dist/esm/apis/ProjectsControllerApi.js +52 -15
  8. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  9. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  10. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  11. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  12. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  13. package/dist/esm/models/Project.d.ts +0 -14
  14. package/dist/esm/models/Project.js +4 -3
  15. package/dist/esm/models/ProjectSettings.d.ts +0 -10
  16. package/dist/esm/models/ProjectSettings.js +1 -1
  17. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  18. package/dist/esm/runtime.d.ts +34 -1
  19. package/dist/esm/runtime.js +130 -4
  20. package/dist/models/CreateProjectRequest.d.ts +0 -2
  21. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  22. package/dist/models/DecisionMatrixPattern.js +1 -1
  23. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  24. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  25. package/dist/models/Project.d.ts +0 -14
  26. package/dist/models/Project.js +4 -3
  27. package/dist/models/ProjectSettings.d.ts +0 -10
  28. package/dist/models/ProjectSettings.js +1 -1
  29. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  30. package/dist/runtime.d.ts +34 -1
  31. package/dist/runtime.js +136 -4
  32. package/docs/CreateProjectRequest.md +34 -0
  33. package/docs/DecisionMatrixPattern.md +36 -0
  34. package/docs/DecisionMatrixPatternEntry.md +36 -0
  35. package/docs/Project.md +46 -0
  36. package/docs/ProjectSettings.md +42 -0
  37. package/docs/ProjectsControllerApi.md +264 -0
  38. package/docs/ReviewDecisionMatrix.md +36 -0
  39. package/package.json +2 -2
  40. package/src/apis/ProjectsControllerApi.ts +91 -20
  41. package/src/models/CreateProjectRequest.ts +0 -2
  42. package/src/models/DecisionMatrixPattern.ts +1 -5
  43. package/src/models/DecisionMatrixPatternEntry.ts +1 -5
  44. package/src/models/Project.ts +4 -18
  45. package/src/models/ProjectSettings.ts +1 -11
  46. package/src/models/ReviewDecisionMatrix.ts +0 -4
  47. package/src/runtime.ts +146 -6
  48. package/tsconfig.json +1 -1
@@ -0,0 +1,264 @@
1
+ # ProjectsControllerApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createProject**](ProjectsControllerApi.md#createprojectoperation) | **POST** /projects | |
8
+ | [**deleteProject**](ProjectsControllerApi.md#deleteproject) | **DELETE** /projects/{id} | |
9
+ | [**getAllProjects**](ProjectsControllerApi.md#getallprojects) | **GET** /projects | |
10
+ | [**getProject**](ProjectsControllerApi.md#getproject) | **GET** /projects/{id} | |
11
+
12
+
13
+
14
+ ## createProject
15
+
16
+ > Project createProject(createProjectRequest)
17
+
18
+
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ ProjectsControllerApi,
26
+ } from '@se-uulm/snowballr-api-client';
27
+ import type { CreateProjectOperationRequest } from '@se-uulm/snowballr-api-client';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
31
+ const api = new ProjectsControllerApi();
32
+
33
+ const body = {
34
+ // CreateProjectRequest
35
+ createProjectRequest: ...,
36
+ } satisfies CreateProjectOperationRequest;
37
+
38
+ try {
39
+ const data = await api.createProject(body);
40
+ console.log(data);
41
+ } catch (error) {
42
+ console.error(error);
43
+ }
44
+ }
45
+
46
+ // Run the test
47
+ example().catch(console.error);
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+
53
+ | Name | Type | Description | Notes |
54
+ |------------- | ------------- | ------------- | -------------|
55
+ | **createProjectRequest** | [CreateProjectRequest](CreateProjectRequest.md) | | |
56
+
57
+ ### Return type
58
+
59
+ [**Project**](Project.md)
60
+
61
+ ### Authorization
62
+
63
+ No authorization required
64
+
65
+ ### HTTP request headers
66
+
67
+ - **Content-Type**: `application/json`
68
+ - **Accept**: `*/*`
69
+
70
+
71
+ ### HTTP response details
72
+ | Status code | Description | Response headers |
73
+ |-------------|-------------|------------------|
74
+ | **200** | OK | - |
75
+
76
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
77
+
78
+
79
+ ## deleteProject
80
+
81
+ > deleteProject(id)
82
+
83
+
84
+
85
+ ### Example
86
+
87
+ ```ts
88
+ import {
89
+ Configuration,
90
+ ProjectsControllerApi,
91
+ } from '@se-uulm/snowballr-api-client';
92
+ import type { DeleteProjectRequest } from '@se-uulm/snowballr-api-client';
93
+
94
+ async function example() {
95
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
96
+ const api = new ProjectsControllerApi();
97
+
98
+ const body = {
99
+ // string
100
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
101
+ } satisfies DeleteProjectRequest;
102
+
103
+ try {
104
+ const data = await api.deleteProject(body);
105
+ console.log(data);
106
+ } catch (error) {
107
+ console.error(error);
108
+ }
109
+ }
110
+
111
+ // Run the test
112
+ example().catch(console.error);
113
+ ```
114
+
115
+ ### Parameters
116
+
117
+
118
+ | Name | Type | Description | Notes |
119
+ |------------- | ------------- | ------------- | -------------|
120
+ | **id** | `string` | | [Defaults to `undefined`] |
121
+
122
+ ### Return type
123
+
124
+ `void` (Empty response body)
125
+
126
+ ### Authorization
127
+
128
+ No authorization required
129
+
130
+ ### HTTP request headers
131
+
132
+ - **Content-Type**: Not defined
133
+ - **Accept**: Not defined
134
+
135
+
136
+ ### HTTP response details
137
+ | Status code | Description | Response headers |
138
+ |-------------|-------------|------------------|
139
+ | **200** | OK | - |
140
+
141
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
142
+
143
+
144
+ ## getAllProjects
145
+
146
+ > Array<Project> getAllProjects()
147
+
148
+
149
+
150
+ ### Example
151
+
152
+ ```ts
153
+ import {
154
+ Configuration,
155
+ ProjectsControllerApi,
156
+ } from '@se-uulm/snowballr-api-client';
157
+ import type { GetAllProjectsRequest } from '@se-uulm/snowballr-api-client';
158
+
159
+ async function example() {
160
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
161
+ const api = new ProjectsControllerApi();
162
+
163
+ try {
164
+ const data = await api.getAllProjects();
165
+ console.log(data);
166
+ } catch (error) {
167
+ console.error(error);
168
+ }
169
+ }
170
+
171
+ // Run the test
172
+ example().catch(console.error);
173
+ ```
174
+
175
+ ### Parameters
176
+
177
+ This endpoint does not need any parameter.
178
+
179
+ ### Return type
180
+
181
+ [**Array<Project>**](Project.md)
182
+
183
+ ### Authorization
184
+
185
+ No authorization required
186
+
187
+ ### HTTP request headers
188
+
189
+ - **Content-Type**: Not defined
190
+ - **Accept**: `*/*`
191
+
192
+
193
+ ### HTTP response details
194
+ | Status code | Description | Response headers |
195
+ |-------------|-------------|------------------|
196
+ | **200** | OK | - |
197
+
198
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
199
+
200
+
201
+ ## getProject
202
+
203
+ > Project getProject(id)
204
+
205
+
206
+
207
+ ### Example
208
+
209
+ ```ts
210
+ import {
211
+ Configuration,
212
+ ProjectsControllerApi,
213
+ } from '@se-uulm/snowballr-api-client';
214
+ import type { GetProjectRequest } from '@se-uulm/snowballr-api-client';
215
+
216
+ async function example() {
217
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
218
+ const api = new ProjectsControllerApi();
219
+
220
+ const body = {
221
+ // string
222
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
223
+ } satisfies GetProjectRequest;
224
+
225
+ try {
226
+ const data = await api.getProject(body);
227
+ console.log(data);
228
+ } catch (error) {
229
+ console.error(error);
230
+ }
231
+ }
232
+
233
+ // Run the test
234
+ example().catch(console.error);
235
+ ```
236
+
237
+ ### Parameters
238
+
239
+
240
+ | Name | Type | Description | Notes |
241
+ |------------- | ------------- | ------------- | -------------|
242
+ | **id** | `string` | | [Defaults to `undefined`] |
243
+
244
+ ### Return type
245
+
246
+ [**Project**](Project.md)
247
+
248
+ ### Authorization
249
+
250
+ No authorization required
251
+
252
+ ### HTTP request headers
253
+
254
+ - **Content-Type**: Not defined
255
+ - **Accept**: `*/*`
256
+
257
+
258
+ ### HTTP response details
259
+ | Status code | Description | Response headers |
260
+ |-------------|-------------|------------------|
261
+ | **200** | OK | - |
262
+
263
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
264
+
@@ -0,0 +1,36 @@
1
+
2
+ # ReviewDecisionMatrix
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `numberOfReviewers` | number
10
+ `patterns` | [Array<DecisionMatrixPattern>](DecisionMatrixPattern.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ReviewDecisionMatrix } from '@se-uulm/snowballr-api-client'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "numberOfReviewers": null,
20
+ "patterns": null,
21
+ } satisfies ReviewDecisionMatrix
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ReviewDecisionMatrix
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-uulm/snowballr-api-client",
3
- "version": "0.2.1-alpha.04f980a",
3
+ "version": "0.2.1-alpha.08a35a4",
4
4
  "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "license": "GPL-3.0-or-later",
11
11
  "main": "./dist/index.js",
12
- "typings": "./dist/index.d.ts",
12
+ "types": "./dist/index.d.ts",
13
13
  "module": "./dist/esm/index.js",
14
14
  "sideEffects": false,
15
15
  "scripts": {
@@ -12,28 +12,36 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- CreateProjectRequest,
19
- Project,
20
- } from '../models/index';
21
16
  import {
17
+ type CreateProjectRequest,
22
18
  CreateProjectRequestFromJSON,
23
19
  CreateProjectRequestToJSON,
20
+ } from '../models/CreateProjectRequest';
21
+ import {
22
+ type Project,
24
23
  ProjectFromJSON,
25
24
  ProjectToJSON,
26
- } from '../models/index';
25
+ } from '../models/Project';
27
26
 
28
27
  export interface CreateProjectOperationRequest {
28
+ /**
29
+ *
30
+ */
29
31
  createProjectRequest: CreateProjectRequest;
30
32
  }
31
33
 
32
34
  export interface DeleteProjectRequest {
35
+ /**
36
+ *
37
+ */
33
38
  id: string;
34
39
  }
35
40
 
36
41
  export interface GetProjectRequest {
42
+ /**
43
+ *
44
+ */
37
45
  id: string;
38
46
  }
39
47
 
@@ -44,6 +52,14 @@ export interface GetProjectRequest {
44
52
  * @interface ProjectsControllerApiInterface
45
53
  */
46
54
  export interface ProjectsControllerApiInterface {
55
+ /**
56
+ * Creates request options for createProject without sending the request
57
+ * @param {CreateProjectRequest} createProjectRequest
58
+ * @throws {RequiredError}
59
+ * @memberof ProjectsControllerApiInterface
60
+ */
61
+ createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
62
+
47
63
  /**
48
64
  *
49
65
  * @param {CreateProjectRequest} createProjectRequest
@@ -57,6 +73,14 @@ export interface ProjectsControllerApiInterface {
57
73
  */
58
74
  createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
59
75
 
76
+ /**
77
+ * Creates request options for deleteProject without sending the request
78
+ * @param {string} id
79
+ * @throws {RequiredError}
80
+ * @memberof ProjectsControllerApiInterface
81
+ */
82
+ deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
83
+
60
84
  /**
61
85
  *
62
86
  * @param {string} id
@@ -70,6 +94,13 @@ export interface ProjectsControllerApiInterface {
70
94
  */
71
95
  deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
72
96
 
97
+ /**
98
+ * Creates request options for getAllProjects without sending the request
99
+ * @throws {RequiredError}
100
+ * @memberof ProjectsControllerApiInterface
101
+ */
102
+ getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
103
+
73
104
  /**
74
105
  *
75
106
  * @param {*} [options] Override http request option.
@@ -82,6 +113,14 @@ export interface ProjectsControllerApiInterface {
82
113
  */
83
114
  getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
84
115
 
116
+ /**
117
+ * Creates request options for getProject without sending the request
118
+ * @param {string} id
119
+ * @throws {RequiredError}
120
+ * @memberof ProjectsControllerApiInterface
121
+ */
122
+ getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
123
+
85
124
  /**
86
125
  *
87
126
  * @param {string} id
@@ -103,8 +142,9 @@ export interface ProjectsControllerApiInterface {
103
142
  export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
104
143
 
105
144
  /**
145
+ * Creates request options for createProject without sending the request
106
146
  */
107
- async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
147
+ async createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts> {
108
148
  if (requestParameters['createProjectRequest'] == null) {
109
149
  throw new runtime.RequiredError(
110
150
  'createProjectRequest',
@@ -121,13 +161,20 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
121
161
 
122
162
  let urlPath = `/projects`;
123
163
 
124
- const response = await this.request({
164
+ return {
125
165
  path: urlPath,
126
166
  method: 'POST',
127
167
  headers: headerParameters,
128
168
  query: queryParameters,
129
169
  body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
130
- }, initOverrides);
170
+ };
171
+ }
172
+
173
+ /**
174
+ */
175
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
176
+ const requestOptions = await this.createProjectRequestOpts(requestParameters);
177
+ const response = await this.request(requestOptions, initOverrides);
131
178
 
132
179
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
133
180
  }
@@ -140,8 +187,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
140
187
  }
141
188
 
142
189
  /**
190
+ * Creates request options for deleteProject without sending the request
143
191
  */
144
- async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
192
+ async deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts> {
145
193
  if (requestParameters['id'] == null) {
146
194
  throw new runtime.RequiredError(
147
195
  'id',
@@ -155,14 +203,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
155
203
 
156
204
 
157
205
  let urlPath = `/projects/{id}`;
158
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
206
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
159
207
 
160
- const response = await this.request({
208
+ return {
161
209
  path: urlPath,
162
210
  method: 'DELETE',
163
211
  headers: headerParameters,
164
212
  query: queryParameters,
165
- }, initOverrides);
213
+ };
214
+ }
215
+
216
+ /**
217
+ */
218
+ async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
219
+ const requestOptions = await this.deleteProjectRequestOpts(requestParameters);
220
+ const response = await this.request(requestOptions, initOverrides);
166
221
 
167
222
  return new runtime.VoidApiResponse(response);
168
223
  }
@@ -174,8 +229,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
174
229
  }
175
230
 
176
231
  /**
232
+ * Creates request options for getAllProjects without sending the request
177
233
  */
178
- async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
234
+ async getAllProjectsRequestOpts(): Promise<runtime.RequestOpts> {
179
235
  const queryParameters: any = {};
180
236
 
181
237
  const headerParameters: runtime.HTTPHeaders = {};
@@ -183,12 +239,19 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
183
239
 
184
240
  let urlPath = `/projects`;
185
241
 
186
- const response = await this.request({
242
+ return {
187
243
  path: urlPath,
188
244
  method: 'GET',
189
245
  headers: headerParameters,
190
246
  query: queryParameters,
191
- }, initOverrides);
247
+ };
248
+ }
249
+
250
+ /**
251
+ */
252
+ async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
253
+ const requestOptions = await this.getAllProjectsRequestOpts();
254
+ const response = await this.request(requestOptions, initOverrides);
192
255
 
193
256
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
194
257
  }
@@ -201,8 +264,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
201
264
  }
202
265
 
203
266
  /**
267
+ * Creates request options for getProject without sending the request
204
268
  */
205
- async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
269
+ async getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts> {
206
270
  if (requestParameters['id'] == null) {
207
271
  throw new runtime.RequiredError(
208
272
  'id',
@@ -216,14 +280,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
216
280
 
217
281
 
218
282
  let urlPath = `/projects/{id}`;
219
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
283
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
220
284
 
221
- const response = await this.request({
285
+ return {
222
286
  path: urlPath,
223
287
  method: 'GET',
224
288
  headers: headerParameters,
225
289
  query: queryParameters,
226
- }, initOverrides);
290
+ };
291
+ }
292
+
293
+ /**
294
+ */
295
+ async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
296
+ const requestOptions = await this.getProjectRequestOpts(requestParameters);
297
+ const response = await this.request(requestOptions, initOverrides);
227
298
 
228
299
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
229
300
  }
@@ -21,8 +21,6 @@ import { mapValues } from '../runtime';
21
21
  export interface CreateProjectRequest {
22
22
  /**
23
23
  *
24
- * @type {string}
25
- * @memberof CreateProjectRequest
26
24
  */
27
25
  name?: string;
28
26
  }
@@ -29,14 +29,10 @@ import {
29
29
  export interface DecisionMatrixPattern {
30
30
  /**
31
31
  *
32
- * @type {string}
33
- * @memberof DecisionMatrixPattern
34
32
  */
35
33
  decision?: DecisionMatrixPatternDecisionEnum;
36
34
  /**
37
35
  *
38
- * @type {Array<DecisionMatrixPatternEntry>}
39
- * @memberof DecisionMatrixPattern
40
36
  */
41
37
  entries?: Array<DecisionMatrixPatternEntry>;
42
38
  }
@@ -49,7 +45,7 @@ export const DecisionMatrixPatternDecisionEnum = {
49
45
  UNREVIEWED: 'UNREVIEWED',
50
46
  IN_REVIEW: 'IN_REVIEW',
51
47
  DECLINED: 'DECLINED',
52
- ACCEPTED: 'ACCEPTED'
48
+ ACCEPTED: 'ACCEPTED',
53
49
  } as const;
54
50
  export type DecisionMatrixPatternDecisionEnum = typeof DecisionMatrixPatternDecisionEnum[keyof typeof DecisionMatrixPatternDecisionEnum];
55
51
 
@@ -21,14 +21,10 @@ import { mapValues } from '../runtime';
21
21
  export interface DecisionMatrixPatternEntry {
22
22
  /**
23
23
  *
24
- * @type {string}
25
- * @memberof DecisionMatrixPatternEntry
26
24
  */
27
25
  decision?: DecisionMatrixPatternEntryDecisionEnum;
28
26
  /**
29
27
  *
30
- * @type {number}
31
- * @memberof DecisionMatrixPatternEntry
32
28
  */
33
29
  count?: number;
34
30
  }
@@ -40,7 +36,7 @@ export interface DecisionMatrixPatternEntry {
40
36
  export const DecisionMatrixPatternEntryDecisionEnum = {
41
37
  DECLINED: 'DECLINED',
42
38
  MAYBE: 'MAYBE',
43
- ACCEPTED: 'ACCEPTED'
39
+ ACCEPTED: 'ACCEPTED',
44
40
  } as const;
45
41
  export type DecisionMatrixPatternEntryDecisionEnum = typeof DecisionMatrixPatternEntryDecisionEnum[keyof typeof DecisionMatrixPatternEntryDecisionEnum];
46
42
 
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime';
16
16
  import type { ProjectSettings } from './ProjectSettings';
17
17
  import {
18
18
  ProjectSettingsFromJSON,
@@ -29,44 +29,30 @@ import {
29
29
  export interface Project {
30
30
  /**
31
31
  *
32
- * @type {string}
33
- * @memberof Project
34
32
  */
35
33
  id?: string;
36
34
  /**
37
35
  *
38
- * @type {string}
39
- * @memberof Project
40
36
  */
41
37
  name?: string;
42
38
  /**
43
39
  *
44
- * @type {string}
45
- * @memberof Project
46
40
  */
47
41
  status?: ProjectStatusEnum;
48
42
  /**
49
43
  *
50
- * @type {number}
51
- * @memberof Project
52
44
  */
53
45
  currentStage?: number;
54
46
  /**
55
47
  *
56
- * @type {number}
57
- * @memberof Project
58
48
  */
59
49
  maxStage?: number;
60
50
  /**
61
51
  *
62
- * @type {Date}
63
- * @memberof Project
64
52
  */
65
53
  currentStageStartedAt?: Date;
66
54
  /**
67
55
  *
68
- * @type {ProjectSettings}
69
- * @memberof Project
70
56
  */
71
57
  settings?: ProjectSettings;
72
58
  }
@@ -80,7 +66,7 @@ export const ProjectStatusEnum = {
80
66
  ACTIVE_LOCKED: 'ACTIVE_LOCKED',
81
67
  ARCHIVED: 'ARCHIVED',
82
68
  DELETED: 'DELETED',
83
- CLEARED: 'CLEARED'
69
+ CLEARED: 'CLEARED',
84
70
  } as const;
85
71
  export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
86
72
 
@@ -107,7 +93,7 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
107
93
  'status': json['status'] == null ? undefined : json['status'],
108
94
  'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
109
95
  'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
110
- 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
96
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
111
97
  'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
112
98
  };
113
99
  }
@@ -128,7 +114,7 @@ export function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator:
128
114
  'status': value['status'],
129
115
  'currentStage': value['currentStage'],
130
116
  'maxStage': value['maxStage'],
131
- 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
117
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
132
118
  'settings': ProjectSettingsToJSON(value['settings']),
133
119
  };
134
120
  }