@volontariapp/domain-user 2.5.0 → 2.5.1-snap-6cba0ec
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/CHANGELOG.md +9 -0
- package/dist/test/migrations/1777985367961-AddTargetServicesToEventQueue.d.ts +6 -0
- package/dist/test/migrations/1777985367961-AddTargetServicesToEventQueue.d.ts.map +1 -0
- package/dist/test/migrations/1777985367961-AddTargetServicesToEventQueue.js +17 -0
- package/dist/test/migrations/1777985367961-AddTargetServicesToEventQueue.js.map +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class AddTargetServicesToEventQueue1777985367961 implements MigrationInterface {
|
|
3
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
4
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=1777985367961-AddTargetServicesToEventQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1777985367961-AddTargetServicesToEventQueue.d.ts","sourceRoot":"","sources":["../../../src/test/migrations/1777985367961-AddTargetServicesToEventQueue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D,qBAAa,0CAA2C,YAAW,kBAAkB;IACtE,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAW3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAO3D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class AddTargetServicesToEventQueue1777985367961 {
|
|
2
|
+
async up(queryRunner) {
|
|
3
|
+
const table = await queryRunner.getTable('event_queue');
|
|
4
|
+
const hasTargetServices = table?.findColumnByName('target_services');
|
|
5
|
+
if (!hasTargetServices) {
|
|
6
|
+
await queryRunner.query(`ALTER TABLE "event_queue" ADD "target_services" varchar array NOT NULL DEFAULT '{}'`);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
async down(queryRunner) {
|
|
10
|
+
const table = await queryRunner.getTable('event_queue');
|
|
11
|
+
const hasTargetServices = table?.findColumnByName('target_services');
|
|
12
|
+
if (hasTargetServices) {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "event_queue" DROP COLUMN "target_services"`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=1777985367961-AddTargetServicesToEventQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1777985367961-AddTargetServicesToEventQueue.js","sourceRoot":"","sources":["../../../src/test/migrations/1777985367961-AddTargetServicesToEventQueue.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,0CAA0C;IAC9C,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACxD,MAAM,iBAAiB,GAAG,KAAK,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QAErE,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,WAAW,CAAC,KAAK,CACrB,qFAAqF,CACtF,CAAC;QACJ,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACxD,MAAM,iBAAiB,GAAG,KAAK,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QACrE,IAAI,iBAAiB,EAAE,CAAC;YACtB,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QACrF,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volontariapp/domain-user",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1-snap-6cba0ec",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"migration:run": "TYPEORM_MIGRATION_RUN=true yarn typeorm migration:run -d src/test/data-source.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@volontariapp/auth": "3.2.
|
|
42
|
+
"@volontariapp/auth": "3.2.3-snap-6cba0ec",
|
|
43
43
|
"@volontariapp/contracts": "4.0.9",
|
|
44
44
|
"@volontariapp/crypto": "0.3.6",
|
|
45
|
-
"@volontariapp/database": "1.
|
|
45
|
+
"@volontariapp/database": "1.15.0-snap-6cba0ec",
|
|
46
46
|
"@volontariapp/errors": "0.5.0",
|
|
47
47
|
"@volontariapp/errors-nest": "0.10.2",
|
|
48
48
|
"@volontariapp/logger": "0.2.3",
|
|
49
|
-
"@volontariapp/shared": "0.
|
|
49
|
+
"@volontariapp/shared": "0.4.0-snap-6cba0ec"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@nestjs/typeorm": "^11.0.1",
|