@sphereon/ssi-sdk.data-store 0.36.1-next.152 → 0.36.1-next.155

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.js CHANGED
@@ -2913,6 +2913,7 @@ var CredentialClaimsEntity = class extends BaseEntity18 {
2913
2913
  id;
2914
2914
  key;
2915
2915
  name;
2916
+ order;
2916
2917
  credentialLocaleBranding;
2917
2918
  async validate() {
2918
2919
  const validation = await validate15(this);
@@ -2950,6 +2951,13 @@ _ts_decorate25([
2950
2951
  }),
2951
2952
  _ts_metadata24("design:type", String)
2952
2953
  ], CredentialClaimsEntity.prototype, "name", void 0);
2954
+ _ts_decorate25([
2955
+ Column22("integer", {
2956
+ name: "order",
2957
+ nullable: true
2958
+ }),
2959
+ _ts_metadata24("design:type", Number)
2960
+ ], CredentialClaimsEntity.prototype, "order", void 0);
2953
2961
  _ts_decorate25([
2954
2962
  ManyToOne8(() => CredentialLocaleBrandingEntity, (credentialLocaleBranding) => credentialLocaleBranding.claims, {
2955
2963
  cascade: [
@@ -5709,7 +5717,10 @@ var credentialLocaleBrandingFromEntity = /* @__PURE__ */ __name((localeBranding)
5709
5717
  claims: localeBranding.claims ? localeBranding.claims.map((claim) => ({
5710
5718
  id: claim.id,
5711
5719
  key: claim.key,
5712
- name: claim.name
5720
+ name: claim.name,
5721
+ ...claim.order != null && {
5722
+ order: claim.order
5723
+ }
5713
5724
  })) : void 0
5714
5725
  };
5715
5726
  return replaceNullWithUndefined(result);
@@ -5782,6 +5793,7 @@ var credentialClaimsEntityFrom = /* @__PURE__ */ __name((args) => {
5782
5793
  const credentialClaimsEntity = new CredentialClaimsEntity();
5783
5794
  credentialClaimsEntity.key = args.key;
5784
5795
  credentialClaimsEntity.name = args.name;
5796
+ credentialClaimsEntity.order = args.order;
5785
5797
  return credentialClaimsEntity;
5786
5798
  }, "credentialClaimsEntityFrom");
5787
5799
 
@@ -8588,21 +8600,69 @@ var MakeOpenIdClientSecretNullable1767000000000 = class {
8588
8600
  }
8589
8601
  };
8590
8602
 
8591
- // src/migrations/generic/2-CreateIssuanceBranding.ts
8603
+ // src/migrations/generic/17-AddCredentialClaimOrder.ts
8592
8604
  import Debug21 from "debug";
8605
+
8606
+ // src/migrations/postgres/1768000000000-AddCredentialClaimOrder.ts
8607
+ var AddCredentialClaimOrderPostgres1768000000000 = class {
8608
+ static {
8609
+ __name(this, "AddCredentialClaimOrderPostgres1768000000000");
8610
+ }
8611
+ name = "AddCredentialClaimOrder1768000000000";
8612
+ async up(queryRunner) {
8613
+ await queryRunner.query(`ALTER TABLE "CredentialClaims" ADD "order" integer`);
8614
+ }
8615
+ async down(queryRunner) {
8616
+ await queryRunner.query(`ALTER TABLE "CredentialClaims" DROP COLUMN "order"`);
8617
+ }
8618
+ };
8619
+
8620
+ // src/migrations/sqlite/1768000000000-AddCredentialClaimOrder.ts
8621
+ var AddCredentialClaimOrderSqlite1768000000000 = class {
8622
+ static {
8623
+ __name(this, "AddCredentialClaimOrderSqlite1768000000000");
8624
+ }
8625
+ name = "AddCredentialClaimOrder1768000000000";
8626
+ async up(queryRunner) {
8627
+ await queryRunner.query(`ALTER TABLE "CredentialClaims" ADD COLUMN "order" integer`);
8628
+ }
8629
+ async down(queryRunner) {
8630
+ await queryRunner.query(`PRAGMA foreign_keys = OFF`);
8631
+ await queryRunner.query(`
8632
+ CREATE TABLE "CredentialClaims_old" (
8633
+ "id" varchar PRIMARY KEY NOT NULL,
8634
+ "key" varchar(255) NOT NULL,
8635
+ "name" varchar(255) NOT NULL,
8636
+ "credentialLocaleBrandingId" varchar,
8637
+ CONSTRAINT "FK_CredentialClaims_credentialLocaleBrandingId" FOREIGN KEY ("credentialLocaleBrandingId") REFERENCES "BaseLocaleBranding" ("id") ON DELETE CASCADE ON UPDATE NO ACTION
8638
+ )
8639
+ `);
8640
+ await queryRunner.query(`
8641
+ INSERT INTO "CredentialClaims_old" ("id", "key", "name", "credentialLocaleBrandingId")
8642
+ SELECT "id", "key", "name", "credentialLocaleBrandingId"
8643
+ FROM "CredentialClaims"
8644
+ `);
8645
+ await queryRunner.query(`DROP TABLE "CredentialClaims"`);
8646
+ await queryRunner.query(`ALTER TABLE "CredentialClaims_old" RENAME TO "CredentialClaims"`);
8647
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`);
8648
+ await queryRunner.query(`PRAGMA foreign_keys = ON`);
8649
+ }
8650
+ };
8651
+
8652
+ // src/migrations/generic/17-AddCredentialClaimOrder.ts
8593
8653
  var debug21 = Debug21("sphereon:ssi-sdk:migrations");
8594
- var CreateIssuanceBranding1659463079429 = class {
8654
+ var AddCredentialClaimOrder1768000000000 = class {
8595
8655
  static {
8596
- __name(this, "CreateIssuanceBranding1659463079429");
8656
+ __name(this, "AddCredentialClaimOrder1768000000000");
8597
8657
  }
8598
- name = "CreateIssuanceBranding1659463079429";
8658
+ name = "AddCredentialClaimOrder1768000000000";
8599
8659
  async up(queryRunner) {
8600
- debug21("migration: creating issuance branding tables");
8660
+ debug21("migration: adding credential claim order column");
8601
8661
  const dbType = queryRunner.connection.driver.options.type;
8602
8662
  switch (dbType) {
8603
8663
  case "postgres": {
8604
8664
  debug21("using postgres migration file");
8605
- const mig = new CreateIssuanceBranding1685628974232();
8665
+ const mig = new AddCredentialClaimOrderPostgres1768000000000();
8606
8666
  await mig.up(queryRunner);
8607
8667
  debug21("Migration statements executed");
8608
8668
  return;
@@ -8611,7 +8671,7 @@ var CreateIssuanceBranding1659463079429 = class {
8611
8671
  case "expo":
8612
8672
  case "react-native": {
8613
8673
  debug21("using sqlite/react-native migration file");
8614
- const mig = new CreateIssuanceBranding1685628973231();
8674
+ const mig = new AddCredentialClaimOrderSqlite1768000000000();
8615
8675
  await mig.up(queryRunner);
8616
8676
  debug21("Migration statements executed");
8617
8677
  return;
@@ -8621,12 +8681,12 @@ var CreateIssuanceBranding1659463079429 = class {
8621
8681
  }
8622
8682
  }
8623
8683
  async down(queryRunner) {
8624
- debug21("migration: reverting issuance branding tables");
8684
+ debug21("migration: removing credential claim order column");
8625
8685
  const dbType = queryRunner.connection.driver.options.type;
8626
8686
  switch (dbType) {
8627
8687
  case "postgres": {
8628
8688
  debug21("using postgres migration file");
8629
- const mig = new CreateIssuanceBranding1685628974232();
8689
+ const mig = new AddCredentialClaimOrderPostgres1768000000000();
8630
8690
  await mig.down(queryRunner);
8631
8691
  debug21("Migration statements executed");
8632
8692
  return;
@@ -8635,7 +8695,7 @@ var CreateIssuanceBranding1659463079429 = class {
8635
8695
  case "expo":
8636
8696
  case "react-native": {
8637
8697
  debug21("using sqlite/react-native migration file");
8638
- const mig = new CreateIssuanceBranding1685628973231();
8698
+ const mig = new AddCredentialClaimOrderSqlite1768000000000();
8639
8699
  await mig.down(queryRunner);
8640
8700
  debug21("Migration statements executed");
8641
8701
  return;
@@ -8646,8 +8706,66 @@ var CreateIssuanceBranding1659463079429 = class {
8646
8706
  }
8647
8707
  };
8648
8708
 
8649
- // src/migrations/generic/3-CreateContacts.ts
8709
+ // src/migrations/generic/2-CreateIssuanceBranding.ts
8650
8710
  import Debug22 from "debug";
8711
+ var debug22 = Debug22("sphereon:ssi-sdk:migrations");
8712
+ var CreateIssuanceBranding1659463079429 = class {
8713
+ static {
8714
+ __name(this, "CreateIssuanceBranding1659463079429");
8715
+ }
8716
+ name = "CreateIssuanceBranding1659463079429";
8717
+ async up(queryRunner) {
8718
+ debug22("migration: creating issuance branding tables");
8719
+ const dbType = queryRunner.connection.driver.options.type;
8720
+ switch (dbType) {
8721
+ case "postgres": {
8722
+ debug22("using postgres migration file");
8723
+ const mig = new CreateIssuanceBranding1685628974232();
8724
+ await mig.up(queryRunner);
8725
+ debug22("Migration statements executed");
8726
+ return;
8727
+ }
8728
+ case "sqlite":
8729
+ case "expo":
8730
+ case "react-native": {
8731
+ debug22("using sqlite/react-native migration file");
8732
+ const mig = new CreateIssuanceBranding1685628973231();
8733
+ await mig.up(queryRunner);
8734
+ debug22("Migration statements executed");
8735
+ return;
8736
+ }
8737
+ default:
8738
+ 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`);
8739
+ }
8740
+ }
8741
+ async down(queryRunner) {
8742
+ debug22("migration: reverting issuance branding tables");
8743
+ const dbType = queryRunner.connection.driver.options.type;
8744
+ switch (dbType) {
8745
+ case "postgres": {
8746
+ debug22("using postgres migration file");
8747
+ const mig = new CreateIssuanceBranding1685628974232();
8748
+ await mig.down(queryRunner);
8749
+ debug22("Migration statements executed");
8750
+ return;
8751
+ }
8752
+ case "sqlite":
8753
+ case "expo":
8754
+ case "react-native": {
8755
+ debug22("using sqlite/react-native migration file");
8756
+ const mig = new CreateIssuanceBranding1685628973231();
8757
+ await mig.down(queryRunner);
8758
+ debug22("Migration statements executed");
8759
+ return;
8760
+ }
8761
+ default:
8762
+ 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`);
8763
+ }
8764
+ }
8765
+ };
8766
+
8767
+ // src/migrations/generic/3-CreateContacts.ts
8768
+ import Debug23 from "debug";
8651
8769
 
8652
8770
  // src/migrations/postgres/1690925872592-CreateContacts.ts
8653
8771
  import { enablePostgresUuidExtension as enablePostgresUuidExtension3 } from "@sphereon/ssi-sdk.core";
@@ -8868,30 +8986,30 @@ var CreateContacts1690925872693 = class {
8868
8986
  };
8869
8987
 
8870
8988
  // src/migrations/generic/3-CreateContacts.ts
8871
- var debug22 = Debug22("sphereon:ssi-sdk:migrations");
8989
+ var debug23 = Debug23("sphereon:ssi-sdk:migrations");
8872
8990
  var CreateContacts1690925872318 = class {
8873
8991
  static {
8874
8992
  __name(this, "CreateContacts1690925872318");
8875
8993
  }
8876
8994
  name = "CreateContacts1690925872318";
8877
8995
  async up(queryRunner) {
8878
- debug22("migration: creating contacts tables");
8996
+ debug23("migration: creating contacts tables");
8879
8997
  const dbType = queryRunner.connection.driver.options.type;
8880
8998
  switch (dbType) {
8881
8999
  case "postgres": {
8882
- debug22("using postgres migration file");
9000
+ debug23("using postgres migration file");
8883
9001
  const mig = new CreateContacts1690925872592();
8884
9002
  await mig.up(queryRunner);
8885
- debug22("Migration statements executed");
9003
+ debug23("Migration statements executed");
8886
9004
  return;
8887
9005
  }
8888
9006
  case "sqlite":
8889
9007
  case "expo":
8890
9008
  case "react-native": {
8891
- debug22("using sqlite/react-native migration file");
9009
+ debug23("using sqlite/react-native migration file");
8892
9010
  const mig = new CreateContacts1690925872693();
8893
9011
  await mig.up(queryRunner);
8894
- debug22("Migration statements executed");
9012
+ debug23("Migration statements executed");
8895
9013
  return;
8896
9014
  }
8897
9015
  default:
@@ -8899,23 +9017,23 @@ var CreateContacts1690925872318 = class {
8899
9017
  }
8900
9018
  }
8901
9019
  async down(queryRunner) {
8902
- debug22("migration: reverting contacts tables");
9020
+ debug23("migration: reverting contacts tables");
8903
9021
  const dbType = queryRunner.connection.driver.options.type;
8904
9022
  switch (dbType) {
8905
9023
  case "postgres": {
8906
- debug22("using postgres migration file");
9024
+ debug23("using postgres migration file");
8907
9025
  const mig = new CreateContacts1690925872592();
8908
9026
  await mig.down(queryRunner);
8909
- debug22("Migration statements executed");
9027
+ debug23("Migration statements executed");
8910
9028
  return;
8911
9029
  }
8912
9030
  case "sqlite":
8913
9031
  case "expo":
8914
9032
  case "react-native": {
8915
- debug22("using sqlite/react-native migration file");
9033
+ debug23("using sqlite/react-native migration file");
8916
9034
  const mig = new CreateContacts1690925872693();
8917
9035
  await mig.down(queryRunner);
8918
- debug22("Migration statements executed");
9036
+ debug23("Migration statements executed");
8919
9037
  return;
8920
9038
  }
8921
9039
  default:
@@ -8925,7 +9043,7 @@ var CreateContacts1690925872318 = class {
8925
9043
  };
8926
9044
 
8927
9045
  // src/migrations/generic/4-CreateStatusList.ts
8928
- import Debug23 from "debug";
9046
+ import Debug24 from "debug";
8929
9047
 
8930
9048
  // src/migrations/postgres/1693866470001-CreateStatusList.ts
8931
9049
  var CreateStatusList1693866470001 = class {
@@ -9131,53 +9249,53 @@ var UpdateStatusList1737110469000 = class {
9131
9249
  };
9132
9250
 
9133
9251
  // src/migrations/generic/4-CreateStatusList.ts
9134
- var debug23 = Debug23("sphereon:ssi-sdk:migrations");
9252
+ var debug24 = Debug24("sphereon:ssi-sdk:migrations");
9135
9253
  var CreateStatusList1693866470000 = class {
9136
9254
  static {
9137
9255
  __name(this, "CreateStatusList1693866470000");
9138
9256
  }
9139
9257
  name = "CreateStatusList1693866470000";
9140
9258
  async up(queryRunner) {
9141
- debug23("migration: creating issuance branding tables");
9259
+ debug24("migration: creating issuance branding tables");
9142
9260
  const dbType = queryRunner.connection.driver.options.type;
9143
9261
  if (dbType === "postgres") {
9144
- debug23("using postgres migration files");
9262
+ debug24("using postgres migration files");
9145
9263
  const createMig = new CreateStatusList1693866470001();
9146
9264
  await createMig.up(queryRunner);
9147
9265
  const updateMig = new UpdateStatusList1737110469001();
9148
9266
  const up = await updateMig.up(queryRunner);
9149
- debug23("Migration statements executed");
9267
+ debug24("Migration statements executed");
9150
9268
  return up;
9151
9269
  } else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
9152
- debug23("using sqlite/react-native migration files");
9270
+ debug24("using sqlite/react-native migration files");
9153
9271
  const createMig = new CreateStatusList1693866470002();
9154
9272
  await createMig.up(queryRunner);
9155
9273
  const updateMig = new UpdateStatusList1737110469000();
9156
9274
  const up = await updateMig.up(queryRunner);
9157
- debug23("Migration statements executed");
9275
+ debug24("Migration statements executed");
9158
9276
  return up;
9159
9277
  } else {
9160
9278
  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`);
9161
9279
  }
9162
9280
  }
9163
9281
  async down(queryRunner) {
9164
- debug23("migration: reverting issuance branding tables");
9282
+ debug24("migration: reverting issuance branding tables");
9165
9283
  const dbType = queryRunner.connection.driver.options.type;
9166
9284
  if (dbType === "postgres") {
9167
- debug23("using postgres migration files");
9285
+ debug24("using postgres migration files");
9168
9286
  const updateMig = new UpdateStatusList1737110469001();
9169
9287
  await updateMig.down(queryRunner);
9170
9288
  const createMig = new CreateStatusList1693866470001();
9171
9289
  const down = await createMig.down(queryRunner);
9172
- debug23("Migration statements executed");
9290
+ debug24("Migration statements executed");
9173
9291
  return down;
9174
9292
  } else if (dbType === "sqlite" || dbType === "react-native" || dbType === "expo") {
9175
- debug23("using sqlite/react-native migration files");
9293
+ debug24("using sqlite/react-native migration files");
9176
9294
  const updateMig = new UpdateStatusList1737110469000();
9177
9295
  await updateMig.down(queryRunner);
9178
9296
  const createMig = new CreateStatusList1693866470002();
9179
9297
  const down = await createMig.down(queryRunner);
9180
- debug23("Migration statements executed");
9298
+ debug24("Migration statements executed");
9181
9299
  return down;
9182
9300
  } else {
9183
9301
  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`);
@@ -9186,7 +9304,7 @@ var CreateStatusList1693866470000 = class {
9186
9304
  };
9187
9305
 
9188
9306
  // src/migrations/generic/5-CreateAuditEvents.ts
9189
- import Debug24 from "debug";
9307
+ import Debug25 from "debug";
9190
9308
 
9191
9309
  // src/migrations/postgres/1701634812183-CreateAuditEvents.ts
9192
9310
  var CreateAuditEvents1701634812183 = class {
@@ -9285,30 +9403,30 @@ var CreateAuditEvents1701634819487 = class {
9285
9403
  };
9286
9404
 
9287
9405
  // src/migrations/generic/5-CreateAuditEvents.ts
9288
- var debug24 = Debug24("sphereon:ssi-sdk:migrations");
9406
+ var debug25 = Debug25("sphereon:ssi-sdk:migrations");
9289
9407
  var CreateAuditEvents1701635835330 = class {
9290
9408
  static {
9291
9409
  __name(this, "CreateAuditEvents1701635835330");
9292
9410
  }
9293
9411
  name = "CreateAuditEvents1701635835330";
9294
9412
  async up(queryRunner) {
9295
- debug24("migration: creating audit events tables");
9413
+ debug25("migration: creating audit events tables");
9296
9414
  const dbType = queryRunner.connection.driver.options.type;
9297
9415
  switch (dbType) {
9298
9416
  case "postgres": {
9299
- debug24("using postgres migration file");
9417
+ debug25("using postgres migration file");
9300
9418
  const mig = new CreateAuditEvents1701634812183();
9301
9419
  await mig.up(queryRunner);
9302
- debug24("Migration statements executed");
9420
+ debug25("Migration statements executed");
9303
9421
  return;
9304
9422
  }
9305
9423
  case "sqlite":
9306
9424
  case "expo":
9307
9425
  case "react-native": {
9308
- debug24("using sqlite/react-native migration file");
9426
+ debug25("using sqlite/react-native migration file");
9309
9427
  const mig = new CreateAuditEvents1701634819487();
9310
9428
  await mig.up(queryRunner);
9311
- debug24("Migration statements executed");
9429
+ debug25("Migration statements executed");
9312
9430
  return;
9313
9431
  }
9314
9432
  default:
@@ -9316,23 +9434,23 @@ var CreateAuditEvents1701635835330 = class {
9316
9434
  }
9317
9435
  }
9318
9436
  async down(queryRunner) {
9319
- debug24("migration: reverting audit events tables");
9437
+ debug25("migration: reverting audit events tables");
9320
9438
  const dbType = queryRunner.connection.driver.options.type;
9321
9439
  switch (dbType) {
9322
9440
  case "postgres": {
9323
- debug24("using postgres migration file");
9441
+ debug25("using postgres migration file");
9324
9442
  const mig = new CreateAuditEvents1701634812183();
9325
9443
  await mig.down(queryRunner);
9326
- debug24("Migration statements executed");
9444
+ debug25("Migration statements executed");
9327
9445
  return;
9328
9446
  }
9329
9447
  case "sqlite":
9330
9448
  case "expo":
9331
9449
  case "react-native": {
9332
- debug24("using sqlite/react-native migration file");
9450
+ debug25("using sqlite/react-native migration file");
9333
9451
  const mig = new CreateAuditEvents1701634819487();
9334
9452
  await mig.down(queryRunner);
9335
- debug24("Migration statements executed");
9453
+ debug25("Migration statements executed");
9336
9454
  return;
9337
9455
  }
9338
9456
  default:
@@ -9342,7 +9460,7 @@ var CreateAuditEvents1701635835330 = class {
9342
9460
  };
9343
9461
 
9344
9462
  // src/migrations/generic/6-CreateDigitalCredential.ts
9345
- import Debug25 from "debug";
9463
+ import Debug26 from "debug";
9346
9464
 
9347
9465
  // src/migrations/postgres/1708525189001-CreateDigitalCredential.ts
9348
9466
  var CreateDigitalCredential1708525189001 = class {
@@ -9450,30 +9568,30 @@ var CreateDigitalCredential1708525189002 = class {
9450
9568
  };
9451
9569
 
9452
9570
  // src/migrations/generic/6-CreateDigitalCredential.ts
9453
- var debug25 = Debug25("sphereon:ssi-sdk:migrations");
9571
+ var debug26 = Debug26("sphereon:ssi-sdk:migrations");
9454
9572
  var CreateDigitalCredential1708525189000 = class {
9455
9573
  static {
9456
9574
  __name(this, "CreateDigitalCredential1708525189000");
9457
9575
  }
9458
9576
  name = "CreateDigitalCredential1708525189000";
9459
9577
  async up(queryRunner) {
9460
- debug25("migration: creating DigitalCredential tables");
9578
+ debug26("migration: creating DigitalCredential tables");
9461
9579
  const dbType = queryRunner.connection.driver.options.type;
9462
9580
  switch (dbType) {
9463
9581
  case "postgres": {
9464
- debug25("using postgres migration file for DigitalCredential");
9582
+ debug26("using postgres migration file for DigitalCredential");
9465
9583
  const mig = new CreateDigitalCredential1708525189001();
9466
9584
  await mig.up(queryRunner);
9467
- debug25("Postgres Migration statements for DigitalCredential executed");
9585
+ debug26("Postgres Migration statements for DigitalCredential executed");
9468
9586
  return;
9469
9587
  }
9470
9588
  case "sqlite":
9471
9589
  case "expo":
9472
9590
  case "react-native": {
9473
- debug25("using sqlite/react-native migration file for DigitalCredential");
9591
+ debug26("using sqlite/react-native migration file for DigitalCredential");
9474
9592
  const mig = new CreateDigitalCredential1708525189002();
9475
9593
  await mig.up(queryRunner);
9476
- debug25("SQLite Migration statements for DigitalCredential executed");
9594
+ debug26("SQLite Migration statements for DigitalCredential executed");
9477
9595
  return;
9478
9596
  }
9479
9597
  default:
@@ -9481,23 +9599,23 @@ var CreateDigitalCredential1708525189000 = class {
9481
9599
  }
9482
9600
  }
9483
9601
  async down(queryRunner) {
9484
- debug25("migration: reverting DigitalCredential tables");
9602
+ debug26("migration: reverting DigitalCredential tables");
9485
9603
  const dbType = queryRunner.connection.driver.options.type;
9486
9604
  switch (dbType) {
9487
9605
  case "postgres": {
9488
- debug25("using postgres migration file for DigitalCredential");
9606
+ debug26("using postgres migration file for DigitalCredential");
9489
9607
  const mig = new CreateDigitalCredential1708525189001();
9490
9608
  await mig.down(queryRunner);
9491
- debug25("Postgres Migration statements for DigitalCredential reverted");
9609
+ debug26("Postgres Migration statements for DigitalCredential reverted");
9492
9610
  return;
9493
9611
  }
9494
9612
  case "sqlite":
9495
9613
  case "expo":
9496
9614
  case "react-native": {
9497
- debug25("using sqlite/react-native migration file for DigitalCredential");
9615
+ debug26("using sqlite/react-native migration file for DigitalCredential");
9498
9616
  const mig = new CreateDigitalCredential1708525189002();
9499
9617
  await mig.down(queryRunner);
9500
- debug25("SQLite Migration statements for DigitalCredential reverted");
9618
+ debug26("SQLite Migration statements for DigitalCredential reverted");
9501
9619
  return;
9502
9620
  }
9503
9621
  default:
@@ -9507,7 +9625,7 @@ var CreateDigitalCredential1708525189000 = class {
9507
9625
  };
9508
9626
 
9509
9627
  // src/migrations/generic/7-CreateMachineStateStore.ts
9510
- import Debug26 from "debug";
9628
+ import Debug27 from "debug";
9511
9629
 
9512
9630
  // src/migrations/postgres/1708797018115-CreateMachineStateStore.ts
9513
9631
  var CreateMachineStateStore1708797018115 = class {
@@ -9569,30 +9687,30 @@ var CreateMachineStateStore1708796002272 = class {
9569
9687
  };
9570
9688
 
9571
9689
  // src/migrations/generic/7-CreateMachineStateStore.ts
9572
- var debug26 = Debug26("sphereon:ssi-sdk:migrations");
9690
+ var debug27 = Debug27("sphereon:ssi-sdk:migrations");
9573
9691
  var CreateMachineStateStore1708098041262 = class {
9574
9692
  static {
9575
9693
  __name(this, "CreateMachineStateStore1708098041262");
9576
9694
  }
9577
9695
  name = "CreateMachineStateStore1708098041262";
9578
9696
  async up(queryRunner) {
9579
- debug26("migration: creating machine state tables");
9697
+ debug27("migration: creating machine state tables");
9580
9698
  const dbType = queryRunner.connection.driver.options.type;
9581
9699
  switch (dbType) {
9582
9700
  case "postgres": {
9583
- debug26("using postgres migration file");
9701
+ debug27("using postgres migration file");
9584
9702
  const mig = new CreateMachineStateStore1708797018115();
9585
9703
  await mig.up(queryRunner);
9586
- debug26("Migration statements executed");
9704
+ debug27("Migration statements executed");
9587
9705
  return;
9588
9706
  }
9589
9707
  case "sqlite":
9590
9708
  case "expo":
9591
9709
  case "react-native": {
9592
- debug26("using sqlite/react-native migration file");
9710
+ debug27("using sqlite/react-native migration file");
9593
9711
  const mig = new CreateMachineStateStore1708796002272();
9594
9712
  await mig.up(queryRunner);
9595
- debug26("Migration statements executed");
9713
+ debug27("Migration statements executed");
9596
9714
  return;
9597
9715
  }
9598
9716
  default:
@@ -9600,23 +9718,23 @@ var CreateMachineStateStore1708098041262 = class {
9600
9718
  }
9601
9719
  }
9602
9720
  async down(queryRunner) {
9603
- debug26("migration: reverting machine state tables");
9721
+ debug27("migration: reverting machine state tables");
9604
9722
  const dbType = queryRunner.connection.driver.options.type;
9605
9723
  switch (dbType) {
9606
9724
  case "postgres": {
9607
- debug26("using postgres migration file");
9725
+ debug27("using postgres migration file");
9608
9726
  const mig = new CreateMachineStateStore1708797018115();
9609
9727
  await mig.down(queryRunner);
9610
- debug26("Migration statements executed");
9728
+ debug27("Migration statements executed");
9611
9729
  return;
9612
9730
  }
9613
9731
  case "sqlite":
9614
9732
  case "expo":
9615
9733
  case "react-native": {
9616
- debug26("using sqlite/react-native migration file");
9734
+ debug27("using sqlite/react-native migration file");
9617
9735
  const mig = new CreateMachineStateStore1708796002272();
9618
9736
  await mig.down(queryRunner);
9619
- debug26("Migration statements executed");
9737
+ debug27("Migration statements executed");
9620
9738
  return;
9621
9739
  }
9622
9740
  default:
@@ -9626,7 +9744,7 @@ var CreateMachineStateStore1708098041262 = class {
9626
9744
  };
9627
9745
 
9628
9746
  // src/migrations/generic/8-CreateContacts.ts
9629
- import Debug27 from "debug";
9747
+ import Debug28 from "debug";
9630
9748
 
9631
9749
  // src/migrations/postgres/1710438363001-CreateContacts.ts
9632
9750
  var CreateContacts1710438363001 = class {
@@ -9740,30 +9858,30 @@ var CreateContacts1710438363002 = class {
9740
9858
  };
9741
9859
 
9742
9860
  // src/migrations/generic/8-CreateContacts.ts
9743
- var debug27 = Debug27("sphereon:ssi-sdk:migrations");
9861
+ var debug28 = Debug28("sphereon:ssi-sdk:migrations");
9744
9862
  var CreateContacts1708525189000 = class {
9745
9863
  static {
9746
9864
  __name(this, "CreateContacts1708525189000");
9747
9865
  }
9748
9866
  name = "CreateContacts1708525189000";
9749
9867
  async up(queryRunner) {
9750
- debug27("migration: updating contact tables");
9868
+ debug28("migration: updating contact tables");
9751
9869
  const dbType = queryRunner.connection.driver.options.type;
9752
9870
  switch (dbType) {
9753
9871
  case "postgres": {
9754
- debug27("using postgres migration file");
9872
+ debug28("using postgres migration file");
9755
9873
  const mig = new CreateContacts1710438363001();
9756
9874
  await mig.up(queryRunner);
9757
- debug27("Migration statements executed");
9875
+ debug28("Migration statements executed");
9758
9876
  return;
9759
9877
  }
9760
9878
  case "sqlite":
9761
9879
  case "expo":
9762
9880
  case "react-native": {
9763
- debug27("using sqlite/react-native migration file");
9881
+ debug28("using sqlite/react-native migration file");
9764
9882
  const mig = new CreateContacts1710438363002();
9765
9883
  await mig.up(queryRunner);
9766
- debug27("Migration statements executed");
9884
+ debug28("Migration statements executed");
9767
9885
  return;
9768
9886
  }
9769
9887
  default:
@@ -9771,23 +9889,23 @@ var CreateContacts1708525189000 = class {
9771
9889
  }
9772
9890
  }
9773
9891
  async down(queryRunner) {
9774
- debug27("migration: reverting machine state tables");
9892
+ debug28("migration: reverting machine state tables");
9775
9893
  const dbType = queryRunner.connection.driver.options.type;
9776
9894
  switch (dbType) {
9777
9895
  case "postgres": {
9778
- debug27("using postgres migration file");
9896
+ debug28("using postgres migration file");
9779
9897
  const mig = new CreateContacts1710438363001();
9780
9898
  await mig.down(queryRunner);
9781
- debug27("Migration statements executed");
9899
+ debug28("Migration statements executed");
9782
9900
  return;
9783
9901
  }
9784
9902
  case "sqlite":
9785
9903
  case "expo":
9786
9904
  case "react-native": {
9787
- debug27("using sqlite/react-native migration file");
9905
+ debug28("using sqlite/react-native migration file");
9788
9906
  const mig = new CreateContacts1710438363002();
9789
9907
  await mig.down(queryRunner);
9790
- debug27("Migration statements executed");
9908
+ debug28("Migration statements executed");
9791
9909
  return;
9792
9910
  }
9793
9911
  default:
@@ -9797,7 +9915,7 @@ var CreateContacts1708525189000 = class {
9797
9915
  };
9798
9916
 
9799
9917
  // src/migrations/generic/9-CreateContacts.ts
9800
- import Debug28 from "debug";
9918
+ import Debug29 from "debug";
9801
9919
 
9802
9920
  // src/migrations/postgres/1715761125001-CreateContacts.ts
9803
9921
  var CreateContacts1715761125001 = class {
@@ -9909,30 +10027,30 @@ var CreateContacts1715761125002 = class {
9909
10027
  };
9910
10028
 
9911
10029
  // src/migrations/generic/9-CreateContacts.ts
9912
- var debug28 = Debug28("sphereon:ssi-sdk:migrations");
10030
+ var debug29 = Debug29("sphereon:ssi-sdk:migrations");
9913
10031
  var CreateContacts1715761125000 = class {
9914
10032
  static {
9915
10033
  __name(this, "CreateContacts1715761125000");
9916
10034
  }
9917
10035
  name = "CreateContacts1715761125000";
9918
10036
  async up(queryRunner) {
9919
- debug28("migration: updating contact tables");
10037
+ debug29("migration: updating contact tables");
9920
10038
  const dbType = queryRunner.connection.driver.options.type;
9921
10039
  switch (dbType) {
9922
10040
  case "postgres": {
9923
- debug28("using postgres migration file");
10041
+ debug29("using postgres migration file");
9924
10042
  const mig = new CreateContacts1715761125001();
9925
10043
  await mig.up(queryRunner);
9926
- debug28("Migration statements executed");
10044
+ debug29("Migration statements executed");
9927
10045
  return;
9928
10046
  }
9929
10047
  case "sqlite":
9930
10048
  case "expo":
9931
10049
  case "react-native": {
9932
- debug28("using sqlite/react-native migration file");
10050
+ debug29("using sqlite/react-native migration file");
9933
10051
  const mig = new CreateContacts1715761125002();
9934
10052
  await mig.up(queryRunner);
9935
- debug28("Migration statements executed");
10053
+ debug29("Migration statements executed");
9936
10054
  return;
9937
10055
  }
9938
10056
  default:
@@ -9940,23 +10058,23 @@ var CreateContacts1715761125000 = class {
9940
10058
  }
9941
10059
  }
9942
10060
  async down(queryRunner) {
9943
- debug28("migration: reverting machine state tables");
10061
+ debug29("migration: reverting machine state tables");
9944
10062
  const dbType = queryRunner.connection.driver.options.type;
9945
10063
  switch (dbType) {
9946
10064
  case "postgres": {
9947
- debug28("using postgres migration file");
10065
+ debug29("using postgres migration file");
9948
10066
  const mig = new CreateContacts1715761125001();
9949
10067
  await mig.down(queryRunner);
9950
- debug28("Migration statements executed");
10068
+ debug29("Migration statements executed");
9951
10069
  return;
9952
10070
  }
9953
10071
  case "sqlite":
9954
10072
  case "expo":
9955
10073
  case "react-native": {
9956
- debug28("using sqlite/react-native migration file");
10074
+ debug29("using sqlite/react-native migration file");
9957
10075
  const mig = new CreateContacts1715761125002();
9958
10076
  await mig.down(queryRunner);
9959
- debug28("Migration statements executed");
10077
+ debug29("Migration statements executed");
9960
10078
  return;
9961
10079
  }
9962
10080
  default:
@@ -9976,7 +10094,8 @@ var DataStoreContactMigrations = [
9976
10094
  var DataStoreIssuanceBrandingMigrations = [
9977
10095
  CreateIssuanceBranding1659463079429,
9978
10096
  FixCredentialClaimsReferencesUuid1741895822987,
9979
- AddBrandingState1766000000000
10097
+ AddBrandingState1766000000000,
10098
+ AddCredentialClaimOrder1768000000000
9980
10099
  ];
9981
10100
  var DataStoreStatusListMigrations = [
9982
10101
  CreateStatusList1693866470000,