Skip to content

Commit

Permalink
fix(TSP-208): add missing properties on project resources
Browse files Browse the repository at this point in the history
  • Loading branch information
pcoelho-coveo committed Nov 10, 2023
1 parent 0cd9627 commit e34a287
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/resources/Projects/ProjectInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum ProjectSortBy {
createdDate = 'CREATED_DATE',
updatedBy = 'UPDATED_BY',
updatedDate = 'UPDATED_DATE',
pointOfContact = 'POINT_OF_CONTACT',
}

export const projectResourceTypes = [
Expand Down
4 changes: 2 additions & 2 deletions src/resources/Resources/ResourcesInterfaces.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {Paginated} from '../BaseInterfaces.js';

export type ResourceStatus = 'existingResources' | 'deletedResources';
export type ResourceStatus = 'existingResources' | 'noAccessResources' | 'deletedResources';

export interface ResourceModel {
/**
* The unique identifier of a resource within a project
*/
id: string;
/**
* The name of the resouce
* The name of the resource
*/
name: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/Resources/tests/Resources.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Resources', () => {
expect(api.get).toHaveBeenCalledWith(`${Resources.baseUrl}/SOURCE`);
});

it('should use the passed parameters as its query paramaters', () => {
it('should use the passed parameters as its query parameters', () => {
resource.list(randomResourceType, {page: 1, perPage: 50});
expect(api.get).toHaveBeenCalledTimes(1);
expect(api.get).toHaveBeenCalledWith(`${Resources.baseUrl}/SOURCE?page=1&perPage=50`);
Expand Down

0 comments on commit e34a287

Please sign in to comment.