@apia/api 4.0.9 → 4.0.13
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/index.d.ts +34 -46
- package/dist/index.js +748 -392
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,17 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { AxiosResponse, AxiosRequestConfig } from 'axios';
|
|
4
4
|
import * as _apia_util from '@apia/util';
|
|
5
|
-
import {
|
|
5
|
+
import { TModify, TApiaLoad, TApiaFormElement, TApiaFilterOption, TApiaFilter, TApiaFunction, TApiaFunctionPageInfo } from '@apia/util';
|
|
6
6
|
import { TNotificationMessage, notify } from '@apia/notifications';
|
|
7
7
|
import { TModal, TOpenModal, ApiaUtilModalHandler } from '@apia/components';
|
|
8
8
|
import QueryString from 'qs';
|
|
9
|
-
import { TResponsiveTableColumn, TResponsiveTableContextProps, TResponsiveTableRow, TResponsiveTableRowsSelectionEvent, TResponsiveTableSortChangeEvent } from '@apia/table';
|
|
10
9
|
import * as lodash from 'lodash';
|
|
10
|
+
import { TResponsiveTableColumn, TResponsiveTableContextProps, TResponsiveTableRowsSelectionEvent, TResponsiveTableSortChangeEvent, TResponsiveTableRow } from '@apia/table';
|
|
11
11
|
import * as theme_ui from 'theme-ui';
|
|
12
12
|
|
|
13
13
|
declare function getConfig<LoadType>(outerBehaveConfig?: IApiaApiRequestConfig<LoadType>): IApiaApiRequestConfig<unknown> & IApiaApiRequestConfig<LoadType> & Partial<IApiaApiRequestConfig<unknown>>;
|
|
14
|
+
declare function isXmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
15
|
+
declare function isHtmlResponse(response: AxiosResponse<unknown>): RegExpMatchArray | null;
|
|
14
16
|
declare const parseSuccessfulResponse: <LoadType extends Record<string, unknown>>(response: AxiosResponse<string>, currentUrl: string, outerBehaveConfig?: IApiaApiRequestConfig<LoadType>) => Promise<(LoadType & {
|
|
15
17
|
sysMessages: {
|
|
16
18
|
message: _apia_util.TApiaMessage | _apia_util.TApiaMessage[];
|
|
@@ -173,42 +175,6 @@ declare global {
|
|
|
173
175
|
FINDER_FILTERS: string;
|
|
174
176
|
ADDITIONAL_FILTERS_LABEL: string;
|
|
175
177
|
}
|
|
176
|
-
const usersModal: {
|
|
177
|
-
columns: TResponsiveTableColumn[];
|
|
178
|
-
filters: TApiaFilter[];
|
|
179
|
-
label: string;
|
|
180
|
-
path: string;
|
|
181
|
-
};
|
|
182
|
-
const poolsModal: {
|
|
183
|
-
columns: TResponsiveTableColumn[];
|
|
184
|
-
filters: TApiaFilter[];
|
|
185
|
-
label: string;
|
|
186
|
-
path: string;
|
|
187
|
-
};
|
|
188
|
-
const environmentsModal: {
|
|
189
|
-
columns: TResponsiveTableColumn[];
|
|
190
|
-
filters: TApiaFilter[];
|
|
191
|
-
label: string;
|
|
192
|
-
path: string;
|
|
193
|
-
};
|
|
194
|
-
const orgRolesModal: {
|
|
195
|
-
columns: TResponsiveTableColumn[];
|
|
196
|
-
filters: TApiaFilter[];
|
|
197
|
-
label: string;
|
|
198
|
-
path: string;
|
|
199
|
-
};
|
|
200
|
-
const tasksModal: {
|
|
201
|
-
columns: TResponsiveTableColumn[];
|
|
202
|
-
filters: TApiaFilter[];
|
|
203
|
-
label: string;
|
|
204
|
-
path: string;
|
|
205
|
-
};
|
|
206
|
-
const processesModal: {
|
|
207
|
-
columns: TResponsiveTableColumn[];
|
|
208
|
-
filters: TApiaFilter[];
|
|
209
|
-
label: string;
|
|
210
|
-
path: string;
|
|
211
|
-
};
|
|
212
178
|
}
|
|
213
179
|
|
|
214
180
|
interface TColors {
|
|
@@ -299,7 +265,7 @@ declare global {
|
|
|
299
265
|
IV: string;
|
|
300
266
|
PASSPHRASE: string;
|
|
301
267
|
KEY_SIZE: number;
|
|
302
|
-
ITERATION_COUNT:
|
|
268
|
+
ITERATION_COUNT: number;
|
|
303
269
|
}
|
|
304
270
|
}
|
|
305
271
|
/**
|
|
@@ -323,8 +289,10 @@ type TFilter = {
|
|
|
323
289
|
runAutomatically?: boolean;
|
|
324
290
|
title?: string;
|
|
325
291
|
tooltip?: string;
|
|
292
|
+
isRange?: boolean;
|
|
326
293
|
type?: 'date' | 'D' | 'S' | 'number' | 'N' | 'apiaNumber' | 'triple' | 'dateHour';
|
|
327
294
|
value: any;
|
|
295
|
+
isSize?: boolean;
|
|
328
296
|
};
|
|
329
297
|
|
|
330
298
|
type FilterState = TFilter;
|
|
@@ -433,14 +401,14 @@ declare class QueryController {
|
|
|
433
401
|
structure: QueryControllerStructure | null;
|
|
434
402
|
tableController: TableController;
|
|
435
403
|
constructor(ajaxUrl: string);
|
|
436
|
-
|
|
404
|
+
protected initEvents(): void;
|
|
437
405
|
protected getLoadStructureParameters(): Record<string, unknown>;
|
|
438
406
|
protected getClearFiltersParameters(): Record<string, unknown>;
|
|
439
407
|
protected getFiltersValuesMap(): Record<string, unknown>;
|
|
440
408
|
protected getPageParameters(): Record<string, unknown>;
|
|
441
409
|
protected getRefreshParameters(): Record<string, unknown>;
|
|
442
410
|
protected getSortParameters(): Record<string, unknown>;
|
|
443
|
-
protected parseLoadStructureResponse(response:
|
|
411
|
+
protected parseLoadStructureResponse(response: any): QueryControllerStructure;
|
|
444
412
|
protected parseRefreshResponse(response?: TApiaFunction | null): void;
|
|
445
413
|
protected getStructure(): Promise<QueryControllerStructure>;
|
|
446
414
|
protected parseStructure(structure: QueryControllerStructure): void;
|
|
@@ -450,15 +418,18 @@ declare class QueryController {
|
|
|
450
418
|
initialLoad(): Promise<void>;
|
|
451
419
|
page(num: number): Promise<void>;
|
|
452
420
|
protected areRequiredFilters(): boolean;
|
|
421
|
+
protected actualRefreshMethod(): Promise<void>;
|
|
453
422
|
/**
|
|
454
423
|
* Allows to throttle calls to actual refresh method.
|
|
455
424
|
*/
|
|
456
425
|
protected executeRefresh: lodash.DebouncedFunc<() => Promise<void>>;
|
|
457
|
-
refresh(): Promise<void | undefined>;
|
|
426
|
+
refresh(now?: boolean): Promise<void | undefined>;
|
|
458
427
|
sort(column: string): Promise<void>;
|
|
459
428
|
}
|
|
460
429
|
|
|
461
|
-
type QueryModalControllerEvents = Pick<TableControllerEvents, 'onSelectRows'
|
|
430
|
+
type QueryModalControllerEvents = Pick<TableControllerEvents, 'onSelectRows'> & {
|
|
431
|
+
cancel: null;
|
|
432
|
+
};
|
|
462
433
|
declare class QueryModalController {
|
|
463
434
|
private emitter;
|
|
464
435
|
protected queryController: QueryController;
|
|
@@ -468,10 +439,27 @@ declare class QueryModalController {
|
|
|
468
439
|
constructor(queryController: QueryController);
|
|
469
440
|
protected getModalDefinition(): TOpenModal;
|
|
470
441
|
getQueryController(): QueryController;
|
|
471
|
-
on
|
|
472
|
-
openModal
|
|
442
|
+
private on;
|
|
443
|
+
openModal(properties?: TOpenModal): Promise<QueryModalControllerEvents['onSelectRows']>;
|
|
473
444
|
getModalHandler(): ApiaUtilModalHandler | null;
|
|
474
445
|
}
|
|
475
446
|
|
|
476
|
-
|
|
447
|
+
declare const ApiaUsersModal2: QueryModalController;
|
|
448
|
+
|
|
449
|
+
declare const ApiaPoolsModals2: QueryModalController;
|
|
450
|
+
|
|
451
|
+
type TOpenMonDocModal = {
|
|
452
|
+
docTypeId: string[];
|
|
453
|
+
docTypeSel: string;
|
|
454
|
+
monDocId: number;
|
|
455
|
+
};
|
|
456
|
+
declare class ApiaMonDocModal extends QueryModalController {
|
|
457
|
+
constructor();
|
|
458
|
+
openModal(properties: TOpenModal & {
|
|
459
|
+
monitorProperties: TOpenMonDocModal;
|
|
460
|
+
}): Promise<TResponsiveTableRowsSelectionEvent>;
|
|
461
|
+
}
|
|
462
|
+
declare const ApiaMonDocModal2: ApiaMonDocModal;
|
|
463
|
+
|
|
464
|
+
export { ApiaApi, ApiaApiHandler, ApiaMonDocModal2, ApiaPoolsModals2, ApiaUsersModal2, type IApiaApiRequestConfig, QueryController, type QueryControllerStructure, QueryModalController, type TApiaApiAxiosResponse, type TApiaApiMethod, type TApiaApiResult, type TFilter, getFunction, getModal, isHtmlResponse, isXmlResponse, makeApiaUrl, parseSuccessfulResponse };
|
|
477
465
|
//# sourceMappingURL=index.d.ts.map
|