@tagsamurai/fats-api-services 1.0.3-alpha.30 → 1.0.3-alpha.31
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/package.json
CHANGED
package/src/dto/log.dto.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
|
|
|
3
3
|
import { SessionLog, SystemLog } from '../types/log.type';
|
|
4
4
|
import { Option } from '../types/options.type';
|
|
5
5
|
import { BaseFilterQueryParams } from './settingsAssetName.dto';
|
|
6
|
-
export type
|
|
6
|
+
export type ChangeLogListFilter = BaseFilterQueryParams & {
|
|
7
7
|
object?: string[];
|
|
8
8
|
createdAt?: string[];
|
|
9
9
|
action?: string[];
|
|
@@ -14,8 +14,8 @@ export type GetChangeLogListQueryParams = BaseFilterQueryParams & {
|
|
|
14
14
|
objectId?: string[];
|
|
15
15
|
userId?: string[];
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
17
|
+
export type GetChangeLogListQueryParams = Partial<Record<keyof ChangeLogListFilter, string>>;
|
|
18
|
+
export type ChangeLogOptionFilter = {
|
|
19
19
|
actionOptions?: Option[];
|
|
20
20
|
fieldOptions?: Option[];
|
|
21
21
|
modifiedByOptions?: Option[];
|
|
@@ -23,7 +23,7 @@ export type ActionLogOptionFilter = {
|
|
|
23
23
|
nameOptions?: Option[];
|
|
24
24
|
taskNameOptions?: Option[];
|
|
25
25
|
};
|
|
26
|
-
export type
|
|
26
|
+
export type ChangeLogOptionParams = {
|
|
27
27
|
object?: string;
|
|
28
28
|
actionOptions?: boolean;
|
|
29
29
|
objectNameOptions?: boolean;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
|
|
3
|
-
import { ActionLogFilterParams, ActionLogOptionParams, GetSessionLogListResponse, GetUserSystemLogListResponse, GetUserSystemLogOptionsResponse, SessionLogFetchParams, SystemLogFetchParams, SystemLogLoadingFilters } from '../dto/log.dto';
|
|
4
|
-
import { ActionLogType } from '../types/log.type';
|
|
5
|
-
import { TransactionLogFilterParams } from '../dto/transactionLog.dto';
|
|
6
|
-
import { AssetTransactionLogOptionBoolean, AssetTransactionLogOptionFilter } from '../dto/assetDetail.dto';
|
|
7
|
-
import { TransactionDataType } from '../types/assetDetail.type';
|
|
8
|
-
declare const ChangelogServices: {
|
|
9
|
-
getActionLog: (params?: ActionLogFilterParams) => Promise<AxiosResponse<FetchListResponse<ActionLogType>>>;
|
|
10
|
-
getActionLogOption: (params?: ActionLogOptionParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
11
|
-
getSessionLogList: (params: SessionLogFetchParams) => Promise<AxiosResponse<GetSessionLogListResponse>>;
|
|
12
|
-
getUserDetailSystemLogList: (params: SystemLogFetchParams) => Promise<AxiosResponse<GetUserSystemLogListResponse>>;
|
|
13
|
-
getUserDetailSystemLogOption: (params: SystemLogLoadingFilters & {
|
|
14
|
-
userId: string;
|
|
15
|
-
}) => Promise<AxiosResponse<GetUserSystemLogOptionsResponse>>;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves the transaction log.
|
|
18
|
-
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
19
|
-
*/
|
|
20
|
-
getTransactionLog: (params?: TransactionLogFilterParams) => Promise<AxiosResponse<FetchListResponse<TransactionDataType>>>;
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves the transaction log options.
|
|
23
|
-
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
24
|
-
*/
|
|
25
|
-
getTransactionLogOption: (params?: AssetTransactionLogOptionBoolean) => Promise<AxiosResponse<FetchOptionResponse<AssetTransactionLogOptionFilter>>>;
|
|
26
|
-
postScanLog: (body: {
|
|
27
|
-
tag: string;
|
|
28
|
-
serialNumber: string;
|
|
29
|
-
}) => Promise<AxiosResponse>;
|
|
30
|
-
};
|
|
31
|
-
export default ChangelogServices;
|