✨ Exclude sensitive data
This commit is contained in:
parent
37c111c0d4
commit
eb86ca0276
20
dist/Customer/Customer.js
vendored
20
dist/Customer/Customer.js
vendored
@ -57,6 +57,26 @@ __decorate([
|
|||||||
(0, class_transformer_1.Type)(() => _1.Document),
|
(0, class_transformer_1.Type)(() => _1.Document),
|
||||||
__metadata("design:type", Array)
|
__metadata("design:type", Array)
|
||||||
], Customer.prototype, "documents", void 0);
|
], Customer.prototype, "documents", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Exclude)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], Customer.prototype, "smsCode", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Exclude)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], Customer.prototype, "smsCodeExpire", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Exclude)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], Customer.prototype, "passwordCode", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Exclude)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], Customer.prototype, "passwordCodeExpire", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Exclude)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], Customer.prototype, "password", void 0);
|
||||||
exports.default = Customer;
|
exports.default = Customer;
|
||||||
var ECustomerStatus;
|
var ECustomerStatus;
|
||||||
(function (ECustomerStatus) {
|
(function (ECustomerStatus) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { IsDate } from "class-validator";
|
import { IsDate } from "class-validator";
|
||||||
import { Contact, Document, OfficeFolder } from ".";
|
import { Contact, Document, OfficeFolder } from ".";
|
||||||
import Resource from "../Resource";
|
import Resource from "../Resource";
|
||||||
import { Expose, Type } from "class-transformer";
|
import { Exclude, Expose, Type } from "class-transformer";
|
||||||
|
|
||||||
export default class Customer extends Resource {
|
export default class Customer extends Resource {
|
||||||
@Expose()
|
@Expose()
|
||||||
@ -30,10 +30,19 @@ export default class Customer extends Resource {
|
|||||||
@Type(() => Document)
|
@Type(() => Document)
|
||||||
public documents?: Document[];
|
public documents?: Document[];
|
||||||
|
|
||||||
|
@Exclude()
|
||||||
public smsCode?: string | null;
|
public smsCode?: string | null;
|
||||||
|
|
||||||
|
@Exclude()
|
||||||
public smsCodeExpire?: Date | null;
|
public smsCodeExpire?: Date | null;
|
||||||
|
|
||||||
|
@Exclude()
|
||||||
public passwordCode?: string | null;
|
public passwordCode?: string | null;
|
||||||
|
|
||||||
|
@Exclude()
|
||||||
public passwordCodeExpire?: Date | null;
|
public passwordCodeExpire?: Date | null;
|
||||||
|
|
||||||
|
@Exclude()
|
||||||
public password?: string | null;
|
public password?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user