@aws-sdk/client-mediastore-data 3.300.0 → 3.303.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.
@@ -58,20 +58,17 @@ class RequestedRangeNotSatisfiableException extends MediaStoreDataServiceExcepti
58
58
  }
59
59
  }
60
60
  exports.RequestedRangeNotSatisfiableException = RequestedRangeNotSatisfiableException;
61
- var ItemType;
62
- (function (ItemType) {
63
- ItemType["FOLDER"] = "FOLDER";
64
- ItemType["OBJECT"] = "OBJECT";
65
- })(ItemType = exports.ItemType || (exports.ItemType = {}));
66
- var StorageClass;
67
- (function (StorageClass) {
68
- StorageClass["TEMPORAL"] = "TEMPORAL";
69
- })(StorageClass = exports.StorageClass || (exports.StorageClass = {}));
70
- var UploadAvailability;
71
- (function (UploadAvailability) {
72
- UploadAvailability["STANDARD"] = "STANDARD";
73
- UploadAvailability["STREAMING"] = "STREAMING";
74
- })(UploadAvailability = exports.UploadAvailability || (exports.UploadAvailability = {}));
61
+ exports.ItemType = {
62
+ FOLDER: "FOLDER",
63
+ OBJECT: "OBJECT",
64
+ };
65
+ exports.StorageClass = {
66
+ TEMPORAL: "TEMPORAL",
67
+ };
68
+ exports.UploadAvailability = {
69
+ STANDARD: "STANDARD",
70
+ STREAMING: "STREAMING",
71
+ };
75
72
  const GetObjectResponseFilterSensitiveLog = (obj) => ({
76
73
  ...obj,
77
74
  });
@@ -51,20 +51,17 @@ export class RequestedRangeNotSatisfiableException extends __BaseException {
51
51
  this.Message = opts.Message;
52
52
  }
53
53
  }
54
- export var ItemType;
55
- (function (ItemType) {
56
- ItemType["FOLDER"] = "FOLDER";
57
- ItemType["OBJECT"] = "OBJECT";
58
- })(ItemType || (ItemType = {}));
59
- export var StorageClass;
60
- (function (StorageClass) {
61
- StorageClass["TEMPORAL"] = "TEMPORAL";
62
- })(StorageClass || (StorageClass = {}));
63
- export var UploadAvailability;
64
- (function (UploadAvailability) {
65
- UploadAvailability["STANDARD"] = "STANDARD";
66
- UploadAvailability["STREAMING"] = "STREAMING";
67
- })(UploadAvailability || (UploadAvailability = {}));
54
+ export const ItemType = {
55
+ FOLDER: "FOLDER",
56
+ OBJECT: "OBJECT",
57
+ };
58
+ export const StorageClass = {
59
+ TEMPORAL: "TEMPORAL",
60
+ };
61
+ export const UploadAvailability = {
62
+ STANDARD: "STANDARD",
63
+ STREAMING: "STREAMING",
64
+ };
68
65
  export const GetObjectResponseFilterSensitiveLog = (obj) => ({
69
66
  ...obj,
70
67
  });
@@ -26,7 +26,7 @@ export interface DeleteObjectCommandOutput extends DeleteObjectResponse, __Metad
26
26
  * import { MediaStoreDataClient, DeleteObjectCommand } from "@aws-sdk/client-mediastore-data"; // ES Modules import
27
27
  * // const { MediaStoreDataClient, DeleteObjectCommand } = require("@aws-sdk/client-mediastore-data"); // CommonJS import
28
28
  * const client = new MediaStoreDataClient(config);
29
- * const input = {
29
+ * const input = { // DeleteObjectRequest
30
30
  * Path: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteObjectCommand(input);
@@ -26,7 +26,7 @@ export interface DescribeObjectCommandOutput extends DescribeObjectResponse, __M
26
26
  * import { MediaStoreDataClient, DescribeObjectCommand } from "@aws-sdk/client-mediastore-data"; // ES Modules import
27
27
  * // const { MediaStoreDataClient, DescribeObjectCommand } = require("@aws-sdk/client-mediastore-data"); // CommonJS import
28
28
  * const client = new MediaStoreDataClient(config);
29
- * const input = {
29
+ * const input = { // DescribeObjectRequest
30
30
  * Path: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DescribeObjectCommand(input);
@@ -26,7 +26,7 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectRe
26
26
  * import { MediaStoreDataClient, GetObjectCommand } from "@aws-sdk/client-mediastore-data"; // ES Modules import
27
27
  * // const { MediaStoreDataClient, GetObjectCommand } = require("@aws-sdk/client-mediastore-data"); // CommonJS import
28
28
  * const client = new MediaStoreDataClient(config);
29
- * const input = {
29
+ * const input = { // GetObjectRequest
30
30
  * Path: "STRING_VALUE", // required
31
31
  * Range: "STRING_VALUE",
32
32
  * };
@@ -27,7 +27,7 @@ export interface ListItemsCommandOutput extends ListItemsResponse, __MetadataBea
27
27
  * import { MediaStoreDataClient, ListItemsCommand } from "@aws-sdk/client-mediastore-data"; // ES Modules import
28
28
  * // const { MediaStoreDataClient, ListItemsCommand } = require("@aws-sdk/client-mediastore-data"); // CommonJS import
29
29
  * const client = new MediaStoreDataClient(config);
30
- * const input = {
30
+ * const input = { // ListItemsRequest
31
31
  * Path: "STRING_VALUE",
32
32
  * MaxResults: Number("int"),
33
33
  * NextToken: "STRING_VALUE",
@@ -36,7 +36,7 @@ export interface PutObjectCommandOutput extends PutObjectResponse, __MetadataBea
36
36
  * import { MediaStoreDataClient, PutObjectCommand } from "@aws-sdk/client-mediastore-data"; // ES Modules import
37
37
  * // const { MediaStoreDataClient, PutObjectCommand } = require("@aws-sdk/client-mediastore-data"); // CommonJS import
38
38
  * const client = new MediaStoreDataClient(config);
39
- * const input = {
39
+ * const input = { // PutObjectRequest
40
40
  * Body: "STREAMING_BLOB_VALUE", // required
41
41
  * Path: "STRING_VALUE", // required
42
42
  * ContentType: "STRING_VALUE",
@@ -179,11 +179,16 @@ export declare class RequestedRangeNotSatisfiableException extends __BaseExcepti
179
179
  }
180
180
  /**
181
181
  * @public
182
+ * @enum
182
183
  */
183
- export declare enum ItemType {
184
- FOLDER = "FOLDER",
185
- OBJECT = "OBJECT"
186
- }
184
+ export declare const ItemType: {
185
+ readonly FOLDER: "FOLDER";
186
+ readonly OBJECT: "OBJECT";
187
+ };
188
+ /**
189
+ * @public
190
+ */
191
+ export type ItemType = (typeof ItemType)[keyof typeof ItemType];
187
192
  /**
188
193
  * @public
189
194
  * <p>A metadata entry for a folder or object.</p>
@@ -263,17 +268,27 @@ export interface ListItemsResponse {
263
268
  }
264
269
  /**
265
270
  * @public
271
+ * @enum
266
272
  */
267
- export declare enum StorageClass {
268
- TEMPORAL = "TEMPORAL"
269
- }
273
+ export declare const StorageClass: {
274
+ readonly TEMPORAL: "TEMPORAL";
275
+ };
270
276
  /**
271
277
  * @public
272
278
  */
273
- export declare enum UploadAvailability {
274
- STANDARD = "STANDARD",
275
- STREAMING = "STREAMING"
276
- }
279
+ export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
280
+ /**
281
+ * @public
282
+ * @enum
283
+ */
284
+ export declare const UploadAvailability: {
285
+ readonly STANDARD: "STANDARD";
286
+ readonly STREAMING: "STREAMING";
287
+ };
288
+ /**
289
+ * @public
290
+ */
291
+ export type UploadAvailability = (typeof UploadAvailability)[keyof typeof UploadAvailability];
277
292
  /**
278
293
  * @public
279
294
  */
@@ -64,10 +64,11 @@ export declare class RequestedRangeNotSatisfiableException extends __BaseExcepti
64
64
  >
65
65
  );
66
66
  }
67
- export declare enum ItemType {
68
- FOLDER = "FOLDER",
69
- OBJECT = "OBJECT",
70
- }
67
+ export declare const ItemType: {
68
+ readonly FOLDER: "FOLDER";
69
+ readonly OBJECT: "OBJECT";
70
+ };
71
+ export type ItemType = (typeof ItemType)[keyof typeof ItemType];
71
72
  export interface Item {
72
73
  Name?: string;
73
74
  Type?: ItemType | string;
@@ -85,13 +86,16 @@ export interface ListItemsResponse {
85
86
  Items?: Item[];
86
87
  NextToken?: string;
87
88
  }
88
- export declare enum StorageClass {
89
- TEMPORAL = "TEMPORAL",
90
- }
91
- export declare enum UploadAvailability {
92
- STANDARD = "STANDARD",
93
- STREAMING = "STREAMING",
94
- }
89
+ export declare const StorageClass: {
90
+ readonly TEMPORAL: "TEMPORAL";
91
+ };
92
+ export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
93
+ export declare const UploadAvailability: {
94
+ readonly STANDARD: "STANDARD";
95
+ readonly STREAMING: "STREAMING";
96
+ };
97
+ export type UploadAvailability =
98
+ (typeof UploadAvailability)[keyof typeof UploadAvailability];
95
99
  export interface PutObjectRequest {
96
100
  Body: Readable | ReadableStream | Blob | undefined;
97
101
  Path: string | undefined;
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.300.0",
4
+ "version": "3.303.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,44 +23,44 @@
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.300.0",
27
- "@aws-sdk/config-resolver": "3.300.0",
28
- "@aws-sdk/credential-provider-node": "3.300.0",
29
- "@aws-sdk/fetch-http-handler": "3.296.0",
30
- "@aws-sdk/hash-node": "3.296.0",
31
- "@aws-sdk/invalid-dependency": "3.296.0",
32
- "@aws-sdk/middleware-content-length": "3.296.0",
33
- "@aws-sdk/middleware-endpoint": "3.299.0",
34
- "@aws-sdk/middleware-host-header": "3.296.0",
35
- "@aws-sdk/middleware-logger": "3.296.0",
36
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
37
- "@aws-sdk/middleware-retry": "3.300.0",
38
- "@aws-sdk/middleware-serde": "3.296.0",
39
- "@aws-sdk/middleware-signing": "3.299.0",
40
- "@aws-sdk/middleware-stack": "3.296.0",
41
- "@aws-sdk/middleware-user-agent": "3.299.0",
42
- "@aws-sdk/node-config-provider": "3.300.0",
43
- "@aws-sdk/node-http-handler": "3.296.0",
44
- "@aws-sdk/protocol-http": "3.296.0",
45
- "@aws-sdk/smithy-client": "3.296.0",
46
- "@aws-sdk/types": "3.296.0",
47
- "@aws-sdk/url-parser": "3.296.0",
48
- "@aws-sdk/util-base64": "3.295.0",
49
- "@aws-sdk/util-body-length-browser": "3.295.0",
50
- "@aws-sdk/util-body-length-node": "3.295.0",
51
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
53
- "@aws-sdk/util-endpoints": "3.296.0",
54
- "@aws-sdk/util-retry": "3.296.0",
55
- "@aws-sdk/util-stream-browser": "3.296.0",
56
- "@aws-sdk/util-stream-node": "3.296.0",
57
- "@aws-sdk/util-user-agent-browser": "3.299.0",
58
- "@aws-sdk/util-user-agent-node": "3.300.0",
59
- "@aws-sdk/util-utf8": "3.295.0",
26
+ "@aws-sdk/client-sts": "3.303.0",
27
+ "@aws-sdk/config-resolver": "3.303.0",
28
+ "@aws-sdk/credential-provider-node": "3.303.0",
29
+ "@aws-sdk/fetch-http-handler": "3.303.0",
30
+ "@aws-sdk/hash-node": "3.303.0",
31
+ "@aws-sdk/invalid-dependency": "3.303.0",
32
+ "@aws-sdk/middleware-content-length": "3.303.0",
33
+ "@aws-sdk/middleware-endpoint": "3.303.0",
34
+ "@aws-sdk/middleware-host-header": "3.303.0",
35
+ "@aws-sdk/middleware-logger": "3.303.0",
36
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
37
+ "@aws-sdk/middleware-retry": "3.303.0",
38
+ "@aws-sdk/middleware-serde": "3.303.0",
39
+ "@aws-sdk/middleware-signing": "3.303.0",
40
+ "@aws-sdk/middleware-stack": "3.303.0",
41
+ "@aws-sdk/middleware-user-agent": "3.303.0",
42
+ "@aws-sdk/node-config-provider": "3.303.0",
43
+ "@aws-sdk/node-http-handler": "3.303.0",
44
+ "@aws-sdk/protocol-http": "3.303.0",
45
+ "@aws-sdk/smithy-client": "3.303.0",
46
+ "@aws-sdk/types": "3.303.0",
47
+ "@aws-sdk/url-parser": "3.303.0",
48
+ "@aws-sdk/util-base64": "3.303.0",
49
+ "@aws-sdk/util-body-length-browser": "3.303.0",
50
+ "@aws-sdk/util-body-length-node": "3.303.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
53
+ "@aws-sdk/util-endpoints": "3.303.0",
54
+ "@aws-sdk/util-retry": "3.303.0",
55
+ "@aws-sdk/util-stream-browser": "3.303.0",
56
+ "@aws-sdk/util-stream-node": "3.303.0",
57
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
58
+ "@aws-sdk/util-user-agent-node": "3.303.0",
59
+ "@aws-sdk/util-utf8": "3.303.0",
60
60
  "tslib": "^2.5.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
63
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/chai": "^4.2.11",
66
66
  "@types/mocha": "^8.0.4",