@sphereon/ssi-sdk.data-store 0.21.1-unstable.6 → 0.21.2-next.17
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 +1 -1
- package/dist/entities/contact/PartyTypeEntity.d.ts.map +1 -1
- package/dist/entities/contact/PartyTypeEntity.js +1 -1
- 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 +2 -3
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.d.ts.map +1 -1
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js +1 -2
- package/dist/migrations/sqlite/1690925872693-CreateContacts.js.map +1 -1
- package/dist/types/contact/IAbstractContactStore.d.ts +1 -1
- package/dist/types/contact/IAbstractContactStore.d.ts.map +1 -1
- package/dist/types/contact/contact.d.ts +3 -3
- package/dist/types/contact/contact.d.ts.map +1 -1
- package/dist/types/contact/contact.js +2 -2
- package/package.json +4 -4
- package/src/__tests__/contact.entities.test.ts +63 -63
- package/src/__tests__/contact.store.test.ts +72 -72
- package/src/entities/contact/PartyTypeEntity.ts +8 -18
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +2 -7
- package/src/migrations/sqlite/1690925872693-CreateContacts.ts +1 -4
- package/src/types/contact/IAbstractContactStore.ts +1 -1
- package/src/types/contact/contact.ts +4 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {DataSource, FindOptionsWhere} from 'typeorm'
|
|
2
|
-
import {DataStoreContactEntities, DataStoreMigrations, PartyOrigin} from '../index'
|
|
3
|
-
import {BaseContactEntity} from '../entities/contact/BaseContactEntity'
|
|
4
|
-
import {ConnectionEntity} from '../entities/contact/ConnectionEntity'
|
|
5
|
-
import {CorrelationIdentifierEntity} from '../entities/contact/CorrelationIdentifierEntity'
|
|
6
|
-
import {DidAuthConfigEntity} from '../entities/contact/DidAuthConfigEntity'
|
|
7
|
-
import {ElectronicAddressEntity} from '../entities/contact/ElectronicAddressEntity'
|
|
8
|
-
import {IdentityEntity} from '../entities/contact/IdentityEntity'
|
|
9
|
-
import {IdentityMetadataItemEntity} from '../entities/contact/IdentityMetadataItemEntity'
|
|
10
|
-
import {NaturalPersonEntity} from '../entities/contact/NaturalPersonEntity'
|
|
11
|
-
import {OpenIdConfigEntity} from '../entities/contact/OpenIdConfigEntity'
|
|
12
|
-
import {OrganizationEntity} from '../entities/contact/OrganizationEntity'
|
|
13
|
-
import {PartyEntity} from '../entities/contact/PartyEntity'
|
|
14
|
-
import {PartyRelationshipEntity} from '../entities/contact/PartyRelationshipEntity'
|
|
15
|
-
import {PartyTypeEntity} from '../entities/contact/PartyTypeEntity'
|
|
16
|
-
import {PhysicalAddressEntity} from '../entities/contact/PhysicalAddressEntity'
|
|
1
|
+
import { DataSource, FindOptionsWhere } from 'typeorm'
|
|
2
|
+
import { DataStoreContactEntities, DataStoreMigrations, PartyOrigin } from '../index'
|
|
3
|
+
import { BaseContactEntity } from '../entities/contact/BaseContactEntity'
|
|
4
|
+
import { ConnectionEntity } from '../entities/contact/ConnectionEntity'
|
|
5
|
+
import { CorrelationIdentifierEntity } from '../entities/contact/CorrelationIdentifierEntity'
|
|
6
|
+
import { DidAuthConfigEntity } from '../entities/contact/DidAuthConfigEntity'
|
|
7
|
+
import { ElectronicAddressEntity } from '../entities/contact/ElectronicAddressEntity'
|
|
8
|
+
import { IdentityEntity } from '../entities/contact/IdentityEntity'
|
|
9
|
+
import { IdentityMetadataItemEntity } from '../entities/contact/IdentityMetadataItemEntity'
|
|
10
|
+
import { NaturalPersonEntity } from '../entities/contact/NaturalPersonEntity'
|
|
11
|
+
import { OpenIdConfigEntity } from '../entities/contact/OpenIdConfigEntity'
|
|
12
|
+
import { OrganizationEntity } from '../entities/contact/OrganizationEntity'
|
|
13
|
+
import { PartyEntity } from '../entities/contact/PartyEntity'
|
|
14
|
+
import { PartyRelationshipEntity } from '../entities/contact/PartyRelationshipEntity'
|
|
15
|
+
import { PartyTypeEntity } from '../entities/contact/PartyTypeEntity'
|
|
16
|
+
import { PhysicalAddressEntity } from '../entities/contact/PhysicalAddressEntity'
|
|
17
17
|
import {
|
|
18
18
|
ConnectionTypeEnum,
|
|
19
19
|
CorrelationIdentifierEnum,
|
|
@@ -74,7 +74,7 @@ describe('Database entities tests', (): void => {
|
|
|
74
74
|
uri: 'example.com',
|
|
75
75
|
partyType: {
|
|
76
76
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
77
|
-
origin: PartyOrigin.
|
|
77
|
+
origin: PartyOrigin.internal,
|
|
78
78
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
79
79
|
name: 'example_name',
|
|
80
80
|
},
|
|
@@ -115,7 +115,7 @@ describe('Database entities tests', (): void => {
|
|
|
115
115
|
uri: 'example.com',
|
|
116
116
|
partyType: {
|
|
117
117
|
type: PartyTypeEnum.ORGANIZATION,
|
|
118
|
-
origin: PartyOrigin.
|
|
118
|
+
origin: PartyOrigin.internal,
|
|
119
119
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
120
120
|
name: 'example_name',
|
|
121
121
|
},
|
|
@@ -152,7 +152,7 @@ describe('Database entities tests', (): void => {
|
|
|
152
152
|
uri: 'example1.com',
|
|
153
153
|
partyType: {
|
|
154
154
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
155
|
-
origin: PartyOrigin.
|
|
155
|
+
origin: PartyOrigin.internal,
|
|
156
156
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
157
157
|
name: 'example_name1',
|
|
158
158
|
},
|
|
@@ -173,7 +173,7 @@ describe('Database entities tests', (): void => {
|
|
|
173
173
|
uri: 'example2.com',
|
|
174
174
|
partyType: {
|
|
175
175
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
176
|
-
origin: PartyOrigin.
|
|
176
|
+
origin: PartyOrigin.internal,
|
|
177
177
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
178
178
|
name: 'example_name2',
|
|
179
179
|
},
|
|
@@ -218,7 +218,7 @@ describe('Database entities tests', (): void => {
|
|
|
218
218
|
uri: 'example.com',
|
|
219
219
|
partyType: {
|
|
220
220
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
221
|
-
origin: PartyOrigin.
|
|
221
|
+
origin: PartyOrigin.internal,
|
|
222
222
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
223
223
|
name: 'example_name',
|
|
224
224
|
},
|
|
@@ -240,7 +240,7 @@ describe('Database entities tests', (): void => {
|
|
|
240
240
|
uri: 'example.com',
|
|
241
241
|
partyType: {
|
|
242
242
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
243
|
-
origin: PartyOrigin.
|
|
243
|
+
origin: PartyOrigin.external,
|
|
244
244
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
245
245
|
name: 'example_name',
|
|
246
246
|
},
|
|
@@ -262,7 +262,7 @@ describe('Database entities tests', (): void => {
|
|
|
262
262
|
uri: 'example.com',
|
|
263
263
|
partyType: {
|
|
264
264
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
265
|
-
origin: PartyOrigin.
|
|
265
|
+
origin: PartyOrigin.external,
|
|
266
266
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
267
267
|
name: 'example_name',
|
|
268
268
|
},
|
|
@@ -284,7 +284,7 @@ describe('Database entities tests', (): void => {
|
|
|
284
284
|
uri: 'example.com',
|
|
285
285
|
partyType: {
|
|
286
286
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
287
|
-
origin: PartyOrigin.
|
|
287
|
+
origin: PartyOrigin.external,
|
|
288
288
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
289
289
|
name: 'example_name',
|
|
290
290
|
},
|
|
@@ -306,7 +306,7 @@ describe('Database entities tests', (): void => {
|
|
|
306
306
|
uri: 'example.com',
|
|
307
307
|
partyType: {
|
|
308
308
|
type: PartyTypeEnum.ORGANIZATION,
|
|
309
|
-
origin: PartyOrigin.
|
|
309
|
+
origin: PartyOrigin.internal,
|
|
310
310
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
311
311
|
name: 'example_name',
|
|
312
312
|
},
|
|
@@ -326,7 +326,7 @@ describe('Database entities tests', (): void => {
|
|
|
326
326
|
uri: 'example.com',
|
|
327
327
|
partyType: {
|
|
328
328
|
type: PartyTypeEnum.ORGANIZATION,
|
|
329
|
-
origin: PartyOrigin.
|
|
329
|
+
origin: PartyOrigin.internal,
|
|
330
330
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
331
331
|
name: 'example_name',
|
|
332
332
|
},
|
|
@@ -346,7 +346,7 @@ describe('Database entities tests', (): void => {
|
|
|
346
346
|
uri: 'example.com',
|
|
347
347
|
partyType: {
|
|
348
348
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
349
|
-
origin: PartyOrigin.
|
|
349
|
+
origin: PartyOrigin.external,
|
|
350
350
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
351
351
|
name: '',
|
|
352
352
|
},
|
|
@@ -368,7 +368,7 @@ describe('Database entities tests', (): void => {
|
|
|
368
368
|
uri: 'example.com',
|
|
369
369
|
partyType: {
|
|
370
370
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
371
|
-
origin: PartyOrigin.
|
|
371
|
+
origin: PartyOrigin.internal,
|
|
372
372
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
373
373
|
name: 'example_name',
|
|
374
374
|
description: '',
|
|
@@ -391,7 +391,7 @@ describe('Database entities tests', (): void => {
|
|
|
391
391
|
uri: 'example.com',
|
|
392
392
|
partyType: {
|
|
393
393
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
394
|
-
origin: PartyOrigin.
|
|
394
|
+
origin: PartyOrigin.external,
|
|
395
395
|
tenantId: '',
|
|
396
396
|
name: 'example_name',
|
|
397
397
|
},
|
|
@@ -787,7 +787,7 @@ describe('Database entities tests', (): void => {
|
|
|
787
787
|
uri: 'example.com',
|
|
788
788
|
partyType: {
|
|
789
789
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
790
|
-
origin: PartyOrigin.
|
|
790
|
+
origin: PartyOrigin.internal,
|
|
791
791
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
792
792
|
name: 'example_name1',
|
|
793
793
|
},
|
|
@@ -808,7 +808,7 @@ describe('Database entities tests', (): void => {
|
|
|
808
808
|
uri: 'example.com',
|
|
809
809
|
partyType: {
|
|
810
810
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
811
|
-
origin: PartyOrigin.
|
|
811
|
+
origin: PartyOrigin.internal,
|
|
812
812
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
813
813
|
name: 'example_name2',
|
|
814
814
|
},
|
|
@@ -968,7 +968,7 @@ describe('Database entities tests', (): void => {
|
|
|
968
968
|
uri: 'example.com',
|
|
969
969
|
partyType: {
|
|
970
970
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
971
|
-
origin: PartyOrigin.
|
|
971
|
+
origin: PartyOrigin.external,
|
|
972
972
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
973
973
|
name: 'example_name',
|
|
974
974
|
},
|
|
@@ -1069,7 +1069,7 @@ describe('Database entities tests', (): void => {
|
|
|
1069
1069
|
uri: 'example.com',
|
|
1070
1070
|
partyType: {
|
|
1071
1071
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1072
|
-
origin: PartyOrigin.
|
|
1072
|
+
origin: PartyOrigin.external,
|
|
1073
1073
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1074
1074
|
name: 'example_name',
|
|
1075
1075
|
},
|
|
@@ -1145,7 +1145,7 @@ describe('Database entities tests', (): void => {
|
|
|
1145
1145
|
uri: 'example.com',
|
|
1146
1146
|
partyType: {
|
|
1147
1147
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1148
|
-
origin: PartyOrigin.
|
|
1148
|
+
origin: PartyOrigin.internal,
|
|
1149
1149
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1150
1150
|
name: 'example_name',
|
|
1151
1151
|
},
|
|
@@ -1173,7 +1173,7 @@ describe('Database entities tests', (): void => {
|
|
|
1173
1173
|
uri: 'example.com',
|
|
1174
1174
|
partyType: {
|
|
1175
1175
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1176
|
-
origin: PartyOrigin.
|
|
1176
|
+
origin: PartyOrigin.internal,
|
|
1177
1177
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1178
1178
|
name: 'example_name',
|
|
1179
1179
|
},
|
|
@@ -1269,7 +1269,7 @@ describe('Database entities tests', (): void => {
|
|
|
1269
1269
|
uri: 'example.com',
|
|
1270
1270
|
partyType: {
|
|
1271
1271
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1272
|
-
origin: PartyOrigin.
|
|
1272
|
+
origin: PartyOrigin.internal,
|
|
1273
1273
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1274
1274
|
name: 'example_name',
|
|
1275
1275
|
},
|
|
@@ -1297,7 +1297,7 @@ describe('Database entities tests', (): void => {
|
|
|
1297
1297
|
uri: 'example.com',
|
|
1298
1298
|
partyType: {
|
|
1299
1299
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1300
|
-
origin: PartyOrigin.
|
|
1300
|
+
origin: PartyOrigin.external,
|
|
1301
1301
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1302
1302
|
name: 'example_name',
|
|
1303
1303
|
},
|
|
@@ -1340,7 +1340,7 @@ describe('Database entities tests', (): void => {
|
|
|
1340
1340
|
it('Should set last updated date when saving party type', async (): Promise<void> => {
|
|
1341
1341
|
const partyType: NonPersistedPartyType = {
|
|
1342
1342
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1343
|
-
origin: PartyOrigin.
|
|
1343
|
+
origin: PartyOrigin.external,
|
|
1344
1344
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1345
1345
|
name: 'example_name',
|
|
1346
1346
|
}
|
|
@@ -1359,7 +1359,7 @@ describe('Database entities tests', (): void => {
|
|
|
1359
1359
|
it('Should set last creation date when saving party type', async (): Promise<void> => {
|
|
1360
1360
|
const partyType: NonPersistedPartyType = {
|
|
1361
1361
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1362
|
-
origin: PartyOrigin.
|
|
1362
|
+
origin: PartyOrigin.internal,
|
|
1363
1363
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1364
1364
|
name: 'example_name',
|
|
1365
1365
|
}
|
|
@@ -1406,7 +1406,7 @@ describe('Database entities tests', (): void => {
|
|
|
1406
1406
|
const name = 'non_unique_value'
|
|
1407
1407
|
const partyType1: NonPersistedPartyType = {
|
|
1408
1408
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1409
|
-
origin: PartyOrigin.
|
|
1409
|
+
origin: PartyOrigin.external,
|
|
1410
1410
|
tenantId,
|
|
1411
1411
|
name,
|
|
1412
1412
|
}
|
|
@@ -1418,7 +1418,7 @@ describe('Database entities tests', (): void => {
|
|
|
1418
1418
|
|
|
1419
1419
|
const partyType2: NonPersistedPartyType = {
|
|
1420
1420
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1421
|
-
origin: PartyOrigin.
|
|
1421
|
+
origin: PartyOrigin.internal,
|
|
1422
1422
|
tenantId,
|
|
1423
1423
|
name,
|
|
1424
1424
|
}
|
|
@@ -1433,7 +1433,7 @@ describe('Database entities tests', (): void => {
|
|
|
1433
1433
|
const name = 'non_unique_value'
|
|
1434
1434
|
const partyType1: NonPersistedPartyType = {
|
|
1435
1435
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1436
|
-
origin:PartyOrigin.
|
|
1436
|
+
origin: PartyOrigin.internal,
|
|
1437
1437
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1438
1438
|
name,
|
|
1439
1439
|
}
|
|
@@ -1445,7 +1445,7 @@ describe('Database entities tests', (): void => {
|
|
|
1445
1445
|
|
|
1446
1446
|
const partyType2: NonPersistedPartyType = {
|
|
1447
1447
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1448
|
-
origin: PartyOrigin.
|
|
1448
|
+
origin: PartyOrigin.internal,
|
|
1449
1449
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
1450
1450
|
name,
|
|
1451
1451
|
}
|
|
@@ -1511,7 +1511,7 @@ describe('Database entities tests', (): void => {
|
|
|
1511
1511
|
uri: 'example1.com',
|
|
1512
1512
|
partyType: {
|
|
1513
1513
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1514
|
-
origin: PartyOrigin.
|
|
1514
|
+
origin: PartyOrigin.internal,
|
|
1515
1515
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1516
1516
|
name: 'example_name1',
|
|
1517
1517
|
},
|
|
@@ -1534,7 +1534,7 @@ describe('Database entities tests', (): void => {
|
|
|
1534
1534
|
uri: 'example2.com',
|
|
1535
1535
|
partyType: {
|
|
1536
1536
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1537
|
-
origin: PartyOrigin.
|
|
1537
|
+
origin: PartyOrigin.internal,
|
|
1538
1538
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
1539
1539
|
name: 'example_name2',
|
|
1540
1540
|
},
|
|
@@ -1575,7 +1575,7 @@ describe('Database entities tests', (): void => {
|
|
|
1575
1575
|
uri: 'example1.com',
|
|
1576
1576
|
partyType: {
|
|
1577
1577
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1578
|
-
origin: PartyOrigin.
|
|
1578
|
+
origin: PartyOrigin.internal,
|
|
1579
1579
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1580
1580
|
name: 'example_name1',
|
|
1581
1581
|
},
|
|
@@ -1596,7 +1596,7 @@ describe('Database entities tests', (): void => {
|
|
|
1596
1596
|
uri: 'example2.com',
|
|
1597
1597
|
partyType: {
|
|
1598
1598
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1599
|
-
origin: PartyOrigin.
|
|
1599
|
+
origin: PartyOrigin.internal,
|
|
1600
1600
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
1601
1601
|
name: 'example_name2',
|
|
1602
1602
|
},
|
|
@@ -1635,7 +1635,7 @@ describe('Database entities tests', (): void => {
|
|
|
1635
1635
|
uri: 'example1.com',
|
|
1636
1636
|
partyType: {
|
|
1637
1637
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1638
|
-
origin: PartyOrigin.
|
|
1638
|
+
origin: PartyOrigin.internal,
|
|
1639
1639
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1640
1640
|
name: 'example_name1',
|
|
1641
1641
|
},
|
|
@@ -1656,7 +1656,7 @@ describe('Database entities tests', (): void => {
|
|
|
1656
1656
|
uri: 'example2.com',
|
|
1657
1657
|
partyType: {
|
|
1658
1658
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1659
|
-
origin: PartyOrigin.
|
|
1659
|
+
origin: PartyOrigin.internal,
|
|
1660
1660
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
1661
1661
|
name: 'example_name2',
|
|
1662
1662
|
},
|
|
@@ -1695,7 +1695,7 @@ describe('Database entities tests', (): void => {
|
|
|
1695
1695
|
uri: 'example1.com',
|
|
1696
1696
|
partyType: {
|
|
1697
1697
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1698
|
-
origin: PartyOrigin.
|
|
1698
|
+
origin: PartyOrigin.internal,
|
|
1699
1699
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1700
1700
|
name: 'example_name1',
|
|
1701
1701
|
},
|
|
@@ -1718,7 +1718,7 @@ describe('Database entities tests', (): void => {
|
|
|
1718
1718
|
uri: 'example2.com',
|
|
1719
1719
|
partyType: {
|
|
1720
1720
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1721
|
-
origin: PartyOrigin.
|
|
1721
|
+
origin: PartyOrigin.internal,
|
|
1722
1722
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
1723
1723
|
name: 'example_name2',
|
|
1724
1724
|
},
|
|
@@ -1771,7 +1771,7 @@ describe('Database entities tests', (): void => {
|
|
|
1771
1771
|
uri: 'example1.com',
|
|
1772
1772
|
partyType: {
|
|
1773
1773
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1774
|
-
origin: PartyOrigin.
|
|
1774
|
+
origin: PartyOrigin.internal,
|
|
1775
1775
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1776
1776
|
name: 'example_name1',
|
|
1777
1777
|
},
|
|
@@ -1794,7 +1794,7 @@ describe('Database entities tests', (): void => {
|
|
|
1794
1794
|
uri: 'example2.com',
|
|
1795
1795
|
partyType: {
|
|
1796
1796
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1797
|
-
origin: PartyOrigin.
|
|
1797
|
+
origin: PartyOrigin.internal,
|
|
1798
1798
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
1799
1799
|
name: 'example_name2',
|
|
1800
1800
|
},
|
|
@@ -1837,7 +1837,7 @@ describe('Database entities tests', (): void => {
|
|
|
1837
1837
|
it('Should save party type to database', async (): Promise<void> => {
|
|
1838
1838
|
const partyType: NonPersistedPartyType = {
|
|
1839
1839
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1840
|
-
origin: PartyOrigin.
|
|
1840
|
+
origin: PartyOrigin.internal,
|
|
1841
1841
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1842
1842
|
name: 'example_name',
|
|
1843
1843
|
}
|
|
@@ -1973,7 +1973,7 @@ describe('Database entities tests', (): void => {
|
|
|
1973
1973
|
uri: 'example.com',
|
|
1974
1974
|
partyType: {
|
|
1975
1975
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
1976
|
-
origin: PartyOrigin.
|
|
1976
|
+
origin: PartyOrigin.internal,
|
|
1977
1977
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
1978
1978
|
name: 'example_name',
|
|
1979
1979
|
},
|
|
@@ -2007,7 +2007,7 @@ describe('Database entities tests', (): void => {
|
|
|
2007
2007
|
uri: 'example.com',
|
|
2008
2008
|
partyType: {
|
|
2009
2009
|
type: PartyTypeEnum.ORGANIZATION,
|
|
2010
|
-
origin: PartyOrigin.
|
|
2010
|
+
origin: PartyOrigin.internal,
|
|
2011
2011
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2012
2012
|
name: 'example_name',
|
|
2013
2013
|
},
|
|
@@ -2038,7 +2038,7 @@ describe('Database entities tests', (): void => {
|
|
|
2038
2038
|
uri: 'example.com',
|
|
2039
2039
|
partyType: {
|
|
2040
2040
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2041
|
-
origin: PartyOrigin.
|
|
2041
|
+
origin: PartyOrigin.internal,
|
|
2042
2042
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2043
2043
|
name: 'example_name',
|
|
2044
2044
|
},
|
|
@@ -2072,7 +2072,7 @@ describe('Database entities tests', (): void => {
|
|
|
2072
2072
|
uri: 'example1.com',
|
|
2073
2073
|
partyType: {
|
|
2074
2074
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2075
|
-
origin: PartyOrigin.
|
|
2075
|
+
origin: PartyOrigin.internal,
|
|
2076
2076
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2077
2077
|
name: 'example_name1',
|
|
2078
2078
|
},
|
|
@@ -2095,7 +2095,7 @@ describe('Database entities tests', (): void => {
|
|
|
2095
2095
|
uri: 'example2.com',
|
|
2096
2096
|
partyType: {
|
|
2097
2097
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2098
|
-
origin: PartyOrigin.
|
|
2098
|
+
origin: PartyOrigin.internal,
|
|
2099
2099
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d288',
|
|
2100
2100
|
name: 'example_name2',
|
|
2101
2101
|
},
|
|
@@ -2137,7 +2137,7 @@ describe('Database entities tests', (): void => {
|
|
|
2137
2137
|
it('Should delete party type', async (): Promise<void> => {
|
|
2138
2138
|
const partyType: NonPersistedPartyType = {
|
|
2139
2139
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2140
|
-
origin: PartyOrigin.
|
|
2140
|
+
origin: PartyOrigin.internal,
|
|
2141
2141
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2142
2142
|
name: 'example_name',
|
|
2143
2143
|
}
|
|
@@ -2161,7 +2161,7 @@ describe('Database entities tests', (): void => {
|
|
|
2161
2161
|
uri: 'example.com',
|
|
2162
2162
|
partyType: {
|
|
2163
2163
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2164
|
-
origin: PartyOrigin.
|
|
2164
|
+
origin: PartyOrigin.internal,
|
|
2165
2165
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2166
2166
|
name: 'example_name',
|
|
2167
2167
|
},
|
|
@@ -2188,7 +2188,7 @@ describe('Database entities tests', (): void => {
|
|
|
2188
2188
|
it('Should save party with existing party type', async (): Promise<void> => {
|
|
2189
2189
|
const partyType: NonPersistedPartyType = {
|
|
2190
2190
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2191
|
-
origin: PartyOrigin.
|
|
2191
|
+
origin: PartyOrigin.internal,
|
|
2192
2192
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2193
2193
|
name: 'example_name',
|
|
2194
2194
|
}
|
|
@@ -2229,7 +2229,7 @@ describe('Database entities tests', (): void => {
|
|
|
2229
2229
|
it('Should not update creation date when saving party type', async (): Promise<void> => {
|
|
2230
2230
|
const partyType: NonPersistedPartyType = {
|
|
2231
2231
|
type: PartyTypeEnum.NATURAL_PERSON,
|
|
2232
|
-
origin: PartyOrigin.
|
|
2232
|
+
origin: PartyOrigin.internal,
|
|
2233
2233
|
tenantId: '0605761c-4113-4ce5-a6b2-9cbae2f9d289',
|
|
2234
2234
|
name: 'example_name',
|
|
2235
2235
|
}
|