@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.js
CHANGED
|
@@ -1744,7 +1744,7 @@ _ts_decorate16([
|
|
|
1744
1744
|
Column13("varchar", {
|
|
1745
1745
|
name: "client_secret",
|
|
1746
1746
|
length: 255,
|
|
1747
|
-
nullable:
|
|
1747
|
+
nullable: true
|
|
1748
1748
|
}),
|
|
1749
1749
|
_ts_metadata15("design:type", String)
|
|
1750
1750
|
], OpenIdConfigEntity.prototype, "clientSecret", void 0);
|
|
@@ -8487,32 +8487,133 @@ var AddServiceMetadata1764000000000 = class {
|
|
|
8487
8487
|
}
|
|
8488
8488
|
};
|
|
8489
8489
|
|
|
8490
|
-
// src/migrations/generic/
|
|
8490
|
+
// src/migrations/generic/16-MakeOpenIdClientSecretNullable.ts
|
|
8491
|
+
import Debug20 from "debug";
|
|
8492
|
+
|
|
8493
|
+
// src/migrations/postgres/1767000000001-MakeOpenIdClientSecretNullable.ts
|
|
8491
8494
|
import Debug18 from "debug";
|
|
8492
8495
|
var debug18 = Debug18("sphereon:ssi-sdk:migrations");
|
|
8496
|
+
var MakeOpenIdClientSecretNullable1767000000001 = class {
|
|
8497
|
+
static {
|
|
8498
|
+
__name(this, "MakeOpenIdClientSecretNullable1767000000001");
|
|
8499
|
+
}
|
|
8500
|
+
name = "MakeOpenIdClientSecretNullable1767000000001";
|
|
8501
|
+
async up(queryRunner) {
|
|
8502
|
+
const table = await queryRunner.getTable("BaseConfig");
|
|
8503
|
+
if (!table) {
|
|
8504
|
+
debug18("MakeOpenIdClientSecretNullable: Skipping migration - BaseConfig table does not exist");
|
|
8505
|
+
return;
|
|
8506
|
+
}
|
|
8507
|
+
const column = table.columns.find((col) => col.name === "client_secret");
|
|
8508
|
+
if (column && !column.isNullable) {
|
|
8509
|
+
await queryRunner.query(`ALTER TABLE "BaseConfig" ALTER COLUMN "client_secret" DROP NOT NULL`);
|
|
8510
|
+
debug18("MakeOpenIdClientSecretNullable: Made client_secret nullable");
|
|
8511
|
+
}
|
|
8512
|
+
}
|
|
8513
|
+
async down(queryRunner) {
|
|
8514
|
+
const table = await queryRunner.getTable("BaseConfig");
|
|
8515
|
+
if (!table) {
|
|
8516
|
+
return;
|
|
8517
|
+
}
|
|
8518
|
+
await queryRunner.query(`UPDATE "BaseConfig" SET "client_secret" = '' WHERE "client_secret" IS NULL`);
|
|
8519
|
+
await queryRunner.query(`ALTER TABLE "BaseConfig" ALTER COLUMN "client_secret" SET NOT NULL`);
|
|
8520
|
+
}
|
|
8521
|
+
};
|
|
8522
|
+
|
|
8523
|
+
// src/migrations/sqlite/1767000000002-MakeOpenIdClientSecretNullable.ts
|
|
8524
|
+
import Debug19 from "debug";
|
|
8525
|
+
var debug19 = Debug19("sphereon:ssi-sdk:migrations");
|
|
8526
|
+
var MakeOpenIdClientSecretNullable1767000000002 = class {
|
|
8527
|
+
static {
|
|
8528
|
+
__name(this, "MakeOpenIdClientSecretNullable1767000000002");
|
|
8529
|
+
}
|
|
8530
|
+
name = "MakeOpenIdClientSecretNullable1767000000002";
|
|
8531
|
+
async up(queryRunner) {
|
|
8532
|
+
debug19("MakeOpenIdClientSecretNullable: SQLite does not support ALTER COLUMN, no action needed for nullable change");
|
|
8533
|
+
}
|
|
8534
|
+
async down(queryRunner) {
|
|
8535
|
+
}
|
|
8536
|
+
};
|
|
8537
|
+
|
|
8538
|
+
// src/migrations/generic/16-MakeOpenIdClientSecretNullable.ts
|
|
8539
|
+
var debug20 = Debug20("sphereon:ssi-sdk:migrations");
|
|
8540
|
+
var MakeOpenIdClientSecretNullable1767000000000 = class {
|
|
8541
|
+
static {
|
|
8542
|
+
__name(this, "MakeOpenIdClientSecretNullable1767000000000");
|
|
8543
|
+
}
|
|
8544
|
+
name = "MakeOpenIdClientSecretNullable1767000000000";
|
|
8545
|
+
async up(queryRunner) {
|
|
8546
|
+
debug20("migration: making client_secret nullable in BaseConfig table");
|
|
8547
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
8548
|
+
switch (dbType) {
|
|
8549
|
+
case "postgres": {
|
|
8550
|
+
debug20("using postgres migration file for MakeOpenIdClientSecretNullable");
|
|
8551
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000001();
|
|
8552
|
+
await mig.up(queryRunner);
|
|
8553
|
+
debug20("Postgres migration statements for MakeOpenIdClientSecretNullable executed");
|
|
8554
|
+
return;
|
|
8555
|
+
}
|
|
8556
|
+
case "sqlite":
|
|
8557
|
+
case "expo":
|
|
8558
|
+
case "react-native": {
|
|
8559
|
+
debug20("using sqlite/react-native migration file for MakeOpenIdClientSecretNullable");
|
|
8560
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000002();
|
|
8561
|
+
await mig.up(queryRunner);
|
|
8562
|
+
debug20("SQLite migration statements for MakeOpenIdClientSecretNullable executed");
|
|
8563
|
+
return;
|
|
8564
|
+
}
|
|
8565
|
+
default:
|
|
8566
|
+
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`);
|
|
8567
|
+
}
|
|
8568
|
+
}
|
|
8569
|
+
async down(queryRunner) {
|
|
8570
|
+
debug20("migration: reverting client_secret nullable in BaseConfig table");
|
|
8571
|
+
const dbType = queryRunner.connection.driver.options.type;
|
|
8572
|
+
switch (dbType) {
|
|
8573
|
+
case "postgres": {
|
|
8574
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000001();
|
|
8575
|
+
await mig.down(queryRunner);
|
|
8576
|
+
return;
|
|
8577
|
+
}
|
|
8578
|
+
case "sqlite":
|
|
8579
|
+
case "expo":
|
|
8580
|
+
case "react-native": {
|
|
8581
|
+
const mig = new MakeOpenIdClientSecretNullable1767000000002();
|
|
8582
|
+
await mig.down(queryRunner);
|
|
8583
|
+
return;
|
|
8584
|
+
}
|
|
8585
|
+
default:
|
|
8586
|
+
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`);
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
};
|
|
8590
|
+
|
|
8591
|
+
// src/migrations/generic/2-CreateIssuanceBranding.ts
|
|
8592
|
+
import Debug21 from "debug";
|
|
8593
|
+
var debug21 = Debug21("sphereon:ssi-sdk:migrations");
|
|
8493
8594
|
var CreateIssuanceBranding1659463079429 = class {
|
|
8494
8595
|
static {
|
|
8495
8596
|
__name(this, "CreateIssuanceBranding1659463079429");
|
|
8496
8597
|
}
|
|
8497
8598
|
name = "CreateIssuanceBranding1659463079429";
|
|
8498
8599
|
async up(queryRunner) {
|
|
8499
|
-
|
|
8600
|
+
debug21("migration: creating issuance branding tables");
|
|
8500
8601
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8501
8602
|
switch (dbType) {
|
|
8502
8603
|
case "postgres": {
|
|
8503
|
-
|
|
8604
|
+
debug21("using postgres migration file");
|
|
8504
8605
|
const mig = new CreateIssuanceBranding1685628974232();
|
|
8505
8606
|
await mig.up(queryRunner);
|
|
8506
|
-
|
|
8607
|
+
debug21("Migration statements executed");
|
|
8507
8608
|
return;
|
|
8508
8609
|
}
|
|
8509
8610
|
case "sqlite":
|
|
8510
8611
|
case "expo":
|
|
8511
8612
|
case "react-native": {
|
|
8512
|
-
|
|
8613
|
+
debug21("using sqlite/react-native migration file");
|
|
8513
8614
|
const mig = new CreateIssuanceBranding1685628973231();
|
|
8514
8615
|
await mig.up(queryRunner);
|
|
8515
|
-
|
|
8616
|
+
debug21("Migration statements executed");
|
|
8516
8617
|
return;
|
|
8517
8618
|
}
|
|
8518
8619
|
default:
|
|
@@ -8520,23 +8621,23 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
8520
8621
|
}
|
|
8521
8622
|
}
|
|
8522
8623
|
async down(queryRunner) {
|
|
8523
|
-
|
|
8624
|
+
debug21("migration: reverting issuance branding tables");
|
|
8524
8625
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8525
8626
|
switch (dbType) {
|
|
8526
8627
|
case "postgres": {
|
|
8527
|
-
|
|
8628
|
+
debug21("using postgres migration file");
|
|
8528
8629
|
const mig = new CreateIssuanceBranding1685628974232();
|
|
8529
8630
|
await mig.down(queryRunner);
|
|
8530
|
-
|
|
8631
|
+
debug21("Migration statements executed");
|
|
8531
8632
|
return;
|
|
8532
8633
|
}
|
|
8533
8634
|
case "sqlite":
|
|
8534
8635
|
case "expo":
|
|
8535
8636
|
case "react-native": {
|
|
8536
|
-
|
|
8637
|
+
debug21("using sqlite/react-native migration file");
|
|
8537
8638
|
const mig = new CreateIssuanceBranding1685628973231();
|
|
8538
8639
|
await mig.down(queryRunner);
|
|
8539
|
-
|
|
8640
|
+
debug21("Migration statements executed");
|
|
8540
8641
|
return;
|
|
8541
8642
|
}
|
|
8542
8643
|
default:
|
|
@@ -8546,7 +8647,7 @@ var CreateIssuanceBranding1659463079429 = class {
|
|
|
8546
8647
|
};
|
|
8547
8648
|
|
|
8548
8649
|
// src/migrations/generic/3-CreateContacts.ts
|
|
8549
|
-
import
|
|
8650
|
+
import Debug22 from "debug";
|
|
8550
8651
|
|
|
8551
8652
|
// src/migrations/postgres/1690925872592-CreateContacts.ts
|
|
8552
8653
|
import { enablePostgresUuidExtension as enablePostgresUuidExtension3 } from "@sphereon/ssi-sdk.core";
|
|
@@ -8767,30 +8868,30 @@ var CreateContacts1690925872693 = class {
|
|
|
8767
8868
|
};
|
|
8768
8869
|
|
|
8769
8870
|
// src/migrations/generic/3-CreateContacts.ts
|
|
8770
|
-
var
|
|
8871
|
+
var debug22 = Debug22("sphereon:ssi-sdk:migrations");
|
|
8771
8872
|
var CreateContacts1690925872318 = class {
|
|
8772
8873
|
static {
|
|
8773
8874
|
__name(this, "CreateContacts1690925872318");
|
|
8774
8875
|
}
|
|
8775
8876
|
name = "CreateContacts1690925872318";
|
|
8776
8877
|
async up(queryRunner) {
|
|
8777
|
-
|
|
8878
|
+
debug22("migration: creating contacts tables");
|
|
8778
8879
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8779
8880
|
switch (dbType) {
|
|
8780
8881
|
case "postgres": {
|
|
8781
|
-
|
|
8882
|
+
debug22("using postgres migration file");
|
|
8782
8883
|
const mig = new CreateContacts1690925872592();
|
|
8783
8884
|
await mig.up(queryRunner);
|
|
8784
|
-
|
|
8885
|
+
debug22("Migration statements executed");
|
|
8785
8886
|
return;
|
|
8786
8887
|
}
|
|
8787
8888
|
case "sqlite":
|
|
8788
8889
|
case "expo":
|
|
8789
8890
|
case "react-native": {
|
|
8790
|
-
|
|
8891
|
+
debug22("using sqlite/react-native migration file");
|
|
8791
8892
|
const mig = new CreateContacts1690925872693();
|
|
8792
8893
|
await mig.up(queryRunner);
|
|
8793
|
-
|
|
8894
|
+
debug22("Migration statements executed");
|
|
8794
8895
|
return;
|
|
8795
8896
|
}
|
|
8796
8897
|
default:
|
|
@@ -8798,23 +8899,23 @@ var CreateContacts1690925872318 = class {
|
|
|
8798
8899
|
}
|
|
8799
8900
|
}
|
|
8800
8901
|
async down(queryRunner) {
|
|
8801
|
-
|
|
8902
|
+
debug22("migration: reverting contacts tables");
|
|
8802
8903
|
const dbType = queryRunner.connection.driver.options.type;
|
|
8803
8904
|
switch (dbType) {
|
|
8804
8905
|
case "postgres": {
|
|
8805
|
-
|
|
8906
|
+
debug22("using postgres migration file");
|
|
8806
8907
|
const mig = new CreateContacts1690925872592();
|
|
8807
8908
|
await mig.down(queryRunner);
|
|
8808
|
-
|
|
8909
|
+
debug22("Migration statements executed");
|
|
8809
8910
|
return;
|
|
8810
8911
|
}
|
|
8811
8912
|
case "sqlite":
|
|
8812
8913
|
case "expo":
|
|
8813
8914
|
case "react-native": {
|
|
8814
|
-
|
|
8915
|
+
debug22("using sqlite/react-native migration file");
|
|
8815
8916
|
const mig = new CreateContacts1690925872693();
|
|
8816
8917
|
await mig.down(queryRunner);
|
|
8817
|
-
|
|
8918
|
+
debug22("Migration statements executed");
|
|
8818
8919
|
return;
|
|
8819
8920
|
}
|
|
8820
8921
|
default:
|
|
@@ -8824,7 +8925,7 @@ var CreateContacts1690925872318 = class {
|
|
|
8824
8925
|
};
|
|
8825
8926
|
|
|
8826
8927
|
// src/migrations/generic/4-CreateStatusList.ts
|
|
8827
|
-
import
|
|
8928
|
+
import Debug23 from "debug";
|
|
8828
8929
|
|
|
8829
8930
|
// src/migrations/postgres/1693866470001-CreateStatusList.ts
|
|
8830
8931
|
var CreateStatusList1693866470001 = class {
|
|
@@ -9030,53 +9131,53 @@ var UpdateStatusList1737110469000 = class {
|
|
|
9030
9131
|
};
|
|
9031
9132
|
|
|
9032
9133
|
// src/migrations/generic/4-CreateStatusList.ts
|
|
9033
|
-
var
|
|
9134
|
+
var debug23 = Debug23("sphereon:ssi-sdk:migrations");
|
|
9034
9135
|
var CreateStatusList1693866470000 = class {
|
|
9035
9136
|
static {
|
|
9036
9137
|
__name(this, "CreateStatusList1693866470000");
|
|
9037
9138
|
}
|
|
9038
9139
|
name = "CreateStatusList1693866470000";
|
|
9039
9140
|
async up(queryRunner) {
|
|
9040
|
-
|
|
9141
|
+
debug23("migration: creating issuance branding tables");
|
|
9041
9142
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9042
9143
|
if (dbType === "postgres") {
|
|
9043
|
-
|
|
9144
|
+
debug23("using postgres migration files");
|
|
9044
9145
|
const createMig = new CreateStatusList1693866470001();
|
|
9045
9146
|
await createMig.up(queryRunner);
|
|
9046
9147
|
const updateMig = new UpdateStatusList1737110469001();
|
|
9047
9148
|
const up = await updateMig.up(queryRunner);
|
|
9048
|
-
|
|
9149
|
+
debug23("Migration statements executed");
|
|
9049
9150
|
return up;
|
|
9050
9151
|
} else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
|
|
9051
|
-
|
|
9152
|
+
debug23("using sqlite/react-native migration files");
|
|
9052
9153
|
const createMig = new CreateStatusList1693866470002();
|
|
9053
9154
|
await createMig.up(queryRunner);
|
|
9054
9155
|
const updateMig = new UpdateStatusList1737110469000();
|
|
9055
9156
|
const up = await updateMig.up(queryRunner);
|
|
9056
|
-
|
|
9157
|
+
debug23("Migration statements executed");
|
|
9057
9158
|
return up;
|
|
9058
9159
|
} else {
|
|
9059
9160
|
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`);
|
|
9060
9161
|
}
|
|
9061
9162
|
}
|
|
9062
9163
|
async down(queryRunner) {
|
|
9063
|
-
|
|
9164
|
+
debug23("migration: reverting issuance branding tables");
|
|
9064
9165
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9065
9166
|
if (dbType === "postgres") {
|
|
9066
|
-
|
|
9167
|
+
debug23("using postgres migration files");
|
|
9067
9168
|
const updateMig = new UpdateStatusList1737110469001();
|
|
9068
9169
|
await updateMig.down(queryRunner);
|
|
9069
9170
|
const createMig = new CreateStatusList1693866470001();
|
|
9070
9171
|
const down = await createMig.down(queryRunner);
|
|
9071
|
-
|
|
9172
|
+
debug23("Migration statements executed");
|
|
9072
9173
|
return down;
|
|
9073
9174
|
} else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
|
|
9074
|
-
|
|
9175
|
+
debug23("using sqlite/react-native migration files");
|
|
9075
9176
|
const updateMig = new UpdateStatusList1737110469000();
|
|
9076
9177
|
await updateMig.down(queryRunner);
|
|
9077
9178
|
const createMig = new CreateStatusList1693866470002();
|
|
9078
9179
|
const down = await createMig.down(queryRunner);
|
|
9079
|
-
|
|
9180
|
+
debug23("Migration statements executed");
|
|
9080
9181
|
return down;
|
|
9081
9182
|
} else {
|
|
9082
9183
|
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`);
|
|
@@ -9085,7 +9186,7 @@ var CreateStatusList1693866470000 = class {
|
|
|
9085
9186
|
};
|
|
9086
9187
|
|
|
9087
9188
|
// src/migrations/generic/5-CreateAuditEvents.ts
|
|
9088
|
-
import
|
|
9189
|
+
import Debug24 from "debug";
|
|
9089
9190
|
|
|
9090
9191
|
// src/migrations/postgres/1701634812183-CreateAuditEvents.ts
|
|
9091
9192
|
var CreateAuditEvents1701634812183 = class {
|
|
@@ -9184,30 +9285,30 @@ var CreateAuditEvents1701634819487 = class {
|
|
|
9184
9285
|
};
|
|
9185
9286
|
|
|
9186
9287
|
// src/migrations/generic/5-CreateAuditEvents.ts
|
|
9187
|
-
var
|
|
9288
|
+
var debug24 = Debug24("sphereon:ssi-sdk:migrations");
|
|
9188
9289
|
var CreateAuditEvents1701635835330 = class {
|
|
9189
9290
|
static {
|
|
9190
9291
|
__name(this, "CreateAuditEvents1701635835330");
|
|
9191
9292
|
}
|
|
9192
9293
|
name = "CreateAuditEvents1701635835330";
|
|
9193
9294
|
async up(queryRunner) {
|
|
9194
|
-
|
|
9295
|
+
debug24("migration: creating audit events tables");
|
|
9195
9296
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9196
9297
|
switch (dbType) {
|
|
9197
9298
|
case "postgres": {
|
|
9198
|
-
|
|
9299
|
+
debug24("using postgres migration file");
|
|
9199
9300
|
const mig = new CreateAuditEvents1701634812183();
|
|
9200
9301
|
await mig.up(queryRunner);
|
|
9201
|
-
|
|
9302
|
+
debug24("Migration statements executed");
|
|
9202
9303
|
return;
|
|
9203
9304
|
}
|
|
9204
9305
|
case "sqlite":
|
|
9205
9306
|
case "expo":
|
|
9206
9307
|
case "react-native": {
|
|
9207
|
-
|
|
9308
|
+
debug24("using sqlite/react-native migration file");
|
|
9208
9309
|
const mig = new CreateAuditEvents1701634819487();
|
|
9209
9310
|
await mig.up(queryRunner);
|
|
9210
|
-
|
|
9311
|
+
debug24("Migration statements executed");
|
|
9211
9312
|
return;
|
|
9212
9313
|
}
|
|
9213
9314
|
default:
|
|
@@ -9215,23 +9316,23 @@ var CreateAuditEvents1701635835330 = class {
|
|
|
9215
9316
|
}
|
|
9216
9317
|
}
|
|
9217
9318
|
async down(queryRunner) {
|
|
9218
|
-
|
|
9319
|
+
debug24("migration: reverting audit events tables");
|
|
9219
9320
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9220
9321
|
switch (dbType) {
|
|
9221
9322
|
case "postgres": {
|
|
9222
|
-
|
|
9323
|
+
debug24("using postgres migration file");
|
|
9223
9324
|
const mig = new CreateAuditEvents1701634812183();
|
|
9224
9325
|
await mig.down(queryRunner);
|
|
9225
|
-
|
|
9326
|
+
debug24("Migration statements executed");
|
|
9226
9327
|
return;
|
|
9227
9328
|
}
|
|
9228
9329
|
case "sqlite":
|
|
9229
9330
|
case "expo":
|
|
9230
9331
|
case "react-native": {
|
|
9231
|
-
|
|
9332
|
+
debug24("using sqlite/react-native migration file");
|
|
9232
9333
|
const mig = new CreateAuditEvents1701634819487();
|
|
9233
9334
|
await mig.down(queryRunner);
|
|
9234
|
-
|
|
9335
|
+
debug24("Migration statements executed");
|
|
9235
9336
|
return;
|
|
9236
9337
|
}
|
|
9237
9338
|
default:
|
|
@@ -9241,7 +9342,7 @@ var CreateAuditEvents1701635835330 = class {
|
|
|
9241
9342
|
};
|
|
9242
9343
|
|
|
9243
9344
|
// src/migrations/generic/6-CreateDigitalCredential.ts
|
|
9244
|
-
import
|
|
9345
|
+
import Debug25 from "debug";
|
|
9245
9346
|
|
|
9246
9347
|
// src/migrations/postgres/1708525189001-CreateDigitalCredential.ts
|
|
9247
9348
|
var CreateDigitalCredential1708525189001 = class {
|
|
@@ -9349,30 +9450,30 @@ var CreateDigitalCredential1708525189002 = class {
|
|
|
9349
9450
|
};
|
|
9350
9451
|
|
|
9351
9452
|
// src/migrations/generic/6-CreateDigitalCredential.ts
|
|
9352
|
-
var
|
|
9453
|
+
var debug25 = Debug25("sphereon:ssi-sdk:migrations");
|
|
9353
9454
|
var CreateDigitalCredential1708525189000 = class {
|
|
9354
9455
|
static {
|
|
9355
9456
|
__name(this, "CreateDigitalCredential1708525189000");
|
|
9356
9457
|
}
|
|
9357
9458
|
name = "CreateDigitalCredential1708525189000";
|
|
9358
9459
|
async up(queryRunner) {
|
|
9359
|
-
|
|
9460
|
+
debug25("migration: creating DigitalCredential tables");
|
|
9360
9461
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9361
9462
|
switch (dbType) {
|
|
9362
9463
|
case "postgres": {
|
|
9363
|
-
|
|
9464
|
+
debug25("using postgres migration file for DigitalCredential");
|
|
9364
9465
|
const mig = new CreateDigitalCredential1708525189001();
|
|
9365
9466
|
await mig.up(queryRunner);
|
|
9366
|
-
|
|
9467
|
+
debug25("Postgres Migration statements for DigitalCredential executed");
|
|
9367
9468
|
return;
|
|
9368
9469
|
}
|
|
9369
9470
|
case "sqlite":
|
|
9370
9471
|
case "expo":
|
|
9371
9472
|
case "react-native": {
|
|
9372
|
-
|
|
9473
|
+
debug25("using sqlite/react-native migration file for DigitalCredential");
|
|
9373
9474
|
const mig = new CreateDigitalCredential1708525189002();
|
|
9374
9475
|
await mig.up(queryRunner);
|
|
9375
|
-
|
|
9476
|
+
debug25("SQLite Migration statements for DigitalCredential executed");
|
|
9376
9477
|
return;
|
|
9377
9478
|
}
|
|
9378
9479
|
default:
|
|
@@ -9380,23 +9481,23 @@ var CreateDigitalCredential1708525189000 = class {
|
|
|
9380
9481
|
}
|
|
9381
9482
|
}
|
|
9382
9483
|
async down(queryRunner) {
|
|
9383
|
-
|
|
9484
|
+
debug25("migration: reverting DigitalCredential tables");
|
|
9384
9485
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9385
9486
|
switch (dbType) {
|
|
9386
9487
|
case "postgres": {
|
|
9387
|
-
|
|
9488
|
+
debug25("using postgres migration file for DigitalCredential");
|
|
9388
9489
|
const mig = new CreateDigitalCredential1708525189001();
|
|
9389
9490
|
await mig.down(queryRunner);
|
|
9390
|
-
|
|
9491
|
+
debug25("Postgres Migration statements for DigitalCredential reverted");
|
|
9391
9492
|
return;
|
|
9392
9493
|
}
|
|
9393
9494
|
case "sqlite":
|
|
9394
9495
|
case "expo":
|
|
9395
9496
|
case "react-native": {
|
|
9396
|
-
|
|
9497
|
+
debug25("using sqlite/react-native migration file for DigitalCredential");
|
|
9397
9498
|
const mig = new CreateDigitalCredential1708525189002();
|
|
9398
9499
|
await mig.down(queryRunner);
|
|
9399
|
-
|
|
9500
|
+
debug25("SQLite Migration statements for DigitalCredential reverted");
|
|
9400
9501
|
return;
|
|
9401
9502
|
}
|
|
9402
9503
|
default:
|
|
@@ -9406,7 +9507,7 @@ var CreateDigitalCredential1708525189000 = class {
|
|
|
9406
9507
|
};
|
|
9407
9508
|
|
|
9408
9509
|
// src/migrations/generic/7-CreateMachineStateStore.ts
|
|
9409
|
-
import
|
|
9510
|
+
import Debug26 from "debug";
|
|
9410
9511
|
|
|
9411
9512
|
// src/migrations/postgres/1708797018115-CreateMachineStateStore.ts
|
|
9412
9513
|
var CreateMachineStateStore1708797018115 = class {
|
|
@@ -9468,30 +9569,30 @@ var CreateMachineStateStore1708796002272 = class {
|
|
|
9468
9569
|
};
|
|
9469
9570
|
|
|
9470
9571
|
// src/migrations/generic/7-CreateMachineStateStore.ts
|
|
9471
|
-
var
|
|
9572
|
+
var debug26 = Debug26("sphereon:ssi-sdk:migrations");
|
|
9472
9573
|
var CreateMachineStateStore1708098041262 = class {
|
|
9473
9574
|
static {
|
|
9474
9575
|
__name(this, "CreateMachineStateStore1708098041262");
|
|
9475
9576
|
}
|
|
9476
9577
|
name = "CreateMachineStateStore1708098041262";
|
|
9477
9578
|
async up(queryRunner) {
|
|
9478
|
-
|
|
9579
|
+
debug26("migration: creating machine state tables");
|
|
9479
9580
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9480
9581
|
switch (dbType) {
|
|
9481
9582
|
case "postgres": {
|
|
9482
|
-
|
|
9583
|
+
debug26("using postgres migration file");
|
|
9483
9584
|
const mig = new CreateMachineStateStore1708797018115();
|
|
9484
9585
|
await mig.up(queryRunner);
|
|
9485
|
-
|
|
9586
|
+
debug26("Migration statements executed");
|
|
9486
9587
|
return;
|
|
9487
9588
|
}
|
|
9488
9589
|
case "sqlite":
|
|
9489
9590
|
case "expo":
|
|
9490
9591
|
case "react-native": {
|
|
9491
|
-
|
|
9592
|
+
debug26("using sqlite/react-native migration file");
|
|
9492
9593
|
const mig = new CreateMachineStateStore1708796002272();
|
|
9493
9594
|
await mig.up(queryRunner);
|
|
9494
|
-
|
|
9595
|
+
debug26("Migration statements executed");
|
|
9495
9596
|
return;
|
|
9496
9597
|
}
|
|
9497
9598
|
default:
|
|
@@ -9499,23 +9600,23 @@ var CreateMachineStateStore1708098041262 = class {
|
|
|
9499
9600
|
}
|
|
9500
9601
|
}
|
|
9501
9602
|
async down(queryRunner) {
|
|
9502
|
-
|
|
9603
|
+
debug26("migration: reverting machine state tables");
|
|
9503
9604
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9504
9605
|
switch (dbType) {
|
|
9505
9606
|
case "postgres": {
|
|
9506
|
-
|
|
9607
|
+
debug26("using postgres migration file");
|
|
9507
9608
|
const mig = new CreateMachineStateStore1708797018115();
|
|
9508
9609
|
await mig.down(queryRunner);
|
|
9509
|
-
|
|
9610
|
+
debug26("Migration statements executed");
|
|
9510
9611
|
return;
|
|
9511
9612
|
}
|
|
9512
9613
|
case "sqlite":
|
|
9513
9614
|
case "expo":
|
|
9514
9615
|
case "react-native": {
|
|
9515
|
-
|
|
9616
|
+
debug26("using sqlite/react-native migration file");
|
|
9516
9617
|
const mig = new CreateMachineStateStore1708796002272();
|
|
9517
9618
|
await mig.down(queryRunner);
|
|
9518
|
-
|
|
9619
|
+
debug26("Migration statements executed");
|
|
9519
9620
|
return;
|
|
9520
9621
|
}
|
|
9521
9622
|
default:
|
|
@@ -9525,7 +9626,7 @@ var CreateMachineStateStore1708098041262 = class {
|
|
|
9525
9626
|
};
|
|
9526
9627
|
|
|
9527
9628
|
// src/migrations/generic/8-CreateContacts.ts
|
|
9528
|
-
import
|
|
9629
|
+
import Debug27 from "debug";
|
|
9529
9630
|
|
|
9530
9631
|
// src/migrations/postgres/1710438363001-CreateContacts.ts
|
|
9531
9632
|
var CreateContacts1710438363001 = class {
|
|
@@ -9639,30 +9740,30 @@ var CreateContacts1710438363002 = class {
|
|
|
9639
9740
|
};
|
|
9640
9741
|
|
|
9641
9742
|
// src/migrations/generic/8-CreateContacts.ts
|
|
9642
|
-
var
|
|
9743
|
+
var debug27 = Debug27("sphereon:ssi-sdk:migrations");
|
|
9643
9744
|
var CreateContacts1708525189000 = class {
|
|
9644
9745
|
static {
|
|
9645
9746
|
__name(this, "CreateContacts1708525189000");
|
|
9646
9747
|
}
|
|
9647
9748
|
name = "CreateContacts1708525189000";
|
|
9648
9749
|
async up(queryRunner) {
|
|
9649
|
-
|
|
9750
|
+
debug27("migration: updating contact tables");
|
|
9650
9751
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9651
9752
|
switch (dbType) {
|
|
9652
9753
|
case "postgres": {
|
|
9653
|
-
|
|
9754
|
+
debug27("using postgres migration file");
|
|
9654
9755
|
const mig = new CreateContacts1710438363001();
|
|
9655
9756
|
await mig.up(queryRunner);
|
|
9656
|
-
|
|
9757
|
+
debug27("Migration statements executed");
|
|
9657
9758
|
return;
|
|
9658
9759
|
}
|
|
9659
9760
|
case "sqlite":
|
|
9660
9761
|
case "expo":
|
|
9661
9762
|
case "react-native": {
|
|
9662
|
-
|
|
9763
|
+
debug27("using sqlite/react-native migration file");
|
|
9663
9764
|
const mig = new CreateContacts1710438363002();
|
|
9664
9765
|
await mig.up(queryRunner);
|
|
9665
|
-
|
|
9766
|
+
debug27("Migration statements executed");
|
|
9666
9767
|
return;
|
|
9667
9768
|
}
|
|
9668
9769
|
default:
|
|
@@ -9670,23 +9771,23 @@ var CreateContacts1708525189000 = class {
|
|
|
9670
9771
|
}
|
|
9671
9772
|
}
|
|
9672
9773
|
async down(queryRunner) {
|
|
9673
|
-
|
|
9774
|
+
debug27("migration: reverting machine state tables");
|
|
9674
9775
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9675
9776
|
switch (dbType) {
|
|
9676
9777
|
case "postgres": {
|
|
9677
|
-
|
|
9778
|
+
debug27("using postgres migration file");
|
|
9678
9779
|
const mig = new CreateContacts1710438363001();
|
|
9679
9780
|
await mig.down(queryRunner);
|
|
9680
|
-
|
|
9781
|
+
debug27("Migration statements executed");
|
|
9681
9782
|
return;
|
|
9682
9783
|
}
|
|
9683
9784
|
case "sqlite":
|
|
9684
9785
|
case "expo":
|
|
9685
9786
|
case "react-native": {
|
|
9686
|
-
|
|
9787
|
+
debug27("using sqlite/react-native migration file");
|
|
9687
9788
|
const mig = new CreateContacts1710438363002();
|
|
9688
9789
|
await mig.down(queryRunner);
|
|
9689
|
-
|
|
9790
|
+
debug27("Migration statements executed");
|
|
9690
9791
|
return;
|
|
9691
9792
|
}
|
|
9692
9793
|
default:
|
|
@@ -9696,7 +9797,7 @@ var CreateContacts1708525189000 = class {
|
|
|
9696
9797
|
};
|
|
9697
9798
|
|
|
9698
9799
|
// src/migrations/generic/9-CreateContacts.ts
|
|
9699
|
-
import
|
|
9800
|
+
import Debug28 from "debug";
|
|
9700
9801
|
|
|
9701
9802
|
// src/migrations/postgres/1715761125001-CreateContacts.ts
|
|
9702
9803
|
var CreateContacts1715761125001 = class {
|
|
@@ -9808,30 +9909,30 @@ var CreateContacts1715761125002 = class {
|
|
|
9808
9909
|
};
|
|
9809
9910
|
|
|
9810
9911
|
// src/migrations/generic/9-CreateContacts.ts
|
|
9811
|
-
var
|
|
9912
|
+
var debug28 = Debug28("sphereon:ssi-sdk:migrations");
|
|
9812
9913
|
var CreateContacts1715761125000 = class {
|
|
9813
9914
|
static {
|
|
9814
9915
|
__name(this, "CreateContacts1715761125000");
|
|
9815
9916
|
}
|
|
9816
9917
|
name = "CreateContacts1715761125000";
|
|
9817
9918
|
async up(queryRunner) {
|
|
9818
|
-
|
|
9919
|
+
debug28("migration: updating contact tables");
|
|
9819
9920
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9820
9921
|
switch (dbType) {
|
|
9821
9922
|
case "postgres": {
|
|
9822
|
-
|
|
9923
|
+
debug28("using postgres migration file");
|
|
9823
9924
|
const mig = new CreateContacts1715761125001();
|
|
9824
9925
|
await mig.up(queryRunner);
|
|
9825
|
-
|
|
9926
|
+
debug28("Migration statements executed");
|
|
9826
9927
|
return;
|
|
9827
9928
|
}
|
|
9828
9929
|
case "sqlite":
|
|
9829
9930
|
case "expo":
|
|
9830
9931
|
case "react-native": {
|
|
9831
|
-
|
|
9932
|
+
debug28("using sqlite/react-native migration file");
|
|
9832
9933
|
const mig = new CreateContacts1715761125002();
|
|
9833
9934
|
await mig.up(queryRunner);
|
|
9834
|
-
|
|
9935
|
+
debug28("Migration statements executed");
|
|
9835
9936
|
return;
|
|
9836
9937
|
}
|
|
9837
9938
|
default:
|
|
@@ -9839,23 +9940,23 @@ var CreateContacts1715761125000 = class {
|
|
|
9839
9940
|
}
|
|
9840
9941
|
}
|
|
9841
9942
|
async down(queryRunner) {
|
|
9842
|
-
|
|
9943
|
+
debug28("migration: reverting machine state tables");
|
|
9843
9944
|
const dbType = queryRunner.connection.driver.options.type;
|
|
9844
9945
|
switch (dbType) {
|
|
9845
9946
|
case "postgres": {
|
|
9846
|
-
|
|
9947
|
+
debug28("using postgres migration file");
|
|
9847
9948
|
const mig = new CreateContacts1715761125001();
|
|
9848
9949
|
await mig.down(queryRunner);
|
|
9849
|
-
|
|
9950
|
+
debug28("Migration statements executed");
|
|
9850
9951
|
return;
|
|
9851
9952
|
}
|
|
9852
9953
|
case "sqlite":
|
|
9853
9954
|
case "expo":
|
|
9854
9955
|
case "react-native": {
|
|
9855
|
-
|
|
9956
|
+
debug28("using sqlite/react-native migration file");
|
|
9856
9957
|
const mig = new CreateContacts1715761125002();
|
|
9857
9958
|
await mig.down(queryRunner);
|
|
9858
|
-
|
|
9959
|
+
debug28("Migration statements executed");
|
|
9859
9960
|
return;
|
|
9860
9961
|
}
|
|
9861
9962
|
default:
|
|
@@ -9869,7 +9970,8 @@ var DataStoreContactMigrations = [
|
|
|
9869
9970
|
CreateContacts1659463079429,
|
|
9870
9971
|
CreateContacts1690925872318,
|
|
9871
9972
|
CreateContacts1708525189000,
|
|
9872
|
-
CreateContacts1715761125000
|
|
9973
|
+
CreateContacts1715761125000,
|
|
9974
|
+
MakeOpenIdClientSecretNullable1767000000000
|
|
9873
9975
|
];
|
|
9874
9976
|
var DataStoreIssuanceBrandingMigrations = [
|
|
9875
9977
|
CreateIssuanceBranding1659463079429,
|