@aurispec/core-backend 1.0.81 → 1.0.83

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.
@@ -1 +1 @@
1
- {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../src/common/configs/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AASrC,eAAO,MAAM,UAAU,YAWrB,CAAC;AAEH,eAAO,MAAM,cAAc,qBAI1B,CAAC"}
1
+ {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../src/common/configs/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AASrC,eAAO,MAAM,UAAU,YAYrB,CAAC;AAEH,eAAO,MAAM,cAAc,qBAI1B,CAAC"}
@@ -51,6 +51,7 @@ exports.dataSource = new typeorm_1.DataSource({
51
51
  migrations: [isCompiled ? "dist/database/migrations/**/*.js" : "src/database/migrations/**/*.ts"],
52
52
  synchronize: false,
53
53
  logging: true,
54
+ ssl: { rejectUnauthorized: false }
54
55
  });
55
56
  const postgresLoader = async () => {
56
57
  await exports.dataSource.initialize()
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from "typeorm";
2
+ export declare class ModifyAccessTokensTable1778607172010 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1778607172010-modify_access_tokens_table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1778607172010-modify_access_tokens_table.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1778607172010-modify_access_tokens_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D,qBAAa,oCAAqC,YAAW,kBAAkB;IAC3E,IAAI,SAAyC;IAEhC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAK7D"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModifyAccessTokensTable1778607172010 = void 0;
4
+ class ModifyAccessTokensTable1778607172010 {
5
+ name = 'ModifyAccessTokensTable1778607172010';
6
+ async up(queryRunner) {
7
+ await queryRunner.query(`ALTER TABLE "access_tokens" DROP COLUMN "expires_at"`);
8
+ await queryRunner.query(`ALTER TABLE "access_tokens" ADD "expires_at" TIMESTAMP WITH TIME ZONE NOT NULL`);
9
+ }
10
+ async down(queryRunner) {
11
+ await queryRunner.query(`ALTER TABLE "access_tokens" DROP COLUMN "expires_at"`);
12
+ await queryRunner.query(`ALTER TABLE "access_tokens" ADD "expires_at" integer NOT NULL`);
13
+ }
14
+ }
15
+ exports.ModifyAccessTokensTable1778607172010 = ModifyAccessTokensTable1778607172010;
@@ -2,7 +2,7 @@ import { BaseModel } from "./BaseModel";
2
2
  import { SYS_MODELS } from "../common/enums";
3
3
  export declare class AccessTokenModel extends BaseModel {
4
4
  accessable_id: number;
5
- expires_at: number;
5
+ expires_at: Date;
6
6
  accessable_type: SYS_MODELS;
7
7
  token: string;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AccessTokenModel.d.ts","sourceRoot":"","sources":["../../src/models/AccessTokenModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,qBAEa,gBAAiB,SAAQ,SAAS;IAE7C,aAAa,EAAG,MAAM,CAAC;IAGvB,UAAU,EAAG,MAAM,CAAC;IAMpB,eAAe,EAAG,UAAU,CAAC;IAG7B,KAAK,EAAG,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"AccessTokenModel.d.ts","sourceRoot":"","sources":["../../src/models/AccessTokenModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,qBAEa,gBAAiB,SAAQ,SAAS;IAE7C,aAAa,EAAG,MAAM,CAAC;IAGvB,UAAU,EAAG,IAAI,CAAC;IAMlB,eAAe,EAAG,UAAU,CAAC;IAG7B,KAAK,EAAG,MAAM,CAAC;CAChB"}
@@ -26,8 +26,8 @@ __decorate([
26
26
  __metadata("design:type", Number)
27
27
  ], AccessTokenModel.prototype, "accessable_id", void 0);
28
28
  __decorate([
29
- (0, typeorm_1.Column)(),
30
- __metadata("design:type", Number)
29
+ (0, typeorm_1.Column)({ type: "timestamptz" }),
30
+ __metadata("design:type", Date)
31
31
  ], AccessTokenModel.prototype, "expires_at", void 0);
32
32
  __decorate([
33
33
  (0, typeorm_1.Column)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurispec/core-backend",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "Auri spectrum's backend core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",