@tagsamurai/fats-api-services 1.0.0-alpha.50 → 1.0.0-alpha.51
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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
import { BodyFiltered, CustomFieldFilterQuery, CustomFieldQuery } from '../dto/customField.dto';
|
|
3
|
+
import { CustomFieldData } from '../types/customField.type';
|
|
4
|
+
/**
|
|
5
|
+
* Object containing client services.
|
|
6
|
+
* getCustomField: Makes a GET request to the URL for a list of customField base on the type and returns the response.
|
|
7
|
+
*/
|
|
8
|
+
declare const CustomFieldServices: {
|
|
9
|
+
getCustomField: (params: CustomFieldFilterQuery) => Promise<AxiosResponse>;
|
|
10
|
+
getOptions: (params: CustomFieldFilterQuery) => Promise<AxiosResponse>;
|
|
11
|
+
postCreateCustomField: (params: CustomFieldQuery, data: CustomFieldData) => Promise<AxiosResponse>;
|
|
12
|
+
putEditCustomField: (params: CustomFieldQuery, data: CustomFieldData, id: CustomFieldData["_id"]) => Promise<AxiosResponse>;
|
|
13
|
+
putChangeStatus: (params: CustomFieldQuery, data: BodyFiltered) => Promise<AxiosResponse>;
|
|
14
|
+
deleteCustomField: (params: {
|
|
15
|
+
customFieldIds: string;
|
|
16
|
+
}) => Promise<AxiosResponse>;
|
|
17
|
+
};
|
|
18
|
+
export default CustomFieldServices;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { TableParams } from '../types/dataTable.type';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { AddTemporaryDataBody
|
|
4
|
+
import { AddTemporaryDataBody } from '../dto/importTemporaryData.dto';
|
|
5
5
|
import { EditTemporaryDataBody, ImportDataBody } from '../dto/importData.dto';
|
|
6
6
|
import { ImportTypeKebabCase } from '../types/importData.type';
|
|
7
7
|
declare const ImportServices: {
|
|
@@ -11,7 +11,9 @@ declare const ImportServices: {
|
|
|
11
11
|
success: number;
|
|
12
12
|
errors: string[];
|
|
13
13
|
}>>>;
|
|
14
|
-
deleteImportTemporary: (importUrl: ImportTypeKebabCase, params:
|
|
14
|
+
deleteImportTemporary: (importUrl: ImportTypeKebabCase, params: {
|
|
15
|
+
ids: string;
|
|
16
|
+
}) => Promise<AxiosResponse>;
|
|
15
17
|
postDuplicateImport: (importUrl: ImportTypeKebabCase, body: {
|
|
16
18
|
id?: string;
|
|
17
19
|
}) => Promise<AxiosResponse>;
|