@platform-modules/foreign-ministry 1.3.143 → 1.3.144

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.
@@ -178,8 +178,9 @@ const HallWorkflowModel_1 = require("./models/HallWorkflowModel");
178
178
  const HallMasterModel_1 = require("./models/HallMasterModel");
179
179
  const HallHistoryModel_1 = require("./models/HallHistoryModel");
180
180
  const GiftsModel_1 = require("./models/GiftsModel");
181
- const ProjectModel_1 = require("./models/ProjectModel");
182
181
  const GiftAttachmentModel_1 = require("./models/GiftAttachmentModel");
182
+ const ProjectModel_1 = require("./models/ProjectModel");
183
+ const TemplateModel_1 = require("./models/TemplateModel");
183
184
  exports.AppDataSource = new typeorm_1.DataSource({
184
185
  type: 'postgres',
185
186
  host: process.env.DB_HOST || 'localhost',
@@ -365,5 +366,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
365
366
  GiftsModel_1.Gifts,
366
367
  GiftAttachmentModel_1.GiftAttachments,
367
368
  ProjectModel_1.Projects,
369
+ TemplateModel_1.Templates,
368
370
  ],
369
371
  });
package/dist/index.d.ts CHANGED
@@ -270,6 +270,7 @@ export * from './models/HallHistoryModel';
270
270
  export * from './models/GiftsModel';
271
271
  export * from './models/GiftAttachmentModel';
272
272
  export * from './models/ProjectModel';
273
+ export * from './models/TemplateModel';
273
274
  export * from './models/EmployeeMilestonesModel';
274
275
  export * from './models/EmployeeMilestoneDetailsModel';
275
276
  export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
package/dist/index.js CHANGED
@@ -331,6 +331,7 @@ __exportStar(require("./models/HallHistoryModel"), exports);
331
331
  __exportStar(require("./models/GiftsModel"), exports);
332
332
  __exportStar(require("./models/GiftAttachmentModel"), exports);
333
333
  __exportStar(require("./models/ProjectModel"), exports);
334
+ __exportStar(require("./models/TemplateModel"), exports);
334
335
  // Employee Milestones Models
335
336
  __exportStar(require("./models/EmployeeMilestonesModel"), exports);
336
337
  __exportStar(require("./models/EmployeeMilestoneDetailsModel"), exports);
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class Templates extends BaseModel {
3
+ template_name: string;
4
+ description: string | null;
5
+ template_url: string | null;
6
+ category: string;
7
+ constructor(template_name?: string, description?: string | null, template_url?: string | null, category?: string);
8
+ }
@@ -0,0 +1,44 @@
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.Templates = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let Templates = class Templates extends BaseModel_1.BaseModel {
16
+ constructor(template_name, description, template_url, category) {
17
+ super();
18
+ this.template_name = template_name || '';
19
+ this.description = description ?? null;
20
+ this.template_url = template_url ?? null;
21
+ this.category = category || '';
22
+ }
23
+ };
24
+ exports.Templates = Templates;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
27
+ __metadata("design:type", String)
28
+ ], Templates.prototype, "template_name", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], Templates.prototype, "description", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], Templates.prototype, "template_url", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
39
+ __metadata("design:type", String)
40
+ ], Templates.prototype, "category", void 0);
41
+ exports.Templates = Templates = __decorate([
42
+ (0, typeorm_1.Entity)({ name: 'templates' }),
43
+ __metadata("design:paramtypes", [String, Object, Object, String])
44
+ ], Templates);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.143",
3
+ "version": "1.3.144",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -184,10 +184,9 @@ import { HallWorkFlow } from './models/HallWorkflowModel';
184
184
  import { HallMaster } from './models/HallMasterModel';
185
185
  import { HallHistory } from './models/HallHistoryModel';
186
186
  import { Gifts } from './models/GiftsModel';
187
- import { Projects } from './models/ProjectModel';
188
187
  import { GiftAttachments } from './models/GiftAttachmentModel';
189
-
190
-
188
+ import { Projects } from './models/ProjectModel';
189
+ import { Templates } from './models/TemplateModel';
191
190
  export const AppDataSource = new DataSource({
192
191
  type: 'postgres',
193
192
  host: process.env.DB_HOST || 'localhost',
@@ -373,5 +372,6 @@ export const AppDataSource = new DataSource({
373
372
  Gifts,
374
373
  GiftAttachments,
375
374
  Projects,
375
+ Templates,
376
376
  ],
377
377
  });
package/src/index.ts CHANGED
@@ -279,6 +279,7 @@ export * from './models/HallHistoryModel';
279
279
  export * from './models/GiftsModel';
280
280
  export * from './models/GiftAttachmentModel';
281
281
  export * from './models/ProjectModel';
282
+ export * from './models/TemplateModel';
282
283
 
283
284
  // Employee Milestones Models
284
285
  export * from './models/EmployeeMilestonesModel';
@@ -0,0 +1,30 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'templates' })
5
+ export class Templates extends BaseModel {
6
+ @Column({ type: 'varchar', length: 255 })
7
+ template_name: string;
8
+
9
+ @Column({ type: 'text', nullable: true })
10
+ description: string | null;
11
+
12
+ @Column({ type: 'text', nullable: true })
13
+ template_url: string | null;
14
+
15
+ @Column({ type: 'varchar', length: 255 })
16
+ category: string;
17
+
18
+ constructor(
19
+ template_name?: string,
20
+ description?: string | null,
21
+ template_url?: string | null,
22
+ category?: string
23
+ ) {
24
+ super();
25
+ this.template_name = template_name || '';
26
+ this.description = description ?? null;
27
+ this.template_url = template_url ?? null;
28
+ this.category = category || '';
29
+ }
30
+ }