kcommons 5.13.5 → 5.14.1

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/build/index.d.ts CHANGED
@@ -28,12 +28,13 @@ export * from "./typings/negotiation.typings";
28
28
  export * from "./typings/asn.typings";
29
29
  export * from "./typings/bom.typings";
30
30
  export * from "./typings/verification_apis/pincode.typings";
31
+ export * from "./typings/utils/address.typings";
32
+ export * from "./typings/common/paginationFilters.typings";
33
+ export * from "./typings/common/uploadMedia.typings";
34
+ export * from "./typings/quote.typings";
31
35
  export * from "./constants/permission.constants";
32
36
  export * from "./constants/entityTypes.constants";
33
37
  export * from "./constants/documentStatus.typings";
34
38
  export * from "./constants/form.constants";
35
- export * from "./typings/quote.typings";
36
- export * from "./typings/common/paginationFilters.typings";
37
- export * from "./typings/common/uploadMedia.typings";
38
39
  export * from "./classes/asnWrapper.class";
39
- export * from "./typings/utils/address.typings";
40
+ export * from "./utils/permission.utils";
package/build/index.js CHANGED
@@ -45,17 +45,16 @@ __exportStar(require("./typings/negotiation.typings"), exports);
45
45
  __exportStar(require("./typings/asn.typings"), exports);
46
46
  __exportStar(require("./typings/bom.typings"), exports);
47
47
  __exportStar(require("./typings/verification_apis/pincode.typings"), exports);
48
+ __exportStar(require("./typings/utils/address.typings"), exports);
49
+ __exportStar(require("./typings/common/paginationFilters.typings"), exports);
50
+ __exportStar(require("./typings/common/uploadMedia.typings"), exports);
51
+ __exportStar(require("./typings/quote.typings"), exports);
48
52
  // Constants
49
53
  __exportStar(require("./constants/permission.constants"), exports);
50
54
  __exportStar(require("./constants/entityTypes.constants"), exports);
51
55
  __exportStar(require("./constants/documentStatus.typings"), exports);
52
56
  __exportStar(require("./constants/form.constants"), exports);
53
- //Vendor
54
- __exportStar(require("./typings/quote.typings"), exports);
55
- // Commons
56
- __exportStar(require("./typings/common/paginationFilters.typings"), exports);
57
- __exportStar(require("./typings/common/uploadMedia.typings"), exports);
58
57
  // Classes
59
58
  __exportStar(require("./classes/asnWrapper.class"), exports);
60
59
  // Utils
61
- __exportStar(require("./typings/utils/address.typings"), exports);
60
+ __exportStar(require("./utils/permission.utils"), exports);
@@ -106,5 +106,6 @@ export declare enum UserInclude {
106
106
  created_boms = "created_boms",
107
107
  last_updated_boms = "last_updated_boms",
108
108
  created_vendor_groups = "created_vendor_groups",
109
- last_updated_vendor_groups = "last_updated_vendor_groups"
109
+ last_updated_vendor_groups = "last_updated_vendor_groups",
110
+ active_role = "active_role"
110
111
  }
@@ -30,4 +30,5 @@ var UserInclude;
30
30
  UserInclude["last_updated_boms"] = "last_updated_boms";
31
31
  UserInclude["created_vendor_groups"] = "created_vendor_groups";
32
32
  UserInclude["last_updated_vendor_groups"] = "last_updated_vendor_groups";
33
+ UserInclude["active_role"] = "active_role";
33
34
  })(UserInclude || (exports.UserInclude = UserInclude = {}));
@@ -0,0 +1,2 @@
1
+ import { PERMISSION_ACTIONS } from "../constants/permission.constants";
2
+ export declare function getPermissionName(permission: PERMISSION_ACTIONS): string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPermissionName = getPermissionName;
4
+ function getPermissionName(permission) {
5
+ return permission
6
+ .replace("_perm", "")
7
+ .split("_")
8
+ .map((name) => `${name[0].toUpperCase()}${name.slice(1)}`)
9
+ .join(" ");
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.13.5",
3
+ "version": "5.14.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",