@sphereon/ssi-sdk.data-store 0.18.2-next.9 → 0.18.2-unstable.13

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.
Files changed (188) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +77 -77
  3. package/dist/contact/AbstractContactStore.d.ts +23 -23
  4. package/dist/contact/AbstractContactStore.js +6 -6
  5. package/dist/contact/ContactStore.d.ts +32 -32
  6. package/dist/contact/ContactStore.js +365 -365
  7. package/dist/entities/contact/BaseConfigEntity.d.ts +6 -6
  8. package/dist/entities/contact/BaseConfigEntity.js +33 -33
  9. package/dist/entities/contact/BaseContactEntity.d.ts +9 -9
  10. package/dist/entities/contact/BaseContactEntity.js +53 -53
  11. package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
  12. package/dist/entities/contact/ConnectionEntity.js +46 -46
  13. package/dist/entities/contact/ContactEntity.d.ts +16 -0
  14. package/dist/entities/contact/ContactEntity.d.ts.map +1 -0
  15. package/dist/entities/contact/ContactEntity.js +164 -0
  16. package/dist/entities/contact/ContactEntity.js.map +1 -0
  17. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
  18. package/dist/entities/contact/CorrelationIdentifierEntity.js +71 -71
  19. package/dist/entities/contact/DidAuthConfigEntity.d.ts +6 -6
  20. package/dist/entities/contact/DidAuthConfigEntity.js +32 -32
  21. package/dist/entities/contact/ElectronicAddressEntity.d.ts +13 -13
  22. package/dist/entities/contact/ElectronicAddressEntity.js +91 -91
  23. package/dist/entities/contact/IdentityEntity.d.ts +20 -20
  24. package/dist/entities/contact/IdentityEntity.js +128 -128
  25. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +9 -9
  26. package/dist/entities/contact/IdentityMetadataItemEntity.js +68 -68
  27. package/dist/entities/contact/NaturalPersonEntity.d.ts +8 -8
  28. package/dist/entities/contact/NaturalPersonEntity.js +71 -71
  29. package/dist/entities/contact/OpenIdConfigEntity.d.ts +10 -10
  30. package/dist/entities/contact/OpenIdConfigEntity.js +48 -48
  31. package/dist/entities/contact/OrganizationEntity.d.ts +8 -8
  32. package/dist/entities/contact/OrganizationEntity.js +66 -66
  33. package/dist/entities/contact/PartyEntity.d.ts +19 -19
  34. package/dist/entities/contact/PartyEntity.js +131 -131
  35. package/dist/entities/contact/PartyRelationshipEntity.d.ts +12 -12
  36. package/dist/entities/contact/PartyRelationshipEntity.js +94 -94
  37. package/dist/entities/contact/PartyTypeEntity.d.ts +14 -14
  38. package/dist/entities/contact/PartyTypeEntity.js +103 -103
  39. package/dist/entities/eventLogger/AuditEventEntity.d.ts +26 -26
  40. package/dist/entities/eventLogger/AuditEventEntity.js +123 -123
  41. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
  42. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +10 -10
  43. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +73 -73
  44. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +17 -17
  45. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +119 -119
  46. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +14 -14
  47. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +101 -101
  48. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +8 -8
  49. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +48 -48
  50. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +13 -13
  51. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +91 -91
  52. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +8 -8
  53. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +38 -38
  54. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +13 -13
  55. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +94 -94
  56. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +8 -8
  57. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +48 -48
  58. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +8 -8
  59. package/dist/entities/issuanceBranding/TextAttributesEntity.js +61 -61
  60. package/dist/entities/statusList2021/StatusList2021Entity.d.ts +18 -18
  61. package/dist/entities/statusList2021/StatusList2021Entity.js +114 -114
  62. package/dist/entities/statusList2021/StatusList2021EntryEntity.d.ts +10 -10
  63. package/dist/entities/statusList2021/StatusList2021EntryEntity.js +50 -50
  64. package/dist/entities/validators/index.d.ts +6 -6
  65. package/dist/entities/validators/index.js +26 -26
  66. package/dist/eventLogger/AbstractEventLoggerStore.d.ts +6 -6
  67. package/dist/eventLogger/AbstractEventLoggerStore.js +6 -6
  68. package/dist/eventLogger/EventLoggerStore.d.ts +12 -12
  69. package/dist/eventLogger/EventLoggerStore.js +43 -43
  70. package/dist/index.d.ts +41 -41
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +127 -131
  73. package/dist/index.js.map +1 -1
  74. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +19 -19
  75. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -6
  76. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +30 -30
  77. package/dist/issuanceBranding/IssuanceBrandingStore.js +374 -374
  78. package/dist/migrations/generic/1-CreateContacts.d.ts +6 -6
  79. package/dist/migrations/generic/1-CreateContacts.js +77 -77
  80. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +7 -0
  81. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +1 -0
  82. package/dist/migrations/generic/1-CreateIssuanceBranding.js +96 -0
  83. package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +1 -0
  84. package/dist/migrations/generic/2-CreateContacts.d.ts +7 -0
  85. package/dist/migrations/generic/2-CreateContacts.d.ts.map +1 -0
  86. package/dist/migrations/generic/2-CreateContacts.js +78 -0
  87. package/dist/migrations/generic/2-CreateContacts.js.map +1 -0
  88. package/dist/migrations/generic/2-CreateIssuanceBranding.d.ts +6 -6
  89. package/dist/migrations/generic/2-CreateIssuanceBranding.js +77 -77
  90. package/dist/migrations/generic/3-CreateContacts.d.ts +6 -6
  91. package/dist/migrations/generic/3-CreateContacts.js +77 -77
  92. package/dist/migrations/generic/3-CreateStatusList.d.ts +7 -0
  93. package/dist/migrations/generic/3-CreateStatusList.d.ts.map +1 -0
  94. package/dist/migrations/generic/3-CreateStatusList.js +72 -0
  95. package/dist/migrations/generic/3-CreateStatusList.js.map +1 -0
  96. package/dist/migrations/generic/4-CreateStatusList.d.ts +6 -6
  97. package/dist/migrations/generic/4-CreateStatusList.js +71 -71
  98. package/dist/migrations/generic/5-CreateAuditEvents.d.ts +6 -6
  99. package/dist/migrations/generic/5-CreateAuditEvents.js +77 -77
  100. package/dist/migrations/generic/index.d.ts +16 -16
  101. package/dist/migrations/generic/index.js +27 -27
  102. package/dist/migrations/index.d.ts +1 -1
  103. package/dist/migrations/index.d.ts.map +1 -1
  104. package/dist/migrations/index.js +5 -9
  105. package/dist/migrations/index.js.map +1 -1
  106. package/dist/migrations/internal-migrations-ormconfig.d.ts +6 -6
  107. package/dist/migrations/internal-migrations-ormconfig.js +26 -26
  108. package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +6 -6
  109. package/dist/migrations/postgres/1659463079428-CreateContacts.js +56 -56
  110. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +6 -6
  111. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +68 -68
  112. package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts +6 -6
  113. package/dist/migrations/postgres/1690925872592-CreateContacts.js +68 -68
  114. package/dist/migrations/postgres/1693866470001-CreateStatusList.d.ts +6 -6
  115. package/dist/migrations/postgres/1693866470001-CreateStatusList.js +31 -31
  116. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.d.ts +6 -6
  117. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +42 -42
  118. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
  119. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts +7 -0
  120. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.d.ts.map +1 -0
  121. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js +32 -0
  122. package/dist/migrations/postgres/CreateStatusList1693866470001-CreateStatusList.js.map +1 -0
  123. package/dist/migrations/postgres/uuid.d.ts +3 -0
  124. package/dist/migrations/postgres/uuid.d.ts.map +1 -0
  125. package/dist/migrations/postgres/uuid.js +25 -0
  126. package/dist/migrations/postgres/uuid.js.map +1 -0
  127. package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +6 -6
  128. package/dist/migrations/sqlite/1659463069549-CreateContacts.js +78 -78
  129. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +6 -6
  130. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +88 -88
  131. package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts +6 -6
  132. package/dist/migrations/sqlite/1690925872693-CreateContacts.js +107 -107
  133. package/dist/migrations/sqlite/1693866470000-CreateStatusList.d.ts +6 -6
  134. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +31 -31
  135. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.d.ts +6 -6
  136. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +28 -28
  137. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
  138. package/dist/statusList/IStatusListStore.d.ts +19 -19
  139. package/dist/statusList/IStatusListStore.js +2 -2
  140. package/dist/statusList/StatusListStore.d.ts +35 -35
  141. package/dist/statusList/StatusListStore.js +212 -212
  142. package/dist/types/contact/IAbstractContactStore.d.ts +74 -74
  143. package/dist/types/contact/IAbstractContactStore.js +2 -2
  144. package/dist/types/contact/contact.d.ts +173 -173
  145. package/dist/types/contact/contact.js +25 -25
  146. package/dist/types/eventLogger/IAbstractEventLoggerStore.d.ts +9 -9
  147. package/dist/types/eventLogger/IAbstractEventLoggerStore.js +2 -2
  148. package/dist/types/eventLogger/eventLogger.d.ts +2 -2
  149. package/dist/types/eventLogger/eventLogger.js +2 -2
  150. package/dist/types/index.d.ts +9 -9
  151. package/dist/types/index.js +25 -25
  152. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +58 -58
  153. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +2 -2
  154. package/dist/types/issuanceBranding/issuanceBranding.d.ts +114 -114
  155. package/dist/types/issuanceBranding/issuanceBranding.js +2 -2
  156. package/dist/types/statusList/IAbstractStatusListStore.d.ts +37 -37
  157. package/dist/types/statusList/IAbstractStatusListStore.js +2 -2
  158. package/dist/types/statusList/statusList.d.ts +24 -24
  159. package/dist/types/statusList/statusList.js +2 -2
  160. package/dist/types/validation/validation.d.ts +3 -3
  161. package/dist/types/validation/validation.js +2 -2
  162. package/dist/utils/ValidatorUtils.d.ts +3 -3
  163. package/dist/utils/ValidatorUtils.js +12 -12
  164. package/dist/utils/contact/MappingUtils.d.ts +46 -46
  165. package/dist/utils/contact/MappingUtils.js +290 -290
  166. package/package.json +4 -4
  167. package/src/__tests__/eventLogger.entities.test.ts +73 -73
  168. package/src/__tests__/eventLogger.store.test.ts +136 -136
  169. package/src/contact/ContactStore.ts +501 -501
  170. package/src/entities/eventLogger/AuditEventEntity.ts +99 -99
  171. package/src/entities/statusList2021/StatusList2021Entity.ts +96 -96
  172. package/src/eventLogger/AbstractEventLoggerStore.ts +7 -7
  173. package/src/eventLogger/EventLoggerStore.ts +62 -62
  174. package/src/index.ts +113 -119
  175. package/src/migrations/generic/1-CreateContacts.ts +66 -66
  176. package/src/migrations/generic/2-CreateIssuanceBranding.ts +64 -64
  177. package/src/migrations/generic/3-CreateContacts.ts +66 -66
  178. package/src/migrations/generic/4-CreateStatusList.ts +54 -54
  179. package/src/migrations/generic/5-CreateAuditEvents.ts +66 -66
  180. package/src/migrations/generic/index.ts +27 -27
  181. package/src/migrations/index.ts +1 -7
  182. package/src/migrations/postgres/1693866470001-CreateStatusList.ts +24 -24
  183. package/src/migrations/postgres/1701634812183-CreateAuditEvents.ts +33 -33
  184. package/src/migrations/sqlite/1690925872693-CreateContacts.ts +163 -163
  185. package/src/migrations/sqlite/1701634819487-CreateAuditEvents.ts +15 -15
  186. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +12 -12
  187. package/src/types/eventLogger/eventLogger.ts +3 -3
  188. package/src/types/index.ts +9 -9
@@ -1,79 +1,79 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateContacts1659463069549 = void 0;
13
- class CreateContacts1659463069549 {
14
- constructor() {
15
- this.name = 'CreateContacts1659463069549';
16
- }
17
- up(queryRunner) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- yield queryRunner.query(`CREATE TABLE "BaseConfigEntity" ("id" varchar PRIMARY KEY NOT NULL, "client_id" varchar(255), "client_secret" varchar(255), "scopes" text, "issuer" varchar(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" varchar(255), "session_id" varchar(255), "type" varchar NOT NULL, "connectionId" varchar, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"))`);
20
- yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
21
- yield queryRunner.query(`CREATE TABLE "CorrelationIdentifier" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('did','url') ) NOT NULL, "correlation_id" text NOT NULL, "identityId" varchar, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"))`);
22
- yield queryRunner.query(`CREATE TABLE "Contact" ("id" varchar PRIMARY KEY NOT NULL, "name" varchar(255) NOT NULL, "alias" varchar(255) NOT NULL, "uri" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_Name" UNIQUE ("name"), CONSTRAINT "UQ_Alias" UNIQUE ("alias"))`);
23
- yield queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar)`);
24
- yield queryRunner.query(`CREATE TABLE "Identity" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255) NOT NULL, "roles" text, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "contactId" varchar, CONSTRAINT "UQ_Alias" UNIQUE ("alias"))`);
25
- yield queryRunner.query(`CREATE TABLE "Connection" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('OIDC','SIOPv2','SIOPv2+OpenID4VP') ) NOT NULL, "identityId" varchar, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"))`);
26
- yield queryRunner.query(`DROP INDEX "IDX_BaseConfigEntity_type"`);
27
- yield queryRunner.query(`CREATE TABLE "temporary_BaseConfigEntity" ("id" varchar PRIMARY KEY NOT NULL, "client_id" varchar(255), "client_secret" varchar(255), "scopes" text, "issuer" varchar(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" varchar(255), "session_id" varchar(255), "type" varchar NOT NULL, "connectionId" varchar, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"), CONSTRAINT "FK_BaseConfig_connectionId" FOREIGN KEY ("connectionId") REFERENCES "Connection" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
28
- yield queryRunner.query(`INSERT INTO "temporary_BaseConfigEntity"("id", "client_id", "client_secret", "scopes", "issuer", "redirect_url", "dangerously_allow_insecure_http_requests", "client_auth_method", "identifier", "session_id", "type", "connectionId") SELECT "id", "client_id", "client_secret", "scopes", "issuer", "redirect_url", "dangerously_allow_insecure_http_requests", "client_auth_method", "identifier", "session_id", "type", "connectionId" FROM "BaseConfigEntity"`);
29
- yield queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
30
- yield queryRunner.query(`ALTER TABLE "temporary_BaseConfigEntity" RENAME TO "BaseConfigEntity"`);
31
- yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
32
- yield queryRunner.query(`CREATE TABLE "temporary_CorrelationIdentifier" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('did','url') ) NOT NULL, "correlation_id" text NOT NULL, "identityId" varchar, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"), CONSTRAINT "FK_CorrelationIdentifier_identityId" FOREIGN KEY ("identityId") REFERENCES "Identity" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
33
- yield queryRunner.query(`INSERT INTO "temporary_CorrelationIdentifier"("id", "type", "correlation_id", "identityId") SELECT "id", "type", "correlation_id", "identityId" FROM "CorrelationIdentifier"`);
34
- yield queryRunner.query(`DROP TABLE "CorrelationIdentifier"`);
35
- yield queryRunner.query(`ALTER TABLE "temporary_CorrelationIdentifier" RENAME TO "CorrelationIdentifier"`);
36
- yield queryRunner.query(`CREATE TABLE "temporary_IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar, CONSTRAINT "FK_IdentityMetadata_identityId" FOREIGN KEY ("identityId") REFERENCES "Identity" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
37
- yield queryRunner.query(`INSERT INTO "temporary_IdentityMetadata"("id", "label", "value", "identityId") SELECT "id", "label", "value", "identityId" FROM "IdentityMetadata"`);
38
- yield queryRunner.query(`DROP TABLE "IdentityMetadata"`);
39
- yield queryRunner.query(`ALTER TABLE "temporary_IdentityMetadata" RENAME TO "IdentityMetadata"`);
40
- yield queryRunner.query(`CREATE TABLE "temporary_Identity" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255) NOT NULL, "roles" text, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "contactId" varchar, CONSTRAINT "UQ_Alias" UNIQUE ("alias"), CONSTRAINT "FK_Identity_contactId" FOREIGN KEY ("contactId") REFERENCES "Contact" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
41
- yield queryRunner.query(`INSERT INTO "temporary_Identity"("id", "alias", "roles", "created_at", "last_updated_at", "contactId") SELECT "id", "alias", "roles", "created_at", "last_updated_at", "contactId" FROM "Identity"`);
42
- yield queryRunner.query(`DROP TABLE "Identity"`);
43
- yield queryRunner.query(`ALTER TABLE "temporary_Identity" RENAME TO "Identity"`);
44
- yield queryRunner.query(`CREATE TABLE "temporary_Connection" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('OIDC','SIOPv2','SIOPv2+OpenID4VP') ) NOT NULL, "identityId" varchar, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"), CONSTRAINT "FK_Connection_identityId" FOREIGN KEY ("identityId") REFERENCES "Identity" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
45
- yield queryRunner.query(`INSERT INTO "temporary_Connection"("id", "type", "identityId") SELECT "id", "type", "identityId" FROM "Connection"`);
46
- yield queryRunner.query(`DROP TABLE "Connection"`);
47
- yield queryRunner.query(`ALTER TABLE "temporary_Connection" RENAME TO "Connection"`);
48
- });
49
- }
50
- down(queryRunner) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- yield queryRunner.query(`ALTER TABLE "Connection" RENAME TO "temporary_Connection"`);
53
- yield queryRunner.query(`CREATE TABLE "Connection" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('OIDC','SIOPv2','SIOPv2+OpenID4VP') ) NOT NULL, "identityId" varchar, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"))`);
54
- yield queryRunner.query(`INSERT INTO "Connection"("id", "type", "identityId") SELECT "id", "type", "identityId" FROM "Connection"`);
55
- yield queryRunner.query(`DROP TABLE "temporary_Connection"`);
56
- yield queryRunner.query(`ALTER TABLE "Identity" RENAME TO "temporary_Identity"`);
57
- yield queryRunner.query(`CREATE TABLE "Identity" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255) NOT NULL, "roles" text, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "contactId" varchar, CONSTRAINT "UQ_Alias" UNIQUE ("alias"))`);
58
- yield queryRunner.query(`INSERT INTO "Identity"("id", "alias", "roles","created_at", "last_updated_at", "contactId") SELECT "id", "alias", "roles","created_at", "last_updated_at", "contactId" FROM "Identity"`);
59
- yield queryRunner.query(`DROP TABLE "temporary_Identity"`);
60
- yield queryRunner.query(`ALTER TABLE "IdentityMetadata" RENAME TO "temporary_IdentityMetadata"`);
61
- yield queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar)`);
62
- yield queryRunner.query(`INSERT INTO "IdentityMetadata"("id", "label", "value", "identityId") SELECT "id", "label", "value", "identityId" FROM "IdentityMetadata"`);
63
- yield queryRunner.query(`DROP TABLE "temporary_IdentityMetadata"`);
64
- yield queryRunner.query(`ALTER TABLE "CorrelationIdentifier" RENAME TO "temporary_CorrelationIdentifier"`);
65
- yield queryRunner.query(`CREATE TABLE "CorrelationIdentifier" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('did','url') ) NOT NULL, "correlation_id" text NOT NULL, "identityId" varchar, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"))`);
66
- yield queryRunner.query(`INSERT INTO "CorrelationIdentifier"("id", "type", "correlation_id", "identityId") SELECT "id", "type", "correlation_id", "identityId" FROM "CorrelationIdentifier"`);
67
- yield queryRunner.query(`DROP TABLE "temporary_CorrelationIdentifier"`);
68
- yield queryRunner.query(`DROP TABLE "Connection"`);
69
- yield queryRunner.query(`DROP TABLE "Identity"`);
70
- yield queryRunner.query(`DROP TABLE "IdentityMetadata"`);
71
- yield queryRunner.query(`DROP TABLE "Contact"`);
72
- yield queryRunner.query(`DROP TABLE "CorrelationIdentifier"`);
73
- yield queryRunner.query(`DROP INDEX "IDX_BaseConfigEntity_type"`);
74
- yield queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
75
- });
76
- }
77
- }
78
- exports.CreateContacts1659463069549 = CreateContacts1659463069549;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateContacts1659463069549 = void 0;
13
+ class CreateContacts1659463069549 {
14
+ constructor() {
15
+ this.name = 'CreateContacts1659463069549';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE "BaseConfigEntity" ("id" varchar PRIMARY KEY NOT NULL, "client_id" varchar(255), "client_secret" varchar(255), "scopes" text, "issuer" varchar(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" varchar(255), "session_id" varchar(255), "type" varchar NOT NULL, "connectionId" varchar, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"))`);
20
+ yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
21
+ yield queryRunner.query(`CREATE TABLE "CorrelationIdentifier" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('did','url') ) NOT NULL, "correlation_id" text NOT NULL, "identityId" varchar, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"))`);
22
+ yield queryRunner.query(`CREATE TABLE "Contact" ("id" varchar PRIMARY KEY NOT NULL, "name" varchar(255) NOT NULL, "alias" varchar(255) NOT NULL, "uri" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_Name" UNIQUE ("name"), CONSTRAINT "UQ_Alias" UNIQUE ("alias"))`);
23
+ yield queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar)`);
24
+ yield queryRunner.query(`CREATE TABLE "Identity" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255) NOT NULL, "roles" text, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "contactId" varchar, CONSTRAINT "UQ_Alias" UNIQUE ("alias"))`);
25
+ yield queryRunner.query(`CREATE TABLE "Connection" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('OIDC','SIOPv2','SIOPv2+OpenID4VP') ) NOT NULL, "identityId" varchar, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"))`);
26
+ yield queryRunner.query(`DROP INDEX "IDX_BaseConfigEntity_type"`);
27
+ yield queryRunner.query(`CREATE TABLE "temporary_BaseConfigEntity" ("id" varchar PRIMARY KEY NOT NULL, "client_id" varchar(255), "client_secret" varchar(255), "scopes" text, "issuer" varchar(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" varchar(255), "session_id" varchar(255), "type" varchar NOT NULL, "connectionId" varchar, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"), CONSTRAINT "FK_BaseConfig_connectionId" FOREIGN KEY ("connectionId") REFERENCES "Connection" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
28
+ yield queryRunner.query(`INSERT INTO "temporary_BaseConfigEntity"("id", "client_id", "client_secret", "scopes", "issuer", "redirect_url", "dangerously_allow_insecure_http_requests", "client_auth_method", "identifier", "session_id", "type", "connectionId") SELECT "id", "client_id", "client_secret", "scopes", "issuer", "redirect_url", "dangerously_allow_insecure_http_requests", "client_auth_method", "identifier", "session_id", "type", "connectionId" FROM "BaseConfigEntity"`);
29
+ yield queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
30
+ yield queryRunner.query(`ALTER TABLE "temporary_BaseConfigEntity" RENAME TO "BaseConfigEntity"`);
31
+ yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
32
+ yield queryRunner.query(`CREATE TABLE "temporary_CorrelationIdentifier" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('did','url') ) NOT NULL, "correlation_id" text NOT NULL, "identityId" varchar, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"), CONSTRAINT "FK_CorrelationIdentifier_identityId" FOREIGN KEY ("identityId") REFERENCES "Identity" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
33
+ yield queryRunner.query(`INSERT INTO "temporary_CorrelationIdentifier"("id", "type", "correlation_id", "identityId") SELECT "id", "type", "correlation_id", "identityId" FROM "CorrelationIdentifier"`);
34
+ yield queryRunner.query(`DROP TABLE "CorrelationIdentifier"`);
35
+ yield queryRunner.query(`ALTER TABLE "temporary_CorrelationIdentifier" RENAME TO "CorrelationIdentifier"`);
36
+ yield queryRunner.query(`CREATE TABLE "temporary_IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar, CONSTRAINT "FK_IdentityMetadata_identityId" FOREIGN KEY ("identityId") REFERENCES "Identity" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
37
+ yield queryRunner.query(`INSERT INTO "temporary_IdentityMetadata"("id", "label", "value", "identityId") SELECT "id", "label", "value", "identityId" FROM "IdentityMetadata"`);
38
+ yield queryRunner.query(`DROP TABLE "IdentityMetadata"`);
39
+ yield queryRunner.query(`ALTER TABLE "temporary_IdentityMetadata" RENAME TO "IdentityMetadata"`);
40
+ yield queryRunner.query(`CREATE TABLE "temporary_Identity" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255) NOT NULL, "roles" text, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "contactId" varchar, CONSTRAINT "UQ_Alias" UNIQUE ("alias"), CONSTRAINT "FK_Identity_contactId" FOREIGN KEY ("contactId") REFERENCES "Contact" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
41
+ yield queryRunner.query(`INSERT INTO "temporary_Identity"("id", "alias", "roles", "created_at", "last_updated_at", "contactId") SELECT "id", "alias", "roles", "created_at", "last_updated_at", "contactId" FROM "Identity"`);
42
+ yield queryRunner.query(`DROP TABLE "Identity"`);
43
+ yield queryRunner.query(`ALTER TABLE "temporary_Identity" RENAME TO "Identity"`);
44
+ yield queryRunner.query(`CREATE TABLE "temporary_Connection" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('OIDC','SIOPv2','SIOPv2+OpenID4VP') ) NOT NULL, "identityId" varchar, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"), CONSTRAINT "FK_Connection_identityId" FOREIGN KEY ("identityId") REFERENCES "Identity" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
45
+ yield queryRunner.query(`INSERT INTO "temporary_Connection"("id", "type", "identityId") SELECT "id", "type", "identityId" FROM "Connection"`);
46
+ yield queryRunner.query(`DROP TABLE "Connection"`);
47
+ yield queryRunner.query(`ALTER TABLE "temporary_Connection" RENAME TO "Connection"`);
48
+ });
49
+ }
50
+ down(queryRunner) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ yield queryRunner.query(`ALTER TABLE "Connection" RENAME TO "temporary_Connection"`);
53
+ yield queryRunner.query(`CREATE TABLE "Connection" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('OIDC','SIOPv2','SIOPv2+OpenID4VP') ) NOT NULL, "identityId" varchar, CONSTRAINT "REL_Connection_identityId" UNIQUE ("identityId"))`);
54
+ yield queryRunner.query(`INSERT INTO "Connection"("id", "type", "identityId") SELECT "id", "type", "identityId" FROM "Connection"`);
55
+ yield queryRunner.query(`DROP TABLE "temporary_Connection"`);
56
+ yield queryRunner.query(`ALTER TABLE "Identity" RENAME TO "temporary_Identity"`);
57
+ yield queryRunner.query(`CREATE TABLE "Identity" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255) NOT NULL, "roles" text, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "contactId" varchar, CONSTRAINT "UQ_Alias" UNIQUE ("alias"))`);
58
+ yield queryRunner.query(`INSERT INTO "Identity"("id", "alias", "roles","created_at", "last_updated_at", "contactId") SELECT "id", "alias", "roles","created_at", "last_updated_at", "contactId" FROM "Identity"`);
59
+ yield queryRunner.query(`DROP TABLE "temporary_Identity"`);
60
+ yield queryRunner.query(`ALTER TABLE "IdentityMetadata" RENAME TO "temporary_IdentityMetadata"`);
61
+ yield queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar)`);
62
+ yield queryRunner.query(`INSERT INTO "IdentityMetadata"("id", "label", "value", "identityId") SELECT "id", "label", "value", "identityId" FROM "IdentityMetadata"`);
63
+ yield queryRunner.query(`DROP TABLE "temporary_IdentityMetadata"`);
64
+ yield queryRunner.query(`ALTER TABLE "CorrelationIdentifier" RENAME TO "temporary_CorrelationIdentifier"`);
65
+ yield queryRunner.query(`CREATE TABLE "CorrelationIdentifier" ("id" varchar PRIMARY KEY NOT NULL, "type" varchar CHECK( "type" IN ('did','url') ) NOT NULL, "correlation_id" text NOT NULL, "identityId" varchar, CONSTRAINT "UQ_Correlation_id" UNIQUE ("correlation_id"), CONSTRAINT "REL_CorrelationIdentifier_identityId" UNIQUE ("identityId"))`);
66
+ yield queryRunner.query(`INSERT INTO "CorrelationIdentifier"("id", "type", "correlation_id", "identityId") SELECT "id", "type", "correlation_id", "identityId" FROM "CorrelationIdentifier"`);
67
+ yield queryRunner.query(`DROP TABLE "temporary_CorrelationIdentifier"`);
68
+ yield queryRunner.query(`DROP TABLE "Connection"`);
69
+ yield queryRunner.query(`DROP TABLE "Identity"`);
70
+ yield queryRunner.query(`DROP TABLE "IdentityMetadata"`);
71
+ yield queryRunner.query(`DROP TABLE "Contact"`);
72
+ yield queryRunner.query(`DROP TABLE "CorrelationIdentifier"`);
73
+ yield queryRunner.query(`DROP INDEX "IDX_BaseConfigEntity_type"`);
74
+ yield queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
75
+ });
76
+ }
77
+ }
78
+ exports.CreateContacts1659463069549 = CreateContacts1659463069549;
79
79
  //# sourceMappingURL=1659463069549-CreateContacts.js.map
@@ -1,7 +1,7 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class CreateIssuanceBranding1685628973231 implements MigrationInterface {
3
- name: string;
4
- up(queryRunner: QueryRunner): Promise<void>;
5
- down(queryRunner: QueryRunner): Promise<void>;
6
- }
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateIssuanceBranding1685628973231 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
7
  //# sourceMappingURL=1685628973231-CreateIssuanceBranding.d.ts.map
@@ -1,89 +1,89 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateIssuanceBranding1685628973231 = void 0;
13
- class CreateIssuanceBranding1685628973231 {
14
- constructor() {
15
- this.name = 'CreateIssuanceBranding1685628973231';
16
- }
17
- up(queryRunner) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- yield queryRunner.query(`CREATE TABLE "ImageDimensions" ("id" varchar PRIMARY KEY NOT NULL, "width" integer NOT NULL, "height" integer NOT NULL)`);
20
- yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar(255), "dataUri" varchar(255), "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
21
- yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
22
- yield queryRunner.query(`CREATE TABLE "TextAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255))`);
23
- yield queryRunner.query(`CREATE TABLE "BaseLocaleBranding" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255), "locale" varchar(255) NOT NULL, "description" varchar(255), "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "credentialBrandingId" varchar, "issuerBrandingId" varchar, "type" varchar NOT NULL, "logoId" varchar, "backgroundId" varchar, "textId" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
24
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
25
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
26
- yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
27
- yield queryRunner.query(`CREATE TABLE "CredentialBranding" ("id" varchar PRIMARY KEY NOT NULL, "vcHash" varchar(255) NOT NULL, "issuerCorrelationId" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_vcHash" UNIQUE ("vcHash"))`);
28
- yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId" ON "CredentialBranding" ("issuerCorrelationId")`);
29
- yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_vcHash" ON "CredentialBranding" ("vcHash")`);
30
- yield queryRunner.query(`CREATE TABLE "IssuerBranding" ("id" varchar PRIMARY KEY NOT NULL, "issuerCorrelationId" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_issuerCorrelationId" UNIQUE ("issuerCorrelationId"))`);
31
- yield queryRunner.query(`CREATE INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId" ON "IssuerBranding" ("issuerCorrelationId")`);
32
- yield queryRunner.query(`CREATE TABLE "temporary_ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar(255), "dataUri" varchar(255), "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"), CONSTRAINT "FK_ImageAttributes_dimensionsId" FOREIGN KEY ("dimensionsId") REFERENCES "ImageDimensions" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
33
- yield queryRunner.query(`INSERT INTO "temporary_ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
34
- yield queryRunner.query(`DROP TABLE "ImageAttributes"`);
35
- yield queryRunner.query(`ALTER TABLE "temporary_ImageAttributes" RENAME TO "ImageAttributes"`);
36
- yield queryRunner.query(`CREATE TABLE "temporary_BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"), CONSTRAINT "FK_BackgroundAttributes_imageId" FOREIGN KEY ("imageId") REFERENCES "ImageAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
37
- yield queryRunner.query(`INSERT INTO "temporary_BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
38
- yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
39
- yield queryRunner.query(`ALTER TABLE "temporary_BackgroundAttributes" RENAME TO "BackgroundAttributes"`);
40
- yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
41
- yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
42
- yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
43
- yield queryRunner.query(`CREATE TABLE "temporary_BaseLocaleBranding" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255), "locale" varchar(255) NOT NULL, "description" varchar(255), "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "credentialBrandingId" varchar, "issuerBrandingId" varchar, "type" varchar NOT NULL, "logoId" varchar, "backgroundId" varchar, "textId" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"), CONSTRAINT "FK_BaseLocaleBranding_logoId" FOREIGN KEY ("logoId") REFERENCES "ImageAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_backgroundId" FOREIGN KEY ("backgroundId") REFERENCES "BackgroundAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_textId" FOREIGN KEY ("textId") REFERENCES "TextAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_credentialBrandingId" FOREIGN KEY ("credentialBrandingId") REFERENCES "CredentialBranding" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_issuerBrandingId" FOREIGN KEY ("issuerBrandingId") REFERENCES "IssuerBranding" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
44
- yield queryRunner.query(`INSERT INTO "temporary_BaseLocaleBranding"("id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId") SELECT "id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId" FROM "BaseLocaleBranding"`);
45
- yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
46
- yield queryRunner.query(`ALTER TABLE "temporary_BaseLocaleBranding" RENAME TO "BaseLocaleBranding"`);
47
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
48
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
49
- yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
50
- });
51
- }
52
- down(queryRunner) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
55
- yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
56
- yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
57
- yield queryRunner.query(`ALTER TABLE "BaseLocaleBranding" RENAME TO "temporary_BaseLocaleBranding"`);
58
- yield queryRunner.query(`CREATE TABLE "BaseLocaleBranding" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255), "locale" varchar(255) NOT NULL, "description" varchar(255), "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "credentialBrandingId" varchar, "issuerBrandingId" varchar, "type" varchar NOT NULL, "logoId" varchar, "backgroundId" varchar, "textId" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
59
- yield queryRunner.query(`INSERT INTO "BaseLocaleBranding"("id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId") SELECT "id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId" FROM "BaseLocaleBranding"`);
60
- yield queryRunner.query(`DROP TABLE "temporary_BaseLocaleBranding"`);
61
- yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
62
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
63
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
64
- yield queryRunner.query(`ALTER TABLE "BackgroundAttributes" RENAME TO "temporary_BackgroundAttributes"`);
65
- yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
66
- yield queryRunner.query(`INSERT INTO "BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
67
- yield queryRunner.query(`DROP TABLE "temporary_BackgroundAttributes"`);
68
- yield queryRunner.query(`ALTER TABLE "ImageAttributes" RENAME TO "temporary_ImageAttributes"`);
69
- yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar(255), "dataUri" varchar(255), "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
70
- yield queryRunner.query(`INSERT INTO "ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
71
- yield queryRunner.query(`DROP TABLE "temporary_ImageAttributes"`);
72
- yield queryRunner.query(`DROP INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId"`);
73
- yield queryRunner.query(`DROP TABLE "IssuerBranding"`);
74
- yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_vcHash"`);
75
- yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId"`);
76
- yield queryRunner.query(`DROP TABLE "CredentialBranding"`);
77
- yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
78
- yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
79
- yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
80
- yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
81
- yield queryRunner.query(`DROP TABLE "TextAttributes"`);
82
- yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
83
- yield queryRunner.query(`DROP TABLE "ImageAttributes"`);
84
- yield queryRunner.query(`DROP TABLE "ImageDimensions"`);
85
- });
86
- }
87
- }
88
- exports.CreateIssuanceBranding1685628973231 = CreateIssuanceBranding1685628973231;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateIssuanceBranding1685628973231 = void 0;
13
+ class CreateIssuanceBranding1685628973231 {
14
+ constructor() {
15
+ this.name = 'CreateIssuanceBranding1685628973231';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`CREATE TABLE "ImageDimensions" ("id" varchar PRIMARY KEY NOT NULL, "width" integer NOT NULL, "height" integer NOT NULL)`);
20
+ yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar(255), "dataUri" varchar(255), "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
21
+ yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
22
+ yield queryRunner.query(`CREATE TABLE "TextAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255))`);
23
+ yield queryRunner.query(`CREATE TABLE "BaseLocaleBranding" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255), "locale" varchar(255) NOT NULL, "description" varchar(255), "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "credentialBrandingId" varchar, "issuerBrandingId" varchar, "type" varchar NOT NULL, "logoId" varchar, "backgroundId" varchar, "textId" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
24
+ yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
25
+ yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
26
+ yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
27
+ yield queryRunner.query(`CREATE TABLE "CredentialBranding" ("id" varchar PRIMARY KEY NOT NULL, "vcHash" varchar(255) NOT NULL, "issuerCorrelationId" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_vcHash" UNIQUE ("vcHash"))`);
28
+ yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId" ON "CredentialBranding" ("issuerCorrelationId")`);
29
+ yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_vcHash" ON "CredentialBranding" ("vcHash")`);
30
+ yield queryRunner.query(`CREATE TABLE "IssuerBranding" ("id" varchar PRIMARY KEY NOT NULL, "issuerCorrelationId" varchar(255) NOT NULL, "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "UQ_issuerCorrelationId" UNIQUE ("issuerCorrelationId"))`);
31
+ yield queryRunner.query(`CREATE INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId" ON "IssuerBranding" ("issuerCorrelationId")`);
32
+ yield queryRunner.query(`CREATE TABLE "temporary_ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar(255), "dataUri" varchar(255), "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"), CONSTRAINT "FK_ImageAttributes_dimensionsId" FOREIGN KEY ("dimensionsId") REFERENCES "ImageDimensions" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
33
+ yield queryRunner.query(`INSERT INTO "temporary_ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
34
+ yield queryRunner.query(`DROP TABLE "ImageAttributes"`);
35
+ yield queryRunner.query(`ALTER TABLE "temporary_ImageAttributes" RENAME TO "ImageAttributes"`);
36
+ yield queryRunner.query(`CREATE TABLE "temporary_BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"), CONSTRAINT "FK_BackgroundAttributes_imageId" FOREIGN KEY ("imageId") REFERENCES "ImageAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
37
+ yield queryRunner.query(`INSERT INTO "temporary_BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
38
+ yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
39
+ yield queryRunner.query(`ALTER TABLE "temporary_BackgroundAttributes" RENAME TO "BackgroundAttributes"`);
40
+ yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
41
+ yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
42
+ yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
43
+ yield queryRunner.query(`CREATE TABLE "temporary_BaseLocaleBranding" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255), "locale" varchar(255) NOT NULL, "description" varchar(255), "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "credentialBrandingId" varchar, "issuerBrandingId" varchar, "type" varchar NOT NULL, "logoId" varchar, "backgroundId" varchar, "textId" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"), CONSTRAINT "FK_BaseLocaleBranding_logoId" FOREIGN KEY ("logoId") REFERENCES "ImageAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_backgroundId" FOREIGN KEY ("backgroundId") REFERENCES "BackgroundAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_textId" FOREIGN KEY ("textId") REFERENCES "TextAttributes" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_credentialBrandingId" FOREIGN KEY ("credentialBrandingId") REFERENCES "CredentialBranding" ("id") ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT "FK_BaseLocaleBranding_issuerBrandingId" FOREIGN KEY ("issuerBrandingId") REFERENCES "IssuerBranding" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
44
+ yield queryRunner.query(`INSERT INTO "temporary_BaseLocaleBranding"("id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId") SELECT "id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId" FROM "BaseLocaleBranding"`);
45
+ yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
46
+ yield queryRunner.query(`ALTER TABLE "temporary_BaseLocaleBranding" RENAME TO "BaseLocaleBranding"`);
47
+ yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
48
+ yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
49
+ yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
50
+ });
51
+ }
52
+ down(queryRunner) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
55
+ yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
56
+ yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
57
+ yield queryRunner.query(`ALTER TABLE "BaseLocaleBranding" RENAME TO "temporary_BaseLocaleBranding"`);
58
+ yield queryRunner.query(`CREATE TABLE "BaseLocaleBranding" ("id" varchar PRIMARY KEY NOT NULL, "alias" varchar(255), "locale" varchar(255) NOT NULL, "description" varchar(255), "created_at" datetime NOT NULL DEFAULT (datetime('now')), "last_updated_at" datetime NOT NULL DEFAULT (datetime('now')), "credentialBrandingId" varchar, "issuerBrandingId" varchar, "type" varchar NOT NULL, "logoId" varchar, "backgroundId" varchar, "textId" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
59
+ yield queryRunner.query(`INSERT INTO "BaseLocaleBranding"("id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId") SELECT "id", "alias", "locale", "description", "created_at", "last_updated_at", "credentialBrandingId", "issuerBrandingId", "type", "logoId", "backgroundId", "textId" FROM "BaseLocaleBranding"`);
60
+ yield queryRunner.query(`DROP TABLE "temporary_BaseLocaleBranding"`);
61
+ yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
62
+ yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
63
+ yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
64
+ yield queryRunner.query(`ALTER TABLE "BackgroundAttributes" RENAME TO "temporary_BackgroundAttributes"`);
65
+ yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
66
+ yield queryRunner.query(`INSERT INTO "BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
67
+ yield queryRunner.query(`DROP TABLE "temporary_BackgroundAttributes"`);
68
+ yield queryRunner.query(`ALTER TABLE "ImageAttributes" RENAME TO "temporary_ImageAttributes"`);
69
+ yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar(255), "dataUri" varchar(255), "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
70
+ yield queryRunner.query(`INSERT INTO "ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
71
+ yield queryRunner.query(`DROP TABLE "temporary_ImageAttributes"`);
72
+ yield queryRunner.query(`DROP INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId"`);
73
+ yield queryRunner.query(`DROP TABLE "IssuerBranding"`);
74
+ yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_vcHash"`);
75
+ yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId"`);
76
+ yield queryRunner.query(`DROP TABLE "CredentialBranding"`);
77
+ yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
78
+ yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
79
+ yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
80
+ yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
81
+ yield queryRunner.query(`DROP TABLE "TextAttributes"`);
82
+ yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
83
+ yield queryRunner.query(`DROP TABLE "ImageAttributes"`);
84
+ yield queryRunner.query(`DROP TABLE "ImageDimensions"`);
85
+ });
86
+ }
87
+ }
88
+ exports.CreateIssuanceBranding1685628973231 = CreateIssuanceBranding1685628973231;
89
89
  //# sourceMappingURL=1685628973231-CreateIssuanceBranding.js.map
@@ -1,7 +1,7 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class CreateContacts1690925872693 implements MigrationInterface {
3
- name: string;
4
- up(queryRunner: QueryRunner): Promise<void>;
5
- down(queryRunner: QueryRunner): Promise<void>;
6
- }
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateContacts1690925872693 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
7
  //# sourceMappingURL=1690925872693-CreateContacts.d.ts.map