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