plac-micro-common 1.0.6 → 1.0.9

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,4 @@
1
+ export declare enum PartnerType {
2
+ Banca = "banca",
3
+ Broker = "broker"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartnerType = void 0;
4
+ var PartnerType;
5
+ (function (PartnerType) {
6
+ PartnerType["Banca"] = "banca";
7
+ PartnerType["Broker"] = "broker";
8
+ })(PartnerType || (exports.PartnerType = PartnerType = {}));
@@ -1,3 +1,5 @@
1
+ export * from "./auth.enum";
2
+ export * from "./permission.enum";
1
3
  export declare enum APP_CODES {
2
4
  E_APP = "E-APP",
3
5
  HRMS = "HRMS",
@@ -1,6 +1,22 @@
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("./auth.enum"), exports);
19
+ __exportStar(require("./permission.enum"), exports);
4
20
  var APP_CODES;
5
21
  (function (APP_CODES) {
6
22
  APP_CODES["E_APP"] = "E-APP";
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,35 +0,0 @@
1
- name: Publish to npm
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- paths:
8
- - "src/**"
9
- - "package.json"
10
- - "tsconfig.json"
11
-
12
- jobs:
13
- publish:
14
- runs-on: ubuntu-latest
15
-
16
- steps:
17
- - name: Checkout repository
18
- uses: actions/checkout@v3
19
-
20
- - name: Use Node.js
21
- uses: actions/setup-node@v3
22
- with:
23
- node-version: 18
24
- registry-url: "https://registry.npmjs.org/"
25
-
26
- - name: Install dependencies
27
- run: npm install
28
-
29
- - name: Build package
30
- run: npm run build
31
-
32
- - name: Publish to npm
33
- run: npm publish --access public
34
- env:
35
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}