@tagsamurai/fats-api-services 1.0.0-alpha.154 → 1.0.0-alpha.155

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.154",
3
+ "version": "1.0.0-alpha.155",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -1,4 +1,4 @@
1
- import { AssetDataOptionFilter, AssetDataParams } from '../types/asset.type';
1
+ import { AssetBasicRegister, AssetDataOptionFilter, AssetDataParams } from '../types/asset.type';
2
2
  export interface DialogSelectAssetFilterModels {
3
3
  assetName?: string[];
4
4
  name?: string[];
@@ -29,6 +29,10 @@ export type GetAssetDetailParams = {
29
29
  export interface RegisterAssetBulkBody {
30
30
  data: AssetFormDto[];
31
31
  }
32
+ export interface RegisterAssetBasicBulkBody {
33
+ group: number;
34
+ data: AssetBasicRegister[];
35
+ }
32
36
  export type AssetTreeNode = {
33
37
  _id: string;
34
38
  name: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { AssetCustomFieldType, AssetFormDto, AssetOptionField, EditUsefulLifeDto, GetAllAssetsOptionBoolean, GetAllAssetsOptionFilter, GetAllAssetsQueryParams, GetAssetDetailParams, GetAvailableAssetsQueryParams, LinkAssetDto, RegisterAssetBulkBody } from '../dto/assetService.dto';
2
+ import { AssetCustomFieldType, AssetFormDto, 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';
@@ -16,7 +16,7 @@ declare const AssetServices: {
16
16
  getUnlinkedAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse>;
17
17
  getAssetDetail: (id: string, params?: GetAssetDetailParams) => Promise<AxiosResponse<FetchDetailResponse<AssetDetailDataType>>>;
18
18
  getAssetNameTotal: () => Promise<AxiosResponse>;
19
- postRegisterAsset: (body?: RegisterAssetBulkBody) => Promise<AxiosResponse>;
19
+ postRegisterAsset: (body?: RegisterAssetBasicBulkBody) => Promise<AxiosResponse>;
20
20
  putEditAsset: (id?: string, body?: AssetFormDto) => Promise<AxiosResponse>;
21
21
  putEditDetailCustomField: (id?: string, body?: {
22
22
  customFields: AssetCustomFieldType[];
@@ -204,4 +204,17 @@ export interface AssetNameRegister {
204
204
  isVerifiedAll?: boolean;
205
205
  assetPhoto?: File[];
206
206
  }
207
+ export interface AssetBasicRegister {
208
+ _id: string;
209
+ category?: AssetTreeNode;
210
+ asset?: string;
211
+ brand?: string;
212
+ model?: string;
213
+ measurement?: string;
214
+ usefulLife?: number;
215
+ customFieldsByType?: Record<string, AssetCustomFieldType[]>;
216
+ expand?: boolean;
217
+ registeredAssetCount?: number;
218
+ assetPhoto?: File[];
219
+ }
207
220
  export {};