c2-mongoose 2.1.161 → 2.1.163
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/item/AddStagePaginationFlowItem.d.ts +1 -1
- package/dist/flow/item/AddStagePaginationFlowItem.js +1 -1
- package/dist/flow/item/AddStageSortFlowItem.d.ts +1 -1
- package/dist/flow/item/AddStageSortFlowItem.js +1 -1
- package/package.json +1 -1
- package/src/flow/item/AddStagePaginationFlowItem.ts +1 -1
- package/src/flow/item/AddStageSortFlowItem.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IFacet } from "../../model/Facet";
|
|
2
2
|
import SearchFlow from "../SearchFlow";
|
|
3
3
|
declare class GetStagePaginationFlowItem {
|
|
4
|
-
|
|
4
|
+
add(facet: IFacet | undefined, searcher: SearchFlow): IFacet;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: GetStagePaginationFlowItem;
|
|
7
7
|
export default _default;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var GetStagePaginationFlowItem = /** @class */ (function () {
|
|
4
4
|
function GetStagePaginationFlowItem() {
|
|
5
5
|
}
|
|
6
|
-
GetStagePaginationFlowItem.prototype.
|
|
6
|
+
GetStagePaginationFlowItem.prototype.add = function (facet, searcher) {
|
|
7
7
|
if (facet === void 0) { facet = { items: [] }; }
|
|
8
8
|
var facetAfter = facet;
|
|
9
9
|
if (searcher.pageable === false) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IFacet } from "../../model/Facet";
|
|
2
2
|
import SearchFlow from "../SearchFlow";
|
|
3
3
|
declare class GetStageSortFlowItem {
|
|
4
|
-
|
|
4
|
+
add(facet: IFacet | undefined, searcher: SearchFlow): IFacet;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: GetStageSortFlowItem;
|
|
7
7
|
export default _default;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var GetStageSortFlowItem = /** @class */ (function () {
|
|
4
4
|
function GetStageSortFlowItem() {
|
|
5
5
|
}
|
|
6
|
-
GetStageSortFlowItem.prototype.
|
|
6
|
+
GetStageSortFlowItem.prototype.add = function (facet, searcher) {
|
|
7
7
|
var _a;
|
|
8
8
|
if (facet === void 0) { facet = { items: [] }; }
|
|
9
9
|
var facetAfter = facet;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import SearchFlow from "../SearchFlow"
|
|
|
3
3
|
|
|
4
4
|
class GetStagePaginationFlowItem {
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
add(facet: IFacet = { items: [] }, searcher: SearchFlow): IFacet {
|
|
7
7
|
let facetAfter: IFacet = facet
|
|
8
8
|
|
|
9
9
|
if (searcher.pageable === false) {
|
|
@@ -3,7 +3,7 @@ import SearchFlow from "../SearchFlow"
|
|
|
3
3
|
|
|
4
4
|
class GetStageSortFlowItem {
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
add(facet: IFacet = { items: [] }, searcher: SearchFlow): IFacet {
|
|
7
7
|
let facetAfter: IFacet = facet
|
|
8
8
|
|
|
9
9
|
let sortByDirection = searcher.order === "desc" ? -1 : 1
|