Skip to content

Commit 456da1b

Browse files
authored
Merge pull request #21 from shotstack/volume-effects-s3-required
Fix up issues and update contents from latest update
2 parents 6eb718f + d872939 commit 456da1b

File tree

6 files changed

+34
-12
lines changed

6 files changed

+34
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shotstack-sdk",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Official Node SDK for the Shotstack Cloud Video Editing API",
55
"license": "MIT",
66
"main": "src/index.js",

src/model/Asset.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,24 @@ exports.prototype['trim'] = undefined;
507507
}
508508

509509

510+
/**
511+
* Returns The volume effect to apply to the video asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>
512+
* @return {module:model/Asset.VolumeEffectEnum}
513+
*/
514+
exports.prototype.getVolumeEffect = function() {
515+
return this['volumeEffect'];
516+
}
517+
518+
/**
519+
* Sets The volume effect to apply to the video asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>
520+
* @param {module:model/Asset.VolumeEffectEnum} volumeEffect The volume effect to apply to the video asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>
521+
*/
522+
exports.prototype.setVolumeEffect = function(volumeEffect) {
523+
this['volumeEffect'] = volumeEffect;
524+
return this;
525+
}
526+
527+
510528
/**
511529
* @return {module:model/Crop}
512530
*/

src/model/Edit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
*/
102102
exports.prototype['callback'] = undefined;
103103
/**
104-
* The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
104+
* **Notice: This option is now deprecated and will be removed. Disk types are handled automatically. Setting a disk type has no effect.** The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
105105
* @member {module:model/Edit.DiskEnum} disk
106106
*/
107107
exports.prototype['disk'] = undefined;
@@ -176,16 +176,16 @@
176176

177177

178178
/**
179-
* Returns The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
179+
* Returns **Notice: This option is now deprecated and will be removed. Disk types are handled automatically. Setting a disk type has no effect.** The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
180180
* @return {module:model/Edit.DiskEnum}
181181
*/
182182
exports.prototype.getDisk = function() {
183183
return this['disk'];
184184
}
185185

186186
/**
187-
* Sets The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
188-
* @param {module:model/Edit.DiskEnum} disk The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
187+
* Sets **Notice: This option is now deprecated and will be removed. Disk types are handled automatically. Setting a disk type has no effect.** The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
188+
* @param {module:model/Edit.DiskEnum} disk **Notice: This option is now deprecated and will be removed. Disk types are handled automatically. Setting a disk type has no effect.** The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
189189
*/
190190
exports.prototype.setDisk = function(disk) {
191191
this['disk'] = disk;

src/model/S3DestinationOptions.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@
4343
* Pass additional options to control how files are stored in S3.
4444
* @alias module:model/S3DestinationOptions
4545
* @class
46+
* @param region {String} Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.
47+
* @param bucket {String} The bucket name to send files to. The bucket must exist in the AWS account before files can be sent.
4648
*/
47-
var exports = function() {
49+
var exports = function(region, bucket) {
4850
var _this = this;
4951

52+
_this['region'] = region;
53+
_this['bucket'] = bucket;
5054
};
5155

5256
/**
@@ -79,7 +83,7 @@
7983
}
8084

8185
/**
82-
* Choose the region to send the file to. Must be a valid [AWS region] string like `us-east-1` or `ap-southeast-2`.
86+
* Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.
8387
* @member {String} region
8488
*/
8589
exports.prototype['region'] = undefined;
@@ -106,16 +110,16 @@
106110

107111

108112
/**
109-
* Returns Choose the region to send the file to. Must be a valid [AWS region] string like `us-east-1` or `ap-southeast-2`.
113+
* Returns Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.
110114
* @return {String}
111115
*/
112116
exports.prototype.getRegion = function() {
113117
return this['region'];
114118
}
115119

116120
/**
117-
* Sets Choose the region to send the file to. Must be a valid [AWS region] string like `us-east-1` or `ap-southeast-2`.
118-
* @param {String} region Choose the region to send the file to. Must be a valid [AWS region] string like `us-east-1` or `ap-southeast-2`.
121+
* Sets Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.
122+
* @param {String} region Choose the region to send the file to. Must be a valid [AWS region](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region) string like `us-east-1` or `ap-southeast-2`.
119123
*/
120124
exports.prototype.setRegion = function(region) {
121125
this['region'] = region;

src/model/TemplateRender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
/**
4242
* Constructs a new <code>TemplateRender</code>.
43-
* Render a template by it&#39;s id and optional merge fields.
43+
* Configure the id and optional merge fields to render a template by id.
4444
* @alias module:model/TemplateRender
4545
* @class
4646
* @param id {String} The id of the template to render in UUID format.

src/model/TemplateResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
/**
4242
* Constructs a new <code>TemplateResponse</code>.
43-
* The response received after a [template](#create-a-template) is submitted. The template is saved and a unique template id is returned.
43+
* The response received after a [template](#create-template) is submitted. The template is saved and a unique template id is returned.
4444
* @alias module:model/TemplateResponse
4545
* @class
4646
* @param success {Boolean} `true` if successfully created, else `false`.

0 commit comments

Comments
 (0)