keplar-api 0.0.15 → 0.0.17
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 +9 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +83 -14
- package/dist/apis/DefaultApi.js +338 -19
- package/dist/models/ApiFilesFileIdSignedUrlPost200Response.js +1 -1
- package/dist/models/ApiInvitesIdPutRequest.d.ts +1 -1
- package/dist/models/ApiInvitesIdPutRequest.js +4 -5
- package/dist/models/ApiInvitesPostRequest.js +1 -1
- package/dist/models/ApiProjectsProjectIdAnalysisPost200Response.d.ts +32 -0
- package/dist/models/ApiProjectsProjectIdAnalysisPost200Response.js +49 -0
- package/dist/models/Artifact.d.ts +28 -3
- package/dist/models/Artifact.js +16 -5
- package/dist/models/ArtifactData.d.ts +27 -0
- package/dist/models/ArtifactData.js +54 -0
- package/dist/models/ArtifactDataCreate.d.ts +27 -0
- package/dist/models/ArtifactDataCreate.js +54 -0
- package/dist/models/ArtifactDataReport.d.ts +59 -0
- package/dist/models/ArtifactDataReport.js +70 -0
- package/dist/models/ArtifactKind.d.ts +1 -0
- package/dist/models/ArtifactKind.js +2 -1
- package/dist/models/ArtifactVersionGroup.d.ts +71 -0
- package/dist/models/ArtifactVersionGroup.js +70 -0
- package/dist/models/Attribute.js +1 -1
- package/dist/models/AttributeKind.js +2 -2
- package/dist/models/AttributeKindGroup.js +2 -2
- package/dist/models/Call.js +5 -4
- package/dist/models/CallEvent.js +1 -1
- package/dist/models/CallMetadata.d.ts +24 -0
- package/dist/models/CallMetadata.js +8 -0
- package/dist/models/ChatMessage.js +2 -2
- package/dist/models/ChatSession.js +2 -2
- package/dist/models/CodeInvite.js +2 -1
- package/dist/models/CodeInviteResponse.js +2 -2
- package/dist/models/ConversationMessage.js +2 -2
- package/dist/models/CreateArtifactRequest.d.ts +13 -0
- package/dist/models/CreateArtifactRequest.js +6 -1
- package/dist/models/CreateEmailShareRequest.js +1 -1
- package/dist/models/CreateProjectShareRequest.js +1 -1
- package/dist/models/EmailShare.js +4 -3
- package/dist/models/GetCodeInvite200Response.js +2 -1
- package/dist/models/GetSharedArtifactVersionGroups200Response.d.ts +51 -0
- package/dist/models/GetSharedArtifactVersionGroups200Response.js +64 -0
- package/dist/models/Invite.js +5 -4
- package/dist/models/InviteResponse.js +2 -2
- package/dist/models/InviteResponseAttribute.js +1 -1
- package/dist/models/InviteResponseWithCallSummary.js +2 -2
- package/dist/models/InviteWithAnalytics.js +5 -4
- package/dist/models/JoinCodeInvite302Response.js +2 -1
- package/dist/models/Login200Response.js +4 -4
- package/dist/models/ModelFile.js +5 -4
- package/dist/models/Moderator.js +2 -2
- package/dist/models/Org.js +2 -2
- package/dist/models/Participant.js +2 -2
- package/dist/models/ParticipantAttribute.js +2 -2
- package/dist/models/ParticipantInvite.js +2 -2
- package/dist/models/ParticipantInviteData.js +1 -1
- package/dist/models/PhoneCallStartResponse.js +1 -1
- package/dist/models/Project.d.ts +7 -0
- package/dist/models/Project.js +5 -2
- package/dist/models/ProjectFile.js +2 -2
- package/dist/models/ProjectFilePublicFile.js +2 -1
- package/dist/models/ProjectSummaryWithAnalytics.js +2 -2
- package/dist/models/ProjectWithAnalytics.d.ts +7 -0
- package/dist/models/ProjectWithAnalytics.js +5 -2
- package/dist/models/SearchSharedResponseMessages200ResponseInner.d.ts +74 -0
- package/dist/models/{SearchResponseMessages200ResponseInner.js → SearchSharedResponseMessages200ResponseInner.js} +14 -14
- package/dist/models/SearchSharedResponseMessagesRequest.d.ts +33 -0
- package/dist/models/SearchSharedResponseMessagesRequest.js +52 -0
- package/dist/models/SearchSharedResponseMessagesRequestInviteResponseMessagesInner.d.ts +38 -0
- package/dist/models/SearchSharedResponseMessagesRequestInviteResponseMessagesInner.js +55 -0
- package/dist/models/ShareEntity.js +3 -2
- package/dist/models/ThematicAnalysisArtifactCreateData.d.ts +13 -0
- package/dist/models/ThematicAnalysisArtifactCreateData.js +11 -0
- package/dist/models/Thread.js +2 -2
- package/dist/models/ThreadFile.js +1 -1
- package/dist/models/TranscriptMessage.js +1 -1
- package/dist/models/TranscriptMessagesInner.js +1 -1
- package/dist/models/UpdateArtifactRequest.d.ts +9 -3
- package/dist/models/UpdateArtifactRequest.js +5 -3
- package/dist/models/UpdateShareEntityRequest.js +2 -1
- package/dist/models/User.js +5 -4
- package/dist/models/UserWithConfig.js +5 -4
- package/dist/models/Workspace.js +2 -2
- package/dist/models/WorkspaceMember.js +2 -2
- package/dist/models/index.d.ts +9 -3
- package/dist/models/index.js +9 -3
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +360 -33
- package/src/models/ApiFilesFileIdSignedUrlPost200Response.ts +1 -1
- package/src/models/ApiInvitesIdPutRequest.ts +4 -5
- package/src/models/ApiInvitesPostRequest.ts +1 -1
- package/src/models/ApiProjectsProjectIdAnalysisPost200Response.ts +65 -0
- package/src/models/Artifact.ts +52 -12
- package/src/models/ArtifactData.ts +72 -0
- package/src/models/ArtifactDataCreate.ts +72 -0
- package/src/models/ArtifactDataReport.ts +103 -0
- package/src/models/ArtifactKind.ts +2 -1
- package/src/models/ArtifactVersionGroup.ts +140 -0
- package/src/models/Attribute.ts +1 -1
- package/src/models/AttributeKind.ts +2 -2
- package/src/models/AttributeKindGroup.ts +2 -2
- package/src/models/Call.ts +4 -4
- package/src/models/CallEvent.ts +1 -1
- package/src/models/CallMetadata.ts +32 -0
- package/src/models/ChatMessage.ts +2 -2
- package/src/models/ChatSession.ts +2 -2
- package/src/models/CodeInvite.ts +1 -1
- package/src/models/CodeInviteResponse.ts +2 -2
- package/src/models/ConversationMessage.ts +2 -2
- package/src/models/CreateArtifactRequest.ts +18 -1
- package/src/models/CreateEmailShareRequest.ts +1 -1
- package/src/models/CreateProjectShareRequest.ts +1 -1
- package/src/models/EmailShare.ts +3 -3
- package/src/models/GetCodeInvite200Response.ts +1 -1
- package/src/models/GetSharedArtifactVersionGroups200Response.ts +101 -0
- package/src/models/Invite.ts +4 -4
- package/src/models/InviteResponse.ts +2 -2
- package/src/models/InviteResponseAttribute.ts +1 -1
- package/src/models/InviteResponseWithCallSummary.ts +2 -2
- package/src/models/InviteWithAnalytics.ts +4 -4
- package/src/models/JoinCodeInvite302Response.ts +1 -1
- package/src/models/Login200Response.ts +4 -4
- package/src/models/ModelFile.ts +4 -4
- package/src/models/Moderator.ts +2 -2
- package/src/models/Org.ts +2 -2
- package/src/models/Participant.ts +2 -2
- package/src/models/ParticipantAttribute.ts +2 -2
- package/src/models/ParticipantInvite.ts +2 -2
- package/src/models/ParticipantInviteData.ts +1 -1
- package/src/models/PhoneCallStartResponse.ts +1 -1
- package/src/models/Project.ts +17 -2
- package/src/models/ProjectFile.ts +2 -2
- package/src/models/ProjectFilePublicFile.ts +1 -1
- package/src/models/ProjectSummaryWithAnalytics.ts +2 -2
- package/src/models/ProjectWithAnalytics.ts +17 -2
- package/src/models/{SearchResponseMessages200ResponseInner.ts → SearchSharedResponseMessages200ResponseInner.ts} +19 -19
- package/src/models/SearchSharedResponseMessagesRequest.ts +74 -0
- package/src/models/SearchSharedResponseMessagesRequestInviteResponseMessagesInner.ts +75 -0
- package/src/models/ShareEntity.ts +2 -2
- package/src/models/ThematicAnalysisArtifactCreateData.ts +19 -0
- package/src/models/Thread.ts +2 -2
- package/src/models/ThreadFile.ts +1 -1
- package/src/models/TranscriptMessage.ts +1 -1
- package/src/models/TranscriptMessagesInner.ts +1 -1
- package/src/models/UpdateArtifactRequest.ts +18 -10
- package/src/models/UpdateShareEntityRequest.ts +1 -1
- package/src/models/User.ts +4 -4
- package/src/models/UserWithConfig.ts +4 -4
- package/src/models/Workspace.ts +2 -2
- package/src/models/WorkspaceMember.ts +2 -2
- package/src/models/index.ts +9 -3
- package/dist/models/SearchResponseMessages200ResponseInner.d.ts +0 -74
- package/dist/models/SearchResponseMessagesRequest.d.ts +0 -33
- package/dist/models/SearchResponseMessagesRequest.js +0 -52
- package/dist/models/SearchResponseMessagesRequestInviteResponseMessagesInner.d.ts +0 -38
- package/dist/models/SearchResponseMessagesRequestInviteResponseMessagesInner.js +0 -55
- package/src/models/SearchResponseMessagesRequest.ts +0 -74
- package/src/models/SearchResponseMessagesRequestInviteResponseMessagesInner.ts +0 -75
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiProjectsProjectIdAnalysisPost200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiProjectsProjectIdAnalysisPost200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiProjectsProjectIdAnalysisPost200Response
|
|
26
|
+
*/
|
|
27
|
+
artifactId?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiProjectsProjectIdAnalysisPost200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiProjectsProjectIdAnalysisPost200Response(value: object): value is ApiProjectsProjectIdAnalysisPost200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ApiProjectsProjectIdAnalysisPost200ResponseFromJSON(json: any): ApiProjectsProjectIdAnalysisPost200Response {
|
|
38
|
+
return ApiProjectsProjectIdAnalysisPost200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ApiProjectsProjectIdAnalysisPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiProjectsProjectIdAnalysisPost200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'artifactId': json['artifactId'] == null ? undefined : json['artifactId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiProjectsProjectIdAnalysisPost200ResponseToJSON(json: any): ApiProjectsProjectIdAnalysisPost200Response {
|
|
52
|
+
return ApiProjectsProjectIdAnalysisPost200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiProjectsProjectIdAnalysisPost200ResponseToJSONTyped(value?: ApiProjectsProjectIdAnalysisPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'artifactId': value['artifactId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/src/models/Artifact.ts
CHANGED
|
@@ -34,13 +34,13 @@ import {
|
|
|
34
34
|
UserToJSON,
|
|
35
35
|
UserToJSONTyped,
|
|
36
36
|
} from './User';
|
|
37
|
-
import type {
|
|
37
|
+
import type { ArtifactVersionGroup } from './ArtifactVersionGroup';
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from './
|
|
39
|
+
ArtifactVersionGroupFromJSON,
|
|
40
|
+
ArtifactVersionGroupFromJSONTyped,
|
|
41
|
+
ArtifactVersionGroupToJSON,
|
|
42
|
+
ArtifactVersionGroupToJSONTyped,
|
|
43
|
+
} from './ArtifactVersionGroup';
|
|
44
44
|
import type { AttributeKindGroup } from './AttributeKindGroup';
|
|
45
45
|
import {
|
|
46
46
|
AttributeKindGroupFromJSON,
|
|
@@ -55,6 +55,13 @@ import {
|
|
|
55
55
|
ArtifactMetadataToJSON,
|
|
56
56
|
ArtifactMetadataToJSONTyped,
|
|
57
57
|
} from './ArtifactMetadata';
|
|
58
|
+
import type { ArtifactData } from './ArtifactData';
|
|
59
|
+
import {
|
|
60
|
+
ArtifactDataFromJSON,
|
|
61
|
+
ArtifactDataFromJSONTyped,
|
|
62
|
+
ArtifactDataToJSON,
|
|
63
|
+
ArtifactDataToJSONTyped,
|
|
64
|
+
} from './ArtifactData';
|
|
58
65
|
|
|
59
66
|
/**
|
|
60
67
|
*
|
|
@@ -68,6 +75,12 @@ export interface Artifact {
|
|
|
68
75
|
* @memberof Artifact
|
|
69
76
|
*/
|
|
70
77
|
id: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Artifact
|
|
82
|
+
*/
|
|
83
|
+
title?: string | null;
|
|
71
84
|
/**
|
|
72
85
|
*
|
|
73
86
|
* @type {ArtifactKind}
|
|
@@ -88,10 +101,16 @@ export interface Artifact {
|
|
|
88
101
|
attributeKindGroupId?: string | null;
|
|
89
102
|
/**
|
|
90
103
|
*
|
|
91
|
-
* @type {
|
|
104
|
+
* @type {string}
|
|
92
105
|
* @memberof Artifact
|
|
93
106
|
*/
|
|
94
|
-
|
|
107
|
+
versionGroupId: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {ArtifactData}
|
|
111
|
+
* @memberof Artifact
|
|
112
|
+
*/
|
|
113
|
+
data?: ArtifactData | null;
|
|
95
114
|
/**
|
|
96
115
|
*
|
|
97
116
|
* @type {ArtifactMetadata}
|
|
@@ -128,6 +147,18 @@ export interface Artifact {
|
|
|
128
147
|
* @memberof Artifact
|
|
129
148
|
*/
|
|
130
149
|
attributeKindGroup?: AttributeKindGroup | null;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {ArtifactVersionGroup}
|
|
153
|
+
* @memberof Artifact
|
|
154
|
+
*/
|
|
155
|
+
versionGroup?: ArtifactVersionGroup;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {ArtifactVersionGroup}
|
|
159
|
+
* @memberof Artifact
|
|
160
|
+
*/
|
|
161
|
+
latestForGroup?: ArtifactVersionGroup | null;
|
|
131
162
|
/**
|
|
132
163
|
*
|
|
133
164
|
* @type {User}
|
|
@@ -145,6 +176,7 @@ export function instanceOfArtifact(value: object): value is Artifact {
|
|
|
145
176
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
146
177
|
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
147
178
|
if (!('projectId' in value) || value['projectId'] === undefined) return false;
|
|
179
|
+
if (!('versionGroupId' in value) || value['versionGroupId'] === undefined) return false;
|
|
148
180
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
149
181
|
if (!('createdById' in value) || value['createdById'] === undefined) return false;
|
|
150
182
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -163,16 +195,20 @@ export function ArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
163
195
|
return {
|
|
164
196
|
|
|
165
197
|
'id': json['id'],
|
|
198
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
166
199
|
'kind': ArtifactKindFromJSON(json['kind']),
|
|
167
200
|
'projectId': json['projectId'],
|
|
168
201
|
'attributeKindGroupId': json['attributeKindGroupId'] == null ? undefined : json['attributeKindGroupId'],
|
|
169
|
-
'
|
|
202
|
+
'versionGroupId': json['versionGroupId'],
|
|
203
|
+
'data': json['data'] == null ? undefined : ArtifactDataFromJSON(json['data']),
|
|
170
204
|
'metadata': ArtifactMetadataFromJSON(json['metadata']),
|
|
171
205
|
'createdById': json['createdById'],
|
|
172
206
|
'createdAt': (new Date(json['createdAt'])),
|
|
173
207
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
174
208
|
'project': json['project'] == null ? undefined : ProjectFromJSON(json['project']),
|
|
175
209
|
'attributeKindGroup': json['attributeKindGroup'] == null ? undefined : AttributeKindGroupFromJSON(json['attributeKindGroup']),
|
|
210
|
+
'versionGroup': json['versionGroup'] == null ? undefined : ArtifactVersionGroupFromJSON(json['versionGroup']),
|
|
211
|
+
'latestForGroup': json['latestForGroup'] == null ? undefined : ArtifactVersionGroupFromJSON(json['latestForGroup']),
|
|
176
212
|
'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
|
|
177
213
|
};
|
|
178
214
|
}
|
|
@@ -189,16 +225,20 @@ export function ArtifactToJSONTyped(value?: Artifact | null, ignoreDiscriminator
|
|
|
189
225
|
return {
|
|
190
226
|
|
|
191
227
|
'id': value['id'],
|
|
228
|
+
'title': value['title'],
|
|
192
229
|
'kind': ArtifactKindToJSON(value['kind']),
|
|
193
230
|
'projectId': value['projectId'],
|
|
194
231
|
'attributeKindGroupId': value['attributeKindGroupId'],
|
|
195
|
-
'
|
|
232
|
+
'versionGroupId': value['versionGroupId'],
|
|
233
|
+
'data': ArtifactDataToJSON(value['data']),
|
|
196
234
|
'metadata': ArtifactMetadataToJSON(value['metadata']),
|
|
197
235
|
'createdById': value['createdById'],
|
|
198
|
-
'createdAt': value['createdAt'].toISOString(),
|
|
199
|
-
'updatedAt': value['updatedAt'].toISOString(),
|
|
236
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
237
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
200
238
|
'project': ProjectToJSON(value['project']),
|
|
201
239
|
'attributeKindGroup': AttributeKindGroupToJSON(value['attributeKindGroup']),
|
|
240
|
+
'versionGroup': ArtifactVersionGroupToJSON(value['versionGroup']),
|
|
241
|
+
'latestForGroup': ArtifactVersionGroupToJSON(value['latestForGroup']),
|
|
202
242
|
'createdBy': UserToJSON(value['createdBy']),
|
|
203
243
|
};
|
|
204
244
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 type { ArtifactDataReport } from './ArtifactDataReport';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfArtifactDataReport,
|
|
18
|
+
ArtifactDataReportFromJSON,
|
|
19
|
+
ArtifactDataReportFromJSONTyped,
|
|
20
|
+
ArtifactDataReportToJSON,
|
|
21
|
+
} from './ArtifactDataReport';
|
|
22
|
+
import type { ArtifactDataThematicAnalysis } from './ArtifactDataThematicAnalysis';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfArtifactDataThematicAnalysis,
|
|
25
|
+
ArtifactDataThematicAnalysisFromJSON,
|
|
26
|
+
ArtifactDataThematicAnalysisFromJSONTyped,
|
|
27
|
+
ArtifactDataThematicAnalysisToJSON,
|
|
28
|
+
} from './ArtifactDataThematicAnalysis';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type ArtifactData
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type ArtifactData = { kind: 'report' } & ArtifactDataReport | { kind: 'thematic_analysis' } & ArtifactDataThematicAnalysis;
|
|
36
|
+
|
|
37
|
+
export function ArtifactDataFromJSON(json: any): ArtifactData {
|
|
38
|
+
return ArtifactDataFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ArtifactDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactData {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['kind']) {
|
|
46
|
+
case 'report':
|
|
47
|
+
return Object.assign({}, ArtifactDataReportFromJSONTyped(json, true), { kind: 'report' } as const);
|
|
48
|
+
case 'thematic_analysis':
|
|
49
|
+
return Object.assign({}, ArtifactDataThematicAnalysisFromJSONTyped(json, true), { kind: 'thematic_analysis' } as const);
|
|
50
|
+
default:
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ArtifactDataToJSON(json: any): any {
|
|
56
|
+
return ArtifactDataToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ArtifactDataToJSONTyped(value?: ArtifactData | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['kind']) {
|
|
64
|
+
case 'report':
|
|
65
|
+
return Object.assign({}, ArtifactDataReportToJSON(value), { kind: 'report' } as const);
|
|
66
|
+
case 'thematic_analysis':
|
|
67
|
+
return Object.assign({}, ArtifactDataThematicAnalysisToJSON(value), { kind: 'thematic_analysis' } as const);
|
|
68
|
+
default:
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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 type { ArtifactDataReport } from './ArtifactDataReport';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfArtifactDataReport,
|
|
18
|
+
ArtifactDataReportFromJSON,
|
|
19
|
+
ArtifactDataReportFromJSONTyped,
|
|
20
|
+
ArtifactDataReportToJSON,
|
|
21
|
+
} from './ArtifactDataReport';
|
|
22
|
+
import type { ThematicAnalysisArtifactCreateData } from './ThematicAnalysisArtifactCreateData';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfThematicAnalysisArtifactCreateData,
|
|
25
|
+
ThematicAnalysisArtifactCreateDataFromJSON,
|
|
26
|
+
ThematicAnalysisArtifactCreateDataFromJSONTyped,
|
|
27
|
+
ThematicAnalysisArtifactCreateDataToJSON,
|
|
28
|
+
} from './ThematicAnalysisArtifactCreateData';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type ArtifactDataCreate
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type ArtifactDataCreate = { kind: 'report' } & ArtifactDataReport | { kind: 'thematic_analysis' } & ThematicAnalysisArtifactCreateData;
|
|
36
|
+
|
|
37
|
+
export function ArtifactDataCreateFromJSON(json: any): ArtifactDataCreate {
|
|
38
|
+
return ArtifactDataCreateFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ArtifactDataCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactDataCreate {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['kind']) {
|
|
46
|
+
case 'report':
|
|
47
|
+
return Object.assign({}, ArtifactDataReportFromJSONTyped(json, true), { kind: 'report' } as const);
|
|
48
|
+
case 'thematic_analysis':
|
|
49
|
+
return Object.assign({}, ThematicAnalysisArtifactCreateDataFromJSONTyped(json, true), { kind: 'thematic_analysis' } as const);
|
|
50
|
+
default:
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ArtifactDataCreateToJSON(json: any): any {
|
|
56
|
+
return ArtifactDataCreateToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ArtifactDataCreateToJSONTyped(value?: ArtifactDataCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['kind']) {
|
|
64
|
+
case 'report':
|
|
65
|
+
return Object.assign({}, ArtifactDataReportToJSON(value), { kind: 'report' } as const);
|
|
66
|
+
case 'thematic_analysis':
|
|
67
|
+
return Object.assign({}, ThematicAnalysisArtifactCreateDataToJSON(value), { kind: 'thematic_analysis' } as const);
|
|
68
|
+
default:
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ArtifactDataReport
|
|
20
|
+
*/
|
|
21
|
+
export interface ArtifactDataReport {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ArtifactDataReport
|
|
26
|
+
*/
|
|
27
|
+
kind: ArtifactDataReportKindEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ArtifactDataReport
|
|
32
|
+
*/
|
|
33
|
+
report: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: string; }}
|
|
37
|
+
* @memberof ArtifactDataReport
|
|
38
|
+
*/
|
|
39
|
+
references: { [key: string]: string; };
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof ArtifactDataReport
|
|
44
|
+
*/
|
|
45
|
+
callIds: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const ArtifactDataReportKindEnum = {
|
|
53
|
+
Report: 'report'
|
|
54
|
+
} as const;
|
|
55
|
+
export type ArtifactDataReportKindEnum = typeof ArtifactDataReportKindEnum[keyof typeof ArtifactDataReportKindEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the ArtifactDataReport interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfArtifactDataReport(value: object): value is ArtifactDataReport {
|
|
62
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
63
|
+
if (!('report' in value) || value['report'] === undefined) return false;
|
|
64
|
+
if (!('references' in value) || value['references'] === undefined) return false;
|
|
65
|
+
if (!('callIds' in value) || value['callIds'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ArtifactDataReportFromJSON(json: any): ArtifactDataReport {
|
|
70
|
+
return ArtifactDataReportFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ArtifactDataReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactDataReport {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'kind': json['kind'],
|
|
80
|
+
'report': json['report'],
|
|
81
|
+
'references': json['references'],
|
|
82
|
+
'callIds': json['callIds'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ArtifactDataReportToJSON(json: any): ArtifactDataReport {
|
|
87
|
+
return ArtifactDataReportToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ArtifactDataReportToJSONTyped(value?: ArtifactDataReport | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'kind': value['kind'],
|
|
98
|
+
'report': value['report'],
|
|
99
|
+
'references': value['references'],
|
|
100
|
+
'callIds': value['callIds'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { Project } from './Project';
|
|
17
|
+
import {
|
|
18
|
+
ProjectFromJSON,
|
|
19
|
+
ProjectFromJSONTyped,
|
|
20
|
+
ProjectToJSON,
|
|
21
|
+
ProjectToJSONTyped,
|
|
22
|
+
} from './Project';
|
|
23
|
+
import type { ArtifactKind } from './ArtifactKind';
|
|
24
|
+
import {
|
|
25
|
+
ArtifactKindFromJSON,
|
|
26
|
+
ArtifactKindFromJSONTyped,
|
|
27
|
+
ArtifactKindToJSON,
|
|
28
|
+
ArtifactKindToJSONTyped,
|
|
29
|
+
} from './ArtifactKind';
|
|
30
|
+
import type { Artifact } from './Artifact';
|
|
31
|
+
import {
|
|
32
|
+
ArtifactFromJSON,
|
|
33
|
+
ArtifactFromJSONTyped,
|
|
34
|
+
ArtifactToJSON,
|
|
35
|
+
ArtifactToJSONTyped,
|
|
36
|
+
} from './Artifact';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ArtifactVersionGroup
|
|
42
|
+
*/
|
|
43
|
+
export interface ArtifactVersionGroup {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ArtifactVersionGroup
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ArtifactVersionGroup
|
|
54
|
+
*/
|
|
55
|
+
projectId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ArtifactKind}
|
|
59
|
+
* @memberof ArtifactVersionGroup
|
|
60
|
+
*/
|
|
61
|
+
kind: ArtifactKind;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ArtifactVersionGroup
|
|
66
|
+
*/
|
|
67
|
+
latestArtifactId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Project}
|
|
71
|
+
* @memberof ArtifactVersionGroup
|
|
72
|
+
*/
|
|
73
|
+
project?: Project;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Artifact}
|
|
77
|
+
* @memberof ArtifactVersionGroup
|
|
78
|
+
*/
|
|
79
|
+
latestArtifact?: Artifact | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<Artifact>}
|
|
83
|
+
* @memberof ArtifactVersionGroup
|
|
84
|
+
*/
|
|
85
|
+
artifacts?: Array<Artifact>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the ArtifactVersionGroup interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfArtifactVersionGroup(value: object): value is ArtifactVersionGroup {
|
|
94
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
95
|
+
if (!('projectId' in value) || value['projectId'] === undefined) return false;
|
|
96
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ArtifactVersionGroupFromJSON(json: any): ArtifactVersionGroup {
|
|
101
|
+
return ArtifactVersionGroupFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ArtifactVersionGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactVersionGroup {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': json['id'],
|
|
111
|
+
'projectId': json['projectId'],
|
|
112
|
+
'kind': ArtifactKindFromJSON(json['kind']),
|
|
113
|
+
'latestArtifactId': json['latestArtifactId'] == null ? undefined : json['latestArtifactId'],
|
|
114
|
+
'project': json['project'] == null ? undefined : ProjectFromJSON(json['project']),
|
|
115
|
+
'latestArtifact': json['latestArtifact'] == null ? undefined : ArtifactFromJSON(json['latestArtifact']),
|
|
116
|
+
'artifacts': json['artifacts'] == null ? undefined : ((json['artifacts'] as Array<any>).map(ArtifactFromJSON)),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ArtifactVersionGroupToJSON(json: any): ArtifactVersionGroup {
|
|
121
|
+
return ArtifactVersionGroupToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ArtifactVersionGroupToJSONTyped(value?: ArtifactVersionGroup | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'id': value['id'],
|
|
132
|
+
'projectId': value['projectId'],
|
|
133
|
+
'kind': ArtifactKindToJSON(value['kind']),
|
|
134
|
+
'latestArtifactId': value['latestArtifactId'],
|
|
135
|
+
'project': ProjectToJSON(value['project']),
|
|
136
|
+
'latestArtifact': ArtifactToJSON(value['latestArtifact']),
|
|
137
|
+
'artifacts': value['artifacts'] == null ? undefined : ((value['artifacts'] as Array<any>).map(ArtifactToJSON)),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
package/src/models/Attribute.ts
CHANGED
|
@@ -138,7 +138,7 @@ export function AttributeToJSONTyped(value?: Attribute | null, ignoreDiscriminat
|
|
|
138
138
|
'attributeKindId': value['attributeKindId'],
|
|
139
139
|
'value': value['value'],
|
|
140
140
|
'description': value['description'],
|
|
141
|
-
'createdAt': value['createdAt'].toISOString(),
|
|
141
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
142
142
|
'attributeKind': AttributeKindToJSON(value['attributeKind']),
|
|
143
143
|
'participantAttributes': value['participantAttributes'] == null ? undefined : ((value['participantAttributes'] as Array<any>).map(ParticipantAttributeToJSON)),
|
|
144
144
|
'inviteResponseAttributes': value['inviteResponseAttributes'] == null ? undefined : ((value['inviteResponseAttributes'] as Array<any>).map(InviteResponseAttributeToJSON)),
|
|
@@ -164,8 +164,8 @@ export function AttributeKindToJSONTyped(value?: AttributeKind | null, ignoreDis
|
|
|
164
164
|
'valueKind': AttributeValueKindToJSON(value['valueKind']),
|
|
165
165
|
'description': value['description'],
|
|
166
166
|
'category': value['category'],
|
|
167
|
-
'createdAt': value['createdAt'].toISOString(),
|
|
168
|
-
'updatedAt': value['updatedAt'].toISOString(),
|
|
167
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
168
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
169
169
|
'attributeKindGroupId': value['attributeKindGroupId'],
|
|
170
170
|
'attributes': value['attributes'] == null ? undefined : ((value['attributes'] as Array<any>).map(AttributeToJSON)),
|
|
171
171
|
'attributeKindGroup': AttributeKindGroupToJSON(value['attributeKindGroup']),
|
|
@@ -226,8 +226,8 @@ export function AttributeKindGroupToJSONTyped(value?: AttributeKindGroup | null,
|
|
|
226
226
|
'workspaceId': value['workspaceId'],
|
|
227
227
|
'projectId': value['projectId'],
|
|
228
228
|
'createdById': value['createdById'],
|
|
229
|
-
'createdAt': value['createdAt'].toISOString(),
|
|
230
|
-
'updatedAt': value['updatedAt'].toISOString(),
|
|
229
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
230
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
231
231
|
'workspace': WorkspaceToJSON(value['workspace']),
|
|
232
232
|
'project': ProjectToJSON(value['project']),
|
|
233
233
|
'createdBy': UserToJSON(value['createdBy']),
|
package/src/models/Call.ts
CHANGED
|
@@ -273,10 +273,10 @@ export function CallToJSONTyped(value?: Call | null, ignoreDiscriminator: boolea
|
|
|
273
273
|
'id': value['id'],
|
|
274
274
|
'vendor': value['vendor'],
|
|
275
275
|
'vendorCallId': value['vendorCallId'],
|
|
276
|
-
'createdAt': value['createdAt'].toISOString(),
|
|
277
|
-
'updatedAt': value['updatedAt'].toISOString(),
|
|
278
|
-
'startedAt': value['startedAt']
|
|
279
|
-
'endedAt': value['endedAt']
|
|
276
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
277
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
278
|
+
'startedAt': value['startedAt'] === null ? null : ((value['startedAt'] as any)?.toISOString()),
|
|
279
|
+
'endedAt': value['endedAt'] === null ? null : ((value['endedAt'] as any)?.toISOString()),
|
|
280
280
|
'kind': CallKindToJSON(value['kind']),
|
|
281
281
|
'status': CallStatusToJSON(value['status']),
|
|
282
282
|
'phoneNumber': value['phoneNumber'],
|
package/src/models/CallEvent.ts
CHANGED
|
@@ -100,7 +100,7 @@ export function CallEventToJSONTyped(value?: CallEvent | null, ignoreDiscriminat
|
|
|
100
100
|
return {
|
|
101
101
|
|
|
102
102
|
'callId': value['callId'],
|
|
103
|
-
'timestamp': value['timestamp'].toISOString(),
|
|
103
|
+
'timestamp': ((value['timestamp']).toISOString()),
|
|
104
104
|
'kind': value['kind'],
|
|
105
105
|
'data': value['data'],
|
|
106
106
|
'call': CallToJSON(value['call']),
|