@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/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,14 @@ configuration.ts
|
|
|
7
7
|
docs/ApiExamplesGet200ResponseInner.md
|
|
8
8
|
docs/ApiExamplesIdPutRequest.md
|
|
9
9
|
docs/ApiExamplesPostRequest.md
|
|
10
|
+
docs/ApiNewsGet200Response.md
|
|
11
|
+
docs/ApiNewsGet200ResponseResponseObject.md
|
|
12
|
+
docs/ApiNewsGet200ResponseResponseObjectItemsInner.md
|
|
13
|
+
docs/ApiNewsIdGet200Response.md
|
|
14
|
+
docs/ApiNewsIdGet200ResponseResponseObject.md
|
|
15
|
+
docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md
|
|
16
|
+
docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.md
|
|
10
17
|
docs/ExampleApi.md
|
|
18
|
+
docs/NewsApi.md
|
|
11
19
|
git_push.sh
|
|
12
20
|
index.ts
|
package/api.ts
CHANGED
|
@@ -98,6 +98,265 @@ export interface ApiExamplesPostRequest {
|
|
|
98
98
|
*/
|
|
99
99
|
'email': string;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @export
|
|
104
|
+
* @interface ApiNewsGet200Response
|
|
105
|
+
*/
|
|
106
|
+
export interface ApiNewsGet200Response {
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof ApiNewsGet200Response
|
|
111
|
+
*/
|
|
112
|
+
'success': boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof ApiNewsGet200Response
|
|
117
|
+
*/
|
|
118
|
+
'message': string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {ApiNewsGet200ResponseResponseObject}
|
|
122
|
+
* @memberof ApiNewsGet200Response
|
|
123
|
+
*/
|
|
124
|
+
'responseObject'?: ApiNewsGet200ResponseResponseObject;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof ApiNewsGet200Response
|
|
129
|
+
*/
|
|
130
|
+
'statusCode': number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @export
|
|
135
|
+
* @interface ApiNewsGet200ResponseResponseObject
|
|
136
|
+
*/
|
|
137
|
+
export interface ApiNewsGet200ResponseResponseObject {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
141
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
142
|
+
*/
|
|
143
|
+
'items': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
148
|
+
*/
|
|
149
|
+
'currentPage': number;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
154
|
+
*/
|
|
155
|
+
'totalItems': number;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {number}
|
|
159
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
160
|
+
*/
|
|
161
|
+
'totalPages': number;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {number}
|
|
165
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
166
|
+
*/
|
|
167
|
+
'pageSize': number;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @export
|
|
172
|
+
* @interface ApiNewsGet200ResponseResponseObjectItemsInner
|
|
173
|
+
*/
|
|
174
|
+
export interface ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {number}
|
|
178
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
179
|
+
*/
|
|
180
|
+
'id': number;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
185
|
+
*/
|
|
186
|
+
'thumbnail': string | null;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
191
|
+
*/
|
|
192
|
+
'title': string | null;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
197
|
+
*/
|
|
198
|
+
'source': string | null;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
203
|
+
*/
|
|
204
|
+
'byline': string | null;
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
209
|
+
*/
|
|
210
|
+
'publishedAt': string | null;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @export
|
|
215
|
+
* @interface ApiNewsIdGet200Response
|
|
216
|
+
*/
|
|
217
|
+
export interface ApiNewsIdGet200Response {
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {boolean}
|
|
221
|
+
* @memberof ApiNewsIdGet200Response
|
|
222
|
+
*/
|
|
223
|
+
'success': boolean;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof ApiNewsIdGet200Response
|
|
228
|
+
*/
|
|
229
|
+
'message': string;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {ApiNewsIdGet200ResponseResponseObject}
|
|
233
|
+
* @memberof ApiNewsIdGet200Response
|
|
234
|
+
*/
|
|
235
|
+
'responseObject'?: ApiNewsIdGet200ResponseResponseObject;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {number}
|
|
239
|
+
* @memberof ApiNewsIdGet200Response
|
|
240
|
+
*/
|
|
241
|
+
'statusCode': number;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @export
|
|
246
|
+
* @interface ApiNewsIdGet200ResponseResponseObject
|
|
247
|
+
*/
|
|
248
|
+
export interface ApiNewsIdGet200ResponseResponseObject {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {number}
|
|
252
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
253
|
+
*/
|
|
254
|
+
'id': number;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
259
|
+
*/
|
|
260
|
+
'title': string | null;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @type {string}
|
|
264
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
265
|
+
*/
|
|
266
|
+
'description': string | null;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @type {string}
|
|
270
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
271
|
+
*/
|
|
272
|
+
'html_content': string | null;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
277
|
+
*/
|
|
278
|
+
'source': string | null;
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
283
|
+
*/
|
|
284
|
+
'keywords': string | null;
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @type {string}
|
|
288
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
289
|
+
*/
|
|
290
|
+
'byline': string | null;
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
295
|
+
*/
|
|
296
|
+
'publishedAt': string | null;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
301
|
+
*/
|
|
302
|
+
'thumbnail': string | null;
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
307
|
+
*/
|
|
308
|
+
'createdAt': string;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
313
|
+
*/
|
|
314
|
+
'updatedAt': string;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>}
|
|
318
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
319
|
+
*/
|
|
320
|
+
'leagues': Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @export
|
|
325
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
326
|
+
*/
|
|
327
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague}
|
|
331
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
332
|
+
*/
|
|
333
|
+
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @export
|
|
338
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
339
|
+
*/
|
|
340
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @type {number}
|
|
344
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
345
|
+
*/
|
|
346
|
+
'id': number;
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
351
|
+
*/
|
|
352
|
+
'description': string;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
357
|
+
*/
|
|
358
|
+
'abbreviation': string | null;
|
|
359
|
+
}
|
|
101
360
|
|
|
102
361
|
/**
|
|
103
362
|
* ExampleApi - axios parameter creator
|
|
@@ -479,3 +738,197 @@ export class ExampleApi extends BaseAPI {
|
|
|
479
738
|
|
|
480
739
|
|
|
481
740
|
|
|
741
|
+
/**
|
|
742
|
+
* NewsApi - axios parameter creator
|
|
743
|
+
* @export
|
|
744
|
+
*/
|
|
745
|
+
export const NewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
746
|
+
return {
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @param {string} [page]
|
|
750
|
+
* @param {string} [perPage]
|
|
751
|
+
* @param {string} [leagueDescription]
|
|
752
|
+
* @param {string} [searchTerm]
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
apiNewsGet: async (page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
757
|
+
const localVarPath = `/api/news`;
|
|
758
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
759
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
760
|
+
let baseOptions;
|
|
761
|
+
if (configuration) {
|
|
762
|
+
baseOptions = configuration.baseOptions;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
766
|
+
const localVarHeaderParameter = {} as any;
|
|
767
|
+
const localVarQueryParameter = {} as any;
|
|
768
|
+
|
|
769
|
+
if (page !== undefined) {
|
|
770
|
+
localVarQueryParameter['page'] = page;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
if (perPage !== undefined) {
|
|
774
|
+
localVarQueryParameter['perPage'] = perPage;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
if (leagueDescription !== undefined) {
|
|
778
|
+
localVarQueryParameter['leagueDescription'] = leagueDescription;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
if (searchTerm !== undefined) {
|
|
782
|
+
localVarQueryParameter['searchTerm'] = searchTerm;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
788
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
789
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
790
|
+
|
|
791
|
+
return {
|
|
792
|
+
url: toPathString(localVarUrlObj),
|
|
793
|
+
options: localVarRequestOptions,
|
|
794
|
+
};
|
|
795
|
+
},
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @param {string} id
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
apiNewsIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
803
|
+
// verify required parameter 'id' is not null or undefined
|
|
804
|
+
assertParamExists('apiNewsIdGet', 'id', id)
|
|
805
|
+
const localVarPath = `/api/news/{id}`
|
|
806
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
808
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
809
|
+
let baseOptions;
|
|
810
|
+
if (configuration) {
|
|
811
|
+
baseOptions = configuration.baseOptions;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
815
|
+
const localVarHeaderParameter = {} as any;
|
|
816
|
+
const localVarQueryParameter = {} as any;
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
821
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
822
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
823
|
+
|
|
824
|
+
return {
|
|
825
|
+
url: toPathString(localVarUrlObj),
|
|
826
|
+
options: localVarRequestOptions,
|
|
827
|
+
};
|
|
828
|
+
},
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* NewsApi - functional programming interface
|
|
834
|
+
* @export
|
|
835
|
+
*/
|
|
836
|
+
export const NewsApiFp = function(configuration?: Configuration) {
|
|
837
|
+
const localVarAxiosParamCreator = NewsApiAxiosParamCreator(configuration)
|
|
838
|
+
return {
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @param {string} [page]
|
|
842
|
+
* @param {string} [perPage]
|
|
843
|
+
* @param {string} [leagueDescription]
|
|
844
|
+
* @param {string} [searchTerm]
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
async apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsGet200Response>> {
|
|
849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsGet(page, perPage, leagueDescription, searchTerm, options);
|
|
850
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
851
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsGet']?.[localVarOperationServerIndex]?.url;
|
|
852
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
853
|
+
},
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @param {string} id
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
async apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsIdGet200Response>> {
|
|
861
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsIdGet(id, options);
|
|
862
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
863
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
864
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
865
|
+
},
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* NewsApi - factory interface
|
|
871
|
+
* @export
|
|
872
|
+
*/
|
|
873
|
+
export const NewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
874
|
+
const localVarFp = NewsApiFp(configuration)
|
|
875
|
+
return {
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @param {string} [page]
|
|
879
|
+
* @param {string} [perPage]
|
|
880
|
+
* @param {string} [leagueDescription]
|
|
881
|
+
* @param {string} [searchTerm]
|
|
882
|
+
* @param {*} [options] Override http request option.
|
|
883
|
+
* @throws {RequiredError}
|
|
884
|
+
*/
|
|
885
|
+
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsGet200Response> {
|
|
886
|
+
return localVarFp.apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(axios, basePath));
|
|
887
|
+
},
|
|
888
|
+
/**
|
|
889
|
+
*
|
|
890
|
+
* @param {string} id
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsIdGet200Response> {
|
|
895
|
+
return localVarFp.apiNewsIdGet(id, options).then((request) => request(axios, basePath));
|
|
896
|
+
},
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* NewsApi - object-oriented interface
|
|
902
|
+
* @export
|
|
903
|
+
* @class NewsApi
|
|
904
|
+
* @extends {BaseAPI}
|
|
905
|
+
*/
|
|
906
|
+
export class NewsApi extends BaseAPI {
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @param {string} [page]
|
|
910
|
+
* @param {string} [perPage]
|
|
911
|
+
* @param {string} [leagueDescription]
|
|
912
|
+
* @param {string} [searchTerm]
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
* @memberof NewsApi
|
|
916
|
+
*/
|
|
917
|
+
public apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig) {
|
|
918
|
+
return NewsApiFp(this.configuration).apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(this.axios, this.basePath));
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @param {string} id
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
* @memberof NewsApi
|
|
927
|
+
*/
|
|
928
|
+
public apiNewsIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
929
|
+
return NewsApiFp(this.configuration).apiNewsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
package/deploy.log
CHANGED
|
@@ -6,19 +6,37 @@
|
|
|
6
6
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
7
7
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
8
8
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples__id__put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
9
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
10
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
11
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
12
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response_responseObject_leagues_inner_league. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner_league=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner_league=NewModel,ModelA=NewModelA in CLI).
|
|
13
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response_responseObject_leagues_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner=NewModel,ModelA=NewModelA in CLI).
|
|
14
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
15
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
9
16
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
10
17
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
11
18
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesGet200ResponseInner.md
|
|
12
19
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesIdPutRequest.md
|
|
13
20
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesPostRequest.md
|
|
21
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsGet200Response.md
|
|
22
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsGet200ResponseResponseObject.md
|
|
23
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsGet200ResponseResponseObjectItemsInner.md
|
|
24
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsIdGet200Response.md
|
|
25
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsIdGet200ResponseResponseObject.md
|
|
26
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md
|
|
27
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.md
|
|
14
28
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
15
29
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
16
30
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
17
31
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
18
32
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
33
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
34
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
|
|
19
35
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
20
36
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ExampleApi.md
|
|
21
37
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
38
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/NewsApi.md
|
|
39
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
22
40
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
|
|
23
41
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./base.ts
|
|
24
42
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./common.ts
|
|
@@ -36,13 +54,28 @@
|
|
|
36
54
|
# https://opencollective.com/openapi_generator/donate #
|
|
37
55
|
################################################################################
|
|
38
56
|
✅ SDK generated
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
57
|
+
[master 4ab9ace] VPS: Generated API SDK
|
|
58
|
+
10 files changed, 776 insertions(+)
|
|
59
|
+
create mode 100644 docs/ApiNewsGet200Response.md
|
|
60
|
+
create mode 100644 docs/ApiNewsGet200ResponseResponseObject.md
|
|
61
|
+
create mode 100644 docs/ApiNewsGet200ResponseResponseObjectItemsInner.md
|
|
62
|
+
create mode 100644 docs/ApiNewsIdGet200Response.md
|
|
63
|
+
create mode 100644 docs/ApiNewsIdGet200ResponseResponseObject.md
|
|
64
|
+
create mode 100644 docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md
|
|
65
|
+
create mode 100644 docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.md
|
|
66
|
+
create mode 100644 docs/NewsApi.md
|
|
67
|
+
remote:
|
|
68
|
+
remote: Project 'drxsuperapp/drx-sdk' was moved to 'drx-super/drx-sdk'.
|
|
69
|
+
remote:
|
|
70
|
+
remote: Please update your Git remote:
|
|
71
|
+
remote:
|
|
72
|
+
remote: git remote set-url origin https://gitlab.com/drx-super/drx-sdk.git
|
|
73
|
+
remote:
|
|
74
|
+
remote:
|
|
75
|
+
To https://gitlab.com/drxsuperapp/drx-sdk.git
|
|
76
|
+
14caaf2..4ab9ace master -> master
|
|
44
77
|
✅ Changes committed and pushed
|
|
45
|
-
v1.1.
|
|
78
|
+
v1.1.8
|
|
46
79
|
remote:
|
|
47
80
|
remote: Project 'drxsuperapp/drx-sdk' was moved to 'drx-super/drx-sdk'.
|
|
48
81
|
remote:
|
|
@@ -52,13 +85,13 @@ remote: git remote set-url origin https://gitlab.com/drx-super/drx-sdk.git
|
|
|
52
85
|
remote:
|
|
53
86
|
remote:
|
|
54
87
|
To https://gitlab.com/drxsuperapp/drx-sdk.git
|
|
55
|
-
|
|
88
|
+
4ab9ace..beb1f07 master -> master
|
|
56
89
|
✅ Version bumped
|
|
57
90
|
|
|
58
|
-
> @drxsuperapp/sdk@1.1.
|
|
91
|
+
> @drxsuperapp/sdk@1.1.8 prepublishOnly
|
|
59
92
|
> npm run build
|
|
60
93
|
|
|
61
94
|
|
|
62
|
-
> @drxsuperapp/sdk@1.1.
|
|
95
|
+
> @drxsuperapp/sdk@1.1.8 build
|
|
63
96
|
> tsc
|
|
64
97
|
|