@handsondigital/idplugger-admin 2.1.1 → 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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @handsondigital/idplugger-admin@2.1.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.1 --save
39
+ npm install @handsondigital/idplugger-admin@2.1.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -2157,10 +2157,12 @@ export const ApiLogsApiAxiosParamCreator = function (configuration?: Configurati
2157
2157
  * @summary List API logs
2158
2158
  * @param {string} [q] Search text
2159
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
2160
2162
  * @param {*} [options] Override http request option.
2161
2163
  * @throws {RequiredError}
2162
2164
  */
2163
- 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> => {
2164
2166
  const localVarPath = `/admin/logs`;
2165
2167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2166
2168
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2183,6 +2185,14 @@ export const ApiLogsApiAxiosParamCreator = function (configuration?: Configurati
2183
2185
  date;
2184
2186
  }
2185
2187
 
2188
+ if (page !== undefined) {
2189
+ localVarQueryParameter['page'] = page;
2190
+ }
2191
+
2192
+ if (perPage !== undefined) {
2193
+ localVarQueryParameter['_per_page'] = perPage;
2194
+ }
2195
+
2186
2196
 
2187
2197
 
2188
2198
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2243,11 +2253,13 @@ export const ApiLogsApiFp = function(configuration?: Configuration) {
2243
2253
  * @summary List API logs
2244
2254
  * @param {string} [q] Search text
2245
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
2246
2258
  * @param {*} [options] Override http request option.
2247
2259
  * @throws {RequiredError}
2248
2260
  */
2249
- async adminLogsGet(q?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiLogPaginated>> {
2250
- 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);
2251
2263
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2252
2264
  const localVarOperationServerBasePath = operationServerMap['ApiLogsApi.adminLogsGet']?.[localVarOperationServerIndex]?.url;
2253
2265
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2283,7 +2295,7 @@ export const ApiLogsApiFactory = function (configuration?: Configuration, basePa
2283
2295
  * @throws {RequiredError}
2284
2296
  */
2285
2297
  adminLogsGet(requestParameters: ApiLogsApiAdminLogsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ApiLogPaginated> {
2286
- 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));
2287
2299
  },
2288
2300
  /**
2289
2301
  *
@@ -2317,6 +2329,20 @@ export interface ApiLogsApiAdminLogsGetRequest {
2317
2329
  * @memberof ApiLogsApiAdminLogsGet
2318
2330
  */
2319
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
2320
2346
  }
2321
2347
 
2322
2348
  /**
@@ -2349,7 +2375,7 @@ export class ApiLogsApi extends BaseAPI {
2349
2375
  * @memberof ApiLogsApi
2350
2376
  */
2351
2377
  public adminLogsGet(requestParameters: ApiLogsApiAdminLogsGetRequest = {}, options?: RawAxiosRequestConfig) {
2352
- 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));
2353
2379
  }
2354
2380
 
2355
2381
  /**
@@ -2816,10 +2842,12 @@ export const ErrorReportsApiAxiosParamCreator = function (configuration?: Config
2816
2842
  * @param {string} [q] Search through id, message, exception class, file
2817
2843
  * @param {string} [_class] Filter by exception class
2818
2844
  * @param {string} [date] Filter by date
2845
+ * @param {number} [page] Page number for pagination
2846
+ * @param {number} [perPage] Number of items per page
2819
2847
  * @param {*} [options] Override http request option.
2820
2848
  * @throws {RequiredError}
2821
2849
  */
2822
- 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> => {
2823
2851
  const localVarPath = `/admin/errors`;
2824
2852
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2825
2853
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2846,6 +2874,14 @@ export const ErrorReportsApiAxiosParamCreator = function (configuration?: Config
2846
2874
  date;
2847
2875
  }
2848
2876
 
2877
+ if (page !== undefined) {
2878
+ localVarQueryParameter['page'] = page;
2879
+ }
2880
+
2881
+ if (perPage !== undefined) {
2882
+ localVarQueryParameter['_per_page'] = perPage;
2883
+ }
2884
+
2849
2885
 
2850
2886
 
2851
2887
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2941,11 +2977,13 @@ export const ErrorReportsApiFp = function(configuration?: Configuration) {
2941
2977
  * @param {string} [q] Search through id, message, exception class, file
2942
2978
  * @param {string} [_class] Filter by exception class
2943
2979
  * @param {string} [date] Filter by date
2980
+ * @param {number} [page] Page number for pagination
2981
+ * @param {number} [perPage] Number of items per page
2944
2982
  * @param {*} [options] Override http request option.
2945
2983
  * @throws {RequiredError}
2946
2984
  */
2947
- async adminErrorsGet(q?: string, _class?: string, date?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorReportPaginated>> {
2948
- 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);
2949
2987
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2950
2988
  const localVarOperationServerBasePath = operationServerMap['ErrorReportsApi.adminErrorsGet']?.[localVarOperationServerIndex]?.url;
2951
2989
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2994,7 +3032,7 @@ export const ErrorReportsApiFactory = function (configuration?: Configuration, b
2994
3032
  * @throws {RequiredError}
2995
3033
  */
2996
3034
  adminErrorsGet(requestParameters: ErrorReportsApiAdminErrorsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ErrorReportPaginated> {
2997
- 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));
2998
3036
  },
2999
3037
  /**
3000
3038
  *
@@ -3045,6 +3083,20 @@ export interface ErrorReportsApiAdminErrorsGetRequest {
3045
3083
  * @memberof ErrorReportsApiAdminErrorsGet
3046
3084
  */
3047
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
3048
3100
  }
3049
3101
 
3050
3102
  /**
@@ -3091,7 +3143,7 @@ export class ErrorReportsApi extends BaseAPI {
3091
3143
  * @memberof ErrorReportsApi
3092
3144
  */
3093
3145
  public adminErrorsGet(requestParameters: ErrorReportsApiAdminErrorsGetRequest = {}, options?: RawAxiosRequestConfig) {
3094
- 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));
3095
3147
  }
3096
3148
 
3097
3149
  /**
package/dist/api.d.ts CHANGED
@@ -2145,10 +2145,12 @@ export declare const ApiLogsApiAxiosParamCreator: (configuration?: Configuration
2145
2145
  * @summary List API logs
2146
2146
  * @param {string} [q] Search text
2147
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
2148
2150
  * @param {*} [options] Override http request option.
2149
2151
  * @throws {RequiredError}
2150
2152
  */
2151
- adminLogsGet: (q?: string, date?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2153
+ adminLogsGet: (q?: string, date?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2152
2154
  /**
2153
2155
  *
2154
2156
  * @summary Get specific API log
@@ -2168,10 +2170,12 @@ export declare const ApiLogsApiFp: (configuration?: Configuration) => {
2168
2170
  * @summary List API logs
2169
2171
  * @param {string} [q] Search text
2170
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
2171
2175
  * @param {*} [options] Override http request option.
2172
2176
  * @throws {RequiredError}
2173
2177
  */
2174
- 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>>;
2175
2179
  /**
2176
2180
  *
2177
2181
  * @summary Get specific API log
@@ -2221,6 +2225,18 @@ export interface ApiLogsApiAdminLogsGetRequest {
2221
2225
  * @memberof ApiLogsApiAdminLogsGet
2222
2226
  */
2223
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;
2224
2240
  }
2225
2241
  /**
2226
2242
  * Request parameters for adminLogsIdGet operation in ApiLogsApi.
@@ -2511,10 +2527,12 @@ export declare const ErrorReportsApiAxiosParamCreator: (configuration?: Configur
2511
2527
  * @param {string} [q] Search through id, message, exception class, file
2512
2528
  * @param {string} [_class] Filter by exception class
2513
2529
  * @param {string} [date] Filter by date
2530
+ * @param {number} [page] Page number for pagination
2531
+ * @param {number} [perPage] Number of items per page
2514
2532
  * @param {*} [options] Override http request option.
2515
2533
  * @throws {RequiredError}
2516
2534
  */
2517
- 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>;
2518
2536
  /**
2519
2537
  *
2520
2538
  * @summary Delete error report
@@ -2543,10 +2561,12 @@ export declare const ErrorReportsApiFp: (configuration?: Configuration) => {
2543
2561
  * @param {string} [q] Search through id, message, exception class, file
2544
2562
  * @param {string} [_class] Filter by exception class
2545
2563
  * @param {string} [date] Filter by date
2564
+ * @param {number} [page] Page number for pagination
2565
+ * @param {number} [perPage] Number of items per page
2546
2566
  * @param {*} [options] Override http request option.
2547
2567
  * @throws {RequiredError}
2548
2568
  */
2549
- 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>>;
2550
2570
  /**
2551
2571
  *
2552
2572
  * @summary Delete error report
@@ -2618,6 +2638,18 @@ export interface ErrorReportsApiAdminErrorsGetRequest {
2618
2638
  * @memberof ErrorReportsApiAdminErrorsGet
2619
2639
  */
2620
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;
2621
2653
  }
2622
2654
  /**
2623
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 = 2; _i < arguments.length; _i++) {
202
- args_1[_i - 2] = arguments[_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 = 3; _i < arguments.length; _i++) {
881
- args_1[_i - 3] = arguments[_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
  *
@@ -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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsondigital/idplugger-admin",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "OpenAPI client for @handsondigital/idplugger-admin",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {