@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.10",
3
+ "version": "1.0.3-alpha.11",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -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
- export type ActionLogParams = {
6
- object?: string;
7
- objectId?: string;
8
- createdAt?: number[];
5
+ import { BaseFilterQueryParams } from './settingsAssetName.dto';
6
+ export type ActionLogParams = BaseFilterQueryParams & {
7
+ object?: string[];
8
+ createdAt?: string[];
9
9
  action?: string[];
10
- name?: string[];
10
+ modifiedBy?: string[];
11
11
  assetName?: string[];
12
- objectName?: string[];
12
+ name?: string[];
13
13
  field?: string[];
14
- newValue?: string[];
15
- oldValue?: string[];
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 { ActionLogFilterParams, GetSessionLogListResponse, GetUserSystemLogListResponse, GetUserSystemLogOptionsResponse, SessionLogFetchParams, SessionOptionsQueryParams, SystemLogFetchParams, SystemLogLoadingFilters } from '../dto/log.dto';
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?: ActionLogFilterParams) => Promise<AxiosResponse<FetchListResponse<ActionLogType>>>;
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>;
@@ -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
- assetName?: string;
15
- createdAt: string;
16
- updatedAt: string;
14
+ createdAt: Date | string;
15
+ updatedAt: Date | string;
17
16
  };
18
17
  export interface ChangelogListOptions {
19
18
  actionOptions: Option[];