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.
- package/dist/enums/auth.enum.d.ts +4 -0
- package/dist/enums/auth.enum.js +8 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/index.js +16 -0
- package/dist/enums/permission.enum.d.ts +11 -0
- package/dist/enums/permission.enum.js +16 -0
- package/package.json +1 -1
- package/.github/workflows/publish.yml +0 -35
|
@@ -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 = {}));
|
package/dist/enums/index.d.ts
CHANGED
package/dist/enums/index.js
CHANGED
|
@@ -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,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,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 }}
|