1
1
/* eslint-disable */
2
- // marketplace-api 27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd
2
+ // marketplace-api f8401f4c4d2b5bde6bac249e2e080894af93b73f
3
3
// --
4
4
// Code generated by webrpc-gen@v0.25.1 with typescript generator. DO NOT EDIT.
5
5
//
8
8
export const WebrpcHeader = 'Webrpc'
9
9
10
10
export const WebrpcHeaderValue =
11
- 'webrpc@v0.25.1;gen-typescript@v0.17.0;marketplace-api@v0.0.0-27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd '
11
+ 'webrpc@v0.25.1;gen-typescript@v0.17.0;marketplace-api@v0.0.0-f8401f4c4d2b5bde6bac249e2e080894af93b73f '
12
12
13
13
// WebRPC description and code-gen version
14
14
export const WebRPCVersion = 'v1'
@@ -17,7 +17,7 @@ export const WebRPCVersion = 'v1'
17
17
export const WebRPCSchemaVersion = ''
18
18
19
19
// Schema hash generated from your RIDL schema
20
- export const WebRPCSchemaHash = '27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd '
20
+ export const WebRPCSchemaHash = 'f8401f4c4d2b5bde6bac249e2e080894af93b73f '
21
21
22
22
type WebrpcGenVersions = {
23
23
webrpcGenVersion : string
@@ -793,6 +793,7 @@ export interface Marketplace {
793
793
headers ?: object ,
794
794
signal ?: AbortSignal
795
795
) : Promise < CheckoutOptionsSalesContractReturn >
796
+ supportedMarketplaces ( headers ?: object , signal ?: AbortSignal ) : Promise < SupportedMarketplacesReturn >
796
797
}
797
798
798
799
export interface ListCurrenciesArgs { }
@@ -1130,6 +1131,11 @@ export interface CheckoutOptionsSalesContractArgs {
1130
1131
export interface CheckoutOptionsSalesContractReturn {
1131
1132
options : CheckoutOptions
1132
1133
}
1134
+ export interface SupportedMarketplacesArgs { }
1135
+
1136
+ export interface SupportedMarketplacesReturn {
1137
+ marketplaces : Array < MarketplaceKind >
1138
+ }
1133
1139
1134
1140
//
1135
1141
// Client
@@ -1985,6 +1991,21 @@ export class Marketplace implements Marketplace {
1985
1991
}
1986
1992
)
1987
1993
}
1994
+
1995
+ supportedMarketplaces = ( headers ?: object , signal ?: AbortSignal ) : Promise < SupportedMarketplacesReturn > => {
1996
+ return this . fetch ( this . url ( 'SupportedMarketplaces' ) , createHTTPRequest ( { } , headers , signal ) ) . then (
1997
+ res => {
1998
+ return buildResponse ( res ) . then ( _data => {
1999
+ return {
2000
+ marketplaces : < Array < MarketplaceKind > > _data . marketplaces
2001
+ }
2002
+ } )
2003
+ } ,
2004
+ error => {
2005
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
2006
+ }
2007
+ )
2008
+ }
1988
2009
}
1989
2010
1990
2011
const createHTTPRequest = ( body : object = { } , headers : object = { } , signal : AbortSignal | null = null ) : object => {
0 commit comments