oca-shared-model 1.0.41 → 1.0.42

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.
Files changed (25) hide show
  1. package/dist/autofill/autofill.module.js +3 -2
  2. package/dist/autofill/diklat_institutions/diklat_institutions.module.d.ts +2 -0
  3. package/dist/autofill/diklat_institutions/diklat_institutions.module.js +23 -0
  4. package/dist/autofill/diklat_institutions/diklat_institutions.service.d.ts +6 -0
  5. package/dist/autofill/diklat_institutions/diklat_institutions.service.js +31 -0
  6. package/dist/autofill/diklat_institutions/dto/create-diklat_institution.dto.d.ts +2 -0
  7. package/dist/autofill/diklat_institutions/dto/create-diklat_institution.dto.js +6 -0
  8. package/dist/autofill/diklat_institutions/dto/update-diklat_institution.dto.d.ts +5 -0
  9. package/dist/autofill/diklat_institutions/dto/update-diklat_institution.dto.js +8 -0
  10. package/dist/autofill/diklat_institutions/entities/diklat_institution.entity.d.ts +9 -0
  11. package/dist/autofill/diklat_institutions/entities/diklat_institution.entity.js +47 -0
  12. package/dist/shared-model.module.js +3 -0
  13. package/dist/staff/staff.module.d.ts +2 -0
  14. package/dist/staff/staff.module.js +20 -0
  15. package/dist/staff/staff_types/dto/create-staff_type.dto.d.ts +2 -0
  16. package/dist/staff/staff_types/dto/create-staff_type.dto.js +6 -0
  17. package/dist/staff/staff_types/dto/update-staff_type.dto.d.ts +5 -0
  18. package/dist/staff/staff_types/dto/update-staff_type.dto.js +8 -0
  19. package/dist/staff/staff_types/entities/staff_type.entity.d.ts +6 -0
  20. package/dist/staff/staff_types/entities/staff_type.entity.js +35 -0
  21. package/dist/staff/staff_types/staff_types.module.d.ts +2 -0
  22. package/dist/staff/staff_types/staff_types.module.js +23 -0
  23. package/dist/staff/staff_types/staff_types.service.d.ts +6 -0
  24. package/dist/staff/staff_types/staff_types.service.js +31 -0
  25. package/package.json +1 -1
@@ -9,12 +9,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.AutofillModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const vessel_type_classifications_module_1 = require("./vessel_type_classifications/vessel_type_classifications.module");
12
+ const diklat_institutions_module_1 = require("./diklat_institutions/diklat_institutions.module");
12
13
  let AutofillModule = class AutofillModule {
13
14
  };
14
15
  exports.AutofillModule = AutofillModule;
15
16
  exports.AutofillModule = AutofillModule = __decorate([
16
17
  (0, common_1.Module)({
17
- imports: [vessel_type_classifications_module_1.VesselTypeClassificationsModule],
18
- exports: [vessel_type_classifications_module_1.VesselTypeClassificationsModule],
18
+ imports: [vessel_type_classifications_module_1.VesselTypeClassificationsModule, diklat_institutions_module_1.DiklatInstitutionsModule],
19
+ exports: [vessel_type_classifications_module_1.VesselTypeClassificationsModule, diklat_institutions_module_1.DiklatInstitutionsModule],
19
20
  })
20
21
  ], AutofillModule);
@@ -0,0 +1,2 @@
1
+ export declare class DiklatInstitutionsModule {
2
+ }
@@ -0,0 +1,23 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.DiklatInstitutionsModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const diklat_institutions_service_1 = require("./diklat_institutions.service");
12
+ const typeorm_1 = require("@nestjs/typeorm");
13
+ const diklat_institution_entity_1 = require("./entities/diklat_institution.entity");
14
+ let DiklatInstitutionsModule = class DiklatInstitutionsModule {
15
+ };
16
+ exports.DiklatInstitutionsModule = DiklatInstitutionsModule;
17
+ exports.DiklatInstitutionsModule = DiklatInstitutionsModule = __decorate([
18
+ (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([diklat_institution_entity_1.DiklatInstitution])],
20
+ providers: [diklat_institutions_service_1.DiklatInstitutionsService],
21
+ exports: [diklat_institutions_service_1.DiklatInstitutionsService],
22
+ })
23
+ ], DiklatInstitutionsModule);
@@ -0,0 +1,6 @@
1
+ import { BaseService } from "../../helper/base-service";
2
+ import { DiklatInstitution } from "./entities/diklat_institution.entity";
3
+ import { Repository } from "typeorm";
4
+ export declare class DiklatInstitutionsService extends BaseService<DiklatInstitution> {
5
+ constructor(repository: Repository<DiklatInstitution>);
6
+ }
@@ -0,0 +1,31 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DiklatInstitutionsService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const base_service_1 = require("../../helper/base-service");
18
+ const diklat_institution_entity_1 = require("./entities/diklat_institution.entity");
19
+ const typeorm_1 = require("@nestjs/typeorm");
20
+ const typeorm_2 = require("typeorm");
21
+ let DiklatInstitutionsService = class DiklatInstitutionsService extends base_service_1.BaseService {
22
+ constructor(repository) {
23
+ super(repository);
24
+ }
25
+ };
26
+ exports.DiklatInstitutionsService = DiklatInstitutionsService;
27
+ exports.DiklatInstitutionsService = DiklatInstitutionsService = __decorate([
28
+ (0, common_1.Injectable)(),
29
+ __param(0, (0, typeorm_1.InjectRepository)(diklat_institution_entity_1.DiklatInstitution)),
30
+ __metadata("design:paramtypes", [typeorm_2.Repository])
31
+ ], DiklatInstitutionsService);
@@ -0,0 +1,2 @@
1
+ export declare class CreateDiklatInstitutionDto {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateDiklatInstitutionDto = void 0;
4
+ class CreateDiklatInstitutionDto {
5
+ }
6
+ exports.CreateDiklatInstitutionDto = CreateDiklatInstitutionDto;
@@ -0,0 +1,5 @@
1
+ import { CreateDiklatInstitutionDto } from './create-diklat_institution.dto';
2
+ declare const UpdateDiklatInstitutionDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateDiklatInstitutionDto>>;
3
+ export declare class UpdateDiklatInstitutionDto extends UpdateDiklatInstitutionDto_base {
4
+ }
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDiklatInstitutionDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_diklat_institution_dto_1 = require("./create-diklat_institution.dto");
6
+ class UpdateDiklatInstitutionDto extends (0, mapped_types_1.PartialType)(create_diklat_institution_dto_1.CreateDiklatInstitutionDto) {
7
+ }
8
+ exports.UpdateDiklatInstitutionDto = UpdateDiklatInstitutionDto;
@@ -0,0 +1,9 @@
1
+ import { DefaultColumn } from "../../../helper/default-column";
2
+ export declare class DiklatInstitution extends DefaultColumn {
3
+ id?: number;
4
+ name?: string;
5
+ code?: string;
6
+ city?: string;
7
+ address?: string;
8
+ status?: boolean;
9
+ }
@@ -0,0 +1,47 @@
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
+ exports.DiklatInstitution = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const default_column_1 = require("../../../helper/default-column");
15
+ let DiklatInstitution = class DiklatInstitution extends default_column_1.DefaultColumn {
16
+ };
17
+ exports.DiklatInstitution = DiklatInstitution;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
20
+ __metadata("design:type", Number)
21
+ ], DiklatInstitution.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)(),
24
+ __metadata("design:type", String)
25
+ ], DiklatInstitution.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)(),
28
+ __metadata("design:type", String)
29
+ ], DiklatInstitution.prototype, "code", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)(),
32
+ __metadata("design:type", String)
33
+ ], DiklatInstitution.prototype, "city", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)(),
36
+ __metadata("design:type", String)
37
+ ], DiklatInstitution.prototype, "address", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)(),
40
+ __metadata("design:type", Boolean)
41
+ ], DiklatInstitution.prototype, "status", void 0);
42
+ exports.DiklatInstitution = DiklatInstitution = __decorate([
43
+ (0, typeorm_1.Entity)({
44
+ schema: "autofill",
45
+ name: "diklat_institutions",
46
+ })
47
+ ], DiklatInstitution);
@@ -14,6 +14,7 @@ const company_module_1 = require("./company/company.module");
14
14
  const autofill_module_1 = require("./autofill/autofill.module");
15
15
  const crew_module_1 = require("./crew/crew.module");
16
16
  const logs_module_1 = require("./logs/logs.module");
17
+ const staff_module_1 = require("./staff/staff.module");
17
18
  let SharedModelModule = class SharedModelModule {
18
19
  };
19
20
  exports.SharedModelModule = SharedModelModule;
@@ -27,6 +28,7 @@ exports.SharedModelModule = SharedModelModule = __decorate([
27
28
  autofill_module_1.AutofillModule,
28
29
  crew_module_1.CrewModule,
29
30
  logs_module_1.LogsModule,
31
+ staff_module_1.StaffModule,
30
32
  ],
31
33
  exports: [
32
34
  library_module_1.LibraryModule,
@@ -35,6 +37,7 @@ exports.SharedModelModule = SharedModelModule = __decorate([
35
37
  autofill_module_1.AutofillModule,
36
38
  crew_module_1.CrewModule,
37
39
  logs_module_1.LogsModule,
40
+ staff_module_1.StaffModule,
38
41
  ],
39
42
  })
40
43
  ], SharedModelModule);
@@ -0,0 +1,2 @@
1
+ export declare class StaffModule {
2
+ }
@@ -0,0 +1,20 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.StaffModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const staff_types_module_1 = require("./staff_types/staff_types.module");
12
+ let StaffModule = class StaffModule {
13
+ };
14
+ exports.StaffModule = StaffModule;
15
+ exports.StaffModule = StaffModule = __decorate([
16
+ (0, common_1.Module)({
17
+ imports: [staff_types_module_1.StaffTypesModule],
18
+ exports: [staff_types_module_1.StaffTypesModule],
19
+ })
20
+ ], StaffModule);
@@ -0,0 +1,2 @@
1
+ export declare class CreateStaffTypeDto {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateStaffTypeDto = void 0;
4
+ class CreateStaffTypeDto {
5
+ }
6
+ exports.CreateStaffTypeDto = CreateStaffTypeDto;
@@ -0,0 +1,5 @@
1
+ import { CreateStaffTypeDto } from './create-staff_type.dto';
2
+ declare const UpdateStaffTypeDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateStaffTypeDto>>;
3
+ export declare class UpdateStaffTypeDto extends UpdateStaffTypeDto_base {
4
+ }
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateStaffTypeDto = void 0;
4
+ const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_staff_type_dto_1 = require("./create-staff_type.dto");
6
+ class UpdateStaffTypeDto extends (0, mapped_types_1.PartialType)(create_staff_type_dto_1.CreateStaffTypeDto) {
7
+ }
8
+ exports.UpdateStaffTypeDto = UpdateStaffTypeDto;
@@ -0,0 +1,6 @@
1
+ import { DefaultColumn } from "../../../helper/default-column";
2
+ export declare class StaffType extends DefaultColumn {
3
+ id?: number;
4
+ name?: string;
5
+ roles?: any;
6
+ }
@@ -0,0 +1,35 @@
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
+ exports.StaffType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const default_column_1 = require("../../../helper/default-column");
15
+ let StaffType = class StaffType extends default_column_1.DefaultColumn {
16
+ };
17
+ exports.StaffType = StaffType;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
20
+ __metadata("design:type", Number)
21
+ ], StaffType.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)(),
24
+ __metadata("design:type", String)
25
+ ], StaffType.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)("jsonb"),
28
+ __metadata("design:type", Object)
29
+ ], StaffType.prototype, "roles", void 0);
30
+ exports.StaffType = StaffType = __decorate([
31
+ (0, typeorm_1.Entity)({
32
+ schema: "staff",
33
+ name: "staff_types",
34
+ })
35
+ ], StaffType);
@@ -0,0 +1,2 @@
1
+ export declare class StaffTypesModule {
2
+ }
@@ -0,0 +1,23 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.StaffTypesModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const staff_types_service_1 = require("./staff_types.service");
12
+ const staff_type_entity_1 = require("./entities/staff_type.entity");
13
+ const typeorm_1 = require("@nestjs/typeorm");
14
+ let StaffTypesModule = class StaffTypesModule {
15
+ };
16
+ exports.StaffTypesModule = StaffTypesModule;
17
+ exports.StaffTypesModule = StaffTypesModule = __decorate([
18
+ (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([staff_type_entity_1.StaffType])],
20
+ providers: [staff_types_service_1.StaffTypesService],
21
+ exports: [staff_types_service_1.StaffTypesService],
22
+ })
23
+ ], StaffTypesModule);
@@ -0,0 +1,6 @@
1
+ import { BaseService } from "../../helper/base-service";
2
+ import { StaffType } from "./entities/staff_type.entity";
3
+ import { Repository } from "typeorm";
4
+ export declare class StaffTypesService extends BaseService<StaffType> {
5
+ constructor(repository: Repository<StaffType>);
6
+ }
@@ -0,0 +1,31 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.StaffTypesService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const base_service_1 = require("../../helper/base-service");
18
+ const staff_type_entity_1 = require("./entities/staff_type.entity");
19
+ const typeorm_1 = require("@nestjs/typeorm");
20
+ const typeorm_2 = require("typeorm");
21
+ let StaffTypesService = class StaffTypesService extends base_service_1.BaseService {
22
+ constructor(repository) {
23
+ super(repository);
24
+ }
25
+ };
26
+ exports.StaffTypesService = StaffTypesService;
27
+ exports.StaffTypesService = StaffTypesService = __decorate([
28
+ (0, common_1.Injectable)(),
29
+ __param(0, (0, typeorm_1.InjectRepository)(staff_type_entity_1.StaffType)),
30
+ __metadata("design:paramtypes", [typeorm_2.Repository])
31
+ ], StaffTypesService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oca-shared-model",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "onboard shared model",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {