@tagsamurai/fats-api-services 1.0.3-alpha.10 → 1.0.3-alpha.11
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
|
@@ -2,18 +2,17 @@ import { TableParams } from '../types/dataTable.type';
|
|
|
2
2
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
createdAt?:
|
|
5
|
+
import { BaseFilterQueryParams } from './settingsAssetName.dto';
|
|
6
|
+
export type ActionLogParams = BaseFilterQueryParams & {
|
|
7
|
+
object?: string[];
|
|
8
|
+
createdAt?: string[];
|
|
9
9
|
action?: string[];
|
|
10
|
-
|
|
10
|
+
modifiedBy?: string[];
|
|
11
11
|
assetName?: string[];
|
|
12
|
-
|
|
12
|
+
name?: string[];
|
|
13
13
|
field?: string[];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
modifiedBy?: string[];
|
|
14
|
+
objectId?: string[];
|
|
15
|
+
userId?: string[];
|
|
17
16
|
};
|
|
18
17
|
export type ActionLogFilterParams = Partial<Record<keyof ActionLogParams, string>>;
|
|
19
18
|
export type ActionLogOptionFilter = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { FetchDetailResponse, FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
|
|
3
|
-
import {
|
|
3
|
+
import { ActionLogParams, GetSessionLogListResponse, GetUserSystemLogListResponse, GetUserSystemLogOptionsResponse, SessionLogFetchParams, SessionOptionsQueryParams, SystemLogFetchParams, SystemLogLoadingFilters } from '../dto/log.dto';
|
|
4
4
|
import { ActionLogType, ChangelogListOptions } from '../types/log.type';
|
|
5
5
|
import { GetUserLogAssignmentOptionsResponse, GetUserLogBorrowingOptionsResponse, UserLogAssignmentFetchParams, UserLogAssignmentLoadingFilters, UserLogBorrowingFetchParams, UserLogBorrowingLoadingFilters } from '../dto/user.dto';
|
|
6
6
|
import { UserLogAssignment, UserLogBorrowing } from '../types/userLog.type';
|
|
@@ -9,7 +9,7 @@ import { BasicAssetTransactionLogOptionBoolean, BasicAssetTransactionLogOptionFi
|
|
|
9
9
|
import { TransactionDataType } from '../types/assetDetail.type';
|
|
10
10
|
import { FetchOptionFn } from '@fewangsit/wangsvue-fats/components/filtercontainer/FilterContainer.vue';
|
|
11
11
|
declare const ChangelogServices: {
|
|
12
|
-
getActionLog: (params?:
|
|
12
|
+
getActionLog: (params?: ActionLogParams) => Promise<AxiosResponse<FetchListResponse<ActionLogType>>>;
|
|
13
13
|
getActionLogOption: () => Promise<AxiosResponse<FetchDetailResponse<ChangelogListOptions>>>;
|
|
14
14
|
getSessionLogList: (params: SessionLogFetchParams) => Promise<AxiosResponse<GetSessionLogListResponse>>;
|
|
15
15
|
getSessionLogListOptions: <T = SessionOptionsQueryParams>(params: T) => FetchOptionFn<T>;
|
package/src/types/log.type.d.ts
CHANGED
|
@@ -5,15 +5,14 @@ export type ActionLogType = {
|
|
|
5
5
|
action: string;
|
|
6
6
|
field: string;
|
|
7
7
|
oldValue: string;
|
|
8
|
-
value?: string;
|
|
9
8
|
newValue: string;
|
|
10
9
|
modifiedBy: string;
|
|
10
|
+
modifiedById: string;
|
|
11
11
|
object: string;
|
|
12
12
|
objectId: string;
|
|
13
13
|
objectName: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
updatedAt: string;
|
|
14
|
+
createdAt: Date | string;
|
|
15
|
+
updatedAt: Date | string;
|
|
17
16
|
};
|
|
18
17
|
export interface ChangelogListOptions {
|
|
19
18
|
actionOptions: Option[];
|