plac-micro-common 1.0.5 → 1.0.7

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.
@@ -1,4 +1,6 @@
1
+ export * from "./permission.enum";
1
2
  export declare enum APP_CODES {
2
3
  E_APP = "E-APP",
3
- HRMS = "HRMS"
4
+ HRMS = "HRMS",
5
+ PLAC_ADMIN = "PLAC-ADMIN"
4
6
  }
@@ -1,8 +1,24 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.APP_CODES = void 0;
18
+ __exportStar(require("./permission.enum"), exports);
4
19
  var APP_CODES;
5
20
  (function (APP_CODES) {
6
21
  APP_CODES["E_APP"] = "E-APP";
7
22
  APP_CODES["HRMS"] = "HRMS";
23
+ APP_CODES["PLAC_ADMIN"] = "PLAC-ADMIN";
8
24
  })(APP_CODES || (exports.APP_CODES = APP_CODES = {}));
@@ -0,0 +1,11 @@
1
+ export declare enum PermissionAction {
2
+ Create = "create",
3
+ Read = "read",
4
+ Update = "update",
5
+ Delete = "delete"
6
+ }
7
+ export declare enum PermissionResource {
8
+ Permission = "permission",
9
+ Quotation = "quotation",
10
+ User = "user"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PermissionResource = exports.PermissionAction = void 0;
4
+ var PermissionAction;
5
+ (function (PermissionAction) {
6
+ PermissionAction["Create"] = "create";
7
+ PermissionAction["Read"] = "read";
8
+ PermissionAction["Update"] = "update";
9
+ PermissionAction["Delete"] = "delete";
10
+ })(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
11
+ var PermissionResource;
12
+ (function (PermissionResource) {
13
+ PermissionResource["Permission"] = "permission";
14
+ PermissionResource["Quotation"] = "quotation";
15
+ PermissionResource["User"] = "user";
16
+ })(PermissionResource || (exports.PermissionResource = PermissionResource = {}));
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
8
- "version:patch": "npm version patch",
8
+ "v:patch": "npm version patch",
9
+ "v:minor": "npm version minor",
10
+ "v:major": "npm version major",
9
11
  "publish:public": "npm publish --access public",
10
12
  "test": "echo \"Error: no test specified\" && exit 1"
11
13
  },