tsv2-library 1.0.61-beta.52 → 1.0.61-beta.53

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.
@@ -12,8 +12,6 @@ export type AssetFilterFields =
12
12
  | 'group'
13
13
  | 'maintenanceAuditStatus'
14
14
  | 'isTransactionable'
15
- | 'audit'
16
- | 'maintenance'
17
15
  | 'measurement'
18
16
  | 'lastScannedAt'
19
17
  | 'warrantyStatus'
@@ -117,34 +117,41 @@ export interface AssetCoordinate {
117
117
  latitude: number;
118
118
  }
119
119
  export interface AssetGroup {
120
- _id: string;
121
- name: string;
122
- fullPath: string;
123
- code: string;
120
+ _id?: string;
121
+ name?: string;
122
+ fullPath?: string;
123
+ code?: string;
124
124
  }
125
125
  export interface AssetTableData {
126
126
  _id: string;
127
127
  assetImage?: string;
128
- name: AssetName;
128
+ name?: AssetName;
129
129
  aliasName?: string;
130
- assetId: string;
131
- assetStatus: string;
132
- group: AssetGroup;
133
- brand: AssetFieldObject;
134
- model: AssetFieldObject;
135
- category: AssetFieldObject;
136
- tagType: string;
137
- measurement: AssetFieldObject;
130
+ assetId?: string;
131
+ assetStatus?: string;
132
+ group?: AssetGroup;
133
+ brand?: AssetFieldObject;
134
+ model?: AssetFieldObject;
135
+ category?: AssetFieldObject;
136
+ tagType?: string;
137
+ measurement?: AssetFieldObject;
138
138
  maintenanceStatus?: string;
139
139
  auditStatus?: string;
140
- transactions: TransactionPolicyType;
140
+ transactions?: TransactionPolicyType;
141
141
  coordinates?: AssetCoordinate;
142
142
  address?: string;
143
- warrantyStatus: string;
143
+ warrantyStatus?: string;
144
144
  lastScannedAt?: string;
145
- linkedAssetCount: number;
145
+ linkedAssetCount?: number;
146
146
  purchaseDate?: string;
147
147
  purchase?: AssetPurchase;
148
148
  customFields?: Record<string, AssetCustomField>;
149
149
  assetValues?: Record<string, AssetValue>;
150
150
  }
151
+ export interface AssetTableDataPrint extends Omit<AssetTableData, 'coordinates' | 'linkedAssetCount' | 'transactions'> {
152
+ coordinates?: string;
153
+ maintenanceAuditStatus?: ('In Maintenance' | 'In Audit' | 'None')[];
154
+ linkedAssetCount?: string;
155
+ transactions?: number;
156
+ rawTransactions?: TransactionPolicyType;
157
+ }
@@ -1,5 +1,5 @@
1
- import { Asset, AssetTableData } from '../types/assets.type';
2
- export declare const formatAssetValue: (each: AssetTableData) => AssetTableData;
1
+ import { Asset, AssetTableData, AssetTableDataPrint } from '../types/assets.type';
2
+ export declare const formatAssetValue: (each: AssetTableData) => AssetTableDataPrint;
3
3
  export declare const formatVowelSoundLabel: (label?: string) => string;
4
4
  export declare const formatUserName: (name?: string) => string;
5
5
  export declare const formatTagCode: (tagCode?: string) => string;