asv-hlps 1.3.77 → 1.3.79

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.
@@ -19,7 +19,7 @@ export interface IParam {
19
19
  code?: string;
20
20
  role?: string;
21
21
  steName?: string;
22
- steNames?: string[];
22
+ steNames?: IInOrNot;
23
23
  staffSteNames?: string[];
24
24
  isActive?: boolean;
25
25
  steGrpCodes?: IInOrNot;
@@ -0,0 +1,9 @@
1
+ declare class NaCoAc {
2
+ id: number;
3
+ name: string;
4
+ code: string;
5
+ isActive: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ declare const _default: NaCoAc;
9
+ export default _default;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const class_validator_1 = require("class-validator");
13
+ const typeorm_1 = require("typeorm");
14
+ class NaCoAc {
15
+ }
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
18
+ __metadata("design:type", Number)
19
+ ], NaCoAc.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ length: 25, unique: true }),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], NaCoAc.prototype, "name", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ length: 4, unique: true }),
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ __metadata("design:type", String)
29
+ ], NaCoAc.prototype, "code", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ default: true }),
32
+ __metadata("design:type", Boolean)
33
+ ], NaCoAc.prototype, "isActive", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ default: false }),
36
+ __metadata("design:type", Boolean)
37
+ ], NaCoAc.prototype, "disabled", void 0);
38
+ exports.default = new NaCoAc();
@@ -0,0 +1,2 @@
1
+ import NaCoAc from "./NaCoAc";
2
+ export { NaCoAc };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NaCoAc = void 0;
7
+ const NaCoAc_1 = __importDefault(require("./NaCoAc"));
8
+ exports.NaCoAc = NaCoAc_1.default;
@@ -19,7 +19,7 @@ export interface IParam {
19
19
  code?: string;
20
20
  role?: string;
21
21
  steName?: string;
22
- steNames?: string[];
22
+ steNames?: IInOrNot;
23
23
  staffSteNames?: string[];
24
24
  isActive?: boolean;
25
25
  steGrpCodes?: IInOrNot;
@@ -0,0 +1,9 @@
1
+ declare class NaCoAc {
2
+ id: number;
3
+ name: string;
4
+ code: string;
5
+ isActive: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ declare const _default: NaCoAc;
9
+ export default _default;
@@ -0,0 +1,36 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsNotEmpty } from "class-validator";
11
+ import { Column, PrimaryGeneratedColumn } from "typeorm";
12
+ class NaCoAc {
13
+ }
14
+ __decorate([
15
+ PrimaryGeneratedColumn(),
16
+ __metadata("design:type", Number)
17
+ ], NaCoAc.prototype, "id", void 0);
18
+ __decorate([
19
+ Column({ length: 25, unique: true }),
20
+ IsNotEmpty(),
21
+ __metadata("design:type", String)
22
+ ], NaCoAc.prototype, "name", void 0);
23
+ __decorate([
24
+ Column({ length: 4, unique: true }),
25
+ IsNotEmpty(),
26
+ __metadata("design:type", String)
27
+ ], NaCoAc.prototype, "code", void 0);
28
+ __decorate([
29
+ Column({ default: true }),
30
+ __metadata("design:type", Boolean)
31
+ ], NaCoAc.prototype, "isActive", void 0);
32
+ __decorate([
33
+ Column({ default: false }),
34
+ __metadata("design:type", Boolean)
35
+ ], NaCoAc.prototype, "disabled", void 0);
36
+ export default new NaCoAc();
@@ -0,0 +1,2 @@
1
+ import NaCoAc from "./NaCoAc";
2
+ export { NaCoAc };
@@ -0,0 +1,2 @@
1
+ import NaCoAc from "./NaCoAc";
2
+ export { NaCoAc };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.77",
3
+ "version": "1.3.79",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -26,6 +26,7 @@
26
26
  "dependencies": {
27
27
  "axios": "^1.6.8",
28
28
  "bcryptjs": "^2.4.3",
29
+ "class-validator": "^0.14.1",
29
30
  "classnames": "^2.5.1",
30
31
  "dayjs": "^1.11.11",
31
32
  "express": "^4.19.2",