@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.50.117 → 0.34.1-feature.SSISDK.50.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +25 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -20
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/utils/presentationDefinition/MappingUtils.ts +5 -0
package/dist/index.cjs
CHANGED
|
@@ -173,55 +173,55 @@ var import_typeorm12 = __toESM(require("typeorm"), 1);
|
|
|
173
173
|
var import_typeorm11 = __toESM(require("typeorm"), 1);
|
|
174
174
|
|
|
175
175
|
// src/types/contact/contact.ts
|
|
176
|
-
var ConnectionType = /* @__PURE__ */ function(ConnectionType2) {
|
|
176
|
+
var ConnectionType = /* @__PURE__ */ (function(ConnectionType2) {
|
|
177
177
|
ConnectionType2["OPENID_CONNECT"] = "OIDC";
|
|
178
178
|
ConnectionType2["SIOPv2"] = "SIOPv2";
|
|
179
179
|
ConnectionType2["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
|
|
180
180
|
return ConnectionType2;
|
|
181
|
-
}({});
|
|
182
|
-
var CorrelationIdentifierType = /* @__PURE__ */ function(CorrelationIdentifierType2) {
|
|
181
|
+
})({});
|
|
182
|
+
var CorrelationIdentifierType = /* @__PURE__ */ (function(CorrelationIdentifierType2) {
|
|
183
183
|
CorrelationIdentifierType2["DID"] = "did";
|
|
184
184
|
CorrelationIdentifierType2["URL"] = "url";
|
|
185
185
|
return CorrelationIdentifierType2;
|
|
186
|
-
}({});
|
|
187
|
-
var PartyTypeType = /* @__PURE__ */ function(PartyTypeType2) {
|
|
186
|
+
})({});
|
|
187
|
+
var PartyTypeType = /* @__PURE__ */ (function(PartyTypeType2) {
|
|
188
188
|
PartyTypeType2["NATURAL_PERSON"] = "naturalPerson";
|
|
189
189
|
PartyTypeType2["ORGANIZATION"] = "organization";
|
|
190
190
|
return PartyTypeType2;
|
|
191
|
-
}({});
|
|
192
|
-
var PartyOrigin = /* @__PURE__ */ function(PartyOrigin2) {
|
|
191
|
+
})({});
|
|
192
|
+
var PartyOrigin = /* @__PURE__ */ (function(PartyOrigin2) {
|
|
193
193
|
PartyOrigin2["INTERNAL"] = "INTERNAL";
|
|
194
194
|
PartyOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
195
195
|
return PartyOrigin2;
|
|
196
|
-
}({});
|
|
197
|
-
var IdentityOrigin = /* @__PURE__ */ function(IdentityOrigin2) {
|
|
196
|
+
})({});
|
|
197
|
+
var IdentityOrigin = /* @__PURE__ */ (function(IdentityOrigin2) {
|
|
198
198
|
IdentityOrigin2["INTERNAL"] = "INTERNAL";
|
|
199
199
|
IdentityOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
200
200
|
return IdentityOrigin2;
|
|
201
|
-
}({});
|
|
201
|
+
})({});
|
|
202
202
|
|
|
203
203
|
// src/types/digitalCredential/enums.ts
|
|
204
|
-
var DocumentType = /* @__PURE__ */ function(DocumentType2) {
|
|
204
|
+
var DocumentType = /* @__PURE__ */ (function(DocumentType2) {
|
|
205
205
|
DocumentType2["VC"] = "VC";
|
|
206
206
|
DocumentType2["VP"] = "VP";
|
|
207
207
|
DocumentType2["P"] = "P";
|
|
208
208
|
DocumentType2["C"] = "C";
|
|
209
209
|
return DocumentType2;
|
|
210
|
-
}({});
|
|
211
|
-
var RegulationType = /* @__PURE__ */ function(RegulationType2) {
|
|
210
|
+
})({});
|
|
211
|
+
var RegulationType = /* @__PURE__ */ (function(RegulationType2) {
|
|
212
212
|
RegulationType2["PID"] = "PID";
|
|
213
213
|
RegulationType2["QEAA"] = "QEAA";
|
|
214
214
|
RegulationType2["EAA"] = "EAA";
|
|
215
215
|
RegulationType2["NON_REGULATED"] = "NON_REGULATED";
|
|
216
216
|
return RegulationType2;
|
|
217
|
-
}({});
|
|
218
|
-
var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat2) {
|
|
217
|
+
})({});
|
|
218
|
+
var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentFormat2) {
|
|
219
219
|
CredentialDocumentFormat2["JSON_LD"] = "JSON_LD";
|
|
220
220
|
CredentialDocumentFormat2["JWT"] = "JWT";
|
|
221
221
|
CredentialDocumentFormat2["SD_JWT"] = "SD_JWT";
|
|
222
222
|
CredentialDocumentFormat2["MSO_MDOC"] = "MSO_MDOC";
|
|
223
223
|
return CredentialDocumentFormat2;
|
|
224
|
-
}({});
|
|
224
|
+
})({});
|
|
225
225
|
(function(CredentialDocumentFormat2) {
|
|
226
226
|
function fromSpecValue(credentialFormat) {
|
|
227
227
|
const format = credentialFormat.toLowerCase();
|
|
@@ -254,19 +254,19 @@ var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat
|
|
|
254
254
|
__name(toSpecValue, "toSpecValue");
|
|
255
255
|
CredentialDocumentFormat2.toSpecValue = toSpecValue;
|
|
256
256
|
})(CredentialDocumentFormat || (CredentialDocumentFormat = {}));
|
|
257
|
-
var CredentialCorrelationType = /* @__PURE__ */ function(CredentialCorrelationType2) {
|
|
257
|
+
var CredentialCorrelationType = /* @__PURE__ */ (function(CredentialCorrelationType2) {
|
|
258
258
|
CredentialCorrelationType2["DID"] = "DID";
|
|
259
259
|
CredentialCorrelationType2["X509_SAN"] = "X509_SAN";
|
|
260
260
|
CredentialCorrelationType2["KID"] = "KID";
|
|
261
261
|
CredentialCorrelationType2["URL"] = "URL";
|
|
262
262
|
return CredentialCorrelationType2;
|
|
263
|
-
}({});
|
|
264
|
-
var CredentialStateType = /* @__PURE__ */ function(CredentialStateType2) {
|
|
263
|
+
})({});
|
|
264
|
+
var CredentialStateType = /* @__PURE__ */ (function(CredentialStateType2) {
|
|
265
265
|
CredentialStateType2["REVOKED"] = "REVOKED";
|
|
266
266
|
CredentialStateType2["VERIFIED"] = "VERIFIED";
|
|
267
267
|
CredentialStateType2["EXPIRED"] = "EXPIRED";
|
|
268
268
|
return CredentialStateType2;
|
|
269
|
-
}({});
|
|
269
|
+
})({});
|
|
270
270
|
|
|
271
271
|
// src/entities/contact/IdentityEntity.ts
|
|
272
272
|
var import_typeorm10 = require("typeorm");
|
|
@@ -6959,6 +6959,9 @@ var presentationDefinitionItemFrom = /* @__PURE__ */ __name((entity) => {
|
|
|
6959
6959
|
createdAt: entity.createdAt,
|
|
6960
6960
|
lastUpdatedAt: entity.lastUpdatedAt
|
|
6961
6961
|
};
|
|
6962
|
+
if (result.dcqlPayload?.dcqlQuery) {
|
|
6963
|
+
import_dcql.DcqlQuery.validate(result.dcqlPayload?.dcqlQuery);
|
|
6964
|
+
}
|
|
6962
6965
|
return replaceNullWithUndefined(result);
|
|
6963
6966
|
}, "presentationDefinitionItemFrom");
|
|
6964
6967
|
var presentationDefinitionEntityItemFrom = /* @__PURE__ */ __name((item) => {
|
|
@@ -6972,6 +6975,8 @@ var presentationDefinitionEntityItemFrom = /* @__PURE__ */ __name((item) => {
|
|
|
6972
6975
|
entity.definitionPayload = JSON.stringify(item.definitionPayload);
|
|
6973
6976
|
}
|
|
6974
6977
|
if (item.dcqlPayload) {
|
|
6978
|
+
const dcqlQuery = import_dcql.DcqlQuery.parse(item.dcqlPayload.dcqlQuery);
|
|
6979
|
+
import_dcql.DcqlQuery.validate(dcqlQuery);
|
|
6975
6980
|
entity.dcqlPayload = JSON.stringify(item.dcqlPayload.dcqlQuery);
|
|
6976
6981
|
}
|
|
6977
6982
|
return entity;
|