@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.45.94 → 0.34.1-feature.SSISDK.46.151
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/index.cjs +299 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +299 -123
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/__tests__/contact.entities.test.ts +2 -2
- package/src/__tests__/contact.store.test.ts +1 -1
- package/src/__tests__/digitalCredential.entities.test.ts +2 -1
- package/src/__tests__/digitalCredential.store.test.ts +5 -5
- package/src/__tests__/pd-manager.entities.test.ts +14 -37
- package/src/__tests__/pd-manager.store.test.ts +133 -0
- package/src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts +1 -1
- package/src/migrations/generic/12-CreateBitstringStatusList.ts +1 -0
- package/src/migrations/generic/13-UpdatePresentationDefinitionItemNullable.ts +67 -0
- package/src/migrations/generic/index.ts +5 -1
- package/src/migrations/postgres/1756975509000-UpdatePresentationDefinitionItemNullable.ts +15 -0
- package/src/migrations/sqlite/1756975340000-UpdatePresentationDefinitionItemNullable.ts +77 -0
- package/src/presentationDefinition/PDStore.ts +6 -1
- package/src/types/presentationDefinition/presentationDefinition.ts +3 -3
- package/src/utils/presentationDefinition/MappingUtils.ts +39 -10
package/dist/index.cjs
CHANGED
|
@@ -173,55 +173,55 @@ var import_typeorm12 = __toESM(require("typeorm"), 1);
|
|
|
173
173
|
var import_typeorm11 = __toESM(require("typeorm"), 1);
|
|
174
174
|
|
|
175
175
|
// src/types/contact/contact.ts
|
|
176
|
-
var ConnectionType = /* @__PURE__ */ function(ConnectionType2) {
|
|
176
|
+
var ConnectionType = /* @__PURE__ */ (function(ConnectionType2) {
|
|
177
177
|
ConnectionType2["OPENID_CONNECT"] = "OIDC";
|
|
178
178
|
ConnectionType2["SIOPv2"] = "SIOPv2";
|
|
179
179
|
ConnectionType2["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
|
|
180
180
|
return ConnectionType2;
|
|
181
|
-
}({});
|
|
182
|
-
var CorrelationIdentifierType = /* @__PURE__ */ function(CorrelationIdentifierType2) {
|
|
181
|
+
})({});
|
|
182
|
+
var CorrelationIdentifierType = /* @__PURE__ */ (function(CorrelationIdentifierType2) {
|
|
183
183
|
CorrelationIdentifierType2["DID"] = "did";
|
|
184
184
|
CorrelationIdentifierType2["URL"] = "url";
|
|
185
185
|
return CorrelationIdentifierType2;
|
|
186
|
-
}({});
|
|
187
|
-
var PartyTypeType = /* @__PURE__ */ function(PartyTypeType2) {
|
|
186
|
+
})({});
|
|
187
|
+
var PartyTypeType = /* @__PURE__ */ (function(PartyTypeType2) {
|
|
188
188
|
PartyTypeType2["NATURAL_PERSON"] = "naturalPerson";
|
|
189
189
|
PartyTypeType2["ORGANIZATION"] = "organization";
|
|
190
190
|
return PartyTypeType2;
|
|
191
|
-
}({});
|
|
192
|
-
var PartyOrigin = /* @__PURE__ */ function(PartyOrigin2) {
|
|
191
|
+
})({});
|
|
192
|
+
var PartyOrigin = /* @__PURE__ */ (function(PartyOrigin2) {
|
|
193
193
|
PartyOrigin2["INTERNAL"] = "INTERNAL";
|
|
194
194
|
PartyOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
195
195
|
return PartyOrigin2;
|
|
196
|
-
}({});
|
|
197
|
-
var IdentityOrigin = /* @__PURE__ */ function(IdentityOrigin2) {
|
|
196
|
+
})({});
|
|
197
|
+
var IdentityOrigin = /* @__PURE__ */ (function(IdentityOrigin2) {
|
|
198
198
|
IdentityOrigin2["INTERNAL"] = "INTERNAL";
|
|
199
199
|
IdentityOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
200
200
|
return IdentityOrigin2;
|
|
201
|
-
}({});
|
|
201
|
+
})({});
|
|
202
202
|
|
|
203
203
|
// src/types/digitalCredential/enums.ts
|
|
204
|
-
var DocumentType = /* @__PURE__ */ function(DocumentType2) {
|
|
204
|
+
var DocumentType = /* @__PURE__ */ (function(DocumentType2) {
|
|
205
205
|
DocumentType2["VC"] = "VC";
|
|
206
206
|
DocumentType2["VP"] = "VP";
|
|
207
207
|
DocumentType2["P"] = "P";
|
|
208
208
|
DocumentType2["C"] = "C";
|
|
209
209
|
return DocumentType2;
|
|
210
|
-
}({});
|
|
211
|
-
var RegulationType = /* @__PURE__ */ function(RegulationType2) {
|
|
210
|
+
})({});
|
|
211
|
+
var RegulationType = /* @__PURE__ */ (function(RegulationType2) {
|
|
212
212
|
RegulationType2["PID"] = "PID";
|
|
213
213
|
RegulationType2["QEAA"] = "QEAA";
|
|
214
214
|
RegulationType2["EAA"] = "EAA";
|
|
215
215
|
RegulationType2["NON_REGULATED"] = "NON_REGULATED";
|
|
216
216
|
return RegulationType2;
|
|
217
|
-
}({});
|
|
218
|
-
var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat2) {
|
|
217
|
+
})({});
|
|
218
|
+
var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentFormat2) {
|
|
219
219
|
CredentialDocumentFormat2["JSON_LD"] = "JSON_LD";
|
|
220
220
|
CredentialDocumentFormat2["JWT"] = "JWT";
|
|
221
221
|
CredentialDocumentFormat2["SD_JWT"] = "SD_JWT";
|
|
222
222
|
CredentialDocumentFormat2["MSO_MDOC"] = "MSO_MDOC";
|
|
223
223
|
return CredentialDocumentFormat2;
|
|
224
|
-
}({});
|
|
224
|
+
})({});
|
|
225
225
|
(function(CredentialDocumentFormat2) {
|
|
226
226
|
function fromSpecValue(credentialFormat) {
|
|
227
227
|
const format = credentialFormat.toLowerCase();
|
|
@@ -254,19 +254,19 @@ var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat
|
|
|
254
254
|
__name(toSpecValue, "toSpecValue");
|
|
255
255
|
CredentialDocumentFormat2.toSpecValue = toSpecValue;
|
|
256
256
|
})(CredentialDocumentFormat || (CredentialDocumentFormat = {}));
|
|
257
|
-
var CredentialCorrelationType = /* @__PURE__ */ function(CredentialCorrelationType2) {
|
|
257
|
+
var CredentialCorrelationType = /* @__PURE__ */ (function(CredentialCorrelationType2) {
|
|
258
258
|
CredentialCorrelationType2["DID"] = "DID";
|
|
259
259
|
CredentialCorrelationType2["X509_SAN"] = "X509_SAN";
|
|
260
260
|
CredentialCorrelationType2["KID"] = "KID";
|
|
261
261
|
CredentialCorrelationType2["URL"] = "URL";
|
|
262
262
|
return CredentialCorrelationType2;
|
|
263
|
-
}({});
|
|
264
|
-
var CredentialStateType = /* @__PURE__ */ function(CredentialStateType2) {
|
|
263
|
+
})({});
|
|
264
|
+
var CredentialStateType = /* @__PURE__ */ (function(CredentialStateType2) {
|
|
265
265
|
CredentialStateType2["REVOKED"] = "REVOKED";
|
|
266
266
|
CredentialStateType2["VERIFIED"] = "VERIFIED";
|
|
267
267
|
CredentialStateType2["EXPIRED"] = "EXPIRED";
|
|
268
268
|
return CredentialStateType2;
|
|
269
|
-
}({});
|
|
269
|
+
})({});
|
|
270
270
|
|
|
271
271
|
// src/entities/contact/IdentityEntity.ts
|
|
272
272
|
var import_typeorm10 = require("typeorm");
|
|
@@ -4285,7 +4285,7 @@ _ts_decorate34([
|
|
|
4285
4285
|
(0, import_typeorm33.Column)({
|
|
4286
4286
|
name: "definition_payload",
|
|
4287
4287
|
type: "text",
|
|
4288
|
-
nullable:
|
|
4288
|
+
nullable: true,
|
|
4289
4289
|
unique: false
|
|
4290
4290
|
}),
|
|
4291
4291
|
(0, import_class_validator21.IsNotEmpty)({
|
|
@@ -6937,6 +6937,7 @@ var import_typeorm39 = require("typeorm");
|
|
|
6937
6937
|
var import_debug7 = __toESM(require("debug"), 1);
|
|
6938
6938
|
|
|
6939
6939
|
// src/utils/presentationDefinition/MappingUtils.ts
|
|
6940
|
+
var import_dcql = require("dcql");
|
|
6940
6941
|
var blakepkg = __toESM(require("blakejs"), 1);
|
|
6941
6942
|
var presentationDefinitionItemFrom = /* @__PURE__ */ __name((entity) => {
|
|
6942
6943
|
const result = {
|
|
@@ -6947,10 +6948,20 @@ var presentationDefinitionItemFrom = /* @__PURE__ */ __name((entity) => {
|
|
|
6947
6948
|
name: entity.name,
|
|
6948
6949
|
purpose: entity.purpose,
|
|
6949
6950
|
definitionPayload: JSON.parse(entity.definitionPayload),
|
|
6950
|
-
|
|
6951
|
+
...entity.dcqlPayload && {
|
|
6952
|
+
dcqlPayload: {
|
|
6953
|
+
queryId: entity.definitionId,
|
|
6954
|
+
name: entity.name,
|
|
6955
|
+
defaultPurpose: entity.purpose,
|
|
6956
|
+
dcqlQuery: import_dcql.DcqlQuery.parse(JSON.parse(entity.dcqlPayload))
|
|
6957
|
+
}
|
|
6958
|
+
},
|
|
6951
6959
|
createdAt: entity.createdAt,
|
|
6952
6960
|
lastUpdatedAt: entity.lastUpdatedAt
|
|
6953
6961
|
};
|
|
6962
|
+
if (result.dcqlPayload?.dcqlQuery) {
|
|
6963
|
+
import_dcql.DcqlQuery.validate(result.dcqlPayload?.dcqlQuery);
|
|
6964
|
+
}
|
|
6954
6965
|
return replaceNullWithUndefined(result);
|
|
6955
6966
|
}, "presentationDefinitionItemFrom");
|
|
6956
6967
|
var presentationDefinitionEntityItemFrom = /* @__PURE__ */ __name((item) => {
|
|
@@ -6960,8 +6971,14 @@ var presentationDefinitionEntityItemFrom = /* @__PURE__ */ __name((item) => {
|
|
|
6960
6971
|
entity.version = item.version;
|
|
6961
6972
|
entity.name = item.name;
|
|
6962
6973
|
entity.purpose = item.purpose;
|
|
6963
|
-
|
|
6964
|
-
|
|
6974
|
+
if (item.definitionPayload) {
|
|
6975
|
+
entity.definitionPayload = JSON.stringify(item.definitionPayload);
|
|
6976
|
+
}
|
|
6977
|
+
if (item.dcqlPayload) {
|
|
6978
|
+
const dcqlQuery = import_dcql.DcqlQuery.parse(item.dcqlPayload.dcqlQuery);
|
|
6979
|
+
import_dcql.DcqlQuery.validate(dcqlQuery);
|
|
6980
|
+
entity.dcqlPayload = JSON.stringify(item.dcqlPayload.dcqlQuery);
|
|
6981
|
+
}
|
|
6965
6982
|
return entity;
|
|
6966
6983
|
}, "presentationDefinitionEntityItemFrom");
|
|
6967
6984
|
function hashPayload(payload) {
|
|
@@ -6969,13 +6986,24 @@ function hashPayload(payload) {
|
|
|
6969
6986
|
}
|
|
6970
6987
|
__name(hashPayload, "hashPayload");
|
|
6971
6988
|
function isPresentationDefinitionEqual(base, compare) {
|
|
6972
|
-
if (base.definitionId !== compare.definitionId || base.tenantId
|
|
6989
|
+
if (base.definitionId !== compare.definitionId || base.tenantId !== compare.tenantId || base.version !== compare.version || base.name !== compare.name || base.purpose !== compare.purpose) {
|
|
6990
|
+
return false;
|
|
6991
|
+
}
|
|
6992
|
+
if (base.dcqlPayload && compare.dcqlPayload) {
|
|
6993
|
+
if (hashPayload(base.dcqlPayload) !== hashPayload(compare.dcqlPayload)) {
|
|
6994
|
+
return false;
|
|
6995
|
+
}
|
|
6996
|
+
} else if (base.dcqlPayload || compare.dcqlPayload) {
|
|
6973
6997
|
return false;
|
|
6974
6998
|
}
|
|
6975
6999
|
if (base.definitionPayload && compare.definitionPayload) {
|
|
6976
|
-
|
|
7000
|
+
if (hashPayload(base.definitionPayload) !== hashPayload(compare.definitionPayload)) {
|
|
7001
|
+
return false;
|
|
7002
|
+
}
|
|
7003
|
+
} else if (base.definitionPayload || compare.definitionPayload) {
|
|
7004
|
+
return false;
|
|
6977
7005
|
}
|
|
6978
|
-
return
|
|
7006
|
+
return true;
|
|
6979
7007
|
}
|
|
6980
7008
|
__name(isPresentationDefinitionEqual, "isPresentationDefinitionEqual");
|
|
6981
7009
|
|
|
@@ -7064,7 +7092,12 @@ var PDStore = class extends AbstractPDStore {
|
|
|
7064
7092
|
updatedEntity.version = item.version;
|
|
7065
7093
|
updatedEntity.name = item.name;
|
|
7066
7094
|
updatedEntity.purpose = item.purpose;
|
|
7067
|
-
|
|
7095
|
+
if (item.definitionPayload) {
|
|
7096
|
+
updatedEntity.definitionPayload = JSON.stringify(item.definitionPayload);
|
|
7097
|
+
}
|
|
7098
|
+
if (item.dcqlPayload) {
|
|
7099
|
+
updatedEntity.dcqlPayload = JSON.stringify(item.dcqlPayload.dcqlQuery);
|
|
7100
|
+
}
|
|
7068
7101
|
debug7("Updating presentation definition entity", updatedEntity);
|
|
7069
7102
|
const updateResult = await pdRepository.save(updatedEntity, {
|
|
7070
7103
|
transaction: true
|
|
@@ -7940,21 +7973,105 @@ var CreateBitstringStatusList1741895823000 = class {
|
|
|
7940
7973
|
}
|
|
7941
7974
|
};
|
|
7942
7975
|
|
|
7943
|
-
// src/migrations/generic/
|
|
7976
|
+
// src/migrations/generic/13-UpdatePresentationDefinitionItemNullable.ts
|
|
7944
7977
|
var import_debug12 = __toESM(require("debug"), 1);
|
|
7978
|
+
|
|
7979
|
+
// src/migrations/postgres/1756975509000-UpdatePresentationDefinitionItemNullable.ts
|
|
7980
|
+
var UpdatePresentationDefinitionItemNullablePG1741895824000 = class {
|
|
7981
|
+
static {
|
|
7982
|
+
__name(this, "UpdatePresentationDefinitionItemNullablePG1741895824000");
|
|
7983
|
+
}
|
|
7984
|
+
name = "UpdatePresentationDefinitionItemNullable1741895824000";
|
|
7985
|
+
async up(queryRunner) {
|
|
7986
|
+
await queryRunner.query(`ALTER TABLE "PresentationDefinitionItem" ALTER COLUMN "definition_payload" DROP NOT NULL`);
|
|
7987
|
+
}
|
|
7988
|
+
async down(queryRunner) {
|
|
7989
|
+
await queryRunner.query(`ALTER TABLE "PresentationDefinitionItem" ALTER COLUMN "definition_payload" SET NOT NULL`);
|
|
7990
|
+
}
|
|
7991
|
+
};
|
|
7992
|
+
|
|
7993
|
+
// src/migrations/sqlite/1756975340000-UpdatePresentationDefinitionItemNullable.ts
|
|
7994
|
+
var UpdatePresentationDefinitionItemNullableSqlite1756975340000 = class {
|
|
7995
|
+
static {
|
|
7996
|
+
__name(this, "UpdatePresentationDefinitionItemNullableSqlite1756975340000");
|
|
7997
|
+
}
|
|
7998
|
+
name = "UpdatePresentationDefinitionItemNullable1756975340000";
|
|
7999
|
+
async up(queryRunner) {
|
|
8000
|
+
await queryRunner.query(`
|
|
8001
|
+
CREATE TABLE "temporary_PresentationDefinitionItem" (
|
|
8002
|
+
"id" varchar PRIMARY KEY NOT NULL,
|
|
8003
|
+
"definition_id" varchar(255) NOT NULL,
|
|
8004
|
+
"version" varchar(255) NOT NULL,
|
|
8005
|
+
"tenant_id" varchar(255),
|
|
8006
|
+
"purpose" varchar(255),
|
|
8007
|
+
"name" varchar(255),
|
|
8008
|
+
"definition_payload" text,
|
|
8009
|
+
"dcql_payload" text,
|
|
8010
|
+
"created_at" datetime NOT NULL DEFAULT (datetime('now')),
|
|
8011
|
+
"last_updated_at" datetime NOT NULL DEFAULT (datetime('now')),
|
|
8012
|
+
CONSTRAINT "UQ_PresentationDefinitionItem_definition_id_version" UNIQUE ("definition_id", "version")
|
|
8013
|
+
)
|
|
8014
|
+
`);
|
|
8015
|
+
await queryRunner.query(`
|
|
8016
|
+
INSERT INTO "temporary_PresentationDefinitionItem"(
|
|
8017
|
+
"id", "definition_id", "version", "tenant_id", "purpose", "name",
|
|
8018
|
+
"definition_payload", "dcql_payload", "created_at", "last_updated_at"
|
|
8019
|
+
)
|
|
8020
|
+
SELECT
|
|
8021
|
+
"id", "definition_id", "version", "tenant_id", "purpose", "name",
|
|
8022
|
+
"definition_payload", "dcql_payload", "created_at", "last_updated_at"
|
|
8023
|
+
FROM "PresentationDefinitionItem"
|
|
8024
|
+
`);
|
|
8025
|
+
await queryRunner.query(`DROP TABLE "PresentationDefinitionItem"`);
|
|
8026
|
+
await queryRunner.query(`ALTER TABLE "temporary_PresentationDefinitionItem" RENAME TO "PresentationDefinitionItem"`);
|
|
8027
|
+
await queryRunner.query(`CREATE INDEX "IDX_PresentationDefinitionItem_version" ON "PresentationDefinitionItem" ("version")`);
|
|
8028
|
+
}
|
|
8029
|
+
async down(queryRunner) {
|
|
8030
|
+
await queryRunner.query(`
|
|
8031
|
+
CREATE TABLE "temporary_PresentationDefinitionItem" (
|
|
8032
|
+
"id" varchar PRIMARY KEY NOT NULL,
|
|
8033
|
+
"definition_id" varchar(255) NOT NULL,
|
|
8034
|
+
"version" varchar(255) NOT NULL,
|
|
8035
|
+
"tenant_id" varchar(255),
|
|
8036
|
+
"purpose" varchar(255),
|
|
8037
|
+
"name" varchar(255),
|
|
8038
|
+
"definition_payload" text NOT NULL,
|
|
8039
|
+
"dcql_payload" text,
|
|
8040
|
+
"created_at" datetime NOT NULL DEFAULT (datetime('now')),
|
|
8041
|
+
"last_updated_at" datetime NOT NULL DEFAULT (datetime('now')),
|
|
8042
|
+
CONSTRAINT "UQ_PresentationDefinitionItem_definition_id_version" UNIQUE ("definition_id", "version")
|
|
8043
|
+
)
|
|
8044
|
+
`);
|
|
8045
|
+
await queryRunner.query(`
|
|
8046
|
+
INSERT INTO "temporary_PresentationDefinitionItem"(
|
|
8047
|
+
"id", "definition_id", "version", "tenant_id", "purpose", "name",
|
|
8048
|
+
"definition_payload", "dcql_payload", "created_at", "last_updated_at"
|
|
8049
|
+
)
|
|
8050
|
+
SELECT
|
|
8051
|
+
"id", "definition_id", "version", "tenant_id", "purpose", "name",
|
|
8052
|
+
"definition_payload", "dcql_payload", "created_at", "last_updated_at"
|
|
8053
|
+
FROM "PresentationDefinitionItem"
|
|
8054
|
+
`);
|
|
8055
|
+
await queryRunner.query(`DROP TABLE "PresentationDefinitionItem"`);
|
|
8056
|
+
await queryRunner.query(`ALTER TABLE "temporary_PresentationDefinitionItem" RENAME TO "PresentationDefinitionItem"`);
|
|
8057
|
+
await queryRunner.query(`CREATE INDEX "IDX_PresentationDefinitionItem_version" ON "PresentationDefinitionItem" ("version")`);
|
|
8058
|
+
}
|
|
8059
|
+
};
|
|
8060
|
+
|
|
8061
|
+
// src/migrations/generic/13-UpdatePresentationDefinitionItemNullable.ts
|
|
7945
8062
|
var debug12 = (0, import_debug12.default)("sphereon:ssi-sdk:migrations");
|
|
7946
|
-
var
|
|
8063
|
+
var UpdatePresentationDefinitionItemNullable1741895824000 = class {
|
|
7947
8064
|
static {
|
|
7948
|
-
__name(this, "
|
|
8065
|
+
__name(this, "UpdatePresentationDefinitionItemNullable1741895824000");
|
|
7949
8066
|
}
|
|
7950
|
-
name = "
|
|
8067
|
+
name = "UpdatePresentationDefinitionItemNullable1741895824000";
|
|
7951
8068
|
async up(queryRunner) {
|
|
7952
|
-
debug12("migration:
|
|
8069
|
+
debug12("migration: updating presentation definition item nullable fields");
|
|
7953
8070
|
const dbType = queryRunner.connection.driver.options.type;
|
|
7954
8071
|
switch (dbType) {
|
|
7955
8072
|
case "postgres": {
|
|
7956
8073
|
debug12("using postgres migration file");
|
|
7957
|
-
const mig = new
|
|
8074
|
+
const mig = new UpdatePresentationDefinitionItemNullablePG1741895824000();
|
|
7958
8075
|
await mig.up(queryRunner);
|
|
7959
8076
|
debug12("Migration statements executed");
|
|
7960
8077
|
return;
|
|
@@ -7963,7 +8080,7 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
7963
8080
|
case "expo":
|
|
7964
8081
|
case "react-native": {
|
|
7965
8082
|
debug12("using sqlite/react-native migration file");
|
|
7966
|
-
const mig = new
|
|
8083
|
+
const mig = new UpdatePresentationDefinitionItemNullableSqlite1756975340000();
|
|
7967
8084
|
await mig.up(queryRunner);
|
|
7968
8085
|
debug12("Migration statements executed");
|
|
7969
8086
|
return;
|
|
@@ -7973,12 +8090,12 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
7973
8090
|
}
|
|
7974
8091
|
}
|
|
7975
8092
|
async down(queryRunner) {
|
|
7976
|
-
debug12("migration: reverting
|
|
8093
|
+
debug12("migration: reverting presentation definition item nullable fields");
|
|
7977
8094
|
const dbType = queryRunner.connection.driver.options.type;
|
|
7978
8095
|
switch (dbType) {
|
|
7979
8096
|
case "postgres": {
|
|
7980
8097
|
debug12("using postgres migration file");
|
|
7981
|
-
const mig = new
|
|
8098
|
+
const mig = new UpdatePresentationDefinitionItemNullablePG1741895824000();
|
|
7982
8099
|
await mig.down(queryRunner);
|
|
7983
8100
|
debug12("Migration statements executed");
|
|
7984
8101
|
return;
|
|
@@ -7987,7 +8104,7 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
7987
8104
|
case "expo":
|
|
7988
8105
|
case "react-native": {
|
|
7989
8106
|
debug12("using sqlite/react-native migration file");
|
|
7990
|
-
const mig = new
|
|
8107
|
+
const mig = new UpdatePresentationDefinitionItemNullableSqlite1756975340000();
|
|
7991
8108
|
await mig.down(queryRunner);
|
|
7992
8109
|
debug12("Migration statements executed");
|
|
7993
8110
|
return;
|
|
@@ -7998,8 +8115,66 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
7998
8115
|
}
|
|
7999
8116
|
};
|
|
8000
8117
|
|
|
8001
|
-
// src/migrations/generic/
|
|
8118
|
+
// src/migrations/generic/2-CreateIssuanceBranding.ts
|
|
8002
8119
|
var import_debug13 = __toESM(require("debug"), 1);
|
|
8120
|
+
var debug13 = (0, import_debug13.default)("sphereon:ssi-sdk:migrations");
|
|
8121
|
+
var CreateIssuanceBranding1659463079429 = class {
|
|
8122
|
+
static {
|
|
8123
|
+
__name(this, "CreateIssuanceBranding1659463079429");
|
|
8124
|
+
}
|
|
8125
|
+
name = "CreateIssuanceBranding1659463079429";
|
|
8126
|
+
async up(queryRunner) {
|
|
8127
|
+
debug13("migration: creating issuance branding tables");
|
|
8128
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
8129
|
+
switch (dbType) {
|
|
8130
|
+
case "postgres": {
|
|
8131
|
+
debug13("using postgres migration file");
|
|
8132
|
+
const mig = new CreateIssuanceBranding1685628974232();
|
|
8133
|
+
await mig.up(queryRunner);
|
|
8134
|
+
debug13("Migration statements executed");
|
|
8135
|
+
return;
|
|
8136
|
+
}
|
|
8137
|
+
case "sqlite":
|
|
8138
|
+
case "expo":
|
|
8139
|
+
case "react-native": {
|
|
8140
|
+
debug13("using sqlite/react-native migration file");
|
|
8141
|
+
const mig = new CreateIssuanceBranding1685628973231();
|
|
8142
|
+
await mig.up(queryRunner);
|
|
8143
|
+
debug13("Migration statements executed");
|
|
8144
|
+
return;
|
|
8145
|
+
}
|
|
8146
|
+
default:
|
|
8147
|
+
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`);
|
|
8148
|
+
}
|
|
8149
|
+
}
|
|
8150
|
+
async down(queryRunner) {
|
|
8151
|
+
debug13("migration: reverting issuance branding tables");
|
|
8152
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
8153
|
+
switch (dbType) {
|
|
8154
|
+
case "postgres": {
|
|
8155
|
+
debug13("using postgres migration file");
|
|
8156
|
+
const mig = new CreateIssuanceBranding1685628974232();
|
|
8157
|
+
await mig.down(queryRunner);
|
|
8158
|
+
debug13("Migration statements executed");
|
|
8159
|
+
return;
|
|
8160
|
+
}
|
|
8161
|
+
case "sqlite":
|
|
8162
|
+
case "expo":
|
|
8163
|
+
case "react-native": {
|
|
8164
|
+
debug13("using sqlite/react-native migration file");
|
|
8165
|
+
const mig = new CreateIssuanceBranding1685628973231();
|
|
8166
|
+
await mig.down(queryRunner);
|
|
8167
|
+
debug13("Migration statements executed");
|
|
8168
|
+
return;
|
|
8169
|
+
}
|
|
8170
|
+
default:
|
|
8171
|
+
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`);
|
|
8172
|
+
}
|
|
8173
|
+
}
|
|
8174
|
+
};
|
|
8175
|
+
|
|
8176
|
+
// src/migrations/generic/3-CreateContacts.ts
|
|
8177
|
+
var import_debug14 = __toESM(require("debug"), 1);
|
|
8003
8178
|
|
|
8004
8179
|
// src/migrations/sqlite/1690925872693-CreateContacts.ts
|
|
8005
8180
|
var CreateContacts1690925872693 = class {
|
|
@@ -8220,30 +8395,30 @@ var CreateContacts1690925872592 = class {
|
|
|
8220
8395
|
};
|
|
8221
8396
|
|
|
8222
8397
|
// src/migrations/generic/3-CreateContacts.ts
|
|
8223
|
-
var
|
|
8398
|
+
var debug14 = (0, import_debug14.default)("sphereon:ssi-sdk:migrations");
|
|
8224
8399
|
var CreateContacts1690925872318 = class {
|
|
8225
8400
|
static {
|
|
8226
8401
|
__name(this, "CreateContacts1690925872318");
|
|
8227
8402
|
}
|
|
8228
8403
|
name = "CreateContacts1690925872318";
|
|
8229
8404
|
async up(queryRunner) {
|
|
8230
|
-
|
|
8405
|
+
debug14("migration: creating contacts tables");
|
|
8231
8406
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8232
8407
|
switch (dbType) {
|
|
8233
8408
|
case "postgres": {
|
|
8234
|
-
|
|
8409
|
+
debug14("using postgres migration file");
|
|
8235
8410
|
const mig = new CreateContacts1690925872592();
|
|
8236
8411
|
await mig.up(queryRunner);
|
|
8237
|
-
|
|
8412
|
+
debug14("Migration statements executed");
|
|
8238
8413
|
return;
|
|
8239
8414
|
}
|
|
8240
8415
|
case "sqlite":
|
|
8241
8416
|
case "expo":
|
|
8242
8417
|
case "react-native": {
|
|
8243
|
-
|
|
8418
|
+
debug14("using sqlite/react-native migration file");
|
|
8244
8419
|
const mig = new CreateContacts1690925872693();
|
|
8245
8420
|
await mig.up(queryRunner);
|
|
8246
|
-
|
|
8421
|
+
debug14("Migration statements executed");
|
|
8247
8422
|
return;
|
|
8248
8423
|
}
|
|
8249
8424
|
default:
|
|
@@ -8251,23 +8426,23 @@ var CreateContacts1690925872318 = class {
|
|
|
8251
8426
|
}
|
|
8252
8427
|
}
|
|
8253
8428
|
async down(queryRunner) {
|
|
8254
|
-
|
|
8429
|
+
debug14("migration: reverting contacts tables");
|
|
8255
8430
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8256
8431
|
switch (dbType) {
|
|
8257
8432
|
case "postgres": {
|
|
8258
|
-
|
|
8433
|
+
debug14("using postgres migration file");
|
|
8259
8434
|
const mig = new CreateContacts1690925872592();
|
|
8260
8435
|
await mig.down(queryRunner);
|
|
8261
|
-
|
|
8436
|
+
debug14("Migration statements executed");
|
|
8262
8437
|
return;
|
|
8263
8438
|
}
|
|
8264
8439
|
case "sqlite":
|
|
8265
8440
|
case "expo":
|
|
8266
8441
|
case "react-native": {
|
|
8267
|
-
|
|
8442
|
+
debug14("using sqlite/react-native migration file");
|
|
8268
8443
|
const mig = new CreateContacts1690925872693();
|
|
8269
8444
|
await mig.down(queryRunner);
|
|
8270
|
-
|
|
8445
|
+
debug14("Migration statements executed");
|
|
8271
8446
|
return;
|
|
8272
8447
|
}
|
|
8273
8448
|
default:
|
|
@@ -8277,7 +8452,7 @@ var CreateContacts1690925872318 = class {
|
|
|
8277
8452
|
};
|
|
8278
8453
|
|
|
8279
8454
|
// src/migrations/generic/4-CreateStatusList.ts
|
|
8280
|
-
var
|
|
8455
|
+
var import_debug15 = __toESM(require("debug"), 1);
|
|
8281
8456
|
|
|
8282
8457
|
// src/migrations/postgres/1693866470001-CreateStatusList.ts
|
|
8283
8458
|
var CreateStatusList1693866470001 = class {
|
|
@@ -8483,53 +8658,53 @@ var UpdateStatusList1737110469000 = class {
|
|
|
8483
8658
|
};
|
|
8484
8659
|
|
|
8485
8660
|
// src/migrations/generic/4-CreateStatusList.ts
|
|
8486
|
-
var
|
|
8661
|
+
var debug15 = (0, import_debug15.default)("sphereon:ssi-sdk:migrations");
|
|
8487
8662
|
var CreateStatusList1693866470000 = class {
|
|
8488
8663
|
static {
|
|
8489
8664
|
__name(this, "CreateStatusList1693866470000");
|
|
8490
8665
|
}
|
|
8491
8666
|
name = "CreateStatusList1693866470000";
|
|
8492
8667
|
async up(queryRunner) {
|
|
8493
|
-
|
|
8668
|
+
debug15("migration: creating issuance branding tables");
|
|
8494
8669
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8495
8670
|
if (dbType === "postgres") {
|
|
8496
|
-
|
|
8671
|
+
debug15("using postgres migration files");
|
|
8497
8672
|
const createMig = new CreateStatusList1693866470001();
|
|
8498
8673
|
await createMig.up(queryRunner);
|
|
8499
8674
|
const updateMig = new UpdateStatusList1737110469001();
|
|
8500
8675
|
const up = await updateMig.up(queryRunner);
|
|
8501
|
-
|
|
8676
|
+
debug15("Migration statements executed");
|
|
8502
8677
|
return up;
|
|
8503
8678
|
} else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
|
|
8504
|
-
|
|
8679
|
+
debug15("using sqlite/react-native migration files");
|
|
8505
8680
|
const createMig = new CreateStatusList1693866470002();
|
|
8506
8681
|
await createMig.up(queryRunner);
|
|
8507
8682
|
const updateMig = new UpdateStatusList1737110469000();
|
|
8508
8683
|
const up = await updateMig.up(queryRunner);
|
|
8509
|
-
|
|
8684
|
+
debug15("Migration statements executed");
|
|
8510
8685
|
return up;
|
|
8511
8686
|
} else {
|
|
8512
8687
|
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`);
|
|
8513
8688
|
}
|
|
8514
8689
|
}
|
|
8515
8690
|
async down(queryRunner) {
|
|
8516
|
-
|
|
8691
|
+
debug15("migration: reverting issuance branding tables");
|
|
8517
8692
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8518
8693
|
if (dbType === "postgres") {
|
|
8519
|
-
|
|
8694
|
+
debug15("using postgres migration files");
|
|
8520
8695
|
const updateMig = new UpdateStatusList1737110469001();
|
|
8521
8696
|
await updateMig.down(queryRunner);
|
|
8522
8697
|
const createMig = new CreateStatusList1693866470001();
|
|
8523
8698
|
const down = await createMig.down(queryRunner);
|
|
8524
|
-
|
|
8699
|
+
debug15("Migration statements executed");
|
|
8525
8700
|
return down;
|
|
8526
8701
|
} else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
|
|
8527
|
-
|
|
8702
|
+
debug15("using sqlite/react-native migration files");
|
|
8528
8703
|
const updateMig = new UpdateStatusList1737110469000();
|
|
8529
8704
|
await updateMig.down(queryRunner);
|
|
8530
8705
|
const createMig = new CreateStatusList1693866470002();
|
|
8531
8706
|
const down = await createMig.down(queryRunner);
|
|
8532
|
-
|
|
8707
|
+
debug15("Migration statements executed");
|
|
8533
8708
|
return down;
|
|
8534
8709
|
} else {
|
|
8535
8710
|
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`);
|
|
@@ -8538,7 +8713,7 @@ var CreateStatusList1693866470000 = class {
|
|
|
8538
8713
|
};
|
|
8539
8714
|
|
|
8540
8715
|
// src/migrations/generic/5-CreateAuditEvents.ts
|
|
8541
|
-
var
|
|
8716
|
+
var import_debug16 = __toESM(require("debug"), 1);
|
|
8542
8717
|
|
|
8543
8718
|
// src/migrations/sqlite/1701634819487-CreateAuditEvents.ts
|
|
8544
8719
|
var CreateAuditEvents1701634819487 = class {
|
|
@@ -8637,30 +8812,30 @@ var CreateAuditEvents1701634812183 = class {
|
|
|
8637
8812
|
};
|
|
8638
8813
|
|
|
8639
8814
|
// src/migrations/generic/5-CreateAuditEvents.ts
|
|
8640
|
-
var
|
|
8815
|
+
var debug16 = (0, import_debug16.default)("sphereon:ssi-sdk:migrations");
|
|
8641
8816
|
var CreateAuditEvents1701635835330 = class {
|
|
8642
8817
|
static {
|
|
8643
8818
|
__name(this, "CreateAuditEvents1701635835330");
|
|
8644
8819
|
}
|
|
8645
8820
|
name = "CreateAuditEvents1701635835330";
|
|
8646
8821
|
async up(queryRunner) {
|
|
8647
|
-
|
|
8822
|
+
debug16("migration: creating audit events tables");
|
|
8648
8823
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8649
8824
|
switch (dbType) {
|
|
8650
8825
|
case "postgres": {
|
|
8651
|
-
|
|
8826
|
+
debug16("using postgres migration file");
|
|
8652
8827
|
const mig = new CreateAuditEvents1701634812183();
|
|
8653
8828
|
await mig.up(queryRunner);
|
|
8654
|
-
|
|
8829
|
+
debug16("Migration statements executed");
|
|
8655
8830
|
return;
|
|
8656
8831
|
}
|
|
8657
8832
|
case "sqlite":
|
|
8658
8833
|
case "expo":
|
|
8659
8834
|
case "react-native": {
|
|
8660
|
-
|
|
8835
|
+
debug16("using sqlite/react-native migration file");
|
|
8661
8836
|
const mig = new CreateAuditEvents1701634819487();
|
|
8662
8837
|
await mig.up(queryRunner);
|
|
8663
|
-
|
|
8838
|
+
debug16("Migration statements executed");
|
|
8664
8839
|
return;
|
|
8665
8840
|
}
|
|
8666
8841
|
default:
|
|
@@ -8668,23 +8843,23 @@ var CreateAuditEvents1701635835330 = class {
|
|
|
8668
8843
|
}
|
|
8669
8844
|
}
|
|
8670
8845
|
async down(queryRunner) {
|
|
8671
|
-
|
|
8846
|
+
debug16("migration: reverting audit events tables");
|
|
8672
8847
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8673
8848
|
switch (dbType) {
|
|
8674
8849
|
case "postgres": {
|
|
8675
|
-
|
|
8850
|
+
debug16("using postgres migration file");
|
|
8676
8851
|
const mig = new CreateAuditEvents1701634812183();
|
|
8677
8852
|
await mig.down(queryRunner);
|
|
8678
|
-
|
|
8853
|
+
debug16("Migration statements executed");
|
|
8679
8854
|
return;
|
|
8680
8855
|
}
|
|
8681
8856
|
case "sqlite":
|
|
8682
8857
|
case "expo":
|
|
8683
8858
|
case "react-native": {
|
|
8684
|
-
|
|
8859
|
+
debug16("using sqlite/react-native migration file");
|
|
8685
8860
|
const mig = new CreateAuditEvents1701634819487();
|
|
8686
8861
|
await mig.down(queryRunner);
|
|
8687
|
-
|
|
8862
|
+
debug16("Migration statements executed");
|
|
8688
8863
|
return;
|
|
8689
8864
|
}
|
|
8690
8865
|
default:
|
|
@@ -8694,7 +8869,7 @@ var CreateAuditEvents1701635835330 = class {
|
|
|
8694
8869
|
};
|
|
8695
8870
|
|
|
8696
8871
|
// src/migrations/generic/6-CreateDigitalCredential.ts
|
|
8697
|
-
var
|
|
8872
|
+
var import_debug17 = __toESM(require("debug"), 1);
|
|
8698
8873
|
|
|
8699
8874
|
// src/migrations/postgres/1708525189001-CreateDigitalCredential.ts
|
|
8700
8875
|
var CreateDigitalCredential1708525189001 = class {
|
|
@@ -8802,30 +8977,30 @@ var CreateDigitalCredential1708525189002 = class {
|
|
|
8802
8977
|
};
|
|
8803
8978
|
|
|
8804
8979
|
// src/migrations/generic/6-CreateDigitalCredential.ts
|
|
8805
|
-
var
|
|
8980
|
+
var debug17 = (0, import_debug17.default)("sphereon:ssi-sdk:migrations");
|
|
8806
8981
|
var CreateDigitalCredential1708525189000 = class {
|
|
8807
8982
|
static {
|
|
8808
8983
|
__name(this, "CreateDigitalCredential1708525189000");
|
|
8809
8984
|
}
|
|
8810
8985
|
name = "CreateDigitalCredential1708525189000";
|
|
8811
8986
|
async up(queryRunner) {
|
|
8812
|
-
|
|
8987
|
+
debug17("migration: creating DigitalCredential tables");
|
|
8813
8988
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8814
8989
|
switch (dbType) {
|
|
8815
8990
|
case "postgres": {
|
|
8816
|
-
|
|
8991
|
+
debug17("using postgres migration file for DigitalCredential");
|
|
8817
8992
|
const mig = new CreateDigitalCredential1708525189001();
|
|
8818
8993
|
await mig.up(queryRunner);
|
|
8819
|
-
|
|
8994
|
+
debug17("Postgres Migration statements for DigitalCredential executed");
|
|
8820
8995
|
return;
|
|
8821
8996
|
}
|
|
8822
8997
|
case "sqlite":
|
|
8823
8998
|
case "expo":
|
|
8824
8999
|
case "react-native": {
|
|
8825
|
-
|
|
9000
|
+
debug17("using sqlite/react-native migration file for DigitalCredential");
|
|
8826
9001
|
const mig = new CreateDigitalCredential1708525189002();
|
|
8827
9002
|
await mig.up(queryRunner);
|
|
8828
|
-
|
|
9003
|
+
debug17("SQLite Migration statements for DigitalCredential executed");
|
|
8829
9004
|
return;
|
|
8830
9005
|
}
|
|
8831
9006
|
default:
|
|
@@ -8833,23 +9008,23 @@ var CreateDigitalCredential1708525189000 = class {
|
|
|
8833
9008
|
}
|
|
8834
9009
|
}
|
|
8835
9010
|
async down(queryRunner) {
|
|
8836
|
-
|
|
9011
|
+
debug17("migration: reverting DigitalCredential tables");
|
|
8837
9012
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8838
9013
|
switch (dbType) {
|
|
8839
9014
|
case "postgres": {
|
|
8840
|
-
|
|
9015
|
+
debug17("using postgres migration file for DigitalCredential");
|
|
8841
9016
|
const mig = new CreateDigitalCredential1708525189001();
|
|
8842
9017
|
await mig.down(queryRunner);
|
|
8843
|
-
|
|
9018
|
+
debug17("Postgres Migration statements for DigitalCredential reverted");
|
|
8844
9019
|
return;
|
|
8845
9020
|
}
|
|
8846
9021
|
case "sqlite":
|
|
8847
9022
|
case "expo":
|
|
8848
9023
|
case "react-native": {
|
|
8849
|
-
|
|
9024
|
+
debug17("using sqlite/react-native migration file for DigitalCredential");
|
|
8850
9025
|
const mig = new CreateDigitalCredential1708525189002();
|
|
8851
9026
|
await mig.down(queryRunner);
|
|
8852
|
-
|
|
9027
|
+
debug17("SQLite Migration statements for DigitalCredential reverted");
|
|
8853
9028
|
return;
|
|
8854
9029
|
}
|
|
8855
9030
|
default:
|
|
@@ -8859,7 +9034,7 @@ var CreateDigitalCredential1708525189000 = class {
|
|
|
8859
9034
|
};
|
|
8860
9035
|
|
|
8861
9036
|
// src/migrations/generic/7-CreateMachineStateStore.ts
|
|
8862
|
-
var
|
|
9037
|
+
var import_debug18 = __toESM(require("debug"), 1);
|
|
8863
9038
|
|
|
8864
9039
|
// src/migrations/postgres/1708797018115-CreateMachineStateStore.ts
|
|
8865
9040
|
var CreateMachineStateStore1708797018115 = class {
|
|
@@ -8921,30 +9096,30 @@ var CreateMachineStateStore1708796002272 = class {
|
|
|
8921
9096
|
};
|
|
8922
9097
|
|
|
8923
9098
|
// src/migrations/generic/7-CreateMachineStateStore.ts
|
|
8924
|
-
var
|
|
9099
|
+
var debug18 = (0, import_debug18.default)("sphereon:ssi-sdk:migrations");
|
|
8925
9100
|
var CreateMachineStateStore1708098041262 = class {
|
|
8926
9101
|
static {
|
|
8927
9102
|
__name(this, "CreateMachineStateStore1708098041262");
|
|
8928
9103
|
}
|
|
8929
9104
|
name = "CreateMachineStateStore1708098041262";
|
|
8930
9105
|
async up(queryRunner) {
|
|
8931
|
-
|
|
9106
|
+
debug18("migration: creating machine state tables");
|
|
8932
9107
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8933
9108
|
switch (dbType) {
|
|
8934
9109
|
case "postgres": {
|
|
8935
|
-
|
|
9110
|
+
debug18("using postgres migration file");
|
|
8936
9111
|
const mig = new CreateMachineStateStore1708797018115();
|
|
8937
9112
|
await mig.up(queryRunner);
|
|
8938
|
-
|
|
9113
|
+
debug18("Migration statements executed");
|
|
8939
9114
|
return;
|
|
8940
9115
|
}
|
|
8941
9116
|
case "sqlite":
|
|
8942
9117
|
case "expo":
|
|
8943
9118
|
case "react-native": {
|
|
8944
|
-
|
|
9119
|
+
debug18("using sqlite/react-native migration file");
|
|
8945
9120
|
const mig = new CreateMachineStateStore1708796002272();
|
|
8946
9121
|
await mig.up(queryRunner);
|
|
8947
|
-
|
|
9122
|
+
debug18("Migration statements executed");
|
|
8948
9123
|
return;
|
|
8949
9124
|
}
|
|
8950
9125
|
default:
|
|
@@ -8952,23 +9127,23 @@ var CreateMachineStateStore1708098041262 = class {
|
|
|
8952
9127
|
}
|
|
8953
9128
|
}
|
|
8954
9129
|
async down(queryRunner) {
|
|
8955
|
-
|
|
9130
|
+
debug18("migration: reverting machine state tables");
|
|
8956
9131
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8957
9132
|
switch (dbType) {
|
|
8958
9133
|
case "postgres": {
|
|
8959
|
-
|
|
9134
|
+
debug18("using postgres migration file");
|
|
8960
9135
|
const mig = new CreateMachineStateStore1708797018115();
|
|
8961
9136
|
await mig.down(queryRunner);
|
|
8962
|
-
|
|
9137
|
+
debug18("Migration statements executed");
|
|
8963
9138
|
return;
|
|
8964
9139
|
}
|
|
8965
9140
|
case "sqlite":
|
|
8966
9141
|
case "expo":
|
|
8967
9142
|
case "react-native": {
|
|
8968
|
-
|
|
9143
|
+
debug18("using sqlite/react-native migration file");
|
|
8969
9144
|
const mig = new CreateMachineStateStore1708796002272();
|
|
8970
9145
|
await mig.down(queryRunner);
|
|
8971
|
-
|
|
9146
|
+
debug18("Migration statements executed");
|
|
8972
9147
|
return;
|
|
8973
9148
|
}
|
|
8974
9149
|
default:
|
|
@@ -8978,7 +9153,7 @@ var CreateMachineStateStore1708098041262 = class {
|
|
|
8978
9153
|
};
|
|
8979
9154
|
|
|
8980
9155
|
// src/migrations/generic/8-CreateContacts.ts
|
|
8981
|
-
var
|
|
9156
|
+
var import_debug19 = __toESM(require("debug"), 1);
|
|
8982
9157
|
|
|
8983
9158
|
// src/migrations/postgres/1710438363001-CreateContacts.ts
|
|
8984
9159
|
var CreateContacts1710438363001 = class {
|
|
@@ -9092,30 +9267,30 @@ var CreateContacts1710438363002 = class {
|
|
|
9092
9267
|
};
|
|
9093
9268
|
|
|
9094
9269
|
// src/migrations/generic/8-CreateContacts.ts
|
|
9095
|
-
var
|
|
9270
|
+
var debug19 = (0, import_debug19.default)("sphereon:ssi-sdk:migrations");
|
|
9096
9271
|
var CreateContacts1708525189000 = class {
|
|
9097
9272
|
static {
|
|
9098
9273
|
__name(this, "CreateContacts1708525189000");
|
|
9099
9274
|
}
|
|
9100
9275
|
name = "CreateContacts1708525189000";
|
|
9101
9276
|
async up(queryRunner) {
|
|
9102
|
-
|
|
9277
|
+
debug19("migration: updating contact tables");
|
|
9103
9278
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9104
9279
|
switch (dbType) {
|
|
9105
9280
|
case "postgres": {
|
|
9106
|
-
|
|
9281
|
+
debug19("using postgres migration file");
|
|
9107
9282
|
const mig = new CreateContacts1710438363001();
|
|
9108
9283
|
await mig.up(queryRunner);
|
|
9109
|
-
|
|
9284
|
+
debug19("Migration statements executed");
|
|
9110
9285
|
return;
|
|
9111
9286
|
}
|
|
9112
9287
|
case "sqlite":
|
|
9113
9288
|
case "expo":
|
|
9114
9289
|
case "react-native": {
|
|
9115
|
-
|
|
9290
|
+
debug19("using sqlite/react-native migration file");
|
|
9116
9291
|
const mig = new CreateContacts1710438363002();
|
|
9117
9292
|
await mig.up(queryRunner);
|
|
9118
|
-
|
|
9293
|
+
debug19("Migration statements executed");
|
|
9119
9294
|
return;
|
|
9120
9295
|
}
|
|
9121
9296
|
default:
|
|
@@ -9123,23 +9298,23 @@ var CreateContacts1708525189000 = class {
|
|
|
9123
9298
|
}
|
|
9124
9299
|
}
|
|
9125
9300
|
async down(queryRunner) {
|
|
9126
|
-
|
|
9301
|
+
debug19("migration: reverting machine state tables");
|
|
9127
9302
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9128
9303
|
switch (dbType) {
|
|
9129
9304
|
case "postgres": {
|
|
9130
|
-
|
|
9305
|
+
debug19("using postgres migration file");
|
|
9131
9306
|
const mig = new CreateContacts1710438363001();
|
|
9132
9307
|
await mig.down(queryRunner);
|
|
9133
|
-
|
|
9308
|
+
debug19("Migration statements executed");
|
|
9134
9309
|
return;
|
|
9135
9310
|
}
|
|
9136
9311
|
case "sqlite":
|
|
9137
9312
|
case "expo":
|
|
9138
9313
|
case "react-native": {
|
|
9139
|
-
|
|
9314
|
+
debug19("using sqlite/react-native migration file");
|
|
9140
9315
|
const mig = new CreateContacts1710438363002();
|
|
9141
9316
|
await mig.down(queryRunner);
|
|
9142
|
-
|
|
9317
|
+
debug19("Migration statements executed");
|
|
9143
9318
|
return;
|
|
9144
9319
|
}
|
|
9145
9320
|
default:
|
|
@@ -9149,7 +9324,7 @@ var CreateContacts1708525189000 = class {
|
|
|
9149
9324
|
};
|
|
9150
9325
|
|
|
9151
9326
|
// src/migrations/generic/9-CreateContacts.ts
|
|
9152
|
-
var
|
|
9327
|
+
var import_debug20 = __toESM(require("debug"), 1);
|
|
9153
9328
|
|
|
9154
9329
|
// src/migrations/postgres/1715761125001-CreateContacts.ts
|
|
9155
9330
|
var CreateContacts1715761125001 = class {
|
|
@@ -9261,30 +9436,30 @@ var CreateContacts1715761125002 = class {
|
|
|
9261
9436
|
};
|
|
9262
9437
|
|
|
9263
9438
|
// src/migrations/generic/9-CreateContacts.ts
|
|
9264
|
-
var
|
|
9439
|
+
var debug20 = (0, import_debug20.default)("sphereon:ssi-sdk:migrations");
|
|
9265
9440
|
var CreateContacts1715761125000 = class {
|
|
9266
9441
|
static {
|
|
9267
9442
|
__name(this, "CreateContacts1715761125000");
|
|
9268
9443
|
}
|
|
9269
9444
|
name = "CreateContacts1715761125000";
|
|
9270
9445
|
async up(queryRunner) {
|
|
9271
|
-
|
|
9446
|
+
debug20("migration: updating contact tables");
|
|
9272
9447
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9273
9448
|
switch (dbType) {
|
|
9274
9449
|
case "postgres": {
|
|
9275
|
-
|
|
9450
|
+
debug20("using postgres migration file");
|
|
9276
9451
|
const mig = new CreateContacts1715761125001();
|
|
9277
9452
|
await mig.up(queryRunner);
|
|
9278
|
-
|
|
9453
|
+
debug20("Migration statements executed");
|
|
9279
9454
|
return;
|
|
9280
9455
|
}
|
|
9281
9456
|
case "sqlite":
|
|
9282
9457
|
case "expo":
|
|
9283
9458
|
case "react-native": {
|
|
9284
|
-
|
|
9459
|
+
debug20("using sqlite/react-native migration file");
|
|
9285
9460
|
const mig = new CreateContacts1715761125002();
|
|
9286
9461
|
await mig.up(queryRunner);
|
|
9287
|
-
|
|
9462
|
+
debug20("Migration statements executed");
|
|
9288
9463
|
return;
|
|
9289
9464
|
}
|
|
9290
9465
|
default:
|
|
@@ -9292,23 +9467,23 @@ var CreateContacts1715761125000 = class {
|
|
|
9292
9467
|
}
|
|
9293
9468
|
}
|
|
9294
9469
|
async down(queryRunner) {
|
|
9295
|
-
|
|
9470
|
+
debug20("migration: reverting machine state tables");
|
|
9296
9471
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9297
9472
|
switch (dbType) {
|
|
9298
9473
|
case "postgres": {
|
|
9299
|
-
|
|
9474
|
+
debug20("using postgres migration file");
|
|
9300
9475
|
const mig = new CreateContacts1715761125001();
|
|
9301
9476
|
await mig.down(queryRunner);
|
|
9302
|
-
|
|
9477
|
+
debug20("Migration statements executed");
|
|
9303
9478
|
return;
|
|
9304
9479
|
}
|
|
9305
9480
|
case "sqlite":
|
|
9306
9481
|
case "expo":
|
|
9307
9482
|
case "react-native": {
|
|
9308
|
-
|
|
9483
|
+
debug20("using sqlite/react-native migration file");
|
|
9309
9484
|
const mig = new CreateContacts1715761125002();
|
|
9310
9485
|
await mig.down(queryRunner);
|
|
9311
|
-
|
|
9486
|
+
debug20("Migration statements executed");
|
|
9312
9487
|
return;
|
|
9313
9488
|
}
|
|
9314
9489
|
default:
|
|
@@ -9343,7 +9518,8 @@ var DataStoreMachineStateMigrations = [
|
|
|
9343
9518
|
CreateMachineStateStore1708098041262
|
|
9344
9519
|
];
|
|
9345
9520
|
var DataStorePresentationDefinitionMigrations = [
|
|
9346
|
-
CreatePresentationDefinitions1716533767523
|
|
9521
|
+
CreatePresentationDefinitions1716533767523,
|
|
9522
|
+
UpdatePresentationDefinitionItemNullable1741895824000
|
|
9347
9523
|
];
|
|
9348
9524
|
var DataStoreMigrations = [
|
|
9349
9525
|
...DataStoreContactMigrations,
|