Document Reminder
This commit is contained in:
parent
1ff827be74
commit
a320ed8759
9
dist/Notary/DocumentReminder.d.ts
vendored
Normal file
9
dist/Notary/DocumentReminder.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import Document from "./Document";
|
||||||
|
import Resource from "../Resource";
|
||||||
|
export default class DocumentReminder extends Resource {
|
||||||
|
uid?: string;
|
||||||
|
document?: Document;
|
||||||
|
reminder_date: Date | null;
|
||||||
|
created_at: Date | null;
|
||||||
|
updated_at: Date | null;
|
||||||
|
}
|
55
dist/Notary/DocumentReminder.js
vendored
Normal file
55
dist/Notary/DocumentReminder.js
vendored
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
"use strict";
|
||||||
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||||
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||||
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||||
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||||
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||||
|
};
|
||||||
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||||
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||||
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const class_validator_1 = require("class-validator");
|
||||||
|
const Document_1 = __importDefault(require("./Document"));
|
||||||
|
const Resource_1 = __importDefault(require("../Resource"));
|
||||||
|
const class_transformer_1 = require("class-transformer");
|
||||||
|
class DocumentReminder extends Resource_1.default {
|
||||||
|
constructor() {
|
||||||
|
super(...arguments);
|
||||||
|
this.reminder_date = null;
|
||||||
|
this.created_at = null;
|
||||||
|
this.updated_at = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Expose)(),
|
||||||
|
(0, class_validator_1.IsNotEmpty)({
|
||||||
|
groups: ["createDocumentReminder"],
|
||||||
|
message: "UID is required",
|
||||||
|
}),
|
||||||
|
__metadata("design:type", String)
|
||||||
|
], DocumentReminder.prototype, "uid", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Expose)(),
|
||||||
|
(0, class_transformer_1.Type)(() => Document_1.default),
|
||||||
|
__metadata("design:type", Document_1.default)
|
||||||
|
], DocumentReminder.prototype, "document", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Expose)(),
|
||||||
|
(0, class_validator_1.IsDate)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], DocumentReminder.prototype, "reminder_date", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Expose)(),
|
||||||
|
(0, class_validator_1.IsDate)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], DocumentReminder.prototype, "created_at", void 0);
|
||||||
|
__decorate([
|
||||||
|
(0, class_transformer_1.Expose)(),
|
||||||
|
(0, class_validator_1.IsDate)(),
|
||||||
|
__metadata("design:type", Object)
|
||||||
|
], DocumentReminder.prototype, "updated_at", void 0);
|
||||||
|
exports.default = DocumentReminder;
|
1
dist/Notary/index.d.ts
vendored
1
dist/Notary/index.d.ts
vendored
@ -19,3 +19,4 @@ export { default as Role } from "./Role";
|
|||||||
export { default as OfficeRole } from "./OfficeRole";
|
export { default as OfficeRole } from "./OfficeRole";
|
||||||
export { default as Note } from "../Customer/Note";
|
export { default as Note } from "../Customer/Note";
|
||||||
export { default as DocumentNotary } from "./DocumentNotary";
|
export { default as DocumentNotary } from "./DocumentNotary";
|
||||||
|
export { default as DocumentReminder } from "./DocumentReminder";
|
||||||
|
4
dist/Notary/index.js
vendored
4
dist/Notary/index.js
vendored
@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.DocumentNotary = exports.Note = exports.OfficeRole = exports.Role = exports.Rule = exports.OfficeFolderAnchor = exports.OfficeFolder = exports.Office = exports.UserNotification = exports.Notification = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedType = exports.Deed = exports.Contact = exports.Customer = exports.Address = void 0;
|
exports.DocumentReminder = exports.DocumentNotary = exports.Note = exports.OfficeRole = exports.Role = exports.Rule = exports.OfficeFolderAnchor = exports.OfficeFolder = exports.Office = exports.UserNotification = exports.Notification = exports.File = exports.DocumentType = exports.DocumentHistory = exports.Document = exports.DeedType = exports.Deed = exports.Contact = exports.Customer = exports.Address = void 0;
|
||||||
const User_1 = __importDefault(require("./User"));
|
const User_1 = __importDefault(require("./User"));
|
||||||
exports.default = User_1.default;
|
exports.default = User_1.default;
|
||||||
var Address_1 = require("../SuperAdmin/Address");
|
var Address_1 = require("../SuperAdmin/Address");
|
||||||
@ -44,3 +44,5 @@ var Note_1 = require("../Customer/Note");
|
|||||||
Object.defineProperty(exports, "Note", { enumerable: true, get: function () { return __importDefault(Note_1).default; } });
|
Object.defineProperty(exports, "Note", { enumerable: true, get: function () { return __importDefault(Note_1).default; } });
|
||||||
var DocumentNotary_1 = require("./DocumentNotary");
|
var DocumentNotary_1 = require("./DocumentNotary");
|
||||||
Object.defineProperty(exports, "DocumentNotary", { enumerable: true, get: function () { return __importDefault(DocumentNotary_1).default; } });
|
Object.defineProperty(exports, "DocumentNotary", { enumerable: true, get: function () { return __importDefault(DocumentNotary_1).default; } });
|
||||||
|
var DocumentReminder_1 = require("./DocumentReminder");
|
||||||
|
Object.defineProperty(exports, "DocumentReminder", { enumerable: true, get: function () { return __importDefault(DocumentReminder_1).default; } });
|
||||||
|
29
src/Notary/DocumentReminder.ts
Normal file
29
src/Notary/DocumentReminder.ts
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { IsDate, IsNotEmpty } from "class-validator";
|
||||||
|
import Document from "./Document";
|
||||||
|
import Resource from "../Resource";
|
||||||
|
import { Expose, Type } from "class-transformer";
|
||||||
|
|
||||||
|
export default class DocumentReminder extends Resource {
|
||||||
|
@Expose()
|
||||||
|
@IsNotEmpty({
|
||||||
|
groups: ["createDocumentReminder"],
|
||||||
|
message: "UID is required",
|
||||||
|
})
|
||||||
|
public uid?: string;
|
||||||
|
|
||||||
|
@Expose()
|
||||||
|
@Type(() => Document)
|
||||||
|
public document?: Document;
|
||||||
|
|
||||||
|
@Expose()
|
||||||
|
@IsDate()
|
||||||
|
public reminder_date: Date | null = null;
|
||||||
|
|
||||||
|
@Expose()
|
||||||
|
@IsDate()
|
||||||
|
public created_at: Date | null = null;
|
||||||
|
|
||||||
|
@Expose()
|
||||||
|
@IsDate()
|
||||||
|
public updated_at: Date | null = null;
|
||||||
|
}
|
@ -20,3 +20,4 @@ export { default as Role } from "./Role";
|
|||||||
export { default as OfficeRole } from "./OfficeRole";
|
export { default as OfficeRole } from "./OfficeRole";
|
||||||
export { default as Note } from "../Customer/Note";
|
export { default as Note } from "../Customer/Note";
|
||||||
export { default as DocumentNotary } from "./DocumentNotary";
|
export { default as DocumentNotary } from "./DocumentNotary";
|
||||||
|
export { default as DocumentReminder } from "./DocumentReminder";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user