@tagsamurai/fats-api-services 1.1.0-dev-alpha.20 → 1.1.0-dev-alpha.22
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/api-services.es.js
CHANGED
|
@@ -1458,6 +1458,11 @@ const CustomFieldServices = {
|
|
|
1458
1458
|
},
|
|
1459
1459
|
getUsedCustomFields: async () => {
|
|
1460
1460
|
return API$s.get("/used-by-assets");
|
|
1461
|
+
},
|
|
1462
|
+
getAvailableAssetNameList: (type, queryParams) => {
|
|
1463
|
+
return API$s.get(`/${type}/asset-name/available`, {
|
|
1464
|
+
params: queryParams
|
|
1465
|
+
});
|
|
1461
1466
|
}
|
|
1462
1467
|
};
|
|
1463
1468
|
const API$r = createAxiosInstance({
|
|
@@ -2387,6 +2392,9 @@ const SettingAssetNameServiceGo = {
|
|
|
2387
2392
|
const body = buildBodyParams(params);
|
|
2388
2393
|
return API$9.post("/list/options", body);
|
|
2389
2394
|
},
|
|
2395
|
+
getUnpairedAssetName: (params) => {
|
|
2396
|
+
return API$9.get("/unpaired", { params });
|
|
2397
|
+
},
|
|
2390
2398
|
//https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/dropdown
|
|
2391
2399
|
getAssetNameDropdown: (params) => {
|
|
2392
2400
|
return API$9.get("/dropdown", { params });
|
|
@@ -2440,6 +2448,11 @@ const SettingAssetNameServiceGo = {
|
|
|
2440
2448
|
return API$9.delete("", {
|
|
2441
2449
|
data: body
|
|
2442
2450
|
});
|
|
2451
|
+
},
|
|
2452
|
+
//https://dev-api.supply.tagsamurai.com/settings-attribute/v2/asset-name/list
|
|
2453
|
+
postAssetNameList: (params) => {
|
|
2454
|
+
const body = buildBodyParams(params);
|
|
2455
|
+
return API$9.post("/list", body);
|
|
2443
2456
|
}
|
|
2444
2457
|
};
|
|
2445
2458
|
const API$8 = createAxiosInstance({
|
package/api-services.system.js
CHANGED
|
@@ -1466,6 +1466,11 @@ System.register(["axios"], function(exports, module) {
|
|
|
1466
1466
|
},
|
|
1467
1467
|
getUsedCustomFields: async () => {
|
|
1468
1468
|
return API$s.get("/used-by-assets");
|
|
1469
|
+
},
|
|
1470
|
+
getAvailableAssetNameList: (type, queryParams) => {
|
|
1471
|
+
return API$s.get(`/${type}/asset-name/available`, {
|
|
1472
|
+
params: queryParams
|
|
1473
|
+
});
|
|
1469
1474
|
}
|
|
1470
1475
|
});
|
|
1471
1476
|
const API$r = createAxiosInstance({
|
|
@@ -2395,6 +2400,9 @@ System.register(["axios"], function(exports, module) {
|
|
|
2395
2400
|
const body = buildBodyParams(params);
|
|
2396
2401
|
return API$9.post("/list/options", body);
|
|
2397
2402
|
},
|
|
2403
|
+
getUnpairedAssetName: (params) => {
|
|
2404
|
+
return API$9.get("/unpaired", { params });
|
|
2405
|
+
},
|
|
2398
2406
|
//https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/dropdown
|
|
2399
2407
|
getAssetNameDropdown: (params) => {
|
|
2400
2408
|
return API$9.get("/dropdown", { params });
|
|
@@ -2448,6 +2456,11 @@ System.register(["axios"], function(exports, module) {
|
|
|
2448
2456
|
return API$9.delete("", {
|
|
2449
2457
|
data: body
|
|
2450
2458
|
});
|
|
2459
|
+
},
|
|
2460
|
+
//https://dev-api.supply.tagsamurai.com/settings-attribute/v2/asset-name/list
|
|
2461
|
+
postAssetNameList: (params) => {
|
|
2462
|
+
const body = buildBodyParams(params);
|
|
2463
|
+
return API$9.post("/list", body);
|
|
2451
2464
|
}
|
|
2452
2465
|
});
|
|
2453
2466
|
const API$8 = createAxiosInstance({
|
package/package.json
CHANGED
|
@@ -23,3 +23,13 @@ export interface CustomField {
|
|
|
23
23
|
_id: string;
|
|
24
24
|
name: string;
|
|
25
25
|
}
|
|
26
|
+
export type CustomFieldTypeParams = 'general' | 'purchase' | 'accounting';
|
|
27
|
+
export type CustomFieldQueryParams = {
|
|
28
|
+
page?: number;
|
|
29
|
+
limit?: number;
|
|
30
|
+
sortBy?: string;
|
|
31
|
+
sortOrder?: number;
|
|
32
|
+
search?: string;
|
|
33
|
+
category?: string | string[];
|
|
34
|
+
excludeIds?: string | string[];
|
|
35
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { BodyFiltered, CustomFieldFilterQuery, CustomFieldQuery, CustomFieldResponse } from '../dto/customField.dto';
|
|
2
|
+
import { BodyFiltered, CustomFieldFilterQuery, CustomFieldQuery, CustomFieldQueryParams, CustomFieldResponse, CustomFieldTypeParams } from '../dto/customField.dto';
|
|
3
3
|
import { CustomFieldData } from '../types/customField.type';
|
|
4
4
|
/**
|
|
5
5
|
* Object containing client services.
|
|
@@ -19,5 +19,6 @@ declare const CustomFieldServices: {
|
|
|
19
19
|
customFieldIds: string;
|
|
20
20
|
}) => Promise<AxiosResponse>;
|
|
21
21
|
getUsedCustomFields: () => Promise<AxiosResponse<CustomFieldResponse>>;
|
|
22
|
+
getAvailableAssetNameList: (type: CustomFieldTypeParams, queryParams?: CustomFieldQueryParams) => Promise<AxiosResponse>;
|
|
22
23
|
};
|
|
23
24
|
export default CustomFieldServices;
|
|
@@ -5,6 +5,7 @@ import { AssetNameAssets, AssetNameAssetsOptions, AssetNameBrands, AssetNameBran
|
|
|
5
5
|
declare const SettingAssetNameServiceGo: {
|
|
6
6
|
getAssetNameList: (params?: GetAssetNameListQueryParams) => Promise<AxiosResponse<FetchListResponse<AssetNameList>>>;
|
|
7
7
|
getAssetNameListOptions: (params?: GetAssetNameListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<AssetNameListOptions>>>;
|
|
8
|
+
getUnpairedAssetName: (params: GetAssetNameListQueryParams) => Promise<AxiosResponse>;
|
|
8
9
|
getAssetNameDropdown: (params?: GetAssetNameDropdownQueryParams) => Promise<AxiosResponse<ShortFetchListResponse<AssetNameDropdown>>>;
|
|
9
10
|
getAssetUnpairedNameList: (params?: GetUnpairedAssetNameListQueryParams) => Promise<AxiosResponse<FetchListResponse<UnpairedAssetNameList>>>;
|
|
10
11
|
getAssetUnpairedNameListOptions: (params?: GetUnpairedAssetNameListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<UnpairedAssetNameListOptions>>>;
|
|
@@ -18,5 +19,6 @@ declare const SettingAssetNameServiceGo: {
|
|
|
18
19
|
setTagType: (body: SetTagTypeBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
19
20
|
updateAssetName: (body: UpdateAssetNameBody, id: string) => Promise<AxiosResponse<FetchResponse>>;
|
|
20
21
|
deleteAssetName: (body: DeleteAssetNameBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
22
|
+
postAssetNameList: (params?: GetAssetNameListQueryParams) => Promise<AxiosResponse>;
|
|
21
23
|
};
|
|
22
24
|
export default SettingAssetNameServiceGo;
|