bb-api-platforma 0.1.178 → 0.1.180

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.
@@ -959,6 +959,15 @@ export declare class BetBoosterOfficeApi {
959
959
  status: number;
960
960
  statusText: string;
961
961
  }>;
962
+ sliderGetSectionData({ siteTag, groupTag }: {
963
+ siteTag: string;
964
+ groupTag: string;
965
+ }): Promise<{
966
+ data: I.IApiResponse<any> | null;
967
+ error: string | null;
968
+ status: number;
969
+ statusText: string;
970
+ }>;
962
971
  /**
963
972
  * Retrieves section data for a slider component based on site and group tags.
964
973
  *
@@ -380,7 +380,7 @@ export class BetBoosterOfficeApi {
380
380
  url,
381
381
  method: 'GET',
382
382
  params: { _: now },
383
- headers: Object.assign({}, (this.token ? { 'X-Token': this.token } : {})),
383
+ headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }),
384
384
  responseType: 'json',
385
385
  signal: abortController.signal,
386
386
  };
@@ -500,7 +500,7 @@ export class BetBoosterOfficeApi {
500
500
  }, this.maxTimeExecutionMs);
501
501
  const requestConfig = {
502
502
  params: this.queryStringHandler(Object.assign(Object.assign({}, queryParams), { _: now })),
503
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
503
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
504
504
  responseType: 'json',
505
505
  signal: abortController.signal,
506
506
  };
@@ -522,7 +522,7 @@ export class BetBoosterOfficeApi {
522
522
  }, this.maxTimeExecutionMs);
523
523
  const requestConfig = {
524
524
  params: this.queryStringHandler(queryParams),
525
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
525
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
526
526
  responseType: 'json',
527
527
  signal: abortController.signal,
528
528
  };
@@ -546,7 +546,7 @@ export class BetBoosterOfficeApi {
546
546
  }, this.maxTimeExecutionMs);
547
547
  const requestConfig = {
548
548
  params: this.queryStringHandler(queryParams),
549
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
549
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
550
550
  responseType: 'json',
551
551
  signal: abortController.signal,
552
552
  data: payload,
@@ -569,7 +569,7 @@ export class BetBoosterOfficeApi {
569
569
  }, this.maxTimeExecutionMs);
570
570
  const requestConfig = {
571
571
  params: this.queryStringHandler(queryParams),
572
- headers: Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), (headers !== null && headers !== void 0 ? headers : {})),
572
+ headers: Object.assign(Object.assign(Object.assign({}, (this.token ? { 'X-Token': this.token } : {})), { 'X-API-Host': this._ENDPOINT_DOMAIN }), (headers !== null && headers !== void 0 ? headers : {})),
573
573
  responseType: 'json',
574
574
  signal: abortController.signal,
575
575
  };
@@ -1885,7 +1885,7 @@ export class BetBoosterOfficeApi {
1885
1885
  async getBetContentAdm(payload) {
1886
1886
  payload.culture = this.locale;
1887
1887
  const url = this.url(`/account/GetBet`, api.V2);
1888
- const { data, status, statusText } = await this.request(url).query(payload).exec();
1888
+ const { data, status, statusText } = await this.request(url).GET().query(payload).exec();
1889
1889
  // console.log('deleteCoupon data:', data , status , statusText);
1890
1890
  return this.responseHandlerData(data, status, statusText);
1891
1891
  }
@@ -1904,6 +1904,12 @@ export class BetBoosterOfficeApi {
1904
1904
  // console.log('deleteCoupon data:', data , status , statusText);
1905
1905
  return this.responseHandlerData(data, status, statusText);
1906
1906
  }
1907
+ async sliderGetSectionData({ siteTag, groupTag }) {
1908
+ const url = this.url(`/section/${siteTag}/${groupTag}`, api.NV30);
1909
+ const { data, status, statusText } = await this.request(url).GET().exec();
1910
+ // console.log('deleteCoupon data:', data , status , statusText);
1911
+ return this.responseHandlerData(data, status, statusText);
1912
+ }
1907
1913
  /**
1908
1914
  * Retrieves section data for a slider component based on site and group tags.
1909
1915
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bb-api-platforma",
3
- "version": "0.1.178",
3
+ "version": "0.1.180",
4
4
  "description": "API module for BetBooster Platform",
5
5
  "productName": "BetBooster Platform API",
6
6
  "author": "Tomy Bet <tomybet.com@gmail.com>",