c2-mongoose 2.1.248 → 2.1.250
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/flow/SearcherFlow.d.ts +10 -10
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/src/flow/SearcherFlow.ts +11 -11
- package/src/index.ts +2 -1
|
@@ -7,17 +7,17 @@ export interface IPopulate {
|
|
|
7
7
|
populate: IPopulate;
|
|
8
8
|
}
|
|
9
9
|
declare class SearcherFlow<D> {
|
|
10
|
-
|
|
10
|
+
model: mongoose.Model<any>;
|
|
11
11
|
[key: string]: any;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
searchText: string;
|
|
13
|
+
orderSense: string;
|
|
14
|
+
orderBy: string;
|
|
15
|
+
page: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
pageable: boolean;
|
|
18
|
+
select: string[];
|
|
19
|
+
populate: string[];
|
|
20
|
+
filters: any;
|
|
21
21
|
constructor(repository: mongoose.Model<any>);
|
|
22
22
|
prepareSearch(search: any): void;
|
|
23
23
|
search(options: SearchOptions): Promise<SearchResponse<D>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ import AddStagePaginationFlowItem from "./flow/item/AddStagePaginationFlowItem";
|
|
|
6
6
|
import AddStageSortFlowItem from "./flow/item/AddStageSortFlowItem";
|
|
7
7
|
import BuildPipelineToCountJoinFlowItem from "./flow/item/BuildPipelineToCountJoinFlowItem";
|
|
8
8
|
import BuildPipelineToJoinFlowItem from "./flow/item/BuildPipelineToJoinFlowItem";
|
|
9
|
+
import BuildSelectSingleFlowItem from "./flow/item/BuildSelectSingleFlowItem";
|
|
9
10
|
import ConvertToSearchResponseFlowItem from "./flow/item/ConvertToSearchResponseFlowItem";
|
|
10
11
|
import { IFacet } from "./model/Facet";
|
|
11
12
|
import { ILogger, LoggerModel, LoggerSearch, TypeOfOperation } from "./model/Logger";
|
|
12
13
|
import { Options } from "./types/Options";
|
|
13
14
|
import { Pagination, SearchResponse } from "./types/SearchResponse";
|
|
14
15
|
import { initialize } from "./utils/Utils";
|
|
15
|
-
export { SearcherFlow, AddStagePaginationFlowItem, AddStageSortFlowItem, BuildPipelineToCountJoinFlowItem, BuildPipelineToJoinFlowItem, C2Flow, ConvertToSearchResponseFlowItem, CrudFlow, IFacet, ILogger, LoggerModel, LoggerSearch, Options, Pagination, SearchFlow, SearchResponse, TypeOfOperation, initialize };
|
|
16
|
+
export { SearcherFlow, BuildSelectSingleFlowItem, AddStagePaginationFlowItem, AddStageSortFlowItem, BuildPipelineToCountJoinFlowItem, BuildPipelineToJoinFlowItem, C2Flow, ConvertToSearchResponseFlowItem, CrudFlow, IFacet, ILogger, LoggerModel, LoggerSearch, Options, Pagination, SearchFlow, SearchResponse, TypeOfOperation, initialize };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.initialize = exports.TypeOfOperation = exports.SearchFlow = exports.LoggerSearch = exports.LoggerModel = exports.CrudFlow = exports.ConvertToSearchResponseFlowItem = exports.C2Flow = exports.BuildPipelineToJoinFlowItem = exports.BuildPipelineToCountJoinFlowItem = exports.AddStageSortFlowItem = exports.AddStagePaginationFlowItem = exports.SearcherFlow = void 0;
|
|
6
|
+
exports.initialize = exports.TypeOfOperation = exports.SearchFlow = exports.LoggerSearch = exports.LoggerModel = exports.CrudFlow = exports.ConvertToSearchResponseFlowItem = exports.C2Flow = exports.BuildPipelineToJoinFlowItem = exports.BuildPipelineToCountJoinFlowItem = exports.AddStageSortFlowItem = exports.AddStagePaginationFlowItem = exports.BuildSelectSingleFlowItem = exports.SearcherFlow = void 0;
|
|
7
7
|
var C2Flow_1 = __importDefault(require("./flow/C2Flow"));
|
|
8
8
|
exports.C2Flow = C2Flow_1.default;
|
|
9
9
|
var CrudFlow_1 = __importDefault(require("./flow/CrudFlow"));
|
|
@@ -20,6 +20,8 @@ var BuildPipelineToCountJoinFlowItem_1 = __importDefault(require("./flow/item/Bu
|
|
|
20
20
|
exports.BuildPipelineToCountJoinFlowItem = BuildPipelineToCountJoinFlowItem_1.default;
|
|
21
21
|
var BuildPipelineToJoinFlowItem_1 = __importDefault(require("./flow/item/BuildPipelineToJoinFlowItem"));
|
|
22
22
|
exports.BuildPipelineToJoinFlowItem = BuildPipelineToJoinFlowItem_1.default;
|
|
23
|
+
var BuildSelectSingleFlowItem_1 = __importDefault(require("./flow/item/BuildSelectSingleFlowItem"));
|
|
24
|
+
exports.BuildSelectSingleFlowItem = BuildSelectSingleFlowItem_1.default;
|
|
23
25
|
var ConvertToSearchResponseFlowItem_1 = __importDefault(require("./flow/item/ConvertToSearchResponseFlowItem"));
|
|
24
26
|
exports.ConvertToSearchResponseFlowItem = ConvertToSearchResponseFlowItem_1.default;
|
|
25
27
|
var Logger_1 = require("./model/Logger");
|
package/package.json
CHANGED
package/src/flow/SearcherFlow.ts
CHANGED
|
@@ -13,19 +13,19 @@ export interface IPopulate {
|
|
|
13
13
|
|
|
14
14
|
class SearcherFlow<D> {
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
public model: mongoose.Model<any>
|
|
17
17
|
|
|
18
18
|
[key: string]: any
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
public searchText: string = ""
|
|
20
|
+
public orderSense: string = "desc"
|
|
21
|
+
public orderBy: string = "_id"
|
|
22
|
+
public page: number = 1
|
|
23
|
+
public limit: number = 50
|
|
24
|
+
public pageable: boolean = true
|
|
25
|
+
|
|
26
|
+
public select: string[] = []
|
|
27
|
+
public populate: string[] = []
|
|
28
|
+
public filters: any = undefined
|
|
29
29
|
|
|
30
30
|
constructor(repository: mongoose.Model<any>) {
|
|
31
31
|
this.model = repository
|
package/src/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import AddStagePaginationFlowItem from "./flow/item/AddStagePaginationFlowItem"
|
|
|
6
6
|
import AddStageSortFlowItem from "./flow/item/AddStageSortFlowItem"
|
|
7
7
|
import BuildPipelineToCountJoinFlowItem from "./flow/item/BuildPipelineToCountJoinFlowItem"
|
|
8
8
|
import BuildPipelineToJoinFlowItem from "./flow/item/BuildPipelineToJoinFlowItem"
|
|
9
|
+
import BuildSelectSingleFlowItem from "./flow/item/BuildSelectSingleFlowItem"
|
|
9
10
|
import ConvertToSearchResponseFlowItem from "./flow/item/ConvertToSearchResponseFlowItem"
|
|
10
11
|
import { IFacet } from "./model/Facet"
|
|
11
12
|
import { ILogger, LoggerModel, LoggerSearch, TypeOfOperation } from "./model/Logger"
|
|
@@ -15,5 +16,5 @@ import { initialize } from "./utils/Utils"
|
|
|
15
16
|
|
|
16
17
|
(global as any).LoggerRepository = undefined
|
|
17
18
|
|
|
18
|
-
export { SearcherFlow, AddStagePaginationFlowItem, AddStageSortFlowItem, BuildPipelineToCountJoinFlowItem, BuildPipelineToJoinFlowItem, C2Flow, ConvertToSearchResponseFlowItem, CrudFlow, IFacet, ILogger, LoggerModel, LoggerSearch, Options, Pagination, SearchFlow, SearchResponse, TypeOfOperation, initialize }
|
|
19
|
+
export { SearcherFlow, BuildSelectSingleFlowItem, AddStagePaginationFlowItem, AddStageSortFlowItem, BuildPipelineToCountJoinFlowItem, BuildPipelineToJoinFlowItem, C2Flow, ConvertToSearchResponseFlowItem, CrudFlow, IFacet, ILogger, LoggerModel, LoggerSearch, Options, Pagination, SearchFlow, SearchResponse, TypeOfOperation, initialize }
|
|
19
20
|
|