keplar-api 0.0.3 → 0.0.5
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 +6 -7
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +25 -10
- package/dist/apis/DefaultApi.js +80 -15
- package/dist/models/ApiCallMessagesSearchPost200ResponseInner.d.ts +1 -1
- package/dist/models/ApiCallMessagesSearchPost200ResponseInner.js +2 -2
- package/dist/models/ApiFilesFileIdSignedUrlPost200Response.d.ts +1 -1
- package/dist/models/ApiFilesFileIdSignedUrlPost200Response.js +2 -2
- package/dist/models/ApiInviteCodeCodeGet200Response.d.ts +3 -35
- package/dist/models/ApiInviteCodeCodeGet200Response.js +4 -24
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.d.ts +32 -0
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.js +51 -0
- package/dist/models/ApiInviteCodeCodeStartGet302Response.d.ts +3 -35
- package/dist/models/ApiInviteCodeCodeStartGet302Response.js +4 -24
- package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.d.ts +64 -0
- package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.js +63 -0
- package/dist/models/ApiInvitesPostRequest.d.ts +1 -1
- package/dist/models/ApiInvitesPostRequest.js +1 -2
- package/dist/models/ApiThreadsThreadIdProjectBriefVersionsGet200Response.d.ts +33 -0
- package/dist/models/ApiThreadsThreadIdProjectBriefVersionsGet200Response.js +52 -0
- package/dist/models/CodeInvite.d.ts +3 -35
- package/dist/models/CodeInvite.js +4 -24
- package/dist/models/CodeInviteResponse.d.ts +0 -7
- package/dist/models/CodeInviteResponse.js +0 -3
- package/dist/models/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +3 -0
- package/dist/models/InviteResponseData.d.ts +5 -13
- package/dist/models/InviteResponseData.js +2 -4
- package/dist/models/InviteResponseMetadata.d.ts +34 -0
- package/dist/models/InviteResponseMetadata.js +49 -0
- package/dist/models/InviteResponseUpdateEvent.d.ts +21 -1
- package/dist/models/InviteResponseUpdateEvent.js +46 -66
- package/dist/models/ProjectBrief.d.ts +68 -0
- package/dist/models/ProjectBrief.js +71 -0
- package/dist/models/ProjectConfig.d.ts +18 -5
- package/dist/models/ProjectConfig.js +8 -3
- package/dist/models/ProjectKind.d.ts +26 -0
- package/dist/models/ProjectKind.js +52 -0
- package/dist/models/RepdataQualificationAllowedOptionIdsInner.d.ts +8 -3
- package/dist/models/RepdataQualificationAllowedOptionIdsInner.js +9 -8
- package/dist/models/ThreadMetadata.d.ts +3 -3
- package/dist/models/ThreadMetadata.js +3 -3
- package/dist/models/TranscriptMessage.d.ts +1 -1
- package/dist/models/TranscriptMessage.js +2 -2
- package/dist/models/index.d.ts +6 -7
- package/dist/models/index.js +6 -7
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +92 -24
- package/src/models/ApiCallMessagesSearchPost200ResponseInner.ts +3 -3
- package/src/models/ApiFilesFileIdSignedUrlPost200Response.ts +3 -3
- package/src/models/ApiInviteCodeCodeGet200Response.ts +11 -69
- package/src/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.ts +66 -0
- package/src/models/ApiInviteCodeCodeStartGet302Response.ts +11 -69
- package/src/models/ApiInviteCodeCodeStartGet302ResponseSettings.ts +121 -0
- package/src/models/ApiInvitesPostRequest.ts +2 -2
- package/src/models/ApiThreadsThreadIdProjectBriefVersionsGet200Response.ts +74 -0
- package/src/models/CodeInvite.ts +11 -69
- package/src/models/CodeInviteResponse.ts +0 -15
- package/src/models/InviteResponse.ts +15 -0
- package/src/models/InviteResponseData.ts +7 -15
- package/src/models/InviteResponseMetadata.ts +65 -0
- package/src/models/InviteResponseUpdateEvent.ts +47 -69
- package/src/models/ProjectBrief.ts +118 -0
- package/src/models/ProjectConfig.ts +37 -12
- package/src/models/ProjectKind.ts +54 -0
- package/src/models/RepdataQualificationAllowedOptionIdsInner.ts +14 -13
- package/src/models/ThreadMetadata.ts +10 -10
- package/src/models/TranscriptMessage.ts +3 -3
- package/src/models/index.ts +6 -7
- package/dist/models/ApiInviteCodeCodeStartGet302ResponseProjectConfig.d.ts +0 -45
- package/dist/models/ApiInviteCodeCodeStartGet302ResponseProjectConfig.js +0 -56
- package/dist/models/ApiThreadsThreadIdProjectDraftVersionsGet200Response.d.ts +0 -33
- package/dist/models/ApiThreadsThreadIdProjectDraftVersionsGet200Response.js +0 -52
- package/dist/models/ProjectDraftVersion.d.ts +0 -68
- package/dist/models/ProjectDraftVersion.js +0 -63
- package/dist/models/ProjectTemplateSettings.d.ts +0 -24
- package/dist/models/ProjectTemplateSettings.js +0 -65
- package/dist/models/TemplateConceptTest.d.ts +0 -45
- package/dist/models/TemplateConceptTest.js +0 -62
- package/dist/models/TemplateCustom.d.ts +0 -45
- package/dist/models/TemplateCustom.js +0 -62
- package/dist/models/TemplateInterview.d.ts +0 -51
- package/dist/models/TemplateInterview.js +0 -66
- package/src/models/ApiInviteCodeCodeStartGet302ResponseProjectConfig.ts +0 -90
- package/src/models/ApiThreadsThreadIdProjectDraftVersionsGet200Response.ts +0 -74
- package/src/models/ProjectDraftVersion.ts +0 -114
- package/src/models/ProjectTemplateSettings.ts +0 -91
- package/src/models/TemplateConceptTest.ts +0 -85
- package/src/models/TemplateCustom.ts +0 -85
- package/src/models/TemplateInterview.ts +0 -94
|
@@ -35,28 +35,22 @@ export interface InviteResponseData {
|
|
|
35
35
|
email?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
39
|
-
* @memberof InviteResponseData
|
|
40
|
-
*/
|
|
41
|
-
redirected?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {{ [key: string]: string; }}
|
|
38
|
+
* @type {Array<ProjectScreenerQuestionResponse>}
|
|
45
39
|
* @memberof InviteResponseData
|
|
46
40
|
*/
|
|
47
|
-
|
|
41
|
+
screenerQuestionsResponses?: Array<ProjectScreenerQuestionResponse>;
|
|
48
42
|
/**
|
|
49
43
|
*
|
|
50
|
-
* @type {
|
|
44
|
+
* @type {boolean}
|
|
51
45
|
* @memberof InviteResponseData
|
|
52
46
|
*/
|
|
53
|
-
|
|
47
|
+
consented?: boolean;
|
|
54
48
|
/**
|
|
55
49
|
*
|
|
56
50
|
* @type {boolean}
|
|
57
51
|
* @memberof InviteResponseData
|
|
58
52
|
*/
|
|
59
|
-
|
|
53
|
+
redirected?: boolean;
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
/**
|
|
@@ -77,10 +71,9 @@ export function InviteResponseDataFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
77
71
|
return {
|
|
78
72
|
|
|
79
73
|
'email': json['email'] == null ? undefined : json['email'],
|
|
80
|
-
'redirected': json['redirected'] == null ? undefined : json['redirected'],
|
|
81
|
-
'surveyParams': json['surveyParams'] == null ? undefined : json['surveyParams'],
|
|
82
74
|
'screenerQuestionsResponses': json['screenerQuestionsResponses'] == null ? undefined : ((json['screenerQuestionsResponses'] as Array<any>).map(ProjectScreenerQuestionResponseFromJSON)),
|
|
83
75
|
'consented': json['consented'] == null ? undefined : json['consented'],
|
|
76
|
+
'redirected': json['redirected'] == null ? undefined : json['redirected'],
|
|
84
77
|
};
|
|
85
78
|
}
|
|
86
79
|
|
|
@@ -96,10 +89,9 @@ export function InviteResponseDataToJSONTyped(value?: InviteResponseData | null,
|
|
|
96
89
|
return {
|
|
97
90
|
|
|
98
91
|
'email': value['email'],
|
|
99
|
-
'redirected': value['redirected'],
|
|
100
|
-
'surveyParams': value['surveyParams'],
|
|
101
92
|
'screenerQuestionsResponses': value['screenerQuestionsResponses'] == null ? undefined : ((value['screenerQuestionsResponses'] as Array<any>).map(ProjectScreenerQuestionResponseToJSON)),
|
|
102
93
|
'consented': value['consented'],
|
|
94
|
+
'redirected': value['redirected'],
|
|
103
95
|
};
|
|
104
96
|
}
|
|
105
97
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InviteResponseMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface InviteResponseMetadata {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {{ [key: string]: string; }}
|
|
25
|
+
* @memberof InviteResponseMetadata
|
|
26
|
+
*/
|
|
27
|
+
surveyParams?: { [key: string]: string; } | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the InviteResponseMetadata interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfInviteResponseMetadata(value: object): value is InviteResponseMetadata {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function InviteResponseMetadataFromJSON(json: any): InviteResponseMetadata {
|
|
38
|
+
return InviteResponseMetadataFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function InviteResponseMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteResponseMetadata {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'surveyParams': json['surveyParams'] == null ? undefined : json['surveyParams'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function InviteResponseMetadataToJSON(json: any): InviteResponseMetadata {
|
|
52
|
+
return InviteResponseMetadataToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function InviteResponseMetadataToJSONTyped(value?: InviteResponseMetadata | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'surveyParams': value['surveyParams'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
*
|
|
89
89
|
* @export
|
|
90
90
|
*/
|
|
91
|
-
export type InviteResponseUpdateEvent = ResponseCallCompletedEvent | ResponseCallFailedEvent | ResponseConsentEvent | ResponseOptOutEvent | ResponseProcessingCompletedEvent | ResponseProcessingFailedEvent | ResponseRedirectEvent | ResponseStartCallEvent | ResponseSubmitEmailEvent | ResponseSubmitScreenerEvent;
|
|
91
|
+
export type InviteResponseUpdateEvent = { type: 'CALL_COMPLETED' } & ResponseCallCompletedEvent | { type: 'CALL_FAILED' } & ResponseCallFailedEvent | { type: 'CONSENT' } & ResponseConsentEvent | { type: 'OPT_OUT' } & ResponseOptOutEvent | { type: 'PROCESSING_COMPLETED' } & ResponseProcessingCompletedEvent | { type: 'PROCESSING_FAILED' } & ResponseProcessingFailedEvent | { type: 'REDIRECT' } & ResponseRedirectEvent | { type: 'START_CALL' } & ResponseStartCallEvent | { type: 'SUBMIT_EMAIL' } & ResponseSubmitEmailEvent | { type: 'SUBMIT_SCREENER' } & ResponseSubmitScreenerEvent;
|
|
92
92
|
|
|
93
93
|
export function InviteResponseUpdateEventFromJSON(json: any): InviteResponseUpdateEvent {
|
|
94
94
|
return InviteResponseUpdateEventFromJSONTyped(json, false);
|
|
@@ -98,41 +98,30 @@ export function InviteResponseUpdateEventFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
98
98
|
if (json == null) {
|
|
99
99
|
return json;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
101
|
+
switch (json['type']) {
|
|
102
|
+
case 'CALL_COMPLETED':
|
|
103
|
+
return Object.assign({}, ResponseCallCompletedEventFromJSONTyped(json, true), { type: 'CALL_COMPLETED' } as const);
|
|
104
|
+
case 'CALL_FAILED':
|
|
105
|
+
return Object.assign({}, ResponseCallFailedEventFromJSONTyped(json, true), { type: 'CALL_FAILED' } as const);
|
|
106
|
+
case 'CONSENT':
|
|
107
|
+
return Object.assign({}, ResponseConsentEventFromJSONTyped(json, true), { type: 'CONSENT' } as const);
|
|
108
|
+
case 'OPT_OUT':
|
|
109
|
+
return Object.assign({}, ResponseOptOutEventFromJSONTyped(json, true), { type: 'OPT_OUT' } as const);
|
|
110
|
+
case 'PROCESSING_COMPLETED':
|
|
111
|
+
return Object.assign({}, ResponseProcessingCompletedEventFromJSONTyped(json, true), { type: 'PROCESSING_COMPLETED' } as const);
|
|
112
|
+
case 'PROCESSING_FAILED':
|
|
113
|
+
return Object.assign({}, ResponseProcessingFailedEventFromJSONTyped(json, true), { type: 'PROCESSING_FAILED' } as const);
|
|
114
|
+
case 'REDIRECT':
|
|
115
|
+
return Object.assign({}, ResponseRedirectEventFromJSONTyped(json, true), { type: 'REDIRECT' } as const);
|
|
116
|
+
case 'START_CALL':
|
|
117
|
+
return Object.assign({}, ResponseStartCallEventFromJSONTyped(json, true), { type: 'START_CALL' } as const);
|
|
118
|
+
case 'SUBMIT_EMAIL':
|
|
119
|
+
return Object.assign({}, ResponseSubmitEmailEventFromJSONTyped(json, true), { type: 'SUBMIT_EMAIL' } as const);
|
|
120
|
+
case 'SUBMIT_SCREENER':
|
|
121
|
+
return Object.assign({}, ResponseSubmitScreenerEventFromJSONTyped(json, true), { type: 'SUBMIT_SCREENER' } as const);
|
|
122
|
+
default:
|
|
123
|
+
return json;
|
|
118
124
|
}
|
|
119
|
-
if (instanceOfResponseProcessingFailedEvent(json)) {
|
|
120
|
-
return ResponseProcessingFailedEventFromJSONTyped(json, true);
|
|
121
|
-
}
|
|
122
|
-
if (instanceOfResponseRedirectEvent(json)) {
|
|
123
|
-
return ResponseRedirectEventFromJSONTyped(json, true);
|
|
124
|
-
}
|
|
125
|
-
if (instanceOfResponseStartCallEvent(json)) {
|
|
126
|
-
return ResponseStartCallEventFromJSONTyped(json, true);
|
|
127
|
-
}
|
|
128
|
-
if (instanceOfResponseSubmitEmailEvent(json)) {
|
|
129
|
-
return ResponseSubmitEmailEventFromJSONTyped(json, true);
|
|
130
|
-
}
|
|
131
|
-
if (instanceOfResponseSubmitScreenerEvent(json)) {
|
|
132
|
-
return ResponseSubmitScreenerEventFromJSONTyped(json, true);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return {} as any;
|
|
136
125
|
}
|
|
137
126
|
|
|
138
127
|
export function InviteResponseUpdateEventToJSON(json: any): any {
|
|
@@ -143,40 +132,29 @@ export function InviteResponseUpdateEventToJSONTyped(value?: InviteResponseUpdat
|
|
|
143
132
|
if (value == null) {
|
|
144
133
|
return value;
|
|
145
134
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
135
|
+
switch (value['type']) {
|
|
136
|
+
case 'CALL_COMPLETED':
|
|
137
|
+
return Object.assign({}, ResponseCallCompletedEventToJSON(value), { type: 'CALL_COMPLETED' } as const);
|
|
138
|
+
case 'CALL_FAILED':
|
|
139
|
+
return Object.assign({}, ResponseCallFailedEventToJSON(value), { type: 'CALL_FAILED' } as const);
|
|
140
|
+
case 'CONSENT':
|
|
141
|
+
return Object.assign({}, ResponseConsentEventToJSON(value), { type: 'CONSENT' } as const);
|
|
142
|
+
case 'OPT_OUT':
|
|
143
|
+
return Object.assign({}, ResponseOptOutEventToJSON(value), { type: 'OPT_OUT' } as const);
|
|
144
|
+
case 'PROCESSING_COMPLETED':
|
|
145
|
+
return Object.assign({}, ResponseProcessingCompletedEventToJSON(value), { type: 'PROCESSING_COMPLETED' } as const);
|
|
146
|
+
case 'PROCESSING_FAILED':
|
|
147
|
+
return Object.assign({}, ResponseProcessingFailedEventToJSON(value), { type: 'PROCESSING_FAILED' } as const);
|
|
148
|
+
case 'REDIRECT':
|
|
149
|
+
return Object.assign({}, ResponseRedirectEventToJSON(value), { type: 'REDIRECT' } as const);
|
|
150
|
+
case 'START_CALL':
|
|
151
|
+
return Object.assign({}, ResponseStartCallEventToJSON(value), { type: 'START_CALL' } as const);
|
|
152
|
+
case 'SUBMIT_EMAIL':
|
|
153
|
+
return Object.assign({}, ResponseSubmitEmailEventToJSON(value), { type: 'SUBMIT_EMAIL' } as const);
|
|
154
|
+
case 'SUBMIT_SCREENER':
|
|
155
|
+
return Object.assign({}, ResponseSubmitScreenerEventToJSON(value), { type: 'SUBMIT_SCREENER' } as const);
|
|
156
|
+
default:
|
|
157
|
+
return value;
|
|
163
158
|
}
|
|
164
|
-
if (instanceOfResponseProcessingFailedEvent(value)) {
|
|
165
|
-
return ResponseProcessingFailedEventToJSON(value as ResponseProcessingFailedEvent);
|
|
166
|
-
}
|
|
167
|
-
if (instanceOfResponseRedirectEvent(value)) {
|
|
168
|
-
return ResponseRedirectEventToJSON(value as ResponseRedirectEvent);
|
|
169
|
-
}
|
|
170
|
-
if (instanceOfResponseStartCallEvent(value)) {
|
|
171
|
-
return ResponseStartCallEventToJSON(value as ResponseStartCallEvent);
|
|
172
|
-
}
|
|
173
|
-
if (instanceOfResponseSubmitEmailEvent(value)) {
|
|
174
|
-
return ResponseSubmitEmailEventToJSON(value as ResponseSubmitEmailEvent);
|
|
175
|
-
}
|
|
176
|
-
if (instanceOfResponseSubmitScreenerEvent(value)) {
|
|
177
|
-
return ResponseSubmitScreenerEventToJSON(value as ResponseSubmitScreenerEvent);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return {};
|
|
181
159
|
}
|
|
182
160
|
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProjectBrief
|
|
20
|
+
*/
|
|
21
|
+
export interface ProjectBrief {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProjectBrief
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProjectBrief
|
|
32
|
+
*/
|
|
33
|
+
objective: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProjectBrief
|
|
38
|
+
*/
|
|
39
|
+
learning_goals: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProjectBrief
|
|
44
|
+
*/
|
|
45
|
+
key_questions: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof ProjectBrief
|
|
50
|
+
*/
|
|
51
|
+
conversation_flow: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof ProjectBrief
|
|
56
|
+
*/
|
|
57
|
+
rules?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof ProjectBrief
|
|
62
|
+
*/
|
|
63
|
+
assets?: Array<string>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the ProjectBrief interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfProjectBrief(value: object): value is ProjectBrief {
|
|
70
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
71
|
+
if (!('objective' in value) || value['objective'] === undefined) return false;
|
|
72
|
+
if (!('learning_goals' in value) || value['learning_goals'] === undefined) return false;
|
|
73
|
+
if (!('key_questions' in value) || value['key_questions'] === undefined) return false;
|
|
74
|
+
if (!('conversation_flow' in value) || value['conversation_flow'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ProjectBriefFromJSON(json: any): ProjectBrief {
|
|
79
|
+
return ProjectBriefFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ProjectBriefFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectBrief {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'title': json['title'],
|
|
89
|
+
'objective': json['objective'],
|
|
90
|
+
'learning_goals': json['learning_goals'],
|
|
91
|
+
'key_questions': json['key_questions'],
|
|
92
|
+
'conversation_flow': json['conversation_flow'],
|
|
93
|
+
'rules': json['rules'] == null ? undefined : json['rules'],
|
|
94
|
+
'assets': json['assets'] == null ? undefined : json['assets'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ProjectBriefToJSON(json: any): ProjectBrief {
|
|
99
|
+
return ProjectBriefToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ProjectBriefToJSONTyped(value?: ProjectBrief | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'title': value['title'],
|
|
110
|
+
'objective': value['objective'],
|
|
111
|
+
'learning_goals': value['learning_goals'],
|
|
112
|
+
'key_questions': value['key_questions'],
|
|
113
|
+
'conversation_flow': value['conversation_flow'],
|
|
114
|
+
'rules': value['rules'],
|
|
115
|
+
'assets': value['assets'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProjectBrief } from './ProjectBrief';
|
|
17
|
+
import {
|
|
18
|
+
ProjectBriefFromJSON,
|
|
19
|
+
ProjectBriefFromJSONTyped,
|
|
20
|
+
ProjectBriefToJSON,
|
|
21
|
+
ProjectBriefToJSONTyped,
|
|
22
|
+
} from './ProjectBrief';
|
|
16
23
|
import type { ProjectAudience } from './ProjectAudience';
|
|
17
24
|
import {
|
|
18
25
|
ProjectAudienceFromJSON,
|
|
@@ -27,13 +34,13 @@ import {
|
|
|
27
34
|
ProjectScreenerQuestionChooseOneToJSON,
|
|
28
35
|
ProjectScreenerQuestionChooseOneToJSONTyped,
|
|
29
36
|
} from './ProjectScreenerQuestionChooseOne';
|
|
30
|
-
import type {
|
|
37
|
+
import type { ProjectKind } from './ProjectKind';
|
|
31
38
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
39
|
+
ProjectKindFromJSON,
|
|
40
|
+
ProjectKindFromJSONTyped,
|
|
41
|
+
ProjectKindToJSON,
|
|
42
|
+
ProjectKindToJSONTyped,
|
|
43
|
+
} from './ProjectKind';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -41,6 +48,12 @@ import {
|
|
|
41
48
|
* @interface ProjectConfig
|
|
42
49
|
*/
|
|
43
50
|
export interface ProjectConfig {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {ProjectKind}
|
|
54
|
+
* @memberof ProjectConfig
|
|
55
|
+
*/
|
|
56
|
+
projectKind?: ProjectKind;
|
|
44
57
|
/**
|
|
45
58
|
*
|
|
46
59
|
* @type {{ [key: string]: any; }}
|
|
@@ -55,16 +68,22 @@ export interface ProjectConfig {
|
|
|
55
68
|
learningPlan: string;
|
|
56
69
|
/**
|
|
57
70
|
*
|
|
58
|
-
* @type {
|
|
71
|
+
* @type {ProjectBrief}
|
|
59
72
|
* @memberof ProjectConfig
|
|
60
73
|
*/
|
|
61
|
-
|
|
74
|
+
brief?: ProjectBrief;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ProjectConfig
|
|
79
|
+
*/
|
|
80
|
+
briefDocument?: string;
|
|
62
81
|
/**
|
|
63
82
|
*
|
|
64
|
-
* @type {
|
|
83
|
+
* @type {Array<ProjectScreenerQuestionChooseOne>}
|
|
65
84
|
* @memberof ProjectConfig
|
|
66
85
|
*/
|
|
67
|
-
|
|
86
|
+
screenerQuestions?: Array<ProjectScreenerQuestionChooseOne>;
|
|
68
87
|
/**
|
|
69
88
|
*
|
|
70
89
|
* @type {ProjectAudience}
|
|
@@ -73,6 +92,8 @@ export interface ProjectConfig {
|
|
|
73
92
|
audienceSettings?: ProjectAudience;
|
|
74
93
|
}
|
|
75
94
|
|
|
95
|
+
|
|
96
|
+
|
|
76
97
|
/**
|
|
77
98
|
* Check if a given object implements the ProjectConfig interface.
|
|
78
99
|
*/
|
|
@@ -92,10 +113,12 @@ export function ProjectConfigFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
92
113
|
}
|
|
93
114
|
return {
|
|
94
115
|
|
|
116
|
+
'projectKind': json['projectKind'] == null ? undefined : ProjectKindFromJSON(json['projectKind']),
|
|
95
117
|
'promptVariables': json['promptVariables'],
|
|
96
118
|
'learningPlan': json['learningPlan'],
|
|
119
|
+
'brief': json['brief'] == null ? undefined : ProjectBriefFromJSON(json['brief']),
|
|
120
|
+
'briefDocument': json['briefDocument'] == null ? undefined : json['briefDocument'],
|
|
97
121
|
'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ProjectScreenerQuestionChooseOneFromJSON)),
|
|
98
|
-
'templateSettings': json['templateSettings'] == null ? undefined : ProjectTemplateSettingsFromJSON(json['templateSettings']),
|
|
99
122
|
'audienceSettings': json['audienceSettings'] == null ? undefined : ProjectAudienceFromJSON(json['audienceSettings']),
|
|
100
123
|
};
|
|
101
124
|
}
|
|
@@ -111,10 +134,12 @@ export function ProjectConfigToJSONTyped(value?: ProjectConfig | null, ignoreDis
|
|
|
111
134
|
|
|
112
135
|
return {
|
|
113
136
|
|
|
137
|
+
'projectKind': ProjectKindToJSON(value['projectKind']),
|
|
114
138
|
'promptVariables': value['promptVariables'],
|
|
115
139
|
'learningPlan': value['learningPlan'],
|
|
140
|
+
'brief': ProjectBriefToJSON(value['brief']),
|
|
141
|
+
'briefDocument': value['briefDocument'],
|
|
116
142
|
'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ProjectScreenerQuestionChooseOneToJSON)),
|
|
117
|
-
'templateSettings': ProjectTemplateSettingsToJSON(value['templateSettings']),
|
|
118
143
|
'audienceSettings': ProjectAudienceToJSON(value['audienceSettings']),
|
|
119
144
|
};
|
|
120
145
|
}
|
|
@@ -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 ProjectKind = {
|
|
21
|
+
Custom: 'custom',
|
|
22
|
+
ConceptTest: 'concept_test',
|
|
23
|
+
Interview: 'interview'
|
|
24
|
+
} as const;
|
|
25
|
+
export type ProjectKind = typeof ProjectKind[keyof typeof ProjectKind];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfProjectKind(value: any): boolean {
|
|
29
|
+
for (const key in ProjectKind) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(ProjectKind, key)) {
|
|
31
|
+
if (ProjectKind[key as keyof typeof ProjectKind] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ProjectKindFromJSON(json: any): ProjectKind {
|
|
40
|
+
return ProjectKindFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ProjectKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectKind {
|
|
44
|
+
return json as ProjectKind;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ProjectKindToJSON(value?: ProjectKind | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProjectKindToJSONTyped(value: any, ignoreDiscriminator: boolean): ProjectKind {
|
|
52
|
+
return value as ProjectKind;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -12,34 +12,35 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
15
16
|
/**
|
|
16
|
-
* @type RepdataQualificationAllowedOptionIdsInner
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
+
* @interface RepdataQualificationAllowedOptionIdsInner
|
|
19
20
|
*/
|
|
20
|
-
export
|
|
21
|
+
export interface RepdataQualificationAllowedOptionIdsInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the RepdataQualificationAllowedOptionIdsInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfRepdataQualificationAllowedOptionIdsInner(value: object): value is RepdataQualificationAllowedOptionIdsInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
21
30
|
|
|
22
31
|
export function RepdataQualificationAllowedOptionIdsInnerFromJSON(json: any): RepdataQualificationAllowedOptionIdsInner {
|
|
23
32
|
return RepdataQualificationAllowedOptionIdsInnerFromJSONTyped(json, false);
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
export function RepdataQualificationAllowedOptionIdsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepdataQualificationAllowedOptionIdsInner {
|
|
27
|
-
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return {} as any;
|
|
36
|
+
return json;
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
export function RepdataQualificationAllowedOptionIdsInnerToJSON(json: any):
|
|
39
|
+
export function RepdataQualificationAllowedOptionIdsInnerToJSON(json: any): RepdataQualificationAllowedOptionIdsInner {
|
|
35
40
|
return RepdataQualificationAllowedOptionIdsInnerToJSONTyped(json, false);
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
export function RepdataQualificationAllowedOptionIdsInnerToJSONTyped(value?: RepdataQualificationAllowedOptionIdsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
39
|
-
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return {};
|
|
44
|
+
return value;
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ProjectBrief } from './ProjectBrief';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
ProjectBriefFromJSON,
|
|
19
|
+
ProjectBriefFromJSONTyped,
|
|
20
|
+
ProjectBriefToJSON,
|
|
21
|
+
ProjectBriefToJSONTyped,
|
|
22
|
+
} from './ProjectBrief';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,10 +35,10 @@ export interface ThreadMetadata {
|
|
|
35
35
|
status?: ThreadMetadataStatusEnum;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<ProjectBrief>}
|
|
39
39
|
* @memberof ThreadMetadata
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
projectBriefDrafts?: Array<ProjectBrief>;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
|
|
@@ -70,7 +70,7 @@ export function ThreadMetadataFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
70
70
|
return {
|
|
71
71
|
|
|
72
72
|
'status': json['status'] == null ? undefined : json['status'],
|
|
73
|
-
'
|
|
73
|
+
'projectBriefDrafts': json['projectBriefDrafts'] == null ? undefined : ((json['projectBriefDrafts'] as Array<any>).map(ProjectBriefFromJSON)),
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -86,7 +86,7 @@ export function ThreadMetadataToJSONTyped(value?: ThreadMetadata | null, ignoreD
|
|
|
86
86
|
return {
|
|
87
87
|
|
|
88
88
|
'status': value['status'],
|
|
89
|
-
'
|
|
89
|
+
'projectBriefDrafts': value['projectBriefDrafts'] == null ? undefined : ((value['projectBriefDrafts'] as Array<any>).map(ProjectBriefToJSON)),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -42,7 +42,7 @@ export interface TranscriptMessage {
|
|
|
42
42
|
* @type {Date}
|
|
43
43
|
* @memberof TranscriptMessage
|
|
44
44
|
*/
|
|
45
|
-
time: Date
|
|
45
|
+
time: Date;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -76,7 +76,7 @@ export function TranscriptMessageFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
76
76
|
'callId': json['callId'],
|
|
77
77
|
'index': json['index'],
|
|
78
78
|
'role': json['role'],
|
|
79
|
-
'time': (
|
|
79
|
+
'time': (new Date(json['time'])),
|
|
80
80
|
'message': json['message'],
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -95,7 +95,7 @@ export function TranscriptMessageToJSONTyped(value?: TranscriptMessage | null, i
|
|
|
95
95
|
'callId': value['callId'],
|
|
96
96
|
'index': value['index'],
|
|
97
97
|
'role': value['role'],
|
|
98
|
-
'time': ((value['time']
|
|
98
|
+
'time': ((value['time']).toISOString()),
|
|
99
99
|
'message': value['message'],
|
|
100
100
|
};
|
|
101
101
|
}
|