@onbeam/player-api-client
Advanced tools
Comparing version 1.2.19 to 1.2.20
@@ -52,2 +52,61 @@ type ApiRequestOptions = { | ||
type CommonActivityRequestInput = { | ||
limit?: number; | ||
types?: Array<'ask' | 'ask_cancel' | 'bid' | 'bid_cancel' | 'sale' | 'mint' | 'transfer'> | null; | ||
chainId?: number; | ||
}; | ||
type CommonActivityResponse = { | ||
data: Array<{ | ||
createdAt?: string | null; | ||
contract: { | ||
address?: string | null; | ||
}; | ||
transaction: { | ||
timestamp?: number | null; | ||
from?: string | null; | ||
to?: string | null; | ||
hash?: string | null; | ||
}; | ||
asset: { | ||
id?: string | null; | ||
}; | ||
order?: { | ||
id?: string | null; | ||
} | null; | ||
type?: 'ask' | 'ask_cancel' | 'bid' | 'bid_cancel' | 'sale' | 'mint' | 'transfer' | null; | ||
}>; | ||
continuation?: string | null; | ||
}; | ||
declare class ActivityService { | ||
readonly httpRequest: BaseHttpRequest; | ||
constructor(httpRequest: BaseHttpRequest); | ||
/** | ||
* Get user activity | ||
* @param entityId | ||
* @param requestBody | ||
* @returns CommonActivityResponse | ||
* @throws ApiError | ||
*/ | ||
getUserActivity(entityId: string, requestBody: CommonActivityRequestInput): CancelablePromise<CommonActivityResponse>; | ||
/** | ||
* Get contract activity | ||
* @param assetAddress | ||
* @param requestBody | ||
* @returns CommonActivityResponse | ||
* @throws ApiError | ||
*/ | ||
getContractActivity(assetAddress: string, requestBody: CommonActivityRequestInput): CancelablePromise<CommonActivityResponse>; | ||
/** | ||
* Get asset activity | ||
* @param assetAddress | ||
* @param assetId | ||
* @param requestBody | ||
* @returns CommonActivityResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetActivity(assetAddress: string, assetId: string, requestBody: CommonActivityRequestInput): CancelablePromise<CommonActivityResponse>; | ||
} | ||
type CommonOperationResponse = { | ||
@@ -1112,3 +1171,3 @@ status: CommonOperationResponse.status; | ||
type StatsRequestInput = { | ||
type CommonStatsRequestInput = { | ||
attributes?: Array<{ | ||
@@ -1121,3 +1180,3 @@ key: string; | ||
type StatsResponse = { | ||
type CommonStatsResponse = { | ||
count: { | ||
@@ -1133,9 +1192,9 @@ tokens: number; | ||
/** | ||
* Get assets stats | ||
* Get contract stats | ||
* @param assetAddress | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @returns CommonStatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetsStats(assetAddress: string, requestBody: StatsRequestInput): CancelablePromise<StatsResponse>; | ||
getContractStats(assetAddress: string, requestBody: CommonStatsRequestInput): CancelablePromise<CommonStatsResponse>; | ||
/** | ||
@@ -1146,6 +1205,6 @@ * Get asset stats | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @returns CommonStatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetStats(assetAddress: string, assetId: string, requestBody: StatsRequestInput): CancelablePromise<StatsResponse>; | ||
getAssetStats(assetAddress: string, assetId: string, requestBody: CommonStatsRequestInput): CancelablePromise<CommonStatsResponse>; | ||
} | ||
@@ -1377,2 +1436,3 @@ | ||
declare class ApiClient { | ||
readonly activity: ActivityService; | ||
readonly assets: AssetsService; | ||
@@ -1398,2 +1458,2 @@ readonly connector: ConnectorService; | ||
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 }; | ||
export { AcceptAssetOfferRequestInput, Beam, BuyAssetRequestInput, CancelAssetListingRequestInput, CancelAssetOfferRequestInput, type CommonActivityRequestInput, type CommonActivityResponse, CommonOperationResponse, type CommonStatsRequestInput, type CommonStatsResponse, 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 }; |
@@ -399,2 +399,65 @@ var __accessCheck = (obj, member, msg) => { | ||
// src/generated/services/ActivityService.ts | ||
var ActivityService = class { | ||
constructor(httpRequest) { | ||
this.httpRequest = httpRequest; | ||
} | ||
/** | ||
* Get user activity | ||
* @param entityId | ||
* @param requestBody | ||
* @returns CommonActivityResponse | ||
* @throws ApiError | ||
*/ | ||
getUserActivity(entityId, requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/player/activity/users/{entityId}", | ||
path: { | ||
"entityId": entityId | ||
}, | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
/** | ||
* Get contract activity | ||
* @param assetAddress | ||
* @param requestBody | ||
* @returns CommonActivityResponse | ||
* @throws ApiError | ||
*/ | ||
getContractActivity(assetAddress, requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/player/activity/assets/{assetAddress}", | ||
path: { | ||
"assetAddress": assetAddress | ||
}, | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
/** | ||
* Get asset activity | ||
* @param assetAddress | ||
* @param assetId | ||
* @param requestBody | ||
* @returns CommonActivityResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetActivity(assetAddress, assetId, requestBody) { | ||
return this.httpRequest.request({ | ||
method: "POST", | ||
url: "/v1/player/activity/assets/{assetAddress}/asset/{assetId}", | ||
path: { | ||
"assetAddress": assetAddress, | ||
"assetId": assetId | ||
}, | ||
body: requestBody, | ||
mediaType: "application/json" | ||
}); | ||
} | ||
}; | ||
// src/generated/services/AssetsService.ts | ||
@@ -1212,9 +1275,9 @@ var AssetsService = class { | ||
/** | ||
* Get assets stats | ||
* Get contract stats | ||
* @param assetAddress | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @returns CommonStatsResponse | ||
* @throws ApiError | ||
*/ | ||
getAssetsStats(assetAddress, requestBody) { | ||
getContractStats(assetAddress, requestBody) { | ||
return this.httpRequest.request({ | ||
@@ -1235,3 +1298,3 @@ method: "POST", | ||
* @param requestBody | ||
* @returns StatsResponse | ||
* @returns CommonStatsResponse | ||
* @throws ApiError | ||
@@ -1384,2 +1447,3 @@ */ | ||
}); | ||
this.activity = new ActivityService(this.request); | ||
this.assets = new AssetsService(this.request); | ||
@@ -1386,0 +1450,0 @@ this.connector = new ConnectorService(this.request); |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "1.2.19", | ||
"version": "1.2.20", | ||
"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
761030
21138
2