@sphereon/ssi-sdk.data-store 0.18.2-next.9 → 0.18.2-unstable.13
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/LICENSE +201 -201
- package/README.md +77 -77
- package/dist/contact/AbstractContactStore.d.ts +23 -23
- package/dist/contact/AbstractContactStore.js +6 -6
- package/dist/contact/ContactStore.d.ts +32 -32
- package/dist/contact/ContactStore.js +365 -365
- package/dist/entities/contact/BaseConfigEntity.d.ts +6 -6
- package/dist/entities/contact/BaseConfigEntity.js +33 -33
- package/dist/entities/contact/BaseContactEntity.d.ts +9 -9
- package/dist/entities/contact/BaseContactEntity.js +53 -53
- package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
- package/dist/entities/contact/ConnectionEntity.js +46 -46
- package/dist/entities/contact/ContactEntity.d.ts +16 -0
- package/dist/entities/contact/ContactEntity.d.ts.map +1 -0
- package/dist/entities/contact/ContactEntity.js +164 -0
- package/dist/entities/contact/ContactEntity.js.map +1 -0
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
- package/dist/entities/contact/CorrelationIdentifierEntity.js +71 -71
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +6 -6
- package/dist/entities/contact/DidAuthConfigEntity.js +32 -32
- package/dist/entities/contact/ElectronicAddressEntity.d.ts +13 -13
- package/dist/entities/contact/ElectronicAddressEntity.js +91 -91
- package/dist/entities/contact/IdentityEntity.d.ts +20 -20
- package/dist/entities/contact/IdentityEntity.js +128 -128
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +9 -9
- package/dist/entities/contact/IdentityMetadataItemEntity.js +68 -68
- package/dist/entities/contact/NaturalPersonEntity.d.ts +8 -8
- package/dist/entities/contact/NaturalPersonEntity.js +71 -71
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +10 -10
- package/dist/entities/contact/OpenIdConfigEntity.js +48 -48
- package/dist/entities/contact/OrganizationEntity.d.ts +8 -8
- package/dist/entities/contact/OrganizationEntity.js +66 -66
- package/dist/entities/contact/PartyEntity.d.ts +19 -19
- package/dist/entities/contact/PartyEntity.js +131 -131
- package/dist/entities/contact/PartyRelationshipEntity.d.ts +12 -12
- package/dist/entities/contact/PartyRelationshipEntity.js +94 -94
- package/dist/entities/contact/PartyTypeEntity.d.ts +14 -14
- package/dist/entities/contact/PartyTypeEntity.js +103 -103
- package/dist/entities/eventLogger/AuditEventEntity.d.ts +26 -26
- package/dist/entities/eventLogger/AuditEventEntity.js +123 -123
- package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +10 -10
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +73 -73
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +17 -17
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +119 -119
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +14 -14
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +101 -101
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +48 -48
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +91 -91
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +38 -38
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +94 -94
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +48 -48
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +8 -8
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +61 -61
- package/dist/entities/statusList2021/StatusList2021Entity.d.ts +18 -18
- package/dist/entities/statusList2021/StatusList2021Entity.js +114 -114
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +10 -10
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js +50 -50
- package/dist/entities/validators/index.d.ts +6 -6
- package/dist/entities/validators/index.js +26 -26
- package/dist/eventLogger/AbstractEventLoggerStore.d.ts +6 -6
- package/dist/eventLogger/AbstractEventLoggerStore.js +6 -6
- package/dist/eventLogger/EventLoggerStore.d.ts +12 -12
- package/dist/eventLogger/EventLoggerStore.js +43 -43
- package/dist/index.d.ts +41 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +127 -131
- package/dist/index.js.map +1 -1
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +19 -19
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -6
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +30 -30
- package/dist/issuanceBranding/IssuanceBrandingStore.js +374 -374
- package/dist/migrations/generic/1-CreateContacts.d.ts +6 -6
- package/dist/migrations/generic/1-CreateContacts.js +77 -77
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +7 -0
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +1 -0
- package/dist/migrations/generic/1-CreateIssuanceBranding.js +96 -0
- package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +1 -0
- package/dist/migrations/generic/2-CreateContacts.d.ts +7 -0
- package/dist/migrations/generic/2-CreateContacts.d.ts.map +1 -0
- package/dist/migrations/generic/2-CreateContacts.js +78 -0
- package/dist/migrations/generic/2-CreateContacts.js.map +1 -0
- package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/generic/2-CreateIssuanceBranding.js +77 -77
- package/dist/migrations/generic/3-CreateContacts.d.ts +6 -6
- package/dist/migrations/generic/3-CreateContacts.js +77 -77
- package/dist/migrations/generic/3-CreateStatusList.d.ts +7 -0
- package/dist/migrations/generic/3-CreateStatusList.d.ts.map +1 -0
- package/dist/migrations/generic/3-CreateStatusList.js +72 -0
- package/dist/migrations/generic/3-CreateStatusList.js.map +1 -0
- package/dist/migrations/generic/4-CreateStatusList.d.ts +6 -6
- package/dist/migrations/generic/4-CreateStatusList.js +71 -71
- package/dist/migrations/generic/5-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/generic/5-CreateAuditEvents.js +77 -77
- package/dist/migrations/generic/index.d.ts +16 -16
- package/dist/migrations/generic/index.js +27 -27
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +5 -9
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/internal-migrations-ormconfig.d.ts +6 -6
- package/dist/migrations/internal-migrations-ormconfig.js +26 -26
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +6 -6
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +56 -56
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +68 -68
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +6 -6
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +68 -68
- package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +6 -6
- package/dist/migrations/postgres/1693866470001-CreateStatusList.js +31 -31
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +42 -42
- package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts +7 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +1 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +32 -0
- package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +1 -0
- package/dist/migrations/postgres/uuid.d.ts +3 -0
- package/dist/migrations/postgres/uuid.d.ts.map +1 -0
- package/dist/migrations/postgres/uuid.js +25 -0
- package/dist/migrations/postgres/uuid.js.map +1 -0
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +6 -6
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js +78 -78
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +6 -6
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +88 -88
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +6 -6
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +107 -107
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +6 -6
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +31 -31
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +6 -6
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +28 -28
- package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
- package/dist/statusList/IStatusListStore.d.ts +19 -19
- package/dist/statusList/IStatusListStore.js +2 -2
- package/dist/statusList/StatusListStore.d.ts +35 -35
- package/dist/statusList/StatusListStore.js +212 -212
- package/dist/types/contact/IAbstractContactStore.d.ts +74 -74
- package/dist/types/contact/IAbstractContactStore.js +2 -2
- package/dist/types/contact/contact.d.ts +173 -173
- package/dist/types/contact/contact.js +25 -25
- package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -9
- package/dist/types/eventLogger/IAbstractEventLoggerStore.js +2 -2
- package/dist/types/eventLogger/eventLogger.d.ts +2 -2
- package/dist/types/eventLogger/eventLogger.js +2 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.js +25 -25
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +58 -58
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +2 -2
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +114 -114
- package/dist/types/issuanceBranding/issuanceBranding.js +2 -2
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +37 -37
- package/dist/types/statusList/IAbstractStatusListStore.js +2 -2
- package/dist/types/statusList/statusList.d.ts +24 -24
- package/dist/types/statusList/statusList.js +2 -2
- package/dist/types/validation/validation.d.ts +3 -3
- package/dist/types/validation/validation.js +2 -2
- package/dist/utils/ValidatorUtils.d.ts +3 -3
- package/dist/utils/ValidatorUtils.js +12 -12
- package/dist/utils/contact/MappingUtils.d.ts +46 -46
- package/dist/utils/contact/MappingUtils.js +290 -290
- package/package.json +4 -4
- package/src/__tests__/eventLogger.entities.test.ts +73 -73
- package/src/__tests__/eventLogger.store.test.ts +136 -136
- package/src/contact/ContactStore.ts +501 -501
- package/src/entities/eventLogger/AuditEventEntity.ts +99 -99
- package/src/entities/statusList2021/StatusList2021Entity.ts +96 -96
- package/src/eventLogger/AbstractEventLoggerStore.ts +7 -7
- package/src/eventLogger/EventLoggerStore.ts +62 -62
- package/src/index.ts +113 -119
- package/src/migrations/generic/1-CreateContacts.ts +66 -66
- package/src/migrations/generic/2-CreateIssuanceBranding.ts +64 -64
- package/src/migrations/generic/3-CreateContacts.ts +66 -66
- package/src/migrations/generic/4-CreateStatusList.ts +54 -54
- package/src/migrations/generic/5-CreateAuditEvents.ts +66 -66
- package/src/migrations/generic/index.ts +27 -27
- package/src/migrations/index.ts +1 -7
- package/src/migrations/postgres/1693866470001-CreateStatusList.ts +24 -24
- package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +33 -33
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +163 -163
- package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -15
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -12
- package/src/types/eventLogger/eventLogger.ts +3 -3
- package/src/types/index.ts +9 -9
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateContacts1690925872318 = void 0;
|
|
16
|
-
const debug_1 = __importDefault(require("debug"));
|
|
17
|
-
const _1690925872693_CreateContacts_1 = require("../sqlite/1690925872693-CreateContacts");
|
|
18
|
-
const _1690925872592_CreateContacts_1 = require("../postgres/1690925872592-CreateContacts");
|
|
19
|
-
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
-
class CreateContacts1690925872318 {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.name = 'CreateContacts1690925872318';
|
|
23
|
-
}
|
|
24
|
-
up(queryRunner) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
debug('migration: creating contacts tables');
|
|
27
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
-
switch (dbType) {
|
|
29
|
-
case 'postgres': {
|
|
30
|
-
debug('using postgres migration file');
|
|
31
|
-
const mig = new _1690925872592_CreateContacts_1.CreateContacts1690925872592();
|
|
32
|
-
yield mig.up(queryRunner);
|
|
33
|
-
debug('Migration statements executed');
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
case 'sqlite':
|
|
37
|
-
case 'expo':
|
|
38
|
-
case 'react-native': {
|
|
39
|
-
debug('using sqlite/react-native migration file');
|
|
40
|
-
const mig = new _1690925872693_CreateContacts_1.CreateContacts1690925872693();
|
|
41
|
-
yield mig.up(queryRunner);
|
|
42
|
-
debug('Migration statements executed');
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
default:
|
|
46
|
-
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
down(queryRunner) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
debug('migration: reverting contacts tables');
|
|
53
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
54
|
-
switch (dbType) {
|
|
55
|
-
case 'postgres': {
|
|
56
|
-
debug('using postgres migration file');
|
|
57
|
-
const mig = new _1690925872592_CreateContacts_1.CreateContacts1690925872592();
|
|
58
|
-
yield mig.down(queryRunner);
|
|
59
|
-
debug('Migration statements executed');
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
case 'sqlite':
|
|
63
|
-
case 'expo':
|
|
64
|
-
case 'react-native': {
|
|
65
|
-
debug('using sqlite/react-native migration file');
|
|
66
|
-
const mig = new _1690925872693_CreateContacts_1.CreateContacts1690925872693();
|
|
67
|
-
yield mig.down(queryRunner);
|
|
68
|
-
debug('Migration statements executed');
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
default:
|
|
72
|
-
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.CreateContacts1690925872318 = CreateContacts1690925872318;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateContacts1690925872318 = void 0;
|
|
16
|
+
const debug_1 = __importDefault(require("debug"));
|
|
17
|
+
const _1690925872693_CreateContacts_1 = require("../sqlite/1690925872693-CreateContacts");
|
|
18
|
+
const _1690925872592_CreateContacts_1 = require("../postgres/1690925872592-CreateContacts");
|
|
19
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
+
class CreateContacts1690925872318 {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.name = 'CreateContacts1690925872318';
|
|
23
|
+
}
|
|
24
|
+
up(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
debug('migration: creating contacts tables');
|
|
27
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
+
switch (dbType) {
|
|
29
|
+
case 'postgres': {
|
|
30
|
+
debug('using postgres migration file');
|
|
31
|
+
const mig = new _1690925872592_CreateContacts_1.CreateContacts1690925872592();
|
|
32
|
+
yield mig.up(queryRunner);
|
|
33
|
+
debug('Migration statements executed');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
case 'sqlite':
|
|
37
|
+
case 'expo':
|
|
38
|
+
case 'react-native': {
|
|
39
|
+
debug('using sqlite/react-native migration file');
|
|
40
|
+
const mig = new _1690925872693_CreateContacts_1.CreateContacts1690925872693();
|
|
41
|
+
yield mig.up(queryRunner);
|
|
42
|
+
debug('Migration statements executed');
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
default:
|
|
46
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
down(queryRunner) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
debug('migration: reverting contacts tables');
|
|
53
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
54
|
+
switch (dbType) {
|
|
55
|
+
case 'postgres': {
|
|
56
|
+
debug('using postgres migration file');
|
|
57
|
+
const mig = new _1690925872592_CreateContacts_1.CreateContacts1690925872592();
|
|
58
|
+
yield mig.down(queryRunner);
|
|
59
|
+
debug('Migration statements executed');
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
case 'sqlite':
|
|
63
|
+
case 'expo':
|
|
64
|
+
case 'react-native': {
|
|
65
|
+
debug('using sqlite/react-native migration file');
|
|
66
|
+
const mig = new _1690925872693_CreateContacts_1.CreateContacts1690925872693();
|
|
67
|
+
yield mig.down(queryRunner);
|
|
68
|
+
debug('Migration statements executed');
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
default:
|
|
72
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.CreateContacts1690925872318 = CreateContacts1690925872318;
|
|
78
78
|
//# sourceMappingURL=3-CreateContacts.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateStatusList1693866470000 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=3-CreateStatusList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-CreateStatusList.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateStatusList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMzD,qBAAa,6BAA8B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3D"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateStatusList1693866470000 = void 0;
|
|
16
|
+
const debug_1 = __importDefault(require("debug"));
|
|
17
|
+
const CreateStatusList1693866470001_CreateStatusList_1 = require("../postgres/CreateStatusList1693866470001-CreateStatusList");
|
|
18
|
+
const _1693866470000_CreateStatusList_1 = require("../sqlite/1693866470000-CreateStatusList");
|
|
19
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
+
class CreateStatusList1693866470000 {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.name = 'CreateStatusList1693866470000';
|
|
23
|
+
}
|
|
24
|
+
up(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
debug('migration: creating issuance branding tables');
|
|
27
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
+
if (dbType === 'postgres') {
|
|
29
|
+
debug('using postgres migration file');
|
|
30
|
+
const mig = new CreateStatusList1693866470001_CreateStatusList_1.CreateStatusList1693866470001();
|
|
31
|
+
const up = yield mig.up(queryRunner);
|
|
32
|
+
debug('Migration statements executed');
|
|
33
|
+
return up;
|
|
34
|
+
}
|
|
35
|
+
else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
|
|
36
|
+
debug('using sqlite/react-native migration file');
|
|
37
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
38
|
+
const up = yield mig.up(queryRunner);
|
|
39
|
+
debug('Migration statements executed');
|
|
40
|
+
return up;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
down(queryRunner) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
debug('migration: reverting issuance branding tables');
|
|
50
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
51
|
+
if (dbType === 'postgres') {
|
|
52
|
+
debug('using postgres migration file');
|
|
53
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
54
|
+
const down = yield mig.down(queryRunner);
|
|
55
|
+
debug('Migration statements executed');
|
|
56
|
+
return down;
|
|
57
|
+
}
|
|
58
|
+
else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
|
|
59
|
+
debug('using sqlite/react-native migration file');
|
|
60
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
61
|
+
const down = yield mig.down(queryRunner);
|
|
62
|
+
debug('Migration statements executed');
|
|
63
|
+
return down;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expor and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.CreateStatusList1693866470000 = CreateStatusList1693866470000;
|
|
72
|
+
//# sourceMappingURL=3-CreateStatusList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-CreateStatusList.js","sourceRoot":"","sources":["../../../src/migrations/generic/3-CreateStatusList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,+HAA0G;AAC1G,8FAAwF;AAExF,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElD,MAAa,6BAA6B;IAA1C;QACE,SAAI,GAAG,+BAA+B,CAAA;IA6CxC,CAAC;IA3Cc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,8CAA8C,CAAC,CAAA;YACrD,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,8EAA6B,EAAE,CAAA;gBAC/C,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;gBACpC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,EAAE,CAAA;aACV;iBAAM,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,cAAc,IAAI,MAAM,KAAK,MAAM,EAAE;gBAChF,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,+DAA6B,EAAE,CAAA;gBAC/C,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;gBACpC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,EAAE,CAAA;aACV;iBAAM;gBACL,OAAO,OAAO,CAAC,MAAM,CACnB,6FAA6F,MAAM,+GAA+G,CACnN,CAAA;aACF;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,KAAK,CAAC,+CAA+C,CAAC,CAAA;YACtD,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,+DAA6B,EAAE,CAAA;gBAC/C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,cAAc,IAAI,MAAM,KAAK,MAAM,EAAE;gBAChF,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,+DAA6B,EAAE,CAAA;gBAC/C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM;gBACL,OAAO,OAAO,CAAC,MAAM,CACnB,6FAA6F,MAAM,+GAA+G,CACnN,CAAA;aACF;QACH,CAAC;KAAA;CACF;AA9CD,sEA8CC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
export declare class CreateStatusList1693866470000 implements MigrationInterface {
|
|
3
|
-
name: string;
|
|
4
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateStatusList1693866470000 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=4-CreateStatusList.d.ts.map
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateStatusList1693866470000 = void 0;
|
|
16
|
-
const debug_1 = __importDefault(require("debug"));
|
|
17
|
-
const _1693866470001_CreateStatusList_1 = require("../postgres/1693866470001-CreateStatusList");
|
|
18
|
-
const _1693866470000_CreateStatusList_1 = require("../sqlite/1693866470000-CreateStatusList");
|
|
19
|
-
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
-
class CreateStatusList1693866470000 {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.name = 'CreateStatusList1693866470000';
|
|
23
|
-
}
|
|
24
|
-
up(queryRunner) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
debug('migration: creating issuance branding tables');
|
|
27
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
-
if (dbType === 'postgres') {
|
|
29
|
-
debug('using postgres migration file');
|
|
30
|
-
const mig = new _1693866470001_CreateStatusList_1.CreateStatusList1693866470001();
|
|
31
|
-
const up = yield mig.up(queryRunner);
|
|
32
|
-
debug('Migration statements executed');
|
|
33
|
-
return up;
|
|
34
|
-
}
|
|
35
|
-
else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
|
|
36
|
-
debug('using sqlite/react-native migration file');
|
|
37
|
-
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
38
|
-
const up = yield mig.up(queryRunner);
|
|
39
|
-
debug('Migration statements executed');
|
|
40
|
-
return up;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
down(queryRunner) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
debug('migration: reverting issuance branding tables');
|
|
50
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
51
|
-
if (dbType === 'postgres') {
|
|
52
|
-
debug('using postgres migration file');
|
|
53
|
-
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
54
|
-
const down = yield mig.down(queryRunner);
|
|
55
|
-
debug('Migration statements executed');
|
|
56
|
-
return down;
|
|
57
|
-
}
|
|
58
|
-
else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
|
|
59
|
-
debug('using sqlite/react-native migration file');
|
|
60
|
-
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
61
|
-
const down = yield mig.down(queryRunner);
|
|
62
|
-
debug('Migration statements executed');
|
|
63
|
-
return down;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.CreateStatusList1693866470000 = CreateStatusList1693866470000;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateStatusList1693866470000 = void 0;
|
|
16
|
+
const debug_1 = __importDefault(require("debug"));
|
|
17
|
+
const _1693866470001_CreateStatusList_1 = require("../postgres/1693866470001-CreateStatusList");
|
|
18
|
+
const _1693866470000_CreateStatusList_1 = require("../sqlite/1693866470000-CreateStatusList");
|
|
19
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
+
class CreateStatusList1693866470000 {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.name = 'CreateStatusList1693866470000';
|
|
23
|
+
}
|
|
24
|
+
up(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
debug('migration: creating issuance branding tables');
|
|
27
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
+
if (dbType === 'postgres') {
|
|
29
|
+
debug('using postgres migration file');
|
|
30
|
+
const mig = new _1693866470001_CreateStatusList_1.CreateStatusList1693866470001();
|
|
31
|
+
const up = yield mig.up(queryRunner);
|
|
32
|
+
debug('Migration statements executed');
|
|
33
|
+
return up;
|
|
34
|
+
}
|
|
35
|
+
else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
|
|
36
|
+
debug('using sqlite/react-native migration file');
|
|
37
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
38
|
+
const up = yield mig.up(queryRunner);
|
|
39
|
+
debug('Migration statements executed');
|
|
40
|
+
return up;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
down(queryRunner) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
debug('migration: reverting issuance branding tables');
|
|
50
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
51
|
+
if (dbType === 'postgres') {
|
|
52
|
+
debug('using postgres migration file');
|
|
53
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
54
|
+
const down = yield mig.down(queryRunner);
|
|
55
|
+
debug('Migration statements executed');
|
|
56
|
+
return down;
|
|
57
|
+
}
|
|
58
|
+
else if (dbType === 'sqlite' || dbType === 'react-native' || dbType === 'expo') {
|
|
59
|
+
debug('using sqlite/react-native migration file');
|
|
60
|
+
const mig = new _1693866470000_CreateStatusList_1.CreateStatusList1693866470002();
|
|
61
|
+
const down = yield mig.down(queryRunner);
|
|
62
|
+
debug('Migration statements executed');
|
|
63
|
+
return down;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.CreateStatusList1693866470000 = CreateStatusList1693866470000;
|
|
72
72
|
//# sourceMappingURL=4-CreateStatusList.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
export declare class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
3
|
-
name: string;
|
|
4
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=5-CreateAuditEvents.d.ts.map
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateAuditEvents1701635835330 = void 0;
|
|
16
|
-
const debug_1 = __importDefault(require("debug"));
|
|
17
|
-
const _1701634819487_CreateAuditEvents_1 = require("../sqlite/1701634819487-CreateAuditEvents");
|
|
18
|
-
const _1701634812183_CreateAuditEvents_1 = require("../postgres/1701634812183-CreateAuditEvents");
|
|
19
|
-
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
-
class CreateAuditEvents1701635835330 {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.name = 'CreateAuditEvents1701635835330';
|
|
23
|
-
}
|
|
24
|
-
up(queryRunner) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
debug('migration: creating audit events tables');
|
|
27
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
-
switch (dbType) {
|
|
29
|
-
case 'postgres': {
|
|
30
|
-
debug('using postgres migration file');
|
|
31
|
-
const mig = new _1701634812183_CreateAuditEvents_1.CreateAuditEvents1701634812183();
|
|
32
|
-
yield mig.up(queryRunner);
|
|
33
|
-
debug('Migration statements executed');
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
case 'sqlite':
|
|
37
|
-
case 'expo':
|
|
38
|
-
case 'react-native': {
|
|
39
|
-
debug('using sqlite/react-native migration file');
|
|
40
|
-
const mig = new _1701634819487_CreateAuditEvents_1.CreateAuditEvents1701634819487();
|
|
41
|
-
yield mig.up(queryRunner);
|
|
42
|
-
debug('Migration statements executed');
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
default:
|
|
46
|
-
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
down(queryRunner) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
debug('migration: reverting audit events tables');
|
|
53
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
54
|
-
switch (dbType) {
|
|
55
|
-
case 'postgres': {
|
|
56
|
-
debug('using postgres migration file');
|
|
57
|
-
const mig = new _1701634812183_CreateAuditEvents_1.CreateAuditEvents1701634812183();
|
|
58
|
-
yield mig.down(queryRunner);
|
|
59
|
-
debug('Migration statements executed');
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
case 'sqlite':
|
|
63
|
-
case 'expo':
|
|
64
|
-
case 'react-native': {
|
|
65
|
-
debug('using sqlite/react-native migration file');
|
|
66
|
-
const mig = new _1701634819487_CreateAuditEvents_1.CreateAuditEvents1701634819487();
|
|
67
|
-
yield mig.down(queryRunner);
|
|
68
|
-
debug('Migration statements executed');
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
default:
|
|
72
|
-
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.CreateAuditEvents1701635835330 = CreateAuditEvents1701635835330;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateAuditEvents1701635835330 = void 0;
|
|
16
|
+
const debug_1 = __importDefault(require("debug"));
|
|
17
|
+
const _1701634819487_CreateAuditEvents_1 = require("../sqlite/1701634819487-CreateAuditEvents");
|
|
18
|
+
const _1701634812183_CreateAuditEvents_1 = require("../postgres/1701634812183-CreateAuditEvents");
|
|
19
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
|
|
20
|
+
class CreateAuditEvents1701635835330 {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.name = 'CreateAuditEvents1701635835330';
|
|
23
|
+
}
|
|
24
|
+
up(queryRunner) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
debug('migration: creating audit events tables');
|
|
27
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
28
|
+
switch (dbType) {
|
|
29
|
+
case 'postgres': {
|
|
30
|
+
debug('using postgres migration file');
|
|
31
|
+
const mig = new _1701634812183_CreateAuditEvents_1.CreateAuditEvents1701634812183();
|
|
32
|
+
yield mig.up(queryRunner);
|
|
33
|
+
debug('Migration statements executed');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
case 'sqlite':
|
|
37
|
+
case 'expo':
|
|
38
|
+
case 'react-native': {
|
|
39
|
+
debug('using sqlite/react-native migration file');
|
|
40
|
+
const mig = new _1701634819487_CreateAuditEvents_1.CreateAuditEvents1701634819487();
|
|
41
|
+
yield mig.up(queryRunner);
|
|
42
|
+
debug('Migration statements executed');
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
default:
|
|
46
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
down(queryRunner) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
debug('migration: reverting audit events tables');
|
|
53
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
54
|
+
switch (dbType) {
|
|
55
|
+
case 'postgres': {
|
|
56
|
+
debug('using postgres migration file');
|
|
57
|
+
const mig = new _1701634812183_CreateAuditEvents_1.CreateAuditEvents1701634812183();
|
|
58
|
+
yield mig.down(queryRunner);
|
|
59
|
+
debug('Migration statements executed');
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
case 'sqlite':
|
|
63
|
+
case 'expo':
|
|
64
|
+
case 'react-native': {
|
|
65
|
+
debug('using sqlite/react-native migration file');
|
|
66
|
+
const mig = new _1701634819487_CreateAuditEvents_1.CreateAuditEvents1701634819487();
|
|
67
|
+
yield mig.down(queryRunner);
|
|
68
|
+
debug('Migration statements executed');
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
default:
|
|
72
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo and postgres. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.CreateAuditEvents1701635835330 = CreateAuditEvents1701635835330;
|
|
78
78
|
//# sourceMappingURL=5-CreateAuditEvents.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { CreateContacts1659463079429 } from './1-CreateContacts';
|
|
2
|
-
import { CreateIssuanceBranding1659463079429 } from './2-CreateIssuanceBranding';
|
|
3
|
-
import { CreateStatusList1693866470000 } from './4-CreateStatusList';
|
|
4
|
-
import { CreateAuditEvents1701635835330 } from './5-CreateAuditEvents';
|
|
5
|
-
/**
|
|
6
|
-
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
7
|
-
*
|
|
8
|
-
* These ensure the correct creation of tables and the proper migrations of data when tables change between versions.
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
13
|
-
export declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
|
|
14
|
-
export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
|
|
15
|
-
export declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
16
|
-
export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
1
|
+
import { CreateContacts1659463079429 } from './1-CreateContacts';
|
|
2
|
+
import { CreateIssuanceBranding1659463079429 } from './2-CreateIssuanceBranding';
|
|
3
|
+
import { CreateStatusList1693866470000 } from './4-CreateStatusList';
|
|
4
|
+
import { CreateAuditEvents1701635835330 } from './5-CreateAuditEvents';
|
|
5
|
+
/**
|
|
6
|
+
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
7
|
+
*
|
|
8
|
+
* These ensure the correct creation of tables and the proper migrations of data when tables change between versions.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
13
|
+
export declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
|
|
14
|
+
export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
|
|
15
|
+
export declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
16
|
+
export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|