@gambulls-org/gambulls-apis 3.0.758 → 3.0.760

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.
@@ -134,6 +134,41 @@ class UserGamesApi extends runtime.BaseAPI {
134
134
  return yield response.value();
135
135
  });
136
136
  }
137
+ /**
138
+ * User Clear Games Favorites
139
+ */
140
+ apiUserGamesFavoritesDeleteRaw(initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ const queryParameters = {};
143
+ const headerParameters = {};
144
+ if (this.configuration && this.configuration.apiKey) {
145
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
146
+ }
147
+ if (this.configuration && this.configuration.accessToken) {
148
+ const token = this.configuration.accessToken;
149
+ const tokenString = yield token("BearerAuth", []);
150
+ if (tokenString) {
151
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
152
+ }
153
+ }
154
+ const response = yield this.request({
155
+ path: `/api/user/games/favorites`,
156
+ method: 'DELETE',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ }, initOverrides);
160
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
161
+ });
162
+ }
163
+ /**
164
+ * User Clear Games Favorites
165
+ */
166
+ apiUserGamesFavoritesDelete(initOverrides) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ const response = yield this.apiUserGamesFavoritesDeleteRaw(initOverrides);
169
+ return yield response.value();
170
+ });
171
+ }
137
172
  /**
138
173
  * User Get Games Favorites
139
174
  */
@@ -15,12 +15,15 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiUserAvatarPut200Response,
18
19
  ApiUserGameTokenGet200Response,
19
20
  ApiUserGamesFavoritesGet200Response,
20
21
  ApiUserGamesToggleFavoritePost200Response,
21
22
  ApiUserGamesToggleFavoritePostRequest,
22
23
  } from '../models/index';
23
24
  import {
25
+ ApiUserAvatarPut200ResponseFromJSON,
26
+ ApiUserAvatarPut200ResponseToJSON,
24
27
  ApiUserGameTokenGet200ResponseFromJSON,
25
28
  ApiUserGameTokenGet200ResponseToJSON,
26
29
  ApiUserGamesFavoritesGet200ResponseFromJSON,
@@ -150,6 +153,44 @@ export class UserGamesApi extends runtime.BaseAPI {
150
153
  return await response.value();
151
154
  }
152
155
 
156
+ /**
157
+ * User Clear Games Favorites
158
+ */
159
+ async apiUserGamesFavoritesDeleteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
160
+ const queryParameters: any = {};
161
+
162
+ const headerParameters: runtime.HTTPHeaders = {};
163
+
164
+ if (this.configuration && this.configuration.apiKey) {
165
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
166
+ }
167
+
168
+ if (this.configuration && this.configuration.accessToken) {
169
+ const token = this.configuration.accessToken;
170
+ const tokenString = await token("BearerAuth", []);
171
+
172
+ if (tokenString) {
173
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
174
+ }
175
+ }
176
+ const response = await this.request({
177
+ path: `/api/user/games/favorites`,
178
+ method: 'DELETE',
179
+ headers: headerParameters,
180
+ query: queryParameters,
181
+ }, initOverrides);
182
+
183
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
184
+ }
185
+
186
+ /**
187
+ * User Clear Games Favorites
188
+ */
189
+ async apiUserGamesFavoritesDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
190
+ const response = await this.apiUserGamesFavoritesDeleteRaw(initOverrides);
191
+ return await response.value();
192
+ }
193
+
153
194
  /**
154
195
  * User Get Games Favorites
155
196
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambulls-org/gambulls-apis",
3
- "version": "3.0.758",
3
+ "version": "3.0.760",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "tsc",