@aws-sdk/client-mediastore-data 3.315.0 → 3.316.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.
|
@@ -1,82 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MediaStoreData = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const DeleteObjectCommand_1 = require("./commands/DeleteObjectCommand");
|
|
5
6
|
const DescribeObjectCommand_1 = require("./commands/DescribeObjectCommand");
|
|
6
7
|
const GetObjectCommand_1 = require("./commands/GetObjectCommand");
|
|
7
8
|
const ListItemsCommand_1 = require("./commands/ListItemsCommand");
|
|
8
9
|
const PutObjectCommand_1 = require("./commands/PutObjectCommand");
|
|
9
10
|
const MediaStoreDataClient_1 = require("./MediaStoreDataClient");
|
|
11
|
+
const commands = {
|
|
12
|
+
DeleteObjectCommand: DeleteObjectCommand_1.DeleteObjectCommand,
|
|
13
|
+
DescribeObjectCommand: DescribeObjectCommand_1.DescribeObjectCommand,
|
|
14
|
+
GetObjectCommand: GetObjectCommand_1.GetObjectCommand,
|
|
15
|
+
ListItemsCommand: ListItemsCommand_1.ListItemsCommand,
|
|
16
|
+
PutObjectCommand: PutObjectCommand_1.PutObjectCommand,
|
|
17
|
+
};
|
|
10
18
|
class MediaStoreData extends MediaStoreDataClient_1.MediaStoreDataClient {
|
|
11
|
-
deleteObject(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new DeleteObjectCommand_1.DeleteObjectCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
describeObject(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new DescribeObjectCommand_1.DescribeObjectCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
getObject(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new GetObjectCommand_1.GetObjectCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
listItems(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new ListItemsCommand_1.ListItemsCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
putObject(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new PutObjectCommand_1.PutObjectCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
19
|
}
|
|
82
20
|
exports.MediaStoreData = MediaStoreData;
|
|
21
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MediaStoreData);
|
|
@@ -1,78 +1,17 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { DeleteObjectCommand, } from "./commands/DeleteObjectCommand";
|
|
2
3
|
import { DescribeObjectCommand, } from "./commands/DescribeObjectCommand";
|
|
3
4
|
import { GetObjectCommand } from "./commands/GetObjectCommand";
|
|
4
5
|
import { ListItemsCommand } from "./commands/ListItemsCommand";
|
|
5
6
|
import { PutObjectCommand } from "./commands/PutObjectCommand";
|
|
6
7
|
import { MediaStoreDataClient } from "./MediaStoreDataClient";
|
|
8
|
+
const commands = {
|
|
9
|
+
DeleteObjectCommand,
|
|
10
|
+
DescribeObjectCommand,
|
|
11
|
+
GetObjectCommand,
|
|
12
|
+
ListItemsCommand,
|
|
13
|
+
PutObjectCommand,
|
|
14
|
+
};
|
|
7
15
|
export class MediaStoreData extends MediaStoreDataClient {
|
|
8
|
-
deleteObject(args, optionsOrCb, cb) {
|
|
9
|
-
const command = new DeleteObjectCommand(args);
|
|
10
|
-
if (typeof optionsOrCb === "function") {
|
|
11
|
-
this.send(command, optionsOrCb);
|
|
12
|
-
}
|
|
13
|
-
else if (typeof cb === "function") {
|
|
14
|
-
if (typeof optionsOrCb !== "object")
|
|
15
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
16
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
describeObject(args, optionsOrCb, cb) {
|
|
23
|
-
const command = new DescribeObjectCommand(args);
|
|
24
|
-
if (typeof optionsOrCb === "function") {
|
|
25
|
-
this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
else if (typeof cb === "function") {
|
|
28
|
-
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
getObject(args, optionsOrCb, cb) {
|
|
37
|
-
const command = new GetObjectCommand(args);
|
|
38
|
-
if (typeof optionsOrCb === "function") {
|
|
39
|
-
this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
else if (typeof cb === "function") {
|
|
42
|
-
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
listItems(args, optionsOrCb, cb) {
|
|
51
|
-
const command = new ListItemsCommand(args);
|
|
52
|
-
if (typeof optionsOrCb === "function") {
|
|
53
|
-
this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
else if (typeof cb === "function") {
|
|
56
|
-
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
putObject(args, optionsOrCb, cb) {
|
|
65
|
-
const command = new PutObjectCommand(args);
|
|
66
|
-
if (typeof optionsOrCb === "function") {
|
|
67
|
-
this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
16
|
}
|
|
17
|
+
createAggregatedClient(commands, MediaStoreData);
|
|
@@ -5,47 +5,43 @@ import { GetObjectCommandInput, GetObjectCommandOutput } from "./commands/GetObj
|
|
|
5
5
|
import { ListItemsCommandInput, ListItemsCommandOutput } from "./commands/ListItemsCommand";
|
|
6
6
|
import { PutObjectCommandInput, PutObjectCommandOutput } from "./commands/PutObjectCommand";
|
|
7
7
|
import { MediaStoreDataClient } from "./MediaStoreDataClient";
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
* <p>An AWS Elemental MediaStore asset is an object, similar to an object in the Amazon S3
|
|
11
|
-
* service. Objects are the fundamental entities that are stored in AWS Elemental
|
|
12
|
-
* MediaStore.</p>
|
|
13
|
-
*/
|
|
14
|
-
export declare class MediaStoreData extends MediaStoreDataClient {
|
|
8
|
+
export interface MediaStoreData {
|
|
15
9
|
/**
|
|
16
|
-
* @
|
|
17
|
-
* <p>Deletes an object at the specified path.</p>
|
|
10
|
+
* @see {@link DeleteObjectCommand}
|
|
18
11
|
*/
|
|
19
12
|
deleteObject(args: DeleteObjectCommandInput, options?: __HttpHandlerOptions): Promise<DeleteObjectCommandOutput>;
|
|
20
13
|
deleteObject(args: DeleteObjectCommandInput, cb: (err: any, data?: DeleteObjectCommandOutput) => void): void;
|
|
21
14
|
deleteObject(args: DeleteObjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteObjectCommandOutput) => void): void;
|
|
22
15
|
/**
|
|
23
|
-
* @
|
|
24
|
-
* <p>Gets the headers for an object at the specified path.</p>
|
|
16
|
+
* @see {@link DescribeObjectCommand}
|
|
25
17
|
*/
|
|
26
18
|
describeObject(args: DescribeObjectCommandInput, options?: __HttpHandlerOptions): Promise<DescribeObjectCommandOutput>;
|
|
27
19
|
describeObject(args: DescribeObjectCommandInput, cb: (err: any, data?: DescribeObjectCommandOutput) => void): void;
|
|
28
20
|
describeObject(args: DescribeObjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeObjectCommandOutput) => void): void;
|
|
29
21
|
/**
|
|
30
|
-
* @
|
|
31
|
-
* <p>Downloads the object at the specified path. If the object’s upload availability is set to <code>streaming</code>, AWS Elemental MediaStore downloads the object even if it’s still uploading the object.</p>
|
|
22
|
+
* @see {@link GetObjectCommand}
|
|
32
23
|
*/
|
|
33
24
|
getObject(args: GetObjectCommandInput, options?: __HttpHandlerOptions): Promise<GetObjectCommandOutput>;
|
|
34
25
|
getObject(args: GetObjectCommandInput, cb: (err: any, data?: GetObjectCommandOutput) => void): void;
|
|
35
26
|
getObject(args: GetObjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetObjectCommandOutput) => void): void;
|
|
36
27
|
/**
|
|
37
|
-
* @
|
|
38
|
-
* <p>Provides a list of metadata entries about folders and objects in the specified
|
|
39
|
-
* folder.</p>
|
|
28
|
+
* @see {@link ListItemsCommand}
|
|
40
29
|
*/
|
|
41
30
|
listItems(args: ListItemsCommandInput, options?: __HttpHandlerOptions): Promise<ListItemsCommandOutput>;
|
|
42
31
|
listItems(args: ListItemsCommandInput, cb: (err: any, data?: ListItemsCommandOutput) => void): void;
|
|
43
32
|
listItems(args: ListItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListItemsCommandOutput) => void): void;
|
|
44
33
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* <p>Uploads an object to the specified path. Object sizes are limited to 25 MB for standard upload availability and 10 MB for streaming upload availability.</p>
|
|
34
|
+
* @see {@link PutObjectCommand}
|
|
47
35
|
*/
|
|
48
36
|
putObject(args: PutObjectCommandInput, options?: __HttpHandlerOptions): Promise<PutObjectCommandOutput>;
|
|
49
37
|
putObject(args: PutObjectCommandInput, cb: (err: any, data?: PutObjectCommandOutput) => void): void;
|
|
50
38
|
putObject(args: PutObjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutObjectCommandOutput) => void): void;
|
|
51
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* <p>An AWS Elemental MediaStore asset is an object, similar to an object in the Amazon S3
|
|
43
|
+
* service. Objects are the fundamental entities that are stored in AWS Elemental
|
|
44
|
+
* MediaStore.</p>
|
|
45
|
+
*/
|
|
46
|
+
export declare class MediaStoreData extends MediaStoreDataClient implements MediaStoreData {
|
|
47
|
+
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
PutObjectCommandOutput,
|
|
21
21
|
} from "./commands/PutObjectCommand";
|
|
22
22
|
import { MediaStoreDataClient } from "./MediaStoreDataClient";
|
|
23
|
-
export
|
|
23
|
+
export interface MediaStoreData {
|
|
24
24
|
deleteObject(
|
|
25
25
|
args: DeleteObjectCommandInput,
|
|
26
26
|
options?: __HttpHandlerOptions
|
|
@@ -87,3 +87,6 @@ export declare class MediaStoreData extends MediaStoreDataClient {
|
|
|
87
87
|
cb: (err: any, data?: PutObjectCommandOutput) => void
|
|
88
88
|
): void;
|
|
89
89
|
}
|
|
90
|
+
export declare class MediaStoreData
|
|
91
|
+
extends MediaStoreDataClient
|
|
92
|
+
implements MediaStoreData {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediastore-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediastore Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
27
27
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
29
29
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
30
30
|
"@aws-sdk/hash-node": "3.310.0",
|
|
31
31
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
43
43
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
44
44
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
45
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
46
46
|
"@aws-sdk/types": "3.310.0",
|
|
47
47
|
"@aws-sdk/url-parser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-base64": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
51
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
53
53
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-retry": "3.310.0",
|
|
55
55
|
"@aws-sdk/util-stream-browser": "3.310.0",
|