@6thbridge/utils 0.3.0 → 0.3.1-2
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/lib/database/MongoDBRepository.d.ts +1 -1
- package/lib/database/MongoDBRepository.js +6 -0
- package/lib/database/MongoDBRepository.js.map +1 -1
- package/lib/database/MongoDBTypeRepository.d.ts +65 -15
- package/lib/database/MongoDBTypeRepository.js +31 -33
- package/lib/database/MongoDBTypeRepository.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -8,7 +8,7 @@ export declare class MongoDBRepository {
|
|
|
8
8
|
private readonly Model;
|
|
9
9
|
constructor(Model: any);
|
|
10
10
|
getModel(): any;
|
|
11
|
-
create(payload: any): any;
|
|
11
|
+
create(payload: Record<string, any>): any;
|
|
12
12
|
findById(id: string): any;
|
|
13
13
|
findOne(condition?: any, sort?: any, options?: FindOptions): any;
|
|
14
14
|
find(condition: any, sort?: any, options?: FindOptions): any;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.MongoDBRepository = exports.FindOptions = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
4
8
|
class FindOptions {
|
|
5
9
|
constructor() {
|
|
6
10
|
this.limit = 100;
|
|
@@ -16,6 +20,8 @@ class MongoDBRepository {
|
|
|
16
20
|
return this.Model;
|
|
17
21
|
}
|
|
18
22
|
create(payload) {
|
|
23
|
+
payload._id = payload._id || new mongoose_1.default.Types.ObjectId();
|
|
24
|
+
payload.id = payload._id.toString();
|
|
19
25
|
return this.Model.create(payload);
|
|
20
26
|
}
|
|
21
27
|
findById(id) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MongoDBRepository.js","sourceRoot":"","sources":["../../src/database/MongoDBRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MongoDBRepository.js","sourceRoot":"","sources":["../../src/database/MongoDBRepository.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAyC;AACzC,MAAa,WAAW;IAAxB;QAGE,UAAK,GAAY,GAAG,CAAC;QACrB,SAAI,GAAa,KAAK,CAAC;IACzB,CAAC;CAAA;AALD,kCAKC;AAGD,MAAa,iBAAiB;IAC5B,YAA6B,KAAU;QAAV,UAAK,GAAL,KAAK,CAAK;IAAG,CAAC;IAE3C,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAID,MAAM,CAAC,OAA4B;QACjC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC3D,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,QAAQ,CAAC,EAAU;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,CAAC,YAAiB,EAAE,EAAE,IAAU,EAAE,OAAqB;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;YAAE,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;QAExC,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,SAAc,EAAE,IAAU,EAAE,OAAqB;QACpD,IAAI,CAAC;YACH,IAA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AK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEjC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,cAAc,CAAC,YAAiB,EAAE;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IAC9C,CAAC;IACD,SAAS,CAAC,QAAa,EAAE,EAAE,SAAc,EAAE;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,UAAU,CAAC,QAAa,EAAE,EAAE,SAAc,EAAE;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,QAAa,EAAE,EAAE,SAAc,EAAE;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE;YACzC,MAAM,EAAE,IAAI;YACZ,mBAAmB,EAAE,IAAI;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,MAAW,EAAE,MAAW,EAAE,UAAe,EAAE;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,kBAC/C,GAAG,EAAE,IAAI,IACN,OAAO,EACV,CAAC;IACL,CAAC;IAED,SAAS,CAAC,gBAAqB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAChD,CAAC;CACF;AA/FD,8CA+FC"}
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
/// <reference types="mongoose-paginate-v2" />
|
|
27
|
+
import mongoose, { Model, Document, FilterQuery, PaginateModel, SortOrder, UpdateQuery } from 'mongoose';
|
|
28
|
+
export interface BaseDocument extends Document {
|
|
29
|
+
_id: mongoose.Types.ObjectId;
|
|
30
|
+
id?: string;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
1
33
|
export declare class FindOptions {
|
|
2
34
|
[x: string]: any;
|
|
3
35
|
page?: number;
|
|
@@ -5,23 +37,41 @@ export declare class FindOptions {
|
|
|
5
37
|
lean?: boolean;
|
|
6
38
|
select?: string[];
|
|
7
39
|
}
|
|
8
|
-
export
|
|
40
|
+
export type TypedModel<T> = PaginateModel<T> | Model<T>;
|
|
41
|
+
export declare class MongoDBTypedRepository<T extends BaseDocument> {
|
|
9
42
|
private readonly Model;
|
|
10
|
-
constructor(Model:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
43
|
+
constructor(Model: TypedModel<T>);
|
|
44
|
+
generateObjectId(): mongoose.Types.ObjectId;
|
|
45
|
+
getModel(): TypedModel<T>;
|
|
46
|
+
create(payload: Partial<T>): Promise<T>;
|
|
47
|
+
findById(id: string): Promise<T | null>;
|
|
48
|
+
findOne(condition?: FilterQuery<T>, sort?: Record<string, SortOrder>): Promise<T | null>;
|
|
49
|
+
paginate(condition?: FilterQuery<T>, sort?: Record<string, SortOrder>, options?: FindOptions): Promise<{
|
|
16
50
|
docs: T[];
|
|
17
51
|
[x: string]: any;
|
|
18
52
|
}>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
53
|
+
find(condition?: FilterQuery<T>, sort?: Record<string, SortOrder>): Promise<T[]>;
|
|
54
|
+
deleteMany(condition?: FilterQuery<T>): Promise<{
|
|
55
|
+
deletedCount: number;
|
|
56
|
+
}>;
|
|
57
|
+
insertMany(data?: Partial<T>[]): Promise<mongoose.MergeType<mongoose.IfAny<T, any, mongoose.Document<unknown, {}, T, {}> & mongoose.Default__v<mongoose.Require_id<T>>>, Omit<Partial<T>, "_id">>[]>;
|
|
58
|
+
countDocuments(condition?: FilterQuery<T>): Promise<number>;
|
|
59
|
+
updateMany(query?: FilterQuery<T>, update?: UpdateQuery<T>): Promise<{
|
|
60
|
+
matchedCount: number;
|
|
61
|
+
modifiedCount: number;
|
|
62
|
+
}>;
|
|
63
|
+
updateOne(query?: FilterQuery<T>, update?: UpdateQuery<T>): Promise<{
|
|
64
|
+
matchedCount: number;
|
|
65
|
+
modifiedCount: number;
|
|
66
|
+
}>;
|
|
67
|
+
upsert(query?: FilterQuery<T>, update?: UpdateQuery<T>): Promise<{
|
|
68
|
+
matchedCount: number;
|
|
69
|
+
modifiedCount: number;
|
|
70
|
+
upsertedCount?: number;
|
|
71
|
+
}>;
|
|
72
|
+
findOneAndUpdate(filter: FilterQuery<T>, update: UpdateQuery<T>, options?: {
|
|
73
|
+
new?: boolean;
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}): Promise<T | null>;
|
|
76
|
+
bulkWrite(bulkWritePayload: mongoose.AnyBulkWriteOperation<T>[]): Promise<any>;
|
|
27
77
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
6
|
+
exports.MongoDBTypedRepository = exports.FindOptions = void 0;
|
|
7
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
4
8
|
class FindOptions {
|
|
5
9
|
constructor() {
|
|
6
10
|
this.limit = 100;
|
|
@@ -8,60 +12,54 @@ class FindOptions {
|
|
|
8
12
|
}
|
|
9
13
|
}
|
|
10
14
|
exports.FindOptions = FindOptions;
|
|
11
|
-
class
|
|
15
|
+
class MongoDBTypedRepository {
|
|
12
16
|
constructor(Model) {
|
|
13
17
|
this.Model = Model;
|
|
14
18
|
}
|
|
19
|
+
generateObjectId() {
|
|
20
|
+
return new mongoose_1.default.Types.ObjectId();
|
|
21
|
+
}
|
|
15
22
|
getModel() {
|
|
16
23
|
return this.Model;
|
|
17
24
|
}
|
|
18
25
|
create(payload) {
|
|
26
|
+
payload._id = payload._id || new mongoose_1.default.Types.ObjectId();
|
|
27
|
+
payload.id = payload._id.toString();
|
|
19
28
|
return this.Model.create(payload);
|
|
20
29
|
}
|
|
21
30
|
findById(id) {
|
|
22
31
|
return this.Model.findOne({ _id: id });
|
|
23
32
|
}
|
|
24
|
-
findOne(condition = {}, sort
|
|
25
|
-
|
|
26
|
-
if (options === null || options === void 0 ? void 0 : options.lean)
|
|
27
|
-
return result.lean();
|
|
28
|
-
return result;
|
|
33
|
+
findOne(condition = {}, sort) {
|
|
34
|
+
return this.Model.findOne(condition).sort(sort);
|
|
29
35
|
}
|
|
30
|
-
|
|
36
|
+
paginate(condition = {}, sort, options) {
|
|
31
37
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
sort,
|
|
38
|
-
page: options.page,
|
|
39
|
-
limit: options.limit,
|
|
40
|
-
}).lean();
|
|
41
|
-
}
|
|
42
|
-
return this.Model.paginate(condition, {
|
|
43
|
-
sort,
|
|
44
|
-
page: options.page,
|
|
45
|
-
limit: options.limit,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
if (options === null || options === void 0 ? void 0 : options.lean)
|
|
50
|
-
return this.Model.find(condition).sort(sort).lean();
|
|
51
|
-
return this.Model.find(condition).sort(sort);
|
|
52
|
-
}
|
|
38
|
+
return this.Model.paginate(condition, {
|
|
39
|
+
sort,
|
|
40
|
+
page: (options === null || options === void 0 ? void 0 : options.page) || 1,
|
|
41
|
+
limit: (options === null || options === void 0 ? void 0 : options.limit) || 50,
|
|
42
|
+
});
|
|
53
43
|
}
|
|
54
44
|
catch (e) {
|
|
55
|
-
console.log(
|
|
56
|
-
|
|
45
|
+
console.log("Please confirm if the pagination plugin is installed and enabled for this model");
|
|
46
|
+
throw e;
|
|
57
47
|
}
|
|
58
48
|
}
|
|
49
|
+
find(condition = {}, sort) {
|
|
50
|
+
return this.Model.find(condition).sort(sort);
|
|
51
|
+
}
|
|
59
52
|
deleteMany(condition = {}) {
|
|
60
53
|
return this.Model.deleteMany(condition);
|
|
61
54
|
}
|
|
62
55
|
insertMany(data = []) {
|
|
63
56
|
if (data.length === 0)
|
|
64
|
-
return [];
|
|
57
|
+
return Promise.resolve([]);
|
|
58
|
+
data = data.map((item) => {
|
|
59
|
+
item._id = item._id || new mongoose_1.default.Types.ObjectId();
|
|
60
|
+
item.id = item._id.toString();
|
|
61
|
+
return item;
|
|
62
|
+
});
|
|
65
63
|
return this.Model.insertMany(data);
|
|
66
64
|
}
|
|
67
65
|
countDocuments(condition = {}) {
|
|
@@ -86,5 +84,5 @@ class MongoDBRepository {
|
|
|
86
84
|
return this.Model.bulkWrite(bulkWritePayload);
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
|
-
exports.
|
|
87
|
+
exports.MongoDBTypedRepository = MongoDBTypedRepository;
|
|
90
88
|
//# sourceMappingURL=MongoDBTypeRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MongoDBTypeRepository.js","sourceRoot":"","sources":["../../src/database/MongoDBTypeRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MongoDBTypeRepository.js","sourceRoot":"","sources":["../../src/database/MongoDBTypeRepository.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAwG;AASxG,MAAa,WAAW;IAAxB;QAGE,UAAK,GAAY,GAAG,CAAC;QACrB,SAAI,GAAa,KAAK,CAAC;IAEzB,CAAC;CAAA;AAND,kCAMC;AAID,MAAa,sBAAsB;IACjC,YAA6B,KAAmB;QAAnB,UAAK,GAAL,KAAK,CAAc;IAAG,CAAC;IAEpD,gBAAgB;QACd,OAAO,IAAI,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IACvC,CAAC;IACD,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,OAAmB;QACxB,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,kBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC3D,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,QAAQ,CAAC,EAAU;QAC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