@atlaskit/media-client 25.0.1 → 25.0.3
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/CHANGELOG.md +12 -0
- package/dist/cjs/client/media-store/MediaStore.js +631 -0
- package/dist/cjs/client/media-store/index.js +19 -627
- package/dist/cjs/client/media-store/types.js +5 -0
- package/dist/es2019/client/media-store/MediaStore.js +385 -0
- package/dist/es2019/client/media-store/index.js +1 -385
- package/dist/es2019/client/media-store/types.js +1 -0
- package/dist/esm/client/media-store/MediaStore.js +624 -0
- package/dist/esm/client/media-store/index.js +1 -624
- package/dist/esm/client/media-store/types.js +1 -0
- package/dist/types/client/media-store/MediaStore.d.ts +34 -0
- package/dist/types/client/media-store/index.d.ts +2 -166
- package/dist/types/client/media-store/types.d.ts +161 -0
- package/dist/types-ts4.5/client/media-store/MediaStore.d.ts +34 -0
- package/dist/types-ts4.5/client/media-store/index.d.ts +2 -166
- package/dist/types-ts4.5/client/media-store/types.d.ts +161 -0
- package/package.json +2 -2
- package/report.api.md +120 -1
- package/tmp/api-report-tmp.d.ts +47 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Auth, AsapBasedAuth, AuthContext, ClientAltBasedAuth } from '@atlaskit/media-core';
|
|
2
|
+
import { MediaTraceContext } from '@atlaskit/media-common';
|
|
3
|
+
import { MediaFileArtifacts } from '@atlaskit/media-state';
|
|
4
|
+
import { MediaItemDetails, MediaChunksProbe, MediaFile, MediaUpload } from '../../models/media';
|
|
5
|
+
import { ClientOptions, RequestHeaders, RequestMethod, RequestParams, RequestMetadata } from '../../utils/request/types';
|
|
6
|
+
export interface ResponseFileItem {
|
|
7
|
+
id: string;
|
|
8
|
+
type: 'file';
|
|
9
|
+
details: MediaItemDetails;
|
|
10
|
+
collection?: string;
|
|
11
|
+
metadataTraceContext?: MediaTraceContext;
|
|
12
|
+
}
|
|
13
|
+
export interface ItemsPayload {
|
|
14
|
+
items: ResponseFileItem[];
|
|
15
|
+
}
|
|
16
|
+
export type ImageMetadataArtifact = {
|
|
17
|
+
url?: string;
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
size?: number;
|
|
21
|
+
};
|
|
22
|
+
export interface ImageMetadata {
|
|
23
|
+
pending: boolean;
|
|
24
|
+
preview?: ImageMetadataArtifact;
|
|
25
|
+
original?: ImageMetadataArtifact;
|
|
26
|
+
}
|
|
27
|
+
export interface MediaStoreResponse<Data> {
|
|
28
|
+
readonly data: Data;
|
|
29
|
+
}
|
|
30
|
+
export type MediaStoreRequestOptions = RequestMetadata & {
|
|
31
|
+
readonly method?: RequestMethod;
|
|
32
|
+
readonly authContext?: AuthContext;
|
|
33
|
+
readonly params?: RequestParams;
|
|
34
|
+
readonly headers?: RequestHeaders;
|
|
35
|
+
readonly body?: any;
|
|
36
|
+
readonly clientOptions?: ClientOptions;
|
|
37
|
+
readonly traceContext?: MediaTraceContext;
|
|
38
|
+
};
|
|
39
|
+
export type MediaStoreCreateFileFromUploadParams = {
|
|
40
|
+
readonly collection?: string;
|
|
41
|
+
readonly occurrenceKey?: string;
|
|
42
|
+
readonly expireAfter?: number;
|
|
43
|
+
readonly replaceFileId?: string;
|
|
44
|
+
readonly skipConversions?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type MediaStoreCreateFileParams = {
|
|
47
|
+
readonly occurrenceKey?: string;
|
|
48
|
+
readonly collection?: string;
|
|
49
|
+
};
|
|
50
|
+
export interface MediaStoreTouchFileParams {
|
|
51
|
+
readonly collection?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface TouchFileDescriptor {
|
|
54
|
+
fileId: string;
|
|
55
|
+
collection?: string;
|
|
56
|
+
occurrenceKey?: string;
|
|
57
|
+
expireAfter?: number;
|
|
58
|
+
deletable?: boolean;
|
|
59
|
+
size?: number;
|
|
60
|
+
}
|
|
61
|
+
export interface MediaStoreTouchFileBody {
|
|
62
|
+
descriptors: TouchFileDescriptor[];
|
|
63
|
+
}
|
|
64
|
+
export type MediaStoreCreateFileFromBinaryParams = {
|
|
65
|
+
readonly replaceFileId?: string;
|
|
66
|
+
readonly collection?: string;
|
|
67
|
+
readonly occurrenceKey?: string;
|
|
68
|
+
readonly expireAfter?: number;
|
|
69
|
+
readonly skipConversions?: boolean;
|
|
70
|
+
readonly name?: string;
|
|
71
|
+
};
|
|
72
|
+
export type MediaStoreCreateFileFromUploadConditions = {
|
|
73
|
+
readonly hash?: string;
|
|
74
|
+
readonly size?: number;
|
|
75
|
+
};
|
|
76
|
+
export type MediaStoreCreateFileFromUploadBody = {
|
|
77
|
+
readonly uploadId: string;
|
|
78
|
+
readonly name?: string;
|
|
79
|
+
readonly mimeType?: string;
|
|
80
|
+
readonly conditions?: MediaStoreCreateFileFromUploadConditions;
|
|
81
|
+
};
|
|
82
|
+
export type MediaStoreGetFileParams = {
|
|
83
|
+
readonly version?: number;
|
|
84
|
+
readonly collection?: string;
|
|
85
|
+
};
|
|
86
|
+
export type MediaStoreGetFileImageParams = {
|
|
87
|
+
readonly allowAnimated?: boolean;
|
|
88
|
+
readonly version?: number;
|
|
89
|
+
readonly collection?: string;
|
|
90
|
+
readonly width?: number;
|
|
91
|
+
readonly height?: number;
|
|
92
|
+
readonly mode?: 'fit' | 'full-fit' | 'crop';
|
|
93
|
+
readonly upscale?: boolean;
|
|
94
|
+
readonly 'max-age'?: number;
|
|
95
|
+
};
|
|
96
|
+
export interface SourceFile {
|
|
97
|
+
id: string;
|
|
98
|
+
owner: ClientAltBasedAuth | AsapBasedAuth;
|
|
99
|
+
collection?: string;
|
|
100
|
+
version?: number;
|
|
101
|
+
}
|
|
102
|
+
export type MediaStoreCopyFileWithTokenBody = {
|
|
103
|
+
sourceFile: SourceFile;
|
|
104
|
+
};
|
|
105
|
+
export type MediaStoreCopyFileWithTokenParams = {
|
|
106
|
+
readonly collection?: string;
|
|
107
|
+
readonly replaceFileId?: string;
|
|
108
|
+
readonly occurrenceKey?: string;
|
|
109
|
+
};
|
|
110
|
+
export type AppendChunksToUploadRequestBody = {
|
|
111
|
+
readonly chunks: string[];
|
|
112
|
+
readonly hash?: string;
|
|
113
|
+
readonly offset?: number;
|
|
114
|
+
};
|
|
115
|
+
export interface CreatedTouchedFile {
|
|
116
|
+
fileId: string;
|
|
117
|
+
uploadId: string;
|
|
118
|
+
}
|
|
119
|
+
export interface RejectedTouchFile {
|
|
120
|
+
fileId: string;
|
|
121
|
+
error: RejectionError;
|
|
122
|
+
}
|
|
123
|
+
export type RejectionError = {
|
|
124
|
+
code: 'ExceedMaxFileSizeLimit';
|
|
125
|
+
title: string;
|
|
126
|
+
href: string;
|
|
127
|
+
limit: number;
|
|
128
|
+
size: number;
|
|
129
|
+
};
|
|
130
|
+
export type TouchedFiles = {
|
|
131
|
+
created: CreatedTouchedFile[];
|
|
132
|
+
rejected?: RejectedTouchFile[];
|
|
133
|
+
};
|
|
134
|
+
export interface EmptyFile {
|
|
135
|
+
readonly id: string;
|
|
136
|
+
readonly createdAt: number;
|
|
137
|
+
}
|
|
138
|
+
export interface MediaApi {
|
|
139
|
+
removeCollectionFile: (id: string, collectionName: string, occurrenceKey?: string, traceContext?: MediaTraceContext) => Promise<void>;
|
|
140
|
+
createUpload: (createUpTo: number, collectionName?: string, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaUpload[]>>;
|
|
141
|
+
uploadChunk: (etag: string, blob: Blob, uploadId: string, partNumber: number, collectionName?: string, traceContext?: MediaTraceContext) => Promise<void>;
|
|
142
|
+
probeChunks: (chunks: string[], uploadId: string, collectionName?: string, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaChunksProbe>>;
|
|
143
|
+
createFileFromUpload: (body: MediaStoreCreateFileFromUploadBody, params: MediaStoreCreateFileFromUploadParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaFile>>;
|
|
144
|
+
getRejectedResponseFromDescriptor: (descriptor: TouchFileDescriptor, limit: number) => RejectedTouchFile;
|
|
145
|
+
touchFiles: (body: MediaStoreTouchFileBody, params: MediaStoreTouchFileParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<TouchedFiles>>;
|
|
146
|
+
getFile: (fileId: string, params: MediaStoreGetFileParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaFile>>;
|
|
147
|
+
getFileImageURL: (id: string, params?: MediaStoreGetFileImageParams) => Promise<string>;
|
|
148
|
+
getFileImageURLSync: (id: string, params?: MediaStoreGetFileImageParams) => string;
|
|
149
|
+
getFileBinaryURL: (id: string, collectionName?: string) => Promise<string>;
|
|
150
|
+
getArtifactURL: (artifacts: MediaFileArtifacts, artifactName: keyof MediaFileArtifacts, collectionName?: string) => Promise<string>;
|
|
151
|
+
getImage: (id: string, params?: MediaStoreGetFileImageParams, controller?: AbortController, fetchMaxRes?: boolean, traceContext?: MediaTraceContext) => Promise<Blob>;
|
|
152
|
+
getItems: (ids: string[], collectionName?: string, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<ItemsPayload>>;
|
|
153
|
+
getImageMetadata: (id: string, params?: MediaStoreGetFileImageParams, traceContext?: MediaTraceContext) => Promise<{
|
|
154
|
+
metadata: ImageMetadata;
|
|
155
|
+
}>;
|
|
156
|
+
appendChunksToUpload: (uploadId: string, body: AppendChunksToUploadRequestBody, collectionName?: string, traceContext?: MediaTraceContext) => Promise<void>;
|
|
157
|
+
copyFileWithToken: (body: MediaStoreCopyFileWithTokenBody, params: MediaStoreCopyFileWithTokenParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaFile>>;
|
|
158
|
+
request: (path: string, options: MediaStoreRequestOptions, controller?: AbortController) => Promise<Response>;
|
|
159
|
+
resolveAuth: (authContext?: AuthContext) => Promise<Auth>;
|
|
160
|
+
resolveInitialAuth: () => Auth;
|
|
161
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.3",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/chunkinator": "^4.2.0",
|
|
40
|
-
"@atlaskit/media-common": "^
|
|
40
|
+
"@atlaskit/media-common": "^11.0.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"dataloader": "^2.0.0",
|
|
43
43
|
"deep-equal": "^1.0.1",
|
package/report.api.md
CHANGED
|
@@ -604,6 +604,125 @@ export const mapMediaItemToFileState: (
|
|
|
604
604
|
// @public (undocumented)
|
|
605
605
|
export const MAX_RESOLUTION = 4096;
|
|
606
606
|
|
|
607
|
+
// @public (undocumented)
|
|
608
|
+
interface MediaApi {
|
|
609
|
+
// (undocumented)
|
|
610
|
+
appendChunksToUpload: (
|
|
611
|
+
uploadId: string,
|
|
612
|
+
body: AppendChunksToUploadRequestBody,
|
|
613
|
+
collectionName?: string,
|
|
614
|
+
traceContext?: MediaTraceContext,
|
|
615
|
+
) => Promise<void>;
|
|
616
|
+
// (undocumented)
|
|
617
|
+
copyFileWithToken: (
|
|
618
|
+
body: MediaStoreCopyFileWithTokenBody,
|
|
619
|
+
params: MediaStoreCopyFileWithTokenParams,
|
|
620
|
+
traceContext?: MediaTraceContext,
|
|
621
|
+
) => Promise<MediaStoreResponse<MediaFile>>;
|
|
622
|
+
// (undocumented)
|
|
623
|
+
createFileFromUpload: (
|
|
624
|
+
body: MediaStoreCreateFileFromUploadBody,
|
|
625
|
+
params: MediaStoreCreateFileFromUploadParams,
|
|
626
|
+
traceContext?: MediaTraceContext,
|
|
627
|
+
) => Promise<MediaStoreResponse<MediaFile>>;
|
|
628
|
+
// (undocumented)
|
|
629
|
+
createUpload: (
|
|
630
|
+
createUpTo: number,
|
|
631
|
+
collectionName?: string,
|
|
632
|
+
traceContext?: MediaTraceContext,
|
|
633
|
+
) => Promise<MediaStoreResponse<MediaUpload[]>>;
|
|
634
|
+
// (undocumented)
|
|
635
|
+
getArtifactURL: (
|
|
636
|
+
artifacts: MediaFileArtifacts,
|
|
637
|
+
artifactName: keyof MediaFileArtifacts,
|
|
638
|
+
collectionName?: string,
|
|
639
|
+
) => Promise<string>;
|
|
640
|
+
// (undocumented)
|
|
641
|
+
getFile: (
|
|
642
|
+
fileId: string,
|
|
643
|
+
params: MediaStoreGetFileParams,
|
|
644
|
+
traceContext?: MediaTraceContext,
|
|
645
|
+
) => Promise<MediaStoreResponse<MediaFile>>;
|
|
646
|
+
// (undocumented)
|
|
647
|
+
getFileBinaryURL: (id: string, collectionName?: string) => Promise<string>;
|
|
648
|
+
// (undocumented)
|
|
649
|
+
getFileImageURL: (
|
|
650
|
+
id: string,
|
|
651
|
+
params?: MediaStoreGetFileImageParams,
|
|
652
|
+
) => Promise<string>;
|
|
653
|
+
// (undocumented)
|
|
654
|
+
getFileImageURLSync: (
|
|
655
|
+
id: string,
|
|
656
|
+
params?: MediaStoreGetFileImageParams,
|
|
657
|
+
) => string;
|
|
658
|
+
// (undocumented)
|
|
659
|
+
getImage: (
|
|
660
|
+
id: string,
|
|
661
|
+
params?: MediaStoreGetFileImageParams,
|
|
662
|
+
controller?: AbortController,
|
|
663
|
+
fetchMaxRes?: boolean,
|
|
664
|
+
traceContext?: MediaTraceContext,
|
|
665
|
+
) => Promise<Blob>;
|
|
666
|
+
// (undocumented)
|
|
667
|
+
getImageMetadata: (
|
|
668
|
+
id: string,
|
|
669
|
+
params?: MediaStoreGetFileImageParams,
|
|
670
|
+
traceContext?: MediaTraceContext,
|
|
671
|
+
) => Promise<{
|
|
672
|
+
metadata: ImageMetadata;
|
|
673
|
+
}>;
|
|
674
|
+
// (undocumented)
|
|
675
|
+
getItems: (
|
|
676
|
+
ids: string[],
|
|
677
|
+
collectionName?: string,
|
|
678
|
+
traceContext?: MediaTraceContext,
|
|
679
|
+
) => Promise<MediaStoreResponse<ItemsPayload>>;
|
|
680
|
+
// (undocumented)
|
|
681
|
+
getRejectedResponseFromDescriptor: (
|
|
682
|
+
descriptor: TouchFileDescriptor,
|
|
683
|
+
limit: number,
|
|
684
|
+
) => RejectedTouchFile;
|
|
685
|
+
// (undocumented)
|
|
686
|
+
probeChunks: (
|
|
687
|
+
chunks: string[],
|
|
688
|
+
uploadId: string,
|
|
689
|
+
collectionName?: string,
|
|
690
|
+
traceContext?: MediaTraceContext,
|
|
691
|
+
) => Promise<MediaStoreResponse<MediaChunksProbe>>;
|
|
692
|
+
// (undocumented)
|
|
693
|
+
removeCollectionFile: (
|
|
694
|
+
id: string,
|
|
695
|
+
collectionName: string,
|
|
696
|
+
occurrenceKey?: string,
|
|
697
|
+
traceContext?: MediaTraceContext,
|
|
698
|
+
) => Promise<void>;
|
|
699
|
+
// (undocumented)
|
|
700
|
+
request: (
|
|
701
|
+
path: string,
|
|
702
|
+
options: MediaStoreRequestOptions,
|
|
703
|
+
controller?: AbortController,
|
|
704
|
+
) => Promise<Response>;
|
|
705
|
+
// (undocumented)
|
|
706
|
+
resolveAuth: (authContext?: AuthContext) => Promise<Auth>;
|
|
707
|
+
// (undocumented)
|
|
708
|
+
resolveInitialAuth: () => Auth;
|
|
709
|
+
// (undocumented)
|
|
710
|
+
touchFiles: (
|
|
711
|
+
body: MediaStoreTouchFileBody,
|
|
712
|
+
params: MediaStoreTouchFileParams,
|
|
713
|
+
traceContext?: MediaTraceContext,
|
|
714
|
+
) => Promise<MediaStoreResponse<TouchedFiles>>;
|
|
715
|
+
// (undocumented)
|
|
716
|
+
uploadChunk: (
|
|
717
|
+
etag: string,
|
|
718
|
+
blob: Blob,
|
|
719
|
+
uploadId: string,
|
|
720
|
+
partNumber: number,
|
|
721
|
+
collectionName?: string,
|
|
722
|
+
traceContext?: MediaTraceContext,
|
|
723
|
+
) => Promise<void>;
|
|
724
|
+
}
|
|
725
|
+
|
|
607
726
|
// @public (undocumented)
|
|
608
727
|
export interface MediaArtifact {
|
|
609
728
|
// (undocumented)
|
|
@@ -800,7 +919,7 @@ export type MediaRepresentations = {
|
|
|
800
919
|
};
|
|
801
920
|
|
|
802
921
|
// @public (undocumented)
|
|
803
|
-
export class MediaStore {
|
|
922
|
+
export class MediaStore implements MediaApi {
|
|
804
923
|
constructor(config: MediaApiConfig);
|
|
805
924
|
// (undocumented)
|
|
806
925
|
appendChunksToUpload(
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -453,6 +453,52 @@ export const mapMediaItemToFileState: (id: string, item: MediaItemDetails) => Fi
|
|
|
453
453
|
// @public (undocumented)
|
|
454
454
|
export const MAX_RESOLUTION = 4096;
|
|
455
455
|
|
|
456
|
+
// @public (undocumented)
|
|
457
|
+
interface MediaApi {
|
|
458
|
+
// (undocumented)
|
|
459
|
+
appendChunksToUpload: (uploadId: string, body: AppendChunksToUploadRequestBody, collectionName?: string, traceContext?: MediaTraceContext) => Promise<void>;
|
|
460
|
+
// (undocumented)
|
|
461
|
+
copyFileWithToken: (body: MediaStoreCopyFileWithTokenBody, params: MediaStoreCopyFileWithTokenParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaFile>>;
|
|
462
|
+
// (undocumented)
|
|
463
|
+
createFileFromUpload: (body: MediaStoreCreateFileFromUploadBody, params: MediaStoreCreateFileFromUploadParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaFile>>;
|
|
464
|
+
// (undocumented)
|
|
465
|
+
createUpload: (createUpTo: number, collectionName?: string, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaUpload[]>>;
|
|
466
|
+
// (undocumented)
|
|
467
|
+
getArtifactURL: (artifacts: MediaFileArtifacts, artifactName: keyof MediaFileArtifacts, collectionName?: string) => Promise<string>;
|
|
468
|
+
// (undocumented)
|
|
469
|
+
getFile: (fileId: string, params: MediaStoreGetFileParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaFile>>;
|
|
470
|
+
// (undocumented)
|
|
471
|
+
getFileBinaryURL: (id: string, collectionName?: string) => Promise<string>;
|
|
472
|
+
// (undocumented)
|
|
473
|
+
getFileImageURL: (id: string, params?: MediaStoreGetFileImageParams) => Promise<string>;
|
|
474
|
+
// (undocumented)
|
|
475
|
+
getFileImageURLSync: (id: string, params?: MediaStoreGetFileImageParams) => string;
|
|
476
|
+
// (undocumented)
|
|
477
|
+
getImage: (id: string, params?: MediaStoreGetFileImageParams, controller?: AbortController, fetchMaxRes?: boolean, traceContext?: MediaTraceContext) => Promise<Blob>;
|
|
478
|
+
// (undocumented)
|
|
479
|
+
getImageMetadata: (id: string, params?: MediaStoreGetFileImageParams, traceContext?: MediaTraceContext) => Promise<{
|
|
480
|
+
metadata: ImageMetadata;
|
|
481
|
+
}>;
|
|
482
|
+
// (undocumented)
|
|
483
|
+
getItems: (ids: string[], collectionName?: string, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<ItemsPayload>>;
|
|
484
|
+
// (undocumented)
|
|
485
|
+
getRejectedResponseFromDescriptor: (descriptor: TouchFileDescriptor, limit: number) => RejectedTouchFile;
|
|
486
|
+
// (undocumented)
|
|
487
|
+
probeChunks: (chunks: string[], uploadId: string, collectionName?: string, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<MediaChunksProbe>>;
|
|
488
|
+
// (undocumented)
|
|
489
|
+
removeCollectionFile: (id: string, collectionName: string, occurrenceKey?: string, traceContext?: MediaTraceContext) => Promise<void>;
|
|
490
|
+
// (undocumented)
|
|
491
|
+
request: (path: string, options: MediaStoreRequestOptions, controller?: AbortController) => Promise<Response>;
|
|
492
|
+
// (undocumented)
|
|
493
|
+
resolveAuth: (authContext?: AuthContext) => Promise<Auth>;
|
|
494
|
+
// (undocumented)
|
|
495
|
+
resolveInitialAuth: () => Auth;
|
|
496
|
+
// (undocumented)
|
|
497
|
+
touchFiles: (body: MediaStoreTouchFileBody, params: MediaStoreTouchFileParams, traceContext?: MediaTraceContext) => Promise<MediaStoreResponse<TouchedFiles>>;
|
|
498
|
+
// (undocumented)
|
|
499
|
+
uploadChunk: (etag: string, blob: Blob, uploadId: string, partNumber: number, collectionName?: string, traceContext?: MediaTraceContext) => Promise<void>;
|
|
500
|
+
}
|
|
501
|
+
|
|
456
502
|
// @public (undocumented)
|
|
457
503
|
export interface MediaArtifact {
|
|
458
504
|
// (undocumented)
|
|
@@ -590,7 +636,7 @@ export type MediaRepresentations = {
|
|
|
590
636
|
};
|
|
591
637
|
|
|
592
638
|
// @public (undocumented)
|
|
593
|
-
export class MediaStore {
|
|
639
|
+
export class MediaStore implements MediaApi {
|
|
594
640
|
constructor(config: MediaApiConfig);
|
|
595
641
|
// (undocumented)
|
|
596
642
|
appendChunksToUpload(uploadId: string, body: AppendChunksToUploadRequestBody, collectionName?: string, traceContext?: MediaTraceContext): Promise<void>;
|