keplar-api 0.0.9 → 0.0.10
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 +24 -22
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +236 -249
- package/dist/apis/DefaultApi.js +878 -803
- package/dist/models/ApiInvitesIdParticipantInvitesGet200Response.d.ts +51 -0
- package/dist/models/ApiInvitesIdParticipantInvitesGet200Response.js +64 -0
- package/dist/models/ApiInvitesIdResponsesGet200Response.d.ts +3 -3
- package/dist/models/ApiInvitesIdResponsesGet200Response.js +3 -3
- package/dist/models/CallSummary.d.ts +46 -0
- package/dist/models/CallSummary.js +61 -0
- package/dist/models/CodeInvite.d.ts +10 -3
- package/dist/models/CodeInvite.js +8 -3
- package/dist/models/CodeInviteConfig.d.ts +30 -0
- package/dist/models/CodeInviteConfig.js +59 -0
- package/dist/models/CodeInviteConfigContacts.d.ts +75 -0
- package/dist/models/CodeInviteConfigContacts.js +72 -0
- package/dist/models/CodeInviteConfigKeplarPanel.d.ts +82 -0
- package/dist/models/CodeInviteConfigKeplarPanel.js +77 -0
- package/dist/models/CreateCodeInviteResponseRequest.d.ts +40 -0
- package/dist/models/CreateCodeInviteResponseRequest.js +53 -0
- package/dist/models/GetCodeInvite200Response.d.ts +83 -0
- package/dist/models/{ApiInviteCodeCodeGet200Response.js → GetCodeInvite200Response.js} +21 -16
- package/dist/models/GetCodeInviteResponseRedirect200Response.d.ts +32 -0
- package/dist/models/GetCodeInviteResponseRedirect200Response.js +51 -0
- package/dist/models/InviteConfig.d.ts +12 -70
- package/dist/models/InviteConfig.js +23 -37
- package/dist/models/InviteConfigContacts.d.ts +75 -0
- package/dist/models/InviteConfigContacts.js +72 -0
- package/dist/models/InviteConfigKeplarPanel.d.ts +95 -0
- package/dist/models/InviteConfigKeplarPanel.js +82 -0
- package/dist/models/InviteConfigPublic.d.ts +81 -0
- package/dist/models/InviteConfigPublic.js +74 -0
- package/dist/models/InviteResponseData.d.ts +3 -3
- package/dist/models/InviteResponseData.js +3 -3
- package/dist/models/InviteResponseWithCallSummary.d.ts +118 -0
- package/dist/models/InviteResponseWithCallSummary.js +97 -0
- package/dist/models/JoinCodeInvite302Response.d.ts +83 -0
- package/dist/models/{ApiInviteCodeCodeStartGet302Response.js → JoinCodeInvite302Response.js} +21 -16
- package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +46 -0
- package/dist/models/JoinCodeInvite302ResponseSettings.js +57 -0
- package/dist/models/PanelQualification.d.ts +38 -0
- package/dist/models/{ProjectPanelQualification.js → PanelQualification.js} +13 -13
- package/dist/models/PanelRespondentAttribute.d.ts +45 -0
- package/dist/models/PanelRespondentAttribute.js +60 -0
- package/dist/models/PanelSettings.d.ts +63 -0
- package/dist/models/{ProjectPanelSettings.js → PanelSettings.js} +16 -16
- package/dist/models/ProjectAudience.d.ts +3 -3
- package/dist/models/ProjectAudience.js +3 -3
- package/dist/models/ProjectConfig.d.ts +3 -3
- package/dist/models/ProjectConfig.js +3 -3
- package/dist/models/ResponseSubmitScreenerEvent.d.ts +3 -3
- package/dist/models/ResponseSubmitScreenerEvent.js +3 -3
- package/dist/models/ScreenerQuestionChooseOne.d.ts +57 -0
- package/dist/models/{ProjectScreenerQuestionChooseOne.js → ScreenerQuestionChooseOne.js} +15 -15
- package/dist/models/ScreenerQuestionChooseOnePublic.d.ts +51 -0
- package/dist/models/ScreenerQuestionChooseOnePublic.js +66 -0
- package/dist/models/ScreenerQuestionResponse.d.ts +44 -0
- package/dist/models/{ProjectScreenerQuestionResponse.js → ScreenerQuestionResponse.js} +13 -13
- package/dist/models/StartPhoneCallForCodeInviteResponseRequest.d.ts +32 -0
- package/dist/models/StartPhoneCallForCodeInviteResponseRequest.js +51 -0
- package/dist/models/UpdateCallForCodeInviteResponseRequest.d.ts +39 -0
- package/dist/models/UpdateCallForCodeInviteResponseRequest.js +56 -0
- package/dist/models/UpdateCallForCodeInviteResponseRequestCall.d.ts +39 -0
- package/dist/models/UpdateCallForCodeInviteResponseRequestCall.js +56 -0
- package/dist/models/UpdateCodeInviteResponse404Response.d.ts +32 -0
- package/dist/models/UpdateCodeInviteResponse404Response.js +51 -0
- package/dist/models/index.d.ts +24 -22
- package/dist/models/index.js +24 -22
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1094 -1026
- package/src/models/ApiInvitesIdParticipantInvitesGet200Response.ts +101 -0
- package/src/models/ApiInvitesIdResponsesGet200Response.ts +10 -10
- package/src/models/CallSummary.ts +101 -0
- package/src/models/CodeInvite.ts +27 -11
- package/src/models/CodeInviteConfig.ts +83 -0
- package/src/models/CodeInviteConfigContacts.ts +125 -0
- package/src/models/CodeInviteConfigKeplarPanel.ts +142 -0
- package/src/models/CreateCodeInviteResponseRequest.ts +90 -0
- package/src/models/{ApiInviteCodeCodeGet200Response.ts → GetCodeInvite200Response.ts} +45 -29
- package/src/models/GetCodeInviteResponseRedirect200Response.ts +66 -0
- package/src/models/InviteConfig.ts +42 -113
- package/src/models/InviteConfigContacts.ts +125 -0
- package/src/models/InviteConfigKeplarPanel.ts +165 -0
- package/src/models/InviteConfigPublic.ts +133 -0
- package/src/models/InviteResponseData.ts +10 -10
- package/src/models/InviteResponseWithCallSummary.ts +235 -0
- package/src/models/{ApiInviteCodeCodeStartGet302Response.ts → JoinCodeInvite302Response.ts} +45 -29
- package/src/models/JoinCodeInvite302ResponseSettings.ts +97 -0
- package/src/models/{ProjectPanelQualification.ts → PanelQualification.ts} +12 -12
- package/src/models/PanelRespondentAttribute.ts +92 -0
- package/src/models/{ProjectPanelSettings.ts → PanelSettings.ts} +26 -26
- package/src/models/ProjectAudience.ts +10 -10
- package/src/models/ProjectConfig.ts +11 -11
- package/src/models/ResponseSubmitScreenerEvent.ts +10 -10
- package/src/models/{ProjectScreenerQuestionChooseOne.ts → ScreenerQuestionChooseOne.ts} +17 -17
- package/src/models/ScreenerQuestionChooseOnePublic.ts +94 -0
- package/src/models/{ProjectScreenerQuestionResponse.ts → ScreenerQuestionResponse.ts} +13 -13
- package/src/models/StartPhoneCallForCodeInviteResponseRequest.ts +66 -0
- package/src/models/UpdateCallForCodeInviteResponseRequest.ts +83 -0
- package/src/models/UpdateCallForCodeInviteResponseRequestCall.ts +85 -0
- package/src/models/UpdateCodeInviteResponse404Response.ts +66 -0
- package/src/models/index.ts +24 -22
- package/dist/models/ApiInviteCodeCodeGet200Response.d.ts +0 -76
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.d.ts +0 -32
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.js +0 -51
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.d.ts +0 -32
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.js +0 -51
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.d.ts +0 -32
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.js +0 -51
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.d.ts +0 -39
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.js +0 -56
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.d.ts +0 -39
- package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.js +0 -56
- package/dist/models/ApiInviteCodeCodeStartGet302Response.d.ts +0 -76
- package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.d.ts +0 -64
- package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.js +0 -63
- package/dist/models/GetParticipantInvitesResponse.d.ts +0 -39
- package/dist/models/GetParticipantInvitesResponse.js +0 -56
- package/dist/models/ProjectPanelQualification.d.ts +0 -38
- package/dist/models/ProjectPanelRespondentAttribute.d.ts +0 -45
- package/dist/models/ProjectPanelRespondentAttribute.js +0 -60
- package/dist/models/ProjectPanelSettings.d.ts +0 -63
- package/dist/models/ProjectScreenerQuestionChooseOne.d.ts +0 -57
- package/dist/models/ProjectScreenerQuestionChooseOnePublic.d.ts +0 -51
- package/dist/models/ProjectScreenerQuestionChooseOnePublic.js +0 -66
- package/dist/models/ProjectScreenerQuestionResponse.d.ts +0 -44
- package/dist/models/RepDataConfigLegacy.d.ts +0 -59
- package/dist/models/RepDataConfigLegacy.js +0 -62
- package/dist/models/RepDataProjectLegacy.d.ts +0 -32
- package/dist/models/RepDataProjectLegacy.js +0 -51
- package/dist/models/RepDataStudyLegacy.d.ts +0 -93
- package/dist/models/RepDataStudyLegacy.js +0 -92
- package/dist/models/RepDataStudyLegacyQualificationsInner.d.ts +0 -38
- package/dist/models/RepDataStudyLegacyQualificationsInner.js +0 -55
- package/dist/models/RepDataSurveyLegacy.d.ts +0 -46
- package/dist/models/RepDataSurveyLegacy.js +0 -59
- package/dist/models/RepDataSurveyLegacyProject.d.ts +0 -32
- package/dist/models/RepDataSurveyLegacyProject.js +0 -51
- package/dist/models/RepDataSurveyStatusLegacy.d.ts +0 -26
- package/dist/models/RepDataSurveyStatusLegacy.js +0 -52
- package/src/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.ts +0 -66
- package/src/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.ts +0 -66
- package/src/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.ts +0 -66
- package/src/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.ts +0 -83
- package/src/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.ts +0 -85
- package/src/models/ApiInviteCodeCodeStartGet302ResponseSettings.ts +0 -121
- package/src/models/GetParticipantInvitesResponse.ts +0 -83
- package/src/models/ProjectPanelRespondentAttribute.ts +0 -92
- package/src/models/ProjectScreenerQuestionChooseOnePublic.ts +0 -94
- package/src/models/RepDataConfigLegacy.ts +0 -120
- package/src/models/RepDataProjectLegacy.ts +0 -66
- package/src/models/RepDataStudyLegacy.ts +0 -164
- package/src/models/RepDataStudyLegacyQualificationsInner.ts +0 -75
- package/src/models/RepDataSurveyLegacy.ts +0 -100
- package/src/models/RepDataSurveyLegacyProject.ts +0 -66
- package/src/models/RepDataSurveyStatusLegacy.ts +0 -54
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ApiInviteCodeCodeStartGet302ResponseSettings } from './ApiInviteCodeCodeStartGet302ResponseSettings';
|
|
17
|
-
import {
|
|
18
|
-
ApiInviteCodeCodeStartGet302ResponseSettingsFromJSON,
|
|
19
|
-
ApiInviteCodeCodeStartGet302ResponseSettingsFromJSONTyped,
|
|
20
|
-
ApiInviteCodeCodeStartGet302ResponseSettingsToJSON,
|
|
21
|
-
ApiInviteCodeCodeStartGet302ResponseSettingsToJSONTyped,
|
|
22
|
-
} from './ApiInviteCodeCodeStartGet302ResponseSettings';
|
|
23
16
|
import type { InviteStatus } from './InviteStatus';
|
|
24
17
|
import {
|
|
25
18
|
InviteStatusFromJSON,
|
|
@@ -27,83 +20,104 @@ import {
|
|
|
27
20
|
InviteStatusToJSON,
|
|
28
21
|
InviteStatusToJSONTyped,
|
|
29
22
|
} from './InviteStatus';
|
|
23
|
+
import type { CodeInviteConfig } from './CodeInviteConfig';
|
|
24
|
+
import {
|
|
25
|
+
CodeInviteConfigFromJSON,
|
|
26
|
+
CodeInviteConfigFromJSONTyped,
|
|
27
|
+
CodeInviteConfigToJSON,
|
|
28
|
+
CodeInviteConfigToJSONTyped,
|
|
29
|
+
} from './CodeInviteConfig';
|
|
30
|
+
import type { JoinCodeInvite302ResponseSettings } from './JoinCodeInvite302ResponseSettings';
|
|
31
|
+
import {
|
|
32
|
+
JoinCodeInvite302ResponseSettingsFromJSON,
|
|
33
|
+
JoinCodeInvite302ResponseSettingsFromJSONTyped,
|
|
34
|
+
JoinCodeInvite302ResponseSettingsToJSON,
|
|
35
|
+
JoinCodeInvite302ResponseSettingsToJSONTyped,
|
|
36
|
+
} from './JoinCodeInvite302ResponseSettings';
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
33
40
|
* @export
|
|
34
|
-
* @interface
|
|
41
|
+
* @interface JoinCodeInvite302Response
|
|
35
42
|
*/
|
|
36
|
-
export interface
|
|
43
|
+
export interface JoinCodeInvite302Response {
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {string}
|
|
40
|
-
* @memberof
|
|
47
|
+
* @memberof JoinCodeInvite302Response
|
|
41
48
|
*/
|
|
42
49
|
id: string | null;
|
|
43
50
|
/**
|
|
44
51
|
*
|
|
45
52
|
* @type {string}
|
|
46
|
-
* @memberof
|
|
53
|
+
* @memberof JoinCodeInvite302Response
|
|
47
54
|
*/
|
|
48
55
|
code: string | null;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {string}
|
|
52
|
-
* @memberof
|
|
59
|
+
* @memberof JoinCodeInvite302Response
|
|
53
60
|
*/
|
|
54
61
|
name: string | null;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
65
|
+
* @memberof JoinCodeInvite302Response
|
|
59
66
|
*/
|
|
60
67
|
description?: string | null;
|
|
61
68
|
/**
|
|
62
69
|
*
|
|
63
70
|
* @type {InviteStatus}
|
|
64
|
-
* @memberof
|
|
71
|
+
* @memberof JoinCodeInvite302Response
|
|
65
72
|
*/
|
|
66
73
|
status: InviteStatus;
|
|
67
74
|
/**
|
|
68
75
|
*
|
|
69
76
|
* @type {Date}
|
|
70
|
-
* @memberof
|
|
77
|
+
* @memberof JoinCodeInvite302Response
|
|
71
78
|
*/
|
|
72
79
|
expiresAt?: Date | null;
|
|
73
80
|
/**
|
|
74
81
|
*
|
|
75
82
|
* @type {string}
|
|
76
|
-
* @memberof
|
|
83
|
+
* @memberof JoinCodeInvite302Response
|
|
77
84
|
*/
|
|
78
85
|
projectId: string;
|
|
79
86
|
/**
|
|
80
87
|
*
|
|
81
|
-
* @type {
|
|
82
|
-
* @memberof
|
|
88
|
+
* @type {CodeInviteConfig}
|
|
89
|
+
* @memberof JoinCodeInvite302Response
|
|
90
|
+
*/
|
|
91
|
+
config: CodeInviteConfig;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {JoinCodeInvite302ResponseSettings}
|
|
95
|
+
* @memberof JoinCodeInvite302Response
|
|
83
96
|
*/
|
|
84
|
-
settings:
|
|
97
|
+
settings: JoinCodeInvite302ResponseSettings;
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
|
|
88
101
|
|
|
89
102
|
/**
|
|
90
|
-
* Check if a given object implements the
|
|
103
|
+
* Check if a given object implements the JoinCodeInvite302Response interface.
|
|
91
104
|
*/
|
|
92
|
-
export function
|
|
105
|
+
export function instanceOfJoinCodeInvite302Response(value: object): value is JoinCodeInvite302Response {
|
|
93
106
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
94
107
|
if (!('code' in value) || value['code'] === undefined) return false;
|
|
95
108
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
109
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
97
110
|
if (!('projectId' in value) || value['projectId'] === undefined) return false;
|
|
111
|
+
if (!('config' in value) || value['config'] === undefined) return false;
|
|
98
112
|
if (!('settings' in value) || value['settings'] === undefined) return false;
|
|
99
113
|
return true;
|
|
100
114
|
}
|
|
101
115
|
|
|
102
|
-
export function
|
|
103
|
-
return
|
|
116
|
+
export function JoinCodeInvite302ResponseFromJSON(json: any): JoinCodeInvite302Response {
|
|
117
|
+
return JoinCodeInvite302ResponseFromJSONTyped(json, false);
|
|
104
118
|
}
|
|
105
119
|
|
|
106
|
-
export function
|
|
120
|
+
export function JoinCodeInvite302ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JoinCodeInvite302Response {
|
|
107
121
|
if (json == null) {
|
|
108
122
|
return json;
|
|
109
123
|
}
|
|
@@ -116,15 +130,16 @@ export function ApiInviteCodeCodeStartGet302ResponseFromJSONTyped(json: any, ign
|
|
|
116
130
|
'status': InviteStatusFromJSON(json['status']),
|
|
117
131
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
118
132
|
'projectId': json['projectId'],
|
|
119
|
-
'
|
|
133
|
+
'config': CodeInviteConfigFromJSON(json['config']),
|
|
134
|
+
'settings': JoinCodeInvite302ResponseSettingsFromJSON(json['settings']),
|
|
120
135
|
};
|
|
121
136
|
}
|
|
122
137
|
|
|
123
|
-
export function
|
|
124
|
-
return
|
|
138
|
+
export function JoinCodeInvite302ResponseToJSON(json: any): JoinCodeInvite302Response {
|
|
139
|
+
return JoinCodeInvite302ResponseToJSONTyped(json, false);
|
|
125
140
|
}
|
|
126
141
|
|
|
127
|
-
export function
|
|
142
|
+
export function JoinCodeInvite302ResponseToJSONTyped(value?: JoinCodeInvite302Response | null, ignoreDiscriminator: boolean = false): any {
|
|
128
143
|
if (value == null) {
|
|
129
144
|
return value;
|
|
130
145
|
}
|
|
@@ -138,7 +153,8 @@ export function ApiInviteCodeCodeStartGet302ResponseToJSONTyped(value?: ApiInvit
|
|
|
138
153
|
'status': InviteStatusToJSON(value['status']),
|
|
139
154
|
'expiresAt': value['expiresAt'] === null ? null : ((value['expiresAt'] as any)?.toISOString()),
|
|
140
155
|
'projectId': value['projectId'],
|
|
141
|
-
'
|
|
156
|
+
'config': CodeInviteConfigToJSON(value['config']),
|
|
157
|
+
'settings': JoinCodeInvite302ResponseSettingsToJSON(value['settings']),
|
|
142
158
|
};
|
|
143
159
|
}
|
|
144
160
|
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { ScreenerQuestionChooseOnePublic } from './ScreenerQuestionChooseOnePublic';
|
|
17
|
+
import {
|
|
18
|
+
ScreenerQuestionChooseOnePublicFromJSON,
|
|
19
|
+
ScreenerQuestionChooseOnePublicFromJSONTyped,
|
|
20
|
+
ScreenerQuestionChooseOnePublicToJSON,
|
|
21
|
+
ScreenerQuestionChooseOnePublicToJSONTyped,
|
|
22
|
+
} from './ScreenerQuestionChooseOnePublic';
|
|
23
|
+
import type { ProjectFilePublic } from './ProjectFilePublic';
|
|
24
|
+
import {
|
|
25
|
+
ProjectFilePublicFromJSON,
|
|
26
|
+
ProjectFilePublicFromJSONTyped,
|
|
27
|
+
ProjectFilePublicToJSON,
|
|
28
|
+
ProjectFilePublicToJSONTyped,
|
|
29
|
+
} from './ProjectFilePublic';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface JoinCodeInvite302ResponseSettings
|
|
35
|
+
*/
|
|
36
|
+
export interface JoinCodeInvite302ResponseSettings {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof JoinCodeInvite302ResponseSettings
|
|
41
|
+
*/
|
|
42
|
+
maxDurationSeconds: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ScreenerQuestionChooseOnePublic>}
|
|
46
|
+
* @memberof JoinCodeInvite302ResponseSettings
|
|
47
|
+
*/
|
|
48
|
+
screenerQuestions?: Array<ScreenerQuestionChooseOnePublic>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<ProjectFilePublic>}
|
|
52
|
+
* @memberof JoinCodeInvite302ResponseSettings
|
|
53
|
+
*/
|
|
54
|
+
files?: Array<ProjectFilePublic>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the JoinCodeInvite302ResponseSettings interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfJoinCodeInvite302ResponseSettings(value: object): value is JoinCodeInvite302ResponseSettings {
|
|
61
|
+
if (!('maxDurationSeconds' in value) || value['maxDurationSeconds'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function JoinCodeInvite302ResponseSettingsFromJSON(json: any): JoinCodeInvite302ResponseSettings {
|
|
66
|
+
return JoinCodeInvite302ResponseSettingsFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function JoinCodeInvite302ResponseSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): JoinCodeInvite302ResponseSettings {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'maxDurationSeconds': json['maxDurationSeconds'],
|
|
76
|
+
'screenerQuestions': json['screenerQuestions'] == null ? undefined : ((json['screenerQuestions'] as Array<any>).map(ScreenerQuestionChooseOnePublicFromJSON)),
|
|
77
|
+
'files': json['files'] == null ? undefined : ((json['files'] as Array<any>).map(ProjectFilePublicFromJSON)),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function JoinCodeInvite302ResponseSettingsToJSON(json: any): JoinCodeInvite302ResponseSettings {
|
|
82
|
+
return JoinCodeInvite302ResponseSettingsToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function JoinCodeInvite302ResponseSettingsToJSONTyped(value?: JoinCodeInvite302ResponseSettings | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'maxDurationSeconds': value['maxDurationSeconds'],
|
|
93
|
+
'screenerQuestions': value['screenerQuestions'] == null ? undefined : ((value['screenerQuestions'] as Array<any>).map(ScreenerQuestionChooseOnePublicToJSON)),
|
|
94
|
+
'files': value['files'] == null ? undefined : ((value['files'] as Array<any>).map(ProjectFilePublicToJSON)),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -16,37 +16,37 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface PanelQualification
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface PanelQualification {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {Array<any>}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof PanelQualification
|
|
26
26
|
*/
|
|
27
27
|
allowed_option_ids: Array<any>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof PanelQualification
|
|
32
32
|
*/
|
|
33
33
|
question_id: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the PanelQualification interface.
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
39
|
+
export function instanceOfPanelQualification(value: object): value is PanelQualification {
|
|
40
40
|
if (!('allowed_option_ids' in value) || value['allowed_option_ids'] === undefined) return false;
|
|
41
41
|
if (!('question_id' in value) || value['question_id'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
45
|
+
export function PanelQualificationFromJSON(json: any): PanelQualification {
|
|
46
|
+
return PanelQualificationFromJSONTyped(json, false);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export function
|
|
49
|
+
export function PanelQualificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PanelQualification {
|
|
50
50
|
if (json == null) {
|
|
51
51
|
return json;
|
|
52
52
|
}
|
|
@@ -57,11 +57,11 @@ export function ProjectPanelQualificationFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
60
|
+
export function PanelQualificationToJSON(json: any): PanelQualification {
|
|
61
|
+
return PanelQualificationToJSONTyped(json, false);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function
|
|
64
|
+
export function PanelQualificationToJSONTyped(value?: PanelQualification | null, ignoreDiscriminator: boolean = false): any {
|
|
65
65
|
if (value == null) {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { PanelQualification } from './PanelQualification';
|
|
17
|
+
import {
|
|
18
|
+
PanelQualificationFromJSON,
|
|
19
|
+
PanelQualificationFromJSONTyped,
|
|
20
|
+
PanelQualificationToJSON,
|
|
21
|
+
PanelQualificationToJSONTyped,
|
|
22
|
+
} from './PanelQualification';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PanelRespondentAttribute
|
|
28
|
+
*/
|
|
29
|
+
export interface PanelRespondentAttribute {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PanelQualification>}
|
|
33
|
+
* @memberof PanelRespondentAttribute
|
|
34
|
+
*/
|
|
35
|
+
qualifications: Array<PanelQualification>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PanelRespondentAttribute
|
|
40
|
+
*/
|
|
41
|
+
quota: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PanelRespondentAttribute
|
|
46
|
+
*/
|
|
47
|
+
quota_name: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PanelRespondentAttribute interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfPanelRespondentAttribute(value: object): value is PanelRespondentAttribute {
|
|
54
|
+
if (!('qualifications' in value) || value['qualifications'] === undefined) return false;
|
|
55
|
+
if (!('quota' in value) || value['quota'] === undefined) return false;
|
|
56
|
+
if (!('quota_name' in value) || value['quota_name'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PanelRespondentAttributeFromJSON(json: any): PanelRespondentAttribute {
|
|
61
|
+
return PanelRespondentAttributeFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PanelRespondentAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PanelRespondentAttribute {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'qualifications': ((json['qualifications'] as Array<any>).map(PanelQualificationFromJSON)),
|
|
71
|
+
'quota': json['quota'],
|
|
72
|
+
'quota_name': json['quota_name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PanelRespondentAttributeToJSON(json: any): PanelRespondentAttribute {
|
|
77
|
+
return PanelRespondentAttributeToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PanelRespondentAttributeToJSONTyped(value?: PanelRespondentAttribute | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'qualifications': ((value['qualifications'] as Array<any>).map(PanelQualificationToJSON)),
|
|
88
|
+
'quota': value['quota'],
|
|
89
|
+
'quota_name': value['quota_name'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -13,77 +13,77 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { PanelRespondentAttribute } from './PanelRespondentAttribute';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
PanelRespondentAttributeFromJSON,
|
|
19
|
+
PanelRespondentAttributeFromJSONTyped,
|
|
20
|
+
PanelRespondentAttributeToJSON,
|
|
21
|
+
PanelRespondentAttributeToJSONTyped,
|
|
22
|
+
} from './PanelRespondentAttribute';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface PanelSettings
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface PanelSettings {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {Array<
|
|
33
|
-
* @memberof
|
|
32
|
+
* @type {Array<PanelRespondentAttribute>}
|
|
33
|
+
* @memberof PanelSettings
|
|
34
34
|
*/
|
|
35
|
-
respondent_attributes: Array<
|
|
35
|
+
respondent_attributes: Array<PanelRespondentAttribute>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof PanelSettings
|
|
40
40
|
*/
|
|
41
41
|
country_code?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof PanelSettings
|
|
46
46
|
*/
|
|
47
47
|
language_code?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof PanelSettings
|
|
52
52
|
*/
|
|
53
53
|
length_of_interview?: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof PanelSettings
|
|
58
58
|
*/
|
|
59
59
|
incidence_rate?: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof PanelSettings
|
|
64
64
|
*/
|
|
65
65
|
compensation?: number;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Check if a given object implements the
|
|
69
|
+
* Check if a given object implements the PanelSettings interface.
|
|
70
70
|
*/
|
|
71
|
-
export function
|
|
71
|
+
export function instanceOfPanelSettings(value: object): value is PanelSettings {
|
|
72
72
|
if (!('respondent_attributes' in value) || value['respondent_attributes'] === undefined) return false;
|
|
73
73
|
return true;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export function
|
|
77
|
-
return
|
|
76
|
+
export function PanelSettingsFromJSON(json: any): PanelSettings {
|
|
77
|
+
return PanelSettingsFromJSONTyped(json, false);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export function
|
|
80
|
+
export function PanelSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PanelSettings {
|
|
81
81
|
if (json == null) {
|
|
82
82
|
return json;
|
|
83
83
|
}
|
|
84
84
|
return {
|
|
85
85
|
|
|
86
|
-
'respondent_attributes': ((json['respondent_attributes'] as Array<any>).map(
|
|
86
|
+
'respondent_attributes': ((json['respondent_attributes'] as Array<any>).map(PanelRespondentAttributeFromJSON)),
|
|
87
87
|
'country_code': json['country_code'] == null ? undefined : json['country_code'],
|
|
88
88
|
'language_code': json['language_code'] == null ? undefined : json['language_code'],
|
|
89
89
|
'length_of_interview': json['length_of_interview'] == null ? undefined : json['length_of_interview'],
|
|
@@ -92,18 +92,18 @@ export function ProjectPanelSettingsFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export function
|
|
96
|
-
return
|
|
95
|
+
export function PanelSettingsToJSON(json: any): PanelSettings {
|
|
96
|
+
return PanelSettingsToJSONTyped(json, false);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export function
|
|
99
|
+
export function PanelSettingsToJSONTyped(value?: PanelSettings | null, ignoreDiscriminator: boolean = false): any {
|
|
100
100
|
if (value == null) {
|
|
101
101
|
return value;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
return {
|
|
105
105
|
|
|
106
|
-
'respondent_attributes': ((value['respondent_attributes'] as Array<any>).map(
|
|
106
|
+
'respondent_attributes': ((value['respondent_attributes'] as Array<any>).map(PanelRespondentAttributeToJSON)),
|
|
107
107
|
'country_code': value['country_code'],
|
|
108
108
|
'language_code': value['language_code'],
|
|
109
109
|
'length_of_interview': value['length_of_interview'],
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
ParticipantCreateToJSON,
|
|
21
21
|
ParticipantCreateToJSONTyped,
|
|
22
22
|
} from './ParticipantCreate';
|
|
23
|
-
import type {
|
|
23
|
+
import type { PanelSettings } from './PanelSettings';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
PanelSettingsFromJSON,
|
|
26
|
+
PanelSettingsFromJSONTyped,
|
|
27
|
+
PanelSettingsToJSON,
|
|
28
|
+
PanelSettingsToJSONTyped,
|
|
29
|
+
} from './PanelSettings';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -48,10 +48,10 @@ export interface ProjectAudience {
|
|
|
48
48
|
participants?: Array<ParticipantCreate> | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {PanelSettings}
|
|
52
52
|
* @memberof ProjectAudience
|
|
53
53
|
*/
|
|
54
|
-
panelSettings?:
|
|
54
|
+
panelSettings?: PanelSettings | null;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -74,7 +74,7 @@ export function ProjectAudienceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
74
74
|
|
|
75
75
|
'sampleSize': json['sampleSize'],
|
|
76
76
|
'participants': json['participants'] == null ? undefined : ((json['participants'] as Array<any>).map(ParticipantCreateFromJSON)),
|
|
77
|
-
'panelSettings': json['panelSettings'] == null ? undefined :
|
|
77
|
+
'panelSettings': json['panelSettings'] == null ? undefined : PanelSettingsFromJSON(json['panelSettings']),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -91,7 +91,7 @@ export function ProjectAudienceToJSONTyped(value?: ProjectAudience | null, ignor
|
|
|
91
91
|
|
|
92
92
|
'sampleSize': value['sampleSize'],
|
|
93
93
|
'participants': value['participants'] == null ? undefined : ((value['participants'] as Array<any>).map(ParticipantCreateToJSON)),
|
|
94
|
-
'panelSettings':
|
|
94
|
+
'panelSettings': PanelSettingsToJSON(value['panelSettings']),
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -13,6 +13,13 @@
|
|
|
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';
|
|
16
23
|
import type { ProjectBrief } from './ProjectBrief';
|
|
17
24
|
import {
|
|
18
25
|
ProjectBriefFromJSON,
|
|
@@ -27,13 +34,6 @@ import {
|
|
|
27
34
|
ProjectAudienceToJSON,
|
|
28
35
|
ProjectAudienceToJSONTyped,
|
|
29
36
|
} from './ProjectAudience';
|
|
30
|
-
import type { ProjectScreenerQuestionChooseOne } from './ProjectScreenerQuestionChooseOne';
|
|
31
|
-
import {
|
|
32
|
-
ProjectScreenerQuestionChooseOneFromJSON,
|
|
33
|
-
ProjectScreenerQuestionChooseOneFromJSONTyped,
|
|
34
|
-
ProjectScreenerQuestionChooseOneToJSON,
|
|
35
|
-
ProjectScreenerQuestionChooseOneToJSONTyped,
|
|
36
|
-
} from './ProjectScreenerQuestionChooseOne';
|
|
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<ScreenerQuestionChooseOne>}
|
|
84
84
|
* @memberof ProjectConfig
|
|
85
85
|
*/
|
|
86
|
-
screenerQuestions?: Array<
|
|
86
|
+
screenerQuestions?: Array<ScreenerQuestionChooseOne>;
|
|
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(ScreenerQuestionChooseOneFromJSON)),
|
|
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(ScreenerQuestionChooseOneToJSON)),
|
|
143
143
|
'audienceSettings': ProjectAudienceToJSON(value['audienceSettings']),
|
|
144
144
|
};
|
|
145
145
|
}
|