@platform-modules/foreign-ministry 1.0.93 → 1.0.95
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/data-source.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +2 -0
- package/src/index.ts +1 -0
- package/src/models/importantLinksModel.ts +22 -0
package/dist/data-source.js
CHANGED
|
@@ -70,6 +70,7 @@ const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
|
70
70
|
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
71
71
|
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
72
72
|
const WorkflowHierarchy_1 = require("./models/WorkflowHierarchy");
|
|
73
|
+
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
73
74
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
74
75
|
type: 'postgres',
|
|
75
76
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -145,5 +146,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
145
146
|
WorkflowTaskNames_1.WorkflowTaskNames,
|
|
146
147
|
WorkflowDefinitions_1.WorkflowDefinitions,
|
|
147
148
|
WorkflowHierarchy_1.WorkflowHierarchy,
|
|
149
|
+
importantLinksModel_1.ImportantLinks,
|
|
148
150
|
],
|
|
149
151
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -79,3 +79,4 @@ __exportStar(require("./models/WorkflowTask"), exports);
|
|
|
79
79
|
__exportStar(require("./models/WorkflowTaskNames"), exports);
|
|
80
80
|
__exportStar(require("./models/WorkflowDefinitions"), exports);
|
|
81
81
|
__exportStar(require("./models/WorkflowHierarchy"), exports);
|
|
82
|
+
__exportStar(require("./models/importantLinksModel"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ImportantLinks = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ImportantLinks = class ImportantLinks extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(title, url) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.url = url;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ImportantLinks = ImportantLinks;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ImportantLinks.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ImportantLinks.prototype, "url", void 0);
|
|
31
|
+
exports.ImportantLinks = ImportantLinks = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'important_links' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ImportantLinks);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -74,6 +74,7 @@ import { WorkflowTask } from './models/WorkflowTask';
|
|
|
74
74
|
import { WorkflowTaskNames } from './models/WorkflowTaskNames';
|
|
75
75
|
import { WorkflowDefinitions } from './models/WorkflowDefinitions';
|
|
76
76
|
import { WorkflowHierarchy } from './models/WorkflowHierarchy';
|
|
77
|
+
import { ImportantLinks } from './models/importantLinksModel';
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
|
|
@@ -152,5 +153,6 @@ export const AppDataSource = new DataSource({
|
|
|
152
153
|
WorkflowTaskNames,
|
|
153
154
|
WorkflowDefinitions,
|
|
154
155
|
WorkflowHierarchy,
|
|
156
|
+
ImportantLinks,
|
|
155
157
|
],
|
|
156
158
|
});
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'important_links' })
|
|
5
|
+
export class ImportantLinks extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', nullable: false })
|
|
8
|
+
title: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'varchar', nullable: false })
|
|
11
|
+
url: string;
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
title: string,
|
|
15
|
+
url: string
|
|
16
|
+
) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.url = url;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|