@tabletennisshop/common 1.0.55 → 1.0.57
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.
- package/build/middlewares/current-user-middleware.d.ts +1 -0
- package/build/models/inventory.model.d.ts +1 -0
- package/build/models/order.model.d.ts +1 -0
- package/build/models/product.model.d.ts +3 -2
- package/build/models/rating.model.d.ts +1 -0
- package/build/models/user.model.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mongoose, { Document } from 'mongoose';
|
|
1
|
+
import mongoose, { Document, Types } from 'mongoose';
|
|
2
2
|
import { ProductTypeEnum } from '../enums/product-type.enum';
|
|
3
3
|
import { ProductStatusEnum } from '../enums/product-status.enum';
|
|
4
4
|
export interface ProductAttrsBase {
|
|
@@ -13,6 +13,7 @@ export interface ProductAttrsBase {
|
|
|
13
13
|
status: ProductStatusEnum;
|
|
14
14
|
}
|
|
15
15
|
export interface ProductDoc extends Document {
|
|
16
|
+
_id: Types.ObjectId;
|
|
16
17
|
name: string;
|
|
17
18
|
slug: string;
|
|
18
19
|
brand: string;
|
|
@@ -26,7 +27,7 @@ export interface ProductDoc extends Document {
|
|
|
26
27
|
updatedAt: Date;
|
|
27
28
|
}
|
|
28
29
|
export declare const ProductModel: mongoose.Model<ProductDoc, {}, {}, {}, mongoose.Document<unknown, {}, ProductDoc, {}> & ProductDoc & Required<{
|
|
29
|
-
_id:
|
|
30
|
+
_id: Types.ObjectId;
|
|
30
31
|
}> & {
|
|
31
32
|
__v: number;
|
|
32
33
|
}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Model, Document } from 'mongoose';
|
|
1
|
+
import { Model, Document, Types } from 'mongoose';
|
|
2
2
|
import { UserStatusEnum } from '../enums/user-status.enum';
|
|
3
3
|
export interface UserAttrs {
|
|
4
4
|
username: string;
|
|
@@ -10,6 +10,7 @@ export interface UserAttrs {
|
|
|
10
10
|
status: UserStatusEnum;
|
|
11
11
|
}
|
|
12
12
|
interface UserDoc extends Document {
|
|
13
|
+
_id: Types.ObjectId;
|
|
13
14
|
username: string;
|
|
14
15
|
email: string;
|
|
15
16
|
password: string;
|