File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,28 @@ class DeloreanES extends Request {
168
168
169
169
return this . send ( 'POST' , path , { payload } ) ;
170
170
}
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
+ }
171
193
}
172
194
173
195
module . exports = DeloreanES ;
You can’t perform that action at this time.
0 commit comments