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
@@ -136,6 +136,7 @@ src/models/NotFoundErrorResponse.ts
136
136
  src/models/NumberFilterSchema.ts
137
137
  src/models/OpenAiModelConfig.ts
138
138
  src/models/OpenAiModelConfigModel.ts
139
+ src/models/OptionKind.ts
139
140
  src/models/Org.ts
140
141
  src/models/OrgData.ts
141
142
  src/models/PanelQualification.ts
@@ -186,8 +187,14 @@ src/models/ResponseRedirectEvent.ts
186
187
  src/models/ResponseStartCallEvent.ts
187
188
  src/models/ResponseSubmitEmailEvent.ts
188
189
  src/models/ResponseSubmitScreenerEvent.ts
190
+ src/models/ScreenerQuestion.ts
191
+ src/models/ScreenerQuestionChooseMultiple.ts
192
+ src/models/ScreenerQuestionChooseMultipleOptionsValue.ts
193
+ src/models/ScreenerQuestionChooseMultiplePublic.ts
189
194
  src/models/ScreenerQuestionChooseOne.ts
190
195
  src/models/ScreenerQuestionChooseOnePublic.ts
196
+ src/models/ScreenerQuestionOption.ts
197
+ src/models/ScreenerQuestionPublic.ts
191
198
  src/models/ScreenerQuestionResponse.ts
192
199
  src/models/SearchProjectTranscriptsResponse.ts
193
200
  src/models/SearchSharedResponseMessages200ResponseInner.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## keplar-api@0.0.18
1
+ ## keplar-api@0.0.19
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install keplar-api@0.0.18 --save
39
+ npm install keplar-api@0.0.19 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ScreenerQuestionChooseOnePublic } from './ScreenerQuestionChooseOnePublic';
13
12
  import type { ProjectFilePublic } from './ProjectFilePublic';
13
+ import type { ScreenerQuestionPublic } from './ScreenerQuestionPublic';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -25,10 +25,10 @@ export interface JoinCodeInvite302ResponseSettings {
25
25
  maxDurationSeconds: number;
26
26
  /**
27
27
  *
28
- * @type {Array<ScreenerQuestionChooseOnePublic>}
28
+ * @type {Array<ScreenerQuestionPublic>}
29
29
  * @memberof JoinCodeInvite302ResponseSettings
30
30
  */
31
- screenerQuestions?: Array<ScreenerQuestionChooseOnePublic>;
31
+ screenerQuestions?: Array<ScreenerQuestionPublic>;
32
32
  /**
33
33
  *
34
34
  * @type {Array<ProjectFilePublic>}
@@ -18,8 +18,8 @@ exports.JoinCodeInvite302ResponseSettingsFromJSON = JoinCodeInvite302ResponseSet
18
18
  exports.JoinCodeInvite302ResponseSettingsFromJSONTyped = JoinCodeInvite302ResponseSettingsFromJSONTyped;
19
19
  exports.JoinCodeInvite302ResponseSettingsToJSON = JoinCodeInvite302ResponseSettingsToJSON;
20
20
  exports.JoinCodeInvite302ResponseSettingsToJSONTyped = JoinCodeInvite302ResponseSettingsToJSONTyped;
21
- var ScreenerQuestionChooseOnePublic_1 = require("./ScreenerQuestionChooseOnePublic");
22
21
  var ProjectFilePublic_1 = require("./ProjectFilePublic");
22
+ var ScreenerQuestionPublic_1 = require("./ScreenerQuestionPublic");
23
23
  /**
24
24
  * Check if a given object implements the JoinCodeInvite302ResponseSettings interface.
25
25
  */
@@ -37,7 +37,7 @@ function JoinCodeInvite302ResponseSettingsFromJSONTyped(json, ignoreDiscriminato
37
37
  }
38
38
  return {
39
39
  'maxDurationSeconds': json['maxDurationSeconds'],
40
- 'screenerQuestions': json['screenerQuestions'] == null ? undefined : (json['screenerQuestions'].map(ScreenerQuestionChooseOnePublic_1.ScreenerQuestionChooseOnePublicFromJSON)),
40
+ 'screenerQuestions': json['screenerQuestions'] == null ? undefined : (json['screenerQuestions'].map(ScreenerQuestionPublic_1.ScreenerQuestionPublicFromJSON)),
41
41
  'files': json['files'] == null ? undefined : (json['files'].map(ProjectFilePublic_1.ProjectFilePublicFromJSON)),
42
42
  };
43
43
  }
@@ -51,7 +51,7 @@ function JoinCodeInvite302ResponseSettingsToJSONTyped(value, ignoreDiscriminator
51
51
  }
52
52
  return {
53
53
  'maxDurationSeconds': value['maxDurationSeconds'],
54
- 'screenerQuestions': value['screenerQuestions'] == null ? undefined : (value['screenerQuestions'].map(ScreenerQuestionChooseOnePublic_1.ScreenerQuestionChooseOnePublicToJSON)),
54
+ 'screenerQuestions': value['screenerQuestions'] == null ? undefined : (value['screenerQuestions'].map(ScreenerQuestionPublic_1.ScreenerQuestionPublicToJSON)),
55
55
  'files': value['files'] == null ? undefined : (value['files'].map(ProjectFilePublic_1.ProjectFilePublicToJSON)),
56
56
  };
57
57
  }
@@ -0,0 +1,26 @@
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
+ */
16
+ export declare const OptionKind: {
17
+ readonly Neutral: "neutral";
18
+ readonly ScreenOutIfSelected: "screenOutIfSelected";
19
+ readonly PassingOption: "passingOption";
20
+ };
21
+ export type OptionKind = typeof OptionKind[keyof typeof OptionKind];
22
+ export declare function instanceOfOptionKind(value: any): boolean;
23
+ export declare function OptionKindFromJSON(json: any): OptionKind;
24
+ export declare function OptionKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptionKind;
25
+ export declare function OptionKindToJSON(value?: OptionKind | null): any;
26
+ export declare function OptionKindToJSONTyped(value: any, ignoreDiscriminator: boolean): OptionKind;
@@ -0,0 +1,52 @@
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.OptionKind = void 0;
17
+ exports.instanceOfOptionKind = instanceOfOptionKind;
18
+ exports.OptionKindFromJSON = OptionKindFromJSON;
19
+ exports.OptionKindFromJSONTyped = OptionKindFromJSONTyped;
20
+ exports.OptionKindToJSON = OptionKindToJSON;
21
+ exports.OptionKindToJSONTyped = OptionKindToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.OptionKind = {
27
+ Neutral: 'neutral',
28
+ ScreenOutIfSelected: 'screenOutIfSelected',
29
+ PassingOption: 'passingOption'
30
+ };
31
+ function instanceOfOptionKind(value) {
32
+ for (var key in exports.OptionKind) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.OptionKind, key)) {
34
+ if (exports.OptionKind[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function OptionKindFromJSON(json) {
42
+ return OptionKindFromJSONTyped(json, false);
43
+ }
44
+ function OptionKindFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function OptionKindToJSON(value) {
48
+ return value;
49
+ }
50
+ function OptionKindToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ScreenerQuestionChooseOne } from './ScreenerQuestionChooseOne';
13
12
  import type { ProjectBrief } from './ProjectBrief';
14
13
  import type { ProjectAudience } from './ProjectAudience';
14
+ import type { ScreenerQuestion } from './ScreenerQuestion';
15
15
  import type { ProjectKind } from './ProjectKind';
16
16
  /**
17
17
  *
@@ -53,10 +53,10 @@ export interface ProjectConfig {
53
53
  briefDocument?: string;
54
54
  /**
55
55
  *
56
- * @type {Array<ScreenerQuestionChooseOne>}
56
+ * @type {Array<ScreenerQuestion>}
57
57
  * @memberof ProjectConfig
58
58
  */
59
- screenerQuestions?: Array<ScreenerQuestionChooseOne>;
59
+ screenerQuestions?: Array<ScreenerQuestion>;
60
60
  /**
61
61
  *
62
62
  * @type {ProjectAudience}
@@ -18,9 +18,9 @@ exports.ProjectConfigFromJSON = ProjectConfigFromJSON;
18
18
  exports.ProjectConfigFromJSONTyped = ProjectConfigFromJSONTyped;
19
19
  exports.ProjectConfigToJSON = ProjectConfigToJSON;
20
20
  exports.ProjectConfigToJSONTyped = ProjectConfigToJSONTyped;
21
- var ScreenerQuestionChooseOne_1 = require("./ScreenerQuestionChooseOne");
22
21
  var ProjectBrief_1 = require("./ProjectBrief");
23
22
  var ProjectAudience_1 = require("./ProjectAudience");
23
+ var ScreenerQuestion_1 = require("./ScreenerQuestion");
24
24
  var ProjectKind_1 = require("./ProjectKind");
25
25
  /**
26
26
  * Check if a given object implements the ProjectConfig interface.
@@ -45,7 +45,7 @@ function ProjectConfigFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'learningPlan': json['learningPlan'],
46
46
  'brief': json['brief'] == null ? undefined : (0, ProjectBrief_1.ProjectBriefFromJSON)(json['brief']),
47
47
  'briefDocument': json['briefDocument'] == null ? undefined : json['briefDocument'],
48
- 'screenerQuestions': json['screenerQuestions'] == null ? undefined : (json['screenerQuestions'].map(ScreenerQuestionChooseOne_1.ScreenerQuestionChooseOneFromJSON)),
48
+ 'screenerQuestions': json['screenerQuestions'] == null ? undefined : (json['screenerQuestions'].map(ScreenerQuestion_1.ScreenerQuestionFromJSON)),
49
49
  'audienceSettings': json['audienceSettings'] == null ? undefined : (0, ProjectAudience_1.ProjectAudienceFromJSON)(json['audienceSettings']),
50
50
  };
51
51
  }
@@ -63,7 +63,7 @@ function ProjectConfigToJSONTyped(value, ignoreDiscriminator) {
63
63
  'learningPlan': value['learningPlan'],
64
64
  'brief': (0, ProjectBrief_1.ProjectBriefToJSON)(value['brief']),
65
65
  'briefDocument': value['briefDocument'],
66
- 'screenerQuestions': value['screenerQuestions'] == null ? undefined : (value['screenerQuestions'].map(ScreenerQuestionChooseOne_1.ScreenerQuestionChooseOneToJSON)),
66
+ 'screenerQuestions': value['screenerQuestions'] == null ? undefined : (value['screenerQuestions'].map(ScreenerQuestion_1.ScreenerQuestionToJSON)),
67
67
  'audienceSettings': (0, ProjectAudience_1.ProjectAudienceToJSON)(value['audienceSettings']),
68
68
  };
69
69
  }
@@ -0,0 +1,27 @@
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 { ScreenerQuestionChooseMultiple } from './ScreenerQuestionChooseMultiple';
13
+ import type { ScreenerQuestionChooseOne } from './ScreenerQuestionChooseOne';
14
+ /**
15
+ * @type ScreenerQuestion
16
+ *
17
+ * @export
18
+ */
19
+ export type ScreenerQuestion = {
20
+ type: 'chooseMultiple';
21
+ } & ScreenerQuestionChooseMultiple | {
22
+ type: 'chooseOne';
23
+ } & ScreenerQuestionChooseOne;
24
+ export declare function ScreenerQuestionFromJSON(json: any): ScreenerQuestion;
25
+ export declare function ScreenerQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestion;
26
+ export declare function ScreenerQuestionToJSON(json: any): any;
27
+ export declare function ScreenerQuestionToJSONTyped(value?: ScreenerQuestion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.ScreenerQuestionFromJSON = ScreenerQuestionFromJSON;
17
+ exports.ScreenerQuestionFromJSONTyped = ScreenerQuestionFromJSONTyped;
18
+ exports.ScreenerQuestionToJSON = ScreenerQuestionToJSON;
19
+ exports.ScreenerQuestionToJSONTyped = ScreenerQuestionToJSONTyped;
20
+ var ScreenerQuestionChooseMultiple_1 = require("./ScreenerQuestionChooseMultiple");
21
+ var ScreenerQuestionChooseOne_1 = require("./ScreenerQuestionChooseOne");
22
+ function ScreenerQuestionFromJSON(json) {
23
+ return ScreenerQuestionFromJSONTyped(json, false);
24
+ }
25
+ function ScreenerQuestionFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ switch (json['type']) {
30
+ case 'chooseMultiple':
31
+ return Object.assign({}, (0, ScreenerQuestionChooseMultiple_1.ScreenerQuestionChooseMultipleFromJSONTyped)(json, true), { type: 'chooseMultiple' });
32
+ case 'chooseOne':
33
+ return Object.assign({}, (0, ScreenerQuestionChooseOne_1.ScreenerQuestionChooseOneFromJSONTyped)(json, true), { type: 'chooseOne' });
34
+ default:
35
+ return json;
36
+ }
37
+ }
38
+ function ScreenerQuestionToJSON(json) {
39
+ return ScreenerQuestionToJSONTyped(json, false);
40
+ }
41
+ function ScreenerQuestionToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ switch (value['type']) {
47
+ case 'chooseMultiple':
48
+ return Object.assign({}, (0, ScreenerQuestionChooseMultiple_1.ScreenerQuestionChooseMultipleToJSON)(value), { type: 'chooseMultiple' });
49
+ case 'chooseOne':
50
+ return Object.assign({}, (0, ScreenerQuestionChooseOne_1.ScreenerQuestionChooseOneToJSON)(value), { type: 'chooseOne' });
51
+ default:
52
+ return value;
53
+ }
54
+ }
@@ -0,0 +1,78 @@
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 { ScreenerQuestionChooseMultipleOptionsValue } from './ScreenerQuestionChooseMultipleOptionsValue';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScreenerQuestionChooseMultiple
17
+ */
18
+ export interface ScreenerQuestionChooseMultiple {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ScreenerQuestionChooseMultiple
23
+ */
24
+ type: ScreenerQuestionChooseMultipleTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ScreenerQuestionChooseMultiple
29
+ */
30
+ question: string;
31
+ /**
32
+ *
33
+ * @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
34
+ * @memberof ScreenerQuestionChooseMultiple
35
+ */
36
+ options: {
37
+ [key: string]: ScreenerQuestionChooseMultipleOptionsValue;
38
+ };
39
+ /**
40
+ *
41
+ * @type {number}
42
+ * @memberof ScreenerQuestionChooseMultiple
43
+ */
44
+ minPassingOptions: number;
45
+ /**
46
+ *
47
+ * @type {boolean}
48
+ * @memberof ScreenerQuestionChooseMultiple
49
+ */
50
+ randomizeOrder?: boolean;
51
+ /**
52
+ *
53
+ * @type {boolean}
54
+ * @memberof ScreenerQuestionChooseMultiple
55
+ */
56
+ showSelectAllOfAbove: boolean;
57
+ /**
58
+ *
59
+ * @type {boolean}
60
+ * @memberof ScreenerQuestionChooseMultiple
61
+ */
62
+ showSelectNoneOfAbove: boolean;
63
+ }
64
+ /**
65
+ * @export
66
+ */
67
+ export declare const ScreenerQuestionChooseMultipleTypeEnum: {
68
+ readonly ChooseMultiple: "chooseMultiple";
69
+ };
70
+ export type ScreenerQuestionChooseMultipleTypeEnum = typeof ScreenerQuestionChooseMultipleTypeEnum[keyof typeof ScreenerQuestionChooseMultipleTypeEnum];
71
+ /**
72
+ * Check if a given object implements the ScreenerQuestionChooseMultiple interface.
73
+ */
74
+ export declare function instanceOfScreenerQuestionChooseMultiple(value: object): value is ScreenerQuestionChooseMultiple;
75
+ export declare function ScreenerQuestionChooseMultipleFromJSON(json: any): ScreenerQuestionChooseMultiple;
76
+ export declare function ScreenerQuestionChooseMultipleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseMultiple;
77
+ export declare function ScreenerQuestionChooseMultipleToJSON(json: any): ScreenerQuestionChooseMultiple;
78
+ export declare function ScreenerQuestionChooseMultipleToJSONTyped(value?: ScreenerQuestionChooseMultiple | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.ScreenerQuestionChooseMultipleTypeEnum = void 0;
17
+ exports.instanceOfScreenerQuestionChooseMultiple = instanceOfScreenerQuestionChooseMultiple;
18
+ exports.ScreenerQuestionChooseMultipleFromJSON = ScreenerQuestionChooseMultipleFromJSON;
19
+ exports.ScreenerQuestionChooseMultipleFromJSONTyped = ScreenerQuestionChooseMultipleFromJSONTyped;
20
+ exports.ScreenerQuestionChooseMultipleToJSON = ScreenerQuestionChooseMultipleToJSON;
21
+ exports.ScreenerQuestionChooseMultipleToJSONTyped = ScreenerQuestionChooseMultipleToJSONTyped;
22
+ var runtime_1 = require("../runtime");
23
+ var ScreenerQuestionChooseMultipleOptionsValue_1 = require("./ScreenerQuestionChooseMultipleOptionsValue");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ScreenerQuestionChooseMultipleTypeEnum = {
28
+ ChooseMultiple: 'chooseMultiple'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ScreenerQuestionChooseMultiple interface.
32
+ */
33
+ function instanceOfScreenerQuestionChooseMultiple(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 (!('minPassingOptions' in value) || value['minPassingOptions'] === undefined)
41
+ return false;
42
+ if (!('showSelectAllOfAbove' in value) || value['showSelectAllOfAbove'] === undefined)
43
+ return false;
44
+ if (!('showSelectNoneOfAbove' in value) || value['showSelectNoneOfAbove'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function ScreenerQuestionChooseMultipleFromJSON(json) {
49
+ return ScreenerQuestionChooseMultipleFromJSONTyped(json, false);
50
+ }
51
+ function ScreenerQuestionChooseMultipleFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'type': json['type'],
57
+ 'question': json['question'],
58
+ 'options': ((0, runtime_1.mapValues)(json['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
59
+ 'minPassingOptions': json['minPassingOptions'],
60
+ 'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
61
+ 'showSelectAllOfAbove': json['showSelectAllOfAbove'],
62
+ 'showSelectNoneOfAbove': json['showSelectNoneOfAbove'],
63
+ };
64
+ }
65
+ function ScreenerQuestionChooseMultipleToJSON(json) {
66
+ return ScreenerQuestionChooseMultipleToJSONTyped(json, false);
67
+ }
68
+ function ScreenerQuestionChooseMultipleToJSONTyped(value, ignoreDiscriminator) {
69
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'type': value['type'],
75
+ 'question': value['question'],
76
+ 'options': ((0, runtime_1.mapValues)(value['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueToJSON)),
77
+ 'minPassingOptions': value['minPassingOptions'],
78
+ 'randomizeOrder': value['randomizeOrder'],
79
+ 'showSelectAllOfAbove': value['showSelectAllOfAbove'],
80
+ 'showSelectNoneOfAbove': value['showSelectNoneOfAbove'],
81
+ };
82
+ }
@@ -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 ScreenerQuestionChooseMultipleOptionsValue
16
+ */
17
+ export interface ScreenerQuestionChooseMultipleOptionsValue {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScreenerQuestionChooseMultipleOptionsValue
22
+ */
23
+ optionText: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ScreenerQuestionChooseMultipleOptionsValue
28
+ */
29
+ optionKind?: ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ScreenerQuestionChooseMultipleOptionsValue
34
+ */
35
+ index: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum: {
41
+ readonly Neutral: "neutral";
42
+ readonly ScreenOutIfSelected: "screenOutIfSelected";
43
+ readonly PassingOption: "passingOption";
44
+ };
45
+ export type ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum = typeof ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum[keyof typeof ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum];
46
+ /**
47
+ * Check if a given object implements the ScreenerQuestionChooseMultipleOptionsValue interface.
48
+ */
49
+ export declare function instanceOfScreenerQuestionChooseMultipleOptionsValue(value: object): value is ScreenerQuestionChooseMultipleOptionsValue;
50
+ export declare function ScreenerQuestionChooseMultipleOptionsValueFromJSON(json: any): ScreenerQuestionChooseMultipleOptionsValue;
51
+ export declare function ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseMultipleOptionsValue;
52
+ export declare function ScreenerQuestionChooseMultipleOptionsValueToJSON(json: any): ScreenerQuestionChooseMultipleOptionsValue;
53
+ export declare function ScreenerQuestionChooseMultipleOptionsValueToJSONTyped(value?: ScreenerQuestionChooseMultipleOptionsValue | 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.ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum = void 0;
17
+ exports.instanceOfScreenerQuestionChooseMultipleOptionsValue = instanceOfScreenerQuestionChooseMultipleOptionsValue;
18
+ exports.ScreenerQuestionChooseMultipleOptionsValueFromJSON = ScreenerQuestionChooseMultipleOptionsValueFromJSON;
19
+ exports.ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped = ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped;
20
+ exports.ScreenerQuestionChooseMultipleOptionsValueToJSON = ScreenerQuestionChooseMultipleOptionsValueToJSON;
21
+ exports.ScreenerQuestionChooseMultipleOptionsValueToJSONTyped = ScreenerQuestionChooseMultipleOptionsValueToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum = {
26
+ Neutral: 'neutral',
27
+ ScreenOutIfSelected: 'screenOutIfSelected',
28
+ PassingOption: 'passingOption'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ScreenerQuestionChooseMultipleOptionsValue interface.
32
+ */
33
+ function instanceOfScreenerQuestionChooseMultipleOptionsValue(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 ScreenerQuestionChooseMultipleOptionsValueFromJSON(json) {
41
+ return ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped(json, false);
42
+ }
43
+ function ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped(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 ScreenerQuestionChooseMultipleOptionsValueToJSON(json) {
54
+ return ScreenerQuestionChooseMultipleOptionsValueToJSONTyped(json, false);
55
+ }
56
+ function ScreenerQuestionChooseMultipleOptionsValueToJSONTyped(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,72 @@
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 { ScreenerQuestionChooseMultipleOptionsValue } from './ScreenerQuestionChooseMultipleOptionsValue';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ScreenerQuestionChooseMultiplePublic
17
+ */
18
+ export interface ScreenerQuestionChooseMultiplePublic {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ScreenerQuestionChooseMultiplePublic
23
+ */
24
+ type: ScreenerQuestionChooseMultiplePublicTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ScreenerQuestionChooseMultiplePublic
29
+ */
30
+ question: string;
31
+ /**
32
+ *
33
+ * @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
34
+ * @memberof ScreenerQuestionChooseMultiplePublic
35
+ */
36
+ options: {
37
+ [key: string]: ScreenerQuestionChooseMultipleOptionsValue;
38
+ };
39
+ /**
40
+ *
41
+ * @type {boolean}
42
+ * @memberof ScreenerQuestionChooseMultiplePublic
43
+ */
44
+ randomizeOrder?: boolean;
45
+ /**
46
+ *
47
+ * @type {boolean}
48
+ * @memberof ScreenerQuestionChooseMultiplePublic
49
+ */
50
+ showSelectAllOfAbove: boolean;
51
+ /**
52
+ *
53
+ * @type {boolean}
54
+ * @memberof ScreenerQuestionChooseMultiplePublic
55
+ */
56
+ showSelectNoneOfAbove: boolean;
57
+ }
58
+ /**
59
+ * @export
60
+ */
61
+ export declare const ScreenerQuestionChooseMultiplePublicTypeEnum: {
62
+ readonly ChooseMultiple: "chooseMultiple";
63
+ };
64
+ export type ScreenerQuestionChooseMultiplePublicTypeEnum = typeof ScreenerQuestionChooseMultiplePublicTypeEnum[keyof typeof ScreenerQuestionChooseMultiplePublicTypeEnum];
65
+ /**
66
+ * Check if a given object implements the ScreenerQuestionChooseMultiplePublic interface.
67
+ */
68
+ export declare function instanceOfScreenerQuestionChooseMultiplePublic(value: object): value is ScreenerQuestionChooseMultiplePublic;
69
+ export declare function ScreenerQuestionChooseMultiplePublicFromJSON(json: any): ScreenerQuestionChooseMultiplePublic;
70
+ export declare function ScreenerQuestionChooseMultiplePublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseMultiplePublic;
71
+ export declare function ScreenerQuestionChooseMultiplePublicToJSON(json: any): ScreenerQuestionChooseMultiplePublic;
72
+ export declare function ScreenerQuestionChooseMultiplePublicToJSONTyped(value?: ScreenerQuestionChooseMultiplePublic | null, ignoreDiscriminator?: boolean): any;