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.
- package/.openapi-generator/FILES +7 -0
- package/README.md +2 -2
- package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +3 -3
- package/dist/models/JoinCodeInvite302ResponseSettings.js +3 -3
- package/dist/models/OptionKind.d.ts +26 -0
- package/dist/models/OptionKind.js +52 -0
- package/dist/models/ProjectConfig.d.ts +3 -3
- package/dist/models/ProjectConfig.js +3 -3
- package/dist/models/ScreenerQuestion.d.ts +27 -0
- package/dist/models/ScreenerQuestion.js +54 -0
- package/dist/models/ScreenerQuestionChooseMultiple.d.ts +78 -0
- package/dist/models/ScreenerQuestionChooseMultiple.js +82 -0
- package/dist/models/ScreenerQuestionChooseMultipleOptionsValue.d.ts +53 -0
- package/dist/models/ScreenerQuestionChooseMultipleOptionsValue.js +66 -0
- package/dist/models/ScreenerQuestionChooseMultiplePublic.d.ts +72 -0
- package/dist/models/ScreenerQuestionChooseMultiplePublic.js +78 -0
- package/dist/models/ScreenerQuestionOption.d.ts +53 -0
- package/dist/models/ScreenerQuestionOption.js +66 -0
- package/dist/models/ScreenerQuestionPublic.d.ts +23 -0
- package/dist/models/ScreenerQuestionPublic.js +58 -0
- package/dist/models/ScreenerQuestionResponse.d.ts +2 -8
- package/dist/models/ScreenerQuestionResponse.js +0 -4
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/models/JoinCodeInvite302ResponseSettings.ts +11 -11
- package/src/models/OptionKind.ts +54 -0
- package/src/models/ProjectConfig.ts +11 -11
- package/src/models/ScreenerQuestion.ts +72 -0
- package/src/models/ScreenerQuestionChooseMultiple.ts +137 -0
- package/src/models/ScreenerQuestionChooseMultipleOptionsValue.ts +95 -0
- package/src/models/ScreenerQuestionChooseMultiplePublic.ts +128 -0
- package/src/models/ScreenerQuestionOption.ts +95 -0
- package/src/models/ScreenerQuestionPublic.ts +76 -0
- package/src/models/ScreenerQuestionResponse.ts +2 -11
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,137 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { ScreenerQuestionChooseMultipleOptionsValue } from './ScreenerQuestionChooseMultipleOptionsValue';
|
|
17
|
+
import {
|
|
18
|
+
ScreenerQuestionChooseMultipleOptionsValueFromJSON,
|
|
19
|
+
ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped,
|
|
20
|
+
ScreenerQuestionChooseMultipleOptionsValueToJSON,
|
|
21
|
+
ScreenerQuestionChooseMultipleOptionsValueToJSONTyped,
|
|
22
|
+
} from './ScreenerQuestionChooseMultipleOptionsValue';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ScreenerQuestionChooseMultiple
|
|
28
|
+
*/
|
|
29
|
+
export interface ScreenerQuestionChooseMultiple {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
34
|
+
*/
|
|
35
|
+
type: ScreenerQuestionChooseMultipleTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
40
|
+
*/
|
|
41
|
+
question: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
|
|
45
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
46
|
+
*/
|
|
47
|
+
options: { [key: string]: ScreenerQuestionChooseMultipleOptionsValue; };
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
52
|
+
*/
|
|
53
|
+
minPassingOptions: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
58
|
+
*/
|
|
59
|
+
randomizeOrder?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
64
|
+
*/
|
|
65
|
+
showSelectAllOfAbove: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof ScreenerQuestionChooseMultiple
|
|
70
|
+
*/
|
|
71
|
+
showSelectNoneOfAbove: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const ScreenerQuestionChooseMultipleTypeEnum = {
|
|
79
|
+
ChooseMultiple: 'chooseMultiple'
|
|
80
|
+
} as const;
|
|
81
|
+
export type ScreenerQuestionChooseMultipleTypeEnum = typeof ScreenerQuestionChooseMultipleTypeEnum[keyof typeof ScreenerQuestionChooseMultipleTypeEnum];
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the ScreenerQuestionChooseMultiple interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfScreenerQuestionChooseMultiple(value: object): value is ScreenerQuestionChooseMultiple {
|
|
88
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
89
|
+
if (!('question' in value) || value['question'] === undefined) return false;
|
|
90
|
+
if (!('options' in value) || value['options'] === undefined) return false;
|
|
91
|
+
if (!('minPassingOptions' in value) || value['minPassingOptions'] === undefined) return false;
|
|
92
|
+
if (!('showSelectAllOfAbove' in value) || value['showSelectAllOfAbove'] === undefined) return false;
|
|
93
|
+
if (!('showSelectNoneOfAbove' in value) || value['showSelectNoneOfAbove'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ScreenerQuestionChooseMultipleFromJSON(json: any): ScreenerQuestionChooseMultiple {
|
|
98
|
+
return ScreenerQuestionChooseMultipleFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ScreenerQuestionChooseMultipleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseMultiple {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'type': json['type'],
|
|
108
|
+
'question': json['question'],
|
|
109
|
+
'options': (mapValues(json['options'], ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
|
|
110
|
+
'minPassingOptions': json['minPassingOptions'],
|
|
111
|
+
'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
|
|
112
|
+
'showSelectAllOfAbove': json['showSelectAllOfAbove'],
|
|
113
|
+
'showSelectNoneOfAbove': json['showSelectNoneOfAbove'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function ScreenerQuestionChooseMultipleToJSON(json: any): ScreenerQuestionChooseMultiple {
|
|
118
|
+
return ScreenerQuestionChooseMultipleToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function ScreenerQuestionChooseMultipleToJSONTyped(value?: ScreenerQuestionChooseMultiple | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'type': value['type'],
|
|
129
|
+
'question': value['question'],
|
|
130
|
+
'options': (mapValues(value['options'], ScreenerQuestionChooseMultipleOptionsValueToJSON)),
|
|
131
|
+
'minPassingOptions': value['minPassingOptions'],
|
|
132
|
+
'randomizeOrder': value['randomizeOrder'],
|
|
133
|
+
'showSelectAllOfAbove': value['showSelectAllOfAbove'],
|
|
134
|
+
'showSelectNoneOfAbove': value['showSelectNoneOfAbove'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScreenerQuestionChooseMultipleOptionsValue
|
|
20
|
+
*/
|
|
21
|
+
export interface ScreenerQuestionChooseMultipleOptionsValue {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ScreenerQuestionChooseMultipleOptionsValue
|
|
26
|
+
*/
|
|
27
|
+
optionText: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScreenerQuestionChooseMultipleOptionsValue
|
|
32
|
+
*/
|
|
33
|
+
optionKind?: ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ScreenerQuestionChooseMultipleOptionsValue
|
|
38
|
+
*/
|
|
39
|
+
index: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum = {
|
|
47
|
+
Neutral: 'neutral',
|
|
48
|
+
ScreenOutIfSelected: 'screenOutIfSelected',
|
|
49
|
+
PassingOption: 'passingOption'
|
|
50
|
+
} as const;
|
|
51
|
+
export type ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum = typeof ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum[keyof typeof ScreenerQuestionChooseMultipleOptionsValueOptionKindEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ScreenerQuestionChooseMultipleOptionsValue interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfScreenerQuestionChooseMultipleOptionsValue(value: object): value is ScreenerQuestionChooseMultipleOptionsValue {
|
|
58
|
+
if (!('optionText' in value) || value['optionText'] === undefined) return false;
|
|
59
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ScreenerQuestionChooseMultipleOptionsValueFromJSON(json: any): ScreenerQuestionChooseMultipleOptionsValue {
|
|
64
|
+
return ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseMultipleOptionsValue {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'optionText': json['optionText'],
|
|
74
|
+
'optionKind': json['optionKind'] == null ? undefined : json['optionKind'],
|
|
75
|
+
'index': json['index'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ScreenerQuestionChooseMultipleOptionsValueToJSON(json: any): ScreenerQuestionChooseMultipleOptionsValue {
|
|
80
|
+
return ScreenerQuestionChooseMultipleOptionsValueToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ScreenerQuestionChooseMultipleOptionsValueToJSONTyped(value?: ScreenerQuestionChooseMultipleOptionsValue | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'optionText': value['optionText'],
|
|
91
|
+
'optionKind': value['optionKind'],
|
|
92
|
+
'index': value['index'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { ScreenerQuestionChooseMultipleOptionsValue } from './ScreenerQuestionChooseMultipleOptionsValue';
|
|
17
|
+
import {
|
|
18
|
+
ScreenerQuestionChooseMultipleOptionsValueFromJSON,
|
|
19
|
+
ScreenerQuestionChooseMultipleOptionsValueFromJSONTyped,
|
|
20
|
+
ScreenerQuestionChooseMultipleOptionsValueToJSON,
|
|
21
|
+
ScreenerQuestionChooseMultipleOptionsValueToJSONTyped,
|
|
22
|
+
} from './ScreenerQuestionChooseMultipleOptionsValue';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ScreenerQuestionChooseMultiplePublic
|
|
28
|
+
*/
|
|
29
|
+
export interface ScreenerQuestionChooseMultiplePublic {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScreenerQuestionChooseMultiplePublic
|
|
34
|
+
*/
|
|
35
|
+
type: ScreenerQuestionChooseMultiplePublicTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ScreenerQuestionChooseMultiplePublic
|
|
40
|
+
*/
|
|
41
|
+
question: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
|
|
45
|
+
* @memberof ScreenerQuestionChooseMultiplePublic
|
|
46
|
+
*/
|
|
47
|
+
options: { [key: string]: ScreenerQuestionChooseMultipleOptionsValue; };
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ScreenerQuestionChooseMultiplePublic
|
|
52
|
+
*/
|
|
53
|
+
randomizeOrder?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ScreenerQuestionChooseMultiplePublic
|
|
58
|
+
*/
|
|
59
|
+
showSelectAllOfAbove: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ScreenerQuestionChooseMultiplePublic
|
|
64
|
+
*/
|
|
65
|
+
showSelectNoneOfAbove: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const ScreenerQuestionChooseMultiplePublicTypeEnum = {
|
|
73
|
+
ChooseMultiple: 'chooseMultiple'
|
|
74
|
+
} as const;
|
|
75
|
+
export type ScreenerQuestionChooseMultiplePublicTypeEnum = typeof ScreenerQuestionChooseMultiplePublicTypeEnum[keyof typeof ScreenerQuestionChooseMultiplePublicTypeEnum];
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the ScreenerQuestionChooseMultiplePublic interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfScreenerQuestionChooseMultiplePublic(value: object): value is ScreenerQuestionChooseMultiplePublic {
|
|
82
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
83
|
+
if (!('question' in value) || value['question'] === undefined) return false;
|
|
84
|
+
if (!('options' in value) || value['options'] === undefined) return false;
|
|
85
|
+
if (!('showSelectAllOfAbove' in value) || value['showSelectAllOfAbove'] === undefined) return false;
|
|
86
|
+
if (!('showSelectNoneOfAbove' in value) || value['showSelectNoneOfAbove'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ScreenerQuestionChooseMultiplePublicFromJSON(json: any): ScreenerQuestionChooseMultiplePublic {
|
|
91
|
+
return ScreenerQuestionChooseMultiplePublicFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ScreenerQuestionChooseMultiplePublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseMultiplePublic {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'type': json['type'],
|
|
101
|
+
'question': json['question'],
|
|
102
|
+
'options': (mapValues(json['options'], ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
|
|
103
|
+
'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
|
|
104
|
+
'showSelectAllOfAbove': json['showSelectAllOfAbove'],
|
|
105
|
+
'showSelectNoneOfAbove': json['showSelectNoneOfAbove'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function ScreenerQuestionChooseMultiplePublicToJSON(json: any): ScreenerQuestionChooseMultiplePublic {
|
|
110
|
+
return ScreenerQuestionChooseMultiplePublicToJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function ScreenerQuestionChooseMultiplePublicToJSONTyped(value?: ScreenerQuestionChooseMultiplePublic | null, ignoreDiscriminator: boolean = false): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'type': value['type'],
|
|
121
|
+
'question': value['question'],
|
|
122
|
+
'options': (mapValues(value['options'], ScreenerQuestionChooseMultipleOptionsValueToJSON)),
|
|
123
|
+
'randomizeOrder': value['randomizeOrder'],
|
|
124
|
+
'showSelectAllOfAbove': value['showSelectAllOfAbove'],
|
|
125
|
+
'showSelectNoneOfAbove': value['showSelectNoneOfAbove'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ScreenerQuestionOption
|
|
20
|
+
*/
|
|
21
|
+
export interface ScreenerQuestionOption {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ScreenerQuestionOption
|
|
26
|
+
*/
|
|
27
|
+
optionText: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScreenerQuestionOption
|
|
32
|
+
*/
|
|
33
|
+
optionKind?: ScreenerQuestionOptionOptionKindEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ScreenerQuestionOption
|
|
38
|
+
*/
|
|
39
|
+
index: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ScreenerQuestionOptionOptionKindEnum = {
|
|
47
|
+
Neutral: 'neutral',
|
|
48
|
+
ScreenOutIfSelected: 'screenOutIfSelected',
|
|
49
|
+
PassingOption: 'passingOption'
|
|
50
|
+
} as const;
|
|
51
|
+
export type ScreenerQuestionOptionOptionKindEnum = typeof ScreenerQuestionOptionOptionKindEnum[keyof typeof ScreenerQuestionOptionOptionKindEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ScreenerQuestionOption interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfScreenerQuestionOption(value: object): value is ScreenerQuestionOption {
|
|
58
|
+
if (!('optionText' in value) || value['optionText'] === undefined) return false;
|
|
59
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ScreenerQuestionOptionFromJSON(json: any): ScreenerQuestionOption {
|
|
64
|
+
return ScreenerQuestionOptionFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ScreenerQuestionOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionOption {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'optionText': json['optionText'],
|
|
74
|
+
'optionKind': json['optionKind'] == null ? undefined : json['optionKind'],
|
|
75
|
+
'index': json['index'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ScreenerQuestionOptionToJSON(json: any): ScreenerQuestionOption {
|
|
80
|
+
return ScreenerQuestionOptionToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ScreenerQuestionOptionToJSONTyped(value?: ScreenerQuestionOption | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'optionText': value['optionText'],
|
|
91
|
+
'optionKind': value['optionKind'],
|
|
92
|
+
'index': value['index'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { ScreenerQuestionChooseMultiplePublic } from './ScreenerQuestionChooseMultiplePublic';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfScreenerQuestionChooseMultiplePublic,
|
|
18
|
+
ScreenerQuestionChooseMultiplePublicFromJSON,
|
|
19
|
+
ScreenerQuestionChooseMultiplePublicFromJSONTyped,
|
|
20
|
+
ScreenerQuestionChooseMultiplePublicToJSON,
|
|
21
|
+
} from './ScreenerQuestionChooseMultiplePublic';
|
|
22
|
+
import type { ScreenerQuestionChooseOnePublic } from './ScreenerQuestionChooseOnePublic';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfScreenerQuestionChooseOnePublic,
|
|
25
|
+
ScreenerQuestionChooseOnePublicFromJSON,
|
|
26
|
+
ScreenerQuestionChooseOnePublicFromJSONTyped,
|
|
27
|
+
ScreenerQuestionChooseOnePublicToJSON,
|
|
28
|
+
} from './ScreenerQuestionChooseOnePublic';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type ScreenerQuestionPublic
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type ScreenerQuestionPublic = ScreenerQuestionChooseMultiplePublic | ScreenerQuestionChooseOnePublic;
|
|
36
|
+
|
|
37
|
+
export function ScreenerQuestionPublicFromJSON(json: any): ScreenerQuestionPublic {
|
|
38
|
+
return ScreenerQuestionPublicFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ScreenerQuestionPublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionPublic {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
if (typeof json !== 'object') {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
if (instanceOfScreenerQuestionChooseMultiplePublic(json)) {
|
|
49
|
+
return ScreenerQuestionChooseMultiplePublicFromJSONTyped(json, true);
|
|
50
|
+
}
|
|
51
|
+
if (instanceOfScreenerQuestionChooseOnePublic(json)) {
|
|
52
|
+
return ScreenerQuestionChooseOnePublicFromJSONTyped(json, true);
|
|
53
|
+
}
|
|
54
|
+
return {} as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ScreenerQuestionPublicToJSON(json: any): any {
|
|
58
|
+
return ScreenerQuestionPublicToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ScreenerQuestionPublicToJSONTyped(value?: ScreenerQuestionPublic | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
if (typeof value !== 'object') {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
if (instanceOfScreenerQuestionChooseMultiplePublic(value)) {
|
|
69
|
+
return ScreenerQuestionChooseMultiplePublicToJSON(value as ScreenerQuestionChooseMultiplePublic);
|
|
70
|
+
}
|
|
71
|
+
if (instanceOfScreenerQuestionChooseOnePublic(value)) {
|
|
72
|
+
return ScreenerQuestionChooseOnePublicToJSON(value as ScreenerQuestionChooseOnePublic);
|
|
73
|
+
}
|
|
74
|
+
return {};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -27,16 +27,10 @@ export interface ScreenerQuestionResponse {
|
|
|
27
27
|
question: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ScreenerQuestionResponse
|
|
32
|
-
*/
|
|
33
|
-
response: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {boolean}
|
|
30
|
+
* @type {Array<string>}
|
|
37
31
|
* @memberof ScreenerQuestionResponse
|
|
38
32
|
*/
|
|
39
|
-
|
|
33
|
+
response: Array<string>;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -45,7 +39,6 @@ export interface ScreenerQuestionResponse {
|
|
|
45
39
|
export function instanceOfScreenerQuestionResponse(value: object): value is ScreenerQuestionResponse {
|
|
46
40
|
if (!('question' in value) || value['question'] === undefined) return false;
|
|
47
41
|
if (!('response' in value) || value['response'] === undefined) return false;
|
|
48
|
-
if (!('passing' in value) || value['passing'] === undefined) return false;
|
|
49
42
|
return true;
|
|
50
43
|
}
|
|
51
44
|
|
|
@@ -61,7 +54,6 @@ export function ScreenerQuestionResponseFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
61
54
|
|
|
62
55
|
'question': json['question'],
|
|
63
56
|
'response': json['response'],
|
|
64
|
-
'passing': json['passing'],
|
|
65
57
|
};
|
|
66
58
|
}
|
|
67
59
|
|
|
@@ -78,7 +70,6 @@ export function ScreenerQuestionResponseToJSONTyped(value?: ScreenerQuestionResp
|
|
|
78
70
|
|
|
79
71
|
'question': value['question'],
|
|
80
72
|
'response': value['response'],
|
|
81
|
-
'passing': value['passing'],
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
75
|
|
package/src/models/index.ts
CHANGED
|
@@ -130,6 +130,7 @@ export * from './NotFoundErrorResponse';
|
|
|
130
130
|
export * from './NumberFilterSchema';
|
|
131
131
|
export * from './OpenAiModelConfig';
|
|
132
132
|
export * from './OpenAiModelConfigModel';
|
|
133
|
+
export * from './OptionKind';
|
|
133
134
|
export * from './Org';
|
|
134
135
|
export * from './OrgData';
|
|
135
136
|
export * from './PanelQualification';
|
|
@@ -180,8 +181,14 @@ export * from './ResponseRedirectEvent';
|
|
|
180
181
|
export * from './ResponseStartCallEvent';
|
|
181
182
|
export * from './ResponseSubmitEmailEvent';
|
|
182
183
|
export * from './ResponseSubmitScreenerEvent';
|
|
184
|
+
export * from './ScreenerQuestion';
|
|
185
|
+
export * from './ScreenerQuestionChooseMultiple';
|
|
186
|
+
export * from './ScreenerQuestionChooseMultipleOptionsValue';
|
|
187
|
+
export * from './ScreenerQuestionChooseMultiplePublic';
|
|
183
188
|
export * from './ScreenerQuestionChooseOne';
|
|
184
189
|
export * from './ScreenerQuestionChooseOnePublic';
|
|
190
|
+
export * from './ScreenerQuestionOption';
|
|
191
|
+
export * from './ScreenerQuestionPublic';
|
|
185
192
|
export * from './ScreenerQuestionResponse';
|
|
186
193
|
export * from './SearchProjectTranscriptsResponse';
|
|
187
194
|
export * from './SearchSharedResponseMessages200ResponseInner';
|