Skip to content

Commit

Permalink
ID-1986 feat: make linkWallet method accessible (#1984)
Browse files Browse the repository at this point in the history
Co-authored-by: Dom Murray <[email protected]>
  • Loading branch information
aerim-yi and dom-murray authored Jul 24, 2024
1 parent c2b6ca0 commit edefb74
Show file tree
Hide file tree
Showing 57 changed files with 2,023 additions and 71 deletions.
570 changes: 543 additions & 27 deletions packages/internal/generated-clients/src/mr-openapi.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ models/get-transaction-metadata-request.ts
models/get-transaction-metadata-res.ts
models/get-typed-data-metadata-request.ts
models/get-typed-data-metadata-res.ts
models/immutable-verification-status-enum.ts
models/inactive-order-status.ts
models/index.ts
models/item.ts
models/link-wallet-v2-request.ts
models/list-activities-result.ts
models/list-chains-result.ts
models/list-collection-owners-result.ts
Expand Down Expand Up @@ -132,9 +134,18 @@ models/nftsale.ts
models/nftset-approval-for-all-metadata.ts
models/nftwith-balance.ts
models/nftwith-owner.ts
models/operator-allowlist-admin-action.ts
models/operator-allowlist-contract-status-internal-all-of.ts
models/operator-allowlist-contract-status-internal.ts
models/operator-allowlist-contract-status.ts
models/operator-allowlist-status-details.ts
models/operator-allowlist-status-requested.ts
models/operator-allowlist-status-updated.ts
models/operator-allowlist-status.ts
models/order-status-name.ts
models/order-status.ts
models/order.ts
models/organisation-tier.ts
models/page-response.ts
models/page.ts
models/pending-order-status.ts
Expand All @@ -152,15 +163,19 @@ models/sale-fee.ts
models/sale-payment-token.ts
models/sale-payment.ts
models/seaport-advanced-order-buy.ts
models/seaport-advanced-order-sell.ts
models/seaport-advanced-order.ts
models/seaport-create-listing-metadata-buy.ts
models/seaport-create-listing-metadata-sell.ts
models/seaport-create-listing-metadata.ts
models/seaport-erc1155-item.ts
models/seaport-erc20-item.ts
models/seaport-erc721-item.ts
models/seaport-fee.ts
models/seaport-fulfill-available-advanced-orders-metadata.ts
models/seaport-native-item.ts
models/token-contract-type.ts
models/token-type.ts
models/token.ts
models/trade-blockchain-metadata.ts
models/trade-result.ts
Expand All @@ -171,6 +186,9 @@ models/unknown-metadata.ts
models/unknown-typed-data-metadata.ts
models/user-info.ts
models/verification-request-contract-type.ts
models/verification-request-internal-all-of.ts
models/verification-request-internal.ts
models/verification-request-status.ts
models/verification-request.ts
models/wallet.ts
models/withdrawal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,14 @@ export const NftsApiAxiosParamCreator = function (configuration?: Configuration)
* @param {string} accountAddress Account address
* @param {string} chainName The name of chain
* @param {string} [contractAddress] The address of contract
* @param {Array<string>} [tokenId] List of token IDs to filter by
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
* @param {number} [pageSize] Maximum number of items to return
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listNFTsByAccountAddress: async (accountAddress: string, chainName: string, contractAddress?: string, fromUpdatedAt?: string, pageCursor?: string, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
listNFTsByAccountAddress: async (accountAddress: string, chainName: string, contractAddress?: string, tokenId?: Array<string>, fromUpdatedAt?: string, pageCursor?: string, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'accountAddress' is not null or undefined
assertParamExists('listNFTsByAccountAddress', 'accountAddress', accountAddress)
// verify required parameter 'chainName' is not null or undefined
Expand All @@ -391,6 +392,10 @@ export const NftsApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter['contract_address'] = contractAddress;
}

if (tokenId) {
localVarQueryParameter['token_id'] = tokenId;
}

if (fromUpdatedAt !== undefined) {
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt as any instanceof Date) ?
(fromUpdatedAt as any).toISOString() :
Expand Down Expand Up @@ -516,14 +521,15 @@ export const NftsApiFp = function(configuration?: Configuration) {
* @param {string} accountAddress Account address
* @param {string} chainName The name of chain
* @param {string} [contractAddress] The address of contract
* @param {Array<string>} [tokenId] List of token IDs to filter by
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
* @param {number} [pageSize] Maximum number of items to return
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listNFTsByAccountAddress(accountAddress: string, chainName: string, contractAddress?: string, fromUpdatedAt?: string, pageCursor?: string, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNFTsByOwnerResult>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
async listNFTsByAccountAddress(accountAddress: string, chainName: string, contractAddress?: string, tokenId?: Array<string>, fromUpdatedAt?: string, pageCursor?: string, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNFTsByOwnerResult>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
Expand Down Expand Up @@ -604,7 +610,7 @@ export const NftsApiFactory = function (configuration?: Configuration, basePath?
* @throws {RequiredError}
*/
listNFTsByAccountAddress(requestParameters: NftsApiListNFTsByAccountAddressRequest, options?: AxiosRequestConfig): AxiosPromise<ListNFTsByOwnerResult> {
return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
};
};
Expand Down Expand Up @@ -846,6 +852,13 @@ export interface NftsApiListNFTsByAccountAddressRequest {
*/
readonly contractAddress?: string

/**
* List of token IDs to filter by
* @type {Array<string>}
* @memberof NftsApiListNFTsByAccountAddress
*/
readonly tokenId?: Array<string>

/**
* Datetime to use as the oldest updated timestamp
* @type {string}
Expand Down Expand Up @@ -956,7 +969,7 @@ export class NftsApi extends BaseAPI {
* @memberof NftsApi
*/
public listNFTsByAccountAddress(requestParameters: NftsApiListNFTsByAccountAddressRequest, options?: AxiosRequestConfig) {
return NftsApiFp(this.configuration).listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
return NftsApiFp(this.configuration).listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
* @param {string} [fromUpdatedAt] From updated at including given date
* @param {number} [pageSize] Maximum number of orders to return per page
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by. &#x60;buy_item_amount&#x60; sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for &#x60;buy_item_amount&#x60;.
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
* @param {*} [options] Override http request option.
Expand Down Expand Up @@ -356,6 +356,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
* @summary List all trades
* @param {string} chainName
* @param {string} [accountAddress]
* @param {string} [sellItemContractAddress]
* @param {string} [fromIndexedAt] From indexed at including given date
* @param {number} [pageSize] Maximum number of trades to return per page
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
Expand All @@ -364,7 +365,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listTrades: async (chainName: string, accountAddress?: string, fromIndexedAt?: string, pageSize?: number, sortBy?: ListTradesSortByEnum, sortDirection?: ListTradesSortDirectionEnum, pageCursor?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
listTrades: async (chainName: string, accountAddress?: string, sellItemContractAddress?: string, fromIndexedAt?: string, pageSize?: number, sortBy?: ListTradesSortByEnum, sortDirection?: ListTradesSortDirectionEnum, pageCursor?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'chainName' is not null or undefined
assertParamExists('listTrades', 'chainName', chainName)
const localVarPath = `/v1/chains/{chain_name}/trades`
Expand All @@ -384,6 +385,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
localVarQueryParameter['account_address'] = accountAddress;
}

if (sellItemContractAddress !== undefined) {
localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
}

if (fromIndexedAt !== undefined) {
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt as any instanceof Date) ?
(fromIndexedAt as any).toISOString() :
Expand Down Expand Up @@ -500,7 +505,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
* @param {string} [fromUpdatedAt] From updated at including given date
* @param {number} [pageSize] Maximum number of orders to return per page
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by. &#x60;buy_item_amount&#x60; sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for &#x60;buy_item_amount&#x60;.
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
* @param {*} [options] Override http request option.
Expand All @@ -515,6 +520,7 @@ export const OrdersApiFp = function(configuration?: Configuration) {
* @summary List all trades
* @param {string} chainName
* @param {string} [accountAddress]
* @param {string} [sellItemContractAddress]
* @param {string} [fromIndexedAt] From indexed at including given date
* @param {number} [pageSize] Maximum number of trades to return per page
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
Expand All @@ -523,8 +529,8 @@ export const OrdersApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listTrades(chainName: string, accountAddress?: string, fromIndexedAt?: string, pageSize?: number, sortBy?: ListTradesSortByEnum, sortDirection?: ListTradesSortDirectionEnum, pageCursor?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTradeResult>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
async listTrades(chainName: string, accountAddress?: string, sellItemContractAddress?: string, fromIndexedAt?: string, pageSize?: number, sortBy?: ListTradesSortByEnum, sortDirection?: ListTradesSortDirectionEnum, pageCursor?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTradeResult>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
Expand Down Expand Up @@ -605,7 +611,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
* @throws {RequiredError}
*/
listTrades(requestParameters: OrdersApiListTradesRequest, options?: AxiosRequestConfig): AxiosPromise<ListTradeResult> {
return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.sellItemContractAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
},
};
};
Expand Down Expand Up @@ -792,7 +798,7 @@ export interface OrdersApiListListingsRequest {
readonly pageSize?: number

/**
* Order field to sort by
* Order field to sort by. &#x60;buy_item_amount&#x60; sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for &#x60;buy_item_amount&#x60;.
* @type {'created_at' | 'updated_at' | 'buy_item_amount'}
* @memberof OrdersApiListListings
*/
Expand Down Expand Up @@ -833,6 +839,13 @@ export interface OrdersApiListTradesRequest {
*/
readonly accountAddress?: string

/**
*
* @type {string}
* @memberof OrdersApiListTrades
*/
readonly sellItemContractAddress?: string

/**
* From indexed at including given date
* @type {string}
Expand Down Expand Up @@ -957,7 +970,7 @@ export class OrdersApi extends BaseAPI {
* @memberof OrdersApi
*/
public listTrades(requestParameters: OrdersApiListTradesRequest, options?: AxiosRequestConfig) {
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.sellItemContractAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
}
}

Expand Down
Loading

0 comments on commit edefb74

Please sign in to comment.