@maioradv/nestjs-core 1.1.10 → 1.1.12
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.
|
@@ -5,19 +5,19 @@ import { ReferenceObject, SchemaObject } from "@nestjs/swagger/dist/interfaces/o
|
|
|
5
5
|
/** Entity Model as model itself or ['ModelName',Model] */
|
|
6
6
|
export type TModel = Type<any> | [string, Type<any>];
|
|
7
7
|
export type RelationDefs = {
|
|
8
|
-
/** Array of Relation Entity or ['RelationNameKey',Relation Entity]
|
|
9
|
-
* @example ProductAttribute
|
|
8
|
+
/** Array of Relation Entity or [ 'RelationNameKey', Relation Entity ]
|
|
9
|
+
* @example [ ProductAttribute, ...]
|
|
10
10
|
*/
|
|
11
11
|
oneToOne?: TModel[];
|
|
12
|
-
/** Array of Relation Entity or ['RelationNameKey',Relation Entity]
|
|
13
|
-
* @example ProductVariant
|
|
14
|
-
* @example ['variants',ProductVariant]
|
|
12
|
+
/** Array of Relation Entity or [ 'RelationNameKey', Relation Entity ]
|
|
13
|
+
* @example [ ProductVariant, ...]
|
|
14
|
+
* @example [ ['variants',ProductVariant], ...]
|
|
15
15
|
*/
|
|
16
16
|
oneToMany?: TModel[];
|
|
17
|
-
/** Array
|
|
18
|
-
* @example [CollectionImage,Image]
|
|
19
|
-
* @example [['images',CollectionImage],Image]
|
|
20
|
-
* @example [CollectionImage,[Image,Language]]
|
|
17
|
+
/** Array of [ Relation Entity, Parent Entity (or Entities) ]
|
|
18
|
+
* @example [ [CollectionImage,Image], ...]
|
|
19
|
+
* @example [ [['images',CollectionImage],Image], ...]
|
|
20
|
+
* @example [ [CollectionImage,[Image,Language]], ...]
|
|
21
21
|
*/
|
|
22
22
|
manyToMany?: [TModel, TModel | TModel[]][];
|
|
23
23
|
};
|
|
@@ -37,6 +37,13 @@ const LoggerFactoryOptions = (appName) => {
|
|
|
37
37
|
prettyPrint: true,
|
|
38
38
|
})),
|
|
39
39
|
}),
|
|
40
|
+
new winston_1.transports.Console({
|
|
41
|
+
level: 'debug',
|
|
42
|
+
format: winston_1.format.combine(winston_1.format.timestamp(), winston_1.format.ms(), nest_winston_1.utilities.format.nestLike(appName, {
|
|
43
|
+
colors: true,
|
|
44
|
+
prettyPrint: true,
|
|
45
|
+
})),
|
|
46
|
+
}),
|
|
40
47
|
],
|
|
41
48
|
};
|
|
42
49
|
};
|