@tagsamurai/fats-api-services 1.1.0-dev-alpha.17 → 1.1.0-dev-alpha.18

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.
@@ -266,6 +266,21 @@ const AssetServices = {
266
266
  */
267
267
  deleteAttachment: (params) => {
268
268
  return AssetsAPIs.delete("/attachment/bulk", { params });
269
+ },
270
+ postAssetAvailableList: (params) => {
271
+ const body = buildBodyParams(params);
272
+ return AssetsAPIs.post("/available/list", body);
273
+ },
274
+ postAssetList: (params) => {
275
+ const body = buildBodyParams(params);
276
+ return AssetsAPIs.post("/list", body);
277
+ },
278
+ postAssetOption: (params) => {
279
+ const body = buildBodyParams(params);
280
+ return AssetsAPIs.post("/list/options", body);
281
+ },
282
+ getLinkedAssetFamily: (id) => {
283
+ return AssetsAPIs.get("/family", { params: { id } });
269
284
  }
270
285
  };
271
286
  const API$N = createAxiosInstance({
@@ -274,6 +274,21 @@ System.register(["axios"], function(exports, module) {
274
274
  */
275
275
  deleteAttachment: (params) => {
276
276
  return AssetsAPIs.delete("/attachment/bulk", { params });
277
+ },
278
+ postAssetAvailableList: (params) => {
279
+ const body = buildBodyParams(params);
280
+ return AssetsAPIs.post("/available/list", body);
281
+ },
282
+ postAssetList: (params) => {
283
+ const body = buildBodyParams(params);
284
+ return AssetsAPIs.post("/list", body);
285
+ },
286
+ postAssetOption: (params) => {
287
+ const body = buildBodyParams(params);
288
+ return AssetsAPIs.post("/list/options", body);
289
+ },
290
+ getLinkedAssetFamily: (id) => {
291
+ return AssetsAPIs.get("/family", { params: { id } });
277
292
  }
278
293
  });
279
294
  const API$N = createAxiosInstance({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.1.0-dev-alpha.17",
3
+ "version": "1.1.0-dev-alpha.18",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -40,5 +40,9 @@ declare const AssetServices: {
40
40
  deleteAttachment: (params: {
41
41
  attachmentsIds: string;
42
42
  }) => Promise<AxiosResponse>;
43
+ postAssetAvailableList: (params?: GetAllAssetsQueryParams | GetAvailableAssetsQueryParams) => Promise<AxiosResponse>;
44
+ postAssetList: (params?: GetAllAssetsQueryParams) => Promise<AxiosResponse>;
45
+ postAssetOption: (params?: GetAllAssetsQueryParams) => Promise<AxiosResponse>;
46
+ getLinkedAssetFamily: (id?: string) => Promise<AxiosResponse>;
43
47
  };
44
48
  export default AssetServices;
@@ -34,7 +34,7 @@ export type TransferLogRequest = {
34
34
  asset: string;
35
35
  assetId: string;
36
36
  assetImage?: string;
37
- status: string;
37
+ status: TransactionStatus;
38
38
  assetName: AssetName;
39
39
  assetCategory: AssetFieldObject;
40
40
  assetGroup: AssetFieldObject;
@@ -58,3 +58,5 @@ export type TransferLogItem = {
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  };
61
+ type TransactionStatus = 'Waiting for Approval' | 'Waiting for Handover' | 'Completed' | 'Cancelled' | 'Rejected' | 'Reported Missing';
62
+ export {};