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