Skip to content

Commit 1e43a56

Browse files
nachopirisSamueleA
authored andcommitted
[AUTOMATED] Update: api/proto/clients/api.gen.ts
1 parent be179ff commit 1e43a56

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

packages/api/src/api.gen.ts

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,15 @@ export interface UpdatePackContentArgs {
16211621
export interface UpdatePackContentReturn {
16221622
merkleRoot: string
16231623
}
1624+
export interface GetRevealTxDataArgs {
1625+
contractAddress: string
1626+
chainId: number
1627+
userAddress: string
1628+
}
1629+
1630+
export interface GetRevealTxDataReturn {
1631+
txData: string
1632+
}
16241633
export interface CheckoutOptionsPrimaryArgs {
16251634
chainId: number
16261635
wallet: string
@@ -3033,19 +3042,24 @@ export class API implements API {
30333042
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
30343043
})
30353044
}
3036-
3037-
checkoutOptionsSecondary = (args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn> => {
3038-
return this.fetch(
3039-
this.url('CheckoutOptionsSecondary'),
3040-
createHTTPRequest(args, headers, signal)).then((res) => {
3041-
return buildResponse(res).then(_data => {
3042-
return {
3043-
options: <CheckoutOptions>(_data.options),
3044-
}
3045-
})
3046-
}, (error) => {
3047-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
3048-
})
3045+
3046+
checkoutOptionsPrimary = (
3047+
args: CheckoutOptionsPrimaryArgs,
3048+
headers?: object,
3049+
signal?: AbortSignal
3050+
): Promise<CheckoutOptionsPrimaryReturn> => {
3051+
return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(
3052+
res => {
3053+
return buildResponse(res).then(_data => {
3054+
return {
3055+
options: <CheckoutOptions>_data.options
3056+
}
3057+
})
3058+
},
3059+
error => {
3060+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
3061+
}
3062+
)
30493063
}
30503064

30513065
checkoutOptionsSecondary = (

0 commit comments

Comments
 (0)