Skip to content

Commit c010e18

Browse files
[AUTOMATED] Update: proto/clients/marketplace.gen.ts
1 parent b78dadd commit c010e18

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

packages/marketplace/src/marketplace.gen.ts

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// marketplace-api 27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd
2+
// marketplace-api f8401f4c4d2b5bde6bac249e2e080894af93b73f
33
// --
44
// Code generated by webrpc-gen@v0.25.1 with typescript generator. DO NOT EDIT.
55
//
@@ -8,7 +8,7 @@
88
export const WebrpcHeader = 'Webrpc'
99

1010
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'
1212

1313
// WebRPC description and code-gen version
1414
export const WebRPCVersion = 'v1'
@@ -17,7 +17,7 @@ export const WebRPCVersion = 'v1'
1717
export const WebRPCSchemaVersion = ''
1818

1919
// Schema hash generated from your RIDL schema
20-
export const WebRPCSchemaHash = '27c5a642f4eb523c04af2f1a45e4a2ab1f370fcd'
20+
export const WebRPCSchemaHash = 'f8401f4c4d2b5bde6bac249e2e080894af93b73f'
2121

2222
type WebrpcGenVersions = {
2323
webrpcGenVersion: string
@@ -793,6 +793,7 @@ export interface Marketplace {
793793
headers?: object,
794794
signal?: AbortSignal
795795
): Promise<CheckoutOptionsSalesContractReturn>
796+
supportedMarketplaces(headers?: object, signal?: AbortSignal): Promise<SupportedMarketplacesReturn>
796797
}
797798

798799
export interface ListCurrenciesArgs {}
@@ -1130,6 +1131,11 @@ export interface CheckoutOptionsSalesContractArgs {
11301131
export interface CheckoutOptionsSalesContractReturn {
11311132
options: CheckoutOptions
11321133
}
1134+
export interface SupportedMarketplacesArgs {}
1135+
1136+
export interface SupportedMarketplacesReturn {
1137+
marketplaces: Array<MarketplaceKind>
1138+
}
11331139

11341140
//
11351141
// Client
@@ -1985,6 +1991,21 @@ export class Marketplace implements Marketplace {
19851991
}
19861992
)
19871993
}
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+
}
19882009
}
19892010

19902011
const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => {

0 commit comments

Comments
 (0)