@apia/api 3.0.16 → 3.0.17
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 +15 -40
- package/dist/index.js +243 -236
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,26 @@ 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, TResponsiveTableRow, TResponsiveTableRowsSelectionEvent, TResponsiveTableSortChangeEvent } 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 const parseSuccessfulResponse: <LoadType extends Record<string, unknown>>(response: AxiosResponse<string>, currentUrl: string, outerBehaveConfig?: IApiaApiRequestConfig<LoadType>) => Promise<(LoadType & {
|
|
15
|
+
sysMessages: {
|
|
16
|
+
message: _apia_util.TApiaMessage | _apia_util.TApiaMessage[];
|
|
17
|
+
} | undefined;
|
|
18
|
+
exceptions: {
|
|
19
|
+
exception: _apia_util.TApiaMessage | _apia_util.TApiaMessage[];
|
|
20
|
+
} | undefined;
|
|
21
|
+
sysExceptions: {
|
|
22
|
+
exception: _apia_util.TApiaMessage | _apia_util.TApiaMessage[];
|
|
23
|
+
} | undefined;
|
|
24
|
+
}) | null>;
|
|
14
25
|
type TApiaApiAxiosResponse<LoadType> = AxiosResponse<LoadType | null> & {
|
|
15
26
|
hasError: boolean;
|
|
16
27
|
hasMessages: boolean;
|
|
@@ -162,42 +173,6 @@ declare global {
|
|
|
162
173
|
FINDER_FILTERS: string;
|
|
163
174
|
ADDITIONAL_FILTERS_LABEL: string;
|
|
164
175
|
}
|
|
165
|
-
const usersModal: {
|
|
166
|
-
columns: TResponsiveTableColumn[];
|
|
167
|
-
filters: TApiaFilter[];
|
|
168
|
-
label: string;
|
|
169
|
-
path: string;
|
|
170
|
-
};
|
|
171
|
-
const poolsModal: {
|
|
172
|
-
columns: TResponsiveTableColumn[];
|
|
173
|
-
filters: TApiaFilter[];
|
|
174
|
-
label: string;
|
|
175
|
-
path: string;
|
|
176
|
-
};
|
|
177
|
-
const environmentsModal: {
|
|
178
|
-
columns: TResponsiveTableColumn[];
|
|
179
|
-
filters: TApiaFilter[];
|
|
180
|
-
label: string;
|
|
181
|
-
path: string;
|
|
182
|
-
};
|
|
183
|
-
const orgRolesModal: {
|
|
184
|
-
columns: TResponsiveTableColumn[];
|
|
185
|
-
filters: TApiaFilter[];
|
|
186
|
-
label: string;
|
|
187
|
-
path: string;
|
|
188
|
-
};
|
|
189
|
-
const tasksModal: {
|
|
190
|
-
columns: TResponsiveTableColumn[];
|
|
191
|
-
filters: TApiaFilter[];
|
|
192
|
-
label: string;
|
|
193
|
-
path: string;
|
|
194
|
-
};
|
|
195
|
-
const processesModal: {
|
|
196
|
-
columns: TResponsiveTableColumn[];
|
|
197
|
-
filters: TApiaFilter[];
|
|
198
|
-
label: string;
|
|
199
|
-
path: string;
|
|
200
|
-
};
|
|
201
176
|
}
|
|
202
177
|
|
|
203
178
|
interface TColors {
|
|
@@ -288,7 +263,7 @@ declare global {
|
|
|
288
263
|
IV: string;
|
|
289
264
|
PASSPHRASE: string;
|
|
290
265
|
KEY_SIZE: number;
|
|
291
|
-
ITERATION_COUNT:
|
|
266
|
+
ITERATION_COUNT: number;
|
|
292
267
|
}
|
|
293
268
|
}
|
|
294
269
|
/**
|
|
@@ -421,5 +396,5 @@ declare class QueryModalController {
|
|
|
421
396
|
getModalHandler(): ApiaUtilModalHandler | null;
|
|
422
397
|
}
|
|
423
398
|
|
|
424
|
-
export { ApiaApi, ApiaApiHandler, type IApiaApiRequestConfig, QueryController, type QueryControllerStructure, QueryModalController, type TApiaApiAxiosResponse, type TApiaApiMethod, type TApiaApiResult, type TFilter, getFunction, getModal, makeApiaUrl };
|
|
399
|
+
export { ApiaApi, ApiaApiHandler, type IApiaApiRequestConfig, QueryController, type QueryControllerStructure, QueryModalController, type TApiaApiAxiosResponse, type TApiaApiMethod, type TApiaApiResult, type TFilter, getFunction, getModal, makeApiaUrl, parseSuccessfulResponse };
|
|
425
400
|
//# sourceMappingURL=index.d.ts.map
|