@tc-libs/request 0.10.0 → 0.12.0
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/package.json +1 -1
- package/src/interfaces/index.d.ts +1 -0
- package/src/interfaces/index.js +1 -0
- package/src/interfaces/index.js.map +1 -1
- package/src/interfaces/pagination.interface.d.ts +20 -0
- package/src/interfaces/pagination.interface.js +11 -0
- package/src/interfaces/pagination.interface.js.map +1 -0
- package/src/serializations/request.pagination.serialization.d.ts +2 -0
- package/src/serializations/request.pagination.serialization.js.map +1 -1
package/package.json
CHANGED
package/src/interfaces/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/request/src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/request/src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,iEAAuC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum ENUM_PAGINATION_SELECT_TYPE {
|
|
2
|
+
NUMBER = "number",
|
|
3
|
+
STRING = "string",
|
|
4
|
+
EXTERNAL = "external",
|
|
5
|
+
BOOLEAN = "boolean"
|
|
6
|
+
}
|
|
7
|
+
export interface IPaginationSelectValue {
|
|
8
|
+
value: any;
|
|
9
|
+
display: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IPaginationSelect {
|
|
12
|
+
display: string;
|
|
13
|
+
field: string;
|
|
14
|
+
entity?: string;
|
|
15
|
+
hasI18nLabel?: boolean;
|
|
16
|
+
valueIdField?: string;
|
|
17
|
+
valueDisplayField?: string;
|
|
18
|
+
values: IPaginationSelectValue[];
|
|
19
|
+
type: ENUM_PAGINATION_SELECT_TYPE;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENUM_PAGINATION_SELECT_TYPE = void 0;
|
|
4
|
+
var ENUM_PAGINATION_SELECT_TYPE;
|
|
5
|
+
(function (ENUM_PAGINATION_SELECT_TYPE) {
|
|
6
|
+
ENUM_PAGINATION_SELECT_TYPE["NUMBER"] = "number";
|
|
7
|
+
ENUM_PAGINATION_SELECT_TYPE["STRING"] = "string";
|
|
8
|
+
ENUM_PAGINATION_SELECT_TYPE["EXTERNAL"] = "external";
|
|
9
|
+
ENUM_PAGINATION_SELECT_TYPE["BOOLEAN"] = "boolean";
|
|
10
|
+
})(ENUM_PAGINATION_SELECT_TYPE || (exports.ENUM_PAGINATION_SELECT_TYPE = ENUM_PAGINATION_SELECT_TYPE = {}));
|
|
11
|
+
//# sourceMappingURL=pagination.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.interface.js","sourceRoot":"","sources":["../../../../../packages/request/src/interfaces/pagination.interface.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,gDAAiB,CAAA;IACjB,gDAAiB,CAAA;IACjB,oDAAqB,CAAA;IACrB,kDAAmB,CAAA;AACrB,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPaginationSelect } from '../interfaces';
|
|
1
2
|
export declare enum ENUM_PAGINATION_ORDER_DIRECTION_TYPE {
|
|
2
3
|
ASC = "asc",
|
|
3
4
|
DESC = "desc"
|
|
@@ -12,4 +13,5 @@ export declare class RequestPaginationSerialization {
|
|
|
12
13
|
availableSearch: string[];
|
|
13
14
|
availableOrderBy: string[];
|
|
14
15
|
availableOrderDirection: ENUM_PAGINATION_ORDER_DIRECTION_TYPE[];
|
|
16
|
+
availableSelects: IPaginationSelect[];
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.pagination.serialization.js","sourceRoot":"","sources":["../../../../../packages/request/src/serializations/request.pagination.serialization.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.pagination.serialization.js","sourceRoot":"","sources":["../../../../../packages/request/src/serializations/request.pagination.serialization.ts"],"names":[],"mappings":";;;AAEA,IAAY,oCAGX;AAHD,WAAY,oCAAoC;IAC9C,mDAAW,CAAA;IACX,qDAAa,CAAA;AACf,CAAC,EAHW,oCAAoC,oDAApC,oCAAoC,QAG/C;AACD,MAAa,8BAA8B;CAc1C;AAdD,wEAcC"}
|