11/* eslint-disable */
2- // marketplace-api bcf6441b3d44246f3254b6277949416b79f9cef7
2+ // marketplace-api 0391bc2ece6d83092773039f15d1ea60ebfc32bf
33// --
44// Code generated by [email protected] with typescript generator. DO NOT EDIT. 55//
88export const WebrpcHeader = 'Webrpc'
99
1010export const WebrpcHeaderValue =
11- 11+ 1212
1313// WebRPC description and code-gen version
1414export const WebRPCVersion = 'v1'
@@ -17,7 +17,7 @@ export const WebRPCVersion = 'v1'
1717export const WebRPCSchemaVersion = ''
1818
1919// Schema hash generated from your RIDL schema
20- export const WebRPCSchemaHash = 'bcf6441b3d44246f3254b6277949416b79f9cef7 '
20+ export const WebRPCSchemaHash = '0391bc2ece6d83092773039f15d1ea60ebfc32bf '
2121
2222type WebrpcGenVersions = {
2323 webrpcGenVersion : string
@@ -359,6 +359,19 @@ export interface CollectiblesFilter {
359359 prices ?: Array < PriceFilter >
360360}
361361
362+ export interface OrdersFilter {
363+ searchText ?: string
364+ properties ?: Array < PropertyFilter >
365+ marketplaces ?: Array < MarketplaceKind >
366+ inAccounts ?: Array < string >
367+ notInAccounts ?: Array < string >
368+ ordersCreatedBy ?: Array < string >
369+ ordersNotCreatedBy ?: Array < string >
370+ inCurrencyAddresses ?: Array < string >
371+ notInCurrencyAddresses ?: Array < string >
372+ prices ?: Array < PriceFilter >
373+ }
374+
362375export interface PriceFilter {
363376 contractAddress : string
364377 min ?: string
@@ -831,6 +844,17 @@ export interface Marketplace {
831844 headers ?: object ,
832845 signal ?: AbortSignal
833846 ) : Promise < ListOffersForCollectibleReturn >
847+ listOrdersWithCollectibles (
848+ args : ListOrdersWithCollectiblesArgs ,
849+ headers ?: object ,
850+ signal ?: AbortSignal
851+ ) : Promise < ListOrdersWithCollectiblesReturn >
852+ getCountOfAllOrders ( args : GetCountOfAllOrdersArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetCountOfAllOrdersReturn >
853+ getCountOfFilteredOrders (
854+ args : GetCountOfFilteredOrdersArgs ,
855+ headers ?: object ,
856+ signal ?: AbortSignal
857+ ) : Promise < GetCountOfFilteredOrdersReturn >
834858 listListings ( args : ListListingsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListListingsReturn >
835859 listOffers ( args : ListOffersArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListOffersReturn >
836860 getCountOfListingsForCollectible (
@@ -1077,6 +1101,37 @@ export interface ListOffersForCollectibleReturn {
10771101 offers : Array < Order >
10781102 page ?: Page
10791103}
1104+ export interface ListOrdersWithCollectiblesArgs {
1105+ chainId : string
1106+ side : OrderSide
1107+ contractAddress : string
1108+ filter ?: OrdersFilter
1109+ page ?: Page
1110+ }
1111+
1112+ export interface ListOrdersWithCollectiblesReturn {
1113+ collectibles : Array < CollectibleOrder >
1114+ page ?: Page
1115+ }
1116+ export interface GetCountOfAllOrdersArgs {
1117+ chainId : string
1118+ side : OrderSide
1119+ contractAddress : string
1120+ }
1121+
1122+ export interface GetCountOfAllOrdersReturn {
1123+ count : number
1124+ }
1125+ export interface GetCountOfFilteredOrdersArgs {
1126+ chainId : string
1127+ side : OrderSide
1128+ contractAddress : string
1129+ filter ?: OrdersFilter
1130+ }
1131+
1132+ export interface GetCountOfFilteredOrdersReturn {
1133+ count : number
1134+ }
10801135export interface ListListingsArgs {
10811136 chainId : string
10821137 contractAddress : string
@@ -1833,6 +1888,64 @@ export class Marketplace implements Marketplace {
18331888 )
18341889 }
18351890
1891+ listOrdersWithCollectibles = (
1892+ args : ListOrdersWithCollectiblesArgs ,
1893+ headers ?: object ,
1894+ signal ?: AbortSignal
1895+ ) : Promise < ListOrdersWithCollectiblesReturn > => {
1896+ return this . fetch ( this . url ( 'ListOrdersWithCollectibles' ) , createHTTPRequest ( args , headers , signal ) ) . then (
1897+ res => {
1898+ return buildResponse ( res ) . then ( _data => {
1899+ return {
1900+ collectibles : < Array < CollectibleOrder > > _data . collectibles ,
1901+ page : < Page > _data . page
1902+ }
1903+ } )
1904+ } ,
1905+ error => {
1906+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
1907+ }
1908+ )
1909+ }
1910+
1911+ getCountOfAllOrders = (
1912+ args : GetCountOfAllOrdersArgs ,
1913+ headers ?: object ,
1914+ signal ?: AbortSignal
1915+ ) : Promise < GetCountOfAllOrdersReturn > => {
1916+ return this . fetch ( this . url ( 'GetCountOfAllOrders' ) , createHTTPRequest ( args , headers , signal ) ) . then (
1917+ res => {
1918+ return buildResponse ( res ) . then ( _data => {
1919+ return {
1920+ count : < number > _data . count
1921+ }
1922+ } )
1923+ } ,
1924+ error => {
1925+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
1926+ }
1927+ )
1928+ }
1929+
1930+ getCountOfFilteredOrders = (
1931+ args : GetCountOfFilteredOrdersArgs ,
1932+ headers ?: object ,
1933+ signal ?: AbortSignal
1934+ ) : Promise < GetCountOfFilteredOrdersReturn > => {
1935+ return this . fetch ( this . url ( 'GetCountOfFilteredOrders' ) , createHTTPRequest ( args , headers , signal ) ) . then (
1936+ res => {
1937+ return buildResponse ( res ) . then ( _data => {
1938+ return {
1939+ count : < number > _data . count
1940+ }
1941+ } )
1942+ } ,
1943+ error => {
1944+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
1945+ }
1946+ )
1947+ }
1948+
18361949 listListings = ( args : ListListingsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListListingsReturn > => {
18371950 return this . fetch ( this . url ( 'ListListings' ) , createHTTPRequest ( args , headers , signal ) ) . then (
18381951 res => {
0 commit comments