keplar-api 0.0.18 → 0.0.19

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 (36) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +3 -3
  4. package/dist/models/JoinCodeInvite302ResponseSettings.js +3 -3
  5. package/dist/models/OptionKind.d.ts +26 -0
  6. package/dist/models/OptionKind.js +52 -0
  7. package/dist/models/ProjectConfig.d.ts +3 -3
  8. package/dist/models/ProjectConfig.js +3 -3
  9. package/dist/models/ScreenerQuestion.d.ts +27 -0
  10. package/dist/models/ScreenerQuestion.js +54 -0
  11. package/dist/models/ScreenerQuestionChooseMultiple.d.ts +78 -0
  12. package/dist/models/ScreenerQuestionChooseMultiple.js +82 -0
  13. package/dist/models/ScreenerQuestionChooseMultipleOptionsValue.d.ts +53 -0
  14. package/dist/models/ScreenerQuestionChooseMultipleOptionsValue.js +66 -0
  15. package/dist/models/ScreenerQuestionChooseMultiplePublic.d.ts +72 -0
  16. package/dist/models/ScreenerQuestionChooseMultiplePublic.js +78 -0
  17. package/dist/models/ScreenerQuestionOption.d.ts +53 -0
  18. package/dist/models/ScreenerQuestionOption.js +66 -0
  19. package/dist/models/ScreenerQuestionPublic.d.ts +23 -0
  20. package/dist/models/ScreenerQuestionPublic.js +58 -0
  21. package/dist/models/ScreenerQuestionResponse.d.ts +2 -8
  22. package/dist/models/ScreenerQuestionResponse.js +0 -4
  23. package/dist/models/index.d.ts +7 -0
  24. package/dist/models/index.js +7 -0
  25. package/package.json +1 -1
  26. package/src/models/JoinCodeInvite302ResponseSettings.ts +11 -11
  27. package/src/models/OptionKind.ts +54 -0
  28. package/src/models/ProjectConfig.ts +11 -11
  29. package/src/models/ScreenerQuestion.ts +72 -0
  30. package/src/models/ScreenerQuestionChooseMultiple.ts +137 -0
  31. package/src/models/ScreenerQuestionChooseMultipleOptionsValue.ts +95 -0
  32. package/src/models/ScreenerQuestionChooseMultiplePublic.ts +128 -0
  33. package/src/models/ScreenerQuestionOption.ts +95 -0
  34. package/src/models/ScreenerQuestionPublic.ts +76 -0
  35. package/src/models/ScreenerQuestionResponse.ts +2 -11
  36. package/src/models/index.ts +7 -0
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
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.ScreenerQuestionChooseMultiplePublicTypeEnum = void 0;
17
+ exports.instanceOfScreenerQuestionChooseMultiplePublic = instanceOfScreenerQuestionChooseMultiplePublic;
18
+ exports.ScreenerQuestionChooseMultiplePublicFromJSON = ScreenerQuestionChooseMultiplePublicFromJSON;
19
+ exports.ScreenerQuestionChooseMultiplePublicFromJSONTyped = ScreenerQuestionChooseMultiplePublicFromJSONTyped;
20
+ exports.ScreenerQuestionChooseMultiplePublicToJSON = ScreenerQuestionChooseMultiplePublicToJSON;
21
+ exports.ScreenerQuestionChooseMultiplePublicToJSONTyped = ScreenerQuestionChooseMultiplePublicToJSONTyped;
22
+ var runtime_1 = require("../runtime");
23
+ var ScreenerQuestionChooseMultipleOptionsValue_1 = require("./ScreenerQuestionChooseMultipleOptionsValue");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ScreenerQuestionChooseMultiplePublicTypeEnum = {
28
+ ChooseMultiple: 'chooseMultiple'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ScreenerQuestionChooseMultiplePublic interface.
32
+ */
33
+ function instanceOfScreenerQuestionChooseMultiplePublic(value) {
34
+ if (!('type' in value) || value['type'] === undefined)
35
+ return false;
36
+ if (!('question' in value) || value['question'] === undefined)
37
+ return false;
38
+ if (!('options' in value) || value['options'] === undefined)
39
+ return false;
40
+ if (!('showSelectAllOfAbove' in value) || value['showSelectAllOfAbove'] === undefined)
41
+ return false;
42
+ if (!('showSelectNoneOfAbove' in value) || value['showSelectNoneOfAbove'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function ScreenerQuestionChooseMultiplePublicFromJSON(json) {
47
+ return ScreenerQuestionChooseMultiplePublicFromJSONTyped(json, false);
48
+ }
49
+ function ScreenerQuestionChooseMultiplePublicFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'type': json['type'],
55
+ 'question': json['question'],
56
+ 'options': ((0, runtime_1.mapValues)(json['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
57
+ 'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
58
+ 'showSelectAllOfAbove': json['showSelectAllOfAbove'],
59
+ 'showSelectNoneOfAbove': json['showSelectNoneOfAbove'],
60
+ };
61
+ }
62
+ function ScreenerQuestionChooseMultiplePublicToJSON(json) {
63
+ return ScreenerQuestionChooseMultiplePublicToJSONTyped(json, false);
64
+ }
65
+ function ScreenerQuestionChooseMultiplePublicToJSONTyped(value, ignoreDiscriminator) {
66
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'type': value['type'],
72
+ 'question': value['question'],
73
+ 'options': ((0, runtime_1.mapValues)(value['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueToJSON)),
74
+ 'randomizeOrder': value['randomizeOrder'],
75
+ 'showSelectAllOfAbove': value['showSelectAllOfAbove'],
76
+ 'showSelectNoneOfAbove': value['showSelectNoneOfAbove'],
77
+ };
78
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 ScreenerQuestionOption
16
+ */
17
+ export interface ScreenerQuestionOption {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScreenerQuestionOption
22
+ */
23
+ optionText: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ScreenerQuestionOption
28
+ */
29
+ optionKind?: ScreenerQuestionOptionOptionKindEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ScreenerQuestionOption
34
+ */
35
+ index: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ScreenerQuestionOptionOptionKindEnum: {
41
+ readonly Neutral: "neutral";
42
+ readonly ScreenOutIfSelected: "screenOutIfSelected";
43
+ readonly PassingOption: "passingOption";
44
+ };
45
+ export type ScreenerQuestionOptionOptionKindEnum = typeof ScreenerQuestionOptionOptionKindEnum[keyof typeof ScreenerQuestionOptionOptionKindEnum];
46
+ /**
47
+ * Check if a given object implements the ScreenerQuestionOption interface.
48
+ */
49
+ export declare function instanceOfScreenerQuestionOption(value: object): value is ScreenerQuestionOption;
50
+ export declare function ScreenerQuestionOptionFromJSON(json: any): ScreenerQuestionOption;
51
+ export declare function ScreenerQuestionOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionOption;
52
+ export declare function ScreenerQuestionOptionToJSON(json: any): ScreenerQuestionOption;
53
+ export declare function ScreenerQuestionOptionToJSONTyped(value?: ScreenerQuestionOption | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
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.ScreenerQuestionOptionOptionKindEnum = void 0;
17
+ exports.instanceOfScreenerQuestionOption = instanceOfScreenerQuestionOption;
18
+ exports.ScreenerQuestionOptionFromJSON = ScreenerQuestionOptionFromJSON;
19
+ exports.ScreenerQuestionOptionFromJSONTyped = ScreenerQuestionOptionFromJSONTyped;
20
+ exports.ScreenerQuestionOptionToJSON = ScreenerQuestionOptionToJSON;
21
+ exports.ScreenerQuestionOptionToJSONTyped = ScreenerQuestionOptionToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ScreenerQuestionOptionOptionKindEnum = {
26
+ Neutral: 'neutral',
27
+ ScreenOutIfSelected: 'screenOutIfSelected',
28
+ PassingOption: 'passingOption'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ScreenerQuestionOption interface.
32
+ */
33
+ function instanceOfScreenerQuestionOption(value) {
34
+ if (!('optionText' in value) || value['optionText'] === undefined)
35
+ return false;
36
+ if (!('index' in value) || value['index'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ScreenerQuestionOptionFromJSON(json) {
41
+ return ScreenerQuestionOptionFromJSONTyped(json, false);
42
+ }
43
+ function ScreenerQuestionOptionFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'optionText': json['optionText'],
49
+ 'optionKind': json['optionKind'] == null ? undefined : json['optionKind'],
50
+ 'index': json['index'],
51
+ };
52
+ }
53
+ function ScreenerQuestionOptionToJSON(json) {
54
+ return ScreenerQuestionOptionToJSONTyped(json, false);
55
+ }
56
+ function ScreenerQuestionOptionToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'optionText': value['optionText'],
63
+ 'optionKind': value['optionKind'],
64
+ 'index': value['index'],
65
+ };
66
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 { ScreenerQuestionChooseMultiplePublic } from './ScreenerQuestionChooseMultiplePublic';
13
+ import type { ScreenerQuestionChooseOnePublic } from './ScreenerQuestionChooseOnePublic';
14
+ /**
15
+ * @type ScreenerQuestionPublic
16
+ *
17
+ * @export
18
+ */
19
+ export type ScreenerQuestionPublic = ScreenerQuestionChooseMultiplePublic | ScreenerQuestionChooseOnePublic;
20
+ export declare function ScreenerQuestionPublicFromJSON(json: any): ScreenerQuestionPublic;
21
+ export declare function ScreenerQuestionPublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionPublic;
22
+ export declare function ScreenerQuestionPublicToJSON(json: any): any;
23
+ export declare function ScreenerQuestionPublicToJSONTyped(value?: ScreenerQuestionPublic | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
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.ScreenerQuestionPublicFromJSON = ScreenerQuestionPublicFromJSON;
17
+ exports.ScreenerQuestionPublicFromJSONTyped = ScreenerQuestionPublicFromJSONTyped;
18
+ exports.ScreenerQuestionPublicToJSON = ScreenerQuestionPublicToJSON;
19
+ exports.ScreenerQuestionPublicToJSONTyped = ScreenerQuestionPublicToJSONTyped;
20
+ var ScreenerQuestionChooseMultiplePublic_1 = require("./ScreenerQuestionChooseMultiplePublic");
21
+ var ScreenerQuestionChooseOnePublic_1 = require("./ScreenerQuestionChooseOnePublic");
22
+ function ScreenerQuestionPublicFromJSON(json) {
23
+ return ScreenerQuestionPublicFromJSONTyped(json, false);
24
+ }
25
+ function ScreenerQuestionPublicFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ if (typeof json !== 'object') {
30
+ return json;
31
+ }
32
+ if ((0, ScreenerQuestionChooseMultiplePublic_1.instanceOfScreenerQuestionChooseMultiplePublic)(json)) {
33
+ return (0, ScreenerQuestionChooseMultiplePublic_1.ScreenerQuestionChooseMultiplePublicFromJSONTyped)(json, true);
34
+ }
35
+ if ((0, ScreenerQuestionChooseOnePublic_1.instanceOfScreenerQuestionChooseOnePublic)(json)) {
36
+ return (0, ScreenerQuestionChooseOnePublic_1.ScreenerQuestionChooseOnePublicFromJSONTyped)(json, true);
37
+ }
38
+ return {};
39
+ }
40
+ function ScreenerQuestionPublicToJSON(json) {
41
+ return ScreenerQuestionPublicToJSONTyped(json, false);
42
+ }
43
+ function ScreenerQuestionPublicToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ if (typeof value !== 'object') {
49
+ return value;
50
+ }
51
+ if ((0, ScreenerQuestionChooseMultiplePublic_1.instanceOfScreenerQuestionChooseMultiplePublic)(value)) {
52
+ return (0, ScreenerQuestionChooseMultiplePublic_1.ScreenerQuestionChooseMultiplePublicToJSON)(value);
53
+ }
54
+ if ((0, ScreenerQuestionChooseOnePublic_1.instanceOfScreenerQuestionChooseOnePublic)(value)) {
55
+ return (0, ScreenerQuestionChooseOnePublic_1.ScreenerQuestionChooseOnePublicToJSON)(value);
56
+ }
57
+ return {};
58
+ }
@@ -23,16 +23,10 @@ export interface ScreenerQuestionResponse {
23
23
  question: string;
24
24
  /**
25
25
  *
26
- * @type {string}
27
- * @memberof ScreenerQuestionResponse
28
- */
29
- response: string;
30
- /**
31
- *
32
- * @type {boolean}
26
+ * @type {Array<string>}
33
27
  * @memberof ScreenerQuestionResponse
34
28
  */
35
- passing: boolean;
29
+ response: Array<string>;
36
30
  }
37
31
  /**
38
32
  * Check if a given object implements the ScreenerQuestionResponse interface.
@@ -26,8 +26,6 @@ function instanceOfScreenerQuestionResponse(value) {
26
26
  return false;
27
27
  if (!('response' in value) || value['response'] === undefined)
28
28
  return false;
29
- if (!('passing' in value) || value['passing'] === undefined)
30
- return false;
31
29
  return true;
32
30
  }
33
31
  function ScreenerQuestionResponseFromJSON(json) {
@@ -40,7 +38,6 @@ function ScreenerQuestionResponseFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return {
41
39
  'question': json['question'],
42
40
  'response': json['response'],
43
- 'passing': json['passing'],
44
41
  };
45
42
  }
46
43
  function ScreenerQuestionResponseToJSON(json) {
@@ -54,6 +51,5 @@ function ScreenerQuestionResponseToJSONTyped(value, ignoreDiscriminator) {
54
51
  return {
55
52
  'question': value['question'],
56
53
  'response': value['response'],
57
- 'passing': value['passing'],
58
54
  };
59
55
  }
@@ -128,6 +128,7 @@ export * from './NotFoundErrorResponse';
128
128
  export * from './NumberFilterSchema';
129
129
  export * from './OpenAiModelConfig';
130
130
  export * from './OpenAiModelConfigModel';
131
+ export * from './OptionKind';
131
132
  export * from './Org';
132
133
  export * from './OrgData';
133
134
  export * from './PanelQualification';
@@ -178,8 +179,14 @@ export * from './ResponseRedirectEvent';
178
179
  export * from './ResponseStartCallEvent';
179
180
  export * from './ResponseSubmitEmailEvent';
180
181
  export * from './ResponseSubmitScreenerEvent';
182
+ export * from './ScreenerQuestion';
183
+ export * from './ScreenerQuestionChooseMultiple';
184
+ export * from './ScreenerQuestionChooseMultipleOptionsValue';
185
+ export * from './ScreenerQuestionChooseMultiplePublic';
181
186
  export * from './ScreenerQuestionChooseOne';
182
187
  export * from './ScreenerQuestionChooseOnePublic';
188
+ export * from './ScreenerQuestionOption';
189
+ export * from './ScreenerQuestionPublic';
183
190
  export * from './ScreenerQuestionResponse';
184
191
  export * from './SearchProjectTranscriptsResponse';
185
192
  export * from './SearchSharedResponseMessages200ResponseInner';
@@ -146,6 +146,7 @@ __exportStar(require("./NotFoundErrorResponse"), exports);
146
146
  __exportStar(require("./NumberFilterSchema"), exports);
147
147
  __exportStar(require("./OpenAiModelConfig"), exports);
148
148
  __exportStar(require("./OpenAiModelConfigModel"), exports);
149
+ __exportStar(require("./OptionKind"), exports);
149
150
  __exportStar(require("./Org"), exports);
150
151
  __exportStar(require("./OrgData"), exports);
151
152
  __exportStar(require("./PanelQualification"), exports);
@@ -196,8 +197,14 @@ __exportStar(require("./ResponseRedirectEvent"), exports);
196
197
  __exportStar(require("./ResponseStartCallEvent"), exports);
197
198
  __exportStar(require("./ResponseSubmitEmailEvent"), exports);
198
199
  __exportStar(require("./ResponseSubmitScreenerEvent"), exports);
200
+ __exportStar(require("./ScreenerQuestion"), exports);
201
+ __exportStar(require("./ScreenerQuestionChooseMultiple"), exports);
202
+ __exportStar(require("./ScreenerQuestionChooseMultipleOptionsValue"), exports);
203
+ __exportStar(require("./ScreenerQuestionChooseMultiplePublic"), exports);
199
204
  __exportStar(require("./ScreenerQuestionChooseOne"), exports);
200
205
  __exportStar(require("./ScreenerQuestionChooseOnePublic"), exports);
206
+ __exportStar(require("./ScreenerQuestionOption"), exports);
207
+ __exportStar(require("./ScreenerQuestionPublic"), exports);
201
208
  __exportStar(require("./ScreenerQuestionResponse"), exports);
202
209
  __exportStar(require("./SearchProjectTranscriptsResponse"), exports);
203
210
  __exportStar(require("./SearchSharedResponseMessages200ResponseInner"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keplar-api",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "OpenAPI client for keplar-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ScreenerQuestionChooseOnePublic } from './ScreenerQuestionChooseOnePublic';
17
- import {
18
- ScreenerQuestionChooseOnePublicFromJSON,
19
- ScreenerQuestionChooseOnePublicFromJSONTyped,
20
- ScreenerQuestionChooseOnePublicToJSON,
21
- ScreenerQuestionChooseOnePublicToJSONTyped,
22
- } from './ScreenerQuestionChooseOnePublic';
23
16
  import type { ProjectFilePublic } from './ProjectFilePublic';
24
17
  import {
25
18
  ProjectFilePublicFromJSON,
@@ -27,6 +20,13 @@ import {
27
20
  ProjectFilePublicToJSON,
28
21
  ProjectFilePublicToJSONTyped,
29
22
  } from './ProjectFilePublic';
23
+ import type { ScreenerQuestionPublic } from './ScreenerQuestionPublic';
24
+ import {
25
+ ScreenerQuestionPublicFromJSON,
26
+ ScreenerQuestionPublicFromJSONTyped,
27
+ ScreenerQuestionPublicToJSON,
28
+ ScreenerQuestionPublicToJSONTyped,
29
+ } from './ScreenerQuestionPublic';
30
30
 
31
31
  /**
32
32
  *
@@ -42,10 +42,10 @@ export interface JoinCodeInvite302ResponseSettings {
42
42
  maxDurationSeconds: number;
43
43
  /**
44
44
  *
45
- * @type {Array<ScreenerQuestionChooseOnePublic>}
45
+ * @type {Array<ScreenerQuestionPublic>}
46
46
  * @memberof JoinCodeInvite302ResponseSettings
47
47
  */
48
- screenerQuestions?: Array<ScreenerQuestionChooseOnePublic>;
48
+ screenerQuestions?: Array<ScreenerQuestionPublic>;
49
49
  /**
50
50
  *
51
51
  * @type {Array<ProjectFilePublic>}
@@ -73,7 +73,7 @@ export function JoinCodeInvite302ResponseSettingsFromJSONTyped(json: any, ignore
73
73
  return {
74
74
 
75
75
  'maxDurationSeconds': json['maxDurationSeconds'],
76
- 'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionChooseOnePublicFromJSON)),
76
+ 'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionPublicFromJSON)),
77
77
  'files': json['files'] == null ? undefined : ((json['files'] as Array<any>).map(ProjectFilePublicFromJSON)),
78
78
  };
79
79
  }
@@ -90,7 +90,7 @@ export function JoinCodeInvite302ResponseSettingsToJSONTyped(value?: JoinCodeInv
90
90
  return {
91
91
 
92
92
  'maxDurationSeconds': value['maxDurationSeconds'],
93
- 'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionChooseOnePublicToJSON)),
93
+ 'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionPublicToJSON)),
94
94
  'files': value['files'] == null ? undefined : ((value['files'] as Array<any>).map(ProjectFilePublicToJSON)),
95
95
  };
96
96
  }
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const OptionKind = {
21
+ Neutral: 'neutral',
22
+ ScreenOutIfSelected: 'screenOutIfSelected',
23
+ PassingOption: 'passingOption'
24
+ } as const;
25
+ export type OptionKind = typeof OptionKind[keyof typeof OptionKind];
26
+
27
+
28
+ export function instanceOfOptionKind(value: any): boolean {
29
+ for (const key in OptionKind) {
30
+ if (Object.prototype.hasOwnProperty.call(OptionKind, key)) {
31
+ if (OptionKind[key as keyof typeof OptionKind] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function OptionKindFromJSON(json: any): OptionKind {
40
+ return OptionKindFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function OptionKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptionKind {
44
+ return json as OptionKind;
45
+ }
46
+
47
+ export function OptionKindToJSON(value?: OptionKind | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function OptionKindToJSONTyped(value: any, ignoreDiscriminator: boolean): OptionKind {
52
+ return value as OptionKind;
53
+ }
54
+
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { ScreenerQuestionChooseOne } from './ScreenerQuestionChooseOne';
17
- import {
18
- ScreenerQuestionChooseOneFromJSON,
19
- ScreenerQuestionChooseOneFromJSONTyped,
20
- ScreenerQuestionChooseOneToJSON,
21
- ScreenerQuestionChooseOneToJSONTyped,
22
- } from './ScreenerQuestionChooseOne';
23
16
  import type { ProjectBrief } from './ProjectBrief';
24
17
  import {
25
18
  ProjectBriefFromJSON,
@@ -34,6 +27,13 @@ import {
34
27
  ProjectAudienceToJSON,
35
28
  ProjectAudienceToJSONTyped,
36
29
  } from './ProjectAudience';
30
+ import type { ScreenerQuestion } from './ScreenerQuestion';
31
+ import {
32
+ ScreenerQuestionFromJSON,
33
+ ScreenerQuestionFromJSONTyped,
34
+ ScreenerQuestionToJSON,
35
+ ScreenerQuestionToJSONTyped,
36
+ } from './ScreenerQuestion';
37
37
  import type { ProjectKind } from './ProjectKind';
38
38
  import {
39
39
  ProjectKindFromJSON,
@@ -80,10 +80,10 @@ export interface ProjectConfig {
80
80
  briefDocument?: string;
81
81
  /**
82
82
  *
83
- * @type {Array<ScreenerQuestionChooseOne>}
83
+ * @type {Array<ScreenerQuestion>}
84
84
  * @memberof ProjectConfig
85
85
  */
86
- screenerQuestions?: Array<ScreenerQuestionChooseOne>;
86
+ screenerQuestions?: Array<ScreenerQuestion>;
87
87
  /**
88
88
  *
89
89
  * @type {ProjectAudience}
@@ -118,7 +118,7 @@ export function ProjectConfigFromJSONTyped(json: any, ignoreDiscriminator: boole
118
118
  'learningPlan': json['learningPlan'],
119
119
  'brief': json['brief'] == null ? undefined : ProjectBriefFromJSON(json['brief']),
120
120
  'briefDocument': json['briefDocument'] == null ? undefined : json['briefDocument'],
121
- 'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionChooseOneFromJSON)),
121
+ 'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionFromJSON)),
122
122
  'audienceSettings': json['audienceSettings'] == null ? undefined : ProjectAudienceFromJSON(json['audienceSettings']),
123
123
  };
124
124
  }
@@ -139,7 +139,7 @@ export function ProjectConfigToJSONTyped(value?: ProjectConfig | null, ignoreDis
139
139
  'learningPlan': value['learningPlan'],
140
140
  'brief': ProjectBriefToJSON(value['brief']),
141
141
  'briefDocument': value['briefDocument'],
142
- 'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionChooseOneToJSON)),
142
+ 'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionToJSON)),
143
143
  'audienceSettings': ProjectAudienceToJSON(value['audienceSettings']),
144
144
  };
145
145
  }
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
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 type { ScreenerQuestionChooseMultiple } from './ScreenerQuestionChooseMultiple';
16
+ import {
17
+ instanceOfScreenerQuestionChooseMultiple,
18
+ ScreenerQuestionChooseMultipleFromJSON,
19
+ ScreenerQuestionChooseMultipleFromJSONTyped,
20
+ ScreenerQuestionChooseMultipleToJSON,
21
+ } from './ScreenerQuestionChooseMultiple';
22
+ import type { ScreenerQuestionChooseOne } from './ScreenerQuestionChooseOne';
23
+ import {
24
+ instanceOfScreenerQuestionChooseOne,
25
+ ScreenerQuestionChooseOneFromJSON,
26
+ ScreenerQuestionChooseOneFromJSONTyped,
27
+ ScreenerQuestionChooseOneToJSON,
28
+ } from './ScreenerQuestionChooseOne';
29
+
30
+ /**
31
+ * @type ScreenerQuestion
32
+ *
33
+ * @export
34
+ */
35
+ export type ScreenerQuestion = { type: 'chooseMultiple' } & ScreenerQuestionChooseMultiple | { type: 'chooseOne' } & ScreenerQuestionChooseOne;
36
+
37
+ export function ScreenerQuestionFromJSON(json: any): ScreenerQuestion {
38
+ return ScreenerQuestionFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ScreenerQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestion {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ switch (json['type']) {
46
+ case 'chooseMultiple':
47
+ return Object.assign({}, ScreenerQuestionChooseMultipleFromJSONTyped(json, true), { type: 'chooseMultiple' } as const);
48
+ case 'chooseOne':
49
+ return Object.assign({}, ScreenerQuestionChooseOneFromJSONTyped(json, true), { type: 'chooseOne' } as const);
50
+ default:
51
+ return json;
52
+ }
53
+ }
54
+
55
+ export function ScreenerQuestionToJSON(json: any): any {
56
+ return ScreenerQuestionToJSONTyped(json, false);
57
+ }
58
+
59
+ export function ScreenerQuestionToJSONTyped(value?: ScreenerQuestion | null, ignoreDiscriminator: boolean = false): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ switch (value['type']) {
64
+ case 'chooseMultiple':
65
+ return Object.assign({}, ScreenerQuestionChooseMultipleToJSON(value), { type: 'chooseMultiple' } as const);
66
+ case 'chooseOne':
67
+ return Object.assign({}, ScreenerQuestionChooseOneToJSON(value), { type: 'chooseOne' } as const);
68
+ default:
69
+ return value;
70
+ }
71
+ }
72
+