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.
Files changed (156) hide show
  1. package/.openapi-generator/FILES +24 -22
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +236 -249
  4. package/dist/apis/DefaultApi.js +878 -803
  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/CallSummary.d.ts +46 -0
  10. package/dist/models/CallSummary.js +61 -0
  11. package/dist/models/CodeInvite.d.ts +10 -3
  12. package/dist/models/CodeInvite.js +8 -3
  13. package/dist/models/CodeInviteConfig.d.ts +30 -0
  14. package/dist/models/CodeInviteConfig.js +59 -0
  15. package/dist/models/CodeInviteConfigContacts.d.ts +75 -0
  16. package/dist/models/CodeInviteConfigContacts.js +72 -0
  17. package/dist/models/CodeInviteConfigKeplarPanel.d.ts +82 -0
  18. package/dist/models/CodeInviteConfigKeplarPanel.js +77 -0
  19. package/dist/models/CreateCodeInviteResponseRequest.d.ts +40 -0
  20. package/dist/models/CreateCodeInviteResponseRequest.js +53 -0
  21. package/dist/models/GetCodeInvite200Response.d.ts +83 -0
  22. package/dist/models/{ApiInviteCodeCodeGet200Response.js → GetCodeInvite200Response.js} +21 -16
  23. package/dist/models/GetCodeInviteResponseRedirect200Response.d.ts +32 -0
  24. package/dist/models/GetCodeInviteResponseRedirect200Response.js +51 -0
  25. package/dist/models/InviteConfig.d.ts +12 -70
  26. package/dist/models/InviteConfig.js +23 -37
  27. package/dist/models/InviteConfigContacts.d.ts +75 -0
  28. package/dist/models/InviteConfigContacts.js +72 -0
  29. package/dist/models/InviteConfigKeplarPanel.d.ts +95 -0
  30. package/dist/models/InviteConfigKeplarPanel.js +82 -0
  31. package/dist/models/InviteConfigPublic.d.ts +81 -0
  32. package/dist/models/InviteConfigPublic.js +74 -0
  33. package/dist/models/InviteResponseData.d.ts +3 -3
  34. package/dist/models/InviteResponseData.js +3 -3
  35. package/dist/models/InviteResponseWithCallSummary.d.ts +118 -0
  36. package/dist/models/InviteResponseWithCallSummary.js +97 -0
  37. package/dist/models/JoinCodeInvite302Response.d.ts +83 -0
  38. package/dist/models/{ApiInviteCodeCodeStartGet302Response.js → JoinCodeInvite302Response.js} +21 -16
  39. package/dist/models/JoinCodeInvite302ResponseSettings.d.ts +46 -0
  40. package/dist/models/JoinCodeInvite302ResponseSettings.js +57 -0
  41. package/dist/models/PanelQualification.d.ts +38 -0
  42. package/dist/models/{ProjectPanelQualification.js → PanelQualification.js} +13 -13
  43. package/dist/models/PanelRespondentAttribute.d.ts +45 -0
  44. package/dist/models/PanelRespondentAttribute.js +60 -0
  45. package/dist/models/PanelSettings.d.ts +63 -0
  46. package/dist/models/{ProjectPanelSettings.js → PanelSettings.js} +16 -16
  47. package/dist/models/ProjectAudience.d.ts +3 -3
  48. package/dist/models/ProjectAudience.js +3 -3
  49. package/dist/models/ProjectConfig.d.ts +3 -3
  50. package/dist/models/ProjectConfig.js +3 -3
  51. package/dist/models/ResponseSubmitScreenerEvent.d.ts +3 -3
  52. package/dist/models/ResponseSubmitScreenerEvent.js +3 -3
  53. package/dist/models/ScreenerQuestionChooseOne.d.ts +57 -0
  54. package/dist/models/{ProjectScreenerQuestionChooseOne.js → ScreenerQuestionChooseOne.js} +15 -15
  55. package/dist/models/ScreenerQuestionChooseOnePublic.d.ts +51 -0
  56. package/dist/models/ScreenerQuestionChooseOnePublic.js +66 -0
  57. package/dist/models/ScreenerQuestionResponse.d.ts +44 -0
  58. package/dist/models/{ProjectScreenerQuestionResponse.js → ScreenerQuestionResponse.js} +13 -13
  59. package/dist/models/StartPhoneCallForCodeInviteResponseRequest.d.ts +32 -0
  60. package/dist/models/StartPhoneCallForCodeInviteResponseRequest.js +51 -0
  61. package/dist/models/UpdateCallForCodeInviteResponseRequest.d.ts +39 -0
  62. package/dist/models/UpdateCallForCodeInviteResponseRequest.js +56 -0
  63. package/dist/models/UpdateCallForCodeInviteResponseRequestCall.d.ts +39 -0
  64. package/dist/models/UpdateCallForCodeInviteResponseRequestCall.js +56 -0
  65. package/dist/models/UpdateCodeInviteResponse404Response.d.ts +32 -0
  66. package/dist/models/UpdateCodeInviteResponse404Response.js +51 -0
  67. package/dist/models/index.d.ts +24 -22
  68. package/dist/models/index.js +24 -22
  69. package/package.json +1 -1
  70. package/src/apis/DefaultApi.ts +1094 -1026
  71. package/src/models/ApiInvitesIdParticipantInvitesGet200Response.ts +101 -0
  72. package/src/models/ApiInvitesIdResponsesGet200Response.ts +10 -10
  73. package/src/models/CallSummary.ts +101 -0
  74. package/src/models/CodeInvite.ts +27 -11
  75. package/src/models/CodeInviteConfig.ts +83 -0
  76. package/src/models/CodeInviteConfigContacts.ts +125 -0
  77. package/src/models/CodeInviteConfigKeplarPanel.ts +142 -0
  78. package/src/models/CreateCodeInviteResponseRequest.ts +90 -0
  79. package/src/models/{ApiInviteCodeCodeGet200Response.ts → GetCodeInvite200Response.ts} +45 -29
  80. package/src/models/GetCodeInviteResponseRedirect200Response.ts +66 -0
  81. package/src/models/InviteConfig.ts +42 -113
  82. package/src/models/InviteConfigContacts.ts +125 -0
  83. package/src/models/InviteConfigKeplarPanel.ts +165 -0
  84. package/src/models/InviteConfigPublic.ts +133 -0
  85. package/src/models/InviteResponseData.ts +10 -10
  86. package/src/models/InviteResponseWithCallSummary.ts +235 -0
  87. package/src/models/{ApiInviteCodeCodeStartGet302Response.ts → JoinCodeInvite302Response.ts} +45 -29
  88. package/src/models/JoinCodeInvite302ResponseSettings.ts +97 -0
  89. package/src/models/{ProjectPanelQualification.ts → PanelQualification.ts} +12 -12
  90. package/src/models/PanelRespondentAttribute.ts +92 -0
  91. package/src/models/{ProjectPanelSettings.ts → PanelSettings.ts} +26 -26
  92. package/src/models/ProjectAudience.ts +10 -10
  93. package/src/models/ProjectConfig.ts +11 -11
  94. package/src/models/ResponseSubmitScreenerEvent.ts +10 -10
  95. package/src/models/{ProjectScreenerQuestionChooseOne.ts → ScreenerQuestionChooseOne.ts} +17 -17
  96. package/src/models/ScreenerQuestionChooseOnePublic.ts +94 -0
  97. package/src/models/{ProjectScreenerQuestionResponse.ts → ScreenerQuestionResponse.ts} +13 -13
  98. package/src/models/StartPhoneCallForCodeInviteResponseRequest.ts +66 -0
  99. package/src/models/UpdateCallForCodeInviteResponseRequest.ts +83 -0
  100. package/src/models/UpdateCallForCodeInviteResponseRequestCall.ts +85 -0
  101. package/src/models/UpdateCodeInviteResponse404Response.ts +66 -0
  102. package/src/models/index.ts +24 -22
  103. package/dist/models/ApiInviteCodeCodeGet200Response.d.ts +0 -76
  104. package/dist/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.d.ts +0 -32
  105. package/dist/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.js +0 -51
  106. package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.d.ts +0 -32
  107. package/dist/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.js +0 -51
  108. package/dist/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.d.ts +0 -32
  109. package/dist/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.js +0 -51
  110. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.d.ts +0 -39
  111. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.js +0 -56
  112. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.d.ts +0 -39
  113. package/dist/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.js +0 -56
  114. package/dist/models/ApiInviteCodeCodeStartGet302Response.d.ts +0 -76
  115. package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.d.ts +0 -64
  116. package/dist/models/ApiInviteCodeCodeStartGet302ResponseSettings.js +0 -63
  117. package/dist/models/GetParticipantInvitesResponse.d.ts +0 -39
  118. package/dist/models/GetParticipantInvitesResponse.js +0 -56
  119. package/dist/models/ProjectPanelQualification.d.ts +0 -38
  120. package/dist/models/ProjectPanelRespondentAttribute.d.ts +0 -45
  121. package/dist/models/ProjectPanelRespondentAttribute.js +0 -60
  122. package/dist/models/ProjectPanelSettings.d.ts +0 -63
  123. package/dist/models/ProjectScreenerQuestionChooseOne.d.ts +0 -57
  124. package/dist/models/ProjectScreenerQuestionChooseOnePublic.d.ts +0 -51
  125. package/dist/models/ProjectScreenerQuestionChooseOnePublic.js +0 -66
  126. package/dist/models/ProjectScreenerQuestionResponse.d.ts +0 -44
  127. package/dist/models/RepDataConfigLegacy.d.ts +0 -59
  128. package/dist/models/RepDataConfigLegacy.js +0 -62
  129. package/dist/models/RepDataProjectLegacy.d.ts +0 -32
  130. package/dist/models/RepDataProjectLegacy.js +0 -51
  131. package/dist/models/RepDataStudyLegacy.d.ts +0 -93
  132. package/dist/models/RepDataStudyLegacy.js +0 -92
  133. package/dist/models/RepDataStudyLegacyQualificationsInner.d.ts +0 -38
  134. package/dist/models/RepDataStudyLegacyQualificationsInner.js +0 -55
  135. package/dist/models/RepDataSurveyLegacy.d.ts +0 -46
  136. package/dist/models/RepDataSurveyLegacy.js +0 -59
  137. package/dist/models/RepDataSurveyLegacyProject.d.ts +0 -32
  138. package/dist/models/RepDataSurveyLegacyProject.js +0 -51
  139. package/dist/models/RepDataSurveyStatusLegacy.d.ts +0 -26
  140. package/dist/models/RepDataSurveyStatusLegacy.js +0 -52
  141. package/src/models/ApiInviteCodeCodeResponsesResponseIdPut404Response.ts +0 -66
  142. package/src/models/ApiInviteCodeCodeResponsesResponseIdRedirectGet200Response.ts +0 -66
  143. package/src/models/ApiInviteCodeCodeResponsesResponseIdStartPhoneCallPostRequest.ts +0 -66
  144. package/src/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequest.ts +0 -83
  145. package/src/models/ApiInviteCodeCodeResponsesResponseIdUpdateCallPutRequestCall.ts +0 -85
  146. package/src/models/ApiInviteCodeCodeStartGet302ResponseSettings.ts +0 -121
  147. package/src/models/GetParticipantInvitesResponse.ts +0 -83
  148. package/src/models/ProjectPanelRespondentAttribute.ts +0 -92
  149. package/src/models/ProjectScreenerQuestionChooseOnePublic.ts +0 -94
  150. package/src/models/RepDataConfigLegacy.ts +0 -120
  151. package/src/models/RepDataProjectLegacy.ts +0 -66
  152. package/src/models/RepDataStudyLegacy.ts +0 -164
  153. package/src/models/RepDataStudyLegacyQualificationsInner.ts +0 -75
  154. package/src/models/RepDataSurveyLegacy.ts +0 -100
  155. package/src/models/RepDataSurveyLegacyProject.ts +0 -66
  156. package/src/models/RepDataSurveyStatusLegacy.ts +0 -54
@@ -0,0 +1,51 @@
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 { ParticipantInvite } from './ParticipantInvite';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiInvitesIdParticipantInvitesGet200Response
17
+ */
18
+ export interface ApiInvitesIdParticipantInvitesGet200Response {
19
+ /**
20
+ *
21
+ * @type {Array<ParticipantInvite>}
22
+ * @memberof ApiInvitesIdParticipantInvitesGet200Response
23
+ */
24
+ items: Array<ParticipantInvite>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ApiInvitesIdParticipantInvitesGet200Response
29
+ */
30
+ total: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ApiInvitesIdParticipantInvitesGet200Response
35
+ */
36
+ page: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiInvitesIdParticipantInvitesGet200Response
41
+ */
42
+ limit: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiInvitesIdParticipantInvitesGet200Response interface.
46
+ */
47
+ export declare function instanceOfApiInvitesIdParticipantInvitesGet200Response(value: object): value is ApiInvitesIdParticipantInvitesGet200Response;
48
+ export declare function ApiInvitesIdParticipantInvitesGet200ResponseFromJSON(json: any): ApiInvitesIdParticipantInvitesGet200Response;
49
+ export declare function ApiInvitesIdParticipantInvitesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiInvitesIdParticipantInvitesGet200Response;
50
+ export declare function ApiInvitesIdParticipantInvitesGet200ResponseToJSON(json: any): ApiInvitesIdParticipantInvitesGet200Response;
51
+ export declare function ApiInvitesIdParticipantInvitesGet200ResponseToJSONTyped(value?: ApiInvitesIdParticipantInvitesGet200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfApiInvitesIdParticipantInvitesGet200Response = instanceOfApiInvitesIdParticipantInvitesGet200Response;
17
+ exports.ApiInvitesIdParticipantInvitesGet200ResponseFromJSON = ApiInvitesIdParticipantInvitesGet200ResponseFromJSON;
18
+ exports.ApiInvitesIdParticipantInvitesGet200ResponseFromJSONTyped = ApiInvitesIdParticipantInvitesGet200ResponseFromJSONTyped;
19
+ exports.ApiInvitesIdParticipantInvitesGet200ResponseToJSON = ApiInvitesIdParticipantInvitesGet200ResponseToJSON;
20
+ exports.ApiInvitesIdParticipantInvitesGet200ResponseToJSONTyped = ApiInvitesIdParticipantInvitesGet200ResponseToJSONTyped;
21
+ var ParticipantInvite_1 = require("./ParticipantInvite");
22
+ /**
23
+ * Check if a given object implements the ApiInvitesIdParticipantInvitesGet200Response interface.
24
+ */
25
+ function instanceOfApiInvitesIdParticipantInvitesGet200Response(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ if (!('total' in value) || value['total'] === undefined)
29
+ return false;
30
+ if (!('page' in value) || value['page'] === undefined)
31
+ return false;
32
+ if (!('limit' in value) || value['limit'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ApiInvitesIdParticipantInvitesGet200ResponseFromJSON(json) {
37
+ return ApiInvitesIdParticipantInvitesGet200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ApiInvitesIdParticipantInvitesGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'items': (json['items'].map(ParticipantInvite_1.ParticipantInviteFromJSON)),
45
+ 'total': json['total'],
46
+ 'page': json['page'],
47
+ 'limit': json['limit'],
48
+ };
49
+ }
50
+ function ApiInvitesIdParticipantInvitesGet200ResponseToJSON(json) {
51
+ return ApiInvitesIdParticipantInvitesGet200ResponseToJSONTyped(json, false);
52
+ }
53
+ function ApiInvitesIdParticipantInvitesGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(ParticipantInvite_1.ParticipantInviteToJSON)),
60
+ 'total': value['total'],
61
+ 'page': value['page'],
62
+ 'limit': value['limit'],
63
+ };
64
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { InviteResponse } from './InviteResponse';
12
+ import type { InviteResponseWithCallSummary } from './InviteResponseWithCallSummary';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { InviteResponse } from './InviteResponse';
18
18
  export interface ApiInvitesIdResponsesGet200Response {
19
19
  /**
20
20
  *
21
- * @type {Array<InviteResponse>}
21
+ * @type {Array<InviteResponseWithCallSummary>}
22
22
  * @memberof ApiInvitesIdResponsesGet200Response
23
23
  */
24
- items: Array<InviteResponse>;
24
+ items: Array<InviteResponseWithCallSummary>;
25
25
  /**
26
26
  *
27
27
  * @type {number}
@@ -18,7 +18,7 @@ exports.ApiInvitesIdResponsesGet200ResponseFromJSON = ApiInvitesIdResponsesGet20
18
18
  exports.ApiInvitesIdResponsesGet200ResponseFromJSONTyped = ApiInvitesIdResponsesGet200ResponseFromJSONTyped;
19
19
  exports.ApiInvitesIdResponsesGet200ResponseToJSON = ApiInvitesIdResponsesGet200ResponseToJSON;
20
20
  exports.ApiInvitesIdResponsesGet200ResponseToJSONTyped = ApiInvitesIdResponsesGet200ResponseToJSONTyped;
21
- var InviteResponse_1 = require("./InviteResponse");
21
+ var InviteResponseWithCallSummary_1 = require("./InviteResponseWithCallSummary");
22
22
  /**
23
23
  * Check if a given object implements the ApiInvitesIdResponsesGet200Response interface.
24
24
  */
@@ -41,7 +41,7 @@ function ApiInvitesIdResponsesGet200ResponseFromJSONTyped(json, ignoreDiscrimina
41
41
  return json;
42
42
  }
43
43
  return {
44
- 'items': (json['items'].map(InviteResponse_1.InviteResponseFromJSON)),
44
+ 'items': (json['items'].map(InviteResponseWithCallSummary_1.InviteResponseWithCallSummaryFromJSON)),
45
45
  'total': json['total'],
46
46
  'page': json['page'],
47
47
  'limit': json['limit'],
@@ -56,7 +56,7 @@ function ApiInvitesIdResponsesGet200ResponseToJSONTyped(value, ignoreDiscriminat
56
56
  return value;
57
57
  }
58
58
  return {
59
- 'items': (value['items'].map(InviteResponse_1.InviteResponseToJSON)),
59
+ 'items': (value['items'].map(InviteResponseWithCallSummary_1.InviteResponseWithCallSummaryToJSON)),
60
60
  'total': value['total'],
61
61
  'page': value['page'],
62
62
  'limit': value['limit'],
@@ -0,0 +1,46 @@
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 { CallMetadata } from './CallMetadata';
13
+ import type { CallStatus } from './CallStatus';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CallSummary
18
+ */
19
+ export interface CallSummary {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof CallSummary
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {CallStatus}
29
+ * @memberof CallSummary
30
+ */
31
+ status: CallStatus | null;
32
+ /**
33
+ *
34
+ * @type {CallMetadata}
35
+ * @memberof CallSummary
36
+ */
37
+ metadata: CallMetadata | null;
38
+ }
39
+ /**
40
+ * Check if a given object implements the CallSummary interface.
41
+ */
42
+ export declare function instanceOfCallSummary(value: object): value is CallSummary;
43
+ export declare function CallSummaryFromJSON(json: any): CallSummary;
44
+ export declare function CallSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallSummary;
45
+ export declare function CallSummaryToJSON(json: any): CallSummary;
46
+ export declare function CallSummaryToJSONTyped(value?: CallSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.instanceOfCallSummary = instanceOfCallSummary;
17
+ exports.CallSummaryFromJSON = CallSummaryFromJSON;
18
+ exports.CallSummaryFromJSONTyped = CallSummaryFromJSONTyped;
19
+ exports.CallSummaryToJSON = CallSummaryToJSON;
20
+ exports.CallSummaryToJSONTyped = CallSummaryToJSONTyped;
21
+ var CallMetadata_1 = require("./CallMetadata");
22
+ var CallStatus_1 = require("./CallStatus");
23
+ /**
24
+ * Check if a given object implements the CallSummary interface.
25
+ */
26
+ function instanceOfCallSummary(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('metadata' in value) || value['metadata'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function CallSummaryFromJSON(json) {
36
+ return CallSummaryFromJSONTyped(json, false);
37
+ }
38
+ function CallSummaryFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'status': (0, CallStatus_1.CallStatusFromJSON)(json['status']),
45
+ 'metadata': (0, CallMetadata_1.CallMetadataFromJSON)(json['metadata']),
46
+ };
47
+ }
48
+ function CallSummaryToJSON(json) {
49
+ return CallSummaryToJSONTyped(json, false);
50
+ }
51
+ function CallSummaryToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'status': (0, CallStatus_1.CallStatusToJSON)(value['status']),
59
+ 'metadata': (0, CallMetadata_1.CallMetadataToJSON)(value['metadata']),
60
+ };
61
+ }
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ApiInviteCodeCodeStartGet302ResponseSettings } from './ApiInviteCodeCodeStartGet302ResponseSettings';
13
12
  import type { InviteStatus } from './InviteStatus';
13
+ import type { CodeInviteConfig } from './CodeInviteConfig';
14
+ import type { JoinCodeInvite302ResponseSettings } from './JoinCodeInvite302ResponseSettings';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -61,10 +62,16 @@ export interface CodeInvite {
61
62
  projectId: string;
62
63
  /**
63
64
  *
64
- * @type {ApiInviteCodeCodeStartGet302ResponseSettings}
65
+ * @type {CodeInviteConfig}
65
66
  * @memberof CodeInvite
66
67
  */
67
- settings: ApiInviteCodeCodeStartGet302ResponseSettings;
68
+ config: CodeInviteConfig;
69
+ /**
70
+ *
71
+ * @type {JoinCodeInvite302ResponseSettings}
72
+ * @memberof CodeInvite
73
+ */
74
+ settings: JoinCodeInvite302ResponseSettings;
68
75
  }
69
76
  /**
70
77
  * Check if a given object implements the CodeInvite interface.
@@ -18,8 +18,9 @@ exports.CodeInviteFromJSON = CodeInviteFromJSON;
18
18
  exports.CodeInviteFromJSONTyped = CodeInviteFromJSONTyped;
19
19
  exports.CodeInviteToJSON = CodeInviteToJSON;
20
20
  exports.CodeInviteToJSONTyped = CodeInviteToJSONTyped;
21
- var ApiInviteCodeCodeStartGet302ResponseSettings_1 = require("./ApiInviteCodeCodeStartGet302ResponseSettings");
22
21
  var InviteStatus_1 = require("./InviteStatus");
22
+ var CodeInviteConfig_1 = require("./CodeInviteConfig");
23
+ var JoinCodeInvite302ResponseSettings_1 = require("./JoinCodeInvite302ResponseSettings");
23
24
  /**
24
25
  * Check if a given object implements the CodeInvite interface.
25
26
  */
@@ -34,6 +35,8 @@ function instanceOfCodeInvite(value) {
34
35
  return false;
35
36
  if (!('projectId' in value) || value['projectId'] === undefined)
36
37
  return false;
38
+ if (!('config' in value) || value['config'] === undefined)
39
+ return false;
37
40
  if (!('settings' in value) || value['settings'] === undefined)
38
41
  return false;
39
42
  return true;
@@ -53,7 +56,8 @@ function CodeInviteFromJSONTyped(json, ignoreDiscriminator) {
53
56
  'status': (0, InviteStatus_1.InviteStatusFromJSON)(json['status']),
54
57
  'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
55
58
  'projectId': json['projectId'],
56
- 'settings': (0, ApiInviteCodeCodeStartGet302ResponseSettings_1.ApiInviteCodeCodeStartGet302ResponseSettingsFromJSON)(json['settings']),
59
+ 'config': (0, CodeInviteConfig_1.CodeInviteConfigFromJSON)(json['config']),
60
+ 'settings': (0, JoinCodeInvite302ResponseSettings_1.JoinCodeInvite302ResponseSettingsFromJSON)(json['settings']),
57
61
  };
58
62
  }
59
63
  function CodeInviteToJSON(json) {
@@ -73,6 +77,7 @@ function CodeInviteToJSONTyped(value, ignoreDiscriminator) {
73
77
  'status': (0, InviteStatus_1.InviteStatusToJSON)(value['status']),
74
78
  'expiresAt': value['expiresAt'] === null ? null : ((_a = value['expiresAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
75
79
  'projectId': value['projectId'],
76
- 'settings': (0, ApiInviteCodeCodeStartGet302ResponseSettings_1.ApiInviteCodeCodeStartGet302ResponseSettingsToJSON)(value['settings']),
80
+ 'config': (0, CodeInviteConfig_1.CodeInviteConfigToJSON)(value['config']),
81
+ 'settings': (0, JoinCodeInvite302ResponseSettings_1.JoinCodeInvite302ResponseSettingsToJSON)(value['settings']),
77
82
  };
78
83
  }
@@ -0,0 +1,30 @@
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 { CodeInviteConfigContacts } from './CodeInviteConfigContacts';
13
+ import type { CodeInviteConfigKeplarPanel } from './CodeInviteConfigKeplarPanel';
14
+ import type { InviteConfigPublic } from './InviteConfigPublic';
15
+ /**
16
+ * @type CodeInviteConfig
17
+ *
18
+ * @export
19
+ */
20
+ export type CodeInviteConfig = {
21
+ kind: 'CONTACTS';
22
+ } & CodeInviteConfigContacts | {
23
+ kind: 'KEPLAR_PANEL';
24
+ } & CodeInviteConfigKeplarPanel | {
25
+ kind: 'PUBLIC';
26
+ } & InviteConfigPublic;
27
+ export declare function CodeInviteConfigFromJSON(json: any): CodeInviteConfig;
28
+ export declare function CodeInviteConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeInviteConfig;
29
+ export declare function CodeInviteConfigToJSON(json: any): any;
30
+ export declare function CodeInviteConfigToJSONTyped(value?: CodeInviteConfig | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.CodeInviteConfigFromJSON = CodeInviteConfigFromJSON;
17
+ exports.CodeInviteConfigFromJSONTyped = CodeInviteConfigFromJSONTyped;
18
+ exports.CodeInviteConfigToJSON = CodeInviteConfigToJSON;
19
+ exports.CodeInviteConfigToJSONTyped = CodeInviteConfigToJSONTyped;
20
+ var CodeInviteConfigContacts_1 = require("./CodeInviteConfigContacts");
21
+ var CodeInviteConfigKeplarPanel_1 = require("./CodeInviteConfigKeplarPanel");
22
+ var InviteConfigPublic_1 = require("./InviteConfigPublic");
23
+ function CodeInviteConfigFromJSON(json) {
24
+ return CodeInviteConfigFromJSONTyped(json, false);
25
+ }
26
+ function CodeInviteConfigFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ switch (json['kind']) {
31
+ case 'CONTACTS':
32
+ return Object.assign({}, (0, CodeInviteConfigContacts_1.CodeInviteConfigContactsFromJSONTyped)(json, true), { kind: 'CONTACTS' });
33
+ case 'KEPLAR_PANEL':
34
+ return Object.assign({}, (0, CodeInviteConfigKeplarPanel_1.CodeInviteConfigKeplarPanelFromJSONTyped)(json, true), { kind: 'KEPLAR_PANEL' });
35
+ case 'PUBLIC':
36
+ return Object.assign({}, (0, InviteConfigPublic_1.InviteConfigPublicFromJSONTyped)(json, true), { kind: 'PUBLIC' });
37
+ default:
38
+ return json;
39
+ }
40
+ }
41
+ function CodeInviteConfigToJSON(json) {
42
+ return CodeInviteConfigToJSONTyped(json, false);
43
+ }
44
+ function CodeInviteConfigToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ switch (value['kind']) {
50
+ case 'CONTACTS':
51
+ return Object.assign({}, (0, CodeInviteConfigContacts_1.CodeInviteConfigContactsToJSON)(value), { kind: 'CONTACTS' });
52
+ case 'KEPLAR_PANEL':
53
+ return Object.assign({}, (0, CodeInviteConfigKeplarPanel_1.CodeInviteConfigKeplarPanelToJSON)(value), { kind: 'KEPLAR_PANEL' });
54
+ case 'PUBLIC':
55
+ return Object.assign({}, (0, InviteConfigPublic_1.InviteConfigPublicToJSON)(value), { kind: 'PUBLIC' });
56
+ default:
57
+ return value;
58
+ }
59
+ }
@@ -0,0 +1,75 @@
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 CodeInviteConfigContacts
16
+ */
17
+ export interface CodeInviteConfigContacts {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CodeInviteConfigContacts
22
+ */
23
+ kind: CodeInviteConfigContactsKindEnum;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof CodeInviteConfigContacts
28
+ */
29
+ isTest?: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CodeInviteConfigContacts
34
+ */
35
+ showCallMetadata?: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CodeInviteConfigContacts
40
+ */
41
+ title: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CodeInviteConfigContacts
46
+ */
47
+ description?: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CodeInviteConfigContacts
52
+ */
53
+ maxResponses?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CodeInviteConfigContacts
58
+ */
59
+ maxResponsesPerParticipant?: number;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const CodeInviteConfigContactsKindEnum: {
65
+ readonly Contacts: "CONTACTS";
66
+ };
67
+ export type CodeInviteConfigContactsKindEnum = typeof CodeInviteConfigContactsKindEnum[keyof typeof CodeInviteConfigContactsKindEnum];
68
+ /**
69
+ * Check if a given object implements the CodeInviteConfigContacts interface.
70
+ */
71
+ export declare function instanceOfCodeInviteConfigContacts(value: object): value is CodeInviteConfigContacts;
72
+ export declare function CodeInviteConfigContactsFromJSON(json: any): CodeInviteConfigContacts;
73
+ export declare function CodeInviteConfigContactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeInviteConfigContacts;
74
+ export declare function CodeInviteConfigContactsToJSON(json: any): CodeInviteConfigContacts;
75
+ export declare function CodeInviteConfigContactsToJSONTyped(value?: CodeInviteConfigContacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.CodeInviteConfigContactsKindEnum = void 0;
17
+ exports.instanceOfCodeInviteConfigContacts = instanceOfCodeInviteConfigContacts;
18
+ exports.CodeInviteConfigContactsFromJSON = CodeInviteConfigContactsFromJSON;
19
+ exports.CodeInviteConfigContactsFromJSONTyped = CodeInviteConfigContactsFromJSONTyped;
20
+ exports.CodeInviteConfigContactsToJSON = CodeInviteConfigContactsToJSON;
21
+ exports.CodeInviteConfigContactsToJSONTyped = CodeInviteConfigContactsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CodeInviteConfigContactsKindEnum = {
26
+ Contacts: 'CONTACTS'
27
+ };
28
+ /**
29
+ * Check if a given object implements the CodeInviteConfigContacts interface.
30
+ */
31
+ function instanceOfCodeInviteConfigContacts(value) {
32
+ if (!('kind' in value) || value['kind'] === undefined)
33
+ return false;
34
+ if (!('title' in value) || value['title'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function CodeInviteConfigContactsFromJSON(json) {
39
+ return CodeInviteConfigContactsFromJSONTyped(json, false);
40
+ }
41
+ function CodeInviteConfigContactsFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'kind': json['kind'],
47
+ 'isTest': json['isTest'] == null ? undefined : json['isTest'],
48
+ 'showCallMetadata': json['showCallMetadata'] == null ? undefined : json['showCallMetadata'],
49
+ 'title': json['title'],
50
+ 'description': json['description'] == null ? undefined : json['description'],
51
+ 'maxResponses': json['maxResponses'] == null ? undefined : json['maxResponses'],
52
+ 'maxResponsesPerParticipant': json['maxResponsesPerParticipant'] == null ? undefined : json['maxResponsesPerParticipant'],
53
+ };
54
+ }
55
+ function CodeInviteConfigContactsToJSON(json) {
56
+ return CodeInviteConfigContactsToJSONTyped(json, false);
57
+ }
58
+ function CodeInviteConfigContactsToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'kind': value['kind'],
65
+ 'isTest': value['isTest'],
66
+ 'showCallMetadata': value['showCallMetadata'],
67
+ 'title': value['title'],
68
+ 'description': value['description'],
69
+ 'maxResponses': value['maxResponses'],
70
+ 'maxResponsesPerParticipant': value['maxResponsesPerParticipant'],
71
+ };
72
+ }
@@ -0,0 +1,82 @@
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 { PanelSettings } from './PanelSettings';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CodeInviteConfigKeplarPanel
17
+ */
18
+ export interface CodeInviteConfigKeplarPanel {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CodeInviteConfigKeplarPanel
23
+ */
24
+ kind: CodeInviteConfigKeplarPanelKindEnum;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof CodeInviteConfigKeplarPanel
29
+ */
30
+ collectEmail?: boolean;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof CodeInviteConfigKeplarPanel
35
+ */
36
+ requireEmail?: boolean;
37
+ /**
38
+ *
39
+ * @type {PanelSettings}
40
+ * @memberof CodeInviteConfigKeplarPanel
41
+ */
42
+ panelSettings: PanelSettings;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CodeInviteConfigKeplarPanel
47
+ */
48
+ title: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof CodeInviteConfigKeplarPanel
53
+ */
54
+ description?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof CodeInviteConfigKeplarPanel
59
+ */
60
+ maxResponses?: number;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof CodeInviteConfigKeplarPanel
65
+ */
66
+ maxResponsesPerParticipant?: number;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const CodeInviteConfigKeplarPanelKindEnum: {
72
+ readonly KeplarPanel: "KEPLAR_PANEL";
73
+ };
74
+ export type CodeInviteConfigKeplarPanelKindEnum = typeof CodeInviteConfigKeplarPanelKindEnum[keyof typeof CodeInviteConfigKeplarPanelKindEnum];
75
+ /**
76
+ * Check if a given object implements the CodeInviteConfigKeplarPanel interface.
77
+ */
78
+ export declare function instanceOfCodeInviteConfigKeplarPanel(value: object): value is CodeInviteConfigKeplarPanel;
79
+ export declare function CodeInviteConfigKeplarPanelFromJSON(json: any): CodeInviteConfigKeplarPanel;
80
+ export declare function CodeInviteConfigKeplarPanelFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeInviteConfigKeplarPanel;
81
+ export declare function CodeInviteConfigKeplarPanelToJSON(json: any): CodeInviteConfigKeplarPanel;
82
+ export declare function CodeInviteConfigKeplarPanelToJSONTyped(value?: CodeInviteConfigKeplarPanel | null, ignoreDiscriminator?: boolean): any;