feat(api): Extend apiSearchThings to support dynamic domain types
This commit is contained in:
@@ -17,7 +17,14 @@ export async function apiSearchThings(
|
|||||||
body: MasterModel.SearchPaginationBody,
|
body: MasterModel.SearchPaginationBody,
|
||||||
domain?: 'gms',
|
domain?: 'gms',
|
||||||
): Promise<GmsModel.GmsThingsResponse>;
|
): Promise<GmsModel.GmsThingsResponse>;
|
||||||
|
export async function apiSearchThings(
|
||||||
|
body: MasterModel.SearchPaginationBody,
|
||||||
|
domain?: string,
|
||||||
|
): Promise<
|
||||||
|
| SpoleModel.SpoleThingsResponse
|
||||||
|
| SgwModel.SgwThingsResponse
|
||||||
|
| GmsModel.GmsThingsResponse
|
||||||
|
>;
|
||||||
export async function apiSearchThings(
|
export async function apiSearchThings(
|
||||||
body: MasterModel.SearchPaginationBody,
|
body: MasterModel.SearchPaginationBody,
|
||||||
domain: string = process.env.DOMAIN_ENV || 'gms',
|
domain: string = process.env.DOMAIN_ENV || 'gms',
|
||||||
|
|||||||
Reference in New Issue
Block a user