@drxsuperapp/sdk 1.1.6 → 1.1.8
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/.openapi-generator/FILES +8 -0
- package/api.ts +453 -0
- package/deploy.log +42 -9
- package/dist/api.d.ts +355 -0
- package/dist/api.js +173 -0
- package/docs/ApiNewsGet200Response.md +26 -0
- package/docs/ApiNewsGet200ResponseResponseObject.md +28 -0
- package/docs/ApiNewsGet200ResponseResponseObjectItemsInner.md +30 -0
- package/docs/ApiNewsIdGet200Response.md +26 -0
- package/docs/ApiNewsIdGet200ResponseResponseObject.md +42 -0
- package/docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md +20 -0
- package/docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.md +24 -0
- package/docs/NewsApi.md +119 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -88,6 +88,265 @@ export interface ApiExamplesPostRequest {
|
|
|
88
88
|
*/
|
|
89
89
|
'email': string;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @export
|
|
94
|
+
* @interface ApiNewsGet200Response
|
|
95
|
+
*/
|
|
96
|
+
export interface ApiNewsGet200Response {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof ApiNewsGet200Response
|
|
101
|
+
*/
|
|
102
|
+
'success': boolean;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof ApiNewsGet200Response
|
|
107
|
+
*/
|
|
108
|
+
'message': string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {ApiNewsGet200ResponseResponseObject}
|
|
112
|
+
* @memberof ApiNewsGet200Response
|
|
113
|
+
*/
|
|
114
|
+
'responseObject'?: ApiNewsGet200ResponseResponseObject;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof ApiNewsGet200Response
|
|
119
|
+
*/
|
|
120
|
+
'statusCode': number;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @export
|
|
125
|
+
* @interface ApiNewsGet200ResponseResponseObject
|
|
126
|
+
*/
|
|
127
|
+
export interface ApiNewsGet200ResponseResponseObject {
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
131
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
132
|
+
*/
|
|
133
|
+
'items': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
138
|
+
*/
|
|
139
|
+
'currentPage': number;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
144
|
+
*/
|
|
145
|
+
'totalItems': number;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {number}
|
|
149
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
150
|
+
*/
|
|
151
|
+
'totalPages': number;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
156
|
+
*/
|
|
157
|
+
'pageSize': number;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @export
|
|
162
|
+
* @interface ApiNewsGet200ResponseResponseObjectItemsInner
|
|
163
|
+
*/
|
|
164
|
+
export interface ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
169
|
+
*/
|
|
170
|
+
'id': number;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
175
|
+
*/
|
|
176
|
+
'thumbnail': string | null;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
181
|
+
*/
|
|
182
|
+
'title': string | null;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
187
|
+
*/
|
|
188
|
+
'source': string | null;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
193
|
+
*/
|
|
194
|
+
'byline': string | null;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
199
|
+
*/
|
|
200
|
+
'publishedAt': string | null;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @export
|
|
205
|
+
* @interface ApiNewsIdGet200Response
|
|
206
|
+
*/
|
|
207
|
+
export interface ApiNewsIdGet200Response {
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {boolean}
|
|
211
|
+
* @memberof ApiNewsIdGet200Response
|
|
212
|
+
*/
|
|
213
|
+
'success': boolean;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof ApiNewsIdGet200Response
|
|
218
|
+
*/
|
|
219
|
+
'message': string;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {ApiNewsIdGet200ResponseResponseObject}
|
|
223
|
+
* @memberof ApiNewsIdGet200Response
|
|
224
|
+
*/
|
|
225
|
+
'responseObject'?: ApiNewsIdGet200ResponseResponseObject;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {number}
|
|
229
|
+
* @memberof ApiNewsIdGet200Response
|
|
230
|
+
*/
|
|
231
|
+
'statusCode': number;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @export
|
|
236
|
+
* @interface ApiNewsIdGet200ResponseResponseObject
|
|
237
|
+
*/
|
|
238
|
+
export interface ApiNewsIdGet200ResponseResponseObject {
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {number}
|
|
242
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
243
|
+
*/
|
|
244
|
+
'id': number;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
249
|
+
*/
|
|
250
|
+
'title': string | null;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {string}
|
|
254
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
255
|
+
*/
|
|
256
|
+
'description': string | null;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
261
|
+
*/
|
|
262
|
+
'html_content': string | null;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {string}
|
|
266
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
267
|
+
*/
|
|
268
|
+
'source': string | null;
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
273
|
+
*/
|
|
274
|
+
'keywords': string | null;
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
279
|
+
*/
|
|
280
|
+
'byline': string | null;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @type {string}
|
|
284
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
285
|
+
*/
|
|
286
|
+
'publishedAt': string | null;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @type {string}
|
|
290
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
291
|
+
*/
|
|
292
|
+
'thumbnail': string | null;
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @type {string}
|
|
296
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
297
|
+
*/
|
|
298
|
+
'createdAt': string;
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
303
|
+
*/
|
|
304
|
+
'updatedAt': string;
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @type {Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>}
|
|
308
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
309
|
+
*/
|
|
310
|
+
'leagues': Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @export
|
|
315
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
316
|
+
*/
|
|
317
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @type {ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague}
|
|
321
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
322
|
+
*/
|
|
323
|
+
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @export
|
|
328
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
329
|
+
*/
|
|
330
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @type {number}
|
|
334
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
335
|
+
*/
|
|
336
|
+
'id': number;
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @type {string}
|
|
340
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
341
|
+
*/
|
|
342
|
+
'description': string;
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @type {string}
|
|
346
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
347
|
+
*/
|
|
348
|
+
'abbreviation': string | null;
|
|
349
|
+
}
|
|
91
350
|
/**
|
|
92
351
|
* ExampleApi - axios parameter creator
|
|
93
352
|
* @export
|
|
@@ -267,3 +526,99 @@ export declare class ExampleApi extends BaseAPI {
|
|
|
267
526
|
*/
|
|
268
527
|
apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiExamplesGet200ResponseInner, any>>;
|
|
269
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* NewsApi - axios parameter creator
|
|
531
|
+
* @export
|
|
532
|
+
*/
|
|
533
|
+
export declare const NewsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @param {string} [page]
|
|
537
|
+
* @param {string} [perPage]
|
|
538
|
+
* @param {string} [leagueDescription]
|
|
539
|
+
* @param {string} [searchTerm]
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
*/
|
|
543
|
+
apiNewsGet: (page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @param {string} id
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
apiNewsIdGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* NewsApi - functional programming interface
|
|
554
|
+
* @export
|
|
555
|
+
*/
|
|
556
|
+
export declare const NewsApiFp: (configuration?: Configuration) => {
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @param {string} [page]
|
|
560
|
+
* @param {string} [perPage]
|
|
561
|
+
* @param {string} [leagueDescription]
|
|
562
|
+
* @param {string} [searchTerm]
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsGet200Response>>;
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @param {string} id
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsIdGet200Response>>;
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* NewsApi - factory interface
|
|
577
|
+
* @export
|
|
578
|
+
*/
|
|
579
|
+
export declare const NewsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
580
|
+
/**
|
|
581
|
+
*
|
|
582
|
+
* @param {string} [page]
|
|
583
|
+
* @param {string} [perPage]
|
|
584
|
+
* @param {string} [leagueDescription]
|
|
585
|
+
* @param {string} [searchTerm]
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsGet200Response>;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @param {string} id
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsIdGet200Response>;
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* NewsApi - object-oriented interface
|
|
600
|
+
* @export
|
|
601
|
+
* @class NewsApi
|
|
602
|
+
* @extends {BaseAPI}
|
|
603
|
+
*/
|
|
604
|
+
export declare class NewsApi extends BaseAPI {
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @param {string} [page]
|
|
608
|
+
* @param {string} [perPage]
|
|
609
|
+
* @param {string} [leagueDescription]
|
|
610
|
+
* @param {string} [searchTerm]
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
* @memberof NewsApi
|
|
614
|
+
*/
|
|
615
|
+
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiNewsGet200Response, any>>;
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @param {string} id
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
* @memberof NewsApi
|
|
622
|
+
*/
|
|
623
|
+
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiNewsIdGet200Response, any>>;
|
|
624
|
+
}
|
package/dist/api.js
CHANGED
|
@@ -358,3 +358,176 @@ export class ExampleApi extends BaseAPI {
|
|
|
358
358
|
return ExampleApiFp(this.configuration).apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
+
/**
|
|
362
|
+
* NewsApi - axios parameter creator
|
|
363
|
+
* @export
|
|
364
|
+
*/
|
|
365
|
+
export const NewsApiAxiosParamCreator = function (configuration) {
|
|
366
|
+
return {
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @param {string} [page]
|
|
370
|
+
* @param {string} [perPage]
|
|
371
|
+
* @param {string} [leagueDescription]
|
|
372
|
+
* @param {string} [searchTerm]
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
apiNewsGet: async (page, perPage, leagueDescription, searchTerm, options = {}) => {
|
|
377
|
+
const localVarPath = `/api/news`;
|
|
378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
379
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
380
|
+
let baseOptions;
|
|
381
|
+
if (configuration) {
|
|
382
|
+
baseOptions = configuration.baseOptions;
|
|
383
|
+
}
|
|
384
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
385
|
+
const localVarHeaderParameter = {};
|
|
386
|
+
const localVarQueryParameter = {};
|
|
387
|
+
if (page !== undefined) {
|
|
388
|
+
localVarQueryParameter['page'] = page;
|
|
389
|
+
}
|
|
390
|
+
if (perPage !== undefined) {
|
|
391
|
+
localVarQueryParameter['perPage'] = perPage;
|
|
392
|
+
}
|
|
393
|
+
if (leagueDescription !== undefined) {
|
|
394
|
+
localVarQueryParameter['leagueDescription'] = leagueDescription;
|
|
395
|
+
}
|
|
396
|
+
if (searchTerm !== undefined) {
|
|
397
|
+
localVarQueryParameter['searchTerm'] = searchTerm;
|
|
398
|
+
}
|
|
399
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
401
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
402
|
+
return {
|
|
403
|
+
url: toPathString(localVarUrlObj),
|
|
404
|
+
options: localVarRequestOptions,
|
|
405
|
+
};
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @param {string} id
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
apiNewsIdGet: async (id, options = {}) => {
|
|
414
|
+
// verify required parameter 'id' is not null or undefined
|
|
415
|
+
assertParamExists('apiNewsIdGet', 'id', id);
|
|
416
|
+
const localVarPath = `/api/news/{id}`
|
|
417
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
419
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
420
|
+
let baseOptions;
|
|
421
|
+
if (configuration) {
|
|
422
|
+
baseOptions = configuration.baseOptions;
|
|
423
|
+
}
|
|
424
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
425
|
+
const localVarHeaderParameter = {};
|
|
426
|
+
const localVarQueryParameter = {};
|
|
427
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
429
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
430
|
+
return {
|
|
431
|
+
url: toPathString(localVarUrlObj),
|
|
432
|
+
options: localVarRequestOptions,
|
|
433
|
+
};
|
|
434
|
+
},
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* NewsApi - functional programming interface
|
|
439
|
+
* @export
|
|
440
|
+
*/
|
|
441
|
+
export const NewsApiFp = function (configuration) {
|
|
442
|
+
const localVarAxiosParamCreator = NewsApiAxiosParamCreator(configuration);
|
|
443
|
+
return {
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @param {string} [page]
|
|
447
|
+
* @param {string} [perPage]
|
|
448
|
+
* @param {string} [leagueDescription]
|
|
449
|
+
* @param {string} [searchTerm]
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
async apiNewsGet(page, perPage, leagueDescription, searchTerm, options) {
|
|
454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsGet(page, perPage, leagueDescription, searchTerm, options);
|
|
455
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
456
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsGet']?.[localVarOperationServerIndex]?.url;
|
|
457
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
458
|
+
},
|
|
459
|
+
/**
|
|
460
|
+
*
|
|
461
|
+
* @param {string} id
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
async apiNewsIdGet(id, options) {
|
|
466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsIdGet(id, options);
|
|
467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
468
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
470
|
+
},
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* NewsApi - factory interface
|
|
475
|
+
* @export
|
|
476
|
+
*/
|
|
477
|
+
export const NewsApiFactory = function (configuration, basePath, axios) {
|
|
478
|
+
const localVarFp = NewsApiFp(configuration);
|
|
479
|
+
return {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @param {string} [page]
|
|
483
|
+
* @param {string} [perPage]
|
|
484
|
+
* @param {string} [leagueDescription]
|
|
485
|
+
* @param {string} [searchTerm]
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
apiNewsGet(page, perPage, leagueDescription, searchTerm, options) {
|
|
490
|
+
return localVarFp.apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(axios, basePath));
|
|
491
|
+
},
|
|
492
|
+
/**
|
|
493
|
+
*
|
|
494
|
+
* @param {string} id
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
*/
|
|
498
|
+
apiNewsIdGet(id, options) {
|
|
499
|
+
return localVarFp.apiNewsIdGet(id, options).then((request) => request(axios, basePath));
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* NewsApi - object-oriented interface
|
|
505
|
+
* @export
|
|
506
|
+
* @class NewsApi
|
|
507
|
+
* @extends {BaseAPI}
|
|
508
|
+
*/
|
|
509
|
+
export class NewsApi extends BaseAPI {
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @param {string} [page]
|
|
513
|
+
* @param {string} [perPage]
|
|
514
|
+
* @param {string} [leagueDescription]
|
|
515
|
+
* @param {string} [searchTerm]
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
* @memberof NewsApi
|
|
519
|
+
*/
|
|
520
|
+
apiNewsGet(page, perPage, leagueDescription, searchTerm, options) {
|
|
521
|
+
return NewsApiFp(this.configuration).apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(this.axios, this.basePath));
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @param {string} id
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
* @memberof NewsApi
|
|
529
|
+
*/
|
|
530
|
+
apiNewsIdGet(id, options) {
|
|
531
|
+
return NewsApiFp(this.configuration).apiNewsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
532
|
+
}
|
|
533
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ApiNewsGet200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**success** | **boolean** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
**responseObject** | [**ApiNewsGet200ResponseResponseObject**](ApiNewsGet200ResponseResponseObject.md) | | [optional] [default to undefined]
|
|
11
|
+
**statusCode** | **number** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ApiNewsGet200Response } from './api';
|
|
17
|
+
|
|
18
|
+
const instance: ApiNewsGet200Response = {
|
|
19
|
+
success,
|
|
20
|
+
message,
|
|
21
|
+
responseObject,
|
|
22
|
+
statusCode,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ApiNewsGet200ResponseResponseObject
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**items** | [**Array<ApiNewsGet200ResponseResponseObjectItemsInner>**](ApiNewsGet200ResponseResponseObjectItemsInner.md) | | [default to undefined]
|
|
9
|
+
**currentPage** | **number** | | [default to undefined]
|
|
10
|
+
**totalItems** | **number** | | [default to undefined]
|
|
11
|
+
**totalPages** | **number** | | [default to undefined]
|
|
12
|
+
**pageSize** | **number** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ApiNewsGet200ResponseResponseObject } from './api';
|
|
18
|
+
|
|
19
|
+
const instance: ApiNewsGet200ResponseResponseObject = {
|
|
20
|
+
items,
|
|
21
|
+
currentPage,
|
|
22
|
+
totalItems,
|
|
23
|
+
totalPages,
|
|
24
|
+
pageSize,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ApiNewsGet200ResponseResponseObjectItemsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [default to undefined]
|
|
9
|
+
**thumbnail** | **string** | | [default to undefined]
|
|
10
|
+
**title** | **string** | | [default to undefined]
|
|
11
|
+
**source** | **string** | | [default to undefined]
|
|
12
|
+
**byline** | **string** | | [default to undefined]
|
|
13
|
+
**publishedAt** | **string** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ApiNewsGet200ResponseResponseObjectItemsInner } from './api';
|
|
19
|
+
|
|
20
|
+
const instance: ApiNewsGet200ResponseResponseObjectItemsInner = {
|
|
21
|
+
id,
|
|
22
|
+
thumbnail,
|
|
23
|
+
title,
|
|
24
|
+
source,
|
|
25
|
+
byline,
|
|
26
|
+
publishedAt,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ApiNewsIdGet200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**success** | **boolean** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
**responseObject** | [**ApiNewsIdGet200ResponseResponseObject**](ApiNewsIdGet200ResponseResponseObject.md) | | [optional] [default to undefined]
|
|
11
|
+
**statusCode** | **number** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ApiNewsIdGet200Response } from './api';
|
|
17
|
+
|
|
18
|
+
const instance: ApiNewsIdGet200Response = {
|
|
19
|
+
success,
|
|
20
|
+
message,
|
|
21
|
+
responseObject,
|
|
22
|
+
statusCode,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# ApiNewsIdGet200ResponseResponseObject
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [default to undefined]
|
|
9
|
+
**title** | **string** | | [default to undefined]
|
|
10
|
+
**description** | **string** | | [default to undefined]
|
|
11
|
+
**html_content** | **string** | | [default to undefined]
|
|
12
|
+
**source** | **string** | | [default to undefined]
|
|
13
|
+
**keywords** | **string** | | [default to undefined]
|
|
14
|
+
**byline** | **string** | | [default to undefined]
|
|
15
|
+
**publishedAt** | **string** | | [default to undefined]
|
|
16
|
+
**thumbnail** | **string** | | [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
**leagues** | [**Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>**](ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md) | | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ApiNewsIdGet200ResponseResponseObject } from './api';
|
|
25
|
+
|
|
26
|
+
const instance: ApiNewsIdGet200ResponseResponseObject = {
|
|
27
|
+
id,
|
|
28
|
+
title,
|
|
29
|
+
description,
|
|
30
|
+
html_content,
|
|
31
|
+
source,
|
|
32
|
+
keywords,
|
|
33
|
+
byline,
|
|
34
|
+
publishedAt,
|
|
35
|
+
thumbnail,
|
|
36
|
+
createdAt,
|
|
37
|
+
updatedAt,
|
|
38
|
+
leagues,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|