Skip to content

Commit 259816b

Browse files
committed
feat: delorean migrate and replace user
https://mydevices.atlassian.net/browse/SS-8788
1 parent ba8e585 commit 259816b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lib/Services/delorean-es.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,28 @@ class DeloreanES extends Request {
168168

169169
return this.send('POST', path, { payload });
170170
}
171+
172+
/**
173+
* @param {Object} payload
174+
* @param {Object} opts
175+
*/
176+
migrateUser(payload, opts) {
177+
const path = `/move/users`;
178+
opts = { response: 300000, deadline: 310000, ...opts };
179+
opts.payload = payload;
180+
return this.send('POST', path, opts);
181+
}
182+
183+
/**
184+
* @param {Object} payload
185+
* @param {Object} ops
186+
*/
187+
replaceUsers(payload, opts) {
188+
const path = `/replace/users`;
189+
opts = { response: 300000, deadline: 310000, ...opts };
190+
opts.payload = payload;
191+
return this.send('POST', path, opts);
192+
}
171193
}
172194

173195
module.exports = DeloreanES;

0 commit comments

Comments
 (0)