Skip to content

Commit

Permalink
chore: fix type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Jan 17, 2025
1 parent 5836673 commit bce6d49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/oid4vci-holder/src/machines/firstPartyMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
InstanceFirstPartyMachineOpts,
SiopV2AuthorizationRequestData,
SendAuthorizationResponseArgs,
SelectCredentialsEvent
FirstPartySelectCredentialsEvent
} from '../types/FirstPartyMachine'

const firstPartyMachineStates: FirstPartyMachineStatesConfig = {
Expand Down Expand Up @@ -115,7 +115,7 @@ const firstPartyMachineStates: FirstPartyMachineStatesConfig = {
id: FirstPartyMachineStateTypes.selectCredentials,
on: {
[FirstPartyMachineEvents.SET_SELECTED_CREDENTIALS]: {
actions: assign({selectedCredentials: (_ctx: FirstPartyMachineContext, _event: SelectCredentialsEvent) => _event.data}),
actions: assign({selectedCredentials: (_ctx: FirstPartyMachineContext, _event: FirstPartySelectCredentialsEvent) => _event.data}),
},
[FirstPartyMachineEvents.NEXT]: {
target: FirstPartyMachineStateTypes.sendAuthorizationResponse,
Expand Down
16 changes: 8 additions & 8 deletions packages/oid4vci-holder/src/types/FirstPartyMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ export enum FirstPartyMachineEvents {
SET_SELECTED_CREDENTIALS = 'SET_SELECTED_CREDENTIALS'
}

type NextEvent = {type: FirstPartyMachineEvents.NEXT};
type PreviousEvent = {type: FirstPartyMachineEvents.PREVIOUS};
type DeclineEvent = {type: FirstPartyMachineEvents.DECLINE};
export type SelectCredentialsEvent = {
export type FirstPartyNextEvent = {type: FirstPartyMachineEvents.NEXT};
export type FirstPartyPreviousEvent = {type: FirstPartyMachineEvents.PREVIOUS};
export type FirstPartyDeclineEvent = {type: FirstPartyMachineEvents.DECLINE};
export type FirstPartySelectCredentialsEvent = {
type: FirstPartyMachineEvents.SET_SELECTED_CREDENTIALS;
data: Array<UniqueDigitalCredential>;
};

export type FirstPartyMachineEventTypes =
NextEvent |
PreviousEvent |
DeclineEvent |
SelectCredentialsEvent
FirstPartyNextEvent |
FirstPartyPreviousEvent |
FirstPartyDeclineEvent |
FirstPartySelectCredentialsEvent

export type FirstPartyMachineStatesConfig = StatesConfig<
FirstPartyMachineContext,
Expand Down

0 comments on commit bce6d49

Please sign in to comment.