@aurispec/core-backend 1.0.50 → 1.0.51
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/database/migrations/1775751863215-modified_push_notifications_table.d.ts +7 -0
- package/dist/database/migrations/1775751863215-modified_push_notifications_table.d.ts.map +1 -0
- package/dist/database/migrations/1775751863215-modified_push_notifications_table.js +13 -0
- package/dist/models/PushNotificationModel.d.ts +0 -1
- package/dist/models/PushNotificationModel.d.ts.map +1 -1
- package/dist/models/PushNotificationModel.js +0 -5
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
export declare class ModifiedPushNotificationsTable1775751863215 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=1775751863215-modified_push_notifications_table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1775751863215-modified_push_notifications_table.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1775751863215-modified_push_notifications_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D,qBAAa,2CAA4C,YAAW,kBAAkB;IAClF,IAAI,SAAgD;IAEvC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAI7D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModifiedPushNotificationsTable1775751863215 = void 0;
|
|
4
|
+
class ModifiedPushNotificationsTable1775751863215 {
|
|
5
|
+
name = 'ModifiedPushNotificationsTable1775751863215';
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "push_notifications" DROP COLUMN "name"`);
|
|
8
|
+
}
|
|
9
|
+
async down(queryRunner) {
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "push_notifications" ADD "name" character varying NOT NULL`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ModifiedPushNotificationsTable1775751863215 = ModifiedPushNotificationsTable1775751863215;
|
|
@@ -2,7 +2,6 @@ import { BaseModel } from "./BaseModel";
|
|
|
2
2
|
import { UserModel } from "./UserModel";
|
|
3
3
|
import { DEVICE_PLATFORMS, PUSH_NOTIFICATION_PROVIDER } from "../common/enums";
|
|
4
4
|
export declare class PushNotificationModel extends BaseModel {
|
|
5
|
-
name: string;
|
|
6
5
|
user_id: number;
|
|
7
6
|
token: string;
|
|
8
7
|
user: UserModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushNotificationModel.d.ts","sourceRoot":"","sources":["../../src/models/PushNotificationModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE/E,qBAEa,qBAAsB,SAAQ,SAAS;IAElD,
|
|
1
|
+
{"version":3,"file":"PushNotificationModel.d.ts","sourceRoot":"","sources":["../../src/models/PushNotificationModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE/E,qBAEa,qBAAsB,SAAQ,SAAS;IAElD,OAAO,EAAG,MAAM,CAAC;IAGjB,KAAK,EAAG,MAAM,CAAC;IAIf,IAAI,EAAG,SAAS,CAAC;IAGjB,SAAS,EAAG,MAAM,CAAC;IAOnB,QAAQ,EAAG,0BAA0B,CAAC;IAOtC,SAAS,EAAG,gBAAgB,CAAC;IAG7B,WAAW,EAAG,MAAM,CAAC;IAGrB,SAAS,EAAG,OAAO,CAAC;CACrB"}
|
|
@@ -15,7 +15,6 @@ const BaseModel_1 = require("./BaseModel");
|
|
|
15
15
|
const UserModel_1 = require("./UserModel");
|
|
16
16
|
const enums_1 = require("../common/enums");
|
|
17
17
|
let PushNotificationModel = class PushNotificationModel extends BaseModel_1.BaseModel {
|
|
18
|
-
name;
|
|
19
18
|
user_id;
|
|
20
19
|
token;
|
|
21
20
|
user;
|
|
@@ -26,10 +25,6 @@ let PushNotificationModel = class PushNotificationModel extends BaseModel_1.Base
|
|
|
26
25
|
is_active;
|
|
27
26
|
};
|
|
28
27
|
exports.PushNotificationModel = PushNotificationModel;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], PushNotificationModel.prototype, "name", void 0);
|
|
33
28
|
__decorate([
|
|
34
29
|
(0, typeorm_1.Column)(),
|
|
35
30
|
__metadata("design:type", Number)
|