Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions lib/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,32 +176,6 @@ exports.create_zip = function create_zip(callback, options = {}) {
};


exports.create_slideshow = function create_slideshow(options, callback) {
options.resource_type = ensureOption(options, "resource_type", "video");
return call_api("create_slideshow", callback, options, function () {
// Generate a transformation from the manifest_transformation key, which should be a valid transformation
const manifest_transformation = utils.generate_transformation_string(extend({}, options.manifest_transformation));

// Try to use {options.transformation} to generate a transformation (Example: options.transformation.width, options.transformation.height)
const transformation = utils.generate_transformation_string(extend({}, ensureOption(options, 'transformation', {})));

return [
{
timestamp: utils.timestamp(),
manifest_transformation: manifest_transformation,
upload_preset: options.upload_preset,
overwrite: options.overwrite,
public_id: options.public_id,
notification_url: options.notification_url,
manifest_json: options.manifest_json,
tags: options.tags,
transformation: transformation
}
];
});
};


exports.destroy = function destroy(public_id, callback, options = {}) {
return call_api("destroy", callback, options, function () {
return [
Expand Down
1 change: 0 additions & 1 deletion lib/v2/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@ exports.upload_tag_params = uploader.upload_tag_params;
exports.upload_url = uploader.upload_url;
exports.image_upload_tag = uploader.image_upload_tag;
exports.unsigned_image_upload_tag = uploader.unsigned_image_upload_tag;
exports.create_slideshow = uploader.create_slideshow;
exports.download_generated_sprite = uploader.download_generated_sprite;
exports.download_multi = uploader.download_multi;
114 changes: 0 additions & 114 deletions test/integration/api/uploader/slideshow_spec.js

This file was deleted.

11 changes: 0 additions & 11 deletions types/cloudinary_ts_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1240,14 +1240,3 @@ cloudinary.v2.api.config();

// $ExpectType Promise<ConfigResponse>
cloudinary.v2.api.config({ settings: true });

// $ExpectType Promise<any>
cloudinary.v2.uploader.create_slideshow({
manifest_json: {
foo: 'bar' // This is a typescript Record
}, // In practice only one of the two are allowed
manifest_transformation: {
width: 100
},
height: 100
});
5 changes: 0 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1426,11 +1426,6 @@ declare module 'cloudinary' {

function upload_url(options?: ConfigOptions): Promise<any>;

function create_slideshow(options?: ConfigOptions & {
manifest_transformation?: TransformationOptions,
manifest_json?: Record<string, any>
}, callback?: UploadResponseCallback): Promise<any>;

/****************************** Structured Metadata API V2 Methods *************************************/

function update_metadata(metadata: string | Record<any, any>, public_ids: string[], options?: UploadApiOptions, callback?: ResponseCallback): Promise<MetadataFieldApiResponse>;
Expand Down
Loading