dl-commons 0.0.2-testing.17 → 0.0.2-testing.18
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/dist/models/interfaces/author.interface.d.ts +4 -2
- package/dist/models/schemas/embedded/author.schema.d.ts +3 -1
- package/dist/models/schemas/embedded/author.schema.js +10 -2
- package/dist/models/schemas/embedded/author.schema.js.map +1 -1
- package/dist/models/schemas/embedded/picture.schema.d.ts +2 -2
- package/dist/models/schemas/embedded/picture.schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/models/interfaces/author.interface.ts +4 -2
- package/src/models/schemas/embedded/author.schema.ts +8 -2
- package/src/models/schemas/embedded/picture.schema.ts +2 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Types } from
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
2
|
export interface IAuthor {
|
|
3
3
|
userId?: Types.ObjectId | string | null | undefined;
|
|
4
|
-
|
|
4
|
+
firstName?: string | null | undefined;
|
|
5
|
+
lastName?: string | null | undefined;
|
|
6
|
+
pid?: string | null | undefined;
|
|
5
7
|
}
|
|
@@ -2,7 +2,9 @@ import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
|
2
2
|
import { IAuthor } from '../../interfaces/author.interface';
|
|
3
3
|
export declare class Author implements IAuthor {
|
|
4
4
|
userId: Types.ObjectId | string | null | undefined;
|
|
5
|
-
|
|
5
|
+
pid: string | null | undefined;
|
|
6
|
+
firstName: string | null | undefined;
|
|
7
|
+
lastName: string | null | undefined;
|
|
6
8
|
}
|
|
7
9
|
export declare const AuthorSchema: MongooseSchema<Author, import("mongoose").Model<Author, any, any, any, import("mongoose").Document<unknown, any, Author> & Author & {
|
|
8
10
|
_id: Types.ObjectId;
|
|
@@ -20,9 +20,17 @@ __decorate([
|
|
|
20
20
|
__metadata("design:type", Object)
|
|
21
21
|
], Author.prototype, "userId", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, mongoose_2.Prop)({ type: String, required:
|
|
23
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
], Author.prototype, "
|
|
25
|
+
], Author.prototype, "pid", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Author.prototype, "firstName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: null }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Author.prototype, "lastName", void 0);
|
|
26
34
|
exports.Author = Author = __decorate([
|
|
27
35
|
(0, mongoose_2.Schema)({ _id: false })
|
|
28
36
|
], Author);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"author.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/author.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA6E;AAE7E,+CAA+D;AAGxD,IAAM,MAAM,GAAZ,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"author.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/author.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA6E;AAE7E,+CAA+D;AAGxD,IAAM,MAAM,GAAZ,MAAM,MAAM;CAYlB,CAAA;AAZY,wBAAM;AAEf;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sCACV;AAGnD;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mCACxB;AAG/B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAClB;AAGrC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCACnB;iBAX3B,MAAM;IADlB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,MAAM,CAYlB;AAEY,QAAA,YAAY,GAAG,wBAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { IPicture } from '../../interfaces/picture.interface';
|
|
|
4
4
|
import { ICropArea } from '../../interfaces/crop-area.interface';
|
|
5
5
|
export declare class Picture implements IPicture {
|
|
6
6
|
original: IFileEmbedded;
|
|
7
|
-
cropped: IFileEmbedded;
|
|
8
|
-
cropArea: ICropArea;
|
|
7
|
+
cropped: IFileEmbedded | null | undefined;
|
|
8
|
+
cropArea: ICropArea | null | undefined;
|
|
9
9
|
}
|
|
10
10
|
export declare const PictureSchema: import("mongoose").Schema<Picture, import("mongoose").Model<Picture, any, any, any, import("mongoose").Document<unknown, any, Picture> & Picture & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picture.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/picture.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,2CAAiD;AAGjD,yDAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAO;CASnB,CAAA;AATY,0BAAO;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"picture.schema.js","sourceRoot":"","sources":["../../../../src/models/schemas/embedded/picture.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAG/D,2CAAiD;AAGjD,yDAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAO;CASnB,CAAA;AATY,0BAAO;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCAC1C;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wCACzB;AAG1C;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACxB;kBAR9B,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;GACV,OAAO,CASnB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC"}
|