keplar-api 0.0.17 → 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 +9 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/models/ApiFilesFileIdSignedUrlPost200Response.js +1 -1
- package/dist/models/ApiInvitesIdPutRequest.js +2 -3
- package/dist/models/ApiInvitesPostRequest.js +1 -1
- package/dist/models/Artifact.js +2 -2
- package/dist/models/Attribute.js +1 -1
- package/dist/models/AttributeKind.js +2 -2
- package/dist/models/AttributeKindGroup.js +2 -2
- package/dist/models/ByoPanelRepdataConfig.d.ts +46 -0
- package/dist/models/ByoPanelRepdataConfig.js +63 -0
- package/dist/models/Call.js +4 -5
- package/dist/models/CallEvent.js +1 -1
- package/dist/models/ChatMessage.js +2 -2
- package/dist/models/ChatSession.js +2 -2
- package/dist/models/CodeInvite.js +1 -2
- package/dist/models/CodeInviteConfig.d.ts +3 -0
- package/dist/models/CodeInviteConfig.js +5 -0
- package/dist/models/CodeInviteResponse.js +2 -2
- package/dist/models/ConversationMessage.js +2 -2
- package/dist/models/CreateEmailShareRequest.js +1 -1
- package/dist/models/CreateProjectShareRequest.js +1 -1
- package/dist/models/EmailShare.js +3 -4
- package/dist/models/GetCodeInvite200Response.js +1 -2
- package/dist/models/Invite.js +4 -5
- package/dist/models/InviteConfig.d.ts +3 -0
- package/dist/models/InviteConfig.js +5 -0
- package/dist/models/InviteConfigByoPanel.d.ts +70 -0
- package/dist/models/InviteConfigByoPanel.js +73 -0
- package/dist/models/InviteResponse.js +2 -2
- package/dist/models/InviteResponseAttribute.js +1 -1
- package/dist/models/InviteResponseWithCallSummary.js +2 -2
- package/dist/models/InviteWithAnalytics.js +4 -5
- package/dist/models/JoinCodeInvite302Response.js +1 -2
- package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +3 -3
- package/dist/models/JoinCodeInvite302ResponseSettings.js +3 -3
- package/dist/models/Login200Response.js +4 -4
- package/dist/models/ModelFile.js +4 -5
- package/dist/models/Moderator.js +2 -2
- package/dist/models/OptionKind.d.ts +26 -0
- package/dist/models/OptionKind.js +52 -0
- package/dist/models/Org.js +2 -2
- package/dist/models/Participant.js +2 -2
- package/dist/models/ParticipantAttribute.js +2 -2
- package/dist/models/ParticipantInvite.js +2 -2
- package/dist/models/ParticipantInviteData.js +1 -1
- package/dist/models/PhoneCallStartResponse.js +1 -1
- package/dist/models/Project.js +2 -2
- package/dist/models/ProjectConfig.d.ts +3 -3
- package/dist/models/ProjectConfig.js +3 -3
- package/dist/models/ProjectFile.js +2 -2
- package/dist/models/ProjectFilePublicFile.js +1 -2
- package/dist/models/ProjectSummaryWithAnalytics.js +2 -2
- package/dist/models/ProjectWithAnalytics.js +2 -2
- 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/SearchSharedResponseMessages200ResponseInner.js +1 -1
- package/dist/models/ShareEntity.js +2 -3
- package/dist/models/Thread.js +2 -2
- package/dist/models/ThreadFile.js +1 -1
- package/dist/models/TranscriptMessage.js +1 -1
- package/dist/models/TranscriptMessagesInner.js +1 -1
- package/dist/models/UpdateShareEntityRequest.js +1 -2
- package/dist/models/User.js +4 -5
- package/dist/models/UserWithConfig.js +4 -5
- package/dist/models/Workspace.js +2 -2
- package/dist/models/WorkspaceMember.js +2 -2
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/models/ApiFilesFileIdSignedUrlPost200Response.ts +1 -1
- package/src/models/ApiInvitesIdPutRequest.ts +2 -2
- package/src/models/ApiInvitesPostRequest.ts +1 -1
- package/src/models/Artifact.ts +2 -2
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeKind.ts +2 -2
- package/src/models/AttributeKindGroup.ts +2 -2
- package/src/models/ByoPanelRepdataConfig.ts +93 -0
- package/src/models/Call.ts +4 -4
- package/src/models/CallEvent.ts +1 -1
- package/src/models/ChatMessage.ts +2 -2
- package/src/models/ChatSession.ts +2 -2
- package/src/models/CodeInvite.ts +1 -1
- package/src/models/CodeInviteConfig.ts +12 -1
- package/src/models/CodeInviteResponse.ts +2 -2
- package/src/models/ConversationMessage.ts +2 -2
- package/src/models/CreateEmailShareRequest.ts +1 -1
- package/src/models/CreateProjectShareRequest.ts +1 -1
- package/src/models/EmailShare.ts +3 -3
- package/src/models/GetCodeInvite200Response.ts +1 -1
- package/src/models/Invite.ts +4 -4
- package/src/models/InviteConfig.ts +12 -1
- package/src/models/InviteConfigByoPanel.ts +126 -0
- package/src/models/InviteResponse.ts +2 -2
- package/src/models/InviteResponseAttribute.ts +1 -1
- package/src/models/InviteResponseWithCallSummary.ts +2 -2
- package/src/models/InviteWithAnalytics.ts +4 -4
- package/src/models/JoinCodeInvite302Response.ts +1 -1
- package/src/models/JoinCodeInvite302ResponseSettings.ts +11 -11
- package/src/models/Login200Response.ts +4 -4
- package/src/models/ModelFile.ts +4 -4
- package/src/models/Moderator.ts +2 -2
- package/src/models/OptionKind.ts +54 -0
- package/src/models/Org.ts +2 -2
- package/src/models/Participant.ts +2 -2
- package/src/models/ParticipantAttribute.ts +2 -2
- package/src/models/ParticipantInvite.ts +2 -2
- package/src/models/ParticipantInviteData.ts +1 -1
- package/src/models/PhoneCallStartResponse.ts +1 -1
- package/src/models/Project.ts +2 -2
- package/src/models/ProjectConfig.ts +11 -11
- package/src/models/ProjectFile.ts +2 -2
- package/src/models/ProjectFilePublicFile.ts +1 -1
- package/src/models/ProjectSummaryWithAnalytics.ts +2 -2
- package/src/models/ProjectWithAnalytics.ts +2 -2
- 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/SearchSharedResponseMessages200ResponseInner.ts +1 -1
- package/src/models/ShareEntity.ts +2 -2
- package/src/models/Thread.ts +2 -2
- package/src/models/ThreadFile.ts +1 -1
- package/src/models/TranscriptMessage.ts +1 -1
- package/src/models/TranscriptMessagesInner.ts +1 -1
- package/src/models/UpdateShareEntityRequest.ts +1 -1
- package/src/models/User.ts +4 -4
- package/src/models/UserWithConfig.ts +4 -4
- package/src/models/Workspace.ts +2 -2
- package/src/models/WorkspaceMember.ts +2 -2
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,73 @@
|
|
|
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.InviteConfigByoPanelKindEnum = void 0;
|
|
17
|
+
exports.instanceOfInviteConfigByoPanel = instanceOfInviteConfigByoPanel;
|
|
18
|
+
exports.InviteConfigByoPanelFromJSON = InviteConfigByoPanelFromJSON;
|
|
19
|
+
exports.InviteConfigByoPanelFromJSONTyped = InviteConfigByoPanelFromJSONTyped;
|
|
20
|
+
exports.InviteConfigByoPanelToJSON = InviteConfigByoPanelToJSON;
|
|
21
|
+
exports.InviteConfigByoPanelToJSONTyped = InviteConfigByoPanelToJSONTyped;
|
|
22
|
+
var ByoPanelRepdataConfig_1 = require("./ByoPanelRepdataConfig");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.InviteConfigByoPanelKindEnum = {
|
|
27
|
+
ByoPanel: 'BYO_PANEL'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the InviteConfigByoPanel interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfInviteConfigByoPanel(value) {
|
|
33
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('byoPanelConfig' in value) || value['byoPanelConfig'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function InviteConfigByoPanelFromJSON(json) {
|
|
42
|
+
return InviteConfigByoPanelFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function InviteConfigByoPanelFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'kind': json['kind'],
|
|
50
|
+
'byoPanelConfig': (0, ByoPanelRepdataConfig_1.ByoPanelRepdataConfigFromJSON)(json['byoPanelConfig']),
|
|
51
|
+
'title': json['title'],
|
|
52
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
53
|
+
'maxResponses': json['maxResponses'] == null ? undefined : json['maxResponses'],
|
|
54
|
+
'maxResponsesPerParticipant': json['maxResponsesPerParticipant'] == null ? undefined : json['maxResponsesPerParticipant'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function InviteConfigByoPanelToJSON(json) {
|
|
58
|
+
return InviteConfigByoPanelToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function InviteConfigByoPanelToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'kind': value['kind'],
|
|
67
|
+
'byoPanelConfig': (0, ByoPanelRepdataConfig_1.ByoPanelRepdataConfigToJSON)(value['byoPanelConfig']),
|
|
68
|
+
'title': value['title'],
|
|
69
|
+
'description': value['description'],
|
|
70
|
+
'maxResponses': value['maxResponses'],
|
|
71
|
+
'maxResponsesPerParticipant': value['maxResponsesPerParticipant'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -82,8 +82,8 @@ function InviteResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
82
|
'status': (0, InviteResponseStatus_1.InviteResponseStatusToJSON)(value['status']),
|
|
83
83
|
'data': (0, InviteResponseData_1.InviteResponseDataToJSON)(value['data']),
|
|
84
84
|
'metadata': (0, InviteResponseMetadata_1.InviteResponseMetadataToJSON)(value['metadata']),
|
|
85
|
-
'createdAt':
|
|
86
|
-
'updatedAt':
|
|
85
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
86
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
87
87
|
'inviteId': value['inviteId'],
|
|
88
88
|
'vendorParticipantId': value['vendorParticipantId'],
|
|
89
89
|
'participantId': value['participantId'],
|
|
@@ -61,7 +61,7 @@ function InviteResponseAttributeToJSONTyped(value, ignoreDiscriminator) {
|
|
|
61
61
|
'inviteResponseId': value['inviteResponseId'],
|
|
62
62
|
'attributeId': value['attributeId'],
|
|
63
63
|
'data': (0, InviteResponseAttributeData_1.InviteResponseAttributeDataToJSON)(value['data']),
|
|
64
|
-
'createdAt':
|
|
64
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
65
65
|
'inviteResponse': (0, InviteResponse_1.InviteResponseToJSON)(value['inviteResponse']),
|
|
66
66
|
'attribute': (0, Attribute_1.AttributeToJSON)(value['attribute']),
|
|
67
67
|
};
|
|
@@ -84,8 +84,8 @@ function InviteResponseWithCallSummaryToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
84
|
'status': (0, InviteResponseStatus_1.InviteResponseStatusToJSON)(value['status']),
|
|
85
85
|
'data': (0, InviteResponseData_1.InviteResponseDataToJSON)(value['data']),
|
|
86
86
|
'metadata': (0, InviteResponseMetadata_1.InviteResponseMetadataToJSON)(value['metadata']),
|
|
87
|
-
'createdAt':
|
|
88
|
-
'updatedAt':
|
|
87
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
88
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
89
89
|
'inviteId': value['inviteId'],
|
|
90
90
|
'vendorParticipantId': value['vendorParticipantId'],
|
|
91
91
|
'participantId': value['participantId'],
|
|
@@ -86,7 +86,6 @@ function InviteWithAnalyticsToJSON(json) {
|
|
|
86
86
|
return InviteWithAnalyticsToJSONTyped(json, false);
|
|
87
87
|
}
|
|
88
88
|
function InviteWithAnalyticsToJSONTyped(value, ignoreDiscriminator) {
|
|
89
|
-
var _a, _b;
|
|
90
89
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
91
90
|
if (value == null) {
|
|
92
91
|
return value;
|
|
@@ -98,10 +97,10 @@ function InviteWithAnalyticsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
97
|
'config': (0, InviteConfig_1.InviteConfigToJSON)(value['config']),
|
|
99
98
|
'code': value['code'],
|
|
100
99
|
'status': (0, InviteStatus_1.InviteStatusToJSON)(value['status']),
|
|
101
|
-
'createdAt':
|
|
102
|
-
'updatedAt':
|
|
103
|
-
'liveAt': value['liveAt']
|
|
104
|
-
'expiresAt': value['expiresAt']
|
|
100
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
101
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
102
|
+
'liveAt': value['liveAt'] == null ? value['liveAt'] : value['liveAt'].toISOString(),
|
|
103
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
105
104
|
'createdById': value['createdById'],
|
|
106
105
|
'projectId': value['projectId'],
|
|
107
106
|
'createdBy': (0, User_1.UserToJSON)(value['createdBy']),
|
|
@@ -64,7 +64,6 @@ function JoinCodeInvite302ResponseToJSON(json) {
|
|
|
64
64
|
return JoinCodeInvite302ResponseToJSONTyped(json, false);
|
|
65
65
|
}
|
|
66
66
|
function JoinCodeInvite302ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
var _a;
|
|
68
67
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
68
|
if (value == null) {
|
|
70
69
|
return value;
|
|
@@ -75,7 +74,7 @@ function JoinCodeInvite302ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
74
|
'name': value['name'],
|
|
76
75
|
'description': value['description'],
|
|
77
76
|
'status': (0, InviteStatus_1.InviteStatusToJSON)(value['status']),
|
|
78
|
-
'expiresAt': value['expiresAt']
|
|
77
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
79
78
|
'projectId': value['projectId'],
|
|
80
79
|
'config': (0, CodeInviteConfig_1.CodeInviteConfigToJSON)(value['config']),
|
|
81
80
|
'settings': (0, JoinCodeInvite302ResponseSettings_1.JoinCodeInvite302ResponseSettingsToJSON)(value['settings']),
|
|
@@ -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<
|
|
28
|
+
* @type {Array<ScreenerQuestionPublic>}
|
|
29
29
|
* @memberof JoinCodeInvite302ResponseSettings
|
|
30
30
|
*/
|
|
31
|
-
screenerQuestions?: Array<
|
|
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(
|
|
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(
|
|
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
|
}
|
|
@@ -119,8 +119,8 @@ function Login200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
119
119
|
return {
|
|
120
120
|
'id': value['id'],
|
|
121
121
|
'seq': value['seq'],
|
|
122
|
-
'createdAt':
|
|
123
|
-
'updatedAt':
|
|
122
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
123
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
124
124
|
'provider': (0, UserProvider_1.UserProviderToJSON)(value['provider']),
|
|
125
125
|
'userId': value['userId'],
|
|
126
126
|
'email': value['email'],
|
|
@@ -130,10 +130,10 @@ function Login200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
130
130
|
'profileImageUrl': value['profileImageUrl'],
|
|
131
131
|
'data': (0, UserData_1.UserDataToJSON)(value['data']),
|
|
132
132
|
'passwordHash': value['passwordHash'],
|
|
133
|
-
'emailVerifiedAt': value['emailVerifiedAt'] == null ?
|
|
133
|
+
'emailVerifiedAt': value['emailVerifiedAt'] == null ? value['emailVerifiedAt'] : value['emailVerifiedAt'].toISOString(),
|
|
134
134
|
'token': value['token'],
|
|
135
135
|
'tokenKind': (0, TokenKind_1.TokenKindToJSON)(value['tokenKind']),
|
|
136
|
-
'tokenExpiry': value['tokenExpiry'] == null ?
|
|
136
|
+
'tokenExpiry': value['tokenExpiry'] == null ? value['tokenExpiry'] : value['tokenExpiry'].toISOString(),
|
|
137
137
|
'orgId': value['orgId'],
|
|
138
138
|
'defaultWorkspaceId': value['defaultWorkspaceId'],
|
|
139
139
|
'org': (0, Org_1.OrgToJSON)(value['org']),
|
package/dist/models/ModelFile.js
CHANGED
|
@@ -87,15 +87,14 @@ function ModelFileToJSON(json) {
|
|
|
87
87
|
return ModelFileToJSONTyped(json, false);
|
|
88
88
|
}
|
|
89
89
|
function ModelFileToJSONTyped(value, ignoreDiscriminator) {
|
|
90
|
-
var _a, _b;
|
|
91
90
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
92
91
|
if (value == null) {
|
|
93
92
|
return value;
|
|
94
93
|
}
|
|
95
94
|
return {
|
|
96
95
|
'id': value['id'],
|
|
97
|
-
'createdAt':
|
|
98
|
-
'updatedAt':
|
|
96
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
97
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
99
98
|
'filename': value['filename'],
|
|
100
99
|
'displayName': value['displayName'],
|
|
101
100
|
'mimeType': (0, FileMimeType_1.FileMimeTypeToJSON)(value['mimeType']),
|
|
@@ -108,9 +107,9 @@ function ModelFileToJSONTyped(value, ignoreDiscriminator) {
|
|
|
108
107
|
'description': value['description'],
|
|
109
108
|
'metadata': value['metadata'],
|
|
110
109
|
'isPublic': value['isPublic'],
|
|
111
|
-
'expiresAt': value['expiresAt']
|
|
110
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
112
111
|
'publicUrl': value['publicUrl'],
|
|
113
|
-
'publicUrlExpiresAt': value['publicUrlExpiresAt']
|
|
112
|
+
'publicUrlExpiresAt': value['publicUrlExpiresAt'] == null ? value['publicUrlExpiresAt'] : value['publicUrlExpiresAt'].toISOString(),
|
|
114
113
|
'uploadedBy': (0, User_1.UserToJSON)(value['uploadedBy']),
|
|
115
114
|
'workspace': (0, Workspace_1.WorkspaceToJSON)(value['workspace']),
|
|
116
115
|
'projectFiles': value['projectFiles'] == null ? undefined : (value['projectFiles'].map(ProjectFile_1.ProjectFileToJSON)),
|
package/dist/models/Moderator.js
CHANGED
|
@@ -95,8 +95,8 @@ function ModeratorToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
95
|
'vendorData': value['vendorData'],
|
|
96
96
|
'workspaceId': value['workspaceId'],
|
|
97
97
|
'createdById': value['createdById'],
|
|
98
|
-
'createdAt':
|
|
99
|
-
'updatedAt':
|
|
98
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
99
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
100
100
|
'parentModeratorId': value['parentModeratorId'],
|
|
101
101
|
'workspace': (0, Workspace_1.WorkspaceToJSON)(value['workspace']),
|
|
102
102
|
'createdBy': (0, User_1.UserToJSON)(value['createdBy']),
|
|
@@ -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
|
+
}
|
package/dist/models/Org.js
CHANGED
|
@@ -63,8 +63,8 @@ function OrgToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
'id': value['id'],
|
|
66
|
-
'createdAt':
|
|
67
|
-
'updatedAt':
|
|
66
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
67
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
68
68
|
'name': value['name'],
|
|
69
69
|
'domain': value['domain'],
|
|
70
70
|
'data': (0, OrgData_1.OrgDataToJSON)(value['data']),
|
|
@@ -70,8 +70,8 @@ function ParticipantToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
70
|
}
|
|
71
71
|
return {
|
|
72
72
|
'id': value['id'],
|
|
73
|
-
'createdAt':
|
|
74
|
-
'updatedAt':
|
|
73
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
74
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
75
75
|
'email': value['email'],
|
|
76
76
|
'phoneNumber': value['phoneNumber'],
|
|
77
77
|
'name': value['name'],
|
|
@@ -61,8 +61,8 @@ function ParticipantAttributeToJSONTyped(value, ignoreDiscriminator) {
|
|
|
61
61
|
return {
|
|
62
62
|
'participantId': value['participantId'],
|
|
63
63
|
'attributeId': value['attributeId'],
|
|
64
|
-
'createdAt':
|
|
65
|
-
'updatedAt':
|
|
64
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
65
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
66
66
|
'participant': (0, Participant_1.ParticipantToJSON)(value['participant']),
|
|
67
67
|
'attribute': (0, Attribute_1.AttributeToJSON)(value['attribute']),
|
|
68
68
|
};
|
|
@@ -67,8 +67,8 @@ function ParticipantInviteToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
'code': value['code'],
|
|
70
|
-
'createdAt':
|
|
71
|
-
'updatedAt':
|
|
70
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
71
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
72
72
|
'participantId': value['participantId'],
|
|
73
73
|
'inviteId': value['inviteId'],
|
|
74
74
|
'config': (0, ParticipantInviteConfig_1.ParticipantInviteConfigToJSON)(value['config']),
|
|
@@ -46,6 +46,6 @@ function ParticipantInviteDataToJSONTyped(value, ignoreDiscriminator) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'emailSent': value['emailSent'],
|
|
49
|
-
'emailSentAt': value['emailSentAt'] == null ?
|
|
49
|
+
'emailSentAt': value['emailSentAt'] == null ? value['emailSentAt'] : value['emailSentAt'].toISOString(),
|
|
50
50
|
};
|
|
51
51
|
}
|
package/dist/models/Project.js
CHANGED
|
@@ -100,8 +100,8 @@ function ProjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
100
|
}
|
|
101
101
|
return {
|
|
102
102
|
'id': value['id'],
|
|
103
|
-
'createdAt':
|
|
104
|
-
'updatedAt':
|
|
103
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
104
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
105
105
|
'name': value['name'],
|
|
106
106
|
'description': value['description'],
|
|
107
107
|
'status': (0, ProjectStatus_1.ProjectStatusToJSON)(value['status']),
|
|
@@ -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
|
}
|
|
@@ -68,8 +68,8 @@ function ProjectFileToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
68
|
}
|
|
69
69
|
return {
|
|
70
70
|
'id': value['id'],
|
|
71
|
-
'createdAt':
|
|
72
|
-
'updatedAt':
|
|
71
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
72
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
73
73
|
'projectId': value['projectId'],
|
|
74
74
|
'fileId': value['fileId'],
|
|
75
75
|
'description': value['description'],
|
|
@@ -45,7 +45,6 @@ function ProjectFilePublicFileToJSON(json) {
|
|
|
45
45
|
return ProjectFilePublicFileToJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
47
|
function ProjectFilePublicFileToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
var _a;
|
|
49
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
49
|
if (value == null) {
|
|
51
50
|
return value;
|
|
@@ -54,6 +53,6 @@ function ProjectFilePublicFileToJSONTyped(value, ignoreDiscriminator) {
|
|
|
54
53
|
'description': value['description'],
|
|
55
54
|
'mimeType': (0, FileMimeType_1.FileMimeTypeToJSON)(value['mimeType']),
|
|
56
55
|
'publicUrl': value['publicUrl'],
|
|
57
|
-
'publicUrlExpiresAt': value['publicUrlExpiresAt']
|
|
56
|
+
'publicUrlExpiresAt': value['publicUrlExpiresAt'] == null ? value['publicUrlExpiresAt'] : value['publicUrlExpiresAt'].toISOString(),
|
|
58
57
|
};
|
|
59
58
|
}
|
|
@@ -68,8 +68,8 @@ function ProjectSummaryWithAnalyticsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
68
|
'name': value['name'],
|
|
69
69
|
'description': value['description'],
|
|
70
70
|
'status': (0, ProjectStatus_1.ProjectStatusToJSON)(value['status']),
|
|
71
|
-
'createdAt':
|
|
72
|
-
'updatedAt':
|
|
71
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
72
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
73
73
|
'invites': (value['invites'].map(InviteWithAnalytics_1.InviteWithAnalyticsToJSON)),
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -102,8 +102,8 @@ function ProjectWithAnalyticsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
102
|
}
|
|
103
103
|
return {
|
|
104
104
|
'id': value['id'],
|
|
105
|
-
'createdAt':
|
|
106
|
-
'updatedAt':
|
|
105
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
106
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
107
107
|
'name': value['name'],
|
|
108
108
|
'description': value['description'],
|
|
109
109
|
'status': (0, ProjectStatus_1.ProjectStatusToJSON)(value['status']),
|
|
@@ -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
|
+
}
|