Refactor DocumentNotary class to include document_status property
This commit is contained in:
parent
a5b2e51977
commit
7154ed56cb
2
dist/Customer/DocumentNotary.d.ts
vendored
2
dist/Customer/DocumentNotary.d.ts
vendored
@ -3,7 +3,7 @@ import OfficeFolder from "./OfficeFolder";
|
||||
import Resource from "../Resource";
|
||||
import User from ".";
|
||||
import Customer from "../Customer";
|
||||
export default class Document extends Resource {
|
||||
export default class DocumentNotary extends Resource {
|
||||
uid?: string;
|
||||
name: string;
|
||||
folder?: OfficeFolder;
|
||||
|
22
dist/Customer/DocumentNotary.js
vendored
22
dist/Customer/DocumentNotary.js
vendored
@ -20,7 +20,7 @@ const Resource_1 = __importDefault(require("../Resource"));
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
const _1 = __importDefault(require("."));
|
||||
const Customer_1 = __importDefault(require("../Customer"));
|
||||
class Document extends Resource_1.default {
|
||||
class DocumentNotary extends Resource_1.default {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.created_at = null;
|
||||
@ -32,46 +32,46 @@ __decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsNotEmpty)({ groups: ["createFile"], message: "UID is required" }),
|
||||
__metadata("design:type", String)
|
||||
], Document.prototype, "uid", void 0);
|
||||
], DocumentNotary.prototype, "uid", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
__metadata("design:type", String)
|
||||
], Document.prototype, "name", void 0);
|
||||
], DocumentNotary.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => OfficeFolder_1.default),
|
||||
__metadata("design:type", OfficeFolder_1.default)
|
||||
], Document.prototype, "folder", void 0);
|
||||
], DocumentNotary.prototype, "folder", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => _1.default),
|
||||
__metadata("design:type", _1.default)
|
||||
], Document.prototype, "depositor", void 0);
|
||||
], DocumentNotary.prototype, "depositor", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => Customer_1.default),
|
||||
__metadata("design:type", Customer_1.default)
|
||||
], Document.prototype, "customer", void 0);
|
||||
], DocumentNotary.prototype, "customer", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsDate)(),
|
||||
__metadata("design:type", Object)
|
||||
], Document.prototype, "created_at", void 0);
|
||||
], DocumentNotary.prototype, "created_at", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsDate)(),
|
||||
__metadata("design:type", Object)
|
||||
], Document.prototype, "updated_at", void 0);
|
||||
], DocumentNotary.prototype, "updated_at", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => File_1.default),
|
||||
__metadata("design:type", Array)
|
||||
], Document.prototype, "files", void 0);
|
||||
], DocumentNotary.prototype, "files", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
__metadata("design:type", String)
|
||||
], Document.prototype, "document_status", void 0);
|
||||
exports.default = Document;
|
||||
], DocumentNotary.prototype, "document_status", void 0);
|
||||
exports.default = DocumentNotary;
|
||||
var EDocumentNotaryStatus;
|
||||
(function (EDocumentNotaryStatus) {
|
||||
EDocumentNotaryStatus["SENT"] = "SENT";
|
||||
|
1
dist/Customer/index.d.ts
vendored
1
dist/Customer/index.d.ts
vendored
@ -12,3 +12,4 @@ export { default as Office } from "./Office";
|
||||
export { default as OfficeFolder } from "./OfficeFolder";
|
||||
export { default as TotpCodes } from "./TotpCodes";
|
||||
export { default as Note } from "./Note";
|
||||
export { default as DocumentNotary } from "./DocumentNotary";
|
||||
|
4
dist/Customer/index.js
vendored
4
dist/Customer/index.js
vendored
@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Note = exports.TotpCodes = exports.OfficeFolder = exports.Office = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedType = exports.Deed = exports.Contact = exports.Address = void 0;
|
||||
exports.DocumentNotary = exports.Note = exports.TotpCodes = exports.OfficeFolder = exports.Office = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedType = exports.Deed = exports.Contact = exports.Address = void 0;
|
||||
const Customer_1 = __importDefault(require("./Customer"));
|
||||
exports.default = Customer_1.default;
|
||||
var Address_1 = require("./Address");
|
||||
@ -30,3 +30,5 @@ var TotpCodes_1 = require("./TotpCodes");
|
||||
Object.defineProperty(exports, "TotpCodes", { enumerable: true, get: function () { return __importDefault(TotpCodes_1).default; } });
|
||||
var Note_1 = require("./Note");
|
||||
Object.defineProperty(exports, "Note", { enumerable: true, get: function () { return __importDefault(Note_1).default; } });
|
||||
var DocumentNotary_1 = require("./DocumentNotary");
|
||||
Object.defineProperty(exports, "DocumentNotary", { enumerable: true, get: function () { return __importDefault(DocumentNotary_1).default; } });
|
||||
|
2
dist/Notary/DocumentNotary.d.ts
vendored
2
dist/Notary/DocumentNotary.d.ts
vendored
@ -3,7 +3,7 @@ import OfficeFolder from "./OfficeFolder";
|
||||
import Resource from "../Resource";
|
||||
import User from ".";
|
||||
import Customer from "../Customer";
|
||||
export default class Document extends Resource {
|
||||
export default class DocumentNotary extends Resource {
|
||||
uid?: string;
|
||||
name: string;
|
||||
folder?: OfficeFolder;
|
||||
|
22
dist/Notary/DocumentNotary.js
vendored
22
dist/Notary/DocumentNotary.js
vendored
@ -20,7 +20,7 @@ const Resource_1 = __importDefault(require("../Resource"));
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
const _1 = __importDefault(require("."));
|
||||
const Customer_1 = __importDefault(require("../Customer"));
|
||||
class Document extends Resource_1.default {
|
||||
class DocumentNotary extends Resource_1.default {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.created_at = null;
|
||||
@ -32,46 +32,46 @@ __decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsNotEmpty)({ groups: ["createFile"], message: "UID is required" }),
|
||||
__metadata("design:type", String)
|
||||
], Document.prototype, "uid", void 0);
|
||||
], DocumentNotary.prototype, "uid", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
__metadata("design:type", String)
|
||||
], Document.prototype, "name", void 0);
|
||||
], DocumentNotary.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => OfficeFolder_1.default),
|
||||
__metadata("design:type", OfficeFolder_1.default)
|
||||
], Document.prototype, "folder", void 0);
|
||||
], DocumentNotary.prototype, "folder", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => _1.default),
|
||||
__metadata("design:type", _1.default)
|
||||
], Document.prototype, "depositor", void 0);
|
||||
], DocumentNotary.prototype, "depositor", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => Customer_1.default),
|
||||
__metadata("design:type", Customer_1.default)
|
||||
], Document.prototype, "customer", void 0);
|
||||
], DocumentNotary.prototype, "customer", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsDate)(),
|
||||
__metadata("design:type", Object)
|
||||
], Document.prototype, "created_at", void 0);
|
||||
], DocumentNotary.prototype, "created_at", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsDate)(),
|
||||
__metadata("design:type", Object)
|
||||
], Document.prototype, "updated_at", void 0);
|
||||
], DocumentNotary.prototype, "updated_at", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => File_1.default),
|
||||
__metadata("design:type", Array)
|
||||
], Document.prototype, "files", void 0);
|
||||
], DocumentNotary.prototype, "files", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
__metadata("design:type", String)
|
||||
], Document.prototype, "document_status", void 0);
|
||||
exports.default = Document;
|
||||
], DocumentNotary.prototype, "document_status", void 0);
|
||||
exports.default = DocumentNotary;
|
||||
var EDocumentNotaryStatus;
|
||||
(function (EDocumentNotaryStatus) {
|
||||
EDocumentNotaryStatus["SENT"] = "SENT";
|
||||
|
@ -6,7 +6,7 @@ import { Expose, Type } from "class-transformer";
|
||||
import User from ".";
|
||||
import Customer from "../Customer";
|
||||
|
||||
export default class Document extends Resource {
|
||||
export default class DocumentNotary extends Resource {
|
||||
@Expose()
|
||||
@IsNotEmpty({ groups: ["createFile"], message: "UID is required" })
|
||||
public uid?: string;
|
||||
|
@ -13,3 +13,4 @@ export { default as Office } from "./Office";
|
||||
export { default as OfficeFolder } from "./OfficeFolder";
|
||||
export { default as TotpCodes } from "./TotpCodes";
|
||||
export { default as Note } from "./Note";
|
||||
export { default as DocumentNotary } from "./DocumentNotary";
|
||||
|
@ -6,7 +6,7 @@ import { Expose, Type } from "class-transformer";
|
||||
import User from ".";
|
||||
import Customer from "../Customer";
|
||||
|
||||
export default class Document extends Resource {
|
||||
export default class DocumentNotary extends Resource {
|
||||
@Expose()
|
||||
@IsNotEmpty({ groups: ["createFile"], message: "UID is required" })
|
||||
public uid?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user