tsv2-library 0.3.32 → 0.3.34

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.
@@ -4,6 +4,7 @@ import { ClassComponent } from '../ts-helpers';
4
4
  export type ScanPayload = {
5
5
  type: 'RFID' | 'QR';
6
6
  code: string;
7
+ device: string;
7
8
  };
8
9
 
9
10
  export type ButtonSearchByScanEmits = {
@@ -10,6 +10,20 @@ export interface DialogSelectAssetFilterModels {
10
10
  group?: number[];
11
11
  }
12
12
 
13
+ export type AssetStatus =
14
+ | 'Assigned'
15
+ | 'Available'
16
+ | 'Borrowed'
17
+ | 'Damaged'
18
+ | 'Missing'
19
+ | 'Non-Transactionable'
20
+ | 'Not Paired Yet'
21
+ | 'On Assign Process'
22
+ | 'On Audit Process'
23
+ | 'On Borrowing Process'
24
+ | 'On Transfer'
25
+ | 'TAG Reported';
26
+
13
27
  export type AssetOptionField = 'nameOptions' | 'brandOptions' | 'modelOptions';
14
28
 
15
29
  /**
@@ -175,6 +189,12 @@ export interface DialogSelectAssetProps {
175
189
  * @default 'asset';
176
190
  */
177
191
  type?: 'asset' | 'assetName' | 'child';
192
+ /**
193
+ * Specify the asset status filter to be included
194
+ *
195
+ * @default ["Available"]
196
+ */
197
+ assetStatus?: AssetStatus[];
178
198
  /**
179
199
  * Set to true to get Asset Name with unpaired status
180
200
  */
@@ -3,6 +3,7 @@ export type TSVueIconSeverities =
3
3
  | 'info'
4
4
  | 'primary'
5
5
  | 'success'
6
+ | 'warning'
6
7
  | 'secondary';
7
8
 
8
9
  /**
@@ -71,9 +71,9 @@ export interface TreeNode {
71
71
 
72
72
  export interface TreeProps {
73
73
  type: 'Group' | 'Category';
74
- selectedKeys: TreeSelectionKeys | number[] | undefined;
75
- selectedTreeNodes: TreeNode[] | undefined;
76
- selectionMode: 'single' | 'checkbox' | undefined;
74
+ selectedKeys?: TreeSelectionKeys | number[] | undefined;
75
+ selectedTreeNodes?: TreeNode[] | undefined;
76
+ selectionMode?: 'single' | 'checkbox' | undefined;
77
77
  /**
78
78
  * Wether show node button action or not.
79
79
  *
@@ -1,6 +1,12 @@
1
1
  import { DataTableParams } from '../types/dataTable.type';
2
2
  import { DialogSelectAssetFilterModels } from '../components/v2/DialogSelectAsset/DialogSelectAsset.vue.d';
3
3
  export type DialogSelectAssetFilterQueryParams = Partial<Record<keyof DialogSelectAssetFilterModels, string>>;
4
+ export type GetAllAssetsQueryParams = DataTableParams & DialogSelectAssetFilterQueryParams & {
5
+ status?: string;
6
+ search?: string;
7
+ excludeId?: string;
8
+ tag?: string;
9
+ };
4
10
  export type GetAvailableAssetsQueryParams = DataTableParams & DialogSelectAssetFilterQueryParams & {
5
11
  search?: string;
6
12
  excludeId?: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance, AxiosResponse } from 'axios';
2
- import { GetAssetDetailParams, GetAvailableAssetsQueryParams, GetLinkedAssetFamiliesResponse } from '../dto/assets.dto';
2
+ import { GetAllAssetsQueryParams, GetAssetDetailParams, GetAvailableAssetsQueryParams, GetLinkedAssetFamiliesResponse } from '../dto/assets.dto';
3
3
  import { AssetOptionField } from '../components/v2/DialogSelectAsset/DialogSelectAsset.vue.d';
4
4
  export interface ServiceOptions {
5
5
  headers?: Record<string, unknown>;
@@ -7,14 +7,14 @@ export interface ServiceOptions {
7
7
  }
8
8
  export declare const API: ({ headers, params, }?: ServiceOptions) => AxiosInstance;
9
9
  declare const _default: {
10
- getAllAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
10
+ getAllAssets: (params: GetAllAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
11
11
  getAvailableAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
12
12
  getAssetsById: (_id: string, params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
13
13
  getAssetDetail: (id: string, params?: GetAssetDetailParams | undefined) => Promise<AxiosResponse<any, any>>;
14
14
  matchAssetWithTag: (id: string, tag?: string | undefined) => Promise<AxiosResponse<any, any>>;
15
15
  getLinkedAssetFamily: (id?: string | undefined) => Promise<AxiosResponse<GetLinkedAssetFamiliesResponse, any>>;
16
16
  getUnlinkedAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
17
- getOptions: (endpoint: "available" | "unlinked" | "by-id", params: Partial<Record<AssetOptionField, boolean>> & {
17
+ getOptions: (endpoint: "" | "unlinked" | "by-id", params: Partial<Record<AssetOptionField, boolean>> & {
18
18
  group?: string | undefined;
19
19
  excludeId?: string | undefined;
20
20
  }) => Promise<AxiosResponse<any, any>>;