@sphereon/ssi-sdk.data-store 0.11.1-unstable.149 → 0.11.1-unstable.150
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/contact/AbstractContactStore.d.ts +25 -12
- package/dist/contact/AbstractContactStore.js +6 -7
- package/dist/contact/ContactStore.d.ts +40 -27
- package/dist/contact/ContactStore.js +338 -272
- package/dist/entities/contact/BaseConfigEntity.d.ts +3 -3
- package/dist/entities/contact/BaseConfigEntity.js +31 -26
- package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
- package/dist/entities/contact/ConnectionEntity.js +79 -58
- package/dist/entities/contact/ContactEntity.d.ts +14 -14
- package/dist/entities/contact/ContactEntity.js +147 -88
- package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
- package/dist/entities/contact/CorrelationIdentifierEntity.js +113 -65
- package/dist/entities/contact/DidAuthConfigEntity.d.ts +9 -9
- package/dist/entities/contact/DidAuthConfigEntity.js +65 -46
- package/dist/entities/contact/IdentityEntity.d.ts +20 -20
- package/dist/entities/contact/IdentityEntity.js +194 -111
- package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +10 -10
- package/dist/entities/contact/IdentityMetadataItemEntity.js +111 -63
- package/dist/entities/contact/OpenIdConfigEntity.d.ts +13 -13
- package/dist/entities/contact/OpenIdConfigEntity.js +93 -66
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +9 -9
- package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +103 -64
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +16 -16
- package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +172 -100
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +13 -13
- package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +152 -83
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +7 -7
- package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +67 -45
- package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +12 -12
- package/dist/entities/issuanceBranding/ImageAttributesEntity.js +130 -76
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +7 -7
- package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +43 -38
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +12 -12
- package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +141 -80
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +7 -7
- package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +67 -45
- package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +7 -7
- package/dist/entities/issuanceBranding/TextAttributesEntity.js +89 -55
- package/dist/entities/validators/index.d.ts +5 -5
- package/dist/entities/validators/index.js +31 -25
- package/dist/index.d.ts +67 -27
- package/dist/index.js +332 -97
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +39 -18
- package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -7
- package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +50 -29
- package/dist/issuanceBranding/IssuanceBrandingStore.js +520 -366
- package/dist/migrations/generic/1-CreateContacts.d.ts +5 -5
- package/dist/migrations/generic/1-CreateContacts.js +93 -69
- package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +5 -5
- package/dist/migrations/generic/1-CreateIssuanceBranding.js +93 -69
- package/dist/migrations/generic/index.d.ts +3 -3
- package/dist/migrations/generic/index.js +7 -7
- package/dist/migrations/index.d.ts +2 -2
- package/dist/migrations/index.js +11 -6
- package/dist/migrations/internal-migrations-ormconfig.d.ts +3 -3
- package/dist/migrations/internal-migrations-ormconfig.js +25 -25
- package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +5 -5
- package/dist/migrations/postgres/1659463079428-CreateContacts.js +96 -52
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +5 -5
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +118 -64
- package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +5 -5
- package/dist/migrations/sqlite/1659463069549-CreateContacts.js +142 -76
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +5 -5
- package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +156 -86
- package/dist/types/contact/IAbstractContactStore.d.ts +21 -21
- package/dist/types/contact/IAbstractContactStore.js +3 -3
- package/dist/types/contact/contact.d.ts +65 -65
- package/dist/types/contact/contact.js +21 -21
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +32 -21
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +37 -27
- package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +3 -3
- package/dist/types/issuanceBranding/issuanceBranding.d.ts +70 -76
- package/dist/types/issuanceBranding/issuanceBranding.js +3 -3
- package/package.json +3 -3
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IContact,
|
|
3
|
+
IIdentity,
|
|
4
|
+
IAddIdentityArgs,
|
|
5
|
+
IGetIdentityArgs,
|
|
6
|
+
IGetIdentitiesArgs,
|
|
7
|
+
IGetContactArgs,
|
|
8
|
+
IRemoveIdentityArgs,
|
|
9
|
+
IUpdateIdentityArgs,
|
|
10
|
+
IAddContactArgs,
|
|
11
|
+
IGetContactsArgs,
|
|
12
|
+
IRemoveContactArgs,
|
|
13
|
+
IUpdateContactArgs,
|
|
14
|
+
} from '../types'
|
|
2
15
|
export declare abstract class AbstractContactStore {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
abstract getContact(args: IGetContactArgs): Promise<IContact>
|
|
17
|
+
abstract getContacts(args?: IGetContactsArgs): Promise<Array<IContact>>
|
|
18
|
+
abstract addContact(args: IAddContactArgs): Promise<IContact>
|
|
19
|
+
abstract updateContact(args: IUpdateContactArgs): Promise<IContact>
|
|
20
|
+
abstract removeContact(args: IRemoveContactArgs): Promise<void>
|
|
21
|
+
abstract getIdentity(args: IGetIdentityArgs): Promise<IIdentity>
|
|
22
|
+
abstract getIdentities(args: IGetIdentitiesArgs): Promise<Array<IIdentity>>
|
|
23
|
+
abstract addIdentity(args: IAddIdentityArgs): Promise<IIdentity>
|
|
24
|
+
abstract updateIdentity(args: IUpdateIdentityArgs): Promise<IIdentity>
|
|
25
|
+
abstract removeIdentity(args: IRemoveIdentityArgs): Promise<void>
|
|
13
26
|
}
|
|
14
|
-
//# sourceMappingURL=AbstractContactStore.d.ts.map
|
|
27
|
+
//# sourceMappingURL=AbstractContactStore.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
exports.AbstractContactStore = void 0
|
|
4
|
-
class AbstractContactStore {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=AbstractContactStore.js.map
|
|
1
|
+
'use strict'
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true })
|
|
3
|
+
exports.AbstractContactStore = void 0
|
|
4
|
+
class AbstractContactStore {}
|
|
5
|
+
exports.AbstractContactStore = AbstractContactStore
|
|
6
|
+
//# sourceMappingURL=AbstractContactStore.js.map
|
|
@@ -1,29 +1,42 @@
|
|
|
1
|
-
import { OrPromise } from '@sphereon/ssi-types'
|
|
2
|
-
import { AbstractContactStore } from './AbstractContactStore'
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { OrPromise } from '@sphereon/ssi-types'
|
|
2
|
+
import { AbstractContactStore } from './AbstractContactStore'
|
|
3
|
+
import {
|
|
4
|
+
IAddIdentityArgs,
|
|
5
|
+
IGetIdentityArgs,
|
|
6
|
+
IGetIdentitiesArgs,
|
|
7
|
+
IGetContactArgs,
|
|
8
|
+
IRemoveIdentityArgs,
|
|
9
|
+
IUpdateIdentityArgs,
|
|
10
|
+
IGetContactsArgs,
|
|
11
|
+
IAddContactArgs,
|
|
12
|
+
IUpdateContactArgs,
|
|
13
|
+
IRemoveContactArgs,
|
|
14
|
+
IContact,
|
|
15
|
+
IIdentity,
|
|
16
|
+
} from '../types'
|
|
17
|
+
import { DataSource } from 'typeorm'
|
|
5
18
|
export declare class ContactStore extends AbstractContactStore {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
private readonly dbConnection
|
|
20
|
+
constructor(dbConnection: OrPromise<DataSource>)
|
|
21
|
+
getContact: ({ contactId }: IGetContactArgs) => Promise<IContact>
|
|
22
|
+
getContacts: (args?: IGetContactsArgs) => Promise<Array<IContact>>
|
|
23
|
+
addContact: (args: IAddContactArgs) => Promise<IContact>
|
|
24
|
+
updateContact: ({ contact }: IUpdateContactArgs) => Promise<IContact>
|
|
25
|
+
removeContact: ({ contactId }: IRemoveContactArgs) => Promise<void>
|
|
26
|
+
private deleteIdentities
|
|
27
|
+
getIdentity: ({ identityId }: IGetIdentityArgs) => Promise<IIdentity>
|
|
28
|
+
getIdentities: (args?: IGetIdentitiesArgs) => Promise<Array<IIdentity>>
|
|
29
|
+
addIdentity: ({ identity, contactId }: IAddIdentityArgs) => Promise<IIdentity>
|
|
30
|
+
updateIdentity: ({ identity }: IUpdateIdentityArgs) => Promise<IIdentity>
|
|
31
|
+
removeIdentity: ({ identityId }: IRemoveIdentityArgs) => Promise<void>
|
|
32
|
+
private contactFrom
|
|
33
|
+
private identityFrom
|
|
34
|
+
private correlationIdentifierFrom
|
|
35
|
+
private metadataItemFrom
|
|
36
|
+
private connectionFrom
|
|
37
|
+
private configFrom
|
|
38
|
+
private hasCorrectConfig
|
|
39
|
+
private isOpenIdConfig
|
|
40
|
+
private isDidAuthConfig
|
|
28
41
|
}
|
|
29
|
-
//# sourceMappingURL=ContactStore.d.ts.map
|
|
42
|
+
//# sourceMappingURL=ContactStore.d.ts.map
|