@bytescale/sdk 3.35.0 → 3.36.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.
@@ -4,8 +4,7 @@ import { PreUploadInfo } from "./model/PreUploadInfo";
4
4
  import { UploadSourceBlob } from "./model/UploadSourceProcessed";
5
5
  import { PutUploadPartResult } from "./model/PutUploadPartResult";
6
6
  import { AddCancellationHandler } from "./model/AddCancellationHandler";
7
- import { UploadResult } from "./model/UploadResult";
8
- import { UploadManagerParams, UploadSource } from "../public/shared/CommonTypes";
7
+ import { UploadManagerParams, UploadSource, UploadResult } from "../public/shared/CommonTypes";
9
8
  /**
10
9
  * Methods common to UploadManagerNode and UploadManagerBrowser.
11
10
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { BeginMultipartUploadRequest } from "./generated";
3
+ import { BeginMultipartUploadRequest, FileDetails } from "./generated";
4
4
  /**
5
5
  * Workaround for tsc aliases, where we cannot export implementation-less modules in our dists.
6
6
  */
@@ -19,6 +19,12 @@ export interface UploadProgress {
19
19
  bytesTotal: number;
20
20
  progress: number;
21
21
  }
22
+ export type UploadResult = Omit<FileDetails, "etag"> & {
23
+ /**
24
+ * The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.
25
+ */
26
+ etag: string;
27
+ };
22
28
  export type UploadSource = NodeJS.ReadableStream | BlobLike | Buffer | string;
23
29
  export interface UploadManagerParams extends Omit<BeginMultipartUploadRequest, "size" | "protocol"> {
24
30
  cancellationToken?: CancellationToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytescale/sdk",
3
- "version": "3.35.0",
3
+ "version": "3.36.0",
4
4
  "description": "Bytescale JavaScript SDK",
5
5
  "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
6
6
  "license": "MIT",
@@ -1,7 +0,0 @@
1
- import { FileDetails } from "../../public/shared/generated";
2
- export type UploadResult = Omit<FileDetails, "etag"> & {
3
- /**
4
- * The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.
5
- */
6
- etag: string;
7
- };