@sphereon/ssi-sdk.data-store 0.33.0 → 0.33.1-feature.vcdm2.4

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 (210) hide show
  1. package/dist/contact/AbstractContactStore.js +1 -5
  2. package/dist/contact/AbstractContactStore.js.map +1 -1
  3. package/dist/contact/ContactStore.js +544 -545
  4. package/dist/contact/ContactStore.js.map +1 -1
  5. package/dist/digitalCredential/AbstractDigitalCredentialStore.js +1 -5
  6. package/dist/digitalCredential/AbstractDigitalCredentialStore.js.map +1 -1
  7. package/dist/digitalCredential/DigitalCredentialStore.js +131 -142
  8. package/dist/digitalCredential/DigitalCredentialStore.js.map +1 -1
  9. package/dist/entities/contact/BaseConfigEntity.js +13 -14
  10. package/dist/entities/contact/BaseConfigEntity.js.map +1 -1
  11. package/dist/entities/contact/BaseContactEntity.js +24 -22
  12. package/dist/entities/contact/BaseContactEntity.js.map +1 -1
  13. package/dist/entities/contact/ConnectionEntity.js +23 -20
  14. package/dist/entities/contact/ConnectionEntity.js.map +1 -1
  15. package/dist/entities/contact/ContactMetadataItemEntity.js +38 -44
  16. package/dist/entities/contact/ContactMetadataItemEntity.js.map +1 -1
  17. package/dist/entities/contact/CorrelationIdentifierEntity.js +34 -42
  18. package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
  19. package/dist/entities/contact/DidAuthConfigEntity.js +16 -14
  20. package/dist/entities/contact/DidAuthConfigEntity.js.map +1 -1
  21. package/dist/entities/contact/ElectronicAddressEntity.js +42 -47
  22. package/dist/entities/contact/ElectronicAddressEntity.js.map +1 -1
  23. package/dist/entities/contact/IdentityEntity.js +56 -57
  24. package/dist/entities/contact/IdentityEntity.js.map +1 -1
  25. package/dist/entities/contact/IdentityMetadataItemEntity.js +38 -44
  26. package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
  27. package/dist/entities/contact/NaturalPersonEntity.js +35 -43
  28. package/dist/entities/contact/NaturalPersonEntity.js.map +1 -1
  29. package/dist/entities/contact/OpenIdConfigEntity.js +24 -18
  30. package/dist/entities/contact/OpenIdConfigEntity.js.map +1 -1
  31. package/dist/entities/contact/OrganizationEntity.js +28 -38
  32. package/dist/entities/contact/OrganizationEntity.js.map +1 -1
  33. package/dist/entities/contact/PartyEntity.js +57 -59
  34. package/dist/entities/contact/PartyEntity.js.map +1 -1
  35. package/dist/entities/contact/PartyRelationshipEntity.js +37 -43
  36. package/dist/entities/contact/PartyRelationshipEntity.js.map +1 -1
  37. package/dist/entities/contact/PartyTypeEntity.js +44 -49
  38. package/dist/entities/contact/PartyTypeEntity.js.map +1 -1
  39. package/dist/entities/contact/PhysicalAddressEntity.js +61 -60
  40. package/dist/entities/contact/PhysicalAddressEntity.js.map +1 -1
  41. package/dist/entities/digitalCredential/DigitalCredentialEntity.js +63 -38
  42. package/dist/entities/digitalCredential/DigitalCredentialEntity.js.map +1 -1
  43. package/dist/entities/eventLogger/AuditEventEntity.js +60 -37
  44. package/dist/entities/eventLogger/AuditEventEntity.js.map +1 -1
  45. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +25 -36
  46. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -1
  47. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +48 -53
  48. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -1
  49. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +35 -43
  50. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -1
  51. package/dist/entities/issuanceBranding/CredentialClaimsEntity.js +28 -38
  52. package/dist/entities/issuanceBranding/CredentialClaimsEntity.js.map +1 -1
  53. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +18 -18
  54. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -1
  55. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +34 -42
  56. package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -1
  57. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +11 -11
  58. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -1
  59. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +31 -40
  60. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -1
  61. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +27 -24
  62. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -1
  63. package/dist/entities/issuanceBranding/TextAttributesEntity.js +20 -32
  64. package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -1
  65. package/dist/entities/machineState/MachineStateInfoEntity.js +31 -21
  66. package/dist/entities/machineState/MachineStateInfoEntity.js.map +1 -1
  67. package/dist/entities/oid4vcState/Oid4vcStateEntity.js +24 -18
  68. package/dist/entities/oid4vcState/Oid4vcStateEntity.js.map +1 -1
  69. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js +34 -27
  70. package/dist/entities/presentationDefinition/PresentationDefinitionItemEntity.js.map +1 -1
  71. package/dist/entities/statusList/StatusList2021EntryEntity.js +26 -22
  72. package/dist/entities/statusList/StatusList2021EntryEntity.js.map +1 -1
  73. package/dist/entities/statusList/StatusListEntities.js +48 -39
  74. package/dist/entities/statusList/StatusListEntities.js.map +1 -1
  75. package/dist/entities/validators/index.js +6 -10
  76. package/dist/entities/validators/index.js.map +1 -1
  77. package/dist/eventLogger/AbstractEventLoggerStore.js +1 -5
  78. package/dist/eventLogger/AbstractEventLoggerStore.js.map +1 -1
  79. package/dist/eventLogger/EventLoggerStore.js +50 -65
  80. package/dist/eventLogger/EventLoggerStore.js.map +1 -1
  81. package/dist/index.js +96 -163
  82. package/dist/index.js.map +1 -1
  83. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +1 -5
  84. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js.map +1 -1
  85. package/dist/issuanceBranding/IssuanceBrandingStore.js +331 -333
  86. package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -1
  87. package/dist/machineState/IAbstractMachineStateStore.js +1 -5
  88. package/dist/machineState/IAbstractMachineStateStore.js.map +1 -1
  89. package/dist/machineState/MachineStateStore.js +102 -122
  90. package/dist/machineState/MachineStateStore.js.map +1 -1
  91. package/dist/migrations/generic/1-CreateContacts.js +50 -72
  92. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  93. package/dist/migrations/generic/10-CreatePresentationDefinitions.js +50 -72
  94. package/dist/migrations/generic/10-CreatePresentationDefinitions.js.map +1 -1
  95. package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js +52 -74
  96. package/dist/migrations/generic/11-FixCredentialClaimsReferenceUuid.js.map +1 -1
  97. package/dist/migrations/generic/2-CreateIssuanceBranding.js +50 -72
  98. package/dist/migrations/generic/2-CreateIssuanceBranding.js.map +1 -1
  99. package/dist/migrations/generic/3-CreateContacts.js +50 -72
  100. package/dist/migrations/generic/3-CreateContacts.js.map +1 -1
  101. package/dist/migrations/generic/4-CreateStatusList.js +56 -78
  102. package/dist/migrations/generic/4-CreateStatusList.js.map +1 -1
  103. package/dist/migrations/generic/5-CreateAuditEvents.js +50 -72
  104. package/dist/migrations/generic/5-CreateAuditEvents.js.map +1 -1
  105. package/dist/migrations/generic/6-CreateDigitalCredential.js +50 -72
  106. package/dist/migrations/generic/6-CreateDigitalCredential.js.map +1 -1
  107. package/dist/migrations/generic/7-CreateMachineStateStore.js +50 -72
  108. package/dist/migrations/generic/7-CreateMachineStateStore.js.map +1 -1
  109. package/dist/migrations/generic/8-CreateContacts.js +50 -72
  110. package/dist/migrations/generic/8-CreateContacts.js.map +1 -1
  111. package/dist/migrations/generic/9-CreateContacts.js +50 -72
  112. package/dist/migrations/generic/9-CreateContacts.js.map +1 -1
  113. package/dist/migrations/generic/index.js +30 -33
  114. package/dist/migrations/generic/index.js.map +1 -1
  115. package/dist/migrations/index.js +1 -12
  116. package/dist/migrations/index.js.map +1 -1
  117. package/dist/migrations/internal-migrations-ormconfig.js +6 -8
  118. package/dist/migrations/internal-migrations-ormconfig.js.map +1 -1
  119. package/dist/migrations/postgres/1659463079428-CreateContacts.js +34 -53
  120. package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
  121. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +50 -69
  122. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
  123. package/dist/migrations/postgres/1690925872592-CreateContacts.js +87 -106
  124. package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
  125. package/dist/migrations/postgres/1693866470001-CreateStatusList.js +16 -35
  126. package/dist/migrations/postgres/1693866470001-CreateStatusList.js.map +1 -1
  127. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js +22 -41
  128. package/dist/migrations/postgres/1701634812183-CreateAuditEvents.js.map +1 -1
  129. package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js +19 -38
  130. package/dist/migrations/postgres/1708525189001-CreateDigitalCredential.js.map +1 -1
  131. package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js +6 -25
  132. package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js.map +1 -1
  133. package/dist/migrations/postgres/1710438363001-CreateContacts.js +40 -59
  134. package/dist/migrations/postgres/1710438363001-CreateContacts.js.map +1 -1
  135. package/dist/migrations/postgres/1715761125001-CreateContacts.js +18 -37
  136. package/dist/migrations/postgres/1715761125001-CreateContacts.js.map +1 -1
  137. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js +6 -25
  138. package/dist/migrations/postgres/1716475165345-CreatePresentationDefinitions.js.map +1 -1
  139. package/dist/migrations/postgres/1737110469001-UpdateStatusList.js +16 -35
  140. package/dist/migrations/postgres/1737110469001-UpdateStatusList.js.map +1 -1
  141. package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js +8 -27
  142. package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js.map +1 -1
  143. package/dist/migrations/sqlite/1659463069549-CreateContacts.js +56 -75
  144. package/dist/migrations/sqlite/1659463069549-CreateContacts.js.map +1 -1
  145. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +70 -89
  146. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -1
  147. package/dist/migrations/sqlite/1690925872693-CreateContacts.js +120 -139
  148. package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
  149. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js +12 -31
  150. package/dist/migrations/sqlite/1693866470000-CreateStatusList.js.map +1 -1
  151. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js +6 -25
  152. package/dist/migrations/sqlite/1701634819487-CreateAuditEvents.js.map +1 -1
  153. package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js +7 -26
  154. package/dist/migrations/sqlite/1708525189002-CreateDigitalCredential.js.map +1 -1
  155. package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js +6 -25
  156. package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js.map +1 -1
  157. package/dist/migrations/sqlite/1710438363002-CreateContacts.js +43 -62
  158. package/dist/migrations/sqlite/1710438363002-CreateContacts.js.map +1 -1
  159. package/dist/migrations/sqlite/1715761125002-CreateContacts.js +18 -37
  160. package/dist/migrations/sqlite/1715761125002-CreateContacts.js.map +1 -1
  161. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js +6 -25
  162. package/dist/migrations/sqlite/1716475165344-CreatePresentationDefinitions.js.map +1 -1
  163. package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js +20 -39
  164. package/dist/migrations/sqlite/1737110469000-UpdateStatusList.js.map +1 -1
  165. package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js +25 -44
  166. package/dist/migrations/sqlite/1741895822987-FixCredentialClaimsReferencesUuid.js.map +1 -1
  167. package/dist/presentationDefinition/AbstractPDStore.js +1 -5
  168. package/dist/presentationDefinition/AbstractPDStore.js.map +1 -1
  169. package/dist/presentationDefinition/PDStore.js +114 -123
  170. package/dist/presentationDefinition/PDStore.js.map +1 -1
  171. package/dist/statusList/IStatusListStore.js +1 -2
  172. package/dist/statusList/StatusListStore.js +196 -225
  173. package/dist/statusList/StatusListStore.js.map +1 -1
  174. package/dist/types/contact/IAbstractContactStore.js +1 -2
  175. package/dist/types/contact/contact.js +10 -13
  176. package/dist/types/contact/contact.js.map +1 -1
  177. package/dist/types/digitalCredential/IAbstractDigitalCredentialStore.js +1 -2
  178. package/dist/types/digitalCredential/digitalCredential.js +13 -16
  179. package/dist/types/digitalCredential/digitalCredential.js.map +1 -1
  180. package/dist/types/eventLogger/IAbstractEventLoggerStore.js +1 -2
  181. package/dist/types/eventLogger/eventLogger.js +1 -2
  182. package/dist/types/index.js +14 -30
  183. package/dist/types/index.js.map +1 -1
  184. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +1 -2
  185. package/dist/types/issuanceBranding/issuanceBranding.js +1 -2
  186. package/dist/types/machineState/IAbstractMachineStateStore.js +1 -2
  187. package/dist/types/presentationDefinition/IAbstractPDStore.js +1 -2
  188. package/dist/types/presentationDefinition/presentationDefinition.js +1 -2
  189. package/dist/types/statusList/IAbstractStatusListStore.js +1 -2
  190. package/dist/types/statusList/statusList.js +1 -2
  191. package/dist/types/validation/validation.js +1 -2
  192. package/dist/utils/FormattingUtils.js +3 -7
  193. package/dist/utils/FormattingUtils.js.map +1 -1
  194. package/dist/utils/SortingUtils.js +1 -5
  195. package/dist/utils/SortingUtils.js.map +1 -1
  196. package/dist/utils/ValidatorUtils.js +2 -6
  197. package/dist/utils/ValidatorUtils.js.map +1 -1
  198. package/dist/utils/contact/MappingUtils.js +124 -150
  199. package/dist/utils/contact/MappingUtils.js.map +1 -1
  200. package/dist/utils/digitalCredential/MappingUtils.js +50 -47
  201. package/dist/utils/digitalCredential/MappingUtils.js.map +1 -1
  202. package/dist/utils/eventLogger/MappingUtils.js +60 -22
  203. package/dist/utils/eventLogger/MappingUtils.js.map +1 -1
  204. package/dist/utils/issuanceBranding/MappingUtils.js +71 -77
  205. package/dist/utils/issuanceBranding/MappingUtils.js.map +1 -1
  206. package/dist/utils/presentationDefinition/MappingUtils.js +9 -15
  207. package/dist/utils/presentationDefinition/MappingUtils.js.map +1 -1
  208. package/dist/utils/statusList/MappingUtils.js +27 -22
  209. package/dist/utils/statusList/MappingUtils.js.map +1 -1
  210. package/package.json +5 -5
@@ -1,37 +1,18 @@
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.FixCredentialClaimsReferencesUuidPG1741895822987 = void 0;
13
- class FixCredentialClaimsReferencesUuidPG1741895822987 {
14
- constructor() {
15
- this.name = 'FixCredentialClaimsReferencesUuid1741895822987';
16
- }
17
- up(queryRunner) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- // Migrate varchar to uuid
20
- yield queryRunner.query(`
1
+ export class FixCredentialClaimsReferencesUuidPG1741895822987 {
2
+ name = 'FixCredentialClaimsReferencesUuid1741895822987';
3
+ async up(queryRunner) {
4
+ // Migrate varchar to uuid
5
+ await queryRunner.query(`
21
6
  ALTER TABLE "CredentialClaims"
22
7
  ALTER COLUMN "credentialLocaleBrandingId" TYPE uuid USING "credentialLocaleBrandingId"::uuid;
23
8
  `);
24
- });
25
9
  }
26
- down(queryRunner) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- // Migrate uuid back to varchar
29
- yield queryRunner.query(`
10
+ async down(queryRunner) {
11
+ // Migrate uuid back to varchar
12
+ await queryRunner.query(`
30
13
  ALTER TABLE "CredentialClaims"
31
14
  ALTER COLUMN "credentialLocaleBrandingId" TYPE character varying USING "credentialLocaleBrandingId"::text;
32
15
  `);
33
- });
34
16
  }
35
17
  }
36
- exports.FixCredentialClaimsReferencesUuidPG1741895822987 = FixCredentialClaimsReferencesUuidPG1741895822987;
37
18
  //# sourceMappingURL=1741895822987-FixCredentialClaimsReferencesUuid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1741895822987-FixCredentialClaimsReferencesUuid.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gDAAgD;IAA7D;QACE,SAAI,GAAG,gDAAgD,CAAA;IAiBzD,CAAC;IAfc,EAAE,CAAC,WAAwB;;YACtC,0BAA0B;YAC1B,MAAM,WAAW,CAAC,KAAK,CAAC;;;KAGvB,CAAC,CAAA;QACJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,+BAA+B;YAC/B,MAAM,WAAW,CAAC,KAAK,CAAC;;;KAGvB,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAlBD,4GAkBC"}
1
+ {"version":3,"file":"1741895822987-FixCredentialClaimsReferencesUuid.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,gDAAgD;IAC3D,IAAI,GAAG,gDAAgD,CAAA;IAEhD,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,0BAA0B;QAC1B,MAAM,WAAW,CAAC,KAAK,CAAC;;;KAGvB,CAAC,CAAA;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,+BAA+B;QAC/B,MAAM,WAAW,CAAC,KAAK,CAAC;;;KAGvB,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -1,79 +1,60 @@
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';
1
+ export class CreateContacts1659463069549 {
2
+ name = 'CreateContacts1659463069549';
3
+ async up(queryRunner) {
4
+ await 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"))`);
5
+ await queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
6
+ await 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"))`);
7
+ await 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"))`);
8
+ await queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar)`);
9
+ await 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"))`);
10
+ await 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"))`);
11
+ await queryRunner.query(`DROP INDEX "IDX_BaseConfigEntity_type"`);
12
+ await 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)`);
13
+ await 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"`);
14
+ await queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
15
+ await queryRunner.query(`ALTER TABLE "temporary_BaseConfigEntity" RENAME TO "BaseConfigEntity"`);
16
+ await queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
17
+ await 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)`);
18
+ await queryRunner.query(`INSERT INTO "temporary_CorrelationIdentifier"("id", "type", "correlation_id", "identityId") SELECT "id", "type", "correlation_id", "identityId" FROM "CorrelationIdentifier"`);
19
+ await queryRunner.query(`DROP TABLE "CorrelationIdentifier"`);
20
+ await queryRunner.query(`ALTER TABLE "temporary_CorrelationIdentifier" RENAME TO "CorrelationIdentifier"`);
21
+ await 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)`);
22
+ await queryRunner.query(`INSERT INTO "temporary_IdentityMetadata"("id", "label", "value", "identityId") SELECT "id", "label", "value", "identityId" FROM "IdentityMetadata"`);
23
+ await queryRunner.query(`DROP TABLE "IdentityMetadata"`);
24
+ await queryRunner.query(`ALTER TABLE "temporary_IdentityMetadata" RENAME TO "IdentityMetadata"`);
25
+ await 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)`);
26
+ await 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"`);
27
+ await queryRunner.query(`DROP TABLE "Identity"`);
28
+ await queryRunner.query(`ALTER TABLE "temporary_Identity" RENAME TO "Identity"`);
29
+ await 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)`);
30
+ await queryRunner.query(`INSERT INTO "temporary_Connection"("id", "type", "identityId") SELECT "id", "type", "identityId" FROM "Connection"`);
31
+ await queryRunner.query(`DROP TABLE "Connection"`);
32
+ await queryRunner.query(`ALTER TABLE "temporary_Connection" RENAME TO "Connection"`);
16
33
  }
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
- });
34
+ async down(queryRunner) {
35
+ await queryRunner.query(`ALTER TABLE "Connection" RENAME TO "temporary_Connection"`);
36
+ await 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"))`);
37
+ await queryRunner.query(`INSERT INTO "Connection"("id", "type", "identityId") SELECT "id", "type", "identityId" FROM "Connection"`);
38
+ await queryRunner.query(`DROP TABLE "temporary_Connection"`);
39
+ await queryRunner.query(`ALTER TABLE "Identity" RENAME TO "temporary_Identity"`);
40
+ await 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"))`);
41
+ await 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"`);
42
+ await queryRunner.query(`DROP TABLE "temporary_Identity"`);
43
+ await queryRunner.query(`ALTER TABLE "IdentityMetadata" RENAME TO "temporary_IdentityMetadata"`);
44
+ await queryRunner.query(`CREATE TABLE "IdentityMetadata" ("id" varchar PRIMARY KEY NOT NULL, "label" varchar(255) NOT NULL, "value" varchar(255) NOT NULL, "identityId" varchar)`);
45
+ await queryRunner.query(`INSERT INTO "IdentityMetadata"("id", "label", "value", "identityId") SELECT "id", "label", "value", "identityId" FROM "IdentityMetadata"`);
46
+ await queryRunner.query(`DROP TABLE "temporary_IdentityMetadata"`);
47
+ await queryRunner.query(`ALTER TABLE "CorrelationIdentifier" RENAME TO "temporary_CorrelationIdentifier"`);
48
+ await 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"))`);
49
+ await queryRunner.query(`INSERT INTO "CorrelationIdentifier"("id", "type", "correlation_id", "identityId") SELECT "id", "type", "correlation_id", "identityId" FROM "CorrelationIdentifier"`);
50
+ await queryRunner.query(`DROP TABLE "temporary_CorrelationIdentifier"`);
51
+ await queryRunner.query(`DROP TABLE "Connection"`);
52
+ await queryRunner.query(`DROP TABLE "Identity"`);
53
+ await queryRunner.query(`DROP TABLE "IdentityMetadata"`);
54
+ await queryRunner.query(`DROP TABLE "Contact"`);
55
+ await queryRunner.query(`DROP TABLE "CorrelationIdentifier"`);
56
+ await queryRunner.query(`DROP INDEX "IDX_BaseConfigEntity_type"`);
57
+ await queryRunner.query(`DROP TABLE "BaseConfigEntity"`);
76
58
  }
77
59
  }
78
- exports.CreateContacts1659463069549 = CreateContacts1659463069549;
79
60
  //# sourceMappingURL=1659463069549-CreateContacts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1659463069549-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1659463069549-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IA0GtC,CAAC;IAxGc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CACrB,gbAAgb,CACjb,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAA;YAClG,MAAM,WAAW,CAAC,KAAK,CACrB,6TAA6T,CAC9T,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6VAA6V,CAC9V,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,yJAAyJ,CAC1J,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,gSAAgS,CACjS,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,oOAAoO,CACrO,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAA;YACjE,MAAM,WAAW,CAAC,KAAK,CACrB,qkBAAqkB,CACtkB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,ocAAoc,CACrc,CAAA;YACD,MAAM,WAAW,CAAC,KAAK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,CAC3I,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAA;QAElE,MAAM,WAAW,CAAC,KAAK,CAAC,iFAAiF,CAAC,CAAA;QAC1G,MAAM,WAAW,CAAC,KAAK,CACrB,6TAA6T,CAC9T,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,oKAAoK,CACrK,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAA;QACvE,MAAM,WAAW,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAA;QAClD,MAAM,WAAW,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QAChD,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;QACxD,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;QAC/C,MAAM,WAAW,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAA;QAC7D,MAAM,WAAW,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAA;QACjE,MAAM,WAAW,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAA;IAC1D,CAAC;CACF"}
@@ -1,93 +1,74 @@
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';
1
+ export class CreateIssuanceBranding1685628973231 {
2
+ name = 'CreateIssuanceBranding1685628973231';
3
+ async up(queryRunner) {
4
+ await queryRunner.query(`CREATE TABLE "ImageDimensions" ("id" varchar PRIMARY KEY NOT NULL, "width" integer NOT NULL, "height" integer NOT NULL)`);
5
+ await queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar, "dataUri" varchar, "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
6
+ await queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
7
+ await queryRunner.query(`CREATE TABLE "TextAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255))`);
8
+ await 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, "client_uri" varchar, "tos_uri" varchar, "policy_uri" varchar, "contacts" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
9
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
10
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
11
+ await queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
12
+ await queryRunner.query(`CREATE TABLE "CredentialClaims" ("id" varchar PRIMARY KEY NOT NULL, "key" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "credentialLocaleBrandingId" varchar)`);
13
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`);
14
+ await 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"))`);
15
+ await queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId" ON "CredentialBranding" ("issuerCorrelationId")`);
16
+ await queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_vcHash" ON "CredentialBranding" ("vcHash")`);
17
+ await 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"))`);
18
+ await queryRunner.query(`CREATE INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId" ON "IssuerBranding" ("issuerCorrelationId")`);
19
+ await queryRunner.query(`CREATE TABLE "temporary_ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar, "dataUri" varchar, "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)`);
20
+ await queryRunner.query(`INSERT INTO "temporary_ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
21
+ await queryRunner.query(`DROP TABLE "ImageAttributes"`);
22
+ await queryRunner.query(`ALTER TABLE "temporary_ImageAttributes" RENAME TO "ImageAttributes"`);
23
+ await 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)`);
24
+ await queryRunner.query(`INSERT INTO "temporary_BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
25
+ await queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
26
+ await queryRunner.query(`ALTER TABLE "temporary_BackgroundAttributes" RENAME TO "BackgroundAttributes"`);
27
+ await queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
28
+ await queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
29
+ await queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
30
+ await 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, "client_uri" varchar, "tos_uri" varchar, "policy_uri" varchar, "contacts" 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)`);
31
+ await 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"`);
32
+ await queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
33
+ await queryRunner.query(`ALTER TABLE "temporary_BaseLocaleBranding" RENAME TO "BaseLocaleBranding"`);
34
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
35
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
36
+ await queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
16
37
  }
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, "dataUri" varchar, "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, "client_uri" varchar, "tos_uri" varchar, "policy_uri" varchar, "contacts" 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 "CredentialClaims" ("id" varchar PRIMARY KEY NOT NULL, "key" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "credentialLocaleBrandingId" varchar)`);
28
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale" ON "CredentialClaims" ("credentialLocaleBrandingId", "key")`);
29
- 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"))`);
30
- yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId" ON "CredentialBranding" ("issuerCorrelationId")`);
31
- yield queryRunner.query(`CREATE INDEX "IDX_CredentialBrandingEntity_vcHash" ON "CredentialBranding" ("vcHash")`);
32
- 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"))`);
33
- yield queryRunner.query(`CREATE INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId" ON "IssuerBranding" ("issuerCorrelationId")`);
34
- yield queryRunner.query(`CREATE TABLE "temporary_ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar, "dataUri" varchar, "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)`);
35
- yield queryRunner.query(`INSERT INTO "temporary_ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
36
- yield queryRunner.query(`DROP TABLE "ImageAttributes"`);
37
- yield queryRunner.query(`ALTER TABLE "temporary_ImageAttributes" RENAME TO "ImageAttributes"`);
38
- 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)`);
39
- yield queryRunner.query(`INSERT INTO "temporary_BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
40
- yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
41
- yield queryRunner.query(`ALTER TABLE "temporary_BackgroundAttributes" RENAME TO "BackgroundAttributes"`);
42
- yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
43
- yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
44
- yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
45
- 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, "client_uri" varchar, "tos_uri" varchar, "policy_uri" varchar, "contacts" 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)`);
46
- 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"`);
47
- yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
48
- yield queryRunner.query(`ALTER TABLE "temporary_BaseLocaleBranding" RENAME TO "BaseLocaleBranding"`);
49
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
50
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
51
- yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
52
- });
53
- }
54
- down(queryRunner) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
57
- yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
58
- yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
59
- yield queryRunner.query(`ALTER TABLE "BaseLocaleBranding" RENAME TO "temporary_BaseLocaleBranding"`);
60
- 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, "client_uri" varchar, "tos_uri" varchar, "policy_uri" varchar, "contacts" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
61
- 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"`);
62
- yield queryRunner.query(`DROP TABLE "temporary_BaseLocaleBranding"`);
63
- yield queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
64
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
65
- yield queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
66
- yield queryRunner.query(`ALTER TABLE "BackgroundAttributes" RENAME TO "temporary_BackgroundAttributes"`);
67
- yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
68
- yield queryRunner.query(`INSERT INTO "BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
69
- yield queryRunner.query(`DROP TABLE "temporary_BackgroundAttributes"`);
70
- yield queryRunner.query(`ALTER TABLE "ImageAttributes" RENAME TO "temporary_ImageAttributes"`);
71
- yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar, "dataUri" varchar, "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
72
- yield queryRunner.query(`INSERT INTO "ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
73
- yield queryRunner.query(`DROP TABLE "temporary_ImageAttributes"`);
74
- yield queryRunner.query(`DROP INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId"`);
75
- yield queryRunner.query(`DROP TABLE "IssuerBranding"`);
76
- yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_vcHash"`);
77
- yield queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId"`);
78
- yield queryRunner.query(`DROP TABLE "CredentialBranding"`);
79
- yield queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
80
- yield queryRunner.query(`DROP INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale"`);
81
- yield queryRunner.query(`DROP TABLE "CredentialClaims"`);
82
- yield queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
83
- yield queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
84
- yield queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
85
- yield queryRunner.query(`DROP TABLE "TextAttributes"`);
86
- yield queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
87
- yield queryRunner.query(`DROP TABLE "ImageAttributes"`);
88
- yield queryRunner.query(`DROP TABLE "ImageDimensions"`);
89
- });
38
+ async down(queryRunner) {
39
+ await queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
40
+ await queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
41
+ await queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
42
+ await queryRunner.query(`ALTER TABLE "BaseLocaleBranding" RENAME TO "temporary_BaseLocaleBranding"`);
43
+ await 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, "client_uri" varchar, "tos_uri" varchar, "policy_uri" varchar, "contacts" varchar, CONSTRAINT "UQ_logoId" UNIQUE ("logoId"), CONSTRAINT "UQ_backgroundId" UNIQUE ("backgroundId"), CONSTRAINT "UQ_textId" UNIQUE ("textId"))`);
44
+ await 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"`);
45
+ await queryRunner.query(`DROP TABLE "temporary_BaseLocaleBranding"`);
46
+ await queryRunner.query(`CREATE INDEX "IDX_BaseLocaleBranding_type" ON "BaseLocaleBranding" ("type")`);
47
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale" ON "BaseLocaleBranding" ("issuerBrandingId", "locale")`);
48
+ await queryRunner.query(`CREATE UNIQUE INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale" ON "BaseLocaleBranding" ("credentialBrandingId", "locale")`);
49
+ await queryRunner.query(`ALTER TABLE "BackgroundAttributes" RENAME TO "temporary_BackgroundAttributes"`);
50
+ await queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" varchar PRIMARY KEY NOT NULL, "color" varchar(255), "imageId" varchar, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"))`);
51
+ await queryRunner.query(`INSERT INTO "BackgroundAttributes"("id", "color", "imageId") SELECT "id", "color", "imageId" FROM "BackgroundAttributes"`);
52
+ await queryRunner.query(`DROP TABLE "temporary_BackgroundAttributes"`);
53
+ await queryRunner.query(`ALTER TABLE "ImageAttributes" RENAME TO "temporary_ImageAttributes"`);
54
+ await queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" varchar PRIMARY KEY NOT NULL, "uri" varchar, "dataUri" varchar, "mediaType" varchar(255), "alt" varchar(255), "dimensionsId" varchar, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"))`);
55
+ await queryRunner.query(`INSERT INTO "ImageAttributes"("id", "uri", "dataUri", "mediaType", "alt", "dimensionsId") SELECT "id", "uri", "dataUri", "mediaType", "alt", "dimensionsId" FROM "ImageAttributes"`);
56
+ await queryRunner.query(`DROP TABLE "temporary_ImageAttributes"`);
57
+ await queryRunner.query(`DROP INDEX "IDX_IssuerBrandingEntity_issuerCorrelationId"`);
58
+ await queryRunner.query(`DROP TABLE "IssuerBranding"`);
59
+ await queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_vcHash"`);
60
+ await queryRunner.query(`DROP INDEX "IDX_CredentialBrandingEntity_issuerCorrelationId"`);
61
+ await queryRunner.query(`DROP TABLE "CredentialBranding"`);
62
+ await queryRunner.query(`DROP INDEX "IDX_BaseLocaleBranding_type"`);
63
+ await queryRunner.query(`DROP INDEX "IDX_CredentialClaimsEntity_credentialLocaleBranding_locale"`);
64
+ await queryRunner.query(`DROP TABLE "CredentialClaims"`);
65
+ await queryRunner.query(`DROP INDEX "IDX_IssuerLocaleBrandingEntity_issuerBranding_locale"`);
66
+ await queryRunner.query(`DROP INDEX "IDX_CredentialLocaleBrandingEntity_credentialBranding_locale"`);
67
+ await queryRunner.query(`DROP TABLE "BaseLocaleBranding"`);
68
+ await queryRunner.query(`DROP TABLE "TextAttributes"`);
69
+ await queryRunner.query(`DROP TABLE "BackgroundAttributes"`);
70
+ await queryRunner.query(`DROP TABLE "ImageAttributes"`);
71
+ await queryRunner.query(`DROP TABLE "ImageDimensions"`);
90
72
  }
91
73
  }
92
- exports.CreateIssuanceBranding1685628973231 = CreateIssuanceBranding1685628973231;
93
74
  //# sourceMappingURL=1685628973231-CreateIssuanceBranding.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1685628973231-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IA2H9C,CAAC;IAzHc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,yHAAyH,CAAC,CAAA;YAClJ,MAAM,WAAW,CAAC,KAAK,CACrB,kOAAkO,CACnO,CAAA;YACD,MAAM,WAAW,CAAC,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version":3,"file":"1685628973231-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,mCAAmC;IAC9C,IAAI,GAAG,qCAAqC,CAAA;IAErC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,WAAW,CAAC,KAAK,CAAC,yHAAyH,CAAC,CAAA;QAClJ,MAAM,WAAW,CAAC,KAAK,CACrB,kOAAkO,CACnO,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,8JAA8J,CAC/J,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,yFAAyF,CAAC,CAAA;QAClH,MAAM,WAAW,CAAC,KAAK,CACrB,goBAAgoB,CACjoB,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,+IAA+I,CAChJ,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,mIAAmI,CACpI,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAA;QACtG,MAAM,WAAW,CAAC,KAAK,CACrB,sKAAsK,CACvK,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,8IAA8I,CAC/I,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,uTAAuT,CACxT,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,iHAAiH,CAAC,CAAA;QAC1I,MAAM,WAAW,CAAC,KAAK,CAAC,uFAAuF,CAAC,CAAA;QAChH,MAAM,WAAW,CAAC,KAAK,CACrB,6SAA6S,CAC9S,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,yGAAyG,CAAC,CAAA;QAClI,MAAM,WAAW,CAAC,KAAK,CACrB,iYAAiY,CAClY,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CACrB,8LAA8L,CAC/L,CAAA;QACD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACvD,MAAM,W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