@sphereon/ssi-sdk.data-store 0.36.1-next.149 → 0.36.1-next.150
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 +199 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +199 -97
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/entities/contact/OpenIdConfigEntity.ts +2 -2
- package/src/migrations/generic/16-MakeOpenIdClientSecretNullable.ts +62 -0
- package/src/migrations/generic/index.ts +2 -0
- package/src/migrations/postgres/1767000000001-MakeOpenIdClientSecretNullable.ts +32 -0
- package/src/migrations/sqlite/1767000000002-MakeOpenIdClientSecretNullable.ts +22 -0
package/dist/index.cjs
CHANGED
|
@@ -1900,7 +1900,7 @@ _ts_decorate16([
|
|
|
1900
1900
|
(0, import_typeorm15.Column)("varchar", {
|
|
1901
1901
|
name: "client_secret",
|
|
1902
1902
|
length: 255,
|
|
1903
|
-
nullable:
|
|
1903
|
+
nullable: true
|
|
1904
1904
|
}),
|
|
1905
1905
|
_ts_metadata15("design:type", String)
|
|
1906
1906
|
], OpenIdConfigEntity.prototype, "clientSecret", void 0);
|
|
@@ -8643,32 +8643,133 @@ var AddServiceMetadata1764000000000 = class {
|
|
|
8643
8643
|
}
|
|
8644
8644
|
};
|
|
8645
8645
|
|
|
8646
|
-
// src/migrations/generic/
|
|
8646
|
+
// src/migrations/generic/16-MakeOpenIdClientSecretNullable.ts
|
|
8647
|
+
var import_debug20 = __toESM(require("debug"), 1);
|
|
8648
|
+
|
|
8649
|
+
// src/migrations/postgres/1767000000001-MakeOpenIdClientSecretNullable.ts
|
|
8647
8650
|
var import_debug18 = __toESM(require("debug"), 1);
|
|
8648
8651
|
var debug18 = (0, import_debug18.default)("sphereon:ssi-sdk:migrations");
|
|
8652
|
+
var MakeOpenIdClientSecretNullable1767000000001 = class {
|
|
8653
|
+
static {
|
|
8654
|
+
__name(this, "MakeOpenIdClientSecretNullable1767000000001");
|
|
8655
|
+
}
|
|
8656
|
+
name = "MakeOpenIdClientSecretNullable1767000000001";
|
|
8657
|
+
async up(queryRunner) {
|
|
8658
|
+
const table = await queryRunner.getTable("BaseConfig");
|
|
8659
|
+
if (!table) {
|
|
8660
|
+
debug18("MakeOpenIdClientSecretNullable: Skipping migration - BaseConfig table does not exist");
|
|
8661
|
+
return;
|
|
8662
|
+
}
|
|
8663
|
+
const column = table.columns.find((col) => col.name === "client_secret");
|
|
8664
|
+
if (column && !column.isNullable) {
|
|
8665
|
+
await queryRunner.query(`ALTER TABLE "BaseConfig" ALTER COLUMN "client_secret" DROP NOT NULL`);
|
|
8666
|
+
debug18("MakeOpenIdClientSecretNullable: Made client_secret nullable");
|
|
8667
|
+
}
|
|
8668
|
+
}
|
|
8669
|
+
async down(queryRunner) {
|
|
8670
|
+
const table = await queryRunner.getTable("BaseConfig");
|
|
8671
|
+
if (!table) {
|
|
8672
|
+
return;
|
|
8673
|
+
}
|
|
8674
|
+
await queryRunner.query(`UPDATE "BaseConfig" SET "client_secret" = '' WHERE "client_secret" IS NULL`);
|
|
8675
|
+
await queryRunner.query(`ALTER TABLE "BaseConfig" ALTER COLUMN "client_secret" SET NOT NULL`);
|
|
8676
|
+
}
|
|
8677
|
+
};
|
|
8678
|
+
|
|
8679
|
+
// src/migrations/sqlite/1767000000002-MakeOpenIdClientSecretNullable.ts
|
|
8680
|
+
var import_debug19 = __toESM(require("debug"), 1);
|
|
8681
|
+
var debug19 = (0, import_debug19.default)("sphereon:ssi-sdk:migrations");
|
|
8682
|
+
var MakeOpenIdClientSecretNullable1767000000002 = class {
|
|
8683
|
+
static {
|
|
8684
|
+
__name(this, "MakeOpenIdClientSecretNullable1767000000002");
|
|
8685
|
+
}
|
|
8686
|
+
name = "MakeOpenIdClientSecretNullable1767000000002";
|
|
8687
|
+
async up(queryRunner) {
|
|
8688
|
+
debug19("MakeOpenIdClientSecretNullable: SQLite does not support ALTER COLUMN, no action needed for nullable change");
|
|
8689
|
+
}
|
|
8690
|
+
async down(queryRunner) {
|
|
8691
|
+
}
|
|
8692
|
+
};
|
|
8693
|
+
|
|
8694
|
+
// src/migrations/generic/16-MakeOpenIdClientSecretNullable.ts
|
|
8695
|
+
var debug20 = (0, import_debug20.default)("sphereon:ssi-sdk:migrations");
|
|
8696
|
+
var MakeOpenIdClientSecretNullable1767000000000 = class {
|
|
8697
|
+
static {
|
|
8698
|
+
__name(this, "MakeOpenIdClientSecretNullable1767000000000");
|
|
8699
|
+
}
|
|
8700
|
+
name = "MakeOpenIdClientSecretNullable1767000000000";
|
|
8701
|
+
async up(queryRunner) {
|
|
8702
|
+
debug20("migration: making client_secret nullable in BaseConfig table");
|
|
8703
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
8704
|
+
switch (dbType) {
|
|
8705
|
+
case "postgres": {
|
|
8706
|
+
debug20("using postgres migration file for MakeOpenIdClientSecretNullable");
|
|
8707
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000001();
|
|
8708
|
+
await mig.up(queryRunner);
|
|
8709
|
+
debug20("Postgres migration statements for MakeOpenIdClientSecretNullable executed");
|
|
8710
|
+
return;
|
|
8711
|
+
}
|
|
8712
|
+
case "sqlite":
|
|
8713
|
+
case "expo":
|
|
8714
|
+
case "react-native": {
|
|
8715
|
+
debug20("using sqlite/react-native migration file for MakeOpenIdClientSecretNullable");
|
|
8716
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000002();
|
|
8717
|
+
await mig.up(queryRunner);
|
|
8718
|
+
debug20("SQLite migration statements for MakeOpenIdClientSecretNullable executed");
|
|
8719
|
+
return;
|
|
8720
|
+
}
|
|
8721
|
+
default:
|
|
8722
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo, and postgres for MakeOpenIdClientSecretNullable. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
8723
|
+
}
|
|
8724
|
+
}
|
|
8725
|
+
async down(queryRunner) {
|
|
8726
|
+
debug20("migration: reverting client_secret nullable in BaseConfig table");
|
|
8727
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
8728
|
+
switch (dbType) {
|
|
8729
|
+
case "postgres": {
|
|
8730
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000001();
|
|
8731
|
+
await mig.down(queryRunner);
|
|
8732
|
+
return;
|
|
8733
|
+
}
|
|
8734
|
+
case "sqlite":
|
|
8735
|
+
case "expo":
|
|
8736
|
+
case "react-native": {
|
|
8737
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000002();
|
|
8738
|
+
await mig.down(queryRunner);
|
|
8739
|
+
return;
|
|
8740
|
+
}
|
|
8741
|
+
default:
|
|
8742
|
+
return Promise.reject(`Migrations are currently only supported for sqlite, react-native, expo, and postgres for MakeOpenIdClientSecretNullable. Was ${dbType}. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now`);
|
|
8743
|
+
}
|
|
8744
|
+
}
|
|
8745
|
+
};
|
|
8746
|
+
|
|
8747
|
+
// src/migrations/generic/2-CreateIssuanceBranding.ts
|
|
8748
|
+
var import_debug21 = __toESM(require("debug"), 1);
|
|
8749
|
+
var debug21 = (0, import_debug21.default)("sphereon:ssi-sdk:migrations");
|
|
8649
8750
|
var CreateIssuanceBranding1659463079429 = class {
|
|
8650
8751
|
static {
|
|
8651
8752
|
__name(this, "CreateIssuanceBranding1659463079429");
|
|
8652
8753
|
}
|
|
8653
8754
|
name = "CreateIssuanceBranding1659463079429";
|
|
8654
8755
|
async up(queryRunner) {
|
|
8655
|
-
|
|
8756
|
+
debug21("migration: creating issuance branding tables");
|
|
8656
8757
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8657
8758
|
switch (dbType) {
|
|
8658
8759
|
case "postgres": {
|
|
8659
|
-
|
|
8760
|
+
debug21("using postgres migration file");
|
|
8660
8761
|
const mig = new CreateIssuanceBranding1685628974232();
|
|
8661
8762
|
await mig.up(queryRunner);
|
|
8662
|
-
|
|
8763
|
+
debug21("Migration statements executed");
|
|
8663
8764
|
return;
|
|
8664
8765
|
}
|
|
8665
8766
|
case "sqlite":
|
|
8666
8767
|
case "expo":
|
|
8667
8768
|
case "react-native": {
|
|
8668
|
-
|
|
8769
|
+
debug21("using sqlite/react-native migration file");
|
|
8669
8770
|
const mig = new CreateIssuanceBranding1685628973231();
|
|
8670
8771
|
await mig.up(queryRunner);
|
|
8671
|
-
|
|
8772
|
+
debug21("Migration statements executed");
|
|
8672
8773
|
return;
|
|
8673
8774
|
}
|
|
8674
8775
|
default:
|
|
@@ -8676,23 +8777,23 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
8676
8777
|
}
|
|
8677
8778
|
}
|
|
8678
8779
|
async down(queryRunner) {
|
|
8679
|
-
|
|
8780
|
+
debug21("migration: reverting issuance branding tables");
|
|
8680
8781
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8681
8782
|
switch (dbType) {
|
|
8682
8783
|
case "postgres": {
|
|
8683
|
-
|
|
8784
|
+
debug21("using postgres migration file");
|
|
8684
8785
|
const mig = new CreateIssuanceBranding1685628974232();
|
|
8685
8786
|
await mig.down(queryRunner);
|
|
8686
|
-
|
|
8787
|
+
debug21("Migration statements executed");
|
|
8687
8788
|
return;
|
|
8688
8789
|
}
|
|
8689
8790
|
case "sqlite":
|
|
8690
8791
|
case "expo":
|
|
8691
8792
|
case "react-native": {
|
|
8692
|
-
|
|
8793
|
+
debug21("using sqlite/react-native migration file");
|
|
8693
8794
|
const mig = new CreateIssuanceBranding1685628973231();
|
|
8694
8795
|
await mig.down(queryRunner);
|
|
8695
|
-
|
|
8796
|
+
debug21("Migration statements executed");
|
|
8696
8797
|
return;
|
|
8697
8798
|
}
|
|
8698
8799
|
default:
|
|
@@ -8702,7 +8803,7 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
8702
8803
|
};
|
|
8703
8804
|
|
|
8704
8805
|
// src/migrations/generic/3-CreateContacts.ts
|
|
8705
|
-
var
|
|
8806
|
+
var import_debug22 = __toESM(require("debug"), 1);
|
|
8706
8807
|
|
|
8707
8808
|
// src/migrations/postgres/1690925872592-CreateContacts.ts
|
|
8708
8809
|
var import_ssi_sdk33 = require("@sphereon/ssi-sdk.core");
|
|
@@ -8923,30 +9024,30 @@ var CreateContacts1690925872693 = class {
|
|
|
8923
9024
|
};
|
|
8924
9025
|
|
|
8925
9026
|
// src/migrations/generic/3-CreateContacts.ts
|
|
8926
|
-
var
|
|
9027
|
+
var debug22 = (0, import_debug22.default)("sphereon:ssi-sdk:migrations");
|
|
8927
9028
|
var CreateContacts1690925872318 = class {
|
|
8928
9029
|
static {
|
|
8929
9030
|
__name(this, "CreateContacts1690925872318");
|
|
8930
9031
|
}
|
|
8931
9032
|
name = "CreateContacts1690925872318";
|
|
8932
9033
|
async up(queryRunner) {
|
|
8933
|
-
|
|
9034
|
+
debug22("migration: creating contacts tables");
|
|
8934
9035
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8935
9036
|
switch (dbType) {
|
|
8936
9037
|
case "postgres": {
|
|
8937
|
-
|
|
9038
|
+
debug22("using postgres migration file");
|
|
8938
9039
|
const mig = new CreateContacts1690925872592();
|
|
8939
9040
|
await mig.up(queryRunner);
|
|
8940
|
-
|
|
9041
|
+
debug22("Migration statements executed");
|
|
8941
9042
|
return;
|
|
8942
9043
|
}
|
|
8943
9044
|
case "sqlite":
|
|
8944
9045
|
case "expo":
|
|
8945
9046
|
case "react-native": {
|
|
8946
|
-
|
|
9047
|
+
debug22("using sqlite/react-native migration file");
|
|
8947
9048
|
const mig = new CreateContacts1690925872693();
|
|
8948
9049
|
await mig.up(queryRunner);
|
|
8949
|
-
|
|
9050
|
+
debug22("Migration statements executed");
|
|
8950
9051
|
return;
|
|
8951
9052
|
}
|
|
8952
9053
|
default:
|
|
@@ -8954,23 +9055,23 @@ var CreateContacts1690925872318 = class {
|
|
|
8954
9055
|
}
|
|
8955
9056
|
}
|
|
8956
9057
|
async down(queryRunner) {
|
|
8957
|
-
|
|
9058
|
+
debug22("migration: reverting contacts tables");
|
|
8958
9059
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8959
9060
|
switch (dbType) {
|
|
8960
9061
|
case "postgres": {
|
|
8961
|
-
|
|
9062
|
+
debug22("using postgres migration file");
|
|
8962
9063
|
const mig = new CreateContacts1690925872592();
|
|
8963
9064
|
await mig.down(queryRunner);
|
|
8964
|
-
|
|
9065
|
+
debug22("Migration statements executed");
|
|
8965
9066
|
return;
|
|
8966
9067
|
}
|
|
8967
9068
|
case "sqlite":
|
|
8968
9069
|
case "expo":
|
|
8969
9070
|
case "react-native": {
|
|
8970
|
-
|
|
9071
|
+
debug22("using sqlite/react-native migration file");
|
|
8971
9072
|
const mig = new CreateContacts1690925872693();
|
|
8972
9073
|
await mig.down(queryRunner);
|
|
8973
|
-
|
|
9074
|
+
debug22("Migration statements executed");
|
|
8974
9075
|
return;
|
|
8975
9076
|
}
|
|
8976
9077
|
default:
|
|
@@ -8980,7 +9081,7 @@ var CreateContacts1690925872318 = class {
|
|
|
8980
9081
|
};
|
|
8981
9082
|
|
|
8982
9083
|
// src/migrations/generic/4-CreateStatusList.ts
|
|
8983
|
-
var
|
|
9084
|
+
var import_debug23 = __toESM(require("debug"), 1);
|
|
8984
9085
|
|
|
8985
9086
|
// src/migrations/postgres/1693866470001-CreateStatusList.ts
|
|
8986
9087
|
var CreateStatusList1693866470001 = class {
|
|
@@ -9186,53 +9287,53 @@ var UpdateStatusList1737110469000 = class {
|
|
|
9186
9287
|
};
|
|
9187
9288
|
|
|
9188
9289
|
// src/migrations/generic/4-CreateStatusList.ts
|
|
9189
|
-
var
|
|
9290
|
+
var debug23 = (0, import_debug23.default)("sphereon:ssi-sdk:migrations");
|
|
9190
9291
|
var CreateStatusList1693866470000 = class {
|
|
9191
9292
|
static {
|
|
9192
9293
|
__name(this, "CreateStatusList1693866470000");
|
|
9193
9294
|
}
|
|
9194
9295
|
name = "CreateStatusList1693866470000";
|
|
9195
9296
|
async up(queryRunner) {
|
|
9196
|
-
|
|
9297
|
+
debug23("migration: creating issuance branding tables");
|
|
9197
9298
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9198
9299
|
if (dbType === "postgres") {
|
|
9199
|
-
|
|
9300
|
+
debug23("using postgres migration files");
|
|
9200
9301
|
const createMig = new CreateStatusList1693866470001();
|
|
9201
9302
|
await createMig.up(queryRunner);
|
|
9202
9303
|
const updateMig = new UpdateStatusList1737110469001();
|
|
9203
9304
|
const up = await updateMig.up(queryRunner);
|
|
9204
|
-
|
|
9305
|
+
debug23("Migration statements executed");
|
|
9205
9306
|
return up;
|
|
9206
9307
|
} else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
|
|
9207
|
-
|
|
9308
|
+
debug23("using sqlite/react-native migration files");
|
|
9208
9309
|
const createMig = new CreateStatusList1693866470002();
|
|
9209
9310
|
await createMig.up(queryRunner);
|
|
9210
9311
|
const updateMig = new UpdateStatusList1737110469000();
|
|
9211
9312
|
const up = await updateMig.up(queryRunner);
|
|
9212
|
-
|
|
9313
|
+
debug23("Migration statements executed");
|
|
9213
9314
|
return up;
|
|
9214
9315
|
} else {
|
|
9215
9316
|
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`);
|
|
9216
9317
|
}
|
|
9217
9318
|
}
|
|
9218
9319
|
async down(queryRunner) {
|
|
9219
|
-
|
|
9320
|
+
debug23("migration: reverting issuance branding tables");
|
|
9220
9321
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9221
9322
|
if (dbType === "postgres") {
|
|
9222
|
-
|
|
9323
|
+
debug23("using postgres migration files");
|
|
9223
9324
|
const updateMig = new UpdateStatusList1737110469001();
|
|
9224
9325
|
await updateMig.down(queryRunner);
|
|
9225
9326
|
const createMig = new CreateStatusList1693866470001();
|
|
9226
9327
|
const down = await createMig.down(queryRunner);
|
|
9227
|
-
|
|
9328
|
+
debug23("Migration statements executed");
|
|
9228
9329
|
return down;
|
|
9229
9330
|
} else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
|
|
9230
|
-
|
|
9331
|
+
debug23("using sqlite/react-native migration files");
|
|
9231
9332
|
const updateMig = new UpdateStatusList1737110469000();
|
|
9232
9333
|
await updateMig.down(queryRunner);
|
|
9233
9334
|
const createMig = new CreateStatusList1693866470002();
|
|
9234
9335
|
const down = await createMig.down(queryRunner);
|
|
9235
|
-
|
|
9336
|
+
debug23("Migration statements executed");
|
|
9236
9337
|
return down;
|
|
9237
9338
|
} else {
|
|
9238
9339
|
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`);
|
|
@@ -9241,7 +9342,7 @@ var CreateStatusList1693866470000 = class {
|
|
|
9241
9342
|
};
|
|
9242
9343
|
|
|
9243
9344
|
// src/migrations/generic/5-CreateAuditEvents.ts
|
|
9244
|
-
var
|
|
9345
|
+
var import_debug24 = __toESM(require("debug"), 1);
|
|
9245
9346
|
|
|
9246
9347
|
// src/migrations/postgres/1701634812183-CreateAuditEvents.ts
|
|
9247
9348
|
var CreateAuditEvents1701634812183 = class {
|
|
@@ -9340,30 +9441,30 @@ var CreateAuditEvents1701634819487 = class {
|
|
|
9340
9441
|
};
|
|
9341
9442
|
|
|
9342
9443
|
// src/migrations/generic/5-CreateAuditEvents.ts
|
|
9343
|
-
var
|
|
9444
|
+
var debug24 = (0, import_debug24.default)("sphereon:ssi-sdk:migrations");
|
|
9344
9445
|
var CreateAuditEvents1701635835330 = class {
|
|
9345
9446
|
static {
|
|
9346
9447
|
__name(this, "CreateAuditEvents1701635835330");
|
|
9347
9448
|
}
|
|
9348
9449
|
name = "CreateAuditEvents1701635835330";
|
|
9349
9450
|
async up(queryRunner) {
|
|
9350
|
-
|
|
9451
|
+
debug24("migration: creating audit events tables");
|
|
9351
9452
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9352
9453
|
switch (dbType) {
|
|
9353
9454
|
case "postgres": {
|
|
9354
|
-
|
|
9455
|
+
debug24("using postgres migration file");
|
|
9355
9456
|
const mig = new CreateAuditEvents1701634812183();
|
|
9356
9457
|
await mig.up(queryRunner);
|
|
9357
|
-
|
|
9458
|
+
debug24("Migration statements executed");
|
|
9358
9459
|
return;
|
|
9359
9460
|
}
|
|
9360
9461
|
case "sqlite":
|
|
9361
9462
|
case "expo":
|
|
9362
9463
|
case "react-native": {
|
|
9363
|
-
|
|
9464
|
+
debug24("using sqlite/react-native migration file");
|
|
9364
9465
|
const mig = new CreateAuditEvents1701634819487();
|
|
9365
9466
|
await mig.up(queryRunner);
|
|
9366
|
-
|
|
9467
|
+
debug24("Migration statements executed");
|
|
9367
9468
|
return;
|
|
9368
9469
|
}
|
|
9369
9470
|
default:
|
|
@@ -9371,23 +9472,23 @@ var CreateAuditEvents1701635835330 = class {
|
|
|
9371
9472
|
}
|
|
9372
9473
|
}
|
|
9373
9474
|
async down(queryRunner) {
|
|
9374
|
-
|
|
9475
|
+
debug24("migration: reverting audit events tables");
|
|
9375
9476
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9376
9477
|
switch (dbType) {
|
|
9377
9478
|
case "postgres": {
|
|
9378
|
-
|
|
9479
|
+
debug24("using postgres migration file");
|
|
9379
9480
|
const mig = new CreateAuditEvents1701634812183();
|
|
9380
9481
|
await mig.down(queryRunner);
|
|
9381
|
-
|
|
9482
|
+
debug24("Migration statements executed");
|
|
9382
9483
|
return;
|
|
9383
9484
|
}
|
|
9384
9485
|
case "sqlite":
|
|
9385
9486
|
case "expo":
|
|
9386
9487
|
case "react-native": {
|
|
9387
|
-
|
|
9488
|
+
debug24("using sqlite/react-native migration file");
|
|
9388
9489
|
const mig = new CreateAuditEvents1701634819487();
|
|
9389
9490
|
await mig.down(queryRunner);
|
|
9390
|
-
|
|
9491
|
+
debug24("Migration statements executed");
|
|
9391
9492
|
return;
|
|
9392
9493
|
}
|
|
9393
9494
|
default:
|
|
@@ -9397,7 +9498,7 @@ var CreateAuditEvents1701635835330 = class {
|
|
|
9397
9498
|
};
|
|
9398
9499
|
|
|
9399
9500
|
// src/migrations/generic/6-CreateDigitalCredential.ts
|
|
9400
|
-
var
|
|
9501
|
+
var import_debug25 = __toESM(require("debug"), 1);
|
|
9401
9502
|
|
|
9402
9503
|
// src/migrations/postgres/1708525189001-CreateDigitalCredential.ts
|
|
9403
9504
|
var CreateDigitalCredential1708525189001 = class {
|
|
@@ -9505,30 +9606,30 @@ var CreateDigitalCredential1708525189002 = class {
|
|
|
9505
9606
|
};
|
|
9506
9607
|
|
|
9507
9608
|
// src/migrations/generic/6-CreateDigitalCredential.ts
|
|
9508
|
-
var
|
|
9609
|
+
var debug25 = (0, import_debug25.default)("sphereon:ssi-sdk:migrations");
|
|
9509
9610
|
var CreateDigitalCredential1708525189000 = class {
|
|
9510
9611
|
static {
|
|
9511
9612
|
__name(this, "CreateDigitalCredential1708525189000");
|
|
9512
9613
|
}
|
|
9513
9614
|
name = "CreateDigitalCredential1708525189000";
|
|
9514
9615
|
async up(queryRunner) {
|
|
9515
|
-
|
|
9616
|
+
debug25("migration: creating DigitalCredential tables");
|
|
9516
9617
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9517
9618
|
switch (dbType) {
|
|
9518
9619
|
case "postgres": {
|
|
9519
|
-
|
|
9620
|
+
debug25("using postgres migration file for DigitalCredential");
|
|
9520
9621
|
const mig = new CreateDigitalCredential1708525189001();
|
|
9521
9622
|
await mig.up(queryRunner);
|
|
9522
|
-
|
|
9623
|
+
debug25("Postgres Migration statements for DigitalCredential executed");
|
|
9523
9624
|
return;
|
|
9524
9625
|
}
|
|
9525
9626
|
case "sqlite":
|
|
9526
9627
|
case "expo":
|
|
9527
9628
|
case "react-native": {
|
|
9528
|
-
|
|
9629
|
+
debug25("using sqlite/react-native migration file for DigitalCredential");
|
|
9529
9630
|
const mig = new CreateDigitalCredential1708525189002();
|
|
9530
9631
|
await mig.up(queryRunner);
|
|
9531
|
-
|
|
9632
|
+
debug25("SQLite Migration statements for DigitalCredential executed");
|
|
9532
9633
|
return;
|
|
9533
9634
|
}
|
|
9534
9635
|
default:
|
|
@@ -9536,23 +9637,23 @@ var CreateDigitalCredential1708525189000 = class {
|
|
|
9536
9637
|
}
|
|
9537
9638
|
}
|
|
9538
9639
|
async down(queryRunner) {
|
|
9539
|
-
|
|
9640
|
+
debug25("migration: reverting DigitalCredential tables");
|
|
9540
9641
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9541
9642
|
switch (dbType) {
|
|
9542
9643
|
case "postgres": {
|
|
9543
|
-
|
|
9644
|
+
debug25("using postgres migration file for DigitalCredential");
|
|
9544
9645
|
const mig = new CreateDigitalCredential1708525189001();
|
|
9545
9646
|
await mig.down(queryRunner);
|
|
9546
|
-
|
|
9647
|
+
debug25("Postgres Migration statements for DigitalCredential reverted");
|
|
9547
9648
|
return;
|
|
9548
9649
|
}
|
|
9549
9650
|
case "sqlite":
|
|
9550
9651
|
case "expo":
|
|
9551
9652
|
case "react-native": {
|
|
9552
|
-
|
|
9653
|
+
debug25("using sqlite/react-native migration file for DigitalCredential");
|
|
9553
9654
|
const mig = new CreateDigitalCredential1708525189002();
|
|
9554
9655
|
await mig.down(queryRunner);
|
|
9555
|
-
|
|
9656
|
+
debug25("SQLite Migration statements for DigitalCredential reverted");
|
|
9556
9657
|
return;
|
|
9557
9658
|
}
|
|
9558
9659
|
default:
|
|
@@ -9562,7 +9663,7 @@ var CreateDigitalCredential1708525189000 = class {
|
|
|
9562
9663
|
};
|
|
9563
9664
|
|
|
9564
9665
|
// src/migrations/generic/7-CreateMachineStateStore.ts
|
|
9565
|
-
var
|
|
9666
|
+
var import_debug26 = __toESM(require("debug"), 1);
|
|
9566
9667
|
|
|
9567
9668
|
// src/migrations/postgres/1708797018115-CreateMachineStateStore.ts
|
|
9568
9669
|
var CreateMachineStateStore1708797018115 = class {
|
|
@@ -9624,30 +9725,30 @@ var CreateMachineStateStore1708796002272 = class {
|
|
|
9624
9725
|
};
|
|
9625
9726
|
|
|
9626
9727
|
// src/migrations/generic/7-CreateMachineStateStore.ts
|
|
9627
|
-
var
|
|
9728
|
+
var debug26 = (0, import_debug26.default)("sphereon:ssi-sdk:migrations");
|
|
9628
9729
|
var CreateMachineStateStore1708098041262 = class {
|
|
9629
9730
|
static {
|
|
9630
9731
|
__name(this, "CreateMachineStateStore1708098041262");
|
|
9631
9732
|
}
|
|
9632
9733
|
name = "CreateMachineStateStore1708098041262";
|
|
9633
9734
|
async up(queryRunner) {
|
|
9634
|
-
|
|
9735
|
+
debug26("migration: creating machine state tables");
|
|
9635
9736
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9636
9737
|
switch (dbType) {
|
|
9637
9738
|
case "postgres": {
|
|
9638
|
-
|
|
9739
|
+
debug26("using postgres migration file");
|
|
9639
9740
|
const mig = new CreateMachineStateStore1708797018115();
|
|
9640
9741
|
await mig.up(queryRunner);
|
|
9641
|
-
|
|
9742
|
+
debug26("Migration statements executed");
|
|
9642
9743
|
return;
|
|
9643
9744
|
}
|
|
9644
9745
|
case "sqlite":
|
|
9645
9746
|
case "expo":
|
|
9646
9747
|
case "react-native": {
|
|
9647
|
-
|
|
9748
|
+
debug26("using sqlite/react-native migration file");
|
|
9648
9749
|
const mig = new CreateMachineStateStore1708796002272();
|
|
9649
9750
|
await mig.up(queryRunner);
|
|
9650
|
-
|
|
9751
|
+
debug26("Migration statements executed");
|
|
9651
9752
|
return;
|
|
9652
9753
|
}
|
|
9653
9754
|
default:
|
|
@@ -9655,23 +9756,23 @@ var CreateMachineStateStore1708098041262 = class {
|
|
|
9655
9756
|
}
|
|
9656
9757
|
}
|
|
9657
9758
|
async down(queryRunner) {
|
|
9658
|
-
|
|
9759
|
+
debug26("migration: reverting machine state tables");
|
|
9659
9760
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9660
9761
|
switch (dbType) {
|
|
9661
9762
|
case "postgres": {
|
|
9662
|
-
|
|
9763
|
+
debug26("using postgres migration file");
|
|
9663
9764
|
const mig = new CreateMachineStateStore1708797018115();
|
|
9664
9765
|
await mig.down(queryRunner);
|
|
9665
|
-
|
|
9766
|
+
debug26("Migration statements executed");
|
|
9666
9767
|
return;
|
|
9667
9768
|
}
|
|
9668
9769
|
case "sqlite":
|
|
9669
9770
|
case "expo":
|
|
9670
9771
|
case "react-native": {
|
|
9671
|
-
|
|
9772
|
+
debug26("using sqlite/react-native migration file");
|
|
9672
9773
|
const mig = new CreateMachineStateStore1708796002272();
|
|
9673
9774
|
await mig.down(queryRunner);
|
|
9674
|
-
|
|
9775
|
+
debug26("Migration statements executed");
|
|
9675
9776
|
return;
|
|
9676
9777
|
}
|
|
9677
9778
|
default:
|
|
@@ -9681,7 +9782,7 @@ var CreateMachineStateStore1708098041262 = class {
|
|
|
9681
9782
|
};
|
|
9682
9783
|
|
|
9683
9784
|
// src/migrations/generic/8-CreateContacts.ts
|
|
9684
|
-
var
|
|
9785
|
+
var import_debug27 = __toESM(require("debug"), 1);
|
|
9685
9786
|
|
|
9686
9787
|
// src/migrations/postgres/1710438363001-CreateContacts.ts
|
|
9687
9788
|
var CreateContacts1710438363001 = class {
|
|
@@ -9795,30 +9896,30 @@ var CreateContacts1710438363002 = class {
|
|
|
9795
9896
|
};
|
|
9796
9897
|
|
|
9797
9898
|
// src/migrations/generic/8-CreateContacts.ts
|
|
9798
|
-
var
|
|
9899
|
+
var debug27 = (0, import_debug27.default)("sphereon:ssi-sdk:migrations");
|
|
9799
9900
|
var CreateContacts1708525189000 = class {
|
|
9800
9901
|
static {
|
|
9801
9902
|
__name(this, "CreateContacts1708525189000");
|
|
9802
9903
|
}
|
|
9803
9904
|
name = "CreateContacts1708525189000";
|
|
9804
9905
|
async up(queryRunner) {
|
|
9805
|
-
|
|
9906
|
+
debug27("migration: updating contact tables");
|
|
9806
9907
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9807
9908
|
switch (dbType) {
|
|
9808
9909
|
case "postgres": {
|
|
9809
|
-
|
|
9910
|
+
debug27("using postgres migration file");
|
|
9810
9911
|
const mig = new CreateContacts1710438363001();
|
|
9811
9912
|
await mig.up(queryRunner);
|
|
9812
|
-
|
|
9913
|
+
debug27("Migration statements executed");
|
|
9813
9914
|
return;
|
|
9814
9915
|
}
|
|
9815
9916
|
case "sqlite":
|
|
9816
9917
|
case "expo":
|
|
9817
9918
|
case "react-native": {
|
|
9818
|
-
|
|
9919
|
+
debug27("using sqlite/react-native migration file");
|
|
9819
9920
|
const mig = new CreateContacts1710438363002();
|
|
9820
9921
|
await mig.up(queryRunner);
|
|
9821
|
-
|
|
9922
|
+
debug27("Migration statements executed");
|
|
9822
9923
|
return;
|
|
9823
9924
|
}
|
|
9824
9925
|
default:
|
|
@@ -9826,23 +9927,23 @@ var CreateContacts1708525189000 = class {
|
|
|
9826
9927
|
}
|
|
9827
9928
|
}
|
|
9828
9929
|
async down(queryRunner) {
|
|
9829
|
-
|
|
9930
|
+
debug27("migration: reverting machine state tables");
|
|
9830
9931
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9831
9932
|
switch (dbType) {
|
|
9832
9933
|
case "postgres": {
|
|
9833
|
-
|
|
9934
|
+
debug27("using postgres migration file");
|
|
9834
9935
|
const mig = new CreateContacts1710438363001();
|
|
9835
9936
|
await mig.down(queryRunner);
|
|
9836
|
-
|
|
9937
|
+
debug27("Migration statements executed");
|
|
9837
9938
|
return;
|
|
9838
9939
|
}
|
|
9839
9940
|
case "sqlite":
|
|
9840
9941
|
case "expo":
|
|
9841
9942
|
case "react-native": {
|
|
9842
|
-
|
|
9943
|
+
debug27("using sqlite/react-native migration file");
|
|
9843
9944
|
const mig = new CreateContacts1710438363002();
|
|
9844
9945
|
await mig.down(queryRunner);
|
|
9845
|
-
|
|
9946
|
+
debug27("Migration statements executed");
|
|
9846
9947
|
return;
|
|
9847
9948
|
}
|
|
9848
9949
|
default:
|
|
@@ -9852,7 +9953,7 @@ var CreateContacts1708525189000 = class {
|
|
|
9852
9953
|
};
|
|
9853
9954
|
|
|
9854
9955
|
// src/migrations/generic/9-CreateContacts.ts
|
|
9855
|
-
var
|
|
9956
|
+
var import_debug28 = __toESM(require("debug"), 1);
|
|
9856
9957
|
|
|
9857
9958
|
// src/migrations/postgres/1715761125001-CreateContacts.ts
|
|
9858
9959
|
var CreateContacts1715761125001 = class {
|
|
@@ -9964,30 +10065,30 @@ var CreateContacts1715761125002 = class {
|
|
|
9964
10065
|
};
|
|
9965
10066
|
|
|
9966
10067
|
// src/migrations/generic/9-CreateContacts.ts
|
|
9967
|
-
var
|
|
10068
|
+
var debug28 = (0, import_debug28.default)("sphereon:ssi-sdk:migrations");
|
|
9968
10069
|
var CreateContacts1715761125000 = class {
|
|
9969
10070
|
static {
|
|
9970
10071
|
__name(this, "CreateContacts1715761125000");
|
|
9971
10072
|
}
|
|
9972
10073
|
name = "CreateContacts1715761125000";
|
|
9973
10074
|
async up(queryRunner) {
|
|
9974
|
-
|
|
10075
|
+
debug28("migration: updating contact tables");
|
|
9975
10076
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9976
10077
|
switch (dbType) {
|
|
9977
10078
|
case "postgres": {
|
|
9978
|
-
|
|
10079
|
+
debug28("using postgres migration file");
|
|
9979
10080
|
const mig = new CreateContacts1715761125001();
|
|
9980
10081
|
await mig.up(queryRunner);
|
|
9981
|
-
|
|
10082
|
+
debug28("Migration statements executed");
|
|
9982
10083
|
return;
|
|
9983
10084
|
}
|
|
9984
10085
|
case "sqlite":
|
|
9985
10086
|
case "expo":
|
|
9986
10087
|
case "react-native": {
|
|
9987
|
-
|
|
10088
|
+
debug28("using sqlite/react-native migration file");
|
|
9988
10089
|
const mig = new CreateContacts1715761125002();
|
|
9989
10090
|
await mig.up(queryRunner);
|
|
9990
|
-
|
|
10091
|
+
debug28("Migration statements executed");
|
|
9991
10092
|
return;
|
|
9992
10093
|
}
|
|
9993
10094
|
default:
|
|
@@ -9995,23 +10096,23 @@ var CreateContacts1715761125000 = class {
|
|
|
9995
10096
|
}
|
|
9996
10097
|
}
|
|
9997
10098
|
async down(queryRunner) {
|
|
9998
|
-
|
|
10099
|
+
debug28("migration: reverting machine state tables");
|
|
9999
10100
|
const dbType = queryRunner.connection.driver.options.type;
|
|
10000
10101
|
switch (dbType) {
|
|
10001
10102
|
case "postgres": {
|
|
10002
|
-
|
|
10103
|
+
debug28("using postgres migration file");
|
|
10003
10104
|
const mig = new CreateContacts1715761125001();
|
|
10004
10105
|
await mig.down(queryRunner);
|
|
10005
|
-
|
|
10106
|
+
debug28("Migration statements executed");
|
|
10006
10107
|
return;
|
|
10007
10108
|
}
|
|
10008
10109
|
case "sqlite":
|
|
10009
10110
|
case "expo":
|
|
10010
10111
|
case "react-native": {
|
|
10011
|
-
|
|
10112
|
+
debug28("using sqlite/react-native migration file");
|
|
10012
10113
|
const mig = new CreateContacts1715761125002();
|
|
10013
10114
|
await mig.down(queryRunner);
|
|
10014
|
-
|
|
10115
|
+
debug28("Migration statements executed");
|
|
10015
10116
|
return;
|
|
10016
10117
|
}
|
|
10017
10118
|
default:
|
|
@@ -10025,7 +10126,8 @@ var DataStoreContactMigrations = [
|
|
|
10025
10126
|
CreateContacts1659463079429,
|
|
10026
10127
|
CreateContacts1690925872318,
|
|
10027
10128
|
CreateContacts1708525189000,
|
|
10028
|
-
CreateContacts1715761125000
|
|
10129
|
+
CreateContacts1715761125000,
|
|
10130
|
+
MakeOpenIdClientSecretNullable1767000000000
|
|
10029
10131
|
];
|
|
10030
10132
|
var DataStoreIssuanceBrandingMigrations = [
|
|
10031
10133
|
CreateIssuanceBranding1659463079429,
|