Documentation / @u-net/issuer / TransactionalIssuanceRecoveryStore
Class: TransactionalIssuanceRecoveryStore
Defined in: issuanceRecoveryPostgres.ts:177
Beta
Coordinated SDK 2 RC candidate, not approved stable. Use an already-open transaction on a pinned SQL client, never a pool. The caller owns BEGIN, timeouts, COMMIT/ROLLBACK and release, and must roll back on any adapter or publication error. Await each operation and discard this adapter when the transaction ends. Returned records are not committed until the caller commits. Compose provider policy/account locks, request, journal and publication writes on this same transaction. Do not perform network calls while holding it open.
Constructors
Constructor
new TransactionalIssuanceRecoveryStore(
db):TransactionalIssuanceRecoveryStore
Defined in: issuanceRecoveryPostgres.ts:178
Beta
Parameters
db
Returns
TransactionalIssuanceRecoveryStore
Methods
claim()
claim(
requestId):Promise<RecoveryRecord|undefined>
Defined in: issuanceRecoveryPostgres.ts:189
Beta
Parameters
requestId
string
Returns
Promise<RecoveryRecord | undefined>
get()
get(
requestId):Promise<RecoveryRecord|undefined>
Defined in: issuanceRecoveryPostgres.ts:185
Beta
Parameters
requestId
string
Returns
Promise<RecoveryRecord | undefined>
reserve()
reserve(
input):Promise<RecoveryRecord>
Defined in: issuanceRecoveryPostgres.ts:180
Beta
Parameters
input
Returns
Promise<RecoveryRecord>
transition()
transition(
requestId,token,revision,action):Promise<RecoveryRecord>
Defined in: issuanceRecoveryPostgres.ts:193
Beta
Parameters
requestId
string
token
string
revision
number
action
Returns
Promise<RecoveryRecord>