Skip to content

Commit

Permalink
fix: implemented missing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonSiler committed Nov 19, 2024
1 parent 6bb640f commit 2c61a79
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/aux-records/XpController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { XpAccount, XpStore, XpUser } from './XpStore';
import { XpAccount, XpContract, XpInvoice, XpStore, XpUser } from './XpStore';
import { AuthController } from './AuthController';
import { AuthStore, AuthUser } from './AuthStore';
import { v4 as uuid } from 'uuid';
Expand Down Expand Up @@ -131,6 +131,7 @@ export class XpController {
}
);
}
}
export interface GetXpUserById {
/** The auth Id of the xp user to get (mutually exclusive with xpId) */
userId?: AuthUser['id'];
Expand All @@ -152,9 +153,24 @@ export type CreateXpUserResult =
export type GetXpUserResultSuccess = SuccessResult<true, { user: XpUser }>;
export type GetXpUserResultFailure = FailedResult;
export type GetXpUserResult = GetXpUserResultSuccess | GetXpUserResultFailure;

export type CreateContractResultSuccess = SuccessResult<
true,
{
errorCode: KnownErrorCodes;
errorMessage: string;
contract: XpContract;
account: XpAccount;
}
>;
export type GetXpUserResult = GetXpUserResultSuccess | GetXpUserResultFailure;
export type CreateContractResultFailure = FailedResult;
export type CreateContractResult =
| CreateContractResultSuccess
| CreateContractResultFailure;

export type GetContractResultSuccess = SuccessResult<
true,
{ contract: XpContract }
>;
export type GetContractResultFailure = FailedResult;
export type GetContractResult =
| GetContractResultSuccess
| GetContractResultFailure;

0 comments on commit 2c61a79

Please sign in to comment.