@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.
Files changed (75) hide show
  1. package/dist/contact/AbstractContactStore.d.ts +25 -12
  2. package/dist/contact/AbstractContactStore.js +6 -7
  3. package/dist/contact/ContactStore.d.ts +40 -27
  4. package/dist/contact/ContactStore.js +338 -272
  5. package/dist/entities/contact/BaseConfigEntity.d.ts +3 -3
  6. package/dist/entities/contact/BaseConfigEntity.js +31 -26
  7. package/dist/entities/contact/ConnectionEntity.d.ts +10 -10
  8. package/dist/entities/contact/ConnectionEntity.js +79 -58
  9. package/dist/entities/contact/ContactEntity.d.ts +14 -14
  10. package/dist/entities/contact/ContactEntity.js +147 -88
  11. package/dist/entities/contact/CorrelationIdentifierEntity.d.ts +10 -10
  12. package/dist/entities/contact/CorrelationIdentifierEntity.js +113 -65
  13. package/dist/entities/contact/DidAuthConfigEntity.d.ts +9 -9
  14. package/dist/entities/contact/DidAuthConfigEntity.js +65 -46
  15. package/dist/entities/contact/IdentityEntity.d.ts +20 -20
  16. package/dist/entities/contact/IdentityEntity.js +194 -111
  17. package/dist/entities/contact/IdentityMetadataItemEntity.d.ts +10 -10
  18. package/dist/entities/contact/IdentityMetadataItemEntity.js +111 -63
  19. package/dist/entities/contact/OpenIdConfigEntity.d.ts +13 -13
  20. package/dist/entities/contact/OpenIdConfigEntity.js +93 -66
  21. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.d.ts +9 -9
  22. package/dist/entities/issuanceBranding/BackgroundAttributesEntity.js +103 -64
  23. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.d.ts +16 -16
  24. package/dist/entities/issuanceBranding/BaseLocaleBrandingEntity.js +172 -100
  25. package/dist/entities/issuanceBranding/CredentialBrandingEntity.d.ts +13 -13
  26. package/dist/entities/issuanceBranding/CredentialBrandingEntity.js +152 -83
  27. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.d.ts +7 -7
  28. package/dist/entities/issuanceBranding/CredentialLocaleBrandingEntity.js +67 -45
  29. package/dist/entities/issuanceBranding/ImageAttributesEntity.d.ts +12 -12
  30. package/dist/entities/issuanceBranding/ImageAttributesEntity.js +130 -76
  31. package/dist/entities/issuanceBranding/ImageDimensionsEntity.d.ts +7 -7
  32. package/dist/entities/issuanceBranding/ImageDimensionsEntity.js +43 -38
  33. package/dist/entities/issuanceBranding/IssuerBrandingEntity.d.ts +12 -12
  34. package/dist/entities/issuanceBranding/IssuerBrandingEntity.js +141 -80
  35. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.d.ts +7 -7
  36. package/dist/entities/issuanceBranding/IssuerLocaleBrandingEntity.js +67 -45
  37. package/dist/entities/issuanceBranding/TextAttributesEntity.d.ts +7 -7
  38. package/dist/entities/issuanceBranding/TextAttributesEntity.js +89 -55
  39. package/dist/entities/validators/index.d.ts +5 -5
  40. package/dist/entities/validators/index.js +31 -25
  41. package/dist/index.d.ts +67 -27
  42. package/dist/index.js +332 -97
  43. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.d.ts +39 -18
  44. package/dist/issuanceBranding/AbstractIssuanceBrandingStore.js +6 -7
  45. package/dist/issuanceBranding/IssuanceBrandingStore.d.ts +50 -29
  46. package/dist/issuanceBranding/IssuanceBrandingStore.js +520 -366
  47. package/dist/migrations/generic/1-CreateContacts.d.ts +5 -5
  48. package/dist/migrations/generic/1-CreateContacts.js +93 -69
  49. package/dist/migrations/generic/1-CreateIssuanceBranding.d.ts +5 -5
  50. package/dist/migrations/generic/1-CreateIssuanceBranding.js +93 -69
  51. package/dist/migrations/generic/index.d.ts +3 -3
  52. package/dist/migrations/generic/index.js +7 -7
  53. package/dist/migrations/index.d.ts +2 -2
  54. package/dist/migrations/index.js +11 -6
  55. package/dist/migrations/internal-migrations-ormconfig.d.ts +3 -3
  56. package/dist/migrations/internal-migrations-ormconfig.js +25 -25
  57. package/dist/migrations/postgres/1659463079428-CreateContacts.d.ts +5 -5
  58. package/dist/migrations/postgres/1659463079428-CreateContacts.js +96 -52
  59. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.d.ts +5 -5
  60. package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +118 -64
  61. package/dist/migrations/sqlite/1659463069549-CreateContacts.d.ts +5 -5
  62. package/dist/migrations/sqlite/1659463069549-CreateContacts.js +142 -76
  63. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.d.ts +5 -5
  64. package/dist/migrations/sqlite/1685628973231-CreateIssuanceBranding.js +156 -86
  65. package/dist/types/contact/IAbstractContactStore.d.ts +21 -21
  66. package/dist/types/contact/IAbstractContactStore.js +3 -3
  67. package/dist/types/contact/contact.d.ts +65 -65
  68. package/dist/types/contact/contact.js +21 -21
  69. package/dist/types/index.d.ts +5 -5
  70. package/dist/types/index.js +32 -21
  71. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.d.ts +37 -27
  72. package/dist/types/issuanceBranding/IAbstractIssuanceBrandingStore.js +3 -3
  73. package/dist/types/issuanceBranding/issuanceBranding.d.ts +70 -76
  74. package/dist/types/issuanceBranding/issuanceBranding.js +3 -3
  75. package/package.json +3 -3
@@ -1,14 +1,27 @@
1
- import { IContact, IIdentity, IAddIdentityArgs, IGetIdentityArgs, IGetIdentitiesArgs, IGetContactArgs, IRemoveIdentityArgs, IUpdateIdentityArgs, IAddContactArgs, IGetContactsArgs, IRemoveContactArgs, IUpdateContactArgs } from '../types';
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
- 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>;
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
- "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
+ '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 { IAddIdentityArgs, IGetIdentityArgs, IGetIdentitiesArgs, IGetContactArgs, IRemoveIdentityArgs, IUpdateIdentityArgs, IGetContactsArgs, IAddContactArgs, IUpdateContactArgs, IRemoveContactArgs, IContact, IIdentity } from '../types';
4
- import { DataSource } from 'typeorm';
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
- 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;
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