Class: MigrateCollections

MigrateCollections()

Migrate Collections related responses to the latest version.

Constructor

new MigrateCollections()

Source:

Methods

(static) convertCollectionsToLatestSpec(response, version) → {object}

Converts a `GET /collections` response to the latest version. Always returns a deep copy of the input object.
Parameters:
Name Type Description
response object The response to convert
version string Version number of the API, which the response conforms to
Source:
Returns:
Type
object

(static) convertCollectionToLatestSpec(process, version) → {object}

Converts a single collection to the latest version. Always returns a deep copy of the input object.
Parameters:
Name Type Description
process object The collection to convert
version string Version number of the API, which the collection conforms to
Source:
Returns:
Type
object