component-dbs-core
Version:
DTO objects shared among device backend
59 lines • 2.01 kB
JavaScript
"use strict";
/* istanbul ignore file */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PhoneVerificationDto = exports.PhoneRegistrationDto = exports.ChangePasswordInputDto = exports.CheckAccessTokenInputDto = exports.IdentityDto = exports.IdentitySignUpInputDto = exports.IdentityLoginInputDto = void 0;
class IdentityLoginInputDto {
constructor(email, password, deviceUuid, refreshToken) {
this.email = email;
this.password = password;
this.deviceUuid = deviceUuid;
this.refreshToken = refreshToken;
}
}
exports.IdentityLoginInputDto = IdentityLoginInputDto;
class IdentitySignUpInputDto {
constructor(email, password, deviceUuid) {
this.email = email;
this.password = password;
this.deviceUuid = deviceUuid;
}
}
exports.IdentitySignUpInputDto = IdentitySignUpInputDto;
class IdentityDto {
constructor(valid, accessToken, refreshToken, idToken) {
this.valid = valid;
this.accessToken = accessToken;
this.refreshToken = refreshToken;
this.idToken = idToken;
}
}
exports.IdentityDto = IdentityDto;
class CheckAccessTokenInputDto {
constructor(accessToken, refreshToken, deviceUuid) {
this.accessToken = accessToken;
this.refreshToken = refreshToken;
this.deviceUuid = deviceUuid;
}
}
exports.CheckAccessTokenInputDto = CheckAccessTokenInputDto;
class ChangePasswordInputDto {
constructor(password, userId) {
this.password = password;
this.userId = userId;
}
}
exports.ChangePasswordInputDto = ChangePasswordInputDto;
class PhoneRegistrationDto {
constructor(codeSent, validUntil) {
this.codeSent = codeSent;
this.validUntil = validUntil;
}
}
exports.PhoneRegistrationDto = PhoneRegistrationDto;
class PhoneVerificationDto {
constructor(codeVerified) {
this.codeVerified = codeVerified;
}
}
exports.PhoneVerificationDto = PhoneVerificationDto;
//# sourceMappingURL=identityDto.js.map