totalum-api-sdk 2.0.37 → 2.0.39
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.
|
@@ -20,7 +20,7 @@ export interface NestedQueryFilterI {
|
|
|
20
20
|
interface NestedQueryFilterItem {
|
|
21
21
|
tableFilter?: FiltersArrayI;
|
|
22
22
|
propertyName?: string;
|
|
23
|
-
[tableName: string]: NestedQueryFilterItem | FiltersArrayI | string;
|
|
23
|
+
[tableName: string]: NestedQueryFilterItem | FiltersArrayI | string | undefined;
|
|
24
24
|
}
|
|
25
25
|
export type FilterLookupSearchQueryI = {
|
|
26
26
|
pagination: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterSearchQueryI,
|
|
1
|
+
import { FilterSearchQueryI, NestedQuery } from "../common/interfaces";
|
|
2
2
|
export declare class CrudService {
|
|
3
3
|
private headers;
|
|
4
4
|
private baseUrl;
|
|
@@ -9,18 +9,18 @@ export declare class CrudService {
|
|
|
9
9
|
* @param {string} id - The ID of the item.
|
|
10
10
|
* @returns {Promise<any>} - A promise that resolves to the item data.
|
|
11
11
|
*/
|
|
12
|
-
getItemById(itemType: string, id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
getItemById<T = any>(itemType: string, id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
13
|
/**
|
|
14
14
|
* Fetches the historic updates of a record by its ID.
|
|
15
15
|
* @param {string} recordId - The ID of the record to fetch the historic updates.
|
|
16
16
|
* @returns {Promise<any>} - A promise that resolves to the historic updates data.
|
|
17
17
|
*/
|
|
18
18
|
getHistoricRecordUpdatesById(recordId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
-
getItems(itemType: string, query?: FilterSearchQueryI): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
|
-
getNestedData(nestedQuery: NestedQuery, options?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
getItems<T = any>(itemType: string, query?: FilterSearchQueryI): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
|
+
getNestedData<T = any>(nestedQuery: NestedQuery, options?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
21
|
deleteItemById(itemType: string, id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
editItemById(itemType: string, id: string, properties:
|
|
23
|
-
createItem(itemType: string, item:
|
|
22
|
+
editItemById<T = any>(itemType: string, id: string, properties: T): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
+
createItem<T = any>(itemType: string, item: T): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @param typeId the type id of the item (table name)
|
|
@@ -44,5 +44,5 @@ export declare class CrudService {
|
|
|
44
44
|
* @param propertyName the property that we want to get many to many references
|
|
45
45
|
* @param query the query to filter and sort the results
|
|
46
46
|
*/
|
|
47
|
-
getManyToManyReferencesItems(type: string, id: string, propertyName: string, query?: FilterSearchQueryI): Promise<any>;
|
|
47
|
+
getManyToManyReferencesItems<T = any>(type: string, id: string, propertyName: string, query?: FilterSearchQueryI): Promise<any>;
|
|
48
48
|
}
|