itlab-internal-services 2.16.15 → 2.16.17

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,8 +1,8 @@
1
1
  import { Document } from 'mongoose';
2
2
  export declare function TimestampsDocument<TBase extends new (...args: any[]) => Document>(Base: TBase): {
3
3
  new (...args: any[]): {
4
- createdAt: string;
5
- updatedAt: string;
4
+ createdAt: Date;
5
+ updatedAt: Date;
6
6
  _id: import("mongoose").Types.ObjectId;
7
7
  $assertPopulated<Paths = {}>(path: string | string[], values?: Partial<Paths>): Omit</*elided*/ any, keyof Paths> & Paths;
8
8
  $clearModifiedPaths(): /*elided*/ any;
@@ -16,14 +16,14 @@ function TimestampsDocument(Base) {
16
16
  class TimestampsDocument extends Base {
17
17
  }
18
18
  __decorate([
19
- (0, swagger_1.ApiPropertyOptional)({ description: 'Timestamp the item was created at' }),
20
- (0, mongoose_1.Prop)({ required: true, type: String }),
21
- __metadata("design:type", String)
19
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Date the item was created at' }),
20
+ (0, mongoose_1.Prop)({ type: Date }),
21
+ __metadata("design:type", Date)
22
22
  ], TimestampsDocument.prototype, "createdAt", void 0);
23
23
  __decorate([
24
- (0, swagger_1.ApiPropertyOptional)({ description: 'Timestamp the item was last updated at' }),
25
- (0, mongoose_1.Prop)({ required: true, type: String }),
26
- __metadata("design:type", String)
24
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Date the item was last updated at' }),
25
+ (0, mongoose_1.Prop)({ type: Date }),
26
+ __metadata("design:type", Date)
27
27
  ], TimestampsDocument.prototype, "updatedAt", void 0);
28
28
  return TimestampsDocument;
29
29
  }
@@ -1,4 +1,4 @@
1
- import { BaseFetchOptions, TimestampsFetchOptions } from '../../../../classes';
1
+ import { BaseFetchOptions } from '../../../../classes';
2
2
  /**
3
3
  * FetchAccountOptionsDtoV1
4
4
  *
@@ -6,7 +6,7 @@ import { BaseFetchOptions, TimestampsFetchOptions } from '../../../../classes';
6
6
  * Inherits timestamp filtering fields and extends them with
7
7
  * account-specific query parameters.
8
8
  */
9
- export type FetchAccountOptionsDtoV1 = BaseFetchOptions & TimestampsFetchOptions & {
9
+ export type FetchAccountOptionsDtoV1 = BaseFetchOptions & {
10
10
  email?: string;
11
11
  emails?: string[];
12
12
  username?: string;
@@ -1,4 +1,4 @@
1
- import { BaseFetchOptions, TimestampsFetchOptions } from '../../../../classes';
1
+ import { BaseFetchOptions } from '../../../../classes';
2
2
  /**
3
3
  * FetchFileOptionsDtoV1
4
4
  *
@@ -6,7 +6,7 @@ import { BaseFetchOptions, TimestampsFetchOptions } from '../../../../classes';
6
6
  * Inherits timestamp filtering fields and extends them with
7
7
  * file-specific query parameters.
8
8
  */
9
- export type FetchFileOptionsDtoV1 = BaseFetchOptions & TimestampsFetchOptions & {
9
+ export type FetchFileOptionsDtoV1 = BaseFetchOptions & {
10
10
  inFolder?: boolean;
11
11
  folderId?: string;
12
12
  folderIds?: string[];
@@ -1,4 +1,4 @@
1
- import { BaseFetchOptions, TimestampsFetchOptions } from '../../../../classes';
1
+ import { BaseFetchOptions } from '../../../../classes';
2
2
  /**
3
3
  * FetchFolderOptionsDtoV1
4
4
  *
@@ -6,7 +6,7 @@ import { BaseFetchOptions, TimestampsFetchOptions } from '../../../../classes';
6
6
  * Inherits timestamp filtering fields and extends them with
7
7
  * folder-specific query parameters.
8
8
  */
9
- export type FetchFolderOptionsDtoV1 = BaseFetchOptions & TimestampsFetchOptions & {
9
+ export type FetchFolderOptionsDtoV1 = BaseFetchOptions & {
10
10
  includeFiles?: boolean;
11
11
  includeFolders?: boolean;
12
12
  isRoot?: boolean;
@@ -1,4 +1,4 @@
1
1
  export type HasTimestamps = {
2
- createdAt: string;
3
- updatedAt: string;
2
+ createdAt: Date;
3
+ updatedAt: Date;
4
4
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Timo Scheuermann",
5
5
  "email": "timo.scheuermann@sv-informatik.de"
6
6
  },
7
- "version": "2.16.15",
7
+ "version": "2.16.17",
8
8
  "type": "commonjs",
9
9
  "files": [
10
10
  "dist"