@tagsamurai/fats-api-services 1.0.0-alpha.172 → 1.0.0-alpha.173

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.0-alpha.172",
3
+ "version": "1.0.0-alpha.173",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -96,12 +96,12 @@ export interface AssetFormDto {
96
96
  dataAttribute?: AssetTableDto[];
97
97
  }
98
98
  export interface AssetBasicFormDto {
99
- brand: number;
100
- model: number;
101
- name: number;
102
- measurement: number;
103
- usefulLife?: string;
104
- category?: number;
99
+ brand: string;
100
+ model: string;
101
+ name: string;
102
+ measurement: string;
103
+ usefulLife?: number;
104
+ category?: string | number;
105
105
  firstImage?: File;
106
106
  firstImageBig?: string;
107
107
  firstImageMedium?: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { AssetCustomFieldType, AssetFormDto, AssetOptionField, EditUsefulLifeDto, GetAllAssetsOptionBoolean, GetAllAssetsOptionFilter, GetAllAssetsQueryParams, GetAssetDetailParams, GetAvailableAssetsQueryParams, LinkAssetDto, RegisterAssetBasicBulkBody } from '../dto/assetService.dto';
2
+ import { AssetBasicFormDto, AssetCustomFieldType, AssetOptionField, EditUsefulLifeDto, GetAllAssetsOptionBoolean, GetAllAssetsOptionFilter, GetAllAssetsQueryParams, GetAssetDetailParams, GetAvailableAssetsQueryParams, LinkAssetDto, RegisterAssetBasicBulkBody } from '../dto/assetService.dto';
3
3
  import { AccountingFilterParams, AttachmentDto, AttachmentFilterParams, GetLinkedAssetsOptionBoolean, GetLinkedAssetsOptionFilter, LinkedAssetFilterParams, PurchaseDto, PurchaseResponse } from '../dto/assetDetail.dto';
4
4
  import { AssetDataType, AssetDetailDataType } from '../types/asset.type';
5
5
  import { FetchDetailResponse, FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
@@ -17,7 +17,7 @@ declare const AssetServices: {
17
17
  getAssetDetail: (id: string, params?: GetAssetDetailParams) => Promise<AxiosResponse<FetchDetailResponse<AssetDetailDataType>>>;
18
18
  getAssetNameTotal: () => Promise<AxiosResponse>;
19
19
  postRegisterAsset: (body?: RegisterAssetBasicBulkBody) => Promise<AxiosResponse>;
20
- putEditAsset: (id?: string, body?: AssetFormDto) => Promise<AxiosResponse>;
20
+ putEditAsset: (id?: string, body?: AssetBasicFormDto) => Promise<AxiosResponse>;
21
21
  putEditDetailCustomField: (id?: string, body?: {
22
22
  customFields: AssetCustomFieldType[];
23
23
  }) => Promise<AxiosResponse>;
@@ -64,6 +64,10 @@ export type AssetDetailDataType = {
64
64
  monitoring: AssetTransactionRole;
65
65
  hasSystemRole?: AssetSystemRole;
66
66
  systemRole?: AssetSystemRole;
67
+ depreciationGroup?: {
68
+ _id: string;
69
+ usefulLife?: number;
70
+ };
67
71
  transactions: TransactionPolicyType;
68
72
  isTransactionable?: boolean;
69
73
  maintenanceStatus?: string;