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.
Files changed (201) hide show
  1. package/.openapi-generator/FILES +37 -22
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +236 -235
  4. package/dist/apis/DefaultApi.js +926 -786
  5. package/dist/models/ApiInvitesIdParticipantInvitesGet200Response.d.ts +51 -0
  6. package/dist/models/ApiInvitesIdParticipantInvitesGet200Response.js +64 -0
  7. package/dist/models/ApiInvitesIdResponsesGet200Response.d.ts +3 -3
  8. package/dist/models/ApiInvitesIdResponsesGet200Response.js +3 -3
  9. package/dist/models/Attribute.d.ts +65 -0
  10. package/dist/models/Attribute.js +68 -0
  11. package/dist/models/AttributeFilterGroupSchemaInner.d.ts +23 -0
  12. package/dist/models/AttributeFilterGroupSchemaInner.js +58 -0
  13. package/dist/models/AttributeKind.d.ts +76 -0
  14. package/dist/models/AttributeKind.js +75 -0
  15. package/dist/models/AttributeSource.d.ts +25 -0
  16. package/dist/models/AttributeSource.js +51 -0
  17. package/dist/models/AttributeStatsSchemaInner.d.ts +40 -0
  18. package/dist/models/AttributeStatsSchemaInner.js +57 -0
  19. package/dist/models/AttributeStatsSchemaInnerKind.d.ts +57 -0
  20. package/dist/models/AttributeStatsSchemaInnerKind.js +64 -0
  21. package/dist/models/AttributeStatsSchemaInnerValuesInner.d.ts +38 -0
  22. package/dist/models/AttributeStatsSchemaInnerValuesInner.js +55 -0
  23. package/dist/models/AttributeValueKind.d.ts +26 -0
  24. package/dist/models/AttributeValueKind.js +52 -0
  25. package/dist/models/CallSummary.d.ts +46 -0
  26. package/dist/models/CallSummary.js +61 -0
  27. package/dist/models/CodeInvite.d.ts +10 -3
  28. package/dist/models/CodeInvite.js +8 -3
  29. package/dist/models/CodeInviteConfig.d.ts +30 -0
  30. package/dist/models/CodeInviteConfig.js +59 -0
  31. package/dist/models/CodeInviteConfigContacts.d.ts +75 -0
  32. package/dist/models/CodeInviteConfigContacts.js +72 -0
  33. package/dist/models/CodeInviteConfigKeplarPanel.d.ts +82 -0
  34. package/dist/models/CodeInviteConfigKeplarPanel.js +77 -0
  35. package/dist/models/CreateCodeInviteResponseRequest.d.ts +40 -0
  36. package/dist/models/CreateCodeInviteResponseRequest.js +53 -0
  37. package/dist/models/GetCodeInvite200Response.d.ts +83 -0
  38. package/dist/models/{ApiInviteCodeCodeGet200Response.js → GetCodeInvite200Response.js} +21 -16
  39. package/dist/models/GetCodeInviteResponseRedirect200Response.d.ts +32 -0
  40. package/dist/models/GetCodeInviteResponseRedirect200Response.js +51 -0
  41. package/dist/models/InviteConfig.d.ts +12 -70
  42. package/dist/models/InviteConfig.js +23 -37
  43. package/dist/models/InviteConfigContacts.d.ts +75 -0
  44. package/dist/models/InviteConfigContacts.js +72 -0
  45. package/dist/models/InviteConfigKeplarPanel.d.ts +95 -0
  46. package/dist/models/InviteConfigKeplarPanel.js +82 -0
  47. package/dist/models/InviteConfigPublic.d.ts +81 -0
  48. package/dist/models/InviteConfigPublic.js +74 -0
  49. package/dist/models/InviteResponse.d.ts +7 -0
  50. package/dist/models/InviteResponse.js +3 -0
  51. package/dist/models/InviteResponseAttribute.d.ts +71 -0
  52. package/dist/models/InviteResponseAttribute.js +74 -0
  53. package/dist/models/InviteResponseData.d.ts +3 -3
  54. package/dist/models/InviteResponseData.js +3 -3
  55. package/dist/models/InviteResponseWithCallSummary.d.ts +118 -0
  56. package/dist/models/InviteResponseWithCallSummary.js +97 -0
  57. package/dist/models/JoinCodeInvite302Response.d.ts +83 -0
  58. package/dist/models/{ApiInviteCodeCodeStartGet302Response.js → JoinCodeInvite302Response.js} +21 -16
  59. package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +46 -0
  60. package/dist/models/JoinCodeInvite302ResponseSettings.js +57 -0
  61. package/dist/models/NumberFilterSchema.d.ts +57 -0
  62. package/dist/models/NumberFilterSchema.js +66 -0
  63. package/dist/models/PanelQualification.d.ts +38 -0
  64. package/dist/models/{ProjectPanelQualification.js → PanelQualification.js} +13 -13
  65. package/dist/models/PanelRespondentAttribute.d.ts +45 -0
  66. package/dist/models/PanelRespondentAttribute.js +60 -0
  67. package/dist/models/PanelSettings.d.ts +63 -0
  68. package/dist/models/{ProjectPanelSettings.js → PanelSettings.js} +16 -16
  69. package/dist/models/Participant.d.ts +7 -0
  70. package/dist/models/Participant.js +3 -0
  71. package/dist/models/ParticipantAttribute.d.ts +77 -0
  72. package/dist/models/ParticipantAttribute.js +78 -0
  73. package/dist/models/ProjectAudience.d.ts +3 -3
  74. package/dist/models/ProjectAudience.js +3 -3
  75. package/dist/models/ProjectConfig.d.ts +3 -3
  76. package/dist/models/ProjectConfig.js +3 -3
  77. package/dist/models/ResponseSubmitScreenerEvent.d.ts +3 -3
  78. package/dist/models/ResponseSubmitScreenerEvent.js +3 -3
  79. package/dist/models/ScreenerQuestionChooseOne.d.ts +57 -0
  80. package/dist/models/{ProjectScreenerQuestionChooseOne.js → ScreenerQuestionChooseOne.js} +15 -15
  81. package/dist/models/ScreenerQuestionChooseOnePublic.d.ts +51 -0
  82. package/dist/models/ScreenerQuestionChooseOnePublic.js +66 -0
  83. package/dist/models/ScreenerQuestionResponse.d.ts +44 -0
  84. package/dist/models/{ProjectScreenerQuestionResponse.js → ScreenerQuestionResponse.js} +13 -13
  85. package/dist/models/SelectFilterSchema.d.ts +45 -0
  86. package/dist/models/SelectFilterSchema.js +60 -0
  87. package/dist/models/SelectFilterSchemaKind.d.ts +26 -0
  88. package/dist/models/SelectFilterSchemaKind.js +39 -0
  89. package/dist/models/StartPhoneCallForCodeInviteResponseRequest.d.ts +32 -0
  90. package/dist/models/StartPhoneCallForCodeInviteResponseRequest.js +51 -0
  91. package/dist/models/UpdateCallForCodeInviteResponseRequest.d.ts +39 -0
  92. package/dist/models/UpdateCallForCodeInviteResponseRequest.js +56 -0
  93. package/dist/models/UpdateCallForCodeInviteResponseRequestCall.d.ts +39 -0
  94. package/dist/models/UpdateCallForCodeInviteResponseRequestCall.js +56 -0
  95. package/dist/models/UpdateCodeInviteResponse404Response.d.ts +32 -0
  96. package/dist/models/UpdateCodeInviteResponse404Response.js +51 -0
  97. package/dist/models/index.d.ts +37 -22
  98. package/dist/models/index.js +37 -22
  99. package/package.json +1 -1
  100. package/src/apis/DefaultApi.ts +1126 -991
  101. package/src/models/ApiInvitesIdParticipantInvitesGet200Response.ts +101 -0
  102. package/src/models/ApiInvitesIdResponsesGet200Response.ts +10 -10
  103. package/src/models/Attribute.ts +130 -0
  104. package/src/models/AttributeFilterGroupSchemaInner.ts +76 -0
  105. package/src/models/AttributeKind.ts +143 -0
  106. package/src/models/AttributeSource.ts +53 -0
  107. package/src/models/AttributeStatsSchemaInner.ts +90 -0
  108. package/src/models/AttributeStatsSchemaInnerKind.ts +110 -0
  109. package/src/models/AttributeStatsSchemaInnerValuesInner.ts +75 -0
  110. package/src/models/AttributeValueKind.ts +54 -0
  111. package/src/models/CallSummary.ts +101 -0
  112. package/src/models/CodeInvite.ts +27 -11
  113. package/src/models/CodeInviteConfig.ts +83 -0
  114. package/src/models/CodeInviteConfigContacts.ts +125 -0
  115. package/src/models/CodeInviteConfigKeplarPanel.ts +142 -0
  116. package/src/models/CreateCodeInviteResponseRequest.ts +90 -0
  117. package/src/models/{ApiInviteCodeCodeGet200Response.ts → GetCodeInvite200Response.ts} +45 -29
  118. package/src/models/GetCodeInviteResponseRedirect200Response.ts +66 -0
  119. package/src/models/InviteConfig.ts +42 -113
  120. package/src/models/InviteConfigContacts.ts +125 -0
  121. package/src/models/InviteConfigKeplarPanel.ts +165 -0
  122. package/src/models/InviteConfigPublic.ts +133 -0
  123. package/src/models/InviteResponse.ts +15 -0
  124. package/src/models/InviteResponseAttribute.ts +142 -0
  125. package/src/models/InviteResponseData.ts +10 -10
  126. package/src/models/InviteResponseWithCallSummary.ts +235 -0
  127. package/src/models/{ApiInviteCodeCodeStartGet302Response.ts → JoinCodeInvite302Response.ts} +45 -29
  128. package/src/models/JoinCodeInvite302ResponseSettings.ts +97 -0
  129. package/src/models/NumberFilterSchema.ts +101 -0
  130. package/src/models/{ProjectPanelQualification.ts → PanelQualification.ts} +12 -12
  131. package/src/models/PanelRespondentAttribute.ts +92 -0
  132. package/src/models/{ProjectPanelSettings.ts → PanelSettings.ts} +26 -26
  133. package/src/models/Participant.ts +15 -0
  134. package/src/models/ParticipantAttribute.ts +151 -0
  135. package/src/models/ProjectAudience.ts +10 -10
  136. package/src/models/ProjectConfig.ts +11 -11
  137. package/src/models/ResponseSubmitScreenerEvent.ts +10 -10
  138. package/src/models/{ProjectScreenerQuestionChooseOne.ts → ScreenerQuestionChooseOne.ts} +17 -17
  139. package/src/models/ScreenerQuestionChooseOnePublic.ts +94 -0
  140. package/src/models/{ProjectScreenerQuestionResponse.ts → ScreenerQuestionResponse.ts} +13 -13
  141. package/src/models/SelectFilterSchema.ts +92 -0
  142. package/src/models/SelectFilterSchemaKind.ts +46 -0
  143. package/src/models/StartPhoneCallForCodeInviteResponseRequest.ts +66 -0
  144. package/src/models/UpdateCallForCodeInviteResponseRequest.ts +83 -0
  145. package/src/models/UpdateCallForCodeInviteResponseRequestCall.ts +85 -0
  146. package/src/models/UpdateCodeInviteResponse404Response.ts +66 -0
  147. package/src/models/index.ts +37 -22
  148. package/dist/models/ApiInviteCodeCodeGet200Response.d.ts +0 -76
  149. package/dist/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.d.ts +0 -32
  150. package/dist/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.js +0 -51
  151. package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.d.ts +0 -32
  152. package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.js +0 -51
  153. package/dist/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.d.ts +0 -32
  154. package/dist/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.js +0 -51
  155. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.d.ts +0 -39
  156. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.js +0 -56
  157. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.d.ts +0 -39
  158. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.js +0 -56
  159. package/dist/models/ApiInviteCodeCodeStartGet302Response.d.ts +0 -76
  160. package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.d.ts +0 -64
  161. package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.js +0 -63
  162. package/dist/models/GetParticipantInvitesResponse.d.ts +0 -39
  163. package/dist/models/GetParticipantInvitesResponse.js +0 -56
  164. package/dist/models/ProjectPanelQualification.d.ts +0 -38
  165. package/dist/models/ProjectPanelRespondentAttribute.d.ts +0 -45
  166. package/dist/models/ProjectPanelRespondentAttribute.js +0 -60
  167. package/dist/models/ProjectPanelSettings.d.ts +0 -63
  168. package/dist/models/ProjectScreenerQuestionChooseOne.d.ts +0 -57
  169. package/dist/models/ProjectScreenerQuestionChooseOnePublic.d.ts +0 -51
  170. package/dist/models/ProjectScreenerQuestionChooseOnePublic.js +0 -66
  171. package/dist/models/ProjectScreenerQuestionResponse.d.ts +0 -44
  172. package/dist/models/RepDataConfigLegacy.d.ts +0 -59
  173. package/dist/models/RepDataConfigLegacy.js +0 -62
  174. package/dist/models/RepDataProjectLegacy.d.ts +0 -32
  175. package/dist/models/RepDataProjectLegacy.js +0 -51
  176. package/dist/models/RepDataStudyLegacy.d.ts +0 -93
  177. package/dist/models/RepDataStudyLegacy.js +0 -92
  178. package/dist/models/RepDataStudyLegacyQualificationsInner.d.ts +0 -38
  179. package/dist/models/RepDataStudyLegacyQualificationsInner.js +0 -55
  180. package/dist/models/RepDataSurveyLegacy.d.ts +0 -46
  181. package/dist/models/RepDataSurveyLegacy.js +0 -59
  182. package/dist/models/RepDataSurveyLegacyProject.d.ts +0 -32
  183. package/dist/models/RepDataSurveyLegacyProject.js +0 -51
  184. package/dist/models/RepDataSurveyStatusLegacy.d.ts +0 -26
  185. package/dist/models/RepDataSurveyStatusLegacy.js +0 -52
  186. package/src/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.ts +0 -66
  187. package/src/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.ts +0 -66
  188. package/src/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.ts +0 -66
  189. package/src/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.ts +0 -83
  190. package/src/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.ts +0 -85
  191. package/src/models/ApiInviteCodeCodeStartGet302ResponseSettings.ts +0 -121
  192. package/src/models/GetParticipantInvitesResponse.ts +0 -83
  193. package/src/models/ProjectPanelRespondentAttribute.ts +0 -92
  194. package/src/models/ProjectScreenerQuestionChooseOnePublic.ts +0 -94
  195. package/src/models/RepDataConfigLegacy.ts +0 -120
  196. package/src/models/RepDataProjectLegacy.ts +0 -66
  197. package/src/models/RepDataStudyLegacy.ts +0 -164
  198. package/src/models/RepDataStudyLegacyQualificationsInner.ts +0 -75
  199. package/src/models/RepDataSurveyLegacy.ts +0 -100
  200. package/src/models/RepDataSurveyLegacyProject.ts +0 -66
  201. package/src/models/RepDataSurveyStatusLegacy.ts +0 -54
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfJoinCodeInvite302ResponseSettings = instanceOfJoinCodeInvite302ResponseSettings;
17
+ exports.JoinCodeInvite302ResponseSettingsFromJSON = JoinCodeInvite302ResponseSettingsFromJSON;
18
+ exports.JoinCodeInvite302ResponseSettingsFromJSONTyped = JoinCodeInvite302ResponseSettingsFromJSONTyped;
19
+ exports.JoinCodeInvite302ResponseSettingsToJSON = JoinCodeInvite302ResponseSettingsToJSON;
20
+ exports.JoinCodeInvite302ResponseSettingsToJSONTyped = JoinCodeInvite302ResponseSettingsToJSONTyped;
21
+ var ScreenerQuestionChooseOnePublic_1 = require("./ScreenerQuestionChooseOnePublic");
22
+ var ProjectFilePublic_1 = require("./ProjectFilePublic");
23
+ /**
24
+ * Check if a given object implements the JoinCodeInvite302ResponseSettings interface.
25
+ */
26
+ function instanceOfJoinCodeInvite302ResponseSettings(value) {
27
+ if (!('maxDurationSeconds' in value) || value['maxDurationSeconds'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function JoinCodeInvite302ResponseSettingsFromJSON(json) {
32
+ return JoinCodeInvite302ResponseSettingsFromJSONTyped(json, false);
33
+ }
34
+ function JoinCodeInvite302ResponseSettingsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'maxDurationSeconds': json['maxDurationSeconds'],
40
+ 'screenerQuestions': json['screenerQuestions'] == null ? undefined : (json['screenerQuestions'].map(ScreenerQuestionChooseOnePublic_1.ScreenerQuestionChooseOnePublicFromJSON)),
41
+ 'files': json['files'] == null ? undefined : (json['files'].map(ProjectFilePublic_1.ProjectFilePublicFromJSON)),
42
+ };
43
+ }
44
+ function JoinCodeInvite302ResponseSettingsToJSON(json) {
45
+ return JoinCodeInvite302ResponseSettingsToJSONTyped(json, false);
46
+ }
47
+ function JoinCodeInvite302ResponseSettingsToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'maxDurationSeconds': value['maxDurationSeconds'],
54
+ 'screenerQuestions': value['screenerQuestions'] == null ? undefined : (value['screenerQuestions'].map(ScreenerQuestionChooseOnePublic_1.ScreenerQuestionChooseOnePublicToJSON)),
55
+ 'files': value['files'] == null ? undefined : (value['files'].map(ProjectFilePublic_1.ProjectFilePublicToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface NumberFilterSchema
16
+ */
17
+ export interface NumberFilterSchema {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof NumberFilterSchema
22
+ */
23
+ kind: NumberFilterSchemaKindEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof NumberFilterSchema
28
+ */
29
+ key: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof NumberFilterSchema
34
+ */
35
+ min?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof NumberFilterSchema
40
+ */
41
+ max?: number;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const NumberFilterSchemaKindEnum: {
47
+ readonly Numeric: "numeric";
48
+ };
49
+ export type NumberFilterSchemaKindEnum = typeof NumberFilterSchemaKindEnum[keyof typeof NumberFilterSchemaKindEnum];
50
+ /**
51
+ * Check if a given object implements the NumberFilterSchema interface.
52
+ */
53
+ export declare function instanceOfNumberFilterSchema(value: object): value is NumberFilterSchema;
54
+ export declare function NumberFilterSchemaFromJSON(json: any): NumberFilterSchema;
55
+ export declare function NumberFilterSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberFilterSchema;
56
+ export declare function NumberFilterSchemaToJSON(json: any): NumberFilterSchema;
57
+ export declare function NumberFilterSchemaToJSONTyped(value?: NumberFilterSchema | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NumberFilterSchemaKindEnum = void 0;
17
+ exports.instanceOfNumberFilterSchema = instanceOfNumberFilterSchema;
18
+ exports.NumberFilterSchemaFromJSON = NumberFilterSchemaFromJSON;
19
+ exports.NumberFilterSchemaFromJSONTyped = NumberFilterSchemaFromJSONTyped;
20
+ exports.NumberFilterSchemaToJSON = NumberFilterSchemaToJSON;
21
+ exports.NumberFilterSchemaToJSONTyped = NumberFilterSchemaToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.NumberFilterSchemaKindEnum = {
26
+ Numeric: 'numeric'
27
+ };
28
+ /**
29
+ * Check if a given object implements the NumberFilterSchema interface.
30
+ */
31
+ function instanceOfNumberFilterSchema(value) {
32
+ if (!('kind' in value) || value['kind'] === undefined)
33
+ return false;
34
+ if (!('key' in value) || value['key'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function NumberFilterSchemaFromJSON(json) {
39
+ return NumberFilterSchemaFromJSONTyped(json, false);
40
+ }
41
+ function NumberFilterSchemaFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'kind': json['kind'],
47
+ 'key': json['key'],
48
+ 'min': json['min'] == null ? undefined : json['min'],
49
+ 'max': json['max'] == null ? undefined : json['max'],
50
+ };
51
+ }
52
+ function NumberFilterSchemaToJSON(json) {
53
+ return NumberFilterSchemaToJSONTyped(json, false);
54
+ }
55
+ function NumberFilterSchemaToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'kind': value['kind'],
62
+ 'key': value['key'],
63
+ 'min': value['min'],
64
+ 'max': value['max'],
65
+ };
66
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PanelQualification
16
+ */
17
+ export interface PanelQualification {
18
+ /**
19
+ *
20
+ * @type {Array<any>}
21
+ * @memberof PanelQualification
22
+ */
23
+ allowed_option_ids: Array<any>;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PanelQualification
28
+ */
29
+ question_id: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PanelQualification interface.
33
+ */
34
+ export declare function instanceOfPanelQualification(value: object): value is PanelQualification;
35
+ export declare function PanelQualificationFromJSON(json: any): PanelQualification;
36
+ export declare function PanelQualificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PanelQualification;
37
+ export declare function PanelQualificationToJSON(json: any): PanelQualification;
38
+ export declare function PanelQualificationToJSONTyped(value?: PanelQualification | null, ignoreDiscriminator?: boolean): any;
@@ -13,25 +13,25 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfProjectPanelQualification = instanceOfProjectPanelQualification;
17
- exports.ProjectPanelQualificationFromJSON = ProjectPanelQualificationFromJSON;
18
- exports.ProjectPanelQualificationFromJSONTyped = ProjectPanelQualificationFromJSONTyped;
19
- exports.ProjectPanelQualificationToJSON = ProjectPanelQualificationToJSON;
20
- exports.ProjectPanelQualificationToJSONTyped = ProjectPanelQualificationToJSONTyped;
16
+ exports.instanceOfPanelQualification = instanceOfPanelQualification;
17
+ exports.PanelQualificationFromJSON = PanelQualificationFromJSON;
18
+ exports.PanelQualificationFromJSONTyped = PanelQualificationFromJSONTyped;
19
+ exports.PanelQualificationToJSON = PanelQualificationToJSON;
20
+ exports.PanelQualificationToJSONTyped = PanelQualificationToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the ProjectPanelQualification interface.
22
+ * Check if a given object implements the PanelQualification interface.
23
23
  */
24
- function instanceOfProjectPanelQualification(value) {
24
+ function instanceOfPanelQualification(value) {
25
25
  if (!('allowed_option_ids' in value) || value['allowed_option_ids'] === undefined)
26
26
  return false;
27
27
  if (!('question_id' in value) || value['question_id'] === undefined)
28
28
  return false;
29
29
  return true;
30
30
  }
31
- function ProjectPanelQualificationFromJSON(json) {
32
- return ProjectPanelQualificationFromJSONTyped(json, false);
31
+ function PanelQualificationFromJSON(json) {
32
+ return PanelQualificationFromJSONTyped(json, false);
33
33
  }
34
- function ProjectPanelQualificationFromJSONTyped(json, ignoreDiscriminator) {
34
+ function PanelQualificationFromJSONTyped(json, ignoreDiscriminator) {
35
35
  if (json == null) {
36
36
  return json;
37
37
  }
@@ -40,10 +40,10 @@ function ProjectPanelQualificationFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'question_id': json['question_id'],
41
41
  };
42
42
  }
43
- function ProjectPanelQualificationToJSON(json) {
44
- return ProjectPanelQualificationToJSONTyped(json, false);
43
+ function PanelQualificationToJSON(json) {
44
+ return PanelQualificationToJSONTyped(json, false);
45
45
  }
46
- function ProjectPanelQualificationToJSONTyped(value, ignoreDiscriminator) {
46
+ function PanelQualificationToJSONTyped(value, ignoreDiscriminator) {
47
47
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
48
  if (value == null) {
49
49
  return value;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PanelQualification } from './PanelQualification';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PanelRespondentAttribute
17
+ */
18
+ export interface PanelRespondentAttribute {
19
+ /**
20
+ *
21
+ * @type {Array<PanelQualification>}
22
+ * @memberof PanelRespondentAttribute
23
+ */
24
+ qualifications: Array<PanelQualification>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof PanelRespondentAttribute
29
+ */
30
+ quota: number;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PanelRespondentAttribute
35
+ */
36
+ quota_name: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the PanelRespondentAttribute interface.
40
+ */
41
+ export declare function instanceOfPanelRespondentAttribute(value: object): value is PanelRespondentAttribute;
42
+ export declare function PanelRespondentAttributeFromJSON(json: any): PanelRespondentAttribute;
43
+ export declare function PanelRespondentAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PanelRespondentAttribute;
44
+ export declare function PanelRespondentAttributeToJSON(json: any): PanelRespondentAttribute;
45
+ export declare function PanelRespondentAttributeToJSONTyped(value?: PanelRespondentAttribute | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPanelRespondentAttribute = instanceOfPanelRespondentAttribute;
17
+ exports.PanelRespondentAttributeFromJSON = PanelRespondentAttributeFromJSON;
18
+ exports.PanelRespondentAttributeFromJSONTyped = PanelRespondentAttributeFromJSONTyped;
19
+ exports.PanelRespondentAttributeToJSON = PanelRespondentAttributeToJSON;
20
+ exports.PanelRespondentAttributeToJSONTyped = PanelRespondentAttributeToJSONTyped;
21
+ var PanelQualification_1 = require("./PanelQualification");
22
+ /**
23
+ * Check if a given object implements the PanelRespondentAttribute interface.
24
+ */
25
+ function instanceOfPanelRespondentAttribute(value) {
26
+ if (!('qualifications' in value) || value['qualifications'] === undefined)
27
+ return false;
28
+ if (!('quota' in value) || value['quota'] === undefined)
29
+ return false;
30
+ if (!('quota_name' in value) || value['quota_name'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function PanelRespondentAttributeFromJSON(json) {
35
+ return PanelRespondentAttributeFromJSONTyped(json, false);
36
+ }
37
+ function PanelRespondentAttributeFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'qualifications': (json['qualifications'].map(PanelQualification_1.PanelQualificationFromJSON)),
43
+ 'quota': json['quota'],
44
+ 'quota_name': json['quota_name'],
45
+ };
46
+ }
47
+ function PanelRespondentAttributeToJSON(json) {
48
+ return PanelRespondentAttributeToJSONTyped(json, false);
49
+ }
50
+ function PanelRespondentAttributeToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'qualifications': (value['qualifications'].map(PanelQualification_1.PanelQualificationToJSON)),
57
+ 'quota': value['quota'],
58
+ 'quota_name': value['quota_name'],
59
+ };
60
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PanelRespondentAttribute } from './PanelRespondentAttribute';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PanelSettings
17
+ */
18
+ export interface PanelSettings {
19
+ /**
20
+ *
21
+ * @type {Array<PanelRespondentAttribute>}
22
+ * @memberof PanelSettings
23
+ */
24
+ respondent_attributes: Array<PanelRespondentAttribute>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PanelSettings
29
+ */
30
+ country_code?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PanelSettings
35
+ */
36
+ language_code?: string;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PanelSettings
41
+ */
42
+ length_of_interview?: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof PanelSettings
47
+ */
48
+ incidence_rate?: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof PanelSettings
53
+ */
54
+ compensation?: number;
55
+ }
56
+ /**
57
+ * Check if a given object implements the PanelSettings interface.
58
+ */
59
+ export declare function instanceOfPanelSettings(value: object): value is PanelSettings;
60
+ export declare function PanelSettingsFromJSON(json: any): PanelSettings;
61
+ export declare function PanelSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PanelSettings;
62
+ export declare function PanelSettingsToJSON(json: any): PanelSettings;
63
+ export declare function PanelSettingsToJSONTyped(value?: PanelSettings | null, ignoreDiscriminator?: boolean): any;
@@ -13,29 +13,29 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfProjectPanelSettings = instanceOfProjectPanelSettings;
17
- exports.ProjectPanelSettingsFromJSON = ProjectPanelSettingsFromJSON;
18
- exports.ProjectPanelSettingsFromJSONTyped = ProjectPanelSettingsFromJSONTyped;
19
- exports.ProjectPanelSettingsToJSON = ProjectPanelSettingsToJSON;
20
- exports.ProjectPanelSettingsToJSONTyped = ProjectPanelSettingsToJSONTyped;
21
- var ProjectPanelRespondentAttribute_1 = require("./ProjectPanelRespondentAttribute");
16
+ exports.instanceOfPanelSettings = instanceOfPanelSettings;
17
+ exports.PanelSettingsFromJSON = PanelSettingsFromJSON;
18
+ exports.PanelSettingsFromJSONTyped = PanelSettingsFromJSONTyped;
19
+ exports.PanelSettingsToJSON = PanelSettingsToJSON;
20
+ exports.PanelSettingsToJSONTyped = PanelSettingsToJSONTyped;
21
+ var PanelRespondentAttribute_1 = require("./PanelRespondentAttribute");
22
22
  /**
23
- * Check if a given object implements the ProjectPanelSettings interface.
23
+ * Check if a given object implements the PanelSettings interface.
24
24
  */
25
- function instanceOfProjectPanelSettings(value) {
25
+ function instanceOfPanelSettings(value) {
26
26
  if (!('respondent_attributes' in value) || value['respondent_attributes'] === undefined)
27
27
  return false;
28
28
  return true;
29
29
  }
30
- function ProjectPanelSettingsFromJSON(json) {
31
- return ProjectPanelSettingsFromJSONTyped(json, false);
30
+ function PanelSettingsFromJSON(json) {
31
+ return PanelSettingsFromJSONTyped(json, false);
32
32
  }
33
- function ProjectPanelSettingsFromJSONTyped(json, ignoreDiscriminator) {
33
+ function PanelSettingsFromJSONTyped(json, ignoreDiscriminator) {
34
34
  if (json == null) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'respondent_attributes': (json['respondent_attributes'].map(ProjectPanelRespondentAttribute_1.ProjectPanelRespondentAttributeFromJSON)),
38
+ 'respondent_attributes': (json['respondent_attributes'].map(PanelRespondentAttribute_1.PanelRespondentAttributeFromJSON)),
39
39
  'country_code': json['country_code'] == null ? undefined : json['country_code'],
40
40
  'language_code': json['language_code'] == null ? undefined : json['language_code'],
41
41
  'length_of_interview': json['length_of_interview'] == null ? undefined : json['length_of_interview'],
@@ -43,16 +43,16 @@ function ProjectPanelSettingsFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'compensation': json['compensation'] == null ? undefined : json['compensation'],
44
44
  };
45
45
  }
46
- function ProjectPanelSettingsToJSON(json) {
47
- return ProjectPanelSettingsToJSONTyped(json, false);
46
+ function PanelSettingsToJSON(json) {
47
+ return PanelSettingsToJSONTyped(json, false);
48
48
  }
49
- function ProjectPanelSettingsToJSONTyped(value, ignoreDiscriminator) {
49
+ function PanelSettingsToJSONTyped(value, ignoreDiscriminator) {
50
50
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
51
  if (value == null) {
52
52
  return value;
53
53
  }
54
54
  return {
55
- 'respondent_attributes': (value['respondent_attributes'].map(ProjectPanelRespondentAttribute_1.ProjectPanelRespondentAttributeToJSON)),
55
+ 'respondent_attributes': (value['respondent_attributes'].map(PanelRespondentAttribute_1.PanelRespondentAttributeToJSON)),
56
56
  'country_code': value['country_code'],
57
57
  'language_code': value['language_code'],
58
58
  'length_of_interview': value['length_of_interview'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Call } from './Call';
13
13
  import type { Org } from './Org';
14
+ import type { ParticipantAttribute } from './ParticipantAttribute';
14
15
  import type { InviteResponse } from './InviteResponse';
15
16
  import type { ParticipantInvite } from './ParticipantInvite';
16
17
  /**
@@ -91,6 +92,12 @@ export interface Participant {
91
92
  * @memberof Participant
92
93
  */
93
94
  calls?: Array<Call>;
95
+ /**
96
+ *
97
+ * @type {Array<ParticipantAttribute>}
98
+ * @memberof Participant
99
+ */
100
+ participantAttributes?: Array<ParticipantAttribute>;
94
101
  }
95
102
  /**
96
103
  * Check if a given object implements the Participant interface.
@@ -20,6 +20,7 @@ exports.ParticipantToJSON = ParticipantToJSON;
20
20
  exports.ParticipantToJSONTyped = ParticipantToJSONTyped;
21
21
  var Call_1 = require("./Call");
22
22
  var Org_1 = require("./Org");
23
+ var ParticipantAttribute_1 = require("./ParticipantAttribute");
23
24
  var InviteResponse_1 = require("./InviteResponse");
24
25
  var ParticipantInvite_1 = require("./ParticipantInvite");
25
26
  /**
@@ -56,6 +57,7 @@ function ParticipantFromJSONTyped(json, ignoreDiscriminator) {
56
57
  'participantInvites': json['participantInvites'] == null ? undefined : (json['participantInvites'].map(ParticipantInvite_1.ParticipantInviteFromJSON)),
57
58
  'inviteResponses': json['inviteResponses'] == null ? undefined : (json['inviteResponses'].map(InviteResponse_1.InviteResponseFromJSON)),
58
59
  'calls': json['calls'] == null ? undefined : (json['calls'].map(Call_1.CallFromJSON)),
60
+ 'participantAttributes': json['participantAttributes'] == null ? undefined : (json['participantAttributes'].map(ParticipantAttribute_1.ParticipantAttributeFromJSON)),
59
61
  };
60
62
  }
61
63
  function ParticipantToJSON(json) {
@@ -79,5 +81,6 @@ function ParticipantToJSONTyped(value, ignoreDiscriminator) {
79
81
  'participantInvites': value['participantInvites'] == null ? undefined : (value['participantInvites'].map(ParticipantInvite_1.ParticipantInviteToJSON)),
80
82
  'inviteResponses': value['inviteResponses'] == null ? undefined : (value['inviteResponses'].map(InviteResponse_1.InviteResponseToJSON)),
81
83
  'calls': value['calls'] == null ? undefined : (value['calls'].map(Call_1.CallToJSON)),
84
+ 'participantAttributes': value['participantAttributes'] == null ? undefined : (value['participantAttributes'].map(ParticipantAttribute_1.ParticipantAttributeToJSON)),
82
85
  };
83
86
  }
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AttributeSource } from './AttributeSource';
13
+ import type { Participant } from './Participant';
14
+ import type { Attribute } from './Attribute';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ParticipantAttribute
19
+ */
20
+ export interface ParticipantAttribute {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ParticipantAttribute
25
+ */
26
+ participantId: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof ParticipantAttribute
31
+ */
32
+ attributeKindKey: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof ParticipantAttribute
37
+ */
38
+ attributeValue: string;
39
+ /**
40
+ *
41
+ * @type {AttributeSource}
42
+ * @memberof ParticipantAttribute
43
+ */
44
+ source: AttributeSource;
45
+ /**
46
+ *
47
+ * @type {Date}
48
+ * @memberof ParticipantAttribute
49
+ */
50
+ createdAt: Date;
51
+ /**
52
+ *
53
+ * @type {Date}
54
+ * @memberof ParticipantAttribute
55
+ */
56
+ updatedAt: Date;
57
+ /**
58
+ *
59
+ * @type {Participant}
60
+ * @memberof ParticipantAttribute
61
+ */
62
+ participant?: Participant;
63
+ /**
64
+ *
65
+ * @type {Attribute}
66
+ * @memberof ParticipantAttribute
67
+ */
68
+ attribute?: Attribute;
69
+ }
70
+ /**
71
+ * Check if a given object implements the ParticipantAttribute interface.
72
+ */
73
+ export declare function instanceOfParticipantAttribute(value: object): value is ParticipantAttribute;
74
+ export declare function ParticipantAttributeFromJSON(json: any): ParticipantAttribute;
75
+ export declare function ParticipantAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantAttribute;
76
+ export declare function ParticipantAttributeToJSON(json: any): ParticipantAttribute;
77
+ export declare function ParticipantAttributeToJSONTyped(value?: ParticipantAttribute | null, ignoreDiscriminator?: boolean): any;