@rss/common
Advanced tools
Comparing version 0.0.79 to 0.0.81
@@ -33,7 +33,7 @@ 'use strict'; | ||
this.responses = opt.responses; | ||
this.templateId = new ObjectId(opt.templateId); | ||
this.templateId = opt.templateId; | ||
this.createdBy = new PersonReference(opt.createdBy); | ||
this.createdDate = opt.responses ? new Date(opt.responses) : null; | ||
this.lastModifiedBy = opt.lastModifiedBy; | ||
this.lastModifiedDate = opt.responses ? new Date(opt.responses) : null; | ||
this.createdDate = opt.createdDate ? new Date(opt.createdDate) : null; | ||
this.lastModifiedBy = new PersonReference(opt.lastModifiedBy); | ||
this.lastModifiedDate = opt.lastModifiedDate ? new Date(opt.lastModifiedDate) : null; | ||
} | ||
@@ -40,0 +40,0 @@ }, { |
@@ -27,8 +27,7 @@ 'use strict'; | ||
_this.status = null; | ||
_this.template = null; | ||
_this.templateId = null; | ||
_this.templateType = null; | ||
_this.templatePrefix = null; | ||
_this.stateId = null; | ||
_this.ruleSet = null; | ||
_this.rp = null; | ||
_this.groupId = null; | ||
_this.number = null; | ||
@@ -38,2 +37,3 @@ _this.error = null; | ||
_this.expirationDate = null; | ||
_this.approvalDate = null; | ||
_this.access = null; | ||
@@ -52,11 +52,11 @@ | ||
this.status = opt.status; | ||
this.template = opt.template; | ||
this.templateId = opt.templateId; | ||
this.templateType = opt.templateType; | ||
this.templatePrefix = opt.templatePrefix; | ||
this.stateId = new ObjectId(opt.stateId); | ||
this.ruleSet = opt.ruleSet; | ||
this.rp = new PersonReference(opt.rp); | ||
this.groupId = opt.groupId; | ||
this.number = opt.number; | ||
this.error = opt.error; | ||
this.assignedTo = opt.assignedTo; | ||
this.approvalDate = opt.approvalDate ? new Date(opt.approvalDate) : null; | ||
this.expirationDate = opt.expirationDate ? new Date(opt.expirationDate) : null; | ||
@@ -63,0 +63,0 @@ this.access = opt.access && opt.access.length ? opt.access.map(function (item) { |
@@ -59,2 +59,5 @@ // constant - core | ||
// constant - use-authorization | ||
exports.USE_AUTHORIZATION_PERMISSIONS = require('./dist/constant/use-authorization/permission-types.constant'); | ||
// model - common | ||
@@ -61,0 +64,0 @@ exports.Access = require('./dist/model/common/access'); |
{ | ||
"name": "@rss/common", | ||
"version": "0.0.79", | ||
"version": "0.0.81", | ||
"description": "common constant, classes, & helper", | ||
@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution", |
@@ -23,7 +23,7 @@ const ObjectId = require('bson').ObjectID; | ||
this.responses = opt.responses; | ||
this.templateId = new ObjectId(opt.templateId); | ||
this.templateId = opt.templateId; | ||
this.createdBy = new PersonReference(opt.createdBy); | ||
this.createdDate = opt.responses ? new Date(opt.responses) : null; | ||
this.lastModifiedBy = opt.lastModifiedBy; | ||
this.lastModifiedDate = opt.responses ? new Date(opt.responses) : null; | ||
this.createdDate = opt.createdDate ? new Date(opt.createdDate) : null; | ||
this.lastModifiedBy = new PersonReference(opt.lastModifiedBy); | ||
this.lastModifiedDate = opt.lastModifiedDate ? new Date(opt.lastModifiedDate) : null; | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -12,8 +12,7 @@ const ObjectId = require('bson').ObjectID; | ||
this.status = null; | ||
this.template = null; | ||
this.templateId = null; | ||
this.templateType = null; | ||
this.templatePrefix = null; | ||
this.stateId = null; | ||
this.ruleSet = null; | ||
this.rp = null; | ||
this.groupId = null; | ||
this.number = null; | ||
@@ -23,2 +22,3 @@ this.error = null; | ||
this.expirationDate = null; | ||
this.approvalDate = null; | ||
this.access = null; | ||
@@ -34,11 +34,11 @@ | ||
this.status = opt.status; | ||
this.template = opt.template; | ||
this.templateId = opt.templateId; | ||
this.templateType = opt.templateType; | ||
this.templatePrefix = opt.templatePrefix; | ||
this.stateId = new ObjectId(opt.stateId); | ||
this.ruleSet = opt.ruleSet; | ||
this.rp = new PersonReference(opt.rp); | ||
this.groupId = opt.groupId; | ||
this.number = opt.number; | ||
this.error = opt.error; | ||
this.assignedTo = opt.assignedTo; | ||
this.approvalDate = opt.approvalDate ? new Date(opt.approvalDate) : null; | ||
this.expirationDate = opt.expirationDate ? new Date(opt.expirationDate) : null; | ||
@@ -45,0 +45,0 @@ this.access = opt.access && opt.access.length ? opt.access.map((item) => new Access(item)) : []; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262
13961
804564