-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(INJI-205): rename variable and remove redundant comments
- Loading branch information
1 parent
728dc55
commit 9f8c778
Showing
2 changed files
with
150 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,145 @@ | ||
// This file was automatically generated. Edits will be overwritten | ||
|
||
// This file was automatically generated. Edits will be overwritten | ||
|
||
export interface Typegen0 { | ||
'@@xstate/typegen': true; | ||
internalEvents: { | ||
"done.invoke.checkInternet": { type: "done.invoke.checkInternet"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.issuersMachine.displayIssuers:invocation[0]": { type: "done.invoke.issuersMachine.displayIssuers:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.issuersMachine.downloadCredentials:invocation[0]": { type: "done.invoke.issuersMachine.downloadCredentials:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]": { type: "done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.issuersMachine.generateKeyPair:invocation[0]": { type: "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.issuersMachine.performAuthorization:invocation[0]": { type: "done.invoke.issuersMachine.performAuthorization:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"done.invoke.issuersMachine.verifyingCredential:invocation[0]": { type: "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
"error.platform.checkInternet": { type: "error.platform.checkInternet"; data: unknown }; | ||
"error.platform.issuersMachine.displayIssuers:invocation[0]": { type: "error.platform.issuersMachine.displayIssuers:invocation[0]"; data: unknown }; | ||
"error.platform.issuersMachine.downloadCredentials:invocation[0]": { type: "error.platform.issuersMachine.downloadCredentials:invocation[0]"; data: unknown }; | ||
"error.platform.issuersMachine.downloadIssuerConfig:invocation[0]": { type: "error.platform.issuersMachine.downloadIssuerConfig:invocation[0]"; data: unknown }; | ||
"error.platform.issuersMachine.performAuthorization:invocation[0]": { type: "error.platform.issuersMachine.performAuthorization:invocation[0]"; data: unknown }; | ||
"xstate.init": { type: "xstate.init" }; | ||
}; | ||
invokeSrcNameMap: { | ||
"checkInternet": "done.invoke.checkInternet"; | ||
"downloadCredential": "done.invoke.issuersMachine.downloadCredentials:invocation[0]"; | ||
"downloadIssuerConfig": "done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]"; | ||
"downloadIssuersList": "done.invoke.issuersMachine.displayIssuers:invocation[0]"; | ||
"generateKeyPair": "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; | ||
"invokeAuthorization": "done.invoke.issuersMachine.performAuthorization:invocation[0]"; | ||
"verifyCredential": "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; | ||
}; | ||
missingImplementations: { | ||
actions: never; | ||
delays: never; | ||
guards: never; | ||
services: never; | ||
}; | ||
eventsCausingActions: { | ||
"getKeyPairFromStore": "done.invoke.issuersMachine.performAuthorization:invocation[0]"; | ||
"loadKeyPair": "done.invoke.issuersMachine.performAuthorization:invocation[0]"; | ||
"logDownloaded": "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; | ||
"resetError": "RESET_ERROR" | "TRY_AGAIN" | "error.platform.issuersMachine.performAuthorization:invocation[0]"; | ||
"setCredentialWrapper": "done.invoke.issuersMachine.downloadCredentials:invocation[0]"; | ||
"setError": "error.platform.issuersMachine.displayIssuers:invocation[0]" | "error.platform.issuersMachine.downloadCredentials:invocation[0]" | "error.platform.issuersMachine.downloadIssuerConfig:invocation[0]" | "error.platform.issuersMachine.performAuthorization:invocation[0]"; | ||
"setIssuers": "done.invoke.issuersMachine.displayIssuers:invocation[0]"; | ||
"setLoadingIssuer": "TRY_AGAIN"; | ||
"setNoInternet": "done.invoke.checkInternet"; | ||
"setPrivateKey": "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; | ||
"setPublicKey": "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; | ||
"setSelectedIssuers": "done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]"; | ||
"setTokenResponse": "done.invoke.issuersMachine.performAuthorization:invocation[0]"; | ||
"setVerifiableCredential": "done.invoke.issuersMachine.downloadCredentials:invocation[0]"; | ||
"storeKeyPair": "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; | ||
"storeVcMetaContext": "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; | ||
"storeVcsContext": "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; | ||
"storeVerifiableCredentialData": "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; | ||
"storeVerifiableCredentialMeta": "done.invoke.issuersMachine.verifyingCredential:invocation[0]"; | ||
"unsetLoadingReason": "done.invoke.checkInternet" | "done.invoke.issuersMachine.displayIssuers:invocation[0]" | "error.platform.issuersMachine.performAuthorization:invocation[0]"; | ||
"updateTmpSelectedIssuer": "SELECTED_ISSUER"; | ||
}; | ||
eventsCausingDelays: { | ||
|
||
}; | ||
eventsCausingGuards: { | ||
"hasKeyPair": "CHECK_KEY_PAIR"; | ||
"isCustomSecureKeystore": "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; | ||
"isInternetConnected": "done.invoke.checkInternet"; | ||
"isOIDCflowCancelled": "error.platform.issuersMachine.performAuthorization:invocation[0]"; | ||
"shouldFetchIssuersAgain": "TRY_AGAIN"; | ||
}; | ||
eventsCausingServices: { | ||
"checkInternet": "done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]"; | ||
"downloadCredential": "CHECK_KEY_PAIR" | "done.invoke.issuersMachine.generateKeyPair:invocation[0]"; | ||
"downloadIssuerConfig": "SELECTED_ISSUER" | "TRY_AGAIN"; | ||
"downloadIssuersList": "TRY_AGAIN" | "xstate.init"; | ||
"generateKeyPair": "CHECK_KEY_PAIR"; | ||
"invokeAuthorization": "done.invoke.checkInternet"; | ||
"verifyCredential": "done.invoke.issuersMachine.downloadCredentials:invocation[0]"; | ||
}; | ||
matchesStates: "checkInternet" | "checkKeyPair" | "displayIssuers" | "done" | "downloadCredentials" | "downloadIssuerConfig" | "error" | "generateKeyPair" | "idle" | "performAuthorization" | "selectingIssuer" | "storing" | "verifyingCredential"; | ||
tags: never; | ||
} | ||
|
||
export interface Typegen0 { | ||
'@@xstate/typegen': true; | ||
internalEvents: { | ||
'done.invoke.checkInternet': { | ||
type: 'done.invoke.checkInternet'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'done.invoke.issuersMachine.displayIssuers:invocation[0]': { | ||
type: 'done.invoke.issuersMachine.displayIssuers:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'done.invoke.issuersMachine.downloadCredentials:invocation[0]': { | ||
type: 'done.invoke.issuersMachine.downloadCredentials:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]': { | ||
type: 'done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'done.invoke.issuersMachine.generateKeyPair:invocation[0]': { | ||
type: 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'done.invoke.issuersMachine.performAuthorization:invocation[0]': { | ||
type: 'done.invoke.issuersMachine.performAuthorization:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'done.invoke.issuersMachine.verifyingCredential:invocation[0]': { | ||
type: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'error.platform.checkInternet': { | ||
type: 'error.platform.checkInternet'; | ||
data: unknown; | ||
}; | ||
'error.platform.issuersMachine.displayIssuers:invocation[0]': { | ||
type: 'error.platform.issuersMachine.displayIssuers:invocation[0]'; | ||
data: unknown; | ||
}; | ||
'error.platform.issuersMachine.downloadCredentials:invocation[0]': { | ||
type: 'error.platform.issuersMachine.downloadCredentials:invocation[0]'; | ||
data: unknown; | ||
}; | ||
'error.platform.issuersMachine.downloadIssuerConfig:invocation[0]': { | ||
type: 'error.platform.issuersMachine.downloadIssuerConfig:invocation[0]'; | ||
data: unknown; | ||
}; | ||
'error.platform.issuersMachine.performAuthorization:invocation[0]': { | ||
type: 'error.platform.issuersMachine.performAuthorization:invocation[0]'; | ||
data: unknown; | ||
}; | ||
'xstate.init': {type: 'xstate.init'}; | ||
}; | ||
invokeSrcNameMap: { | ||
checkInternet: 'done.invoke.checkInternet'; | ||
downloadCredential: 'done.invoke.issuersMachine.downloadCredentials:invocation[0]'; | ||
downloadIssuerConfig: 'done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]'; | ||
downloadIssuersList: 'done.invoke.issuersMachine.displayIssuers:invocation[0]'; | ||
generateKeyPair: 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
invokeAuthorization: 'done.invoke.issuersMachine.performAuthorization:invocation[0]'; | ||
verifyCredential: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
}; | ||
missingImplementations: { | ||
actions: never; | ||
delays: never; | ||
guards: never; | ||
services: never; | ||
}; | ||
eventsCausingActions: { | ||
getKeyPairFromStore: 'done.invoke.issuersMachine.performAuthorization:invocation[0]'; | ||
loadKeyPair: 'done.invoke.issuersMachine.performAuthorization:invocation[0]'; | ||
logDownloaded: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
resetError: | ||
| 'RESET_ERROR' | ||
| 'TRY_AGAIN' | ||
| 'error.platform.issuersMachine.performAuthorization:invocation[0]'; | ||
setCredentialWrapper: 'done.invoke.issuersMachine.downloadCredentials:invocation[0]'; | ||
setError: | ||
| 'error.platform.issuersMachine.displayIssuers:invocation[0]' | ||
| 'error.platform.issuersMachine.downloadCredentials:invocation[0]' | ||
| 'error.platform.issuersMachine.downloadIssuerConfig:invocation[0]' | ||
| 'error.platform.issuersMachine.performAuthorization:invocation[0]'; | ||
setIssuers: 'done.invoke.issuersMachine.displayIssuers:invocation[0]'; | ||
setLoadingIssuer: 'TRY_AGAIN'; | ||
setNoInternet: 'done.invoke.checkInternet'; | ||
setPrivateKey: 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
setPublicKey: 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
setSelectedIssuers: 'done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]'; | ||
setTokenResponse: 'done.invoke.issuersMachine.performAuthorization:invocation[0]'; | ||
setVerifiableCredential: 'done.invoke.issuersMachine.downloadCredentials:invocation[0]'; | ||
storeKeyPair: 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
storeVcMetaContext: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
storeVcsContext: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
storeVerifiableCredentialData: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
storeVerifiableCredentialMeta: 'done.invoke.issuersMachine.verifyingCredential:invocation[0]'; | ||
unsetLoadingReason: | ||
| 'done.invoke.checkInternet' | ||
| 'done.invoke.issuersMachine.displayIssuers:invocation[0]' | ||
| 'error.platform.issuersMachine.performAuthorization:invocation[0]'; | ||
updateSelectedIssuerId: 'SELECTED_ISSUER'; | ||
}; | ||
eventsCausingDelays: {}; | ||
eventsCausingGuards: { | ||
hasKeyPair: 'CHECK_KEY_PAIR'; | ||
isCustomSecureKeystore: 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
isInternetConnected: 'done.invoke.checkInternet'; | ||
isOIDCflowCancelled: 'error.platform.issuersMachine.performAuthorization:invocation[0]'; | ||
shouldFetchIssuersAgain: 'TRY_AGAIN'; | ||
}; | ||
eventsCausingServices: { | ||
checkInternet: 'done.invoke.issuersMachine.downloadIssuerConfig:invocation[0]'; | ||
downloadCredential: | ||
| 'CHECK_KEY_PAIR' | ||
| 'done.invoke.issuersMachine.generateKeyPair:invocation[0]'; | ||
downloadIssuerConfig: 'SELECTED_ISSUER' | 'TRY_AGAIN'; | ||
downloadIssuersList: 'TRY_AGAIN' | 'xstate.init'; | ||
generateKeyPair: 'CHECK_KEY_PAIR'; | ||
invokeAuthorization: 'done.invoke.checkInternet'; | ||
verifyCredential: 'done.invoke.issuersMachine.downloadCredentials:invocation[0]'; | ||
}; | ||
matchesStates: | ||
| 'checkInternet' | ||
| 'checkKeyPair' | ||
| 'displayIssuers' | ||
| 'done' | ||
| 'downloadCredentials' | ||
| 'downloadIssuerConfig' | ||
| 'error' | ||
| 'generateKeyPair' | ||
| 'idle' | ||
| 'performAuthorization' | ||
| 'selectingIssuer' | ||
| 'storing' | ||
| 'verifyingCredential'; | ||
tags: never; | ||
} |