@sphereon/ssi-sdk.data-store 0.21.2-next.8 → 0.23.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.
- package/dist/entities/contact/PartyTypeEntity.d.ts +2 -1
- package/dist/entities/contact/PartyTypeEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyTypeEntity.js +4 -0
- package/dist/entities/contact/PartyTypeEntity.js.map +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +4 -17
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
- package/dist/types/contact/IAbstractContactStore.d.ts +2 -1
- package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -1
- package/dist/types/contact/contact.d.ts +5 -0
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/contact/contact.js +6 -1
- package/dist/types/contact/contact.js.map +1 -1
- package/dist/utils/contact/MappingUtils.d.ts.map +1 -1
- package/dist/utils/contact/MappingUtils.js +2 -0
- package/dist/utils/contact/MappingUtils.js.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/contact.entities.test.ts +51 -1
- package/src/__tests__/contact.store.test.ts +74 -1
- package/src/entities/contact/PartyTypeEntity.ts +5 -2
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +8 -19
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +1 -1
- package/src/types/contact/IAbstractContactStore.ts +2 -0
- package/src/types/contact/contact.ts +6 -0
- package/src/utils/contact/MappingUtils.ts +2 -0
|
@@ -324,6 +324,7 @@ export const partyTypeEntityFrom = (args: NonPersistedPartyType): PartyTypeEntit
|
|
|
324
324
|
partyTypeEntity.id = args.id
|
|
325
325
|
}
|
|
326
326
|
partyTypeEntity.type = args.type
|
|
327
|
+
partyTypeEntity.origin = args.origin
|
|
327
328
|
partyTypeEntity.name = args.name
|
|
328
329
|
partyTypeEntity.description = args.description
|
|
329
330
|
partyTypeEntity.tenantId = args.tenantId
|
|
@@ -335,6 +336,7 @@ export const partyTypeFrom = (partyType: PartyTypeEntity): PartyType => {
|
|
|
335
336
|
return {
|
|
336
337
|
id: partyType.id,
|
|
337
338
|
type: partyType.type,
|
|
339
|
+
origin: partyType.origin,
|
|
338
340
|
name: partyType.name,
|
|
339
341
|
tenantId: partyType.tenantId,
|
|
340
342
|
description: partyType.description,
|