@handsondigital/idplugger-admin 2.0.2 → 2.1.0

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/dist/api.d.ts CHANGED
@@ -120,6 +120,129 @@ export interface AdminPromotionCacheClear500Response {
120
120
  */
121
121
  'message'?: string;
122
122
  }
123
+ /**
124
+ *
125
+ * @export
126
+ * @interface ApiLog
127
+ */
128
+ export interface ApiLog {
129
+ /**
130
+ *
131
+ * @type {number}
132
+ * @memberof ApiLog
133
+ */
134
+ 'id'?: number;
135
+ /**
136
+ *
137
+ * @type {string}
138
+ * @memberof ApiLog
139
+ */
140
+ 'path'?: string;
141
+ /**
142
+ *
143
+ * @type {string}
144
+ * @memberof ApiLog
145
+ */
146
+ 'method'?: string;
147
+ /**
148
+ *
149
+ * @type {string}
150
+ * @memberof ApiLog
151
+ */
152
+ 'ip'?: string;
153
+ /**
154
+ *
155
+ * @type {string}
156
+ * @memberof ApiLog
157
+ */
158
+ 'http_version'?: string;
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof ApiLog
163
+ */
164
+ 'api_username'?: string | null;
165
+ /**
166
+ *
167
+ * @type {number}
168
+ * @memberof ApiLog
169
+ */
170
+ 'status_code'?: number;
171
+ /**
172
+ *
173
+ * @type {object}
174
+ * @memberof ApiLog
175
+ */
176
+ 'request'?: object;
177
+ /**
178
+ *
179
+ * @type {object}
180
+ * @memberof ApiLog
181
+ */
182
+ 'response'?: object;
183
+ /**
184
+ *
185
+ * @type {string}
186
+ * @memberof ApiLog
187
+ */
188
+ 'created_at'?: string;
189
+ }
190
+ /**
191
+ *
192
+ * @export
193
+ * @interface ApiLogPaginated
194
+ */
195
+ export interface ApiLogPaginated {
196
+ /**
197
+ *
198
+ * @type {string}
199
+ * @memberof ApiLogPaginated
200
+ */
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
+ /**
216
+ *
217
+ * @type {Array<ApiLog>}
218
+ * @memberof ApiLogPaginatedResult
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
237
+ */
238
+ 'per_page'?: number;
239
+ /**
240
+ *
241
+ * @type {number}
242
+ * @memberof ApiLogPaginatedResult
243
+ */
244
+ 'total'?: number;
245
+ }
123
246
  /**
124
247
  *
125
248
  * @export
@@ -296,6 +419,138 @@ export interface AuthRefreshTokenRequest {
296
419
  */
297
420
  'refresh_token'?: string;
298
421
  }
422
+ /**
423
+ *
424
+ * @export
425
+ * @interface ErrorReport
426
+ */
427
+ export interface ErrorReport {
428
+ /**
429
+ *
430
+ * @type {string}
431
+ * @memberof ErrorReport
432
+ */
433
+ 'id'?: string;
434
+ /**
435
+ *
436
+ * @type {string}
437
+ * @memberof ErrorReport
438
+ */
439
+ 'message'?: string;
440
+ /**
441
+ *
442
+ * @type {string}
443
+ * @memberof ErrorReport
444
+ */
445
+ 'trace'?: string;
446
+ /**
447
+ *
448
+ * @type {string}
449
+ * @memberof ErrorReport
450
+ */
451
+ 'exception_class'?: string;
452
+ /**
453
+ *
454
+ * @type {string}
455
+ * @memberof ErrorReport
456
+ */
457
+ 'file'?: string;
458
+ /**
459
+ *
460
+ * @type {number}
461
+ * @memberof ErrorReport
462
+ */
463
+ 'line'?: number;
464
+ /**
465
+ *
466
+ * @type {object}
467
+ * @memberof ErrorReport
468
+ */
469
+ 'context'?: object | null;
470
+ /**
471
+ *
472
+ * @type {string}
473
+ * @memberof ErrorReport
474
+ */
475
+ 'created_at'?: string;
476
+ }
477
+ /**
478
+ *
479
+ * @export
480
+ * @interface ErrorReportPaginated
481
+ */
482
+ export interface ErrorReportPaginated {
483
+ /**
484
+ *
485
+ * @type {string}
486
+ * @memberof ErrorReportPaginated
487
+ */
488
+ '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
+ /**
503
+ *
504
+ * @type {Array<ErrorReport>}
505
+ * @memberof ErrorReportPaginatedResult
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
524
+ */
525
+ 'per_page'?: number;
526
+ /**
527
+ *
528
+ * @type {number}
529
+ * @memberof ErrorReportPaginatedResult
530
+ */
531
+ 'total'?: number;
532
+ }
533
+ /**
534
+ *
535
+ * @export
536
+ * @interface ErrorResponse
537
+ */
538
+ export interface ErrorResponse {
539
+ /**
540
+ *
541
+ * @type {string}
542
+ * @memberof ErrorResponse
543
+ */
544
+ 'message'?: string;
545
+ /**
546
+ *
547
+ * @type {{ [key: string]: Array<string>; }}
548
+ * @memberof ErrorResponse
549
+ */
550
+ 'errors'?: {
551
+ [key: string]: Array<string>;
552
+ };
553
+ }
299
554
  /**
300
555
  *
301
556
  * @export
@@ -1351,6 +1606,19 @@ export interface StepsUnallow409Response {
1351
1606
  */
1352
1607
  'message'?: string;
1353
1608
  }
1609
+ /**
1610
+ *
1611
+ * @export
1612
+ * @interface SuccessResponse
1613
+ */
1614
+ export interface SuccessResponse {
1615
+ /**
1616
+ *
1617
+ * @type {string}
1618
+ * @memberof SuccessResponse
1619
+ */
1620
+ 'message'?: string;
1621
+ }
1354
1622
  /**
1355
1623
  *
1356
1624
  * @export
@@ -1825,6 +2093,132 @@ export interface UserUpdateRequest {
1825
2093
  */
1826
2094
  'name': string;
1827
2095
  }
2096
+ /**
2097
+ * ApiLogsApi - axios parameter creator
2098
+ * @export
2099
+ */
2100
+ export declare const ApiLogsApiAxiosParamCreator: (configuration?: Configuration) => {
2101
+ /**
2102
+ *
2103
+ * @summary List API logs
2104
+ * @param {string} [q] Search text
2105
+ * @param {string} [date] Filter by date (YYYY-MM-DD)
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ adminLogsGet: (q?: string, date?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2110
+ /**
2111
+ *
2112
+ * @summary Get specific API log
2113
+ * @param {number} id
2114
+ * @param {*} [options] Override http request option.
2115
+ * @throws {RequiredError}
2116
+ */
2117
+ adminLogsIdGet: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2118
+ };
2119
+ /**
2120
+ * ApiLogsApi - functional programming interface
2121
+ * @export
2122
+ */
2123
+ export declare const ApiLogsApiFp: (configuration?: Configuration) => {
2124
+ /**
2125
+ *
2126
+ * @summary List API logs
2127
+ * @param {string} [q] Search text
2128
+ * @param {string} [date] Filter by date (YYYY-MM-DD)
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ */
2132
+ adminLogsGet(q?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLogPaginated>>;
2133
+ /**
2134
+ *
2135
+ * @summary Get specific API log
2136
+ * @param {number} id
2137
+ * @param {*} [options] Override http request option.
2138
+ * @throws {RequiredError}
2139
+ */
2140
+ adminLogsIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLog>>;
2141
+ };
2142
+ /**
2143
+ * ApiLogsApi - factory interface
2144
+ * @export
2145
+ */
2146
+ export declare const ApiLogsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2147
+ /**
2148
+ *
2149
+ * @summary List API logs
2150
+ * @param {ApiLogsApiAdminLogsGetRequest} requestParameters Request parameters.
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ adminLogsGet(requestParameters?: ApiLogsApiAdminLogsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiLogPaginated>;
2155
+ /**
2156
+ *
2157
+ * @summary Get specific API log
2158
+ * @param {ApiLogsApiAdminLogsIdGetRequest} requestParameters Request parameters.
2159
+ * @param {*} [options] Override http request option.
2160
+ * @throws {RequiredError}
2161
+ */
2162
+ adminLogsIdGet(requestParameters: ApiLogsApiAdminLogsIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiLog>;
2163
+ };
2164
+ /**
2165
+ * Request parameters for adminLogsGet operation in ApiLogsApi.
2166
+ * @export
2167
+ * @interface ApiLogsApiAdminLogsGetRequest
2168
+ */
2169
+ export interface ApiLogsApiAdminLogsGetRequest {
2170
+ /**
2171
+ * Search text
2172
+ * @type {string}
2173
+ * @memberof ApiLogsApiAdminLogsGet
2174
+ */
2175
+ readonly q?: string;
2176
+ /**
2177
+ * Filter by date (YYYY-MM-DD)
2178
+ * @type {string}
2179
+ * @memberof ApiLogsApiAdminLogsGet
2180
+ */
2181
+ readonly date?: string;
2182
+ }
2183
+ /**
2184
+ * Request parameters for adminLogsIdGet operation in ApiLogsApi.
2185
+ * @export
2186
+ * @interface ApiLogsApiAdminLogsIdGetRequest
2187
+ */
2188
+ export interface ApiLogsApiAdminLogsIdGetRequest {
2189
+ /**
2190
+ *
2191
+ * @type {number}
2192
+ * @memberof ApiLogsApiAdminLogsIdGet
2193
+ */
2194
+ readonly id: number;
2195
+ }
2196
+ /**
2197
+ * ApiLogsApi - object-oriented interface
2198
+ * @export
2199
+ * @class ApiLogsApi
2200
+ * @extends {BaseAPI}
2201
+ */
2202
+ export declare class ApiLogsApi extends BaseAPI {
2203
+ /**
2204
+ *
2205
+ * @summary List API logs
2206
+ * @param {ApiLogsApiAdminLogsGetRequest} requestParameters Request parameters.
2207
+ * @param {*} [options] Override http request option.
2208
+ * @throws {RequiredError}
2209
+ * @memberof ApiLogsApi
2210
+ */
2211
+ adminLogsGet(requestParameters?: ApiLogsApiAdminLogsGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiLogPaginated, any, {}>>;
2212
+ /**
2213
+ *
2214
+ * @summary Get specific API log
2215
+ * @param {ApiLogsApiAdminLogsIdGetRequest} requestParameters Request parameters.
2216
+ * @param {*} [options] Override http request option.
2217
+ * @throws {RequiredError}
2218
+ * @memberof ApiLogsApi
2219
+ */
2220
+ adminLogsIdGet(requestParameters: ApiLogsApiAdminLogsIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiLog, any, {}>>;
2221
+ }
1828
2222
  /**
1829
2223
  * AuthApi - axios parameter creator
1830
2224
  * @export
@@ -2064,6 +2458,186 @@ export declare class AuthApi extends BaseAPI {
2064
2458
  */
2065
2459
  authRefreshToken(requestParameters?: AuthApiAuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthLoginByToken200Response, any, {}>>;
2066
2460
  }
2461
+ /**
2462
+ * ErrorReportsApi - axios parameter creator
2463
+ * @export
2464
+ */
2465
+ export declare const ErrorReportsApiAxiosParamCreator: (configuration?: Configuration) => {
2466
+ /**
2467
+ *
2468
+ * @summary List error reports
2469
+ * @param {string} [q] Search through id, message, exception class, file
2470
+ * @param {string} [_class] Filter by exception class
2471
+ * @param {string} [date] Filter by date
2472
+ * @param {*} [options] Override http request option.
2473
+ * @throws {RequiredError}
2474
+ */
2475
+ adminErrorsGet: (q?: string, _class?: string, date?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2476
+ /**
2477
+ *
2478
+ * @summary Delete error report
2479
+ * @param {string} id
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ adminErrorsIdDelete: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2484
+ /**
2485
+ *
2486
+ * @summary Get specific error report
2487
+ * @param {string} id
2488
+ * @param {*} [options] Override http request option.
2489
+ * @throws {RequiredError}
2490
+ */
2491
+ adminErrorsIdGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2492
+ };
2493
+ /**
2494
+ * ErrorReportsApi - functional programming interface
2495
+ * @export
2496
+ */
2497
+ export declare const ErrorReportsApiFp: (configuration?: Configuration) => {
2498
+ /**
2499
+ *
2500
+ * @summary List error reports
2501
+ * @param {string} [q] Search through id, message, exception class, file
2502
+ * @param {string} [_class] Filter by exception class
2503
+ * @param {string} [date] Filter by date
2504
+ * @param {*} [options] Override http request option.
2505
+ * @throws {RequiredError}
2506
+ */
2507
+ adminErrorsGet(q?: string, _class?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReportPaginated>>;
2508
+ /**
2509
+ *
2510
+ * @summary Delete error report
2511
+ * @param {string} id
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ */
2515
+ adminErrorsIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>>;
2516
+ /**
2517
+ *
2518
+ * @summary Get specific error report
2519
+ * @param {string} id
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ adminErrorsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReport>>;
2524
+ };
2525
+ /**
2526
+ * ErrorReportsApi - factory interface
2527
+ * @export
2528
+ */
2529
+ export declare const ErrorReportsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2530
+ /**
2531
+ *
2532
+ * @summary List error reports
2533
+ * @param {ErrorReportsApiAdminErrorsGetRequest} requestParameters Request parameters.
2534
+ * @param {*} [options] Override http request option.
2535
+ * @throws {RequiredError}
2536
+ */
2537
+ adminErrorsGet(requestParameters?: ErrorReportsApiAdminErrorsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ErrorReportPaginated>;
2538
+ /**
2539
+ *
2540
+ * @summary Delete error report
2541
+ * @param {ErrorReportsApiAdminErrorsIdDeleteRequest} requestParameters Request parameters.
2542
+ * @param {*} [options] Override http request option.
2543
+ * @throws {RequiredError}
2544
+ */
2545
+ adminErrorsIdDelete(requestParameters: ErrorReportsApiAdminErrorsIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse>;
2546
+ /**
2547
+ *
2548
+ * @summary Get specific error report
2549
+ * @param {ErrorReportsApiAdminErrorsIdGetRequest} requestParameters Request parameters.
2550
+ * @param {*} [options] Override http request option.
2551
+ * @throws {RequiredError}
2552
+ */
2553
+ adminErrorsIdGet(requestParameters: ErrorReportsApiAdminErrorsIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ErrorReport>;
2554
+ };
2555
+ /**
2556
+ * Request parameters for adminErrorsGet operation in ErrorReportsApi.
2557
+ * @export
2558
+ * @interface ErrorReportsApiAdminErrorsGetRequest
2559
+ */
2560
+ export interface ErrorReportsApiAdminErrorsGetRequest {
2561
+ /**
2562
+ * Search through id, message, exception class, file
2563
+ * @type {string}
2564
+ * @memberof ErrorReportsApiAdminErrorsGet
2565
+ */
2566
+ readonly q?: string;
2567
+ /**
2568
+ * Filter by exception class
2569
+ * @type {string}
2570
+ * @memberof ErrorReportsApiAdminErrorsGet
2571
+ */
2572
+ readonly _class?: string;
2573
+ /**
2574
+ * Filter by date
2575
+ * @type {string}
2576
+ * @memberof ErrorReportsApiAdminErrorsGet
2577
+ */
2578
+ readonly date?: string;
2579
+ }
2580
+ /**
2581
+ * Request parameters for adminErrorsIdDelete operation in ErrorReportsApi.
2582
+ * @export
2583
+ * @interface ErrorReportsApiAdminErrorsIdDeleteRequest
2584
+ */
2585
+ export interface ErrorReportsApiAdminErrorsIdDeleteRequest {
2586
+ /**
2587
+ *
2588
+ * @type {string}
2589
+ * @memberof ErrorReportsApiAdminErrorsIdDelete
2590
+ */
2591
+ readonly id: string;
2592
+ }
2593
+ /**
2594
+ * Request parameters for adminErrorsIdGet operation in ErrorReportsApi.
2595
+ * @export
2596
+ * @interface ErrorReportsApiAdminErrorsIdGetRequest
2597
+ */
2598
+ export interface ErrorReportsApiAdminErrorsIdGetRequest {
2599
+ /**
2600
+ *
2601
+ * @type {string}
2602
+ * @memberof ErrorReportsApiAdminErrorsIdGet
2603
+ */
2604
+ readonly id: string;
2605
+ }
2606
+ /**
2607
+ * ErrorReportsApi - object-oriented interface
2608
+ * @export
2609
+ * @class ErrorReportsApi
2610
+ * @extends {BaseAPI}
2611
+ */
2612
+ export declare class ErrorReportsApi extends BaseAPI {
2613
+ /**
2614
+ *
2615
+ * @summary List error reports
2616
+ * @param {ErrorReportsApiAdminErrorsGetRequest} requestParameters Request parameters.
2617
+ * @param {*} [options] Override http request option.
2618
+ * @throws {RequiredError}
2619
+ * @memberof ErrorReportsApi
2620
+ */
2621
+ adminErrorsGet(requestParameters?: ErrorReportsApiAdminErrorsGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ErrorReportPaginated, any, {}>>;
2622
+ /**
2623
+ *
2624
+ * @summary Delete error report
2625
+ * @param {ErrorReportsApiAdminErrorsIdDeleteRequest} requestParameters Request parameters.
2626
+ * @param {*} [options] Override http request option.
2627
+ * @throws {RequiredError}
2628
+ * @memberof ErrorReportsApi
2629
+ */
2630
+ adminErrorsIdDelete(requestParameters: ErrorReportsApiAdminErrorsIdDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SuccessResponse, any, {}>>;
2631
+ /**
2632
+ *
2633
+ * @summary Get specific error report
2634
+ * @param {ErrorReportsApiAdminErrorsIdGetRequest} requestParameters Request parameters.
2635
+ * @param {*} [options] Override http request option.
2636
+ * @throws {RequiredError}
2637
+ * @memberof ErrorReportsApi
2638
+ */
2639
+ adminErrorsIdGet(requestParameters: ErrorReportsApiAdminErrorsIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ErrorReport, any, {}>>;
2640
+ }
2067
2641
  /**
2068
2642
  * MetricsApi - axios parameter creator
2069
2643
  * @export