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
package/src/models/Invite.ts
CHANGED
|
@@ -238,10 +238,10 @@ export function InviteToJSONTyped(value?: Invite | null, ignoreDiscriminator: bo
|
|
|
238
238
|
'config': InviteConfigToJSON(value['config']),
|
|
239
239
|
'code': value['code'],
|
|
240
240
|
'status': InviteStatusToJSON(value['status']),
|
|
241
|
-
'createdAt':
|
|
242
|
-
'updatedAt':
|
|
243
|
-
'liveAt': value['liveAt']
|
|
244
|
-
'expiresAt': value['expiresAt']
|
|
241
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
242
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
243
|
+
'liveAt': value['liveAt'] == null ? value['liveAt'] : value['liveAt'].toISOString(),
|
|
244
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
245
245
|
'createdById': value['createdById'],
|
|
246
246
|
'projectId': value['projectId'],
|
|
247
247
|
'createdBy': UserToJSON(value['createdBy']),
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import type { InviteConfigByoPanel } from './InviteConfigByoPanel';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfInviteConfigByoPanel,
|
|
18
|
+
InviteConfigByoPanelFromJSON,
|
|
19
|
+
InviteConfigByoPanelFromJSONTyped,
|
|
20
|
+
InviteConfigByoPanelToJSON,
|
|
21
|
+
} from './InviteConfigByoPanel';
|
|
15
22
|
import type { InviteConfigContacts } from './InviteConfigContacts';
|
|
16
23
|
import {
|
|
17
24
|
instanceOfInviteConfigContacts,
|
|
@@ -39,7 +46,7 @@ import {
|
|
|
39
46
|
*
|
|
40
47
|
* @export
|
|
41
48
|
*/
|
|
42
|
-
export type InviteConfig = { kind: 'CONTACTS' } & InviteConfigContacts | { kind: 'KEPLAR_PANEL' } & InviteConfigKeplarPanel | { kind: 'PUBLIC' } & InviteConfigPublic;
|
|
49
|
+
export type InviteConfig = { kind: 'BYO_PANEL' } & InviteConfigByoPanel | { kind: 'CONTACTS' } & InviteConfigContacts | { kind: 'KEPLAR_PANEL' } & InviteConfigKeplarPanel | { kind: 'PUBLIC' } & InviteConfigPublic;
|
|
43
50
|
|
|
44
51
|
export function InviteConfigFromJSON(json: any): InviteConfig {
|
|
45
52
|
return InviteConfigFromJSONTyped(json, false);
|
|
@@ -50,6 +57,8 @@ export function InviteConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
50
57
|
return json;
|
|
51
58
|
}
|
|
52
59
|
switch (json['kind']) {
|
|
60
|
+
case 'BYO_PANEL':
|
|
61
|
+
return Object.assign({}, InviteConfigByoPanelFromJSONTyped(json, true), { kind: 'BYO_PANEL' } as const);
|
|
53
62
|
case 'CONTACTS':
|
|
54
63
|
return Object.assign({}, InviteConfigContactsFromJSONTyped(json, true), { kind: 'CONTACTS' } as const);
|
|
55
64
|
case 'KEPLAR_PANEL':
|
|
@@ -70,6 +79,8 @@ export function InviteConfigToJSONTyped(value?: InviteConfig | null, ignoreDiscr
|
|
|
70
79
|
return value;
|
|
71
80
|
}
|
|
72
81
|
switch (value['kind']) {
|
|
82
|
+
case 'BYO_PANEL':
|
|
83
|
+
return Object.assign({}, InviteConfigByoPanelToJSON(value), { kind: 'BYO_PANEL' } as const);
|
|
73
84
|
case 'CONTACTS':
|
|
74
85
|
return Object.assign({}, InviteConfigContactsToJSON(value), { kind: 'CONTACTS' } as const);
|
|
75
86
|
case 'KEPLAR_PANEL':
|
|
@@ -0,0 +1,126 @@
|
|
|
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 { ByoPanelRepdataConfig } from './ByoPanelRepdataConfig';
|
|
17
|
+
import {
|
|
18
|
+
ByoPanelRepdataConfigFromJSON,
|
|
19
|
+
ByoPanelRepdataConfigFromJSONTyped,
|
|
20
|
+
ByoPanelRepdataConfigToJSON,
|
|
21
|
+
ByoPanelRepdataConfigToJSONTyped,
|
|
22
|
+
} from './ByoPanelRepdataConfig';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface InviteConfigByoPanel
|
|
28
|
+
*/
|
|
29
|
+
export interface InviteConfigByoPanel {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InviteConfigByoPanel
|
|
34
|
+
*/
|
|
35
|
+
kind: InviteConfigByoPanelKindEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ByoPanelRepdataConfig}
|
|
39
|
+
* @memberof InviteConfigByoPanel
|
|
40
|
+
*/
|
|
41
|
+
byoPanelConfig: ByoPanelRepdataConfig;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InviteConfigByoPanel
|
|
46
|
+
*/
|
|
47
|
+
title: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InviteConfigByoPanel
|
|
52
|
+
*/
|
|
53
|
+
description?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof InviteConfigByoPanel
|
|
58
|
+
*/
|
|
59
|
+
maxResponses?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof InviteConfigByoPanel
|
|
64
|
+
*/
|
|
65
|
+
maxResponsesPerParticipant?: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const InviteConfigByoPanelKindEnum = {
|
|
73
|
+
ByoPanel: 'BYO_PANEL'
|
|
74
|
+
} as const;
|
|
75
|
+
export type InviteConfigByoPanelKindEnum = typeof InviteConfigByoPanelKindEnum[keyof typeof InviteConfigByoPanelKindEnum];
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the InviteConfigByoPanel interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfInviteConfigByoPanel(value: object): value is InviteConfigByoPanel {
|
|
82
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
83
|
+
if (!('byoPanelConfig' in value) || value['byoPanelConfig'] === undefined) return false;
|
|
84
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function InviteConfigByoPanelFromJSON(json: any): InviteConfigByoPanel {
|
|
89
|
+
return InviteConfigByoPanelFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function InviteConfigByoPanelFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteConfigByoPanel {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'kind': json['kind'],
|
|
99
|
+
'byoPanelConfig': ByoPanelRepdataConfigFromJSON(json['byoPanelConfig']),
|
|
100
|
+
'title': json['title'],
|
|
101
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
102
|
+
'maxResponses': json['maxResponses'] == null ? undefined : json['maxResponses'],
|
|
103
|
+
'maxResponsesPerParticipant': json['maxResponsesPerParticipant'] == null ? undefined : json['maxResponsesPerParticipant'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function InviteConfigByoPanelToJSON(json: any): InviteConfigByoPanel {
|
|
108
|
+
return InviteConfigByoPanelToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function InviteConfigByoPanelToJSONTyped(value?: InviteConfigByoPanel | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'kind': value['kind'],
|
|
119
|
+
'byoPanelConfig': ByoPanelRepdataConfigToJSON(value['byoPanelConfig']),
|
|
120
|
+
'title': value['title'],
|
|
121
|
+
'description': value['description'],
|
|
122
|
+
'maxResponses': value['maxResponses'],
|
|
123
|
+
'maxResponsesPerParticipant': value['maxResponsesPerParticipant'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -220,8 +220,8 @@ export function InviteResponseToJSONTyped(value?: InviteResponse | null, ignoreD
|
|
|
220
220
|
'status': InviteResponseStatusToJSON(value['status']),
|
|
221
221
|
'data': InviteResponseDataToJSON(value['data']),
|
|
222
222
|
'metadata': InviteResponseMetadataToJSON(value['metadata']),
|
|
223
|
-
'createdAt':
|
|
224
|
-
'updatedAt':
|
|
223
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
224
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
225
225
|
'inviteId': value['inviteId'],
|
|
226
226
|
'vendorParticipantId': value['vendorParticipantId'],
|
|
227
227
|
'participantId': value['participantId'],
|
|
@@ -122,7 +122,7 @@ export function InviteResponseAttributeToJSONTyped(value?: InviteResponseAttribu
|
|
|
122
122
|
'inviteResponseId': value['inviteResponseId'],
|
|
123
123
|
'attributeId': value['attributeId'],
|
|
124
124
|
'data': InviteResponseAttributeDataToJSON(value['data']),
|
|
125
|
-
'createdAt':
|
|
125
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
126
126
|
'inviteResponse': InviteResponseToJSON(value['inviteResponse']),
|
|
127
127
|
'attribute': AttributeToJSON(value['attribute']),
|
|
128
128
|
};
|
|
@@ -221,8 +221,8 @@ export function InviteResponseWithCallSummaryToJSONTyped(value?: InviteResponseW
|
|
|
221
221
|
'status': InviteResponseStatusToJSON(value['status']),
|
|
222
222
|
'data': InviteResponseDataToJSON(value['data']),
|
|
223
223
|
'metadata': InviteResponseMetadataToJSON(value['metadata']),
|
|
224
|
-
'createdAt':
|
|
225
|
-
'updatedAt':
|
|
224
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
225
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
226
226
|
'inviteId': value['inviteId'],
|
|
227
227
|
'vendorParticipantId': value['vendorParticipantId'],
|
|
228
228
|
'participantId': value['participantId'],
|
|
@@ -254,10 +254,10 @@ export function InviteWithAnalyticsToJSONTyped(value?: InviteWithAnalytics | nul
|
|
|
254
254
|
'config': InviteConfigToJSON(value['config']),
|
|
255
255
|
'code': value['code'],
|
|
256
256
|
'status': InviteStatusToJSON(value['status']),
|
|
257
|
-
'createdAt':
|
|
258
|
-
'updatedAt':
|
|
259
|
-
'liveAt': value['liveAt']
|
|
260
|
-
'expiresAt': value['expiresAt']
|
|
257
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
258
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
259
|
+
'liveAt': value['liveAt'] == null ? value['liveAt'] : value['liveAt'].toISOString(),
|
|
260
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
261
261
|
'createdById': value['createdById'],
|
|
262
262
|
'projectId': value['projectId'],
|
|
263
263
|
'createdBy': UserToJSON(value['createdBy']),
|
|
@@ -151,7 +151,7 @@ export function JoinCodeInvite302ResponseToJSONTyped(value?: JoinCodeInvite302Re
|
|
|
151
151
|
'name': value['name'],
|
|
152
152
|
'description': value['description'],
|
|
153
153
|
'status': InviteStatusToJSON(value['status']),
|
|
154
|
-
'expiresAt': value['expiresAt']
|
|
154
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
155
155
|
'projectId': value['projectId'],
|
|
156
156
|
'config': CodeInviteConfigToJSON(value['config']),
|
|
157
157
|
'settings': JoinCodeInvite302ResponseSettingsToJSON(value['settings']),
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ScreenerQuestionChooseOnePublic } from './ScreenerQuestionChooseOnePublic';
|
|
17
|
-
import {
|
|
18
|
-
ScreenerQuestionChooseOnePublicFromJSON,
|
|
19
|
-
ScreenerQuestionChooseOnePublicFromJSONTyped,
|
|
20
|
-
ScreenerQuestionChooseOnePublicToJSON,
|
|
21
|
-
ScreenerQuestionChooseOnePublicToJSONTyped,
|
|
22
|
-
} from './ScreenerQuestionChooseOnePublic';
|
|
23
16
|
import type { ProjectFilePublic } from './ProjectFilePublic';
|
|
24
17
|
import {
|
|
25
18
|
ProjectFilePublicFromJSON,
|
|
@@ -27,6 +20,13 @@ import {
|
|
|
27
20
|
ProjectFilePublicToJSON,
|
|
28
21
|
ProjectFilePublicToJSONTyped,
|
|
29
22
|
} from './ProjectFilePublic';
|
|
23
|
+
import type { ScreenerQuestionPublic } from './ScreenerQuestionPublic';
|
|
24
|
+
import {
|
|
25
|
+
ScreenerQuestionPublicFromJSON,
|
|
26
|
+
ScreenerQuestionPublicFromJSONTyped,
|
|
27
|
+
ScreenerQuestionPublicToJSON,
|
|
28
|
+
ScreenerQuestionPublicToJSONTyped,
|
|
29
|
+
} from './ScreenerQuestionPublic';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -42,10 +42,10 @@ export interface JoinCodeInvite302ResponseSettings {
|
|
|
42
42
|
maxDurationSeconds: number;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<ScreenerQuestionPublic>}
|
|
46
46
|
* @memberof JoinCodeInvite302ResponseSettings
|
|
47
47
|
*/
|
|
48
|
-
screenerQuestions?: Array<
|
|
48
|
+
screenerQuestions?: Array<ScreenerQuestionPublic>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {Array<ProjectFilePublic>}
|
|
@@ -73,7 +73,7 @@ export function JoinCodeInvite302ResponseSettingsFromJSONTyped(json: any, ignore
|
|
|
73
73
|
return {
|
|
74
74
|
|
|
75
75
|
'maxDurationSeconds': json['maxDurationSeconds'],
|
|
76
|
-
'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(
|
|
76
|
+
'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionPublicFromJSON)),
|
|
77
77
|
'files': json['files'] == null ? undefined : ((json['files'] as Array<any>).map(ProjectFilePublicFromJSON)),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -90,7 +90,7 @@ export function JoinCodeInvite302ResponseSettingsToJSONTyped(value?: JoinCodeInv
|
|
|
90
90
|
return {
|
|
91
91
|
|
|
92
92
|
'maxDurationSeconds': value['maxDurationSeconds'],
|
|
93
|
-
'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(
|
|
93
|
+
'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionPublicToJSON)),
|
|
94
94
|
'files': value['files'] == null ? undefined : ((value['files'] as Array<any>).map(ProjectFilePublicToJSON)),
|
|
95
95
|
};
|
|
96
96
|
}
|
|
@@ -420,8 +420,8 @@ export function Login200ResponseToJSONTyped(value?: Login200Response | null, ign
|
|
|
420
420
|
|
|
421
421
|
'id': value['id'],
|
|
422
422
|
'seq': value['seq'],
|
|
423
|
-
'createdAt':
|
|
424
|
-
'updatedAt':
|
|
423
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
424
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
425
425
|
'provider': UserProviderToJSON(value['provider']),
|
|
426
426
|
'userId': value['userId'],
|
|
427
427
|
'email': value['email'],
|
|
@@ -431,10 +431,10 @@ export function Login200ResponseToJSONTyped(value?: Login200Response | null, ign
|
|
|
431
431
|
'profileImageUrl': value['profileImageUrl'],
|
|
432
432
|
'data': UserDataToJSON(value['data']),
|
|
433
433
|
'passwordHash': value['passwordHash'],
|
|
434
|
-
'emailVerifiedAt': value['emailVerifiedAt'] == null ?
|
|
434
|
+
'emailVerifiedAt': value['emailVerifiedAt'] == null ? value['emailVerifiedAt'] : value['emailVerifiedAt'].toISOString(),
|
|
435
435
|
'token': value['token'],
|
|
436
436
|
'tokenKind': TokenKindToJSON(value['tokenKind']),
|
|
437
|
-
'tokenExpiry': value['tokenExpiry'] == null ?
|
|
437
|
+
'tokenExpiry': value['tokenExpiry'] == null ? value['tokenExpiry'] : value['tokenExpiry'].toISOString(),
|
|
438
438
|
'orgId': value['orgId'],
|
|
439
439
|
'defaultWorkspaceId': value['defaultWorkspaceId'],
|
|
440
440
|
'org': OrgToJSON(value['org']),
|
package/src/models/ModelFile.ts
CHANGED
|
@@ -256,8 +256,8 @@ export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminat
|
|
|
256
256
|
return {
|
|
257
257
|
|
|
258
258
|
'id': value['id'],
|
|
259
|
-
'createdAt':
|
|
260
|
-
'updatedAt':
|
|
259
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
260
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
261
261
|
'filename': value['filename'],
|
|
262
262
|
'displayName': value['displayName'],
|
|
263
263
|
'mimeType': FileMimeTypeToJSON(value['mimeType']),
|
|
@@ -270,9 +270,9 @@ export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminat
|
|
|
270
270
|
'description': value['description'],
|
|
271
271
|
'metadata': value['metadata'],
|
|
272
272
|
'isPublic': value['isPublic'],
|
|
273
|
-
'expiresAt': value['expiresAt']
|
|
273
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
274
274
|
'publicUrl': value['publicUrl'],
|
|
275
|
-
'publicUrlExpiresAt': value['publicUrlExpiresAt']
|
|
275
|
+
'publicUrlExpiresAt': value['publicUrlExpiresAt'] == null ? value['publicUrlExpiresAt'] : value['publicUrlExpiresAt'].toISOString(),
|
|
276
276
|
'uploadedBy': UserToJSON(value['uploadedBy']),
|
|
277
277
|
'workspace': WorkspaceToJSON(value['workspace']),
|
|
278
278
|
'projectFiles': value['projectFiles'] == null ? undefined : ((value['projectFiles'] as Array<any>).map(ProjectFileToJSON)),
|
package/src/models/Moderator.ts
CHANGED
|
@@ -242,8 +242,8 @@ export function ModeratorToJSONTyped(value?: Moderator | null, ignoreDiscriminat
|
|
|
242
242
|
'vendorData': value['vendorData'],
|
|
243
243
|
'workspaceId': value['workspaceId'],
|
|
244
244
|
'createdById': value['createdById'],
|
|
245
|
-
'createdAt':
|
|
246
|
-
'updatedAt':
|
|
245
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
246
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
247
247
|
'parentModeratorId': value['parentModeratorId'],
|
|
248
248
|
'workspace': WorkspaceToJSON(value['workspace']),
|
|
249
249
|
'createdBy': UserToJSON(value['createdBy']),
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const OptionKind = {
|
|
21
|
+
Neutral: 'neutral',
|
|
22
|
+
ScreenOutIfSelected: 'screenOutIfSelected',
|
|
23
|
+
PassingOption: 'passingOption'
|
|
24
|
+
} as const;
|
|
25
|
+
export type OptionKind = typeof OptionKind[keyof typeof OptionKind];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfOptionKind(value: any): boolean {
|
|
29
|
+
for (const key in OptionKind) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(OptionKind, key)) {
|
|
31
|
+
if (OptionKind[key as keyof typeof OptionKind] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function OptionKindFromJSON(json: any): OptionKind {
|
|
40
|
+
return OptionKindFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function OptionKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptionKind {
|
|
44
|
+
return json as OptionKind;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function OptionKindToJSON(value?: OptionKind | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OptionKindToJSONTyped(value: any, ignoreDiscriminator: boolean): OptionKind {
|
|
52
|
+
return value as OptionKind;
|
|
53
|
+
}
|
|
54
|
+
|
package/src/models/Org.ts
CHANGED
|
@@ -122,8 +122,8 @@ export function OrgToJSONTyped(value?: Org | null, ignoreDiscriminator: boolean
|
|
|
122
122
|
return {
|
|
123
123
|
|
|
124
124
|
'id': value['id'],
|
|
125
|
-
'createdAt':
|
|
126
|
-
'updatedAt':
|
|
125
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
126
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
127
127
|
'name': value['name'],
|
|
128
128
|
'domain': value['domain'],
|
|
129
129
|
'data': OrgDataToJSON(value['data']),
|
|
@@ -184,8 +184,8 @@ export function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscrim
|
|
|
184
184
|
return {
|
|
185
185
|
|
|
186
186
|
'id': value['id'],
|
|
187
|
-
'createdAt':
|
|
188
|
-
'updatedAt':
|
|
187
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
188
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
189
189
|
'email': value['email'],
|
|
190
190
|
'phoneNumber': value['phoneNumber'],
|
|
191
191
|
'name': value['name'],
|
|
@@ -115,8 +115,8 @@ export function ParticipantAttributeToJSONTyped(value?: ParticipantAttribute | n
|
|
|
115
115
|
|
|
116
116
|
'participantId': value['participantId'],
|
|
117
117
|
'attributeId': value['attributeId'],
|
|
118
|
-
'createdAt':
|
|
119
|
-
'updatedAt':
|
|
118
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
119
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
120
120
|
'participant': ParticipantToJSON(value['participant']),
|
|
121
121
|
'attribute': AttributeToJSON(value['attribute']),
|
|
122
122
|
};
|
|
@@ -150,8 +150,8 @@ export function ParticipantInviteToJSONTyped(value?: ParticipantInvite | null, i
|
|
|
150
150
|
return {
|
|
151
151
|
|
|
152
152
|
'code': value['code'],
|
|
153
|
-
'createdAt':
|
|
154
|
-
'updatedAt':
|
|
153
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
154
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
155
155
|
'participantId': value['participantId'],
|
|
156
156
|
'inviteId': value['inviteId'],
|
|
157
157
|
'config': ParticipantInviteConfigToJSON(value['config']),
|
|
@@ -67,7 +67,7 @@ export function ParticipantInviteDataToJSONTyped(value?: ParticipantInviteData |
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
'emailSent': value['emailSent'],
|
|
70
|
-
'emailSentAt': value['emailSentAt'] == null ?
|
|
70
|
+
'emailSentAt': value['emailSentAt'] == null ? value['emailSentAt'] : value['emailSentAt'].toISOString(),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
package/src/models/Project.ts
CHANGED
|
@@ -318,8 +318,8 @@ export function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator:
|
|
|
318
318
|
return {
|
|
319
319
|
|
|
320
320
|
'id': value['id'],
|
|
321
|
-
'createdAt':
|
|
322
|
-
'updatedAt':
|
|
321
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
322
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
323
323
|
'name': value['name'],
|
|
324
324
|
'description': value['description'],
|
|
325
325
|
'status': ProjectStatusToJSON(value['status']),
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ScreenerQuestionChooseOne } from './ScreenerQuestionChooseOne';
|
|
17
|
-
import {
|
|
18
|
-
ScreenerQuestionChooseOneFromJSON,
|
|
19
|
-
ScreenerQuestionChooseOneFromJSONTyped,
|
|
20
|
-
ScreenerQuestionChooseOneToJSON,
|
|
21
|
-
ScreenerQuestionChooseOneToJSONTyped,
|
|
22
|
-
} from './ScreenerQuestionChooseOne';
|
|
23
16
|
import type { ProjectBrief } from './ProjectBrief';
|
|
24
17
|
import {
|
|
25
18
|
ProjectBriefFromJSON,
|
|
@@ -34,6 +27,13 @@ import {
|
|
|
34
27
|
ProjectAudienceToJSON,
|
|
35
28
|
ProjectAudienceToJSONTyped,
|
|
36
29
|
} from './ProjectAudience';
|
|
30
|
+
import type { ScreenerQuestion } from './ScreenerQuestion';
|
|
31
|
+
import {
|
|
32
|
+
ScreenerQuestionFromJSON,
|
|
33
|
+
ScreenerQuestionFromJSONTyped,
|
|
34
|
+
ScreenerQuestionToJSON,
|
|
35
|
+
ScreenerQuestionToJSONTyped,
|
|
36
|
+
} from './ScreenerQuestion';
|
|
37
37
|
import type { ProjectKind } from './ProjectKind';
|
|
38
38
|
import {
|
|
39
39
|
ProjectKindFromJSON,
|
|
@@ -80,10 +80,10 @@ export interface ProjectConfig {
|
|
|
80
80
|
briefDocument?: string;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
|
-
* @type {Array<
|
|
83
|
+
* @type {Array<ScreenerQuestion>}
|
|
84
84
|
* @memberof ProjectConfig
|
|
85
85
|
*/
|
|
86
|
-
screenerQuestions?: Array<
|
|
86
|
+
screenerQuestions?: Array<ScreenerQuestion>;
|
|
87
87
|
/**
|
|
88
88
|
*
|
|
89
89
|
* @type {ProjectAudience}
|
|
@@ -118,7 +118,7 @@ export function ProjectConfigFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
118
118
|
'learningPlan': json['learningPlan'],
|
|
119
119
|
'brief': json['brief'] == null ? undefined : ProjectBriefFromJSON(json['brief']),
|
|
120
120
|
'briefDocument': json['briefDocument'] == null ? undefined : json['briefDocument'],
|
|
121
|
-
'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(
|
|
121
|
+
'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionFromJSON)),
|
|
122
122
|
'audienceSettings': json['audienceSettings'] == null ? undefined : ProjectAudienceFromJSON(json['audienceSettings']),
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -139,7 +139,7 @@ export function ProjectConfigToJSONTyped(value?: ProjectConfig | null, ignoreDis
|
|
|
139
139
|
'learningPlan': value['learningPlan'],
|
|
140
140
|
'brief': ProjectBriefToJSON(value['brief']),
|
|
141
141
|
'briefDocument': value['briefDocument'],
|
|
142
|
-
'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(
|
|
142
|
+
'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionToJSON)),
|
|
143
143
|
'audienceSettings': ProjectAudienceToJSON(value['audienceSettings']),
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -159,8 +159,8 @@ export function ProjectFileToJSONTyped(value?: ProjectFile | null, ignoreDiscrim
|
|
|
159
159
|
return {
|
|
160
160
|
|
|
161
161
|
'id': value['id'],
|
|
162
|
-
'createdAt':
|
|
163
|
-
'updatedAt':
|
|
162
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
163
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
164
164
|
'projectId': value['projectId'],
|
|
165
165
|
'fileId': value['fileId'],
|
|
166
166
|
'description': value['description'],
|
|
@@ -94,7 +94,7 @@ export function ProjectFilePublicFileToJSONTyped(value?: ProjectFilePublicFile |
|
|
|
94
94
|
'description': value['description'],
|
|
95
95
|
'mimeType': FileMimeTypeToJSON(value['mimeType']),
|
|
96
96
|
'publicUrl': value['publicUrl'],
|
|
97
|
-
'publicUrlExpiresAt': value['publicUrlExpiresAt']
|
|
97
|
+
'publicUrlExpiresAt': value['publicUrlExpiresAt'] == null ? value['publicUrlExpiresAt'] : value['publicUrlExpiresAt'].toISOString(),
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -128,8 +128,8 @@ export function ProjectSummaryWithAnalyticsToJSONTyped(value?: ProjectSummaryWit
|
|
|
128
128
|
'name': value['name'],
|
|
129
129
|
'description': value['description'],
|
|
130
130
|
'status': ProjectStatusToJSON(value['status']),
|
|
131
|
-
'createdAt':
|
|
132
|
-
'updatedAt':
|
|
131
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
132
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
133
133
|
'invites': ((value['invites'] as Array<any>).map(InviteWithAnalyticsToJSON)),
|
|
134
134
|
};
|
|
135
135
|
}
|
|
@@ -319,8 +319,8 @@ export function ProjectWithAnalyticsToJSONTyped(value?: ProjectWithAnalytics | n
|
|
|
319
319
|
return {
|
|
320
320
|
|
|
321
321
|
'id': value['id'],
|
|
322
|
-
'createdAt':
|
|
323
|
-
'updatedAt':
|
|
322
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
323
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
324
324
|
'name': value['name'],
|
|
325
325
|
'description': value['description'],
|
|
326
326
|
'status': ProjectStatusToJSON(value['status']),
|