keplar-api 0.0.18 → 0.0.20
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 -7
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +49 -4
- package/dist/apis/DefaultApi.js +43 -1
- package/dist/models/ApiFilesFileIdSignedUrlPostRequest.d.ts +10 -3
- package/dist/models/ApiFilesFileIdSignedUrlPostRequest.js +10 -3
- package/dist/models/ApiProjectsProjectIdAnalysisPostRequest.d.ts +10 -3
- package/dist/models/ApiProjectsProjectIdAnalysisPostRequest.js +10 -3
- package/dist/models/ArtifactMetadata.d.ts +12 -3
- package/dist/models/ArtifactMetadata.js +12 -3
- package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +3 -3
- package/dist/models/JoinCodeInvite302ResponseSettings.js +3 -3
- package/dist/models/Login400Response.d.ts +18 -3
- package/dist/models/Login400Response.js +18 -3
- package/dist/models/Login400ResponseAnyOf.d.ts +18 -3
- package/dist/models/Login400ResponseAnyOf.js +18 -3
- package/dist/models/OpenAiModelConfig.d.ts +10 -3
- package/dist/models/OpenAiModelConfig.js +10 -4
- 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/SelectFilterSchema.d.ts +10 -3
- package/dist/models/SelectFilterSchema.js +10 -3
- package/dist/models/index.d.ts +7 -7
- package/dist/models/index.js +7 -7
- package/package.json +2 -2
- package/src/apis/DefaultApi.ts +49 -6
- package/src/models/ApiFilesFileIdSignedUrlPostRequest.ts +15 -12
- package/src/models/ApiProjectsProjectIdAnalysisPostRequest.ts +15 -12
- package/src/models/ArtifactMetadata.ts +17 -12
- package/src/models/JoinCodeInvite302ResponseSettings.ts +11 -11
- package/src/models/Login400Response.ts +23 -11
- package/src/models/Login400ResponseAnyOf.ts +23 -12
- package/src/models/OpenAiModelConfig.ts +13 -12
- 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/SelectFilterSchema.ts +15 -12
- package/src/models/index.ts +7 -7
- package/dist/models/ApiFilesFileIdSignedUrlPostRequestAction.d.ts +0 -26
- package/dist/models/ApiFilesFileIdSignedUrlPostRequestAction.js +0 -39
- package/dist/models/ApiProjectsProjectIdAnalysisPostRequestKind.d.ts +0 -26
- package/dist/models/ApiProjectsProjectIdAnalysisPostRequestKind.js +0 -39
- package/dist/models/ArtifactMetadataStatus.d.ts +0 -26
- package/dist/models/ArtifactMetadataStatus.js +0 -39
- package/dist/models/GetSharedInviteResponsesStatusesParameterInner.d.ts +0 -26
- package/dist/models/GetSharedInviteResponsesStatusesParameterInner.js +0 -39
- package/dist/models/Login400ResponseAnyOfError.d.ts +0 -26
- package/dist/models/Login400ResponseAnyOfError.js +0 -39
- package/dist/models/OpenAiModelConfigModel.d.ts +0 -26
- package/dist/models/OpenAiModelConfigModel.js +0 -39
- package/dist/models/SelectFilterSchemaKind.d.ts +0 -26
- package/dist/models/SelectFilterSchemaKind.js +0 -39
- package/src/models/ApiFilesFileIdSignedUrlPostRequestAction.ts +0 -46
- package/src/models/ApiProjectsProjectIdAnalysisPostRequestKind.ts +0 -46
- package/src/models/ArtifactMetadataStatus.ts +0 -46
- package/src/models/GetSharedInviteResponsesStatusesParameterInner.ts +0 -46
- package/src/models/Login400ResponseAnyOfError.ts +0 -46
- package/src/models/OpenAiModelConfigModel.ts +0 -46
- package/src/models/SelectFilterSchemaKind.ts +0 -46
|
@@ -13,12 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Login400ResponseAnyOfErrorEnum = void 0;
|
|
16
17
|
exports.instanceOfLogin400ResponseAnyOf = instanceOfLogin400ResponseAnyOf;
|
|
17
18
|
exports.Login400ResponseAnyOfFromJSON = Login400ResponseAnyOfFromJSON;
|
|
18
19
|
exports.Login400ResponseAnyOfFromJSONTyped = Login400ResponseAnyOfFromJSONTyped;
|
|
19
20
|
exports.Login400ResponseAnyOfToJSON = Login400ResponseAnyOfToJSON;
|
|
20
21
|
exports.Login400ResponseAnyOfToJSONTyped = Login400ResponseAnyOfToJSONTyped;
|
|
21
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.Login400ResponseAnyOfErrorEnum = {
|
|
26
|
+
EmailNotVerified: 'EMAIL_NOT_VERIFIED',
|
|
27
|
+
_2FaRequired: '2FA_REQUIRED',
|
|
28
|
+
EmailAlreadyExists: 'EMAIL_ALREADY_EXISTS',
|
|
29
|
+
InvalidVerificationToken: 'INVALID_VERIFICATION_TOKEN',
|
|
30
|
+
InvalidMagicLink: 'INVALID_MAGIC_LINK',
|
|
31
|
+
BlacklistedDomain: 'BLACKLISTED_DOMAIN',
|
|
32
|
+
MagicLinkDisabled: 'MAGIC_LINK_DISABLED',
|
|
33
|
+
InvalidCredentials: 'INVALID_CREDENTIALS',
|
|
34
|
+
AccountNotActive: 'ACCOUNT_NOT_ACTIVE',
|
|
35
|
+
EmailAlreadyVerified: 'EMAIL_ALREADY_VERIFIED'
|
|
36
|
+
};
|
|
22
37
|
/**
|
|
23
38
|
* Check if a given object implements the Login400ResponseAnyOf interface.
|
|
24
39
|
*/
|
|
@@ -37,7 +52,7 @@ function Login400ResponseAnyOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
52
|
return json;
|
|
38
53
|
}
|
|
39
54
|
return {
|
|
40
|
-
'error':
|
|
55
|
+
'error': json['error'],
|
|
41
56
|
'message': json['message'],
|
|
42
57
|
'email': json['email'] == null ? undefined : json['email'],
|
|
43
58
|
};
|
|
@@ -51,7 +66,7 @@ function Login400ResponseAnyOfToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
66
|
return value;
|
|
52
67
|
}
|
|
53
68
|
return {
|
|
54
|
-
'error':
|
|
69
|
+
'error': value['error'],
|
|
55
70
|
'message': value['message'],
|
|
56
71
|
'email': value['email'],
|
|
57
72
|
};
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { OpenAiModelConfigModel } from './OpenAiModelConfigModel';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -24,10 +23,10 @@ export interface OpenAiModelConfig {
|
|
|
24
23
|
provider: OpenAiModelConfigProviderEnum;
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
28
27
|
* @memberof OpenAiModelConfig
|
|
29
28
|
*/
|
|
30
|
-
model:
|
|
29
|
+
model: OpenAiModelConfigModelEnum;
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
32
|
* @export
|
|
@@ -36,6 +35,14 @@ export declare const OpenAiModelConfigProviderEnum: {
|
|
|
36
35
|
readonly Openai: "openai";
|
|
37
36
|
};
|
|
38
37
|
export type OpenAiModelConfigProviderEnum = typeof OpenAiModelConfigProviderEnum[keyof typeof OpenAiModelConfigProviderEnum];
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const OpenAiModelConfigModelEnum: {
|
|
42
|
+
readonly Gpt41: "gpt-4.1";
|
|
43
|
+
readonly Gpt5: "gpt-5";
|
|
44
|
+
};
|
|
45
|
+
export type OpenAiModelConfigModelEnum = typeof OpenAiModelConfigModelEnum[keyof typeof OpenAiModelConfigModelEnum];
|
|
39
46
|
/**
|
|
40
47
|
* Check if a given object implements the OpenAiModelConfig interface.
|
|
41
48
|
*/
|
|
@@ -13,19 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OpenAiModelConfigProviderEnum = void 0;
|
|
16
|
+
exports.OpenAiModelConfigModelEnum = exports.OpenAiModelConfigProviderEnum = void 0;
|
|
17
17
|
exports.instanceOfOpenAiModelConfig = instanceOfOpenAiModelConfig;
|
|
18
18
|
exports.OpenAiModelConfigFromJSON = OpenAiModelConfigFromJSON;
|
|
19
19
|
exports.OpenAiModelConfigFromJSONTyped = OpenAiModelConfigFromJSONTyped;
|
|
20
20
|
exports.OpenAiModelConfigToJSON = OpenAiModelConfigToJSON;
|
|
21
21
|
exports.OpenAiModelConfigToJSONTyped = OpenAiModelConfigToJSONTyped;
|
|
22
|
-
var OpenAiModelConfigModel_1 = require("./OpenAiModelConfigModel");
|
|
23
22
|
/**
|
|
24
23
|
* @export
|
|
25
24
|
*/
|
|
26
25
|
exports.OpenAiModelConfigProviderEnum = {
|
|
27
26
|
Openai: 'openai'
|
|
28
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.OpenAiModelConfigModelEnum = {
|
|
32
|
+
Gpt41: 'gpt-4.1',
|
|
33
|
+
Gpt5: 'gpt-5'
|
|
34
|
+
};
|
|
29
35
|
/**
|
|
30
36
|
* Check if a given object implements the OpenAiModelConfig interface.
|
|
31
37
|
*/
|
|
@@ -45,7 +51,7 @@ function OpenAiModelConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
51
|
}
|
|
46
52
|
return {
|
|
47
53
|
'provider': json['provider'],
|
|
48
|
-
'model':
|
|
54
|
+
'model': json['model'],
|
|
49
55
|
};
|
|
50
56
|
}
|
|
51
57
|
function OpenAiModelConfigToJSON(json) {
|
|
@@ -58,6 +64,6 @@ function OpenAiModelConfigToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
64
|
}
|
|
59
65
|
return {
|
|
60
66
|
'provider': value['provider'],
|
|
61
|
-
'model':
|
|
67
|
+
'model': value['model'],
|
|
62
68
|
};
|
|
63
69
|
}
|
|
@@ -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<
|
|
56
|
+
* @type {Array<ScreenerQuestion>}
|
|
57
57
|
* @memberof ProjectConfig
|
|
58
58
|
*/
|
|
59
|
-
screenerQuestions?: Array<
|
|
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(
|
|
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(
|
|
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
|
+
}
|