mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
api models and services
This commit is contained in:
47
src/models/api/requestModels.js
Normal file
47
src/models/api/requestModels.js
Normal file
@@ -0,0 +1,47 @@
|
||||
var SiteRequest = function () {
|
||||
this.folderId = null;
|
||||
this.name = null;
|
||||
this.uri = null;
|
||||
this.username = null;
|
||||
this.password = null;
|
||||
this.notes = null;
|
||||
this.favorite = false;
|
||||
};
|
||||
|
||||
var FolderRequest = function () {
|
||||
this.name = null;
|
||||
};
|
||||
|
||||
var TokenRequest = function () {
|
||||
this.email = null;
|
||||
this.masterPasswordHash = null;
|
||||
this.device = null;
|
||||
};
|
||||
|
||||
var RegisterRequest = function () {
|
||||
this.name = null;
|
||||
this.email = null;
|
||||
this.masterPasswordHash = null;
|
||||
this.masterPasswordHint = null;
|
||||
};
|
||||
|
||||
var PasswordHintRequest = function () {
|
||||
this.email = null;
|
||||
};
|
||||
|
||||
var TokenTwoFactorRequest = function () {
|
||||
this.code = null;
|
||||
this.provider = null;
|
||||
this.device = null;
|
||||
};
|
||||
|
||||
var DeviceTokenRequest = function () {
|
||||
this.pushToken = null;
|
||||
};
|
||||
|
||||
var DeviceRequest = function () {
|
||||
this.type = null;
|
||||
this.name = null;
|
||||
this.identifier = null;
|
||||
this.pushToken = null;
|
||||
};
|
||||
Reference in New Issue
Block a user