@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,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
3
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
4
|
+
* @returns {CompleteRequest}
|
|
5
|
+
*/
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
export function createCompleteRequestFromDiscriminatorValue(parseNode) {
|
|
8
|
+
return deserializeIntoCompleteRequest;
|
|
9
|
+
}
|
|
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 {InitResponse}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function createInitResponseFromDiscriminatorValue(parseNode) {
|
|
17
|
+
return deserializeIntoInitResponse;
|
|
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 {UploadInitRequest}
|
|
23
|
+
*/
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export function createUploadInitRequestFromDiscriminatorValue(parseNode) {
|
|
26
|
+
return deserializeIntoUploadInitRequest;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The deserialization information for the current model
|
|
30
|
+
* @param CompleteRequest The instance to deserialize into.
|
|
31
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
32
|
+
*/
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export function deserializeIntoCompleteRequest(completeRequest = {}) {
|
|
35
|
+
return {
|
|
36
|
+
"attached_to_video": n => { completeRequest.attachedToVideo = n.getBooleanValue(); },
|
|
37
|
+
"image_id": n => { completeRequest.imageId = n.getStringValue(); },
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The deserialization information for the current model
|
|
42
|
+
* @param InitResponse The instance to deserialize into.
|
|
43
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
44
|
+
*/
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export function deserializeIntoInitResponse(initResponse = {}) {
|
|
47
|
+
return {
|
|
48
|
+
"image_id": n => { initResponse.imageId = n.getStringValue(); },
|
|
49
|
+
"presigned_url": n => { initResponse.presignedUrl = n.getStringValue(); },
|
|
50
|
+
"upload_expires": n => { initResponse.uploadExpires = n.getNumberValue(); },
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The deserialization information for the current model
|
|
55
|
+
* @param UploadInitRequest The instance to deserialize into.
|
|
56
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
57
|
+
*/
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
export function deserializeIntoUploadInitRequest(uploadInitRequest = {}) {
|
|
60
|
+
return {
|
|
61
|
+
"format": n => { uploadInitRequest.format = n.getStringValue(); },
|
|
62
|
+
"name": n => { uploadInitRequest.name = n.getStringValue(); },
|
|
63
|
+
};
|
|
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
|
+
// @ts-ignore
|
|
72
|
+
export function serializeCompleteRequest(writer, completeRequest = {}, isSerializingDerivedType = false) {
|
|
73
|
+
if (!completeRequest || isSerializingDerivedType) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
writer.writeBooleanValue("attached_to_video", completeRequest.attachedToVideo);
|
|
77
|
+
writer.writeStringValue("image_id", completeRequest.imageId);
|
|
78
|
+
writer.writeAdditionalData(completeRequest.additionalData);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Serializes information the current object
|
|
82
|
+
* @param InitResponse The instance to serialize from.
|
|
83
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
84
|
+
* @param writer Serialization writer to use to serialize this model
|
|
85
|
+
*/
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
export function serializeInitResponse(writer, initResponse = {}, isSerializingDerivedType = false) {
|
|
88
|
+
if (!initResponse || isSerializingDerivedType) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
writer.writeStringValue("image_id", initResponse.imageId);
|
|
92
|
+
writer.writeStringValue("presigned_url", initResponse.presignedUrl);
|
|
93
|
+
writer.writeNumberValue("upload_expires", initResponse.uploadExpires);
|
|
94
|
+
writer.writeAdditionalData(initResponse.additionalData);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Serializes information the current object
|
|
98
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
99
|
+
* @param UploadInitRequest The instance to serialize from.
|
|
100
|
+
* @param writer Serialization writer to use to serialize this model
|
|
101
|
+
*/
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
export function serializeUploadInitRequest(writer, uploadInitRequest = {}, isSerializingDerivedType = false) {
|
|
104
|
+
if (!uploadInitRequest || isSerializingDerivedType) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
writer.writeStringValue("format", uploadInitRequest.format);
|
|
108
|
+
writer.writeStringValue("name", uploadInitRequest.name);
|
|
109
|
+
writer.writeAdditionalData(uploadInitRequest.additionalData);
|
|
110
|
+
}
|
|
111
|
+
/* tslint:enable */
|
|
112
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
4
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
5
|
+
* @returns {LanguageResponse}
|
|
6
|
+
*/
|
|
7
|
+
export declare function createLanguageResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
8
|
+
/**
|
|
9
|
+
* The deserialization information for the current model
|
|
10
|
+
* @param LanguageResponse The instance to deserialize into.
|
|
11
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
12
|
+
*/
|
|
13
|
+
export declare function deserializeIntoLanguageResponse(languageResponse?: Partial<LanguageResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
14
|
+
export interface LanguageResponse extends AdditionalDataHolder, Parsable {
|
|
15
|
+
/**
|
|
16
|
+
* The code property
|
|
17
|
+
*/
|
|
18
|
+
code?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The name property
|
|
21
|
+
*/
|
|
22
|
+
name?: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Serializes information the current object
|
|
26
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
27
|
+
* @param LanguageResponse The instance to serialize from.
|
|
28
|
+
* @param writer Serialization writer to use to serialize this model
|
|
29
|
+
*/
|
|
30
|
+
export declare function serializeLanguageResponse(writer: SerializationWriter, languageResponse?: Partial<LanguageResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
3
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
4
|
+
* @returns {LanguageResponse}
|
|
5
|
+
*/
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
export function createLanguageResponseFromDiscriminatorValue(parseNode) {
|
|
8
|
+
return deserializeIntoLanguageResponse;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The deserialization information for the current model
|
|
12
|
+
* @param LanguageResponse The instance to deserialize into.
|
|
13
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function deserializeIntoLanguageResponse(languageResponse = {}) {
|
|
17
|
+
return {
|
|
18
|
+
"code": n => { languageResponse.code = n.getStringValue(); },
|
|
19
|
+
"name": n => { languageResponse.name = n.getStringValue(); },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Serializes information the current object
|
|
24
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
25
|
+
* @param LanguageResponse The instance to serialize from.
|
|
26
|
+
* @param writer Serialization writer to use to serialize this model
|
|
27
|
+
*/
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
export function serializeLanguageResponse(writer, languageResponse = {}, isSerializingDerivedType = false) {
|
|
30
|
+
if (!languageResponse || isSerializingDerivedType) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
writer.writeStringValue("code", languageResponse.code);
|
|
34
|
+
writer.writeStringValue("name", languageResponse.name);
|
|
35
|
+
writer.writeAdditionalData(languageResponse.additionalData);
|
|
36
|
+
}
|
|
37
|
+
/* tslint:enable */
|
|
38
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { type Image, type Post, type Video } from '../index.js';
|
|
2
|
+
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns {PaginatedResponseImage}
|
|
7
|
+
*/
|
|
8
|
+
export declare function createPaginatedResponseImageFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns {PaginatedResponsePost}
|
|
13
|
+
*/
|
|
14
|
+
export declare function createPaginatedResponsePostFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
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 {PaginatedResponseVideo}
|
|
19
|
+
*/
|
|
20
|
+
export declare function createPaginatedResponseVideoFromDiscriminatorValue(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 {Pagination}
|
|
25
|
+
*/
|
|
26
|
+
export declare function createPaginationFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @param PaginatedResponseImage The instance to deserialize into.
|
|
30
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
31
|
+
*/
|
|
32
|
+
export declare function deserializeIntoPaginatedResponseImage(paginatedResponseImage?: Partial<PaginatedResponseImage> | undefined): Record<string, (node: ParseNode) => void>;
|
|
33
|
+
/**
|
|
34
|
+
* The deserialization information for the current model
|
|
35
|
+
* @param PaginatedResponsePost The instance to deserialize into.
|
|
36
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
37
|
+
*/
|
|
38
|
+
export declare function deserializeIntoPaginatedResponsePost(paginatedResponsePost?: Partial<PaginatedResponsePost> | undefined): Record<string, (node: ParseNode) => void>;
|
|
39
|
+
/**
|
|
40
|
+
* The deserialization information for the current model
|
|
41
|
+
* @param PaginatedResponseVideo The instance to deserialize into.
|
|
42
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
43
|
+
*/
|
|
44
|
+
export declare function deserializeIntoPaginatedResponseVideo(paginatedResponseVideo?: Partial<PaginatedResponseVideo> | undefined): Record<string, (node: ParseNode) => void>;
|
|
45
|
+
/**
|
|
46
|
+
* The deserialization information for the current model
|
|
47
|
+
* @param Pagination The instance to deserialize into.
|
|
48
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
49
|
+
*/
|
|
50
|
+
export declare function deserializeIntoPagination(pagination?: Partial<Pagination> | undefined): Record<string, (node: ParseNode) => void>;
|
|
51
|
+
export interface PaginatedResponseImage extends AdditionalDataHolder, Parsable {
|
|
52
|
+
/**
|
|
53
|
+
* Data contains the slice of items for the current request.
|
|
54
|
+
*/
|
|
55
|
+
data?: Image[] | null;
|
|
56
|
+
/**
|
|
57
|
+
* Pagination data for the request.
|
|
58
|
+
*/
|
|
59
|
+
pagination?: Pagination | null;
|
|
60
|
+
}
|
|
61
|
+
export interface PaginatedResponsePost extends AdditionalDataHolder, Parsable {
|
|
62
|
+
/**
|
|
63
|
+
* Data contains the slice of items for the current request.
|
|
64
|
+
*/
|
|
65
|
+
data?: Post[] | null;
|
|
66
|
+
/**
|
|
67
|
+
* Pagination data for the request.
|
|
68
|
+
*/
|
|
69
|
+
pagination?: Pagination | null;
|
|
70
|
+
}
|
|
71
|
+
export interface PaginatedResponseVideo extends AdditionalDataHolder, Parsable {
|
|
72
|
+
/**
|
|
73
|
+
* Data contains the slice of items for the current request.
|
|
74
|
+
*/
|
|
75
|
+
data?: Video[] | null;
|
|
76
|
+
/**
|
|
77
|
+
* Pagination data for the request.
|
|
78
|
+
*/
|
|
79
|
+
pagination?: Pagination | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Pagination data for the request.
|
|
83
|
+
*/
|
|
84
|
+
export interface Pagination extends AdditionalDataHolder, Parsable {
|
|
85
|
+
/**
|
|
86
|
+
* Maximum number of items to return in a single request.
|
|
87
|
+
*/
|
|
88
|
+
limit?: number | null;
|
|
89
|
+
/**
|
|
90
|
+
* Starting point of the result set.
|
|
91
|
+
*/
|
|
92
|
+
offset?: number | null;
|
|
93
|
+
/**
|
|
94
|
+
* The total number of available items in the full list.
|
|
95
|
+
*/
|
|
96
|
+
total?: number | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Serializes information the current object
|
|
100
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
101
|
+
* @param PaginatedResponseImage The instance to serialize from.
|
|
102
|
+
* @param writer Serialization writer to use to serialize this model
|
|
103
|
+
*/
|
|
104
|
+
export declare function serializePaginatedResponseImage(writer: SerializationWriter, paginatedResponseImage?: Partial<PaginatedResponseImage> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
105
|
+
/**
|
|
106
|
+
* Serializes information the current object
|
|
107
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
108
|
+
* @param PaginatedResponsePost The instance to serialize from.
|
|
109
|
+
* @param writer Serialization writer to use to serialize this model
|
|
110
|
+
*/
|
|
111
|
+
export declare function serializePaginatedResponsePost(writer: SerializationWriter, paginatedResponsePost?: Partial<PaginatedResponsePost> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
112
|
+
/**
|
|
113
|
+
* Serializes information the current object
|
|
114
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
115
|
+
* @param PaginatedResponseVideo The instance to serialize from.
|
|
116
|
+
* @param writer Serialization writer to use to serialize this model
|
|
117
|
+
*/
|
|
118
|
+
export declare function serializePaginatedResponseVideo(writer: SerializationWriter, paginatedResponseVideo?: Partial<PaginatedResponseVideo> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
119
|
+
/**
|
|
120
|
+
* Serializes information the current object
|
|
121
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
122
|
+
* @param Pagination The instance to serialize from.
|
|
123
|
+
* @param writer Serialization writer to use to serialize this model
|
|
124
|
+
*/
|
|
125
|
+
export declare function serializePagination(writer: SerializationWriter, pagination?: Partial<Pagination> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createImageFromDiscriminatorValue, createPostFromDiscriminatorValue, createVideoFromDiscriminatorValue, serializeImage, serializePost, serializeVideo } from '../index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
8
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
9
|
+
* @returns {PaginatedResponseImage}
|
|
10
|
+
*/
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export function createPaginatedResponseImageFromDiscriminatorValue(parseNode) {
|
|
13
|
+
return deserializeIntoPaginatedResponseImage;
|
|
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 {PaginatedResponsePost}
|
|
19
|
+
*/
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export function createPaginatedResponsePostFromDiscriminatorValue(parseNode) {
|
|
22
|
+
return deserializeIntoPaginatedResponsePost;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
26
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
27
|
+
* @returns {PaginatedResponseVideo}
|
|
28
|
+
*/
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export function createPaginatedResponseVideoFromDiscriminatorValue(parseNode) {
|
|
31
|
+
return deserializeIntoPaginatedResponseVideo;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
35
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
36
|
+
* @returns {Pagination}
|
|
37
|
+
*/
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
export function createPaginationFromDiscriminatorValue(parseNode) {
|
|
40
|
+
return deserializeIntoPagination;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The deserialization information for the current model
|
|
44
|
+
* @param PaginatedResponseImage The instance to deserialize into.
|
|
45
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
46
|
+
*/
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
export function deserializeIntoPaginatedResponseImage(paginatedResponseImage = {}) {
|
|
49
|
+
return {
|
|
50
|
+
"data": n => { paginatedResponseImage.data = n.getCollectionOfObjectValues(createImageFromDiscriminatorValue); },
|
|
51
|
+
"pagination": n => { paginatedResponseImage.pagination = n.getObjectValue(createPaginationFromDiscriminatorValue); },
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The deserialization information for the current model
|
|
56
|
+
* @param PaginatedResponsePost The instance to deserialize into.
|
|
57
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
58
|
+
*/
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
export function deserializeIntoPaginatedResponsePost(paginatedResponsePost = {}) {
|
|
61
|
+
return {
|
|
62
|
+
"data": n => { paginatedResponsePost.data = n.getCollectionOfObjectValues(createPostFromDiscriminatorValue); },
|
|
63
|
+
"pagination": n => { paginatedResponsePost.pagination = n.getObjectValue(createPaginationFromDiscriminatorValue); },
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The deserialization information for the current model
|
|
68
|
+
* @param PaginatedResponseVideo The instance to deserialize into.
|
|
69
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
70
|
+
*/
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
export function deserializeIntoPaginatedResponseVideo(paginatedResponseVideo = {}) {
|
|
73
|
+
return {
|
|
74
|
+
"data": n => { paginatedResponseVideo.data = n.getCollectionOfObjectValues(createVideoFromDiscriminatorValue); },
|
|
75
|
+
"pagination": n => { paginatedResponseVideo.pagination = n.getObjectValue(createPaginationFromDiscriminatorValue); },
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The deserialization information for the current model
|
|
80
|
+
* @param Pagination The instance to deserialize into.
|
|
81
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
82
|
+
*/
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
export function deserializeIntoPagination(pagination = {}) {
|
|
85
|
+
return {
|
|
86
|
+
"limit": n => { pagination.limit = n.getNumberValue(); },
|
|
87
|
+
"offset": n => { pagination.offset = n.getNumberValue(); },
|
|
88
|
+
"total": n => { pagination.total = n.getNumberValue(); },
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Serializes information the current object
|
|
93
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
94
|
+
* @param PaginatedResponseImage The instance to serialize from.
|
|
95
|
+
* @param writer Serialization writer to use to serialize this model
|
|
96
|
+
*/
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
export function serializePaginatedResponseImage(writer, paginatedResponseImage = {}, isSerializingDerivedType = false) {
|
|
99
|
+
if (!paginatedResponseImage || isSerializingDerivedType) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
writer.writeCollectionOfObjectValues("data", paginatedResponseImage.data, serializeImage);
|
|
103
|
+
writer.writeObjectValue("pagination", paginatedResponseImage.pagination, serializePagination);
|
|
104
|
+
writer.writeAdditionalData(paginatedResponseImage.additionalData);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Serializes information the current object
|
|
108
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
109
|
+
* @param PaginatedResponsePost The instance to serialize from.
|
|
110
|
+
* @param writer Serialization writer to use to serialize this model
|
|
111
|
+
*/
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
export function serializePaginatedResponsePost(writer, paginatedResponsePost = {}, isSerializingDerivedType = false) {
|
|
114
|
+
if (!paginatedResponsePost || isSerializingDerivedType) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
writer.writeCollectionOfObjectValues("data", paginatedResponsePost.data, serializePost);
|
|
118
|
+
writer.writeObjectValue("pagination", paginatedResponsePost.pagination, serializePagination);
|
|
119
|
+
writer.writeAdditionalData(paginatedResponsePost.additionalData);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Serializes information the current object
|
|
123
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
124
|
+
* @param PaginatedResponseVideo The instance to serialize from.
|
|
125
|
+
* @param writer Serialization writer to use to serialize this model
|
|
126
|
+
*/
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
export function serializePaginatedResponseVideo(writer, paginatedResponseVideo = {}, isSerializingDerivedType = false) {
|
|
129
|
+
if (!paginatedResponseVideo || isSerializingDerivedType) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
writer.writeCollectionOfObjectValues("data", paginatedResponseVideo.data, serializeVideo);
|
|
133
|
+
writer.writeObjectValue("pagination", paginatedResponseVideo.pagination, serializePagination);
|
|
134
|
+
writer.writeAdditionalData(paginatedResponseVideo.additionalData);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Serializes information the current object
|
|
138
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
139
|
+
* @param Pagination The instance to serialize from.
|
|
140
|
+
* @param writer Serialization writer to use to serialize this model
|
|
141
|
+
*/
|
|
142
|
+
// @ts-ignore
|
|
143
|
+
export function serializePagination(writer, pagination = {}, isSerializingDerivedType = false) {
|
|
144
|
+
if (!pagination || isSerializingDerivedType) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
writer.writeNumberValue("limit", pagination.limit);
|
|
148
|
+
writer.writeNumberValue("offset", pagination.offset);
|
|
149
|
+
writer.writeNumberValue("total", pagination.total);
|
|
150
|
+
writer.writeAdditionalData(pagination.additionalData);
|
|
151
|
+
}
|
|
152
|
+
/* tslint:enable */
|
|
153
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type FeedsRequestBuilder } from './feeds/index.js';
|
|
2
|
+
import { type ImagesRequestBuilder } from './images/index.js';
|
|
3
|
+
import { type VideosRequestBuilder } from './videos/index.js';
|
|
4
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
5
|
+
/**
|
|
6
|
+
* Instantiates a new {@link RixlClient} and sets the default values.
|
|
7
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createRixlClient(requestAdapter: RequestAdapter): RixlClient;
|
|
10
|
+
/**
|
|
11
|
+
* The main entry point of the SDK, exposes the configuration and the fluent API.
|
|
12
|
+
*/
|
|
13
|
+
export interface RixlClient extends BaseRequestBuilder<RixlClient> {
|
|
14
|
+
/**
|
|
15
|
+
* The feeds property
|
|
16
|
+
*/
|
|
17
|
+
get feeds(): FeedsRequestBuilder;
|
|
18
|
+
/**
|
|
19
|
+
* The images property
|
|
20
|
+
*/
|
|
21
|
+
get images(): ImagesRequestBuilder;
|
|
22
|
+
/**
|
|
23
|
+
* The videos property
|
|
24
|
+
*/
|
|
25
|
+
get videos(): VideosRequestBuilder;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Uri template for the request builder.
|
|
29
|
+
*/
|
|
30
|
+
export declare const RixlClientUriTemplate = "{+baseurl}";
|
|
31
|
+
/**
|
|
32
|
+
* Metadata for all the navigation properties in the request builder.
|
|
33
|
+
*/
|
|
34
|
+
export declare const RixlClientNavigationMetadata: Record<Exclude<keyof RixlClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { FeedsRequestBuilderNavigationMetadata } from './feeds/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { ImagesRequestBuilderNavigationMetadata, ImagesRequestBuilderRequestsMetadata } from './images/index.js';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { VideosRequestBuilderNavigationMetadata, VideosRequestBuilderRequestsMetadata } from './videos/index.js';
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
import { apiClientProxifier } from '@microsoft/kiota-abstractions';
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
import { FormParseNodeFactory, FormSerializationWriterFactory } from '@microsoft/kiota-serialization-form';
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import { JsonParseNodeFactory, JsonSerializationWriterFactory } from '@microsoft/kiota-serialization-json';
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { MultipartSerializationWriterFactory } from '@microsoft/kiota-serialization-multipart';
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { TextParseNodeFactory, TextSerializationWriterFactory } from '@microsoft/kiota-serialization-text';
|
|
20
|
+
/**
|
|
21
|
+
* Instantiates a new {@link RixlClient} and sets the default values.
|
|
22
|
+
* @param requestAdapter The request adapter to use to execute the requests.
|
|
23
|
+
*/
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export function createRixlClient(requestAdapter) {
|
|
26
|
+
if (requestAdapter === undefined) {
|
|
27
|
+
throw new Error("requestAdapter cannot be undefined");
|
|
28
|
+
}
|
|
29
|
+
const serializationWriterFactory = requestAdapter.getSerializationWriterFactory();
|
|
30
|
+
const parseNodeFactoryRegistry = requestAdapter.getParseNodeFactory();
|
|
31
|
+
const backingStoreFactory = requestAdapter.getBackingStoreFactory();
|
|
32
|
+
if (parseNodeFactoryRegistry.registerDefaultDeserializer) {
|
|
33
|
+
parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory);
|
|
34
|
+
parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory);
|
|
35
|
+
parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory);
|
|
36
|
+
}
|
|
37
|
+
if (serializationWriterFactory.registerDefaultSerializer) {
|
|
38
|
+
serializationWriterFactory.registerDefaultSerializer(JsonSerializationWriterFactory);
|
|
39
|
+
serializationWriterFactory.registerDefaultSerializer(TextSerializationWriterFactory);
|
|
40
|
+
serializationWriterFactory.registerDefaultSerializer(FormSerializationWriterFactory);
|
|
41
|
+
serializationWriterFactory.registerDefaultSerializer(MultipartSerializationWriterFactory);
|
|
42
|
+
}
|
|
43
|
+
const pathParameters = {
|
|
44
|
+
"baseurl": requestAdapter.baseUrl,
|
|
45
|
+
};
|
|
46
|
+
return apiClientProxifier(requestAdapter, pathParameters, RixlClientNavigationMetadata, undefined);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Uri template for the request builder.
|
|
50
|
+
*/
|
|
51
|
+
export const RixlClientUriTemplate = "{+baseurl}";
|
|
52
|
+
/**
|
|
53
|
+
* Metadata for all the navigation properties in the request builder.
|
|
54
|
+
*/
|
|
55
|
+
export const RixlClientNavigationMetadata = {
|
|
56
|
+
feeds: {
|
|
57
|
+
navigationMetadata: FeedsRequestBuilderNavigationMetadata,
|
|
58
|
+
},
|
|
59
|
+
images: {
|
|
60
|
+
requestsMetadata: ImagesRequestBuilderRequestsMetadata,
|
|
61
|
+
navigationMetadata: ImagesRequestBuilderNavigationMetadata,
|
|
62
|
+
},
|
|
63
|
+
videos: {
|
|
64
|
+
requestsMetadata: VideosRequestBuilderRequestsMetadata,
|
|
65
|
+
navigationMetadata: VideosRequestBuilderNavigationMetadata,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
/* tslint:enable */
|
|
69
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type PaginatedResponseVideo } from '../models/pagination/index.js';
|
|
2
|
+
import { type WithVideoItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type LanguagesRequestBuilder } from './languages/index.js';
|
|
4
|
+
import { type UploadRequestBuilder } from './upload/index.js';
|
|
5
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
6
|
+
/**
|
|
7
|
+
* Builds and executes requests for operations under /videos
|
|
8
|
+
*/
|
|
9
|
+
export interface VideosRequestBuilder extends BaseRequestBuilder<VideosRequestBuilder> {
|
|
10
|
+
/**
|
|
11
|
+
* The languages property
|
|
12
|
+
*/
|
|
13
|
+
get languages(): LanguagesRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* The upload property
|
|
16
|
+
*/
|
|
17
|
+
get upload(): UploadRequestBuilder;
|
|
18
|
+
/**
|
|
19
|
+
* Gets an item from the rixlSdk.videos.item collection
|
|
20
|
+
* @param videoId Video ID
|
|
21
|
+
* @returns {WithVideoItemRequestBuilder}
|
|
22
|
+
*/
|
|
23
|
+
byVideoId(videoId: string): WithVideoItemRequestBuilder;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve all videos for a specific project, with pagination and sorting.
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {Promise<PaginatedResponseVideo>}
|
|
28
|
+
* @throws {ErrorResponse} error when the service returns a 400 status code
|
|
29
|
+
* @throws {ErrorResponse} error when the service returns a 401 status code
|
|
30
|
+
* @throws {ErrorResponse} error when the service returns a 403 status code
|
|
31
|
+
* @throws {ErrorResponse} error when the service returns a 500 status code
|
|
32
|
+
*/
|
|
33
|
+
get(requestConfiguration?: RequestConfiguration<VideosRequestBuilderGetQueryParameters> | undefined): Promise<PaginatedResponseVideo | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve all videos for a specific project, with pagination and sorting.
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns {RequestInformation}
|
|
38
|
+
*/
|
|
39
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<VideosRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve all videos for a specific project, with pagination and sorting.
|
|
43
|
+
*/
|
|
44
|
+
export interface VideosRequestBuilderGetQueryParameters {
|
|
45
|
+
/**
|
|
46
|
+
* Maximum number of items to return in a single request. <br> **Default:** `25`
|
|
47
|
+
*/
|
|
48
|
+
limit?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Starting point of the result set. <br>To get page 2 with a limit of 25, set `offset` to `25`. <br> **Default:** `0`
|
|
51
|
+
*/
|
|
52
|
+
offset?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Sort order (asc, desc)
|
|
55
|
+
*/
|
|
56
|
+
order?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Field to sort by (created_at, name, size, updated_at, duration)
|
|
59
|
+
*/
|
|
60
|
+
sort?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Uri template for the request builder.
|
|
64
|
+
*/
|
|
65
|
+
export declare const VideosRequestBuilderUriTemplate = "{+baseurl}/videos{?limit*,offset*,order*,sort*}";
|
|
66
|
+
/**
|
|
67
|
+
* Metadata for all the navigation properties in the request builder.
|
|
68
|
+
*/
|
|
69
|
+
export declare const VideosRequestBuilderNavigationMetadata: Record<Exclude<keyof VideosRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
70
|
+
/**
|
|
71
|
+
* Metadata for all the requests in the request builder.
|
|
72
|
+
*/
|
|
73
|
+
export declare const VideosRequestBuilderRequestsMetadata: RequestsMetadata;
|