@gambulls-org/gambulls-apis 3.0.335 → 3.0.337

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.
@@ -417,6 +417,85 @@ class PublicGamesApi extends runtime.BaseAPI {
417
417
  return yield response.value();
418
418
  });
419
419
  }
420
+ /**
421
+ * Games Get by Slug (preview)
422
+ */
423
+ apiPublicPreviewGamesSlugGetRaw(requestParameters, initOverrides) {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ if (requestParameters['slug'] == null) {
426
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiPublicPreviewGamesSlugGet().');
427
+ }
428
+ const queryParameters = {};
429
+ if (requestParameters['slug'] != null) {
430
+ queryParameters['slug'] = requestParameters['slug'];
431
+ }
432
+ const headerParameters = {};
433
+ if (this.configuration && this.configuration.apiKey) {
434
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
435
+ }
436
+ if (this.configuration && this.configuration.accessToken) {
437
+ const token = this.configuration.accessToken;
438
+ const tokenString = yield token("BearerAuth", []);
439
+ if (tokenString) {
440
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
441
+ }
442
+ }
443
+ const response = yield this.request({
444
+ path: `/api/public/preview/games/slug`,
445
+ method: 'GET',
446
+ headers: headerParameters,
447
+ query: queryParameters,
448
+ }, initOverrides);
449
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicGamesSlugGet200ResponseFromJSON)(jsonValue));
450
+ });
451
+ }
452
+ /**
453
+ * Games Get by Slug (preview)
454
+ */
455
+ apiPublicPreviewGamesSlugGet(requestParameters, initOverrides) {
456
+ return __awaiter(this, void 0, void 0, function* () {
457
+ const response = yield this.apiPublicPreviewGamesSlugGetRaw(requestParameters, initOverrides);
458
+ return yield response.value();
459
+ });
460
+ }
461
+ /**
462
+ * Games Get All Static (preview)
463
+ */
464
+ apiPublicPreviewGamesStaticGetRaw(requestParameters, initOverrides) {
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ const queryParameters = {};
467
+ if (requestParameters['etag'] != null) {
468
+ queryParameters['etag'] = requestParameters['etag'];
469
+ }
470
+ const headerParameters = {};
471
+ if (this.configuration && this.configuration.apiKey) {
472
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
473
+ }
474
+ if (this.configuration && this.configuration.accessToken) {
475
+ const token = this.configuration.accessToken;
476
+ const tokenString = yield token("BearerAuth", []);
477
+ if (tokenString) {
478
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
479
+ }
480
+ }
481
+ const response = yield this.request({
482
+ path: `/api/public/preview/games/static`,
483
+ method: 'GET',
484
+ headers: headerParameters,
485
+ query: queryParameters,
486
+ }, initOverrides);
487
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
488
+ });
489
+ }
490
+ /**
491
+ * Games Get All Static (preview)
492
+ */
493
+ apiPublicPreviewGamesStaticGet() {
494
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
495
+ const response = yield this.apiPublicPreviewGamesStaticGetRaw(requestParameters, initOverrides);
496
+ return yield response.value();
497
+ });
498
+ }
420
499
  /**
421
500
  * Get Providers Data
422
501
  */
@@ -78,6 +78,14 @@ export interface ApiPublicGamesStaticGetRequest {
78
78
  etag?: string;
79
79
  }
80
80
 
81
+ export interface ApiPublicPreviewGamesSlugGetRequest {
82
+ slug: string;
83
+ }
84
+
85
+ export interface ApiPublicPreviewGamesStaticGetRequest {
86
+ etag?: string;
87
+ }
88
+
81
89
  /**
82
90
  *
83
91
  */
@@ -502,6 +510,97 @@ export class PublicGamesApi extends runtime.BaseAPI {
502
510
  return await response.value();
503
511
  }
504
512
 
513
+ /**
514
+ * Games Get by Slug (preview)
515
+ */
516
+ async apiPublicPreviewGamesSlugGetRaw(requestParameters: ApiPublicPreviewGamesSlugGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicGamesSlugGet200Response>> {
517
+ if (requestParameters['slug'] == null) {
518
+ throw new runtime.RequiredError(
519
+ 'slug',
520
+ 'Required parameter "slug" was null or undefined when calling apiPublicPreviewGamesSlugGet().'
521
+ );
522
+ }
523
+
524
+ const queryParameters: any = {};
525
+
526
+ if (requestParameters['slug'] != null) {
527
+ queryParameters['slug'] = requestParameters['slug'];
528
+ }
529
+
530
+ const headerParameters: runtime.HTTPHeaders = {};
531
+
532
+ if (this.configuration && this.configuration.apiKey) {
533
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
534
+ }
535
+
536
+ if (this.configuration && this.configuration.accessToken) {
537
+ const token = this.configuration.accessToken;
538
+ const tokenString = await token("BearerAuth", []);
539
+
540
+ if (tokenString) {
541
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
542
+ }
543
+ }
544
+ const response = await this.request({
545
+ path: `/api/public/preview/games/slug`,
546
+ method: 'GET',
547
+ headers: headerParameters,
548
+ query: queryParameters,
549
+ }, initOverrides);
550
+
551
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicGamesSlugGet200ResponseFromJSON(jsonValue));
552
+ }
553
+
554
+ /**
555
+ * Games Get by Slug (preview)
556
+ */
557
+ async apiPublicPreviewGamesSlugGet(requestParameters: ApiPublicPreviewGamesSlugGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicGamesSlugGet200Response> {
558
+ const response = await this.apiPublicPreviewGamesSlugGetRaw(requestParameters, initOverrides);
559
+ return await response.value();
560
+ }
561
+
562
+ /**
563
+ * Games Get All Static (preview)
564
+ */
565
+ async apiPublicPreviewGamesStaticGetRaw(requestParameters: ApiPublicPreviewGamesStaticGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
566
+ const queryParameters: any = {};
567
+
568
+ if (requestParameters['etag'] != null) {
569
+ queryParameters['etag'] = requestParameters['etag'];
570
+ }
571
+
572
+ const headerParameters: runtime.HTTPHeaders = {};
573
+
574
+ if (this.configuration && this.configuration.apiKey) {
575
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
576
+ }
577
+
578
+ if (this.configuration && this.configuration.accessToken) {
579
+ const token = this.configuration.accessToken;
580
+ const tokenString = await token("BearerAuth", []);
581
+
582
+ if (tokenString) {
583
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
584
+ }
585
+ }
586
+ const response = await this.request({
587
+ path: `/api/public/preview/games/static`,
588
+ method: 'GET',
589
+ headers: headerParameters,
590
+ query: queryParameters,
591
+ }, initOverrides);
592
+
593
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
594
+ }
595
+
596
+ /**
597
+ * Games Get All Static (preview)
598
+ */
599
+ async apiPublicPreviewGamesStaticGet(requestParameters: ApiPublicPreviewGamesStaticGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
600
+ const response = await this.apiPublicPreviewGamesStaticGetRaw(requestParameters, initOverrides);
601
+ return await response.value();
602
+ }
603
+
505
604
  /**
506
605
  * Get Providers Data
507
606
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambulls-org/gambulls-apis",
3
- "version": "3.0.335",
3
+ "version": "3.0.337",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "tsc",