bb-api-platforma 0.1.180 → 0.1.181
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.
|
@@ -1010,9 +1010,7 @@ export declare class BetBoosterOfficeApi {
|
|
|
1010
1010
|
* @param payload.siteTag - Site identifier tag for the slide
|
|
1011
1011
|
* @param payload.groupTag - Group identifier tag for categorizing the slide
|
|
1012
1012
|
* @param payload.fileName - File name for the slide image/content. Optional, uses default if not provided
|
|
1013
|
-
* @param payload.
|
|
1014
|
-
* @param payload.finish - Optional end date when the slide should stop displaying (ISO string format)
|
|
1015
|
-
* @param payload.to - Optional target page transition object in Vue Router format for slide click navigation
|
|
1013
|
+
* @param payload.direction - Sets the movement of a slide in the list. Can be 'up', 'down', '1', or '-1'
|
|
1016
1014
|
* @returns Promise resolving to API response with slide operation result
|
|
1017
1015
|
* @throws Will throw an error if the API request fails or returns an error status
|
|
1018
1016
|
*/
|
|
@@ -1040,4 +1038,39 @@ export declare class BetBoosterOfficeApi {
|
|
|
1040
1038
|
status: number;
|
|
1041
1039
|
statusText: string;
|
|
1042
1040
|
}>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Updates or creates a slider slide configuration.
|
|
1043
|
+
*
|
|
1044
|
+
* @param payload - The slider slide configuration data
|
|
1045
|
+
* @param payload.siteTag - Site identifier tag
|
|
1046
|
+
* @param payload.groupTag - Group identifier tag
|
|
1047
|
+
* @param payload.fileName - File name for the slide. Optional. If not present, the default value will be used.
|
|
1048
|
+
* @param payload.eventId - ID of the sport event. If eventId is specified, additional parameters will be added: Teams Start date and main bets
|
|
1049
|
+
* @param payload.finish - The date when the slide will stop displaying
|
|
1050
|
+
* @param payload.to - Target page transition when clicking on a slide in vue router format
|
|
1051
|
+
* @param payload.direction - Sets the movement of a slide in the list. Can be 'up', 'down', '1', or '-1'
|
|
1052
|
+
* @returns Promise that resolves to the API response containing the slide data or null
|
|
1053
|
+
*/
|
|
1054
|
+
sliderSetSlide(payload: I.TSliderSetSlidePayload): Promise<{
|
|
1055
|
+
data: I.IApiResponse<any> | null;
|
|
1056
|
+
error: string | null;
|
|
1057
|
+
status: number;
|
|
1058
|
+
statusText: string;
|
|
1059
|
+
}>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Removes a slide from the slider.
|
|
1062
|
+
*
|
|
1063
|
+
* @param payload - The payload containing slide information to remove
|
|
1064
|
+
* @param payload.siteTag - Site tag identifier
|
|
1065
|
+
* @param payload.groupTag - Group tag identifier
|
|
1066
|
+
* @param payload.fileName - File name of the slide to remove
|
|
1067
|
+
* @returns Promise that resolves to API response data or null
|
|
1068
|
+
* @throws Will throw an error if the request fails
|
|
1069
|
+
*/
|
|
1070
|
+
sliderRemoveSlide(payload: I.TSliderSetSlidePayload): Promise<{
|
|
1071
|
+
data: I.IApiResponse<any> | null;
|
|
1072
|
+
error: string | null;
|
|
1073
|
+
status: number;
|
|
1074
|
+
statusText: string;
|
|
1075
|
+
}>;
|
|
1043
1076
|
}
|
|
@@ -1950,9 +1950,7 @@ export class BetBoosterOfficeApi {
|
|
|
1950
1950
|
* @param payload.siteTag - Site identifier tag for the slide
|
|
1951
1951
|
* @param payload.groupTag - Group identifier tag for categorizing the slide
|
|
1952
1952
|
* @param payload.fileName - File name for the slide image/content. Optional, uses default if not provided
|
|
1953
|
-
* @param payload.
|
|
1954
|
-
* @param payload.finish - Optional end date when the slide should stop displaying (ISO string format)
|
|
1955
|
-
* @param payload.to - Optional target page transition object in Vue Router format for slide click navigation
|
|
1953
|
+
* @param payload.direction - Sets the movement of a slide in the list. Can be 'up', 'down', '1', or '-1'
|
|
1956
1954
|
* @returns Promise resolving to API response with slide operation result
|
|
1957
1955
|
* @throws Will throw an error if the API request fails or returns an error status
|
|
1958
1956
|
*/
|
|
@@ -1988,5 +1986,38 @@ export class BetBoosterOfficeApi {
|
|
|
1988
1986
|
rawData.size = payload.LIMIT.size;
|
|
1989
1987
|
return this.responseHandlerData(rawData, status, statusText);
|
|
1990
1988
|
}
|
|
1989
|
+
/**
|
|
1990
|
+
* Updates or creates a slider slide configuration.
|
|
1991
|
+
*
|
|
1992
|
+
* @param payload - The slider slide configuration data
|
|
1993
|
+
* @param payload.siteTag - Site identifier tag
|
|
1994
|
+
* @param payload.groupTag - Group identifier tag
|
|
1995
|
+
* @param payload.fileName - File name for the slide. Optional. If not present, the default value will be used.
|
|
1996
|
+
* @param payload.eventId - ID of the sport event. If eventId is specified, additional parameters will be added: Teams Start date and main bets
|
|
1997
|
+
* @param payload.finish - The date when the slide will stop displaying
|
|
1998
|
+
* @param payload.to - Target page transition when clicking on a slide in vue router format
|
|
1999
|
+
* @param payload.direction - Sets the movement of a slide in the list. Can be 'up', 'down', '1', or '-1'
|
|
2000
|
+
* @returns Promise that resolves to the API response containing the slide data or null
|
|
2001
|
+
*/
|
|
2002
|
+
async sliderSetSlide(payload) {
|
|
2003
|
+
const url = this.url(`/slide`, api.NV30);
|
|
2004
|
+
const { data, status, statusText } = await this.request(url).PUT(payload).exec();
|
|
2005
|
+
return this.responseHandlerData(data, status, statusText);
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* Removes a slide from the slider.
|
|
2009
|
+
*
|
|
2010
|
+
* @param payload - The payload containing slide information to remove
|
|
2011
|
+
* @param payload.siteTag - Site tag identifier
|
|
2012
|
+
* @param payload.groupTag - Group tag identifier
|
|
2013
|
+
* @param payload.fileName - File name of the slide to remove
|
|
2014
|
+
* @returns Promise that resolves to API response data or null
|
|
2015
|
+
* @throws Will throw an error if the request fails
|
|
2016
|
+
*/
|
|
2017
|
+
async sliderRemoveSlide(payload) {
|
|
2018
|
+
const url = this.url(`/slide`, api.NV30);
|
|
2019
|
+
const { data, status, statusText } = await this.request(url).DELETE(payload).exec();
|
|
2020
|
+
return this.responseHandlerData(data, status, statusText);
|
|
2021
|
+
}
|
|
1991
2022
|
}
|
|
1992
2023
|
// @workspace /doc в комментарии приведи полный пример payload из I.IConfirmWithdrawalOrderPayload
|