@onbeam/player-api-client
Advanced tools
Comparing version 1.2.18 to 1.2.19
@@ -426,4 +426,4 @@ type ApiRequestOptions = { | ||
* @param chainId | ||
* @param entityId | ||
* @param owners If true, will return owners of the token | ||
* @param entityId If true, will always return 'owners' record for this User if he owns the asset | ||
* @param owners If true, will return all owners of the asset | ||
* @returns GetAssetResponse | ||
@@ -448,3 +448,3 @@ * @throws ApiError | ||
*/ | ||
getOwners(assetAddress: string, chainId: number, limit?: string, offset?: string): CancelablePromise<GetOwnersResponse>; | ||
getOwners(assetAddress: string, chainId: number, limit?: number, offset?: number): CancelablePromise<GetOwnersResponse>; | ||
/** | ||
@@ -935,4 +935,2 @@ * @param assetAddress | ||
}> | null; | ||
entityId: string; | ||
gameId: string; | ||
}; | ||
@@ -998,2 +996,9 @@ declare namespace ConfirmOperationRequest { | ||
createOperation(requestBody: CreateOperationRequestInput): CancelablePromise<CommonOperationResponse>; | ||
/** | ||
* Executes operation for given id | ||
* @param opId | ||
* @returns CommonOperationResponse | ||
* @throws ApiError | ||
*/ | ||
executeSignedOperation(opId: string): CancelablePromise<CommonOperationResponse>; | ||
} | ||
@@ -1110,2 +1115,39 @@ | ||
type StatsRequestInput = { | ||
attributes?: Array<{ | ||
key: string; | ||
value: string; | ||
}> | null; | ||
chainId?: number; | ||
}; | ||
type StatsResponse = { | ||
count: { | ||
tokens: number; | ||
listed: number; | ||
}; | ||
}; | ||
declare class StatsService { | ||
readonly httpRequest: BaseHttpRequest; | ||
constructor(httpRequest: BaseHttpRequest); | ||
/** | ||
* Get assets stats | ||
* @param assetAddress | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetsStats(assetAddress: string, requestBody: StatsRequestInput): CancelablePromise<StatsResponse>; | ||
/** | ||
* Get asset stats | ||
* @param assetAddress | ||
* @param assetId | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetStats(assetAddress: string, assetId: string, requestBody: StatsRequestInput): CancelablePromise<StatsResponse>; | ||
} | ||
type CreateTransactionRequestInput = { | ||
@@ -1342,2 +1384,3 @@ interactions: Array<{ | ||
readonly sessions: SessionsService; | ||
readonly stats: StatsService; | ||
readonly transactions: TransactionsService; | ||
@@ -1355,2 +1398,2 @@ readonly users: UsersService; | ||
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, type CreateConnectionRequestInput, CreateConnectionRequestResponse, CreateOperationRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetAttributesResponse, type GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, GetOwnerAssetsBodyInput, type GetOwnerAssetsResponse, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, Beam as default }; | ||
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, CommonOperationResponse, ConfirmOperationRequest, ConvertTokenRequestInput, CreateAssetOfferRequestInput, type CreateConnectionRequestInput, CreateConnectionRequestResponse, CreateOperationRequestInput, CreateTransactionRequestInput, GenerateSessionRequestResponse, type GenerateSessionUrlRequestInput, type GetActiveSessionResponse, type GetActiveSessionsResponse, type GetAllUsersResponse, type GetAssetListingsResponse, GetAssetResponse, GetAssetsForContractBodyInput, type GetAssetsForContractResponse, GetAssetsForUserBodyInput, type GetAssetsForUserResponse, type GetAttributesResponse, type GetChainCurrenciesResponse, GetConnectionRequestResponse, GetListedAssetsBodyInput, GetOwnerAssetsBodyInput, type GetOwnerAssetsResponse, type GetOwnersResponse, type GetQuoteResponse, GetSessionRequestResponse, type GetTransactionResponse, type GetTransactionsResponse, type GetUserCurrenciesResponse, type GetUserNativeCurrencyResponse, type GetUserResponse, type RefreshContractRequestBody, type RefreshTokenRequestBody, RevokeSessionRequestInput, SellAssetRequestInput, type StatsRequestInput, type StatsResponse, TransferAssetRequestInput, TransferNativeTokenRequestInput, TransferTokenRequestInput, Beam as default }; |
@@ -537,4 +537,4 @@ var __accessCheck = (obj, member, msg) => { | ||
* @param chainId | ||
* @param entityId | ||
* @param owners If true, will return owners of the token | ||
* @param entityId If true, will always return 'owners' record for this User if he owns the asset | ||
* @param owners If true, will return all owners of the asset | ||
* @returns GetAssetResponse | ||
@@ -584,3 +584,3 @@ * @throws ApiError | ||
*/ | ||
getOwners(assetAddress, chainId, limit = "10", offset = "0") { | ||
getOwners(assetAddress, chainId, limit = 10, offset = 0) { | ||
return this.httpRequest.request({ | ||
@@ -1097,2 +1097,17 @@ method: "GET", | ||
} | ||
/** | ||
* Executes operation for given id | ||
* @param opId | ||
* @returns CommonOperationResponse | ||
* @throws ApiError | ||
*/ | ||
executeSignedOperation(opId) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/player/operation/{opId}/execute", | ||
path: { | ||
"opId": opId | ||
} | ||
}); | ||
} | ||
}; | ||
@@ -1193,2 +1208,47 @@ | ||
// src/generated/services/StatsService.ts | ||
var StatsService = class { | ||
constructor(httpRequest) { | ||
this.httpRequest = httpRequest; | ||
} | ||
/** | ||
* Get assets stats | ||
* @param assetAddress | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetsStats(assetAddress, requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/player/stats/{assetAddress}", | ||
path: { | ||
"assetAddress": assetAddress | ||
}, | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
/** | ||
* Get asset stats | ||
* @param assetAddress | ||
* @param assetId | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetStats(assetAddress, assetId, requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/player/stats/{assetAddress}/assets/{assetId}", | ||
path: { | ||
"assetAddress": assetAddress, | ||
"assetId": assetId | ||
}, | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
}; | ||
// src/generated/services/TransactionsService.ts | ||
@@ -1332,2 +1392,3 @@ var TransactionsService = class { | ||
this.sessions = new SessionsService(this.request); | ||
this.stats = new StatsService(this.request); | ||
this.transactions = new TransactionsService(this.request); | ||
@@ -1334,0 +1395,0 @@ this.users = new UsersService(this.request); |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "1.2.18", | ||
"version": "1.2.19", | ||
"scripts": { | ||
@@ -29,0 +29,0 @@ "generate": "pnpm generate:client && pnpm generate:barrels && pnpm build", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
752178
20891