@tomei/rental 0.17.3-dev.7 → 0.17.3-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/components/agreement-signature/agreement-signature.d.ts +4 -0
  2. package/dist/components/agreement-signature/agreement-signature.js +8 -0
  3. package/dist/components/agreement-signature/agreement-signature.js.map +1 -1
  4. package/dist/interfaces/agreemeent-signature-attr.interface.d.ts +4 -0
  5. package/dist/src/ClassMappings/ItemClassMap.d.ts +4 -0
  6. package/dist/src/ClassMappings/ItemClassMap.js +8 -0
  7. package/dist/src/ClassMappings/ItemClassMap.js.map +1 -0
  8. package/dist/src/ClassMappings/index.d.ts +2 -0
  9. package/dist/src/ClassMappings/index.js +6 -0
  10. package/dist/src/ClassMappings/index.js.map +1 -0
  11. package/dist/src/components/agreement/agreement.js +91 -72
  12. package/dist/src/components/agreement/agreement.js.map +1 -1
  13. package/dist/src/components/agreement/agreement.repository.js +50 -35
  14. package/dist/src/components/agreement/agreement.repository.js.map +1 -1
  15. package/dist/src/components/agreement-history/agreement-history.js +21 -10
  16. package/dist/src/components/agreement-history/agreement-history.js.map +1 -1
  17. package/dist/src/components/agreement-history/agreement-history.repository.js +50 -35
  18. package/dist/src/components/agreement-history/agreement-history.repository.js.map +1 -1
  19. package/dist/src/components/agreement-signature/agreement-signature.js +70 -57
  20. package/dist/src/components/agreement-signature/agreement-signature.js.map +1 -1
  21. package/dist/src/components/agreement-signature/agreement-signature.repository.js +51 -36
  22. package/dist/src/components/agreement-signature/agreement-signature.repository.js.map +1 -1
  23. package/dist/src/components/booking/booking.js +231 -206
  24. package/dist/src/components/booking/booking.js.map +1 -1
  25. package/dist/src/components/booking/booking.repository.js +50 -35
  26. package/dist/src/components/booking/booking.repository.js.map +1 -1
  27. package/dist/src/components/hirer-change-request-new-hirer/hirer-change-request-new-hirer.js +62 -47
  28. package/dist/src/components/hirer-change-request-new-hirer/hirer-change-request-new-hirer.js.map +1 -1
  29. package/dist/src/components/hirer-change-request-new-hirer/hirer-change-request-new-hirer.repository.js +63 -46
  30. package/dist/src/components/hirer-change-request-new-hirer/hirer-change-request-new-hirer.repository.js.map +1 -1
  31. package/dist/src/components/hirer-change-request-remove-hirer/hirer-change-request-remove-hirer.js +64 -49
  32. package/dist/src/components/hirer-change-request-remove-hirer/hirer-change-request-remove-hirer.js.map +1 -1
  33. package/dist/src/components/hirer-change-request-remove-hirer/hirer-change-request-remove-hirer.repository.js +64 -47
  34. package/dist/src/components/hirer-change-request-remove-hirer/hirer-change-request-remove-hirer.repository.js.map +1 -1
  35. package/dist/src/components/hirer-change-request-signature/hirer-change-request-signature.js +167 -150
  36. package/dist/src/components/hirer-change-request-signature/hirer-change-request-signature.js.map +1 -1
  37. package/dist/src/components/hirer-change-request-signature/hirer-change-request-signature.repository.js +64 -47
  38. package/dist/src/components/hirer-change-request-signature/hirer-change-request-signature.repository.js.map +1 -1
  39. package/dist/src/components/joint-hirer/joint-hirer.d.ts +2 -0
  40. package/dist/src/components/joint-hirer/joint-hirer.js +133 -81
  41. package/dist/src/components/joint-hirer/joint-hirer.js.map +1 -1
  42. package/dist/src/components/joint-hirer/joint-hirer.repository.js +50 -35
  43. package/dist/src/components/joint-hirer/joint-hirer.repository.js.map +1 -1
  44. package/dist/src/components/rental/rental.d.ts +12 -3
  45. package/dist/src/components/rental/rental.js +755 -549
  46. package/dist/src/components/rental/rental.js.map +1 -1
  47. package/dist/src/components/rental/rental.repository.js +50 -35
  48. package/dist/src/components/rental/rental.repository.js.map +1 -1
  49. package/dist/src/components/rental-hirer-change-request/rental-hirer-change-request.js +456 -416
  50. package/dist/src/components/rental-hirer-change-request/rental-hirer-change-request.js.map +1 -1
  51. package/dist/src/components/rental-hirer-change-request/rental-hirer-change-request.repository.js +63 -46
  52. package/dist/src/components/rental-hirer-change-request/rental-hirer-change-request.repository.js.map +1 -1
  53. package/dist/src/components/rental-price/rental-price.js +46 -33
  54. package/dist/src/components/rental-price/rental-price.js.map +1 -1
  55. package/dist/src/components/rental-price/rental-price.repository.js +50 -35
  56. package/dist/src/components/rental-price/rental-price.repository.js.map +1 -1
  57. package/dist/src/enum/agreement-signature-verification-method.enum.d.ts +4 -0
  58. package/dist/src/enum/agreement-signature-verification-method.enum.js +9 -0
  59. package/dist/src/enum/agreement-signature-verification-method.enum.js.map +1 -0
  60. package/dist/src/enum/index.d.ts +2 -1
  61. package/dist/src/enum/index.js +3 -1
  62. package/dist/src/enum/index.js.map +1 -1
  63. package/dist/src/index.d.ts +2 -1
  64. package/dist/src/index.js +3 -1
  65. package/dist/src/index.js.map +1 -1
  66. package/dist/src/models/agreement-signature.entity.d.ts +4 -0
  67. package/dist/src/models/agreement-signature.entity.js +22 -0
  68. package/dist/src/models/agreement-signature.entity.js.map +1 -1
  69. package/dist/src/models/hirer-change-request-new-hirer.entity.d.ts +1 -1
  70. package/dist/src/models/hirer-change-request-remove-hirer.entity.d.ts +1 -1
  71. package/dist/src/models/hirer-change-request-signature.entity.d.ts +1 -1
  72. package/dist/src/models/joint-hirer.entity.js +0 -4
  73. package/dist/src/models/joint-hirer.entity.js.map +1 -1
  74. package/dist/tsconfig.build.tsbuildinfo +1 -1
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +1 -1
  77. package/src/components/agreement-signature/agreement-signature.ts +12 -0
  78. package/src/interfaces/agreemeent-signature-attr.interface.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/rental",
3
- "version": "0.17.3-dev.7",
3
+ "version": "0.17.3-dev.8",
4
4
  "description": "Tomei Rental Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -5,6 +5,7 @@ import { ApplicationConfig } from '@tomei/config';
5
5
  import { LoginUser } from '@tomei/sso';
6
6
  import { ActionEnum, Activity } from '@tomei/activity-history';
7
7
  import { AgreementSignatureStatusEnum } from '../../enum/agreement-signature-status.enum';
8
+ import { AgreementSignatureVerificationMethodEnum } from '../../enum/agreement-signature-verification-method.enum';
8
9
 
9
10
  export class AgreementSignature
10
11
  extends ObjectBase
@@ -20,6 +21,9 @@ export class AgreementSignature
20
21
  PartyType: string;
21
22
  SignatureStatus: AgreementSignatureStatusEnum;
22
23
  SignedAt: Date;
24
+ VerificationMethod: AgreementSignatureVerificationMethodEnum;
25
+ VerificationJustification: string;
26
+ VerifiedById: string;
23
27
  CreatedById: string;
24
28
  CreatedAt: Date;
25
29
  UpdatedById: string;
@@ -45,6 +49,10 @@ export class AgreementSignature
45
49
  this.PartyType = AgreementSignatureAttr.PartyType;
46
50
  this.SignatureStatus = AgreementSignatureAttr.SignatureStatus;
47
51
  this.SignedAt = AgreementSignatureAttr.SignedAt;
52
+ this.VerificationMethod = AgreementSignatureAttr.VerificationMethod;
53
+ this.VerificationJustification =
54
+ AgreementSignatureAttr.VerificationJustification;
55
+ this.VerifiedById = AgreementSignatureAttr.VerifiedById;
48
56
  this.CreatedById = AgreementSignatureAttr.CreatedById;
49
57
  this.CreatedAt = AgreementSignatureAttr.CreatedAt;
50
58
  this.UpdatedById = AgreementSignatureAttr.UpdatedById;
@@ -101,6 +109,7 @@ export class AgreementSignature
101
109
  }
102
110
 
103
111
  this.ObjectId = this.createId();
112
+ this.VerifiedById = loginUser.ObjectId;
104
113
  this.CreatedById = loginUser.ObjectId;
105
114
  this.CreatedAt = new Date();
106
115
  this.UpdatedById = loginUser.ObjectId;
@@ -114,6 +123,9 @@ export class AgreementSignature
114
123
  PartyType: this.PartyType,
115
124
  SignatureStatus: this.SignatureStatus,
116
125
  SignedAt: this.SignedAt,
126
+ VerificationMethod: this.VerificationMethod,
127
+ VerificationJustification: this.VerificationJustification,
128
+ VerifiedById: this.VerifiedById,
117
129
  CreatedById: this.CreatedById,
118
130
  CreatedAt: this.CreatedAt,
119
131
  UpdatedById: this.UpdatedById,
@@ -1,3 +1,4 @@
1
+ import { AgreementSignatureVerificationMethodEnum } from '../enum/agreement-signature-verification-method.enum';
1
2
  import { AgreementSignatureStatusEnum } from '../enum/agreement-signature-status.enum';
2
3
 
3
4
  export interface IAgreementSignatureAttr {
@@ -8,6 +9,9 @@ export interface IAgreementSignatureAttr {
8
9
  PartyType: string;
9
10
  SignatureStatus: AgreementSignatureStatusEnum;
10
11
  SignedAt: Date;
12
+ VerificationMethod: AgreementSignatureVerificationMethodEnum;
13
+ VerificationJustification?: string;
14
+ VerifiedById?: string;
11
15
  CreatedById: string;
12
16
  CreatedAt: Date;
13
17
  UpdatedById: string;