From 1d7347879b5b3ca70f685e3b567d5eba2d67827c Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Fri, 1 Dec 2023 16:28:49 +0100 Subject: [PATCH] :bug: Wrong undefined type on totp codes --- dist/Customer/TotpCodes.d.ts | 4 ++-- dist/Customer/TotpCodes.js | 6 ++++-- src/Customer/TotpCodes.ts | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dist/Customer/TotpCodes.d.ts b/dist/Customer/TotpCodes.d.ts index 481862c..afaab69 100644 --- a/dist/Customer/TotpCodes.d.ts +++ b/dist/Customer/TotpCodes.d.ts @@ -5,11 +5,11 @@ export default class TotpCodes extends Resource { customer?: Customer; created_at: Date | null; updated_at: Date | null; - reason?: TotpCodesReasons; + reason: TotpCodesReasons | null; customer_uid?: string; code?: string; resent?: boolean; - expire_at?: Date; + expire_at: Date | null; } export declare enum TotpCodesReasons { LOGIN = "LOGIN", diff --git a/dist/Customer/TotpCodes.js b/dist/Customer/TotpCodes.js index ec08ca7..1cf0405 100644 --- a/dist/Customer/TotpCodes.js +++ b/dist/Customer/TotpCodes.js @@ -22,6 +22,8 @@ class TotpCodes extends Resource_1.default { super(...arguments); this.created_at = null; this.updated_at = null; + this.reason = null; + this.expire_at = null; } } __decorate([ @@ -45,7 +47,7 @@ __decorate([ ], TotpCodes.prototype, "updated_at", void 0); __decorate([ (0, class_transformer_1.Expose)(), - __metadata("design:type", String) + __metadata("design:type", Object) ], TotpCodes.prototype, "reason", void 0); __decorate([ (0, class_transformer_1.Expose)(), @@ -61,7 +63,7 @@ __decorate([ ], TotpCodes.prototype, "resent", void 0); __decorate([ (0, class_transformer_1.Expose)(), - __metadata("design:type", Date) + __metadata("design:type", Object) ], TotpCodes.prototype, "expire_at", void 0); exports.default = TotpCodes; var TotpCodesReasons; diff --git a/src/Customer/TotpCodes.ts b/src/Customer/TotpCodes.ts index 24c3442..ae4057a 100644 --- a/src/Customer/TotpCodes.ts +++ b/src/Customer/TotpCodes.ts @@ -20,7 +20,7 @@ export default class TotpCodes extends Resource { public updated_at: Date | null = null; @Expose() - public reason?: TotpCodesReasons; + public reason: TotpCodesReasons | null = null; @Expose() public customer_uid?: string; @@ -32,7 +32,7 @@ export default class TotpCodes extends Resource { public resent?: boolean; @Expose() - public expire_at?: Date; + public expire_at: Date | null = null; } export enum TotpCodesReasons {