Comparing version 0.21.0 to 0.22.0
@@ -45,2 +45,3 @@ /// <reference types="node" /> | ||
share: (devices: any[], emails: string[], authhash: string) => Promise<any>; | ||
transfer: (devices: any[], email: string, authhash: string) => Promise<any>; | ||
group: (devices: IRawDevice[], metadata: { | ||
@@ -47,0 +48,0 @@ [index: string]: IRawMetadata; |
@@ -239,2 +239,17 @@ "use strict"; | ||
}, | ||
transfer: function (devices, email, authhash) { | ||
return r3.post('/developer/devices/invitation/transfer/', { | ||
actionurl: r3.successURL + "/invite/accept?type=transfer&id=", | ||
authhash: authhash, | ||
queue_name: 'WeavedTaskQueue', | ||
email: email, | ||
function: 'transfer_devices', | ||
label: 'transferring', | ||
options: JSON.stringify({ | ||
devices: lodash_1.map(devices, function (d) { return d.id; }).join(','), | ||
emails: email, | ||
newuser: email, | ||
}), | ||
}); | ||
}, | ||
group: function (devices, metadata) { | ||
@@ -241,0 +256,0 @@ // Make sure metadata keys are lowercase |
{ | ||
"name": "remote.it", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"description": "remote.it JavaScript/node client library", | ||
@@ -5,0 +5,0 @@ "main": "dist/remote.it.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
381450
2610