keplar-api 0.0.8 → 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 +37 -22
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +236 -235
- package/dist/apis/DefaultApi.js +926 -786
- 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/Attribute.d.ts +65 -0
- package/dist/models/Attribute.js +68 -0
- package/dist/models/AttributeFilterGroupSchemaInner.d.ts +23 -0
- package/dist/models/AttributeFilterGroupSchemaInner.js +58 -0
- package/dist/models/AttributeKind.d.ts +76 -0
- package/dist/models/AttributeKind.js +75 -0
- package/dist/models/AttributeSource.d.ts +25 -0
- package/dist/models/AttributeSource.js +51 -0
- package/dist/models/AttributeStatsSchemaInner.d.ts +40 -0
- package/dist/models/AttributeStatsSchemaInner.js +57 -0
- package/dist/models/AttributeStatsSchemaInnerKind.d.ts +57 -0
- package/dist/models/AttributeStatsSchemaInnerKind.js +64 -0
- package/dist/models/AttributeStatsSchemaInnerValuesInner.d.ts +38 -0
- package/dist/models/AttributeStatsSchemaInnerValuesInner.js +55 -0
- package/dist/models/AttributeValueKind.d.ts +26 -0
- package/dist/models/AttributeValueKind.js +52 -0
- 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/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +3 -0
- package/dist/models/InviteResponseAttribute.d.ts +71 -0
- package/dist/models/InviteResponseAttribute.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/NumberFilterSchema.d.ts +57 -0
- package/dist/models/NumberFilterSchema.js +66 -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/Participant.d.ts +7 -0
- package/dist/models/Participant.js +3 -0
- package/dist/models/ParticipantAttribute.d.ts +77 -0
- package/dist/models/ParticipantAttribute.js +78 -0
- 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/SelectFilterSchema.d.ts +45 -0
- package/dist/models/SelectFilterSchema.js +60 -0
- package/dist/models/SelectFilterSchemaKind.d.ts +26 -0
- package/dist/models/SelectFilterSchemaKind.js +39 -0
- 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 +37 -22
- package/dist/models/index.js +37 -22
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1126 -991
- package/src/models/ApiInvitesIdParticipantInvitesGet200Response.ts +101 -0
- package/src/models/ApiInvitesIdResponsesGet200Response.ts +10 -10
- package/src/models/Attribute.ts +130 -0
- package/src/models/AttributeFilterGroupSchemaInner.ts +76 -0
- package/src/models/AttributeKind.ts +143 -0
- package/src/models/AttributeSource.ts +53 -0
- package/src/models/AttributeStatsSchemaInner.ts +90 -0
- package/src/models/AttributeStatsSchemaInnerKind.ts +110 -0
- package/src/models/AttributeStatsSchemaInnerValuesInner.ts +75 -0
- package/src/models/AttributeValueKind.ts +54 -0
- 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/InviteResponse.ts +15 -0
- package/src/models/InviteResponseAttribute.ts +142 -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/NumberFilterSchema.ts +101 -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/Participant.ts +15 -0
- package/src/models/ParticipantAttribute.ts +151 -0
- 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/SelectFilterSchema.ts +92 -0
- package/src/models/SelectFilterSchemaKind.ts +46 -0
- 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 +37 -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
|
@@ -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'],
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
OrgToJSON,
|
|
28
28
|
OrgToJSONTyped,
|
|
29
29
|
} from './Org';
|
|
30
|
+
import type { ParticipantAttribute } from './ParticipantAttribute';
|
|
31
|
+
import {
|
|
32
|
+
ParticipantAttributeFromJSON,
|
|
33
|
+
ParticipantAttributeFromJSONTyped,
|
|
34
|
+
ParticipantAttributeToJSON,
|
|
35
|
+
ParticipantAttributeToJSONTyped,
|
|
36
|
+
} from './ParticipantAttribute';
|
|
30
37
|
import type { InviteResponse } from './InviteResponse';
|
|
31
38
|
import {
|
|
32
39
|
InviteResponseFromJSON,
|
|
@@ -120,6 +127,12 @@ export interface Participant {
|
|
|
120
127
|
* @memberof Participant
|
|
121
128
|
*/
|
|
122
129
|
calls?: Array<Call>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {Array<ParticipantAttribute>}
|
|
133
|
+
* @memberof Participant
|
|
134
|
+
*/
|
|
135
|
+
participantAttributes?: Array<ParticipantAttribute>;
|
|
123
136
|
}
|
|
124
137
|
|
|
125
138
|
/**
|
|
@@ -155,6 +168,7 @@ export function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
155
168
|
'participantInvites': json['participantInvites'] == null ? undefined : ((json['participantInvites'] as Array<any>).map(ParticipantInviteFromJSON)),
|
|
156
169
|
'inviteResponses': json['inviteResponses'] == null ? undefined : ((json['inviteResponses'] as Array<any>).map(InviteResponseFromJSON)),
|
|
157
170
|
'calls': json['calls'] == null ? undefined : ((json['calls'] as Array<any>).map(CallFromJSON)),
|
|
171
|
+
'participantAttributes': json['participantAttributes'] == null ? undefined : ((json['participantAttributes'] as Array<any>).map(ParticipantAttributeFromJSON)),
|
|
158
172
|
};
|
|
159
173
|
}
|
|
160
174
|
|
|
@@ -181,6 +195,7 @@ export function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscrim
|
|
|
181
195
|
'participantInvites': value['participantInvites'] == null ? undefined : ((value['participantInvites'] as Array<any>).map(ParticipantInviteToJSON)),
|
|
182
196
|
'inviteResponses': value['inviteResponses'] == null ? undefined : ((value['inviteResponses'] as Array<any>).map(InviteResponseToJSON)),
|
|
183
197
|
'calls': value['calls'] == null ? undefined : ((value['calls'] as Array<any>).map(CallToJSON)),
|
|
198
|
+
'participantAttributes': value['participantAttributes'] == null ? undefined : ((value['participantAttributes'] as Array<any>).map(ParticipantAttributeToJSON)),
|
|
184
199
|
};
|
|
185
200
|
}
|
|
186
201
|
|
|
@@ -0,0 +1,151 @@
|
|
|
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 { AttributeSource } from './AttributeSource';
|
|
17
|
+
import {
|
|
18
|
+
AttributeSourceFromJSON,
|
|
19
|
+
AttributeSourceFromJSONTyped,
|
|
20
|
+
AttributeSourceToJSON,
|
|
21
|
+
AttributeSourceToJSONTyped,
|
|
22
|
+
} from './AttributeSource';
|
|
23
|
+
import type { Participant } from './Participant';
|
|
24
|
+
import {
|
|
25
|
+
ParticipantFromJSON,
|
|
26
|
+
ParticipantFromJSONTyped,
|
|
27
|
+
ParticipantToJSON,
|
|
28
|
+
ParticipantToJSONTyped,
|
|
29
|
+
} from './Participant';
|
|
30
|
+
import type { Attribute } from './Attribute';
|
|
31
|
+
import {
|
|
32
|
+
AttributeFromJSON,
|
|
33
|
+
AttributeFromJSONTyped,
|
|
34
|
+
AttributeToJSON,
|
|
35
|
+
AttributeToJSONTyped,
|
|
36
|
+
} from './Attribute';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ParticipantAttribute
|
|
42
|
+
*/
|
|
43
|
+
export interface ParticipantAttribute {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ParticipantAttribute
|
|
48
|
+
*/
|
|
49
|
+
participantId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ParticipantAttribute
|
|
54
|
+
*/
|
|
55
|
+
attributeKindKey: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ParticipantAttribute
|
|
60
|
+
*/
|
|
61
|
+
attributeValue: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {AttributeSource}
|
|
65
|
+
* @memberof ParticipantAttribute
|
|
66
|
+
*/
|
|
67
|
+
source: AttributeSource;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof ParticipantAttribute
|
|
72
|
+
*/
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof ParticipantAttribute
|
|
78
|
+
*/
|
|
79
|
+
updatedAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Participant}
|
|
83
|
+
* @memberof ParticipantAttribute
|
|
84
|
+
*/
|
|
85
|
+
participant?: Participant;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Attribute}
|
|
89
|
+
* @memberof ParticipantAttribute
|
|
90
|
+
*/
|
|
91
|
+
attribute?: Attribute;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the ParticipantAttribute interface.
|
|
98
|
+
*/
|
|
99
|
+
export function instanceOfParticipantAttribute(value: object): value is ParticipantAttribute {
|
|
100
|
+
if (!('participantId' in value) || value['participantId'] === undefined) return false;
|
|
101
|
+
if (!('attributeKindKey' in value) || value['attributeKindKey'] === undefined) return false;
|
|
102
|
+
if (!('attributeValue' in value) || value['attributeValue'] === undefined) return false;
|
|
103
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
104
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
105
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function ParticipantAttributeFromJSON(json: any): ParticipantAttribute {
|
|
110
|
+
return ParticipantAttributeFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function ParticipantAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantAttribute {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'participantId': json['participantId'],
|
|
120
|
+
'attributeKindKey': json['attributeKindKey'],
|
|
121
|
+
'attributeValue': json['attributeValue'],
|
|
122
|
+
'source': AttributeSourceFromJSON(json['source']),
|
|
123
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
124
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
125
|
+
'participant': json['participant'] == null ? undefined : ParticipantFromJSON(json['participant']),
|
|
126
|
+
'attribute': json['attribute'] == null ? undefined : AttributeFromJSON(json['attribute']),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ParticipantAttributeToJSON(json: any): ParticipantAttribute {
|
|
131
|
+
return ParticipantAttributeToJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ParticipantAttributeToJSONTyped(value?: ParticipantAttribute | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
+
if (value == null) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'participantId': value['participantId'],
|
|
142
|
+
'attributeKindKey': value['attributeKindKey'],
|
|
143
|
+
'attributeValue': value['attributeValue'],
|
|
144
|
+
'source': AttributeSourceToJSON(value['source']),
|
|
145
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
146
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
147
|
+
'participant': ParticipantToJSON(value['participant']),
|
|
148
|
+
'attribute': AttributeToJSON(value['attribute']),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -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
|
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ScreenerQuestionResponse } from './ScreenerQuestionResponse';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
ScreenerQuestionResponseFromJSON,
|
|
19
|
+
ScreenerQuestionResponseFromJSONTyped,
|
|
20
|
+
ScreenerQuestionResponseToJSON,
|
|
21
|
+
ScreenerQuestionResponseToJSONTyped,
|
|
22
|
+
} from './ScreenerQuestionResponse';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,10 +35,10 @@ export interface ResponseSubmitScreenerEvent {
|
|
|
35
35
|
type: ResponseSubmitScreenerEventTypeEnum;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<ScreenerQuestionResponse>}
|
|
39
39
|
* @memberof ResponseSubmitScreenerEvent
|
|
40
40
|
*/
|
|
41
|
-
screenerQuestionsResponses: Array<
|
|
41
|
+
screenerQuestionsResponses: Array<ScreenerQuestionResponse>;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
|
|
@@ -71,7 +71,7 @@ export function ResponseSubmitScreenerEventFromJSONTyped(json: any, ignoreDiscri
|
|
|
71
71
|
return {
|
|
72
72
|
|
|
73
73
|
'type': json['type'],
|
|
74
|
-
'screenerQuestionsResponses': ((json['screenerQuestionsResponses'] as Array<any>).map(
|
|
74
|
+
'screenerQuestionsResponses': ((json['screenerQuestionsResponses'] as Array<any>).map(ScreenerQuestionResponseFromJSON)),
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -87,7 +87,7 @@ export function ResponseSubmitScreenerEventToJSONTyped(value?: ResponseSubmitScr
|
|
|
87
87
|
return {
|
|
88
88
|
|
|
89
89
|
'type': value['type'],
|
|
90
|
-
'screenerQuestionsResponses': ((value['screenerQuestionsResponses'] as Array<any>).map(
|
|
90
|
+
'screenerQuestionsResponses': ((value['screenerQuestionsResponses'] as Array<any>).map(ScreenerQuestionResponseToJSON)),
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -16,31 +16,31 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ScreenerQuestionChooseOne
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ScreenerQuestionChooseOne {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ScreenerQuestionChooseOne
|
|
26
26
|
*/
|
|
27
|
-
type:
|
|
27
|
+
type: ScreenerQuestionChooseOneTypeEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ScreenerQuestionChooseOne
|
|
32
32
|
*/
|
|
33
33
|
question: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {Array<string>}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof ScreenerQuestionChooseOne
|
|
38
38
|
*/
|
|
39
39
|
options: Array<string>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {Array<string>}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof ScreenerQuestionChooseOne
|
|
44
44
|
*/
|
|
45
45
|
passingOptions: Array<string>;
|
|
46
46
|
}
|
|
@@ -49,16 +49,16 @@ export interface ProjectScreenerQuestionChooseOne {
|
|
|
49
49
|
/**
|
|
50
50
|
* @export
|
|
51
51
|
*/
|
|
52
|
-
export const
|
|
52
|
+
export const ScreenerQuestionChooseOneTypeEnum = {
|
|
53
53
|
ChooseOne: 'chooseOne'
|
|
54
54
|
} as const;
|
|
55
|
-
export type
|
|
55
|
+
export type ScreenerQuestionChooseOneTypeEnum = typeof ScreenerQuestionChooseOneTypeEnum[keyof typeof ScreenerQuestionChooseOneTypeEnum];
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* Check if a given object implements the
|
|
59
|
+
* Check if a given object implements the ScreenerQuestionChooseOne interface.
|
|
60
60
|
*/
|
|
61
|
-
export function
|
|
61
|
+
export function instanceOfScreenerQuestionChooseOne(value: object): value is ScreenerQuestionChooseOne {
|
|
62
62
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
63
63
|
if (!('question' in value) || value['question'] === undefined) return false;
|
|
64
64
|
if (!('options' in value) || value['options'] === undefined) return false;
|
|
@@ -66,11 +66,11 @@ export function instanceOfProjectScreenerQuestionChooseOne(value: object): value
|
|
|
66
66
|
return true;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
70
|
-
return
|
|
69
|
+
export function ScreenerQuestionChooseOneFromJSON(json: any): ScreenerQuestionChooseOne {
|
|
70
|
+
return ScreenerQuestionChooseOneFromJSONTyped(json, false);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export function
|
|
73
|
+
export function ScreenerQuestionChooseOneFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenerQuestionChooseOne {
|
|
74
74
|
if (json == null) {
|
|
75
75
|
return json;
|
|
76
76
|
}
|
|
@@ -83,11 +83,11 @@ export function ProjectScreenerQuestionChooseOneFromJSONTyped(json: any, ignoreD
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export function
|
|
87
|
-
return
|
|
86
|
+
export function ScreenerQuestionChooseOneToJSON(json: any): ScreenerQuestionChooseOne {
|
|
87
|
+
return ScreenerQuestionChooseOneToJSONTyped(json, false);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export function
|
|
90
|
+
export function ScreenerQuestionChooseOneToJSONTyped(value?: ScreenerQuestionChooseOne | null, ignoreDiscriminator: boolean = false): any {
|
|
91
91
|
if (value == null) {
|
|
92
92
|
return value;
|
|
93
93
|
}
|