@sphereon/ssi-sdk.data-store 0.11.1-unstable.64 → 0.12.0

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 (165) hide show
  1. package/README.md +5 -0
  2. package/dist/contact/AbstractContactStore.d.ts +1 -2
  3. package/dist/contact/AbstractContactStore.d.ts.map +1 -1
  4. package/dist/contact/AbstractContactStore.js.map +1 -1
  5. package/dist/contact/ContactStore.d.ts +1 -2
  6. package/dist/contact/ContactStore.d.ts.map +1 -1
  7. package/dist/contact/ContactStore.js +11 -11
  8. package/dist/contact/ContactStore.js.map +1 -1
  9. package/dist/entities/contact/ConnectionEntity.d.ts +1 -1
  10. package/dist/entities/contact/ConnectionEntity.d.ts.map +1 -1
  11. package/dist/entities/contact/ConnectionEntity.js +4 -4
  12. package/dist/entities/contact/ConnectionEntity.js.map +1 -1
  13. package/dist/entities/contact/ContactEntity.d.ts +1 -1
  14. package/dist/entities/contact/ContactEntity.d.ts.map +1 -1
  15. package/dist/entities/contact/ContactEntity.js +2 -5
  16. package/dist/entities/contact/ContactEntity.js.map +1 -1
  17. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +1 -1
  18. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts.map +1 -1
  19. package/dist/entities/contact/CorrelationIdentifierEntity.js +3 -4
  20. package/dist/entities/contact/CorrelationIdentifierEntity.js.map +1 -1
  21. package/dist/entities/contact/DidAuthConfigEntity.d.ts +1 -1
  22. package/dist/entities/contact/DidAuthConfigEntity.d.ts.map +1 -1
  23. package/dist/entities/contact/IdentityEntity.d.ts +2 -2
  24. package/dist/entities/contact/IdentityEntity.d.ts.map +1 -1
  25. package/dist/entities/contact/IdentityEntity.js +4 -7
  26. package/dist/entities/contact/IdentityEntity.js.map +1 -1
  27. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +1 -1
  28. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts.map +1 -1
  29. package/dist/entities/contact/IdentityMetadataItemEntity.js +1 -2
  30. package/dist/entities/contact/IdentityMetadataItemEntity.js.map +1 -1
  31. package/dist/entities/contact/OpenIdConfigEntity.d.ts +1 -1
  32. package/dist/entities/contact/OpenIdConfigEntity.d.ts.map +1 -1
  33. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +11 -0
  34. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts.map +1 -0
  35. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +74 -0
  36. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js.map +1 -0
  37. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +18 -0
  38. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts.map +1 -0
  39. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +120 -0
  40. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js.map +1 -0
  41. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +15 -0
  42. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts.map +1 -0
  43. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +102 -0
  44. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js.map +1 -0
  45. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +9 -0
  46. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts.map +1 -0
  47. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +49 -0
  48. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js.map +1 -0
  49. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +14 -0
  50. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts.map +1 -0
  51. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +92 -0
  52. package/dist/entities/issuanceBranding/ImageAttributesEntity.js.map +1 -0
  53. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +9 -0
  54. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts.map +1 -0
  55. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +39 -0
  56. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js.map +1 -0
  57. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +14 -0
  58. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts.map +1 -0
  59. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +95 -0
  60. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js.map +1 -0
  61. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +9 -0
  62. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts.map +1 -0
  63. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +49 -0
  64. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js.map +1 -0
  65. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +9 -0
  66. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts.map +1 -0
  67. package/dist/entities/issuanceBranding/TextAttributesEntity.js +62 -0
  68. package/dist/entities/issuanceBranding/TextAttributesEntity.js.map +1 -0
  69. package/dist/entities/validators/index.d.ts +7 -0
  70. package/dist/entities/validators/index.d.ts.map +1 -0
  71. package/dist/entities/validators/index.js +27 -0
  72. package/dist/entities/validators/index.js.map +1 -0
  73. package/dist/index.d.ts +15 -4
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +45 -5
  76. package/dist/index.js.map +1 -1
  77. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +20 -0
  78. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts.map +1 -0
  79. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +7 -0
  80. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js.map +1 -0
  81. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +31 -0
  82. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts.map +1 -0
  83. package/dist/issuanceBranding/IssuanceBrandingStore.js +375 -0
  84. package/dist/issuanceBranding/IssuanceBrandingStore.js.map +1 -0
  85. package/dist/migrations/generic/1-CreateContacts.js +1 -1
  86. package/dist/migrations/generic/1-CreateContacts.js.map +1 -1
  87. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +7 -0
  88. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts.map +1 -0
  89. package/dist/migrations/generic/1-CreateIssuanceBranding.js +72 -0
  90. package/dist/migrations/generic/1-CreateIssuanceBranding.js.map +1 -0
  91. package/dist/migrations/generic/index.d.ts.map +1 -1
  92. package/dist/migrations/generic/index.js +2 -1
  93. package/dist/migrations/generic/index.js.map +1 -1
  94. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +7 -0
  95. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts.map +1 -0
  96. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +67 -0
  97. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -0
  98. package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts.map +1 -1
  99. package/dist/migrations/sqlite/1659463069549-CreateContacts.js.map +1 -1
  100. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +7 -0
  101. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts.map +1 -0
  102. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +89 -0
  103. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js.map +1 -0
  104. package/dist/types/{IAbstractContactStore.d.ts → contact/IAbstractContactStore.d.ts} +2 -2
  105. package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -0
  106. package/dist/types/contact/IAbstractContactStore.js.map +1 -0
  107. package/dist/types/contact/contact.d.ts.map +1 -0
  108. package/dist/types/contact/contact.js.map +1 -0
  109. package/dist/types/index.d.ts +5 -0
  110. package/dist/types/index.d.ts.map +1 -0
  111. package/dist/types/index.js +21 -0
  112. package/dist/types/index.js.map +1 -0
  113. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +59 -0
  114. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts.map +1 -0
  115. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +3 -0
  116. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js.map +1 -0
  117. package/dist/types/issuanceBranding/issuanceBranding.d.ts +115 -0
  118. package/dist/types/issuanceBranding/issuanceBranding.d.ts.map +1 -0
  119. package/dist/types/issuanceBranding/issuanceBranding.js +3 -0
  120. package/dist/types/issuanceBranding/issuanceBranding.js.map +1 -0
  121. package/package.json +3 -3
  122. package/src/__tests__/contact.entities.test.ts +31 -31
  123. package/src/__tests__/contact.store.test.ts +32 -32
  124. package/src/__tests__/issuanceBranding.entities.test.ts +844 -0
  125. package/src/__tests__/issuanceBranding.store.test.ts +1884 -0
  126. package/src/contact/AbstractContactStore.ts +3 -2
  127. package/src/contact/ContactStore.ts +2 -4
  128. package/src/entities/contact/ConnectionEntity.ts +1 -1
  129. package/src/entities/contact/ContactEntity.ts +5 -7
  130. package/src/entities/contact/CorrelationIdentifierEntity.ts +4 -4
  131. package/src/entities/contact/DidAuthConfigEntity.ts +1 -1
  132. package/src/entities/contact/IdentityEntity.ts +6 -8
  133. package/src/entities/contact/IdentityMetadataItemEntity.ts +4 -4
  134. package/src/entities/contact/OpenIdConfigEntity.ts +1 -1
  135. package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +42 -0
  136. package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +86 -0
  137. package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +78 -0
  138. package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +33 -0
  139. package/src/entities/issuanceBranding/ImageAttributesEntity.ts +57 -0
  140. package/src/entities/issuanceBranding/ImageDimensionsEntity.ts +22 -0
  141. package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +72 -0
  142. package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +33 -0
  143. package/src/entities/issuanceBranding/TextAttributesEntity.ts +31 -0
  144. package/src/entities/validators/index.ts +16 -0
  145. package/src/index.ts +42 -5
  146. package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +41 -0
  147. package/src/issuanceBranding/IssuanceBrandingStore.ts +544 -0
  148. package/src/migrations/generic/1-CreateContacts.ts +1 -1
  149. package/src/migrations/generic/1-CreateIssuanceBranding.ts +54 -0
  150. package/src/migrations/generic/index.ts +2 -1
  151. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +83 -0
  152. package/src/migrations/sqlite/1659463069549-CreateContacts.ts +0 -1
  153. package/src/migrations/sqlite/1685628973231-CreateIssuanceBranding.ts +119 -0
  154. package/src/types/{IAbstractContactStore.ts → contact/IAbstractContactStore.ts} +3 -2
  155. package/src/types/index.ts +4 -0
  156. package/src/types/issuanceBranding/IAbstractIssuanceBrandingStore.ts +85 -0
  157. package/src/types/issuanceBranding/issuanceBranding.ts +120 -0
  158. package/dist/types/IAbstractContactStore.d.ts.map +0 -1
  159. package/dist/types/IAbstractContactStore.js.map +0 -1
  160. package/dist/types/contact.d.ts.map +0 -1
  161. package/dist/types/contact.js.map +0 -1
  162. /package/dist/types/{IAbstractContactStore.js → contact/IAbstractContactStore.js} +0 -0
  163. /package/dist/types/{contact.d.ts → contact/contact.d.ts} +0 -0
  164. /package/dist/types/{contact.js → contact/contact.js} +0 -0
  165. /package/src/types/{contact.ts → contact/contact.ts} +0 -0
@@ -0,0 +1,375 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.IssuanceBrandingStore = void 0;
16
+ const debug_1 = __importDefault(require("debug"));
17
+ const typeorm_1 = require("typeorm");
18
+ const BackgroundAttributesEntity_1 = require("../entities/issuanceBranding/BackgroundAttributesEntity");
19
+ const ImageAttributesEntity_1 = require("../entities/issuanceBranding/ImageAttributesEntity");
20
+ const ImageDimensionsEntity_1 = require("../entities/issuanceBranding/ImageDimensionsEntity");
21
+ const IssuerBrandingEntity_1 = require("../entities/issuanceBranding/IssuerBrandingEntity");
22
+ const CredentialBrandingEntity_1 = require("../entities/issuanceBranding/CredentialBrandingEntity");
23
+ const CredentialLocaleBrandingEntity_1 = require("../entities/issuanceBranding/CredentialLocaleBrandingEntity");
24
+ const IssuerLocaleBrandingEntity_1 = require("../entities/issuanceBranding/IssuerLocaleBrandingEntity");
25
+ const TextAttributesEntity_1 = require("../entities/issuanceBranding/TextAttributesEntity");
26
+ const AbstractIssuanceBrandingStore_1 = require("./AbstractIssuanceBrandingStore");
27
+ const debug = (0, debug_1.default)('sphereon:ssi-sdk:issuance-branding-store');
28
+ class IssuanceBrandingStore extends AbstractIssuanceBrandingStore_1.AbstractIssuanceBrandingStore {
29
+ constructor(dbConnection) {
30
+ super();
31
+ this.addCredentialBranding = (args) => __awaiter(this, void 0, void 0, function* () {
32
+ const repository = (yield this.dbConnection).getRepository(CredentialBrandingEntity_1.CredentialBrandingEntity);
33
+ const result = yield repository.findOne({
34
+ where: [{ vcHash: args.vcHash }],
35
+ });
36
+ if (result) {
37
+ return Promise.reject(Error(`Credential branding already present for vc with hash: ${args.vcHash}`));
38
+ }
39
+ if (yield this.hasDuplicateLocales(args.localeBranding)) {
40
+ return Promise.reject(Error(`Credential branding contains duplicate locales`));
41
+ }
42
+ const credentialBrandingEntity = (0, CredentialBrandingEntity_1.credentialBrandingEntityFrom)(args);
43
+ debug('Adding credential branding', credentialBrandingEntity);
44
+ const createdResult = yield repository.save(credentialBrandingEntity);
45
+ return this.credentialBrandingFrom(createdResult);
46
+ });
47
+ this.getCredentialBranding = (args) => __awaiter(this, void 0, void 0, function* () {
48
+ if (args === null || args === void 0 ? void 0 : args.filter) {
49
+ args === null || args === void 0 ? void 0 : args.filter.forEach((filter) => {
50
+ if (filter.localeBranding && 'locale' in filter.localeBranding && filter.localeBranding.locale === undefined) {
51
+ filter.localeBranding.locale = '';
52
+ }
53
+ });
54
+ }
55
+ debug('Getting credential branding', args);
56
+ const result = yield (yield this.dbConnection).getRepository(CredentialBrandingEntity_1.CredentialBrandingEntity).find(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
57
+ return result.map((credentialBranding) => this.credentialBrandingFrom(credentialBranding));
58
+ });
59
+ this.removeCredentialBranding = (args) => __awaiter(this, void 0, void 0, function* () {
60
+ const repository = (yield this.dbConnection).getRepository(CredentialBrandingEntity_1.CredentialBrandingEntity);
61
+ const credentialBranding = yield repository.find({
62
+ where: args.filter,
63
+ });
64
+ debug('Removing credential locale branding', args);
65
+ const localeBrandingDeletions = credentialBranding.map((credentialBranding) => credentialBranding.localeBranding.map((localeBranding) => __awaiter(this, void 0, void 0, function* () { return this.removeLocaleBranding(localeBranding); })));
66
+ yield Promise.all(localeBrandingDeletions);
67
+ debug('Removing credential branding', args);
68
+ const credentialBrandingDeletions = args.filter.map((filter) => __awaiter(this, void 0, void 0, function* () { return yield repository.delete(filter); }));
69
+ yield Promise.all(credentialBrandingDeletions);
70
+ });
71
+ this.updateCredentialBranding = (args) => __awaiter(this, void 0, void 0, function* () {
72
+ const repository = (yield this.dbConnection).getRepository(CredentialBrandingEntity_1.CredentialBrandingEntity);
73
+ const credentialBrandingEntity = yield repository.findOne({
74
+ where: { id: args.credentialBranding.id },
75
+ });
76
+ if (!credentialBrandingEntity) {
77
+ return Promise.reject(Error(`No credential branding found for id: ${args.credentialBranding.id}`));
78
+ }
79
+ const credentialBranding = Object.assign(Object.assign({}, args.credentialBranding), { localeBranding: credentialBrandingEntity.localeBranding });
80
+ debug('Updating credential branding', credentialBranding);
81
+ const result = yield repository.save(credentialBranding, { transaction: true });
82
+ return this.credentialBrandingFrom(result);
83
+ });
84
+ this.addCredentialLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
85
+ const credentialBrandingRepository = (yield this.dbConnection).getRepository(CredentialBrandingEntity_1.CredentialBrandingEntity);
86
+ const credentialBranding = yield credentialBrandingRepository.findOne({
87
+ where: { id: args.credentialBrandingId },
88
+ });
89
+ if (!credentialBranding) {
90
+ return Promise.reject(Error(`No credential branding found for id: ${args.credentialBrandingId}`));
91
+ }
92
+ const locales = yield (yield this.dbConnection).getRepository(CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity).find({
93
+ where: {
94
+ credentialBranding: {
95
+ id: args.credentialBrandingId,
96
+ },
97
+ locale: (0, typeorm_1.In)(args.localeBranding.map((localeBranding) => localeBranding.locale)),
98
+ },
99
+ });
100
+ if (locales && locales.length > 0) {
101
+ return Promise.reject(Error(`Credential branding already contains locales: ${locales === null || locales === void 0 ? void 0 : locales.map((credentialLocaleBrandingEntity) => credentialLocaleBrandingEntity.locale)}`));
102
+ }
103
+ const credentialLocaleBrandingRepository = (yield this.dbConnection).getRepository(CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity);
104
+ const addCredentialLocaleBranding = args.localeBranding.map((localeBranding) => __awaiter(this, void 0, void 0, function* () {
105
+ const credentialLocaleBrandingEntity = (0, CredentialLocaleBrandingEntity_1.credentialLocaleBrandingEntityFrom)(localeBranding);
106
+ debug('Adding credential locale branding', credentialLocaleBrandingEntity);
107
+ credentialLocaleBrandingEntity.credentialBranding = credentialBranding;
108
+ yield credentialLocaleBrandingRepository.save(credentialLocaleBrandingEntity, { transaction: true });
109
+ }));
110
+ yield Promise.all(addCredentialLocaleBranding);
111
+ const result = yield credentialBrandingRepository.findOne({
112
+ where: { id: args.credentialBrandingId },
113
+ });
114
+ if (!result) {
115
+ return Promise.reject(Error('Unable to get updated credential branding'));
116
+ }
117
+ return this.credentialBrandingFrom(result);
118
+ });
119
+ this.getCredentialLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
120
+ if (args === null || args === void 0 ? void 0 : args.filter) {
121
+ args === null || args === void 0 ? void 0 : args.filter.forEach((filter) => {
122
+ if ('locale' in filter && filter.locale === undefined) {
123
+ filter.locale = '';
124
+ }
125
+ });
126
+ }
127
+ debug('Getting credential locale branding', args);
128
+ const credentialBrandingLocale = yield (yield this.dbConnection)
129
+ .getRepository(CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity)
130
+ .find(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
131
+ return credentialBrandingLocale
132
+ ? credentialBrandingLocale.map((credentialLocaleBranding) => this.localeBrandingFrom(credentialLocaleBranding))
133
+ : [];
134
+ });
135
+ this.removeCredentialLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
136
+ const credentialLocaleBranding = yield (yield this.dbConnection)
137
+ .getRepository(CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity)
138
+ .find({
139
+ where: args.filter,
140
+ });
141
+ debug('Removing credential locale branding', args);
142
+ const localeBrandingDeletions = credentialLocaleBranding.map((localeBranding) => __awaiter(this, void 0, void 0, function* () { return this.removeLocaleBranding(localeBranding); }));
143
+ yield Promise.all(localeBrandingDeletions);
144
+ });
145
+ this.updateCredentialLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
146
+ const repository = (yield this.dbConnection).getRepository(CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity);
147
+ const result = yield repository.findOne({
148
+ where: { id: args.localeBranding.id },
149
+ });
150
+ if (!result) {
151
+ return Promise.reject(Error(`No credential locale branding found for id: ${args.localeBranding.id}`));
152
+ }
153
+ const locales = yield repository.find({
154
+ where: {
155
+ credentialBranding: {
156
+ id: result.credentialBrandingId,
157
+ },
158
+ id: (0, typeorm_1.Not)((0, typeorm_1.In)([args.localeBranding.id])),
159
+ locale: args.localeBranding.locale,
160
+ },
161
+ });
162
+ if (locales && locales.length > 0) {
163
+ return Promise.reject(Error(`Credential branding: ${result.credentialBrandingId} already contains locale: ${args.localeBranding.locale}`));
164
+ }
165
+ debug('Updating credential locale branding', args.localeBranding);
166
+ const updatedResult = yield repository.save(args.localeBranding, { transaction: true });
167
+ return this.localeBrandingFrom(updatedResult);
168
+ });
169
+ this.addIssuerBranding = (args) => __awaiter(this, void 0, void 0, function* () {
170
+ const repository = (yield this.dbConnection).getRepository(IssuerBrandingEntity_1.IssuerBrandingEntity);
171
+ const result = yield repository.findOne({
172
+ where: [{ issuerCorrelationId: args.issuerCorrelationId }],
173
+ });
174
+ if (result) {
175
+ return Promise.reject(Error(`Issuer branding already present for issuer with correlation id: ${args.issuerCorrelationId}`));
176
+ }
177
+ if (yield this.hasDuplicateLocales(args.localeBranding)) {
178
+ return Promise.reject(Error(`Issuer branding contains duplicate locales`));
179
+ }
180
+ const issuerBrandingEntity = (0, IssuerBrandingEntity_1.issuerBrandingEntityFrom)(args);
181
+ debug('Adding issuer branding', issuerBrandingEntity);
182
+ const createdResult = yield repository.save(issuerBrandingEntity);
183
+ return this.issuerBrandingFrom(createdResult);
184
+ });
185
+ this.getIssuerBranding = (args) => __awaiter(this, void 0, void 0, function* () {
186
+ if (args === null || args === void 0 ? void 0 : args.filter) {
187
+ args === null || args === void 0 ? void 0 : args.filter.forEach((filter) => {
188
+ if (filter.localeBranding && 'locale' in filter.localeBranding && filter.localeBranding.locale === undefined) {
189
+ filter.localeBranding.locale = '';
190
+ }
191
+ });
192
+ }
193
+ debug('Getting issuer branding', args);
194
+ const result = yield (yield this.dbConnection).getRepository(IssuerBrandingEntity_1.IssuerBrandingEntity).find(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
195
+ return result.map((issuerBranding) => this.issuerBrandingFrom(issuerBranding));
196
+ });
197
+ this.removeIssuerBranding = (args) => __awaiter(this, void 0, void 0, function* () {
198
+ const repository = (yield this.dbConnection).getRepository(IssuerBrandingEntity_1.IssuerBrandingEntity);
199
+ const issuerBranding = yield repository.find({
200
+ where: args.filter,
201
+ });
202
+ debug('Removing issuer locale branding', args);
203
+ const localeBrandingDeletions = issuerBranding.map((issuerBranding) => issuerBranding.localeBranding.map((localeBranding) => __awaiter(this, void 0, void 0, function* () { return this.removeLocaleBranding(localeBranding); })));
204
+ yield Promise.all(localeBrandingDeletions);
205
+ debug('Removing issuer branding', args);
206
+ const issuerBrandingDeletions = args.filter.map((filter) => __awaiter(this, void 0, void 0, function* () { return yield repository.delete(filter); }));
207
+ yield Promise.all(issuerBrandingDeletions);
208
+ });
209
+ this.updateIssuerBranding = (args) => __awaiter(this, void 0, void 0, function* () {
210
+ const repository = (yield this.dbConnection).getRepository(IssuerBrandingEntity_1.IssuerBrandingEntity);
211
+ const issuerBrandingEntity = yield repository.findOne({
212
+ where: { id: args.issuerBranding.id },
213
+ });
214
+ if (!issuerBrandingEntity) {
215
+ return Promise.reject(Error(`No issuer branding found for id: ${args.issuerBranding.id}`));
216
+ }
217
+ const issuerBranding = Object.assign(Object.assign({}, args.issuerBranding), { localeBranding: issuerBrandingEntity.localeBranding });
218
+ debug('Updating issuer branding', issuerBranding);
219
+ const result = yield repository.save(issuerBranding, { transaction: true });
220
+ return this.issuerBrandingFrom(result);
221
+ });
222
+ this.addIssuerLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
223
+ const issuerBrandingRepository = (yield this.dbConnection).getRepository(IssuerBrandingEntity_1.IssuerBrandingEntity);
224
+ const issuerBranding = yield issuerBrandingRepository.findOne({
225
+ where: { id: args.issuerBrandingId },
226
+ });
227
+ if (!issuerBranding) {
228
+ return Promise.reject(Error(`No issuer branding found for id: ${args.issuerBrandingId}`));
229
+ }
230
+ const locales = yield (yield this.dbConnection).getRepository(IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity).find({
231
+ where: {
232
+ issuerBranding: {
233
+ id: args.issuerBrandingId,
234
+ },
235
+ locale: (0, typeorm_1.In)(args.localeBranding.map((localeBranding) => localeBranding.locale)),
236
+ },
237
+ });
238
+ if (locales && locales.length > 0) {
239
+ return Promise.reject(Error(`Issuer branding already contains locales: ${locales === null || locales === void 0 ? void 0 : locales.map((issuerLocaleBrandingEntity) => issuerLocaleBrandingEntity.locale)}`));
240
+ }
241
+ const issuerLocaleBrandingRepository = (yield this.dbConnection).getRepository(IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity);
242
+ const addIssuerLocaleBranding = args.localeBranding.map((localeBranding) => __awaiter(this, void 0, void 0, function* () {
243
+ const issuerLocaleBrandingEntity = (0, IssuerLocaleBrandingEntity_1.issuerLocaleBrandingEntityFrom)(localeBranding);
244
+ debug('Adding issuer locale branding', issuerLocaleBrandingEntity);
245
+ issuerLocaleBrandingEntity.issuerBranding = issuerBranding;
246
+ yield issuerLocaleBrandingRepository.save(issuerLocaleBrandingEntity, { transaction: true });
247
+ }));
248
+ yield Promise.all(addIssuerLocaleBranding);
249
+ const result = yield issuerBrandingRepository.findOne({
250
+ where: { id: args.issuerBrandingId },
251
+ });
252
+ if (!result) {
253
+ return Promise.reject(Error('Unable to get updated issuer branding'));
254
+ }
255
+ return this.issuerBrandingFrom(result);
256
+ });
257
+ this.getIssuerLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
258
+ if (args === null || args === void 0 ? void 0 : args.filter) {
259
+ args === null || args === void 0 ? void 0 : args.filter.forEach((filter) => {
260
+ if ('locale' in filter && filter.locale === undefined) {
261
+ filter.locale = '';
262
+ }
263
+ });
264
+ }
265
+ debug('Getting issuer locale branding', args);
266
+ const issuerLocaleBranding = yield (yield this.dbConnection)
267
+ .getRepository(IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity)
268
+ .find(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
269
+ return issuerLocaleBranding
270
+ ? issuerLocaleBranding.map((issuerLocaleBranding) => this.localeBrandingFrom(issuerLocaleBranding))
271
+ : [];
272
+ });
273
+ this.removeIssuerLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
274
+ const issuerLocaleBranding = yield (yield this.dbConnection).getRepository(IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity).find({
275
+ where: args.filter,
276
+ });
277
+ debug('Removing credential locale branding', args);
278
+ const localeBrandingDeletions = issuerLocaleBranding.map((localeBranding) => __awaiter(this, void 0, void 0, function* () { return this.removeLocaleBranding(localeBranding); }));
279
+ yield Promise.all(localeBrandingDeletions);
280
+ });
281
+ this.updateIssuerLocaleBranding = (args) => __awaiter(this, void 0, void 0, function* () {
282
+ const repository = (yield this.dbConnection).getRepository(IssuerLocaleBrandingEntity_1.IssuerLocaleBrandingEntity);
283
+ const result = yield repository.findOne({
284
+ where: { id: args.localeBranding.id },
285
+ });
286
+ if (!result) {
287
+ return Promise.reject(Error(`No issuer locale branding found for id: ${args.localeBranding.id}`));
288
+ }
289
+ const locales = yield repository.find({
290
+ where: {
291
+ issuerBranding: {
292
+ id: result.issuerBrandingId,
293
+ },
294
+ id: (0, typeorm_1.Not)((0, typeorm_1.In)([args.localeBranding.id])),
295
+ locale: args.localeBranding.locale,
296
+ },
297
+ });
298
+ if (locales && locales.length > 0) {
299
+ return Promise.reject(Error(`Issuer branding: ${result.issuerBrandingId} already contains locale: ${args.localeBranding.locale}`));
300
+ }
301
+ debug('Updating issuer locale branding', args.localeBranding);
302
+ const updatedResult = yield repository.save(args.localeBranding, { transaction: true });
303
+ return this.localeBrandingFrom(updatedResult);
304
+ });
305
+ this.credentialBrandingFrom = (credentialBranding) => {
306
+ const result = Object.assign(Object.assign({}, credentialBranding), { localeBranding: credentialBranding.localeBranding.map((localeBranding) => this.localeBrandingFrom(localeBranding)) });
307
+ return this.replaceNullWithUndefined(result);
308
+ };
309
+ this.issuerBrandingFrom = (issuerBranding) => {
310
+ const result = Object.assign(Object.assign({}, issuerBranding), { localeBranding: issuerBranding.localeBranding.map((localeBranding) => this.localeBrandingFrom(localeBranding)) });
311
+ return this.replaceNullWithUndefined(result);
312
+ };
313
+ this.localeBrandingFrom = (localeBranding) => {
314
+ const result = Object.assign(Object.assign({}, localeBranding), { locale: localeBranding.locale === '' ? undefined : localeBranding.locale });
315
+ return this.replaceNullWithUndefined(result);
316
+ };
317
+ this.hasDuplicateLocales = (localeBranding) => __awaiter(this, void 0, void 0, function* () {
318
+ let seen = new Set();
319
+ return localeBranding.some((localeBranding) => {
320
+ return seen.size === seen.add(localeBranding.locale).size;
321
+ });
322
+ });
323
+ this.removeLocaleBranding = (localeBranding) => __awaiter(this, void 0, void 0, function* () {
324
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
325
+ debug('Removing credential locale branding', localeBranding);
326
+ // Delete background image dimensions
327
+ if ((_b = (_a = localeBranding.background) === null || _a === void 0 ? void 0 : _a.image) === null || _b === void 0 ? void 0 : _b.dimensions) {
328
+ yield (yield this.dbConnection).getRepository(ImageDimensionsEntity_1.ImageDimensionsEntity).delete({ id: (_e = (_d = (_c = localeBranding.background) === null || _c === void 0 ? void 0 : _c.image) === null || _d === void 0 ? void 0 : _d.dimensions) === null || _e === void 0 ? void 0 : _e.id });
329
+ }
330
+ // Delete background image
331
+ if ((_f = localeBranding.background) === null || _f === void 0 ? void 0 : _f.image) {
332
+ yield (yield this.dbConnection).getRepository(ImageAttributesEntity_1.ImageAttributesEntity).delete({ id: (_h = (_g = localeBranding.background) === null || _g === void 0 ? void 0 : _g.image) === null || _h === void 0 ? void 0 : _h.id });
333
+ }
334
+ // Delete background
335
+ if (localeBranding.background) {
336
+ yield (yield this.dbConnection).getRepository(BackgroundAttributesEntity_1.BackgroundAttributesEntity).delete({ id: (_j = localeBranding.background) === null || _j === void 0 ? void 0 : _j.id });
337
+ }
338
+ // Delete logo image dimensions
339
+ if ((_k = localeBranding.logo) === null || _k === void 0 ? void 0 : _k.dimensions) {
340
+ yield (yield this.dbConnection).getRepository(ImageDimensionsEntity_1.ImageDimensionsEntity).delete({ id: (_m = (_l = localeBranding.logo) === null || _l === void 0 ? void 0 : _l.dimensions) === null || _m === void 0 ? void 0 : _m.id });
341
+ }
342
+ // Delete logo
343
+ if (localeBranding.logo) {
344
+ yield (yield this.dbConnection).getRepository(ImageAttributesEntity_1.ImageAttributesEntity).delete({ id: (_o = localeBranding.logo) === null || _o === void 0 ? void 0 : _o.id });
345
+ }
346
+ // Delete text
347
+ if (localeBranding.text) {
348
+ yield (yield this.dbConnection).getRepository(TextAttributesEntity_1.TextAttributesEntity).delete({ id: (_p = localeBranding.text) === null || _p === void 0 ? void 0 : _p.id });
349
+ }
350
+ // Delete locale branding
351
+ yield (yield this.dbConnection).getRepository(CredentialLocaleBrandingEntity_1.CredentialLocaleBrandingEntity).delete({ id: localeBranding.id });
352
+ });
353
+ this.dbConnection = dbConnection;
354
+ }
355
+ replaceNullWithUndefined(obj) {
356
+ if (obj === null) {
357
+ return undefined;
358
+ }
359
+ if (typeof obj !== 'object' || obj instanceof Date) {
360
+ return obj;
361
+ }
362
+ if (Array.isArray(obj)) {
363
+ return obj.map((value) => this.replaceNullWithUndefined(value));
364
+ }
365
+ const result = {};
366
+ for (const key in obj) {
367
+ if (obj.hasOwnProperty(key)) {
368
+ result[key] = this.replaceNullWithUndefined(obj[key]);
369
+ }
370
+ }
371
+ return result;
372
+ }
373
+ }
374
+ exports.IssuanceBrandingStore = IssuanceBrandingStore;
375
+ //# sourceMappingURL=IssuanceBrandingStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IssuanceBrandingStore.js","sourceRoot":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YACtB,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAA;SACrE;QAED,MAAM,MAAM,GAAQ,EAAE,CAAA;QACtB,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;YACrB,IAAI,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;gBAC3B,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;aACtD;SACF;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CA4CF;AAjfD,sDAifC"}
@@ -46,7 +46,7 @@ class CreateContacts1659463079429 {
46
46
  }
47
47
  down(queryRunner) {
48
48
  return __awaiter(this, void 0, void 0, function* () {
49
- debug('reverting contacts tables');
49
+ debug('migration: reverting contacts tables');
50
50
  const dbType = queryRunner.connection.driver.options.type;
51
51
  if (dbType === 'postgres') {
52
52
  debug('using postgres migration file');
@@ -1 +1 @@
1
- {"version":3,"file":"1-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4FAAsF;AACtF,0FAAoF;AAEpF,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElD,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IA6CtC,CAAC;IA3Cc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,qCAAqC,CAAC,CAAA;YAC5C,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,2DAA2B,EAAE,CAAA;gBAC7C,MAAM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,CAAA;YAC7C,MAAM,MAAM,GAAG,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YACzD,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,MAAM,GAAG,GAAG,IAAI,2DAA2B,EAAE,CAAA;gBAC7C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM,IAAI,MAAM,KAAK,QAAQ,IAAI,cAAc,EAAE;gBAChD,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,2DAA2B,EAAE,CAAA;gBAC7C,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM;gBACL,OAAO,OAAO,CAAC,MAAM,CACnB,4LAA4L,CAC7L,CAAA;aACF;QACH,CAAC;KAAA;CACF;AA9CD,kEA8CC"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateIssuanceBranding1659463079429 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1-CreateIssuanceBranding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAOzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3D"}
@@ -0,0 +1,72 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateIssuanceBranding1659463079429 = void 0;
16
+ const debug_1 = __importDefault(require("debug"));
17
+ const _1685628974232_CreateIssuanceBranding_1 = require("../postgres/1685628974232-CreateIssuanceBranding");
18
+ const _1685628973231_CreateIssuanceBranding_1 = require("../sqlite/1685628973231-CreateIssuanceBranding");
19
+ const debug = (0, debug_1.default)('sphereon:ssi-sdk:migrations');
20
+ class CreateIssuanceBranding1659463079429 {
21
+ constructor() {
22
+ this.name = 'CreateIssuanceBranding1659463079429';
23
+ }
24
+ up(queryRunner) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ debug('migration: creating issuance branding tables');
27
+ const dbType = queryRunner.connection.driver.options.type;
28
+ if (dbType === 'postgres') {
29
+ debug('using postgres migration file');
30
+ const mig = new _1685628974232_CreateIssuanceBranding_1.CreateIssuanceBranding1685628974232();
31
+ const up = yield mig.up(queryRunner);
32
+ debug('Migration statements executed');
33
+ return up;
34
+ }
35
+ else if (dbType === 'sqlite' || 'react-native') {
36
+ debug('using sqlite/react-native migration file');
37
+ const mig = new _1685628973231_CreateIssuanceBranding_1.CreateIssuanceBranding1685628973231();
38
+ const up = yield mig.up(queryRunner);
39
+ debug('Migration statements executed');
40
+ return up;
41
+ }
42
+ else {
43
+ return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
44
+ }
45
+ });
46
+ }
47
+ down(queryRunner) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ debug('migration: reverting issuance branding tables');
50
+ const dbType = queryRunner.connection.driver.options.type;
51
+ if (dbType === 'postgres') {
52
+ debug('using postgres migration file');
53
+ const mig = new _1685628974232_CreateIssuanceBranding_1.CreateIssuanceBranding1685628974232();
54
+ const down = yield mig.down(queryRunner);
55
+ debug('Migration statements executed');
56
+ return down;
57
+ }
58
+ else if (dbType === 'sqlite' || 'react-native') {
59
+ debug('using sqlite/react-native migration file');
60
+ const mig = new _1685628973231_CreateIssuanceBranding_1.CreateIssuanceBranding1685628973231();
61
+ const down = yield mig.down(queryRunner);
62
+ debug('Migration statements executed');
63
+ return down;
64
+ }
65
+ else {
66
+ return Promise.reject("Migrations are currently only supported for sqlite, react-native and postgres. Please run your database without migrations and with 'migrationsRun: false' and 'synchronize: true' for now");
67
+ }
68
+ });
69
+ }
70
+ }
71
+ exports.CreateIssuanceBranding1659463079429 = CreateIssuanceBranding1659463079429;
72
+ //# sourceMappingURL=1-CreateIssuanceBranding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/generic/1-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,4GAAsG;AACtG,0GAAoG;AAEpG,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElD,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAA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iBAAM,IAAI,MAAM,KAAK,QAAQ,IAAI,cAAc,EAAE;gBAChD,KAAK,CAAC,0CAA0C,CAAC,CAAA;gBACjD,MAAM,GAAG,GAAG,IAAI,2EAAmC,EAAE,CAAA;gBACrD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBACxC,KAAK,CAAC,+BAA+B,CAAC,CAAA;gBACtC,OAAO,IAAI,CAAA;aACZ;iBAAM;gBACL,OAAO,OAAO,CAAC,MAAM,CACnB,4LAA4L,CAC7L,CAAA;aACF;QACH,CAAC;KAAA;CACF;AA9CD,kFA8CC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,wCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAGhE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,wCAAqE,CAAA"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataStoreMigrations = void 0;
4
4
  const _1_CreateContacts_1 = require("./1-CreateContacts");
5
+ const _1_CreateIssuanceBranding_1 = require("./1-CreateIssuanceBranding");
5
6
  /**
6
7
  * The migrations array that SHOULD be used when initializing a TypeORM database connection.
7
8
  *
@@ -9,5 +10,5 @@ const _1_CreateContacts_1 = require("./1-CreateContacts");
9
10
  *
10
11
  * @public
11
12
  */
12
- exports.DataStoreMigrations = [_1_CreateContacts_1.CreateContacts1659463079429];
13
+ exports.DataStoreMigrations = [_1_CreateContacts_1.CreateContacts1659463079429, _1_CreateIssuanceBranding_1.CreateIssuanceBranding1659463079429];
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAEhE;;;;;;GAMG;AACU,QAAA,mBAAmB,GAAG,CAAC,+CAA2B,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;AAEhF;;;;;;GAMG;AACU,QAAA,mBAAmB,GAAG,CAAC,+CAA2B,EAAE,+DAAmC,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class CreateIssuanceBranding1685628974232 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=1685628974232-CreateIssuanceBranding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1685628974232-CreateIssuanceBranding.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,mCAAoC,YAAW,kBAAkB;IAC5E,IAAI,SAAwC;IAE/B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAuD3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAsB3D"}