@drxsuperapp/sdk 1.1.191 → 1.1.192

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/apis/EsportApi.ts CHANGED
@@ -26,6 +26,7 @@ import {
26
26
  } from '../models/index';
27
27
 
28
28
  export interface ApiEsportVgMatchesGetRequest {
29
+ id: string;
29
30
  page?: number | null;
30
31
  perPage?: number | null;
31
32
  searchTerm?: string;
@@ -40,6 +41,13 @@ export class EsportApi extends runtime.BaseAPI {
40
41
  * Get Esport Matches Based On VG
41
42
  */
42
43
  async apiEsportVgMatchesGetRaw(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportVgMatchesGet200Response>> {
44
+ if (requestParameters['id'] == null) {
45
+ throw new runtime.RequiredError(
46
+ 'id',
47
+ 'Required parameter "id" was null or undefined when calling apiEsportVgMatchesGet().'
48
+ );
49
+ }
50
+
43
51
  const queryParameters: any = {};
44
52
 
45
53
  if (requestParameters['page'] != null) {
@@ -69,7 +77,7 @@ export class EsportApi extends runtime.BaseAPI {
69
77
  }
70
78
  }
71
79
  const response = await this.request({
72
- path: `/api/esport/:vg/matches`,
80
+ path: `/api/esport/:vg/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
73
81
  method: 'GET',
74
82
  headers: headerParameters,
75
83
  query: queryParameters,
@@ -81,7 +89,7 @@ export class EsportApi extends runtime.BaseAPI {
81
89
  /**
82
90
  * Get Esport Matches Based On VG
83
91
  */
84
- async apiEsportVgMatchesGet(requestParameters: ApiEsportVgMatchesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVgMatchesGet200Response> {
92
+ async apiEsportVgMatchesGet(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVgMatchesGet200Response> {
85
93
  const response = await this.apiEsportVgMatchesGetRaw(requestParameters, initOverrides);
86
94
  return await response.value();
87
95
  }
package/deploy.log CHANGED
@@ -370,27 +370,20 @@
370
370
  # https://opencollective.com/openapi_generator/donate #
371
371
  ################################################################################
372
372
  ✅ SDK generated
373
- [master bf2a376] VPS: Generated API SDK
374
- 10 files changed, 777 insertions(+)
375
- create mode 100644 apis/EsportApi.ts
376
- create mode 100644 models/ApiEsportVgMatchesGet200Response.ts
377
- create mode 100644 models/ApiEsportVgMatchesGet200ResponseResponseObject.ts
378
- create mode 100644 models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.ts
379
- create mode 100644 models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
380
- create mode 100644 models/ApiEsportVideogamesGet200Response.ts
381
- create mode 100644 models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
373
+ [master da7a087] VPS: Generated API SDK
374
+ 1 file changed, 10 insertions(+), 2 deletions(-)
382
375
  To https://gitlab.com/drx-super/drx-sdk.git
383
- 67889bd..bf2a376 master -> master
376
+ 765e1f9..da7a087 master -> master
384
377
  ✅ Changes committed and pushed
385
- v1.1.191
378
+ v1.1.192
386
379
  To https://gitlab.com/drx-super/drx-sdk.git
387
- bf2a376..765e1f9 master -> master
380
+ da7a087..c58de39 master -> master
388
381
  ✅ Version bumped
389
382
 
390
- > @drxsuperapp/sdk@1.1.191 prepublishOnly
383
+ > @drxsuperapp/sdk@1.1.192 prepublishOnly
391
384
  > npm run build
392
385
 
393
386
 
394
- > @drxsuperapp/sdk@1.1.191 build
387
+ > @drxsuperapp/sdk@1.1.192 build
395
388
  > tsc
396
389
 
@@ -12,6 +12,7 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { ApiEsportVgMatchesGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
14
14
  export interface ApiEsportVgMatchesGetRequest {
15
+ id: string;
15
16
  page?: number | null;
16
17
  perPage?: number | null;
17
18
  searchTerm?: string;
@@ -27,7 +28,7 @@ export declare class EsportApi extends runtime.BaseAPI {
27
28
  /**
28
29
  * Get Esport Matches Based On VG
29
30
  */
30
- apiEsportVgMatchesGet(requestParameters?: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVgMatchesGet200Response>;
31
+ apiEsportVgMatchesGet(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVgMatchesGet200Response>;
31
32
  /**
32
33
  * Get All Esport\'s Video Games
33
34
  */
@@ -21,6 +21,9 @@ export class EsportApi extends runtime.BaseAPI {
21
21
  * Get Esport Matches Based On VG
22
22
  */
23
23
  async apiEsportVgMatchesGetRaw(requestParameters, initOverrides) {
24
+ if (requestParameters['id'] == null) {
25
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportVgMatchesGet().');
26
+ }
24
27
  const queryParameters = {};
25
28
  if (requestParameters['page'] != null) {
26
29
  queryParameters['page'] = requestParameters['page'];
@@ -43,7 +46,7 @@ export class EsportApi extends runtime.BaseAPI {
43
46
  }
44
47
  }
45
48
  const response = await this.request({
46
- path: `/api/esport/:vg/matches`,
49
+ path: `/api/esport/:vg/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
47
50
  method: 'GET',
48
51
  headers: headerParameters,
49
52
  query: queryParameters,
@@ -53,7 +56,7 @@ export class EsportApi extends runtime.BaseAPI {
53
56
  /**
54
57
  * Get Esport Matches Based On VG
55
58
  */
56
- async apiEsportVgMatchesGet(requestParameters = {}, initOverrides) {
59
+ async apiEsportVgMatchesGet(requestParameters, initOverrides) {
57
60
  const response = await this.apiEsportVgMatchesGetRaw(requestParameters, initOverrides);
58
61
  return await response.value();
59
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.191",
3
+ "version": "1.1.192",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {