tsv2-library 0.2.22 → 0.2.23

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.
@@ -80,6 +80,10 @@ export type TableColumn = {
80
80
  * The result will be: "roleA, roleB, roleF" - Only the properties with truthy values will be included.
81
81
  */
82
82
  includeTruthyProperties?: boolean;
83
+ /**
84
+ * Convert boolean into text Yes/No
85
+ */
86
+ booleanValue?: boolean;
83
87
  bodyTemplate?: (data: any) => string | undefined;
84
88
  bodyComponent?: (data: any) => TableCellComponent;
85
89
  headerTemplate?: () => string;
@@ -157,6 +157,10 @@ export interface DialogFormSlots {
157
157
  * Slot for dialog confirm.
158
158
  */
159
159
  confirm: Slot<ConfirmSlots>;
160
+ /**
161
+ * Slot for dialog header.
162
+ */
163
+ header: Slot;
160
164
  /**
161
165
  * Slot for action buttons.
162
166
  */
@@ -9,3 +9,43 @@ export type GetAvailableAssetsQueryParams = DataTableParams & DialogSelectAssetF
9
9
  export type GetAssetDetailParams = DataTableParams & {
10
10
  tag?: string;
11
11
  };
12
+ export interface GetLinkedAssetFamiliesResponse {
13
+ status: number;
14
+ message: string;
15
+ data: Datum[];
16
+ }
17
+ interface Datum {
18
+ _id: string;
19
+ parent: Parent;
20
+ children: Parent[];
21
+ family: Parent[];
22
+ }
23
+ interface Parent {
24
+ _id: string;
25
+ name: Name;
26
+ group: Group;
27
+ brand: Brand;
28
+ model: Brand;
29
+ assetImageSmall: string;
30
+ assetImageMedium: string;
31
+ assetImageBig: string;
32
+ }
33
+ interface Brand {
34
+ _id: string;
35
+ name: string;
36
+ key: number;
37
+ }
38
+ interface Group {
39
+ _id: string;
40
+ name: string;
41
+ fullPath: string;
42
+ key: number;
43
+ }
44
+ interface Name {
45
+ _id: string;
46
+ nameWithSequence: string;
47
+ name: string;
48
+ key: number;
49
+ aliasCode: string;
50
+ }
51
+ export {};
@@ -1,6 +1,5 @@
1
1
  import { AxiosInstance, AxiosResponse } from 'axios';
2
- import { GetAssetDetailParams, GetAvailableAssetsQueryParams } from '../dto/assets.dto';
3
- import { GetLinkedAssetFamilyResponse } from '../types/assets.type';
2
+ import { GetAssetDetailParams, GetAvailableAssetsQueryParams, GetLinkedAssetFamiliesResponse } from '../dto/assets.dto';
4
3
  import { AssetOptionField } from '../components/v2/DialogSelectAsset/DialogSelectAsset.vue.d';
5
4
  export interface ServiceOptions {
6
5
  headers?: Record<string, unknown>;
@@ -12,7 +11,7 @@ declare const _default: {
12
11
  getAssetsById: (_id: string, params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
13
12
  getAssetDetail: (id: string, params?: GetAssetDetailParams | undefined) => Promise<AxiosResponse<any, any>>;
14
13
  matchAssetWithTag: (id: string, tag?: string | undefined) => Promise<AxiosResponse<any, any>>;
15
- getLinkedAssetFamily: (assetId?: string | undefined) => Promise<AxiosResponse<GetLinkedAssetFamilyResponse, any>>;
14
+ getLinkedAssetFamily: (id?: string | undefined) => Promise<AxiosResponse<GetLinkedAssetFamiliesResponse, any>>;
16
15
  getUnlinkedAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
17
16
  getOptions: (endpoint: "available" | "unlinked" | "by-id", params: Partial<Record<AssetOptionField, boolean>> & {
18
17
  group?: string | undefined;