diff --git a/src/resources/Organizations/Organization.ts b/src/resources/Organizations/Organization.ts index 4f3b645fa..a96d13225 100644 --- a/src/resources/Organizations/Organization.ts +++ b/src/resources/Organizations/Organization.ts @@ -1,3 +1,4 @@ +import {PageModel} from '../BaseInterfaces'; import Resource from '../Resource'; import {CreateOrganizationOptions, ListOrganizationOptions, OrganizationModel} from './OrganizationInterfaces'; @@ -5,7 +6,7 @@ export default class Organization extends Resource { static baseUrl = '/rest/organizations/'; list(options?: ListOrganizationOptions) { - return this.api.get(this.buildPath(Organization.baseUrl, options)); + return this.api.get>(this.buildPath(Organization.baseUrl, options)); } create(options: CreateOrganizationOptions) { diff --git a/src/resources/Organizations/OrganizationInterfaces.ts b/src/resources/Organizations/OrganizationInterfaces.ts index 84d45eeaf..da52637a7 100644 --- a/src/resources/Organizations/OrganizationInterfaces.ts +++ b/src/resources/Organizations/OrganizationInterfaces.ts @@ -31,9 +31,9 @@ export interface OrganizationModel { } export interface ListOrganizationOptions { - additionalFields?: string[]; + additionalFields?: string | string[]; filter?: string; - order?: 'ASC' | 'DESC'; + order?: string; page?: number; perPage?: number; sortBy?: string;