@binance/simple-earn 11.0.1 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -5512,20 +5512,22 @@ declare class RestAPI {
5512
5512
  * Generic function to send a request.
5513
5513
  * @param endpoint - The API endpoint to call.
5514
5514
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
5515
- * @param params - Query parameters for the request.
5515
+ * @param queryParams - Query parameters for the request.
5516
+ * @param bodyParams - Body parameters for the request.
5516
5517
  *
5517
5518
  * @returns A promise resolving to the response data object.
5518
5519
  */
5519
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5520
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5520
5521
  /**
5521
5522
  * Generic function to send a signed request.
5522
5523
  * @param endpoint - The API endpoint to call.
5523
5524
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
5524
- * @param params - Query parameters for the request.
5525
+ * @param queryParams - Query parameters for the request.
5526
+ * @param bodyParams - Body parameters for the request.
5525
5527
  *
5526
5528
  * @returns A promise resolving to the response data object.
5527
5529
  */
5528
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5530
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5529
5531
  /**
5530
5532
  * Get BFUSD account information.
5531
5533
  *
package/dist/index.d.ts CHANGED
@@ -5514,20 +5514,22 @@ declare class RestAPI {
5514
5514
  * Generic function to send a request.
5515
5515
  * @param endpoint - The API endpoint to call.
5516
5516
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
5517
- * @param params - Query parameters for the request.
5517
+ * @param queryParams - Query parameters for the request.
5518
+ * @param bodyParams - Body parameters for the request.
5518
5519
  *
5519
5520
  * @returns A promise resolving to the response data object.
5520
5521
  */
5521
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5522
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5522
5523
  /**
5523
5524
  * Generic function to send a signed request.
5524
5525
  * @param endpoint - The API endpoint to call.
5525
5526
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
5526
- * @param params - Query parameters for the request.
5527
+ * @param queryParams - Query parameters for the request.
5528
+ * @param bodyParams - Body parameters for the request.
5527
5529
  *
5528
5530
  * @returns A promise resolving to the response data object.
5529
5531
  */
5530
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5532
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
5531
5533
  /**
5532
5534
  * Get BFUSD account information.
5533
5535
  *