@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.js
CHANGED
|
@@ -8,55 +8,55 @@ import typeorm6 from "typeorm";
|
|
|
8
8
|
import typeorm5 from "typeorm";
|
|
9
9
|
|
|
10
10
|
// src/types/contact/contact.ts
|
|
11
|
-
var ConnectionType = /* @__PURE__ */ function(ConnectionType2) {
|
|
11
|
+
var ConnectionType = /* @__PURE__ */ (function(ConnectionType2) {
|
|
12
12
|
ConnectionType2["OPENID_CONNECT"] = "OIDC";
|
|
13
13
|
ConnectionType2["SIOPv2"] = "SIOPv2";
|
|
14
14
|
ConnectionType2["SIOPv2_OpenID4VP"] = "SIOPv2+OpenID4VP";
|
|
15
15
|
return ConnectionType2;
|
|
16
|
-
}({});
|
|
17
|
-
var CorrelationIdentifierType = /* @__PURE__ */ function(CorrelationIdentifierType2) {
|
|
16
|
+
})({});
|
|
17
|
+
var CorrelationIdentifierType = /* @__PURE__ */ (function(CorrelationIdentifierType2) {
|
|
18
18
|
CorrelationIdentifierType2["DID"] = "did";
|
|
19
19
|
CorrelationIdentifierType2["URL"] = "url";
|
|
20
20
|
return CorrelationIdentifierType2;
|
|
21
|
-
}({});
|
|
22
|
-
var PartyTypeType = /* @__PURE__ */ function(PartyTypeType2) {
|
|
21
|
+
})({});
|
|
22
|
+
var PartyTypeType = /* @__PURE__ */ (function(PartyTypeType2) {
|
|
23
23
|
PartyTypeType2["NATURAL_PERSON"] = "naturalPerson";
|
|
24
24
|
PartyTypeType2["ORGANIZATION"] = "organization";
|
|
25
25
|
return PartyTypeType2;
|
|
26
|
-
}({});
|
|
27
|
-
var PartyOrigin = /* @__PURE__ */ function(PartyOrigin2) {
|
|
26
|
+
})({});
|
|
27
|
+
var PartyOrigin = /* @__PURE__ */ (function(PartyOrigin2) {
|
|
28
28
|
PartyOrigin2["INTERNAL"] = "INTERNAL";
|
|
29
29
|
PartyOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
30
30
|
return PartyOrigin2;
|
|
31
|
-
}({});
|
|
32
|
-
var IdentityOrigin = /* @__PURE__ */ function(IdentityOrigin2) {
|
|
31
|
+
})({});
|
|
32
|
+
var IdentityOrigin = /* @__PURE__ */ (function(IdentityOrigin2) {
|
|
33
33
|
IdentityOrigin2["INTERNAL"] = "INTERNAL";
|
|
34
34
|
IdentityOrigin2["EXTERNAL"] = "EXTERNAL";
|
|
35
35
|
return IdentityOrigin2;
|
|
36
|
-
}({});
|
|
36
|
+
})({});
|
|
37
37
|
|
|
38
38
|
// src/types/digitalCredential/enums.ts
|
|
39
|
-
var DocumentType = /* @__PURE__ */ function(DocumentType2) {
|
|
39
|
+
var DocumentType = /* @__PURE__ */ (function(DocumentType2) {
|
|
40
40
|
DocumentType2["VC"] = "VC";
|
|
41
41
|
DocumentType2["VP"] = "VP";
|
|
42
42
|
DocumentType2["P"] = "P";
|
|
43
43
|
DocumentType2["C"] = "C";
|
|
44
44
|
return DocumentType2;
|
|
45
|
-
}({});
|
|
46
|
-
var RegulationType = /* @__PURE__ */ function(RegulationType2) {
|
|
45
|
+
})({});
|
|
46
|
+
var RegulationType = /* @__PURE__ */ (function(RegulationType2) {
|
|
47
47
|
RegulationType2["PID"] = "PID";
|
|
48
48
|
RegulationType2["QEAA"] = "QEAA";
|
|
49
49
|
RegulationType2["EAA"] = "EAA";
|
|
50
50
|
RegulationType2["NON_REGULATED"] = "NON_REGULATED";
|
|
51
51
|
return RegulationType2;
|
|
52
|
-
}({});
|
|
53
|
-
var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat2) {
|
|
52
|
+
})({});
|
|
53
|
+
var CredentialDocumentFormat = /* @__PURE__ */ (function(CredentialDocumentFormat2) {
|
|
54
54
|
CredentialDocumentFormat2["JSON_LD"] = "JSON_LD";
|
|
55
55
|
CredentialDocumentFormat2["JWT"] = "JWT";
|
|
56
56
|
CredentialDocumentFormat2["SD_JWT"] = "SD_JWT";
|
|
57
57
|
CredentialDocumentFormat2["MSO_MDOC"] = "MSO_MDOC";
|
|
58
58
|
return CredentialDocumentFormat2;
|
|
59
|
-
}({});
|
|
59
|
+
})({});
|
|
60
60
|
(function(CredentialDocumentFormat2) {
|
|
61
61
|
function fromSpecValue(credentialFormat) {
|
|
62
62
|
const format = credentialFormat.toLowerCase();
|
|
@@ -89,19 +89,19 @@ var CredentialDocumentFormat = /* @__PURE__ */ function(CredentialDocumentFormat
|
|
|
89
89
|
__name(toSpecValue, "toSpecValue");
|
|
90
90
|
CredentialDocumentFormat2.toSpecValue = toSpecValue;
|
|
91
91
|
})(CredentialDocumentFormat || (CredentialDocumentFormat = {}));
|
|
92
|
-
var CredentialCorrelationType = /* @__PURE__ */ function(CredentialCorrelationType2) {
|
|
92
|
+
var CredentialCorrelationType = /* @__PURE__ */ (function(CredentialCorrelationType2) {
|
|
93
93
|
CredentialCorrelationType2["DID"] = "DID";
|
|
94
94
|
CredentialCorrelationType2["X509_SAN"] = "X509_SAN";
|
|
95
95
|
CredentialCorrelationType2["KID"] = "KID";
|
|
96
96
|
CredentialCorrelationType2["URL"] = "URL";
|
|
97
97
|
return CredentialCorrelationType2;
|
|
98
|
-
}({});
|
|
99
|
-
var CredentialStateType = /* @__PURE__ */ function(CredentialStateType2) {
|
|
98
|
+
})({});
|
|
99
|
+
var CredentialStateType = /* @__PURE__ */ (function(CredentialStateType2) {
|
|
100
100
|
CredentialStateType2["REVOKED"] = "REVOKED";
|
|
101
101
|
CredentialStateType2["VERIFIED"] = "VERIFIED";
|
|
102
102
|
CredentialStateType2["EXPIRED"] = "EXPIRED";
|
|
103
103
|
return CredentialStateType2;
|
|
104
|
-
}({});
|
|
104
|
+
})({});
|
|
105
105
|
|
|
106
106
|
// src/entities/contact/IdentityEntity.ts
|
|
107
107
|
import { BaseEntity as BaseEntity8, CreateDateColumn as CreateDateColumn7, Entity as Entity10, PrimaryGeneratedColumn as PrimaryGeneratedColumn10, UpdateDateColumn as UpdateDateColumn7, OneToOne as OneToOne4, JoinColumn as JoinColumn5, ManyToOne as ManyToOne7, Column as Column9, OneToMany as OneToMany4, BeforeInsert as BeforeInsert10, BeforeUpdate as BeforeUpdate10 } from "typeorm";
|
|
@@ -6794,6 +6794,9 @@ var presentationDefinitionItemFrom = /* @__PURE__ */ __name((entity) => {
|
|
|
6794
6794
|
createdAt: entity.createdAt,
|
|
6795
6795
|
lastUpdatedAt: entity.lastUpdatedAt
|
|
6796
6796
|
};
|
|
6797
|
+
if (result.dcqlPayload?.dcqlQuery) {
|
|
6798
|
+
DcqlQuery.validate(result.dcqlPayload?.dcqlQuery);
|
|
6799
|
+
}
|
|
6797
6800
|
return replaceNullWithUndefined(result);
|
|
6798
6801
|
}, "presentationDefinitionItemFrom");
|
|
6799
6802
|
var presentationDefinitionEntityItemFrom = /* @__PURE__ */ __name((item) => {
|
|
@@ -6807,6 +6810,8 @@ var presentationDefinitionEntityItemFrom = /* @__PURE__ */ __name((item) => {
|
|
|
6807
6810
|
entity.definitionPayload = JSON.stringify(item.definitionPayload);
|
|
6808
6811
|
}
|
|
6809
6812
|
if (item.dcqlPayload) {
|
|
6813
|
+
const dcqlQuery = DcqlQuery.parse(item.dcqlPayload.dcqlQuery);
|
|
6814
|
+
DcqlQuery.validate(dcqlQuery);
|
|
6810
6815
|
entity.dcqlPayload = JSON.stringify(item.dcqlPayload.dcqlQuery);
|
|
6811
6816
|
}
|
|
6812
6817
|
return entity;
|