From e34a2873639b3013eb8154de3a08ddb9a2086914 Mon Sep 17 00:00:00 2001 From: Pedro Coelho Torres Date: Fri, 10 Nov 2023 14:48:22 -0500 Subject: [PATCH] fix(TSP-208): add missing properties on project resources --- src/resources/Projects/ProjectInterfaces.ts | 1 + src/resources/Resources/ResourcesInterfaces.ts | 4 ++-- src/resources/Resources/tests/Resources.spec.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/resources/Projects/ProjectInterfaces.ts b/src/resources/Projects/ProjectInterfaces.ts index 60ffdde85..345245533 100644 --- a/src/resources/Projects/ProjectInterfaces.ts +++ b/src/resources/Projects/ProjectInterfaces.ts @@ -7,6 +7,7 @@ export enum ProjectSortBy { createdDate = 'CREATED_DATE', updatedBy = 'UPDATED_BY', updatedDate = 'UPDATED_DATE', + pointOfContact = 'POINT_OF_CONTACT', } export const projectResourceTypes = [ diff --git a/src/resources/Resources/ResourcesInterfaces.ts b/src/resources/Resources/ResourcesInterfaces.ts index 28e35fbda..5763a28b1 100644 --- a/src/resources/Resources/ResourcesInterfaces.ts +++ b/src/resources/Resources/ResourcesInterfaces.ts @@ -1,6 +1,6 @@ import {Paginated} from '../BaseInterfaces.js'; -export type ResourceStatus = 'existingResources' | 'deletedResources'; +export type ResourceStatus = 'existingResources' | 'noAccessResources' | 'deletedResources'; export interface ResourceModel { /** @@ -8,7 +8,7 @@ export interface ResourceModel { */ id: string; /** - * The name of the resouce + * The name of the resource */ name: string; /** diff --git a/src/resources/Resources/tests/Resources.spec.ts b/src/resources/Resources/tests/Resources.spec.ts index 085d2dd7e..27f2e42c3 100644 --- a/src/resources/Resources/tests/Resources.spec.ts +++ b/src/resources/Resources/tests/Resources.spec.ts @@ -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`);