Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OCM-Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Konstantin Tsabolov
OCM-Engine
Commits
3a389dc0
Verified
Commit
3a389dc0
authored
1 year ago
by
Konstantin Tsabolov
Browse files
Options
Downloads
Patches
Plain Diff
feat(shared): add credential offers events
parent
12faceed
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/shared/src/events/credentialOfferEvents.ts
+48
-0
48 additions, 0 deletions
apps/shared/src/events/credentialOfferEvents.ts
apps/shared/src/index.ts
+1
-0
1 addition, 0 deletions
apps/shared/src/index.ts
with
49 additions
and
0 deletions
apps/shared/src/events/credentialOfferEvents.ts
0 → 100644
+
48
−
0
View file @
3a389dc0
import
type
{
BaseEventInput
}
from
'
./baseEvents.js
'
;
import
type
{
AnonCredsCredentialOffer
}
from
'
@aries-framework/anoncreds
'
;
import
{
BaseEvent
}
from
'
./baseEvents.js
'
;
export
type
EventAnonCredsCredentialOfferGetAllInput
=
BaseEventInput
;
export
class
EventAnonCredsCredentialOfferGetAll
extends
BaseEvent
<
Array
<
AnonCredsCredentialOffer
>
>
{
public
static
token
=
'
anoncreds.credentialOffers.getAll
'
;
public
get
instance
()
{
return
this
.
data
;
}
public
static
fromEvent
(
e
:
EventAnonCredsCredentialOfferGetAll
)
{
return
new
EventAnonCredsCredentialOfferGetAll
(
e
.
data
,
e
.
tenantId
,
e
.
id
,
e
.
type
,
e
.
timestamp
,
);
}
}
export
type
EventAnonCredsCredentialOfferGetByIdInput
=
BaseEventInput
&
{
credentialOfferId
:
string
;
};
export
class
EventAnonCredsCredentialOfferGetById
extends
BaseEvent
<
AnonCredsCredentialOffer
|
null
>
{
public
static
token
=
'
anoncreds.credentialOffers.getById
'
;
public
get
instance
()
{
return
this
.
data
;
}
public
static
fromEvent
(
e
:
EventAnonCredsCredentialOfferGetById
)
{
return
new
EventAnonCredsCredentialOfferGetById
(
e
.
data
,
e
.
tenantId
,
e
.
id
,
e
.
type
,
e
.
timestamp
,
);
}
}
This diff is collapsed.
Click to expand it.
apps/shared/src/index.ts
+
1
−
0
View file @
3a389dc0
...
@@ -10,6 +10,7 @@ export * from './events/tenantEvents.js';
...
@@ -10,6 +10,7 @@ export * from './events/tenantEvents.js';
export
*
from
'
./events/schemaEvents.js
'
;
export
*
from
'
./events/schemaEvents.js
'
;
export
*
from
'
./events/credentialDefinitionEvents.js
'
;
export
*
from
'
./events/credentialDefinitionEvents.js
'
;
export
*
from
'
./events/credentialEvents.js
'
;
export
*
from
'
./events/credentialEvents.js
'
;
export
*
from
'
./events/credentialOfferEvents.js
'
;
export
*
from
'
./dto/pagination-params.dto.js
'
;
export
*
from
'
./dto/pagination-params.dto.js
'
;
export
*
from
'
./dto/multitenancy-params.dto.js
'
;
export
*
from
'
./dto/multitenancy-params.dto.js
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment