@handsondigital/idplugger-admin 2.1.0 → 2.1.2
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 +2 -2
- package/README.md +4 -4
- package/api.ts +176 -82
- package/dist/api.d.ts +150 -76
- package/dist/api.js +36 -16
- package/docs/ApiLogPaginated.md +4 -2
- package/docs/ApiLogsApi.md +7 -1
- package/docs/ErrorReportPaginated.md +4 -2
- package/docs/ErrorReportsApi.md +7 -1
- package/docs/Pagination.md +42 -0
- package/docs/PaginationLinksInner.md +24 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,7 +12,6 @@ docs/AdminPromotionCacheClear200ResponseContent.md
|
|
|
12
12
|
docs/AdminPromotionCacheClear500Response.md
|
|
13
13
|
docs/ApiLog.md
|
|
14
14
|
docs/ApiLogPaginated.md
|
|
15
|
-
docs/ApiLogPaginatedResult.md
|
|
16
15
|
docs/ApiLogsApi.md
|
|
17
16
|
docs/AuthApi.md
|
|
18
17
|
docs/AuthLogin200Response.md
|
|
@@ -25,13 +24,14 @@ docs/AuthMe200ResponsePromotionsInner.md
|
|
|
25
24
|
docs/AuthRefreshTokenRequest.md
|
|
26
25
|
docs/ErrorReport.md
|
|
27
26
|
docs/ErrorReportPaginated.md
|
|
28
|
-
docs/ErrorReportPaginatedResult.md
|
|
29
27
|
docs/ErrorReportsApi.md
|
|
30
28
|
docs/ErrorResponse.md
|
|
31
29
|
docs/Metrics200Response.md
|
|
32
30
|
docs/Metrics200ResponseUsersInner.md
|
|
33
31
|
docs/Metrics400Response.md
|
|
34
32
|
docs/MetricsApi.md
|
|
33
|
+
docs/Pagination.md
|
|
34
|
+
docs/PaginationLinksInner.md
|
|
35
35
|
docs/PromotionApi.md
|
|
36
36
|
docs/PromotionPullConfiguration200Response.md
|
|
37
37
|
docs/PromotionPullConfiguration500Response.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @handsondigital/idplugger-admin@2.1.
|
|
1
|
+
## @handsondigital/idplugger-admin@2.1.2
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @handsondigital/idplugger-admin@2.1.
|
|
39
|
+
npm install @handsondigital/idplugger-admin@2.1.2 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -90,7 +90,6 @@ Class | Method | HTTP request | Description
|
|
|
90
90
|
- [AdminPromotionCacheClear500Response](docs/AdminPromotionCacheClear500Response.md)
|
|
91
91
|
- [ApiLog](docs/ApiLog.md)
|
|
92
92
|
- [ApiLogPaginated](docs/ApiLogPaginated.md)
|
|
93
|
-
- [ApiLogPaginatedResult](docs/ApiLogPaginatedResult.md)
|
|
94
93
|
- [AuthLogin200Response](docs/AuthLogin200Response.md)
|
|
95
94
|
- [AuthLogin401Response](docs/AuthLogin401Response.md)
|
|
96
95
|
- [AuthLoginByToken200Response](docs/AuthLoginByToken200Response.md)
|
|
@@ -101,11 +100,12 @@ Class | Method | HTTP request | Description
|
|
|
101
100
|
- [AuthRefreshTokenRequest](docs/AuthRefreshTokenRequest.md)
|
|
102
101
|
- [ErrorReport](docs/ErrorReport.md)
|
|
103
102
|
- [ErrorReportPaginated](docs/ErrorReportPaginated.md)
|
|
104
|
-
- [ErrorReportPaginatedResult](docs/ErrorReportPaginatedResult.md)
|
|
105
103
|
- [ErrorResponse](docs/ErrorResponse.md)
|
|
106
104
|
- [Metrics200Response](docs/Metrics200Response.md)
|
|
107
105
|
- [Metrics200ResponseUsersInner](docs/Metrics200ResponseUsersInner.md)
|
|
108
106
|
- [Metrics400Response](docs/Metrics400Response.md)
|
|
107
|
+
- [Pagination](docs/Pagination.md)
|
|
108
|
+
- [PaginationLinksInner](docs/PaginationLinksInner.md)
|
|
109
109
|
- [PromotionPullConfiguration200Response](docs/PromotionPullConfiguration200Response.md)
|
|
110
110
|
- [PromotionPullConfiguration500Response](docs/PromotionPullConfiguration500Response.md)
|
|
111
111
|
- [PromotionPullConfigurationRequest](docs/PromotionPullConfigurationRequest.md)
|
package/api.ts
CHANGED
|
@@ -209,49 +209,18 @@ export interface ApiLogPaginated {
|
|
|
209
209
|
* @memberof ApiLogPaginated
|
|
210
210
|
*/
|
|
211
211
|
'message'?: string;
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {ApiLogPaginatedResult}
|
|
215
|
-
* @memberof ApiLogPaginated
|
|
216
|
-
*/
|
|
217
|
-
'result'?: ApiLogPaginatedResult;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
* @export
|
|
222
|
-
* @interface ApiLogPaginatedResult
|
|
223
|
-
*/
|
|
224
|
-
export interface ApiLogPaginatedResult {
|
|
225
212
|
/**
|
|
226
213
|
*
|
|
227
214
|
* @type {Array<ApiLog>}
|
|
228
|
-
* @memberof
|
|
229
|
-
*/
|
|
230
|
-
'data'?: Array<ApiLog>;
|
|
231
|
-
/**
|
|
232
|
-
*
|
|
233
|
-
* @type {number}
|
|
234
|
-
* @memberof ApiLogPaginatedResult
|
|
235
|
-
*/
|
|
236
|
-
'current_page'?: number;
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
* @type {number}
|
|
240
|
-
* @memberof ApiLogPaginatedResult
|
|
241
|
-
*/
|
|
242
|
-
'last_page'?: number;
|
|
243
|
-
/**
|
|
244
|
-
*
|
|
245
|
-
* @type {number}
|
|
246
|
-
* @memberof ApiLogPaginatedResult
|
|
215
|
+
* @memberof ApiLogPaginated
|
|
247
216
|
*/
|
|
248
|
-
'
|
|
217
|
+
'content'?: Array<ApiLog>;
|
|
249
218
|
/**
|
|
250
219
|
*
|
|
251
|
-
* @type {
|
|
252
|
-
* @memberof
|
|
220
|
+
* @type {Pagination}
|
|
221
|
+
* @memberof ApiLogPaginated
|
|
253
222
|
*/
|
|
254
|
-
'
|
|
223
|
+
'paging'?: Pagination;
|
|
255
224
|
}
|
|
256
225
|
/**
|
|
257
226
|
*
|
|
@@ -496,49 +465,18 @@ export interface ErrorReportPaginated {
|
|
|
496
465
|
* @memberof ErrorReportPaginated
|
|
497
466
|
*/
|
|
498
467
|
'message'?: string;
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @type {ErrorReportPaginatedResult}
|
|
502
|
-
* @memberof ErrorReportPaginated
|
|
503
|
-
*/
|
|
504
|
-
'result'?: ErrorReportPaginatedResult;
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
*
|
|
508
|
-
* @export
|
|
509
|
-
* @interface ErrorReportPaginatedResult
|
|
510
|
-
*/
|
|
511
|
-
export interface ErrorReportPaginatedResult {
|
|
512
468
|
/**
|
|
513
469
|
*
|
|
514
470
|
* @type {Array<ErrorReport>}
|
|
515
|
-
* @memberof
|
|
516
|
-
*/
|
|
517
|
-
'data'?: Array<ErrorReport>;
|
|
518
|
-
/**
|
|
519
|
-
*
|
|
520
|
-
* @type {number}
|
|
521
|
-
* @memberof ErrorReportPaginatedResult
|
|
522
|
-
*/
|
|
523
|
-
'current_page'?: number;
|
|
524
|
-
/**
|
|
525
|
-
*
|
|
526
|
-
* @type {number}
|
|
527
|
-
* @memberof ErrorReportPaginatedResult
|
|
528
|
-
*/
|
|
529
|
-
'last_page'?: number;
|
|
530
|
-
/**
|
|
531
|
-
*
|
|
532
|
-
* @type {number}
|
|
533
|
-
* @memberof ErrorReportPaginatedResult
|
|
471
|
+
* @memberof ErrorReportPaginated
|
|
534
472
|
*/
|
|
535
|
-
'
|
|
473
|
+
'content'?: Array<ErrorReport>;
|
|
536
474
|
/**
|
|
537
475
|
*
|
|
538
|
-
* @type {
|
|
539
|
-
* @memberof
|
|
476
|
+
* @type {Pagination}
|
|
477
|
+
* @memberof ErrorReportPaginated
|
|
540
478
|
*/
|
|
541
|
-
'
|
|
479
|
+
'paging'?: Pagination;
|
|
542
480
|
}
|
|
543
481
|
/**
|
|
544
482
|
*
|
|
@@ -616,6 +554,110 @@ export interface Metrics400Response {
|
|
|
616
554
|
*/
|
|
617
555
|
'message'?: string;
|
|
618
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @export
|
|
560
|
+
* @interface Pagination
|
|
561
|
+
*/
|
|
562
|
+
export interface Pagination {
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type {number}
|
|
566
|
+
* @memberof Pagination
|
|
567
|
+
*/
|
|
568
|
+
'current_page'?: number;
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof Pagination
|
|
573
|
+
*/
|
|
574
|
+
'first_page_url'?: string;
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {number}
|
|
578
|
+
* @memberof Pagination
|
|
579
|
+
*/
|
|
580
|
+
'from'?: number;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @type {number}
|
|
584
|
+
* @memberof Pagination
|
|
585
|
+
*/
|
|
586
|
+
'last_page'?: number;
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof Pagination
|
|
591
|
+
*/
|
|
592
|
+
'last_page_url'?: string;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {Array<PaginationLinksInner>}
|
|
596
|
+
* @memberof Pagination
|
|
597
|
+
*/
|
|
598
|
+
'links'?: Array<PaginationLinksInner>;
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @type {string}
|
|
602
|
+
* @memberof Pagination
|
|
603
|
+
*/
|
|
604
|
+
'next_page_url'?: string;
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof Pagination
|
|
609
|
+
*/
|
|
610
|
+
'path'?: string;
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type {string}
|
|
614
|
+
* @memberof Pagination
|
|
615
|
+
*/
|
|
616
|
+
'per_page'?: string;
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @type {string}
|
|
620
|
+
* @memberof Pagination
|
|
621
|
+
*/
|
|
622
|
+
'prev_page_url'?: string;
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @type {number}
|
|
626
|
+
* @memberof Pagination
|
|
627
|
+
*/
|
|
628
|
+
'to'?: number;
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @type {number}
|
|
632
|
+
* @memberof Pagination
|
|
633
|
+
*/
|
|
634
|
+
'total'?: number;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @export
|
|
639
|
+
* @interface PaginationLinksInner
|
|
640
|
+
*/
|
|
641
|
+
export interface PaginationLinksInner {
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @type {string}
|
|
645
|
+
* @memberof PaginationLinksInner
|
|
646
|
+
*/
|
|
647
|
+
'url'?: string;
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof PaginationLinksInner
|
|
652
|
+
*/
|
|
653
|
+
'label'?: string;
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof PaginationLinksInner
|
|
658
|
+
*/
|
|
659
|
+
'active'?: string;
|
|
660
|
+
}
|
|
619
661
|
/**
|
|
620
662
|
*
|
|
621
663
|
* @export
|
|
@@ -2115,10 +2157,12 @@ export const ApiLogsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2115
2157
|
* @summary List API logs
|
|
2116
2158
|
* @param {string} [q] Search text
|
|
2117
2159
|
* @param {string} [date] Filter by date (YYYY-MM-DD)
|
|
2160
|
+
* @param {number} [page] Page number for pagination
|
|
2161
|
+
* @param {number} [perPage] Number of items per page
|
|
2118
2162
|
* @param {*} [options] Override http request option.
|
|
2119
2163
|
* @throws {RequiredError}
|
|
2120
2164
|
*/
|
|
2121
|
-
adminLogsGet: async (q?: string, date?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2165
|
+
adminLogsGet: async (q?: string, date?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2122
2166
|
const localVarPath = `/admin/logs`;
|
|
2123
2167
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2124
2168
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2141,6 +2185,14 @@ export const ApiLogsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2141
2185
|
date;
|
|
2142
2186
|
}
|
|
2143
2187
|
|
|
2188
|
+
if (page !== undefined) {
|
|
2189
|
+
localVarQueryParameter['page'] = page;
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
if (perPage !== undefined) {
|
|
2193
|
+
localVarQueryParameter['_per_page'] = perPage;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2144
2196
|
|
|
2145
2197
|
|
|
2146
2198
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2201,11 +2253,13 @@ export const ApiLogsApiFp = function(configuration?: Configuration) {
|
|
|
2201
2253
|
* @summary List API logs
|
|
2202
2254
|
* @param {string} [q] Search text
|
|
2203
2255
|
* @param {string} [date] Filter by date (YYYY-MM-DD)
|
|
2256
|
+
* @param {number} [page] Page number for pagination
|
|
2257
|
+
* @param {number} [perPage] Number of items per page
|
|
2204
2258
|
* @param {*} [options] Override http request option.
|
|
2205
2259
|
* @throws {RequiredError}
|
|
2206
2260
|
*/
|
|
2207
|
-
async adminLogsGet(q?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLogPaginated>> {
|
|
2208
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminLogsGet(q, date, options);
|
|
2261
|
+
async adminLogsGet(q?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLogPaginated>> {
|
|
2262
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminLogsGet(q, date, page, perPage, options);
|
|
2209
2263
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2210
2264
|
const localVarOperationServerBasePath = operationServerMap['ApiLogsApi.adminLogsGet']?.[localVarOperationServerIndex]?.url;
|
|
2211
2265
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2241,7 +2295,7 @@ export const ApiLogsApiFactory = function (configuration?: Configuration, basePa
|
|
|
2241
2295
|
* @throws {RequiredError}
|
|
2242
2296
|
*/
|
|
2243
2297
|
adminLogsGet(requestParameters: ApiLogsApiAdminLogsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ApiLogPaginated> {
|
|
2244
|
-
return localVarFp.adminLogsGet(requestParameters.q, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
2298
|
+
return localVarFp.adminLogsGet(requestParameters.q, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
2245
2299
|
},
|
|
2246
2300
|
/**
|
|
2247
2301
|
*
|
|
@@ -2275,6 +2329,20 @@ export interface ApiLogsApiAdminLogsGetRequest {
|
|
|
2275
2329
|
* @memberof ApiLogsApiAdminLogsGet
|
|
2276
2330
|
*/
|
|
2277
2331
|
readonly date?: string
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* Page number for pagination
|
|
2335
|
+
* @type {number}
|
|
2336
|
+
* @memberof ApiLogsApiAdminLogsGet
|
|
2337
|
+
*/
|
|
2338
|
+
readonly page?: number
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* Number of items per page
|
|
2342
|
+
* @type {number}
|
|
2343
|
+
* @memberof ApiLogsApiAdminLogsGet
|
|
2344
|
+
*/
|
|
2345
|
+
readonly perPage?: number
|
|
2278
2346
|
}
|
|
2279
2347
|
|
|
2280
2348
|
/**
|
|
@@ -2307,7 +2375,7 @@ export class ApiLogsApi extends BaseAPI {
|
|
|
2307
2375
|
* @memberof ApiLogsApi
|
|
2308
2376
|
*/
|
|
2309
2377
|
public adminLogsGet(requestParameters: ApiLogsApiAdminLogsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
2310
|
-
return ApiLogsApiFp(this.configuration).adminLogsGet(requestParameters.q, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
2378
|
+
return ApiLogsApiFp(this.configuration).adminLogsGet(requestParameters.q, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
2311
2379
|
}
|
|
2312
2380
|
|
|
2313
2381
|
/**
|
|
@@ -2774,10 +2842,12 @@ export const ErrorReportsApiAxiosParamCreator = function (configuration?: Config
|
|
|
2774
2842
|
* @param {string} [q] Search through id, message, exception class, file
|
|
2775
2843
|
* @param {string} [_class] Filter by exception class
|
|
2776
2844
|
* @param {string} [date] Filter by date
|
|
2845
|
+
* @param {number} [page] Page number for pagination
|
|
2846
|
+
* @param {number} [perPage] Number of items per page
|
|
2777
2847
|
* @param {*} [options] Override http request option.
|
|
2778
2848
|
* @throws {RequiredError}
|
|
2779
2849
|
*/
|
|
2780
|
-
adminErrorsGet: async (q?: string, _class?: string, date?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2850
|
+
adminErrorsGet: async (q?: string, _class?: string, date?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2781
2851
|
const localVarPath = `/admin/errors`;
|
|
2782
2852
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2783
2853
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2804,6 +2874,14 @@ export const ErrorReportsApiAxiosParamCreator = function (configuration?: Config
|
|
|
2804
2874
|
date;
|
|
2805
2875
|
}
|
|
2806
2876
|
|
|
2877
|
+
if (page !== undefined) {
|
|
2878
|
+
localVarQueryParameter['page'] = page;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
if (perPage !== undefined) {
|
|
2882
|
+
localVarQueryParameter['_per_page'] = perPage;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2807
2885
|
|
|
2808
2886
|
|
|
2809
2887
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2899,11 +2977,13 @@ export const ErrorReportsApiFp = function(configuration?: Configuration) {
|
|
|
2899
2977
|
* @param {string} [q] Search through id, message, exception class, file
|
|
2900
2978
|
* @param {string} [_class] Filter by exception class
|
|
2901
2979
|
* @param {string} [date] Filter by date
|
|
2980
|
+
* @param {number} [page] Page number for pagination
|
|
2981
|
+
* @param {number} [perPage] Number of items per page
|
|
2902
2982
|
* @param {*} [options] Override http request option.
|
|
2903
2983
|
* @throws {RequiredError}
|
|
2904
2984
|
*/
|
|
2905
|
-
async adminErrorsGet(q?: string, _class?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReportPaginated>> {
|
|
2906
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminErrorsGet(q, _class, date, options);
|
|
2985
|
+
async adminErrorsGet(q?: string, _class?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReportPaginated>> {
|
|
2986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminErrorsGet(q, _class, date, page, perPage, options);
|
|
2907
2987
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2908
2988
|
const localVarOperationServerBasePath = operationServerMap['ErrorReportsApi.adminErrorsGet']?.[localVarOperationServerIndex]?.url;
|
|
2909
2989
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2952,7 +3032,7 @@ export const ErrorReportsApiFactory = function (configuration?: Configuration, b
|
|
|
2952
3032
|
* @throws {RequiredError}
|
|
2953
3033
|
*/
|
|
2954
3034
|
adminErrorsGet(requestParameters: ErrorReportsApiAdminErrorsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ErrorReportPaginated> {
|
|
2955
|
-
return localVarFp.adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
3035
|
+
return localVarFp.adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
2956
3036
|
},
|
|
2957
3037
|
/**
|
|
2958
3038
|
*
|
|
@@ -3003,6 +3083,20 @@ export interface ErrorReportsApiAdminErrorsGetRequest {
|
|
|
3003
3083
|
* @memberof ErrorReportsApiAdminErrorsGet
|
|
3004
3084
|
*/
|
|
3005
3085
|
readonly date?: string
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Page number for pagination
|
|
3089
|
+
* @type {number}
|
|
3090
|
+
* @memberof ErrorReportsApiAdminErrorsGet
|
|
3091
|
+
*/
|
|
3092
|
+
readonly page?: number
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* Number of items per page
|
|
3096
|
+
* @type {number}
|
|
3097
|
+
* @memberof ErrorReportsApiAdminErrorsGet
|
|
3098
|
+
*/
|
|
3099
|
+
readonly perPage?: number
|
|
3006
3100
|
}
|
|
3007
3101
|
|
|
3008
3102
|
/**
|
|
@@ -3049,7 +3143,7 @@ export class ErrorReportsApi extends BaseAPI {
|
|
|
3049
3143
|
* @memberof ErrorReportsApi
|
|
3050
3144
|
*/
|
|
3051
3145
|
public adminErrorsGet(requestParameters: ErrorReportsApiAdminErrorsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
3052
|
-
return ErrorReportsApiFp(this.configuration).adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
3146
|
+
return ErrorReportsApiFp(this.configuration).adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
3053
3147
|
}
|
|
3054
3148
|
|
|
3055
3149
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -199,49 +199,18 @@ export interface ApiLogPaginated {
|
|
|
199
199
|
* @memberof ApiLogPaginated
|
|
200
200
|
*/
|
|
201
201
|
'message'?: string;
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @type {ApiLogPaginatedResult}
|
|
205
|
-
* @memberof ApiLogPaginated
|
|
206
|
-
*/
|
|
207
|
-
'result'?: ApiLogPaginatedResult;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
*
|
|
211
|
-
* @export
|
|
212
|
-
* @interface ApiLogPaginatedResult
|
|
213
|
-
*/
|
|
214
|
-
export interface ApiLogPaginatedResult {
|
|
215
202
|
/**
|
|
216
203
|
*
|
|
217
204
|
* @type {Array<ApiLog>}
|
|
218
|
-
* @memberof
|
|
219
|
-
*/
|
|
220
|
-
'data'?: Array<ApiLog>;
|
|
221
|
-
/**
|
|
222
|
-
*
|
|
223
|
-
* @type {number}
|
|
224
|
-
* @memberof ApiLogPaginatedResult
|
|
225
|
-
*/
|
|
226
|
-
'current_page'?: number;
|
|
227
|
-
/**
|
|
228
|
-
*
|
|
229
|
-
* @type {number}
|
|
230
|
-
* @memberof ApiLogPaginatedResult
|
|
231
|
-
*/
|
|
232
|
-
'last_page'?: number;
|
|
233
|
-
/**
|
|
234
|
-
*
|
|
235
|
-
* @type {number}
|
|
236
|
-
* @memberof ApiLogPaginatedResult
|
|
205
|
+
* @memberof ApiLogPaginated
|
|
237
206
|
*/
|
|
238
|
-
'
|
|
207
|
+
'content'?: Array<ApiLog>;
|
|
239
208
|
/**
|
|
240
209
|
*
|
|
241
|
-
* @type {
|
|
242
|
-
* @memberof
|
|
210
|
+
* @type {Pagination}
|
|
211
|
+
* @memberof ApiLogPaginated
|
|
243
212
|
*/
|
|
244
|
-
'
|
|
213
|
+
'paging'?: Pagination;
|
|
245
214
|
}
|
|
246
215
|
/**
|
|
247
216
|
*
|
|
@@ -486,49 +455,18 @@ export interface ErrorReportPaginated {
|
|
|
486
455
|
* @memberof ErrorReportPaginated
|
|
487
456
|
*/
|
|
488
457
|
'message'?: string;
|
|
489
|
-
/**
|
|
490
|
-
*
|
|
491
|
-
* @type {ErrorReportPaginatedResult}
|
|
492
|
-
* @memberof ErrorReportPaginated
|
|
493
|
-
*/
|
|
494
|
-
'result'?: ErrorReportPaginatedResult;
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
498
|
-
* @export
|
|
499
|
-
* @interface ErrorReportPaginatedResult
|
|
500
|
-
*/
|
|
501
|
-
export interface ErrorReportPaginatedResult {
|
|
502
458
|
/**
|
|
503
459
|
*
|
|
504
460
|
* @type {Array<ErrorReport>}
|
|
505
|
-
* @memberof
|
|
506
|
-
*/
|
|
507
|
-
'data'?: Array<ErrorReport>;
|
|
508
|
-
/**
|
|
509
|
-
*
|
|
510
|
-
* @type {number}
|
|
511
|
-
* @memberof ErrorReportPaginatedResult
|
|
512
|
-
*/
|
|
513
|
-
'current_page'?: number;
|
|
514
|
-
/**
|
|
515
|
-
*
|
|
516
|
-
* @type {number}
|
|
517
|
-
* @memberof ErrorReportPaginatedResult
|
|
518
|
-
*/
|
|
519
|
-
'last_page'?: number;
|
|
520
|
-
/**
|
|
521
|
-
*
|
|
522
|
-
* @type {number}
|
|
523
|
-
* @memberof ErrorReportPaginatedResult
|
|
461
|
+
* @memberof ErrorReportPaginated
|
|
524
462
|
*/
|
|
525
|
-
'
|
|
463
|
+
'content'?: Array<ErrorReport>;
|
|
526
464
|
/**
|
|
527
465
|
*
|
|
528
|
-
* @type {
|
|
529
|
-
* @memberof
|
|
466
|
+
* @type {Pagination}
|
|
467
|
+
* @memberof ErrorReportPaginated
|
|
530
468
|
*/
|
|
531
|
-
'
|
|
469
|
+
'paging'?: Pagination;
|
|
532
470
|
}
|
|
533
471
|
/**
|
|
534
472
|
*
|
|
@@ -608,6 +546,110 @@ export interface Metrics400Response {
|
|
|
608
546
|
*/
|
|
609
547
|
'message'?: string;
|
|
610
548
|
}
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @export
|
|
552
|
+
* @interface Pagination
|
|
553
|
+
*/
|
|
554
|
+
export interface Pagination {
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {number}
|
|
558
|
+
* @memberof Pagination
|
|
559
|
+
*/
|
|
560
|
+
'current_page'?: number;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {string}
|
|
564
|
+
* @memberof Pagination
|
|
565
|
+
*/
|
|
566
|
+
'first_page_url'?: string;
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {number}
|
|
570
|
+
* @memberof Pagination
|
|
571
|
+
*/
|
|
572
|
+
'from'?: number;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {number}
|
|
576
|
+
* @memberof Pagination
|
|
577
|
+
*/
|
|
578
|
+
'last_page'?: number;
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof Pagination
|
|
583
|
+
*/
|
|
584
|
+
'last_page_url'?: string;
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @type {Array<PaginationLinksInner>}
|
|
588
|
+
* @memberof Pagination
|
|
589
|
+
*/
|
|
590
|
+
'links'?: Array<PaginationLinksInner>;
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof Pagination
|
|
595
|
+
*/
|
|
596
|
+
'next_page_url'?: string;
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @type {string}
|
|
600
|
+
* @memberof Pagination
|
|
601
|
+
*/
|
|
602
|
+
'path'?: string;
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @type {string}
|
|
606
|
+
* @memberof Pagination
|
|
607
|
+
*/
|
|
608
|
+
'per_page'?: string;
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @type {string}
|
|
612
|
+
* @memberof Pagination
|
|
613
|
+
*/
|
|
614
|
+
'prev_page_url'?: string;
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @type {number}
|
|
618
|
+
* @memberof Pagination
|
|
619
|
+
*/
|
|
620
|
+
'to'?: number;
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @type {number}
|
|
624
|
+
* @memberof Pagination
|
|
625
|
+
*/
|
|
626
|
+
'total'?: number;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @export
|
|
631
|
+
* @interface PaginationLinksInner
|
|
632
|
+
*/
|
|
633
|
+
export interface PaginationLinksInner {
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @type {string}
|
|
637
|
+
* @memberof PaginationLinksInner
|
|
638
|
+
*/
|
|
639
|
+
'url'?: string;
|
|
640
|
+
/**
|
|
641
|
+
*
|
|
642
|
+
* @type {string}
|
|
643
|
+
* @memberof PaginationLinksInner
|
|
644
|
+
*/
|
|
645
|
+
'label'?: string;
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @type {string}
|
|
649
|
+
* @memberof PaginationLinksInner
|
|
650
|
+
*/
|
|
651
|
+
'active'?: string;
|
|
652
|
+
}
|
|
611
653
|
/**
|
|
612
654
|
*
|
|
613
655
|
* @export
|
|
@@ -2103,10 +2145,12 @@ export declare const ApiLogsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2103
2145
|
* @summary List API logs
|
|
2104
2146
|
* @param {string} [q] Search text
|
|
2105
2147
|
* @param {string} [date] Filter by date (YYYY-MM-DD)
|
|
2148
|
+
* @param {number} [page] Page number for pagination
|
|
2149
|
+
* @param {number} [perPage] Number of items per page
|
|
2106
2150
|
* @param {*} [options] Override http request option.
|
|
2107
2151
|
* @throws {RequiredError}
|
|
2108
2152
|
*/
|
|
2109
|
-
adminLogsGet: (q?: string, date?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2153
|
+
adminLogsGet: (q?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2110
2154
|
/**
|
|
2111
2155
|
*
|
|
2112
2156
|
* @summary Get specific API log
|
|
@@ -2126,10 +2170,12 @@ export declare const ApiLogsApiFp: (configuration?: Configuration) => {
|
|
|
2126
2170
|
* @summary List API logs
|
|
2127
2171
|
* @param {string} [q] Search text
|
|
2128
2172
|
* @param {string} [date] Filter by date (YYYY-MM-DD)
|
|
2173
|
+
* @param {number} [page] Page number for pagination
|
|
2174
|
+
* @param {number} [perPage] Number of items per page
|
|
2129
2175
|
* @param {*} [options] Override http request option.
|
|
2130
2176
|
* @throws {RequiredError}
|
|
2131
2177
|
*/
|
|
2132
|
-
adminLogsGet(q?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLogPaginated>>;
|
|
2178
|
+
adminLogsGet(q?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLogPaginated>>;
|
|
2133
2179
|
/**
|
|
2134
2180
|
*
|
|
2135
2181
|
* @summary Get specific API log
|
|
@@ -2179,6 +2225,18 @@ export interface ApiLogsApiAdminLogsGetRequest {
|
|
|
2179
2225
|
* @memberof ApiLogsApiAdminLogsGet
|
|
2180
2226
|
*/
|
|
2181
2227
|
readonly date?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Page number for pagination
|
|
2230
|
+
* @type {number}
|
|
2231
|
+
* @memberof ApiLogsApiAdminLogsGet
|
|
2232
|
+
*/
|
|
2233
|
+
readonly page?: number;
|
|
2234
|
+
/**
|
|
2235
|
+
* Number of items per page
|
|
2236
|
+
* @type {number}
|
|
2237
|
+
* @memberof ApiLogsApiAdminLogsGet
|
|
2238
|
+
*/
|
|
2239
|
+
readonly perPage?: number;
|
|
2182
2240
|
}
|
|
2183
2241
|
/**
|
|
2184
2242
|
* Request parameters for adminLogsIdGet operation in ApiLogsApi.
|
|
@@ -2469,10 +2527,12 @@ export declare const ErrorReportsApiAxiosParamCreator: (configuration?: Configur
|
|
|
2469
2527
|
* @param {string} [q] Search through id, message, exception class, file
|
|
2470
2528
|
* @param {string} [_class] Filter by exception class
|
|
2471
2529
|
* @param {string} [date] Filter by date
|
|
2530
|
+
* @param {number} [page] Page number for pagination
|
|
2531
|
+
* @param {number} [perPage] Number of items per page
|
|
2472
2532
|
* @param {*} [options] Override http request option.
|
|
2473
2533
|
* @throws {RequiredError}
|
|
2474
2534
|
*/
|
|
2475
|
-
adminErrorsGet: (q?: string, _class?: string, date?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2535
|
+
adminErrorsGet: (q?: string, _class?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2476
2536
|
/**
|
|
2477
2537
|
*
|
|
2478
2538
|
* @summary Delete error report
|
|
@@ -2501,10 +2561,12 @@ export declare const ErrorReportsApiFp: (configuration?: Configuration) => {
|
|
|
2501
2561
|
* @param {string} [q] Search through id, message, exception class, file
|
|
2502
2562
|
* @param {string} [_class] Filter by exception class
|
|
2503
2563
|
* @param {string} [date] Filter by date
|
|
2564
|
+
* @param {number} [page] Page number for pagination
|
|
2565
|
+
* @param {number} [perPage] Number of items per page
|
|
2504
2566
|
* @param {*} [options] Override http request option.
|
|
2505
2567
|
* @throws {RequiredError}
|
|
2506
2568
|
*/
|
|
2507
|
-
adminErrorsGet(q?: string, _class?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReportPaginated>>;
|
|
2569
|
+
adminErrorsGet(q?: string, _class?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReportPaginated>>;
|
|
2508
2570
|
/**
|
|
2509
2571
|
*
|
|
2510
2572
|
* @summary Delete error report
|
|
@@ -2576,6 +2638,18 @@ export interface ErrorReportsApiAdminErrorsGetRequest {
|
|
|
2576
2638
|
* @memberof ErrorReportsApiAdminErrorsGet
|
|
2577
2639
|
*/
|
|
2578
2640
|
readonly date?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* Page number for pagination
|
|
2643
|
+
* @type {number}
|
|
2644
|
+
* @memberof ErrorReportsApiAdminErrorsGet
|
|
2645
|
+
*/
|
|
2646
|
+
readonly page?: number;
|
|
2647
|
+
/**
|
|
2648
|
+
* Number of items per page
|
|
2649
|
+
* @type {number}
|
|
2650
|
+
* @memberof ErrorReportsApiAdminErrorsGet
|
|
2651
|
+
*/
|
|
2652
|
+
readonly perPage?: number;
|
|
2579
2653
|
}
|
|
2580
2654
|
/**
|
|
2581
2655
|
* Request parameters for adminErrorsIdDelete operation in ErrorReportsApi.
|
package/dist/api.js
CHANGED
|
@@ -193,15 +193,17 @@ var ApiLogsApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
* @summary List API logs
|
|
194
194
|
* @param {string} [q] Search text
|
|
195
195
|
* @param {string} [date] Filter by date (YYYY-MM-DD)
|
|
196
|
+
* @param {number} [page] Page number for pagination
|
|
197
|
+
* @param {number} [perPage] Number of items per page
|
|
196
198
|
* @param {*} [options] Override http request option.
|
|
197
199
|
* @throws {RequiredError}
|
|
198
200
|
*/
|
|
199
|
-
adminLogsGet: function (q_1, date_1) {
|
|
201
|
+
adminLogsGet: function (q_1, date_1, page_1, perPage_1) {
|
|
200
202
|
var args_1 = [];
|
|
201
|
-
for (var _i =
|
|
202
|
-
args_1[_i -
|
|
203
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
204
|
+
args_1[_i - 4] = arguments[_i];
|
|
203
205
|
}
|
|
204
|
-
return __awaiter(_this, __spreadArray([q_1, date_1], args_1, true), void 0, function (q, date, options) {
|
|
206
|
+
return __awaiter(_this, __spreadArray([q_1, date_1, page_1, perPage_1], args_1, true), void 0, function (q, date, page, perPage, options) {
|
|
205
207
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
206
208
|
if (options === void 0) { options = {}; }
|
|
207
209
|
return __generator(this, function (_a) {
|
|
@@ -221,6 +223,12 @@ var ApiLogsApiAxiosParamCreator = function (configuration) {
|
|
|
221
223
|
date.toISOString().substring(0, 10) :
|
|
222
224
|
date;
|
|
223
225
|
}
|
|
226
|
+
if (page !== undefined) {
|
|
227
|
+
localVarQueryParameter['page'] = page;
|
|
228
|
+
}
|
|
229
|
+
if (perPage !== undefined) {
|
|
230
|
+
localVarQueryParameter['_per_page'] = perPage;
|
|
231
|
+
}
|
|
224
232
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
225
233
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
234
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -283,16 +291,18 @@ var ApiLogsApiFp = function (configuration) {
|
|
|
283
291
|
* @summary List API logs
|
|
284
292
|
* @param {string} [q] Search text
|
|
285
293
|
* @param {string} [date] Filter by date (YYYY-MM-DD)
|
|
294
|
+
* @param {number} [page] Page number for pagination
|
|
295
|
+
* @param {number} [perPage] Number of items per page
|
|
286
296
|
* @param {*} [options] Override http request option.
|
|
287
297
|
* @throws {RequiredError}
|
|
288
298
|
*/
|
|
289
|
-
adminLogsGet: function (q, date, options) {
|
|
299
|
+
adminLogsGet: function (q, date, page, perPage, options) {
|
|
290
300
|
return __awaiter(this, void 0, void 0, function () {
|
|
291
301
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
292
302
|
var _a, _b, _c;
|
|
293
303
|
return __generator(this, function (_d) {
|
|
294
304
|
switch (_d.label) {
|
|
295
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminLogsGet(q, date, options)];
|
|
305
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminLogsGet(q, date, page, perPage, options)];
|
|
296
306
|
case 1:
|
|
297
307
|
localVarAxiosArgs = _d.sent();
|
|
298
308
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -344,7 +354,7 @@ var ApiLogsApiFactory = function (configuration, basePath, axios) {
|
|
|
344
354
|
*/
|
|
345
355
|
adminLogsGet: function (requestParameters, options) {
|
|
346
356
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
347
|
-
return localVarFp.adminLogsGet(requestParameters.q, requestParameters.date, options).then(function (request) { return request(axios, basePath); });
|
|
357
|
+
return localVarFp.adminLogsGet(requestParameters.q, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
|
|
348
358
|
},
|
|
349
359
|
/**
|
|
350
360
|
*
|
|
@@ -381,7 +391,7 @@ var ApiLogsApi = /** @class */ (function (_super) {
|
|
|
381
391
|
ApiLogsApi.prototype.adminLogsGet = function (requestParameters, options) {
|
|
382
392
|
var _this = this;
|
|
383
393
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
384
|
-
return (0, exports.ApiLogsApiFp)(this.configuration).adminLogsGet(requestParameters.q, requestParameters.date, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
394
|
+
return (0, exports.ApiLogsApiFp)(this.configuration).adminLogsGet(requestParameters.q, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
385
395
|
};
|
|
386
396
|
/**
|
|
387
397
|
*
|
|
@@ -872,15 +882,17 @@ var ErrorReportsApiAxiosParamCreator = function (configuration) {
|
|
|
872
882
|
* @param {string} [q] Search through id, message, exception class, file
|
|
873
883
|
* @param {string} [_class] Filter by exception class
|
|
874
884
|
* @param {string} [date] Filter by date
|
|
885
|
+
* @param {number} [page] Page number for pagination
|
|
886
|
+
* @param {number} [perPage] Number of items per page
|
|
875
887
|
* @param {*} [options] Override http request option.
|
|
876
888
|
* @throws {RequiredError}
|
|
877
889
|
*/
|
|
878
|
-
adminErrorsGet: function (q_1, _class_1, date_1) {
|
|
890
|
+
adminErrorsGet: function (q_1, _class_1, date_1, page_1, perPage_1) {
|
|
879
891
|
var args_1 = [];
|
|
880
|
-
for (var _i =
|
|
881
|
-
args_1[_i -
|
|
892
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
893
|
+
args_1[_i - 5] = arguments[_i];
|
|
882
894
|
}
|
|
883
|
-
return __awaiter(_this, __spreadArray([q_1, _class_1, date_1], args_1, true), void 0, function (q, _class, date, options) {
|
|
895
|
+
return __awaiter(_this, __spreadArray([q_1, _class_1, date_1, page_1, perPage_1], args_1, true), void 0, function (q, _class, date, page, perPage, options) {
|
|
884
896
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
885
897
|
if (options === void 0) { options = {}; }
|
|
886
898
|
return __generator(this, function (_a) {
|
|
@@ -903,6 +915,12 @@ var ErrorReportsApiAxiosParamCreator = function (configuration) {
|
|
|
903
915
|
date.toISOString().substring(0, 10) :
|
|
904
916
|
date;
|
|
905
917
|
}
|
|
918
|
+
if (page !== undefined) {
|
|
919
|
+
localVarQueryParameter['page'] = page;
|
|
920
|
+
}
|
|
921
|
+
if (perPage !== undefined) {
|
|
922
|
+
localVarQueryParameter['_per_page'] = perPage;
|
|
923
|
+
}
|
|
906
924
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
907
925
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
908
926
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1003,16 +1021,18 @@ var ErrorReportsApiFp = function (configuration) {
|
|
|
1003
1021
|
* @param {string} [q] Search through id, message, exception class, file
|
|
1004
1022
|
* @param {string} [_class] Filter by exception class
|
|
1005
1023
|
* @param {string} [date] Filter by date
|
|
1024
|
+
* @param {number} [page] Page number for pagination
|
|
1025
|
+
* @param {number} [perPage] Number of items per page
|
|
1006
1026
|
* @param {*} [options] Override http request option.
|
|
1007
1027
|
* @throws {RequiredError}
|
|
1008
1028
|
*/
|
|
1009
|
-
adminErrorsGet: function (q, _class, date, options) {
|
|
1029
|
+
adminErrorsGet: function (q, _class, date, page, perPage, options) {
|
|
1010
1030
|
return __awaiter(this, void 0, void 0, function () {
|
|
1011
1031
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1012
1032
|
var _a, _b, _c;
|
|
1013
1033
|
return __generator(this, function (_d) {
|
|
1014
1034
|
switch (_d.label) {
|
|
1015
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminErrorsGet(q, _class, date, options)];
|
|
1035
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.adminErrorsGet(q, _class, date, page, perPage, options)];
|
|
1016
1036
|
case 1:
|
|
1017
1037
|
localVarAxiosArgs = _d.sent();
|
|
1018
1038
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1087,7 +1107,7 @@ var ErrorReportsApiFactory = function (configuration, basePath, axios) {
|
|
|
1087
1107
|
*/
|
|
1088
1108
|
adminErrorsGet: function (requestParameters, options) {
|
|
1089
1109
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1090
|
-
return localVarFp.adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, options).then(function (request) { return request(axios, basePath); });
|
|
1110
|
+
return localVarFp.adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(axios, basePath); });
|
|
1091
1111
|
},
|
|
1092
1112
|
/**
|
|
1093
1113
|
*
|
|
@@ -1134,7 +1154,7 @@ var ErrorReportsApi = /** @class */ (function (_super) {
|
|
|
1134
1154
|
ErrorReportsApi.prototype.adminErrorsGet = function (requestParameters, options) {
|
|
1135
1155
|
var _this = this;
|
|
1136
1156
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1137
|
-
return (0, exports.ErrorReportsApiFp)(this.configuration).adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1157
|
+
return (0, exports.ErrorReportsApiFp)(this.configuration).adminErrorsGet(requestParameters.q, requestParameters._class, requestParameters.date, requestParameters.page, requestParameters.perPage, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1138
1158
|
};
|
|
1139
1159
|
/**
|
|
1140
1160
|
*
|
package/docs/ApiLogPaginated.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**
|
|
9
|
+
**content** | [**Array<ApiLog>**](ApiLog.md) | | [optional] [default to undefined]
|
|
10
|
+
**paging** | [**Pagination**](Pagination.md) | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -15,7 +16,8 @@ import { ApiLogPaginated } from '@handsondigital/idplugger-admin';
|
|
|
15
16
|
|
|
16
17
|
const instance: ApiLogPaginated = {
|
|
17
18
|
message,
|
|
18
|
-
|
|
19
|
+
content,
|
|
20
|
+
paging,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
package/docs/ApiLogsApi.md
CHANGED
|
@@ -24,10 +24,14 @@ const apiInstance = new ApiLogsApi(configuration);
|
|
|
24
24
|
|
|
25
25
|
let q: string; //Search text (optional) (default to undefined)
|
|
26
26
|
let date: string; //Filter by date (YYYY-MM-DD) (optional) (default to undefined)
|
|
27
|
+
let page: number; //Page number for pagination (optional) (default to 1)
|
|
28
|
+
let perPage: number; //Number of items per page (optional) (default to 15)
|
|
27
29
|
|
|
28
30
|
const { status, data } = await apiInstance.adminLogsGet(
|
|
29
31
|
q,
|
|
30
|
-
date
|
|
32
|
+
date,
|
|
33
|
+
page,
|
|
34
|
+
perPage
|
|
31
35
|
);
|
|
32
36
|
```
|
|
33
37
|
|
|
@@ -37,6 +41,8 @@ const { status, data } = await apiInstance.adminLogsGet(
|
|
|
37
41
|
|------------- | ------------- | ------------- | -------------|
|
|
38
42
|
| **q** | [**string**] | Search text | (optional) defaults to undefined|
|
|
39
43
|
| **date** | [**string**] | Filter by date (YYYY-MM-DD) | (optional) defaults to undefined|
|
|
44
|
+
| **page** | [**number**] | Page number for pagination | (optional) defaults to 1|
|
|
45
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 15|
|
|
40
46
|
|
|
41
47
|
|
|
42
48
|
### Return type
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**
|
|
9
|
+
**content** | [**Array<ErrorReport>**](ErrorReport.md) | | [optional] [default to undefined]
|
|
10
|
+
**paging** | [**Pagination**](Pagination.md) | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -15,7 +16,8 @@ import { ErrorReportPaginated } from '@handsondigital/idplugger-admin';
|
|
|
15
16
|
|
|
16
17
|
const instance: ErrorReportPaginated = {
|
|
17
18
|
message,
|
|
18
|
-
|
|
19
|
+
content,
|
|
20
|
+
paging,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
package/docs/ErrorReportsApi.md
CHANGED
|
@@ -26,11 +26,15 @@ const apiInstance = new ErrorReportsApi(configuration);
|
|
|
26
26
|
let q: string; //Search through id, message, exception class, file (optional) (default to undefined)
|
|
27
27
|
let _class: string; //Filter by exception class (optional) (default to undefined)
|
|
28
28
|
let date: string; //Filter by date (optional) (default to undefined)
|
|
29
|
+
let page: number; //Page number for pagination (optional) (default to 1)
|
|
30
|
+
let perPage: number; //Number of items per page (optional) (default to 15)
|
|
29
31
|
|
|
30
32
|
const { status, data } = await apiInstance.adminErrorsGet(
|
|
31
33
|
q,
|
|
32
34
|
_class,
|
|
33
|
-
date
|
|
35
|
+
date,
|
|
36
|
+
page,
|
|
37
|
+
perPage
|
|
34
38
|
);
|
|
35
39
|
```
|
|
36
40
|
|
|
@@ -41,6 +45,8 @@ const { status, data } = await apiInstance.adminErrorsGet(
|
|
|
41
45
|
| **q** | [**string**] | Search through id, message, exception class, file | (optional) defaults to undefined|
|
|
42
46
|
| **_class** | [**string**] | Filter by exception class | (optional) defaults to undefined|
|
|
43
47
|
| **date** | [**string**] | Filter by date | (optional) defaults to undefined|
|
|
48
|
+
| **page** | [**number**] | Page number for pagination | (optional) defaults to 1|
|
|
49
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 15|
|
|
44
50
|
|
|
45
51
|
|
|
46
52
|
### Return type
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Pagination
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**current_page** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**first_page_url** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**from** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**last_page** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**last_page_url** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**links** | [**Array<PaginationLinksInner>**](PaginationLinksInner.md) | | [optional] [default to undefined]
|
|
14
|
+
**next_page_url** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**path** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**per_page** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**prev_page_url** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**to** | **number** | | [optional] [default to undefined]
|
|
19
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { Pagination } from '@handsondigital/idplugger-admin';
|
|
25
|
+
|
|
26
|
+
const instance: Pagination = {
|
|
27
|
+
current_page,
|
|
28
|
+
first_page_url,
|
|
29
|
+
from,
|
|
30
|
+
last_page,
|
|
31
|
+
last_page_url,
|
|
32
|
+
links,
|
|
33
|
+
next_page_url,
|
|
34
|
+
path,
|
|
35
|
+
per_page,
|
|
36
|
+
prev_page_url,
|
|
37
|
+
to,
|
|
38
|
+
total,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PaginationLinksInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**url** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**label** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**active** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PaginationLinksInner } from '@handsondigital/idplugger-admin';
|
|
16
|
+
|
|
17
|
+
const instance: PaginationLinksInner = {
|
|
18
|
+
url,
|
|
19
|
+
label,
|
|
20
|
+
active,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|