@sphereon/ssi-sdk.data-store 0.15.2-unstable.26 → 0.15.2-unstable.37
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/entities/statusList2021/StatusList2021Entity.d.ts +19 -0
- package/dist/entities/statusList2021/StatusList2021Entity.d.ts.map +1 -0
- package/dist/entities/statusList2021/StatusList2021Entity.js +115 -0
- package/dist/entities/statusList2021/StatusList2021Entity.js.map +1 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +11 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts.map +1 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js +51 -0
- package/dist/entities/statusList2021/StatusList2021EntryEntity.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/generic/{1-CreateIssuanceBranding.d.ts → 2-CreateIssuanceBranding.d.ts} +1 -1
- package/dist/migrations/generic/{1-CreateIssuanceBranding.d.ts.map → 2-CreateIssuanceBranding.d.ts.map} +1 -1
- package/dist/migrations/generic/{1-CreateIssuanceBranding.js → 2-CreateIssuanceBranding.js} +1 -1
- package/dist/migrations/generic/{1-CreateIssuanceBranding.js.map → 2-CreateIssuanceBranding.js.map} +1 -1
- 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/index.d.ts +5 -0
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +9 -3
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +4 -2
- package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +2 -0
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.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/1693866470000-CreateStatusList.d.ts +7 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts.map +1 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +32 -0
- package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +1 -0
- package/dist/statusList/IStatusListStore.d.ts +20 -0
- package/dist/statusList/IStatusListStore.d.ts.map +1 -0
- package/dist/statusList/IStatusListStore.js +3 -0
- package/dist/statusList/IStatusListStore.js.map +1 -0
- package/dist/statusList/StatusListStore.d.ts +36 -0
- package/dist/statusList/StatusListStore.d.ts.map +1 -0
- package/dist/statusList/StatusListStore.js +213 -0
- package/dist/statusList/StatusListStore.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/statusList/IAbstractStatusListStore.d.ts +38 -0
- package/dist/types/statusList/IAbstractStatusListStore.d.ts.map +1 -0
- package/dist/types/statusList/IAbstractStatusListStore.js +3 -0
- package/dist/types/statusList/IAbstractStatusListStore.js.map +1 -0
- package/dist/types/statusList/statusList.d.ts +25 -0
- package/dist/types/statusList/statusList.d.ts.map +1 -0
- package/dist/types/statusList/statusList.js +3 -0
- package/dist/types/statusList/statusList.js.map +1 -0
- package/package.json +4 -4
- package/src/entities/statusList2021/StatusList2021Entity.ts +95 -0
- package/src/entities/statusList2021/StatusList2021EntryEntity.ts +29 -0
- package/src/index.ts +13 -0
- package/src/migrations/generic/3-CreateStatusList.ts +54 -0
- package/src/migrations/generic/index.ts +10 -2
- package/src/migrations/postgres/1659463079428-CreateContacts.ts +4 -2
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +2 -0
- package/src/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.ts +24 -0
- package/src/migrations/postgres/uuid.ts +12 -0
- package/src/migrations/sqlite/1693866470000-CreateStatusList.ts +24 -0
- package/src/statusList/IStatusListStore.ts +44 -0
- package/src/statusList/StatusListStore.ts +237 -0
- package/src/types/index.ts +2 -0
- package/src/types/statusList/IAbstractStatusListStore.ts +47 -0
- package/src/types/statusList/statusList.ts +39 -0
- /package/src/migrations/generic/{1-CreateIssuanceBranding.ts → 2-CreateIssuanceBranding.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IIssuer, OriginalVerifiableCredential, StatusListCredentialIdMode, StatusListDriverType, StatusListIndexingDirection, StatusListType, StatusPurpose2021 } from '@sphereon/ssi-types';
|
|
2
|
+
import { ProofFormat } from '@veramo/core';
|
|
3
|
+
import { BaseEntity } from 'typeorm';
|
|
4
|
+
import { StatusListEntryEntity } from './StatusList2021EntryEntity';
|
|
5
|
+
export declare class StatusListEntity extends BaseEntity {
|
|
6
|
+
id: string;
|
|
7
|
+
correlationId: string;
|
|
8
|
+
length: number;
|
|
9
|
+
issuer: string | IIssuer;
|
|
10
|
+
type: StatusListType;
|
|
11
|
+
driverType: StatusListDriverType;
|
|
12
|
+
credentialIdMode: StatusListCredentialIdMode;
|
|
13
|
+
proofFormat: ProofFormat;
|
|
14
|
+
indexingDirection: StatusListIndexingDirection;
|
|
15
|
+
statusPurpose: StatusPurpose2021;
|
|
16
|
+
statusListCredential?: OriginalVerifiableCredential;
|
|
17
|
+
statusListEntries: StatusListEntryEntity[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=StatusList2021Entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusList2021Entity.d.ts","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021Entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAoD,MAAM,SAAS,CAAA;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,qBAEa,gBAAiB,SAAQ,UAAU;IAE9C,EAAE,EAAG,MAAM,CAAA;IAGX,aAAa,EAAG,MAAM,CAAA;IAGtB,MAAM,EAAG,MAAM,CAAA;IAsBf,MAAM,EAAG,MAAM,GAAG,OAAO,CAAA;IAGzB,IAAI,EAAG,cAAc,CAAA;IAGrB,UAAU,EAAG,oBAAoB,CAAA;IAQjC,gBAAgB,EAAG,0BAA0B,CAAA;IAG7C,WAAW,EAAG,WAAW,CAAA;IAGzB,iBAAiB,EAAG,2BAA2B,CAAA;IAG/C,aAAa,EAAG,iBAAiB,CAAA;IAsBjC,oBAAoB,CAAC,EAAE,4BAA4B,CAAA;IAGnD,iBAAiB,EAAG,qBAAqB,EAAE,CAAA;CAC5C"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.StatusListEntity = void 0;
|
|
13
|
+
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const StatusList2021EntryEntity_1 = require("./StatusList2021EntryEntity");
|
|
16
|
+
let StatusListEntity = class StatusListEntity extends typeorm_1.BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'id', type: 'varchar' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], StatusListEntity.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'correlationId', type: 'varchar', nullable: false }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], StatusListEntity.prototype, "correlationId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'length', nullable: false, unique: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], StatusListEntity.prototype, "length", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({
|
|
32
|
+
name: 'issuer',
|
|
33
|
+
type: 'text',
|
|
34
|
+
nullable: false,
|
|
35
|
+
unique: false,
|
|
36
|
+
transformer: {
|
|
37
|
+
from(value) {
|
|
38
|
+
var _a;
|
|
39
|
+
if ((_a = value === null || value === void 0 ? void 0 : value.trim()) === null || _a === void 0 ? void 0 : _a.startsWith('{')) {
|
|
40
|
+
return JSON.parse(value);
|
|
41
|
+
}
|
|
42
|
+
return value;
|
|
43
|
+
},
|
|
44
|
+
to(value) {
|
|
45
|
+
if (typeof value === 'string') {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return JSON.stringify(value);
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], StatusListEntity.prototype, "issuer", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'type', enum: ssi_types_1.StatusListType, nullable: false, default: ssi_types_1.StatusListType.StatusList2021 }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], StatusListEntity.prototype, "type", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)('simple-enum', { name: 'driverType', enum: ssi_types_1.StatusListDriverType, nullable: false, default: ssi_types_1.StatusListDriverType.AGENT_TYPEORM }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], StatusListEntity.prototype, "driverType", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)('simple-enum', {
|
|
64
|
+
name: 'credentialIdMode',
|
|
65
|
+
enum: ssi_types_1.StatusListCredentialIdMode,
|
|
66
|
+
nullable: false,
|
|
67
|
+
default: ssi_types_1.StatusListCredentialIdMode.ISSUANCE,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], StatusListEntity.prototype, "credentialIdMode", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'proofFormat', enum: ['lds', 'jwt'], nullable: false, default: 'lds' }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], StatusListEntity.prototype, "proofFormat", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'indexingDirection', enum: ['rightToLeft'], nullable: false, default: 'rightToLeft' }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], StatusListEntity.prototype, "indexingDirection", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', name: 'statusPurpose', nullable: false, default: 'revocation' }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], StatusListEntity.prototype, "statusPurpose", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({
|
|
85
|
+
name: 'statusListCredential',
|
|
86
|
+
type: 'text',
|
|
87
|
+
nullable: true,
|
|
88
|
+
unique: false,
|
|
89
|
+
transformer: {
|
|
90
|
+
from(value) {
|
|
91
|
+
if (value === null || value === void 0 ? void 0 : value.startsWith('ey')) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
return JSON.parse(value);
|
|
95
|
+
},
|
|
96
|
+
to(value) {
|
|
97
|
+
if (typeof value === 'string') {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
return JSON.stringify(value);
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], StatusListEntity.prototype, "statusListCredential", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.OneToMany)((type) => StatusList2021EntryEntity_1.StatusListEntryEntity, (entry) => entry.statusList),
|
|
108
|
+
__metadata("design:type", Array)
|
|
109
|
+
], StatusListEntity.prototype, "statusListEntries", void 0);
|
|
110
|
+
StatusListEntity = __decorate([
|
|
111
|
+
(0, typeorm_1.Entity)('StatusList'),
|
|
112
|
+
(0, typeorm_1.Unique)('UQ_correlationId', ['correlationId'])
|
|
113
|
+
], StatusListEntity);
|
|
114
|
+
exports.StatusListEntity = StatusListEntity;
|
|
115
|
+
//# sourceMappingURL=StatusList2021Entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusList2021Entity.js","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021Entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAQ4B;AAE5B,qCAAsF;AACtF,2EAAmE;AAI5D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;CA+E/C,CAAA;AA9EC;IAAC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CACpC;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDAC9C;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;gDAC5C;AAEf;IAAC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,KAAK;QACb,WAAW,EAAE;YACX,IAAI,CAAC,KAAa;;gBAChB,IAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,0CAAE,UAAU,CAAC,GAAG,CAAC,EAAE;oBAClC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;iBACzB;gBACD,OAAO,KAAK,CAAA;YACd,CAAC;YACD,EAAE,CAAC,KAAuB;gBACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;oBAC7B,OAAO,KAAK,CAAA;iBACb;gBACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YAC9B,CAAC;SACF;KACF,CAAC;;gDACuB;AAEzB;IAAC,IAAA,gBAAM,EAA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,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,KAAK,CAAA;iBACb;gBACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAC1B,CAAC;YACD,EAAE,CAAC,KAAmC;gBACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;oBAC7B,OAAO,KAAK,CAAA;iBACb;gBACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YAC9B,CAAC;SACF;KACF,CAAC;;8DACiD;AAEnD;IAAC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iDAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;;2DAC7B;AA9EhC,gBAAgB;IAF5B,IAAA,gBAAM,EAAC,YAAY,CAAC;IACpB,IAAA,gBAAM,EAAC,kBAAkB,EAAE,CAAC,eAAe,CAAC,CAAC;GACjC,gBAAgB,CA+E5B;AA/EY,4CAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { StatusListEntity } from './StatusList2021Entity';
|
|
3
|
+
export declare class StatusListEntryEntity extends BaseEntity {
|
|
4
|
+
statusList: StatusListEntity;
|
|
5
|
+
statusListIndex: number;
|
|
6
|
+
credentialId?: string;
|
|
7
|
+
credentialHash?: string;
|
|
8
|
+
correlationId?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=StatusList2021EntryEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusList2021EntryEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021EntryEntity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA4C,MAAM,SAAS,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,qBAGa,qBAAsB,SAAQ,UAAU;IAGnD,UAAU,EAAG,gBAAgB,CAAA;IAI7B,eAAe,EAAG,MAAM,CAAA;IAGxB,YAAY,CAAC,EAAE,MAAM,CAAA;IAGrB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.StatusListEntryEntity = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const validators_1 = require("../validators");
|
|
16
|
+
const StatusList2021Entity_1 = require("./StatusList2021Entity");
|
|
17
|
+
let StatusListEntryEntity = class StatusListEntryEntity extends typeorm_1.BaseEntity {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'statusListId', type: 'varchar' }),
|
|
21
|
+
(0, typeorm_1.ManyToOne)(() => StatusList2021Entity_1.StatusListEntity, (statusList) => statusList.statusListEntries),
|
|
22
|
+
__metadata("design:type", StatusList2021Entity_1.StatusListEntity)
|
|
23
|
+
], StatusListEntryEntity.prototype, "statusList", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'statusListIndex', nullable: false, unique: false }),
|
|
26
|
+
(0, class_validator_1.Validate)(validators_1.IsNonEmptyStringConstraint, { message: 'Status list index is required' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], StatusListEntryEntity.prototype, "statusListIndex", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'credentialId', nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StatusListEntryEntity.prototype, "credentialId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'credentialHash', length: 128, nullable: true, unique: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], StatusListEntryEntity.prototype, "credentialHash", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'correlationId', length: 255, nullable: true, unique: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], StatusListEntryEntity.prototype, "correlationId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'value', length: 50, nullable: true, unique: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], StatusListEntryEntity.prototype, "value", void 0);
|
|
45
|
+
StatusListEntryEntity = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)('StatusListEntry')
|
|
47
|
+
// @Unique('uq_credential_statuslist', ['statusList', 'credentialId']) // disabled because one prop can be null
|
|
48
|
+
// @Unique('uq_credentialHash_statuslistId', ['statusList', 'credentialHash']) // disabled because one prop can be null
|
|
49
|
+
], StatusListEntryEntity);
|
|
50
|
+
exports.StatusListEntryEntity = StatusListEntryEntity;
|
|
51
|
+
//# sourceMappingURL=StatusList2021EntryEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusList2021EntryEntity.js","sourceRoot":"","sources":["../../../src/entities/statusList2021/StatusList2021EntryEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAC1C,qCAA8E;AAC9E,8CAA0D;AAC1D,iEAAyD;AAKlD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,oBAAU;CAoBpD,CAAA;AAnBC;IAAC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IACxD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAgB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC;8BACnE,uCAAgB;yDAAA;AAE7B;IAAC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC1E,IAAA,0BAAQ,EAAC,uCAA0B,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;;8DAC3D;AAExB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC5B;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;6DACxD;AAEvB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;4DACxD;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;oDACvD;AAnBH,qBAAqB;IAHjC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;IAC1B,+GAA+G;IAC/G,uHAAuH;GAC1G,qBAAqB,CAoBjC;AApBY,sDAAqB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,13 +15,19 @@ import { ImageDimensionsEntity, imageDimensionsEntityFrom } from './entities/iss
|
|
|
15
15
|
import { IssuerLocaleBrandingEntity, issuerLocaleBrandingEntityFrom } from './entities/issuanceBranding/IssuerLocaleBrandingEntity';
|
|
16
16
|
import { IssuerBrandingEntity, issuerBrandingEntityFrom } from './entities/issuanceBranding/IssuerBrandingEntity';
|
|
17
17
|
import { TextAttributesEntity, textAttributesEntityFrom } from './entities/issuanceBranding/TextAttributesEntity';
|
|
18
|
+
import { StatusListEntity } from './entities/statusList2021/StatusList2021Entity';
|
|
19
|
+
import { StatusListEntryEntity } from './entities/statusList2021/StatusList2021EntryEntity';
|
|
20
|
+
import { IStatusListEntity, IStatusListEntryEntity } from './types';
|
|
18
21
|
export { ContactStore } from './contact/ContactStore';
|
|
19
22
|
export { AbstractContactStore } from './contact/AbstractContactStore';
|
|
20
23
|
export { AbstractIssuanceBrandingStore } from './issuanceBranding/AbstractIssuanceBrandingStore';
|
|
21
24
|
export { IssuanceBrandingStore } from './issuanceBranding/IssuanceBrandingStore';
|
|
25
|
+
export { StatusListStore } from './statusList/StatusListStore';
|
|
22
26
|
export { DataStoreMigrations } from './migrations';
|
|
23
27
|
export * from './types';
|
|
24
28
|
export declare const DataStoreContactEntities: (typeof BaseConfigEntity)[];
|
|
25
29
|
export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity)[];
|
|
26
|
-
export
|
|
30
|
+
export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
|
|
31
|
+
export declare const DataStoreEntities: (typeof BaseConfigEntity | typeof StatusListEntryEntity)[];
|
|
32
|
+
export { BaseConfigEntity, ConnectionEntity, ContactEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, metadataItemEntityFrom, connectionEntityFrom, contactEntityFrom, correlationIdentifierEntityFrom, identityEntityFrom, didAuthConfigEntityFrom, openIdConfigEntityFrom, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, };
|
|
27
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC5F,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACnF,OAAO,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAA;AAC7H,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AACrG,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,M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AU7C,CAAA;AAED,eAAO,MAAM,2BAA2B,4DAA4C,CAAA;AAGpF,eAAO,MAAM,iBAAiB,4DAAsG,CAAA;AAEpI,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,+BAA+B,EAC/B,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,GACtB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.openIdConfigEntityFrom = exports.didAuthConfigEntityFrom = exports.identityEntityFrom = exports.correlationIdentifierEntityFrom = exports.contactEntityFrom = exports.connectionEntityFrom = exports.metadataItemEntityFrom = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.ContactEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMigrations = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
17
|
+
exports.StatusListEntryEntity = exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.openIdConfigEntityFrom = exports.didAuthConfigEntityFrom = exports.identityEntityFrom = exports.correlationIdentifierEntityFrom = exports.contactEntityFrom = exports.connectionEntityFrom = exports.metadataItemEntityFrom = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.ContactEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMigrations = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
18
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
19
19
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
20
20
|
const BaseLocaleBrandingEntity_1 = require("./entities/issuanceBranding/BaseLocaleBrandingEntity");
|
|
@@ -64,6 +64,10 @@ Object.defineProperty(exports, "issuerBrandingEntityFrom", { enumerable: true, g
|
|
|
64
64
|
const TextAttributesEntity_1 = require("./entities/issuanceBranding/TextAttributesEntity");
|
|
65
65
|
Object.defineProperty(exports, "TextAttributesEntity", { enumerable: true, get: function () { return TextAttributesEntity_1.TextAttributesEntity; } });
|
|
66
66
|
Object.defineProperty(exports, "textAttributesEntityFrom", { enumerable: true, get: function () { return TextAttributesEntity_1.textAttributesEntityFrom; } });
|
|
67
|
+
const StatusList2021Entity_1 = require("./entities/statusList2021/StatusList2021Entity");
|
|
68
|
+
Object.defineProperty(exports, "StatusListEntity", { enumerable: true, get: function () { return StatusList2021Entity_1.StatusListEntity; } });
|
|
69
|
+
const StatusList2021EntryEntity_1 = require("./entities/statusList2021/StatusList2021EntryEntity");
|
|
70
|
+
Object.defineProperty(exports, "StatusListEntryEntity", { enumerable: true, get: function () { return StatusList2021EntryEntity_1.StatusListEntryEntity; } });
|
|
67
71
|
var ContactStore_1 = require("./contact/ContactStore");
|
|
68
72
|
Object.defineProperty(exports, "ContactStore", { enumerable: true, get: function () { return ContactStore_1.ContactStore; } });
|
|
69
73
|
var AbstractContactStore_1 = require("./contact/AbstractContactStore");
|
|
@@ -72,6 +76,8 @@ var AbstractIssuanceBrandingStore_1 = require("./issuanceBranding/AbstractIssuan
|
|
|
72
76
|
Object.defineProperty(exports, "AbstractIssuanceBrandingStore", { enumerable: true, get: function () { return AbstractIssuanceBrandingStore_1.AbstractIssuanceBrandingStore; } });
|
|
73
77
|
var IssuanceBrandingStore_1 = require("./issuanceBranding/IssuanceBrandingStore");
|
|
74
78
|
Object.defineProperty(exports, "IssuanceBrandingStore", { enumerable: true, get: function () { return IssuanceBrandingStore_1.IssuanceBrandingStore; } });
|
|
79
|
+
var StatusListStore_1 = require("./statusList/StatusListStore");
|
|
80
|
+
Object.defineProperty(exports, "StatusListStore", { enumerable: true, get: function () { return StatusListStore_1.StatusListStore; } });
|
|
75
81
|
var migrations_1 = require("./migrations");
|
|
76
82
|
Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
|
|
77
83
|
__exportStar(require("./types"), exports);
|
|
@@ -96,4 +102,7 @@ exports.DataStoreIssuanceBrandingEntities = [
|
|
|
96
102
|
CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity,
|
|
97
103
|
IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity,
|
|
98
104
|
];
|
|
105
|
+
exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
|
|
106
|
+
// All entities combined if a party wants to enable them all at once
|
|
107
|
+
exports.DataStoreEntities = [...exports.DataStoreContactEntities, ...exports.DataStoreIssuanceBrandingEntities, ...exports.DataStoreStatusListEntities];
|
|
99
108
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAAsE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAAsE;AA0DpE,iGA1DO,mCAAgB,OA0DP;AAzDlB,mGAA+F;AAqE7F,yGArEO,mDAAwB,OAqEP;AApE1B,0EAA4F;AAyD1F,iGAzDO,mCAAgB,OAyDP;AAiBhB,qGA1EyB,uCAAoB,OA0EzB;AAzEtB,oEAAmF;AAyDjF,8FAzDO,6BAAa,OAyDP;AAiBb,kGA1EsB,iCAAiB,OA0EtB;AAzEnB,gGAA6H;AA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,oBAAoB,OAAA;AAC7B,kGAAgG;AAAvF,8IAAA,6BAA6B,OAAA;AACtC,kFAAgF;AAAvE,8HAAA,qBAAqB,OAAA;AAC9B,gEAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,0CAAuB;AAEV,QAAA,wBAAwB,GAAG;IACtC,mCAAgB;IAChB,mCAAgB;IAChB,6BAAa;IACb,+BAAc;IACd,uDAA0B;IAC1B,yDAA2B;IAC3B,yCAAmB;IACnB,uCAAkB;CACnB,CAAA;AAEY,QAAA,iCAAiC,GAAG;IAC/C,uDAA0B;IAC1B,mDAAwB;IACxB,6CAAqB;IACrB,6CAAqB;IACrB,mDAAwB;IACxB,2CAAoB;IACpB,2CAAoB;IACpB,+DAA8B;IAC9B,uDAA0B;CAC3B,CAAA;AAEY,QAAA,2BAA2B,GAAG,CAAC,uCAAgB,EAAE,iDAAqB,CAAC,CAAA;AAEpF,oEAAoE;AACvD,QAAA,iBAAiB,GAAG,CAAC,GAAG,gCAAwB,EAAE,GAAG,yCAAiC,EAAE,GAAG,mCAA2B,CAAC,CAAA"}
|
package/dist/migrations/generic/{1-CreateIssuanceBranding.d.ts → 2-CreateIssuanceBranding.d.ts}
RENAMED
|
@@ -4,4 +4,4 @@ export declare class CreateIssuanceBranding1659463079429 implements MigrationInt
|
|
|
4
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=2-CreateIssuanceBranding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"2-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3D"}
|
package/dist/migrations/generic/{1-CreateIssuanceBranding.js.map → 2-CreateIssuanceBranding.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"2-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/generic/2-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4GAAsG;AACtG,0GAAoG;AAEpG,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElD,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IA6C9C,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,2EAAmC,EAAE,CAAA;gBACrD,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,cAAc,EAAE;gBAChD,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,2EAAmC,EAAE,CAAA;gBACrD,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,4LAA4L,CAC7L,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,2EAAmC,EAAE,CAAA;gBACrD,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,cAAc,EAAE;gBAChD,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,2EAAmC,EAAE,CAAA;gBACrD,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,4LAA4L,CAC7L,CAAA;aACF;QACH,CAAC;KAAA;CACF;AA9CD,kFA8CC"}
|
|
@@ -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' || 'react-native') {
|
|
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 and postgres. 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' || 'react-native') {
|
|
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 and postgres. 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,KAA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reateContacts';
|
|
2
|
+
import { CreateIssuanceBranding1659463079429 } from './2-CreateIssuanceBranding';
|
|
3
|
+
import { CreateStatusList1693866470000 } from './3-CreateStatusList';
|
|
2
4
|
/**
|
|
3
5
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
4
6
|
*
|
|
@@ -6,5 +8,8 @@ import { CreateContacts1659463079429 } from './1-CreateContacts';
|
|
|
6
8
|
*
|
|
7
9
|
* @public
|
|
8
10
|
*/
|
|
11
|
+
export declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
12
|
+
export declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
|
|
13
|
+
export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
|
|
9
14
|
export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
10
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AAEpE;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAAgC,CAAA;AACvE,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAG5E,eAAO,MAAM,mBAAmB,wCAAoG,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataStoreMigrations = void 0;
|
|
3
|
+
exports.DataStoreMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
|
|
4
4
|
const _1_CreateContacts_1 = require("./1-CreateContacts");
|
|
5
|
-
const
|
|
5
|
+
const _2_CreateIssuanceBranding_1 = require("./2-CreateIssuanceBranding");
|
|
6
|
+
const _3_CreateStatusList_1 = require("./3-CreateStatusList");
|
|
6
7
|
/**
|
|
7
8
|
* The migrations array that SHOULD be used when initializing a TypeORM database connection.
|
|
8
9
|
*
|
|
@@ -10,5 +11,10 @@ const _1_CreateIssuanceBranding_1 = require("./1-CreateIssuanceBranding");
|
|
|
10
11
|
*
|
|
11
12
|
* @public
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
// Individual migrations per purpose. Allows parties to not run migrations and thus create/update tables if they are not using a particular feature (yet)
|
|
15
|
+
exports.DataStoreContactMigrations = [_1_CreateContacts_1.CreateContacts1659463079429];
|
|
16
|
+
exports.DataStoreIssuanceBrandingMigrations = [_2_CreateIssuanceBranding_1.CreateIssuanceBranding1659463079429];
|
|
17
|
+
exports.DataStoreStatusListMigrations = [_3_CreateStatusList_1.CreateStatusList1693866470000];
|
|
18
|
+
// All migrations together
|
|
19
|
+
exports.DataStoreMigrations = [_1_CreateContacts_1.CreateContacts1659463079429, _2_CreateIssuanceBranding_1.CreateIssuanceBranding1659463079429, _3_CreateStatusList_1.CreateStatusList1693866470000];
|
|
14
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;AAChF,8DAAoE;AAEpE;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG,CAAC,+CAA2B,CAAC,CAAA;AAC1D,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAE5E,0BAA0B;AACb,QAAA,mBAAmB,GAAG,CAAC,+CAA2B,EAAE,+DAAmC,EAAE,mDAA6B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1659463079428-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"1659463079428-CreateContacts.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGzD,qBAAa,2BAA4B,YAAW,kBAAkB;IACpE,IAAI,SAAgC;IAEvB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAwC3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAgB3D"}
|
|
@@ -10,19 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateContacts1659463079428 = void 0;
|
|
13
|
+
const uuid_1 = require("./uuid");
|
|
13
14
|
class CreateContacts1659463079428 {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.name = 'CreateContacts1659463079428';
|
|
16
17
|
}
|
|
17
18
|
up(queryRunner) {
|
|
18
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
yield (0, uuid_1.enableUuidv4)(queryRunner);
|
|
19
21
|
yield queryRunner.query(`CREATE TABLE "BaseConfigEntity" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "client_id" character varying(255), "client_secret" character varying(255), "scopes" text, "issuer" character varying(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" character varying(255), "session_id" character varying(255), "type" character varying NOT NULL, "connectionId" uuid, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"), CONSTRAINT "PK_BaseConfigEntity_id" PRIMARY KEY ("id"))`);
|
|
20
22
|
yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
|
|
21
23
|
yield queryRunner.query(`CREATE TYPE "public"."CorrelationIdentifier_type_enum" AS ENUM('did', 'url')`);
|
|
22
24
|
yield queryRunner.query(`CREATE TABLE "CorrelationIdentifier" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "type" "public"."CorrelationIdentifier_type_enum" NOT NULL, "correlation_id" text NOT NULL, "identityId" uuid, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"), CONSTRAINT "PK_CorrelationIdentifier_id" PRIMARY KEY ("id"))`);
|
|
23
|
-
yield queryRunner.query(`CREATE TABLE "Contact" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "name" character varying(255) NOT NULL, "alias" character varying(255) NOT NULL, "uri" character varying(255) NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "UQ_Name" UNIQUE ("name"), CONSTRAINT "
|
|
25
|
+
yield queryRunner.query(`CREATE TABLE "Contact" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "name" character varying(255) NOT NULL, "alias" character varying(255) NOT NULL, "uri" character varying(255) NOT NULL, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "UQ_Name" UNIQUE ("name"), CONSTRAINT "UQ_Contact_Alias" UNIQUE ("alias"), CONSTRAINT "PK_Contact_id" PRIMARY KEY ("id"))`);
|
|
24
26
|
yield queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "label" character varying(255) NOT NULL, "value" character varying(255) NOT NULL, "identityId" uuid, CONSTRAINT "PK_IdentityMetadata_id" PRIMARY KEY ("id"))`);
|
|
25
|
-
yield queryRunner.query(`CREATE TABLE "Identity" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "alias" character varying(255) NOT NULL, "roles" text, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), "contactId" uuid, CONSTRAINT "
|
|
27
|
+
yield queryRunner.query(`CREATE TABLE "Identity" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "alias" character varying(255) NOT NULL, "roles" text, "created_at" TIMESTAMP NOT NULL DEFAULT now(), "last_updated_at" TIMESTAMP NOT NULL DEFAULT now(), "contactId" uuid, CONSTRAINT "UQ_Identity_Alias" UNIQUE ("alias"), CONSTRAINT "PK_Identity_id" PRIMARY KEY ("id"))`);
|
|
26
28
|
yield queryRunner.query(`CREATE TYPE "public"."Connection_type_enum" AS ENUM('OIDC', 'SIOPv2', 'SIOPv2+OpenID4VP')`);
|
|
27
29
|
yield queryRunner.query(`CREATE TABLE "Connection" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "type" "public"."Connection_type_enum" NOT NULL, "identityId" uuid, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"), CONSTRAINT "PK_Connection_id" PRIMARY KEY ("id"))`);
|
|
28
30
|
yield queryRunner.query(`ALTER TABLE "BaseConfigEntity" ADD CONSTRAINT "FK_BaseConfig_connectionId" FOREIGN KEY ("connectionId") REFERENCES "Connection"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1659463079428-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"1659463079428-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAqC;AAErC,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IA0DtC,CAAC;IAxDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,mBAAY,EAAC,WAAW,CAAC,CAAA;YAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,6iBAA6iB,CAC9iB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAA;YAClG,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAA;YACvG,MAAM,WAAW,CAAC,KAAK,CACrB,qYAAqY,CACtY,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,waAAwa,CACza,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,8OAA8O,CAC/O,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,sVAAsV,CACvV,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CAAC,KAAK,CACrB,+PAA+P,CAChQ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,uLAAuL,CACxL,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6KAA6K,CAC9K,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,0JAA0J,CAC3J,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,iKAAiK,CAClK,CAAA;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAA;YAC9F,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAA;YACzF,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;YAC1G,MAAM,WAAW,CAAC,KAAK,CAAC,2FAA2F,CAAC,CAAA;YACpH,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAA;YACtG,MAAM,WAAW,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAA;YAClD,MAAM,WAAW,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAA;YACpE,MAAM,WAAW,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;YAChD,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;YACxD,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;YAC/C,MAAM,WAAW,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAA;YAC7D,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAA;YAC/E,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAA;YAC1E,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;QAC1D,CAAC;KAAA;CACF;AA3DD,kEA2DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628974232-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"1685628974232-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAwD3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAsB3D"}
|
|
@@ -10,12 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateIssuanceBranding1685628974232 = void 0;
|
|
13
|
+
const uuid_1 = require("./uuid");
|
|
13
14
|
class CreateIssuanceBranding1685628974232 {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.name = 'CreateIssuanceBranding1685628974232';
|
|
16
17
|
}
|
|
17
18
|
up(queryRunner) {
|
|
18
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
yield (0, uuid_1.enableUuidv4)(queryRunner);
|
|
19
21
|
yield queryRunner.query(`CREATE TABLE "ImageDimensions" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "width" integer NOT NULL, "height" integer NOT NULL, CONSTRAINT "PK_ImageDimensions_id" PRIMARY KEY ("id"))`);
|
|
20
22
|
yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "uri" character varying(255), "dataUri" character varying(255), "mediaType" character varying(255), "alt" character varying(255), "dimensionsId" uuid, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"), CONSTRAINT "PK_ImageAttributes_id" PRIMARY KEY ("id"))`);
|
|
21
23
|
yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "color" character varying(255), "imageId" uuid, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"), CONSTRAINT "PK_BackgroundAttributes_id" PRIMARY KEY ("id"))`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAqC;AAErC,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAgF9C,CAAC;IA9Ec,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,mBAAY,EAAC,WAAW,CAAC,CAAA;YAC/B,MAAM,WAAW,CAAC,KAAK,CACrB,4LAA4L,CAC7L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,oVAAoV,CACrV,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6OAA6O,CAC9O,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,qKAAqK,CACtK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,snBAAsnB,CACvnB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,+IAA+I,CAChJ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mIAAmI,CACpI,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAA;YACtG,MAAM,WAAW,CAAC,KAAK,CACrB,2XAA2X,CAC5X,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,iHAAiH,CAAC,CAAA;YAC1I,MAAM,WAAW,CAAC,KAAK,CAAC,uFAAuF,CAAC,CAAA;YAChH,MAAM,WAAW,CAAC,KAAK,CACrB,mWAAmW,CACpW,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yGAAyG,CAAC,CAAA;YAClI,MAAM,WAAW,CAA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C,KAAK,CAAC,4GAA4G,CAAC,CAAA;YACrI,MAAM,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;YAC1D,MAAM,WAAW,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAA;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;YACvD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACzD,CAAC;KAAA;CACF;AAjFD,kFAiFC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class CreateStatusList1693866470001 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CreateStatusList1693866470001-CreateStatusList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateStatusList1693866470001-CreateStatusList.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,6BAA8B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAC3D"}
|