kcommons 15.5.0 → 15.6.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.
@@ -0,0 +1,15 @@
1
+ export interface IResponse<T = any> {
2
+ result?: T;
3
+ error?: string;
4
+ message?: string;
5
+ err_code?: string;
6
+ }
7
+ export interface IResponseWithPagination<T = any> {
8
+ data: T[];
9
+ limit: number;
10
+ page: number;
11
+ total: number;
12
+ }
13
+ export interface ISuccessResponse {
14
+ success: boolean;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/build/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "date-fns";
2
2
  export * from "./typings/releaseNote.typings";
3
+ export * from "./configs/response.typings";
3
4
  export * from "./typings/roles.typings";
4
5
  export * from "./typings/companyVendors.typings";
5
6
  export * from "./typings/department.typings";
package/build/index.js CHANGED
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("date-fns"), exports);
19
19
  //superadmin
20
20
  __exportStar(require("./typings/releaseNote.typings"), exports);
21
+ // Configs
22
+ __exportStar(require("./configs/response.typings"), exports);
21
23
  // Includes
22
24
  __exportStar(require("./typings/roles.typings"), exports);
23
25
  __exportStar(require("./typings/companyVendors.typings"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "15.5.0",
3
+ "version": "15.6.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",