@rixl/sdk 0.1.0
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/LICENSE +21 -0
- package/README.md +153 -0
- package/dist/feeds/index.d.ts +21 -0
- package/dist/feeds/index.js +21 -0
- package/dist/feeds/item/creators/index.d.ts +21 -0
- package/dist/feeds/item/creators/index.js +20 -0
- package/dist/feeds/item/creators/item/index.d.ts +42 -0
- package/dist/feeds/item/creators/item/index.js +28 -0
- package/dist/feeds/item/index.d.ts +58 -0
- package/dist/feeds/item/index.js +44 -0
- package/dist/feeds/item/item/index.d.ts +29 -0
- package/dist/feeds/item/item/index.js +28 -0
- package/dist/images/index.d.ts +68 -0
- package/dist/images/index.js +46 -0
- package/dist/images/item/index.d.ts +48 -0
- package/dist/images/item/index.js +43 -0
- package/dist/images/upload/complete/index.d.ts +35 -0
- package/dist/images/upload/complete/index.js +36 -0
- package/dist/images/upload/index.d.ts +24 -0
- package/dist/images/upload/index.js +24 -0
- package/dist/images/upload/init/index.d.ts +33 -0
- package/dist/images/upload/init/index.js +33 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.d.ts +13 -0
- package/dist/models/github_com_rixlhq_api_db_sqlc/index.js +16 -0
- package/dist/models/github_com_rixlhq_api_internal_errors/index.d.ts +37 -0
- package/dist/models/github_com_rixlhq_api_internal_errors/index.js +40 -0
- package/dist/models/github_com_rixlhq_api_internal_videos/index.d.ts +72 -0
- package/dist/models/github_com_rixlhq_api_internal_videos/index.js +65 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.d.ts +70 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_handler_upload/index.js +78 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.d.ts +30 -0
- package/dist/models/github_com_rixlhq_api_internal_videos_types/index.js +38 -0
- package/dist/models/index.d.ts +548 -0
- package/dist/models/index.js +543 -0
- package/dist/models/internal_images_handler/index.d.ts +98 -0
- package/dist/models/internal_images_handler/index.js +112 -0
- package/dist/models/internal_videos_handler_subtitles/index.d.ts +30 -0
- package/dist/models/internal_videos_handler_subtitles/index.js +38 -0
- package/dist/models/pagination/index.d.ts +125 -0
- package/dist/models/pagination/index.js +153 -0
- package/dist/rixlClient.d.ts +34 -0
- package/dist/rixlClient.js +69 -0
- package/dist/videos/index.d.ts +73 -0
- package/dist/videos/index.js +52 -0
- package/dist/videos/item/audioTracks/index.d.ts +38 -0
- package/dist/videos/item/audioTracks/index.js +33 -0
- package/dist/videos/item/audioTracks/item/index.d.ts +70 -0
- package/dist/videos/item/audioTracks/item/index.js +67 -0
- package/dist/videos/item/chapters/index.d.ts +50 -0
- package/dist/videos/item/chapters/index.js +46 -0
- package/dist/videos/item/delete/index.d.ts +30 -0
- package/dist/videos/item/delete/index.js +28 -0
- package/dist/videos/item/index.d.ts +61 -0
- package/dist/videos/item/index.js +63 -0
- package/dist/videos/item/subtitles/index.d.ts +38 -0
- package/dist/videos/item/subtitles/index.js +33 -0
- package/dist/videos/item/subtitles/item/index.d.ts +70 -0
- package/dist/videos/item/subtitles/item/index.js +67 -0
- package/dist/videos/item/thumbnail/index.d.ts +59 -0
- package/dist/videos/item/thumbnail/index.js +68 -0
- package/dist/videos/languages/index.d.ts +27 -0
- package/dist/videos/languages/index.js +22 -0
- package/dist/videos/upload/complete/index.d.ts +35 -0
- package/dist/videos/upload/complete/index.js +36 -0
- package/dist/videos/upload/index.d.ts +24 -0
- package/dist/videos/upload/index.js +24 -0
- package/dist/videos/upload/init/index.d.ts +34 -0
- package/dist/videos/upload/init/index.js +35 -0
- package/package.json +47 -0
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { PlanTypeObject, VideoQualityObject } from './github_com_rixlhq_api_db_sqlc/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { createChapterInputFromDiscriminatorValue, serializeChapterInput } from './github_com_rixlhq_api_internal_videos_types/index.js';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { createVideoResponseFromDiscriminatorValue, serializeVideoResponse } from './github_com_rixlhq_api_internal_videos/index.js';
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
13
|
+
* @returns {AudioTrackDelete}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function createAudioTrackDeleteFromDiscriminatorValue(parseNode) {
|
|
17
|
+
return deserializeIntoAudioTrackDelete;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
21
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
22
|
+
* @returns {AudioTrack}
|
|
23
|
+
*/
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export function createAudioTrackFromDiscriminatorValue(parseNode) {
|
|
26
|
+
return deserializeIntoAudioTrack;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
30
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
31
|
+
* @returns {Chapter}
|
|
32
|
+
*/
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export function createChapterFromDiscriminatorValue(parseNode) {
|
|
35
|
+
return deserializeIntoChapter;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
39
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
40
|
+
* @returns {File}
|
|
41
|
+
*/
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
export function createFileFromDiscriminatorValue(parseNode) {
|
|
44
|
+
return deserializeIntoFile;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
48
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
49
|
+
* @returns {Image}
|
|
50
|
+
*/
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
export function createImageFromDiscriminatorValue(parseNode) {
|
|
53
|
+
return deserializeIntoImage;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
57
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
58
|
+
* @returns {Post}
|
|
59
|
+
*/
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
export function createPostFromDiscriminatorValue(parseNode) {
|
|
62
|
+
return deserializeIntoPost;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
66
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
67
|
+
* @returns {SubtitleDelete}
|
|
68
|
+
*/
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
export function createSubtitleDeleteFromDiscriminatorValue(parseNode) {
|
|
71
|
+
return deserializeIntoSubtitleDelete;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
75
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
76
|
+
* @returns {Subtitle}
|
|
77
|
+
*/
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
export function createSubtitleFromDiscriminatorValue(parseNode) {
|
|
80
|
+
return deserializeIntoSubtitle;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
84
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
85
|
+
* @returns {UpdateChaptersRequest}
|
|
86
|
+
*/
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
export function createUpdateChaptersRequestFromDiscriminatorValue(parseNode) {
|
|
89
|
+
return deserializeIntoUpdateChaptersRequest;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
93
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
94
|
+
* @returns {UpdateChaptersResponse}
|
|
95
|
+
*/
|
|
96
|
+
// @ts-ignore
|
|
97
|
+
export function createUpdateChaptersResponseFromDiscriminatorValue(parseNode) {
|
|
98
|
+
return deserializeIntoUpdateChaptersResponse;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
102
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
103
|
+
* @returns {Video}
|
|
104
|
+
*/
|
|
105
|
+
// @ts-ignore
|
|
106
|
+
export function createVideoFromDiscriminatorValue(parseNode) {
|
|
107
|
+
return deserializeIntoVideo;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
111
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
112
|
+
* @returns {VideoUploadInitRequest}
|
|
113
|
+
*/
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
export function createVideoUploadInitRequestFromDiscriminatorValue(parseNode) {
|
|
116
|
+
return deserializeIntoVideoUploadInitRequest;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The deserialization information for the current model
|
|
120
|
+
* @param AudioTrack The instance to deserialize into.
|
|
121
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
122
|
+
*/
|
|
123
|
+
// @ts-ignore
|
|
124
|
+
export function deserializeIntoAudioTrack(audioTrack = {}) {
|
|
125
|
+
return {
|
|
126
|
+
"created_at": n => { audioTrack.createdAt = n.getStringValue(); },
|
|
127
|
+
"format": n => { audioTrack.format = n.getStringValue(); },
|
|
128
|
+
"id": n => { audioTrack.id = n.getStringValue(); },
|
|
129
|
+
"label": n => { audioTrack.label = n.getStringValue(); },
|
|
130
|
+
"language_code": n => { audioTrack.languageCode = n.getStringValue(); },
|
|
131
|
+
"name": n => { audioTrack.name = n.getStringValue(); },
|
|
132
|
+
"size": n => { audioTrack.size = n.getNumberValue(); },
|
|
133
|
+
"url": n => { audioTrack.url = n.getStringValue(); },
|
|
134
|
+
"video_id": n => { audioTrack.videoId = n.getStringValue(); },
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The deserialization information for the current model
|
|
139
|
+
* @param AudioTrackDelete The instance to deserialize into.
|
|
140
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
141
|
+
*/
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
export function deserializeIntoAudioTrackDelete(audioTrackDelete = {}) {
|
|
144
|
+
return {
|
|
145
|
+
"message": n => { audioTrackDelete.message = n.getStringValue(); },
|
|
146
|
+
"status": n => { audioTrackDelete.status = n.getStringValue(); },
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The deserialization information for the current model
|
|
151
|
+
* @param Chapter The instance to deserialize into.
|
|
152
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
153
|
+
*/
|
|
154
|
+
// @ts-ignore
|
|
155
|
+
export function deserializeIntoChapter(chapter = {}) {
|
|
156
|
+
return {
|
|
157
|
+
"duration_label": n => { chapter.durationLabel = n.getStringValue(); },
|
|
158
|
+
"end_time_sec": n => { chapter.endTimeSec = n.getNumberValue(); },
|
|
159
|
+
"start_time_sec": n => { chapter.startTimeSec = n.getNumberValue(); },
|
|
160
|
+
"title": n => { chapter.title = n.getStringValue(); },
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The deserialization information for the current model
|
|
165
|
+
* @param File The instance to deserialize into.
|
|
166
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
167
|
+
*/
|
|
168
|
+
// @ts-ignore
|
|
169
|
+
export function deserializeIntoFile(file = {}) {
|
|
170
|
+
return {
|
|
171
|
+
"created_at": n => { file.createdAt = n.getStringValue(); },
|
|
172
|
+
"format": n => { file.format = n.getStringValue(); },
|
|
173
|
+
"id": n => { file.id = n.getStringValue(); },
|
|
174
|
+
"name": n => { file.name = n.getStringValue(); },
|
|
175
|
+
"project_id": n => { file.projectId = n.getStringValue(); },
|
|
176
|
+
"size": n => { file.size = n.getNumberValue(); },
|
|
177
|
+
"status": n => { file.status = n.getEnumValue(FileStatusObject); },
|
|
178
|
+
"updated_at": n => { file.updatedAt = n.getStringValue(); },
|
|
179
|
+
"url": n => { file.url = n.getStringValue(); },
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The deserialization information for the current model
|
|
184
|
+
* @param Image The instance to deserialize into.
|
|
185
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
186
|
+
*/
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
export function deserializeIntoImage(image = {}) {
|
|
189
|
+
return {
|
|
190
|
+
"attached_to_video": n => { image.attachedToVideo = n.getBooleanValue(); },
|
|
191
|
+
"file": n => { image.file = n.getObjectValue(createFileFromDiscriminatorValue); },
|
|
192
|
+
"height": n => { image.height = n.getNumberValue(); },
|
|
193
|
+
"id": n => { image.id = n.getStringValue(); },
|
|
194
|
+
"thumbhash": n => { image.thumbhash = n.getStringValue(); },
|
|
195
|
+
"width": n => { image.width = n.getNumberValue(); },
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The deserialization information for the current model
|
|
200
|
+
* @param Post The instance to deserialize into.
|
|
201
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
202
|
+
*/
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
export function deserializeIntoPost(post = {}) {
|
|
205
|
+
return {
|
|
206
|
+
"created_at": n => { post.createdAt = n.getStringValue(); },
|
|
207
|
+
"creator_id": n => { post.creatorId = n.getStringValue(); },
|
|
208
|
+
"description": n => { post.description = n.getStringValue(); },
|
|
209
|
+
"feed_id": n => { post.feedId = n.getStringValue(); },
|
|
210
|
+
"id": n => { post.id = n.getStringValue(); },
|
|
211
|
+
"image": n => { post.image = n.getObjectValue(createImageFromDiscriminatorValue); },
|
|
212
|
+
"plan_type": n => { post.planType = n.getEnumValue(PlanTypeObject); },
|
|
213
|
+
"type": n => { post.type = n.getEnumValue(PostTypeObject); },
|
|
214
|
+
"updated_at": n => { post.updatedAt = n.getStringValue(); },
|
|
215
|
+
"video": n => { post.video = n.getObjectValue(createVideoResponseFromDiscriminatorValue); },
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* The deserialization information for the current model
|
|
220
|
+
* @param Subtitle The instance to deserialize into.
|
|
221
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
222
|
+
*/
|
|
223
|
+
// @ts-ignore
|
|
224
|
+
export function deserializeIntoSubtitle(subtitle = {}) {
|
|
225
|
+
return {
|
|
226
|
+
"created_at": n => { subtitle.createdAt = n.getStringValue(); },
|
|
227
|
+
"id": n => { subtitle.id = n.getStringValue(); },
|
|
228
|
+
"label": n => { subtitle.label = n.getStringValue(); },
|
|
229
|
+
"language_code": n => { subtitle.languageCode = n.getStringValue(); },
|
|
230
|
+
"name": n => { subtitle.name = n.getStringValue(); },
|
|
231
|
+
"size": n => { subtitle.size = n.getNumberValue(); },
|
|
232
|
+
"url": n => { subtitle.url = n.getStringValue(); },
|
|
233
|
+
"video_id": n => { subtitle.videoId = n.getStringValue(); },
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* The deserialization information for the current model
|
|
238
|
+
* @param SubtitleDelete The instance to deserialize into.
|
|
239
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
240
|
+
*/
|
|
241
|
+
// @ts-ignore
|
|
242
|
+
export function deserializeIntoSubtitleDelete(subtitleDelete = {}) {
|
|
243
|
+
return {
|
|
244
|
+
"message": n => { subtitleDelete.message = n.getStringValue(); },
|
|
245
|
+
"status": n => { subtitleDelete.status = n.getStringValue(); },
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* The deserialization information for the current model
|
|
250
|
+
* @param UpdateChaptersRequest The instance to deserialize into.
|
|
251
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
252
|
+
*/
|
|
253
|
+
// @ts-ignore
|
|
254
|
+
export function deserializeIntoUpdateChaptersRequest(updateChaptersRequest = {}) {
|
|
255
|
+
return {
|
|
256
|
+
"chapters": n => { updateChaptersRequest.chapters = n.getCollectionOfObjectValues(createChapterInputFromDiscriminatorValue); },
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* The deserialization information for the current model
|
|
261
|
+
* @param UpdateChaptersResponse The instance to deserialize into.
|
|
262
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
263
|
+
*/
|
|
264
|
+
// @ts-ignore
|
|
265
|
+
export function deserializeIntoUpdateChaptersResponse(updateChaptersResponse = {}) {
|
|
266
|
+
return {
|
|
267
|
+
"chapters": n => { updateChaptersResponse.chapters = n.getCollectionOfObjectValues(createChapterFromDiscriminatorValue); },
|
|
268
|
+
"video_id": n => { updateChaptersResponse.videoId = n.getStringValue(); },
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The deserialization information for the current model
|
|
273
|
+
* @param Video The instance to deserialize into.
|
|
274
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
275
|
+
*/
|
|
276
|
+
// @ts-ignore
|
|
277
|
+
export function deserializeIntoVideo(video = {}) {
|
|
278
|
+
return {
|
|
279
|
+
"bitrate": n => { video.bitrate = n.getNumberValue(); },
|
|
280
|
+
"chapters": n => { video.chapters = n.getCollectionOfObjectValues(createChapterFromDiscriminatorValue); },
|
|
281
|
+
"codec": n => { video.codec = n.getStringValue(); },
|
|
282
|
+
"duration": n => { video.duration = n.getNumberValue(); },
|
|
283
|
+
"file": n => { video.file = n.getObjectValue(createFileFromDiscriminatorValue); },
|
|
284
|
+
"framerate": n => { video.framerate = n.getStringValue(); },
|
|
285
|
+
"hdr": n => { video.hdr = n.getBooleanValue(); },
|
|
286
|
+
"height": n => { video.height = n.getNumberValue(); },
|
|
287
|
+
"id": n => { video.id = n.getStringValue(); },
|
|
288
|
+
"plan_type": n => { video.planType = n.getEnumValue(PlanTypeObject); },
|
|
289
|
+
"poster": n => { video.poster = n.getObjectValue(createImageFromDiscriminatorValue); },
|
|
290
|
+
"width": n => { video.width = n.getNumberValue(); },
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The deserialization information for the current model
|
|
295
|
+
* @param VideoUploadInitRequest The instance to deserialize into.
|
|
296
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
297
|
+
*/
|
|
298
|
+
// @ts-ignore
|
|
299
|
+
export function deserializeIntoVideoUploadInitRequest(videoUploadInitRequest = {}) {
|
|
300
|
+
return {
|
|
301
|
+
"file_name": n => { videoUploadInitRequest.fileName = n.getStringValue(); },
|
|
302
|
+
"image_format": n => { videoUploadInitRequest.imageFormat = n.getStringValue(); },
|
|
303
|
+
"video_quality": n => { videoUploadInitRequest.videoQuality = n.getEnumValue(VideoQualityObject); },
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Serializes information the current object
|
|
308
|
+
* @param AudioTrack The instance to serialize from.
|
|
309
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
310
|
+
* @param writer Serialization writer to use to serialize this model
|
|
311
|
+
*/
|
|
312
|
+
// @ts-ignore
|
|
313
|
+
export function serializeAudioTrack(writer, audioTrack = {}, isSerializingDerivedType = false) {
|
|
314
|
+
if (!audioTrack || isSerializingDerivedType) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
writer.writeStringValue("created_at", audioTrack.createdAt);
|
|
318
|
+
writer.writeStringValue("format", audioTrack.format);
|
|
319
|
+
writer.writeStringValue("id", audioTrack.id);
|
|
320
|
+
writer.writeStringValue("label", audioTrack.label);
|
|
321
|
+
writer.writeStringValue("language_code", audioTrack.languageCode);
|
|
322
|
+
writer.writeStringValue("name", audioTrack.name);
|
|
323
|
+
writer.writeNumberValue("size", audioTrack.size);
|
|
324
|
+
writer.writeStringValue("url", audioTrack.url);
|
|
325
|
+
writer.writeStringValue("video_id", audioTrack.videoId);
|
|
326
|
+
writer.writeAdditionalData(audioTrack.additionalData);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Serializes information the current object
|
|
330
|
+
* @param AudioTrackDelete The instance to serialize from.
|
|
331
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
332
|
+
* @param writer Serialization writer to use to serialize this model
|
|
333
|
+
*/
|
|
334
|
+
// @ts-ignore
|
|
335
|
+
export function serializeAudioTrackDelete(writer, audioTrackDelete = {}, isSerializingDerivedType = false) {
|
|
336
|
+
if (!audioTrackDelete || isSerializingDerivedType) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
writer.writeStringValue("message", audioTrackDelete.message);
|
|
340
|
+
writer.writeStringValue("status", audioTrackDelete.status);
|
|
341
|
+
writer.writeAdditionalData(audioTrackDelete.additionalData);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Serializes information the current object
|
|
345
|
+
* @param Chapter The instance to serialize from.
|
|
346
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
347
|
+
* @param writer Serialization writer to use to serialize this model
|
|
348
|
+
*/
|
|
349
|
+
// @ts-ignore
|
|
350
|
+
export function serializeChapter(writer, chapter = {}, isSerializingDerivedType = false) {
|
|
351
|
+
if (!chapter || isSerializingDerivedType) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
writer.writeStringValue("duration_label", chapter.durationLabel);
|
|
355
|
+
writer.writeNumberValue("end_time_sec", chapter.endTimeSec);
|
|
356
|
+
writer.writeNumberValue("start_time_sec", chapter.startTimeSec);
|
|
357
|
+
writer.writeStringValue("title", chapter.title);
|
|
358
|
+
writer.writeAdditionalData(chapter.additionalData);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Serializes information the current object
|
|
362
|
+
* @param File The instance to serialize from.
|
|
363
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
364
|
+
* @param writer Serialization writer to use to serialize this model
|
|
365
|
+
*/
|
|
366
|
+
// @ts-ignore
|
|
367
|
+
export function serializeFile(writer, file = {}, isSerializingDerivedType = false) {
|
|
368
|
+
if (!file || isSerializingDerivedType) {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
writer.writeStringValue("created_at", file.createdAt);
|
|
372
|
+
writer.writeStringValue("format", file.format);
|
|
373
|
+
writer.writeStringValue("id", file.id);
|
|
374
|
+
writer.writeStringValue("name", file.name);
|
|
375
|
+
writer.writeStringValue("project_id", file.projectId);
|
|
376
|
+
writer.writeNumberValue("size", file.size);
|
|
377
|
+
writer.writeEnumValue("status", file.status);
|
|
378
|
+
writer.writeStringValue("updated_at", file.updatedAt);
|
|
379
|
+
writer.writeStringValue("url", file.url);
|
|
380
|
+
writer.writeAdditionalData(file.additionalData);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Serializes information the current object
|
|
384
|
+
* @param Image The instance to serialize from.
|
|
385
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
386
|
+
* @param writer Serialization writer to use to serialize this model
|
|
387
|
+
*/
|
|
388
|
+
// @ts-ignore
|
|
389
|
+
export function serializeImage(writer, image = {}, isSerializingDerivedType = false) {
|
|
390
|
+
if (!image || isSerializingDerivedType) {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
writer.writeBooleanValue("attached_to_video", image.attachedToVideo);
|
|
394
|
+
writer.writeObjectValue("file", image.file, serializeFile);
|
|
395
|
+
writer.writeNumberValue("height", image.height);
|
|
396
|
+
writer.writeStringValue("id", image.id);
|
|
397
|
+
writer.writeStringValue("thumbhash", image.thumbhash);
|
|
398
|
+
writer.writeNumberValue("width", image.width);
|
|
399
|
+
writer.writeAdditionalData(image.additionalData);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Serializes information the current object
|
|
403
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
404
|
+
* @param Post The instance to serialize from.
|
|
405
|
+
* @param writer Serialization writer to use to serialize this model
|
|
406
|
+
*/
|
|
407
|
+
// @ts-ignore
|
|
408
|
+
export function serializePost(writer, post = {}, isSerializingDerivedType = false) {
|
|
409
|
+
if (!post || isSerializingDerivedType) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
writer.writeStringValue("created_at", post.createdAt);
|
|
413
|
+
writer.writeStringValue("creator_id", post.creatorId);
|
|
414
|
+
writer.writeStringValue("description", post.description);
|
|
415
|
+
writer.writeStringValue("feed_id", post.feedId);
|
|
416
|
+
writer.writeStringValue("id", post.id);
|
|
417
|
+
writer.writeObjectValue("image", post.image, serializeImage);
|
|
418
|
+
writer.writeEnumValue("plan_type", post.planType);
|
|
419
|
+
writer.writeEnumValue("type", post.type);
|
|
420
|
+
writer.writeStringValue("updated_at", post.updatedAt);
|
|
421
|
+
writer.writeObjectValue("video", post.video, serializeVideoResponse);
|
|
422
|
+
writer.writeAdditionalData(post.additionalData);
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Serializes information the current object
|
|
426
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
427
|
+
* @param Subtitle The instance to serialize from.
|
|
428
|
+
* @param writer Serialization writer to use to serialize this model
|
|
429
|
+
*/
|
|
430
|
+
// @ts-ignore
|
|
431
|
+
export function serializeSubtitle(writer, subtitle = {}, isSerializingDerivedType = false) {
|
|
432
|
+
if (!subtitle || isSerializingDerivedType) {
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
writer.writeStringValue("created_at", subtitle.createdAt);
|
|
436
|
+
writer.writeStringValue("id", subtitle.id);
|
|
437
|
+
writer.writeStringValue("label", subtitle.label);
|
|
438
|
+
writer.writeStringValue("language_code", subtitle.languageCode);
|
|
439
|
+
writer.writeStringValue("name", subtitle.name);
|
|
440
|
+
writer.writeNumberValue("size", subtitle.size);
|
|
441
|
+
writer.writeStringValue("url", subtitle.url);
|
|
442
|
+
writer.writeStringValue("video_id", subtitle.videoId);
|
|
443
|
+
writer.writeAdditionalData(subtitle.additionalData);
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Serializes information the current object
|
|
447
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
448
|
+
* @param SubtitleDelete The instance to serialize from.
|
|
449
|
+
* @param writer Serialization writer to use to serialize this model
|
|
450
|
+
*/
|
|
451
|
+
// @ts-ignore
|
|
452
|
+
export function serializeSubtitleDelete(writer, subtitleDelete = {}, isSerializingDerivedType = false) {
|
|
453
|
+
if (!subtitleDelete || isSerializingDerivedType) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
writer.writeStringValue("message", subtitleDelete.message);
|
|
457
|
+
writer.writeStringValue("status", subtitleDelete.status);
|
|
458
|
+
writer.writeAdditionalData(subtitleDelete.additionalData);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Serializes information the current object
|
|
462
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
463
|
+
* @param UpdateChaptersRequest The instance to serialize from.
|
|
464
|
+
* @param writer Serialization writer to use to serialize this model
|
|
465
|
+
*/
|
|
466
|
+
// @ts-ignore
|
|
467
|
+
export function serializeUpdateChaptersRequest(writer, updateChaptersRequest = {}, isSerializingDerivedType = false) {
|
|
468
|
+
if (!updateChaptersRequest || isSerializingDerivedType) {
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
writer.writeCollectionOfObjectValues("chapters", updateChaptersRequest.chapters, serializeChapterInput);
|
|
472
|
+
writer.writeAdditionalData(updateChaptersRequest.additionalData);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Serializes information the current object
|
|
476
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
477
|
+
* @param UpdateChaptersResponse The instance to serialize from.
|
|
478
|
+
* @param writer Serialization writer to use to serialize this model
|
|
479
|
+
*/
|
|
480
|
+
// @ts-ignore
|
|
481
|
+
export function serializeUpdateChaptersResponse(writer, updateChaptersResponse = {}, isSerializingDerivedType = false) {
|
|
482
|
+
if (!updateChaptersResponse || isSerializingDerivedType) {
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
writer.writeCollectionOfObjectValues("chapters", updateChaptersResponse.chapters, serializeChapter);
|
|
486
|
+
writer.writeStringValue("video_id", updateChaptersResponse.videoId);
|
|
487
|
+
writer.writeAdditionalData(updateChaptersResponse.additionalData);
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Serializes information the current object
|
|
491
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
492
|
+
* @param Video The instance to serialize from.
|
|
493
|
+
* @param writer Serialization writer to use to serialize this model
|
|
494
|
+
*/
|
|
495
|
+
// @ts-ignore
|
|
496
|
+
export function serializeVideo(writer, video = {}, isSerializingDerivedType = false) {
|
|
497
|
+
if (!video || isSerializingDerivedType) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
writer.writeNumberValue("bitrate", video.bitrate);
|
|
501
|
+
writer.writeCollectionOfObjectValues("chapters", video.chapters, serializeChapter);
|
|
502
|
+
writer.writeStringValue("codec", video.codec);
|
|
503
|
+
writer.writeNumberValue("duration", video.duration);
|
|
504
|
+
writer.writeObjectValue("file", video.file, serializeFile);
|
|
505
|
+
writer.writeStringValue("framerate", video.framerate);
|
|
506
|
+
writer.writeBooleanValue("hdr", video.hdr);
|
|
507
|
+
writer.writeNumberValue("height", video.height);
|
|
508
|
+
writer.writeStringValue("id", video.id);
|
|
509
|
+
writer.writeEnumValue("plan_type", video.planType);
|
|
510
|
+
writer.writeObjectValue("poster", video.poster, serializeImage);
|
|
511
|
+
writer.writeNumberValue("width", video.width);
|
|
512
|
+
writer.writeAdditionalData(video.additionalData);
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Serializes information the current object
|
|
516
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
517
|
+
* @param VideoUploadInitRequest The instance to serialize from.
|
|
518
|
+
* @param writer Serialization writer to use to serialize this model
|
|
519
|
+
*/
|
|
520
|
+
// @ts-ignore
|
|
521
|
+
export function serializeVideoUploadInitRequest(writer, videoUploadInitRequest = {}, isSerializingDerivedType = false) {
|
|
522
|
+
if (!videoUploadInitRequest || isSerializingDerivedType) {
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
writer.writeStringValue("file_name", videoUploadInitRequest.fileName);
|
|
526
|
+
writer.writeStringValue("image_format", videoUploadInitRequest.imageFormat);
|
|
527
|
+
writer.writeEnumValue("video_quality", videoUploadInitRequest.videoQuality);
|
|
528
|
+
writer.writeAdditionalData(videoUploadInitRequest.additionalData);
|
|
529
|
+
}
|
|
530
|
+
export const FileStatusObject = {
|
|
531
|
+
Uploading: "uploading",
|
|
532
|
+
Uploaded: "uploaded",
|
|
533
|
+
Processing: "processing",
|
|
534
|
+
Preparing: "preparing",
|
|
535
|
+
Ready: "ready",
|
|
536
|
+
ErrorEscaped: "error",
|
|
537
|
+
};
|
|
538
|
+
export const PostTypeObject = {
|
|
539
|
+
Image: "image",
|
|
540
|
+
Video: "video",
|
|
541
|
+
};
|
|
542
|
+
/* tslint:enable */
|
|
543
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Upload completion request
|
|
4
|
+
*/
|
|
5
|
+
export interface CompleteRequest extends AdditionalDataHolder, Parsable {
|
|
6
|
+
/**
|
|
7
|
+
* The attached_to_video property
|
|
8
|
+
*/
|
|
9
|
+
attachedToVideo?: boolean | null;
|
|
10
|
+
/**
|
|
11
|
+
* The image_id property
|
|
12
|
+
*/
|
|
13
|
+
imageId?: string | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
17
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
18
|
+
* @returns {CompleteRequest}
|
|
19
|
+
*/
|
|
20
|
+
export declare function createCompleteRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
23
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
24
|
+
* @returns {InitResponse}
|
|
25
|
+
*/
|
|
26
|
+
export declare function createInitResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
29
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
30
|
+
* @returns {UploadInitRequest}
|
|
31
|
+
*/
|
|
32
|
+
export declare function createUploadInitRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
33
|
+
/**
|
|
34
|
+
* The deserialization information for the current model
|
|
35
|
+
* @param CompleteRequest The instance to deserialize into.
|
|
36
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
37
|
+
*/
|
|
38
|
+
export declare function deserializeIntoCompleteRequest(completeRequest?: Partial<CompleteRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
39
|
+
/**
|
|
40
|
+
* The deserialization information for the current model
|
|
41
|
+
* @param InitResponse The instance to deserialize into.
|
|
42
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
43
|
+
*/
|
|
44
|
+
export declare function deserializeIntoInitResponse(initResponse?: Partial<InitResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
45
|
+
/**
|
|
46
|
+
* The deserialization information for the current model
|
|
47
|
+
* @param UploadInitRequest The instance to deserialize into.
|
|
48
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
49
|
+
*/
|
|
50
|
+
export declare function deserializeIntoUploadInitRequest(uploadInitRequest?: Partial<UploadInitRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
51
|
+
export interface InitResponse extends AdditionalDataHolder, Parsable {
|
|
52
|
+
/**
|
|
53
|
+
* The image_id property
|
|
54
|
+
*/
|
|
55
|
+
imageId?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The presigned_url property
|
|
58
|
+
*/
|
|
59
|
+
presignedUrl?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The upload_expires property
|
|
62
|
+
*/
|
|
63
|
+
uploadExpires?: number | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Serializes information the current object
|
|
67
|
+
* @param CompleteRequest The instance to serialize from.
|
|
68
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
69
|
+
* @param writer Serialization writer to use to serialize this model
|
|
70
|
+
*/
|
|
71
|
+
export declare function serializeCompleteRequest(writer: SerializationWriter, completeRequest?: Partial<CompleteRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
72
|
+
/**
|
|
73
|
+
* Serializes information the current object
|
|
74
|
+
* @param InitResponse The instance to serialize from.
|
|
75
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
76
|
+
* @param writer Serialization writer to use to serialize this model
|
|
77
|
+
*/
|
|
78
|
+
export declare function serializeInitResponse(writer: SerializationWriter, initResponse?: Partial<InitResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
79
|
+
/**
|
|
80
|
+
* Serializes information the current object
|
|
81
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
82
|
+
* @param UploadInitRequest The instance to serialize from.
|
|
83
|
+
* @param writer Serialization writer to use to serialize this model
|
|
84
|
+
*/
|
|
85
|
+
export declare function serializeUploadInitRequest(writer: SerializationWriter, uploadInitRequest?: Partial<UploadInitRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
86
|
+
/**
|
|
87
|
+
* Upload initialization request
|
|
88
|
+
*/
|
|
89
|
+
export interface UploadInitRequest extends AdditionalDataHolder, Parsable {
|
|
90
|
+
/**
|
|
91
|
+
* The format property
|
|
92
|
+
*/
|
|
93
|
+
format?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The name property
|
|
96
|
+
*/
|
|
97
|
+
name?: string | null;
|
|
98
|
+
}
|