@fiado/type-kit 1.4.70 → 1.4.71

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.
@@ -1,5 +1,4 @@
1
1
  export declare class DirectoryAcceptanceRequest {
2
2
  type: string;
3
3
  version: string;
4
- authSessionId: string;
5
4
  }
@@ -22,7 +22,3 @@ __decorate([
22
22
  (0, class_validator_1.IsString)(),
23
23
  __metadata("design:type", String)
24
24
  ], DirectoryAcceptanceRequest.prototype, "version", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], DirectoryAcceptanceRequest.prototype, "authSessionId", void 0);
@@ -0,0 +1,7 @@
1
+ export declare class LegalDocumentCreateRequest {
2
+ type: string;
3
+ version: string;
4
+ content: string;
5
+ description: string;
6
+ validFrom: string;
7
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LegalDocumentCreateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class LegalDocumentCreateRequest {
15
+ }
16
+ exports.LegalDocumentCreateRequest = LegalDocumentCreateRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], LegalDocumentCreateRequest.prototype, "type", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], LegalDocumentCreateRequest.prototype, "version", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], LegalDocumentCreateRequest.prototype, "content", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], LegalDocumentCreateRequest.prototype, "description", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], LegalDocumentCreateRequest.prototype, "validFrom", void 0);
@@ -4,10 +4,11 @@ export declare class LegalDocumentResponse {
4
4
  type: LegalDocumentType;
5
5
  version: string;
6
6
  content: string;
7
- isActive: boolean;
8
7
  description: string;
9
8
  createdby: string;
10
9
  updatedby: string;
11
10
  createdAT: Date;
12
11
  updatedAt: Date;
12
+ validFrom: string;
13
+ validTo: string;
13
14
  }
@@ -1,3 +1,4 @@
1
1
  export * from './dtos/DirectoryAcceptanceRequest';
2
2
  export * from './dtos/LegalDocumentResponse';
3
+ export * from './dtos/LegalDocumentCreateRequest';
3
4
  export * from './enums/LegalDocumentType';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dtos/DirectoryAcceptanceRequest"), exports);
18
18
  __exportStar(require("./dtos/LegalDocumentResponse"), exports);
19
+ __exportStar(require("./dtos/LegalDocumentCreateRequest"), exports);
19
20
  __exportStar(require("./enums/LegalDocumentType"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.4.70",
3
+ "version": "1.4.71",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -7,6 +7,4 @@ export class DirectoryAcceptanceRequest {
7
7
  type: string;
8
8
  @IsString()
9
9
  version: string;
10
- @IsString()
11
- authSessionId: string;
12
10
  }
@@ -0,0 +1,16 @@
1
+ import { IsBoolean, IsString } from "class-validator";
2
+
3
+
4
+
5
+ export class LegalDocumentCreateRequest {
6
+ @IsString()
7
+ type: string;
8
+ @IsString()
9
+ version: string;
10
+ @IsString()
11
+ content: string;
12
+ @IsString()
13
+ description: string;
14
+ @IsString()
15
+ validFrom: string;
16
+ }
@@ -8,11 +8,12 @@ export class LegalDocumentResponse {
8
8
  type: LegalDocumentType;
9
9
  version: string;
10
10
  content: string;
11
- isActive: boolean;
12
11
  description: string;
13
12
  createdby: string;
14
13
  updatedby: string;
15
14
  createdAT: Date;
16
15
  updatedAt: Date;
16
+ validFrom: string;
17
+ validTo: string;
17
18
 
18
19
  }
@@ -2,6 +2,8 @@
2
2
 
3
3
  export * from './dtos/DirectoryAcceptanceRequest';
4
4
  export * from './dtos/LegalDocumentResponse';
5
+ export * from './dtos/LegalDocumentCreateRequest';
6
+
5
7
 
6
8
  export * from './enums/LegalDocumentType';
7
9