diff --git a/src/resources/Projects/ProjectInterfaces.ts b/src/resources/Projects/ProjectInterfaces.ts index 3a5c9122c..60ffdde85 100644 --- a/src/resources/Projects/ProjectInterfaces.ts +++ b/src/resources/Projects/ProjectInterfaces.ts @@ -27,7 +27,7 @@ export const projectResourceTypes = [ export type ProjectResourceType = (typeof projectResourceTypes)[number]; -export enum SolutionType { +export enum ProjectType { Commerce = 'COMMERCE', Other = 'OTHER', Service = 'SERVICE', @@ -45,9 +45,9 @@ export interface BaseProjectModel { */ description: string; /** - * The solution type of the project. + * The type of the project. */ - solutionType: SolutionType; + type: ProjectType; /** * The list of usernames that will be points of contact for the project. * @@ -64,7 +64,7 @@ export interface BaseProjectModel { export interface ProjectModel extends BaseProjectModel { /** - * The unique identitifier of the project. + * The unique identifier of the project. */ id: string; /** @@ -114,8 +114,4 @@ export interface ListProjectParams extends Paginated { * @example: 'ASC' */ order?: SortingOrder; - /** - * Whether to include resources when returning results. - */ - includeResources?: boolean; } diff --git a/src/resources/Projects/tests/Project.spec.ts b/src/resources/Projects/tests/Project.spec.ts index ebedec6e5..8cd49c5d3 100644 --- a/src/resources/Projects/tests/Project.spec.ts +++ b/src/resources/Projects/tests/Project.spec.ts @@ -1,6 +1,6 @@ import API from '../../../APICore.js'; import Project from '../Project.js'; -import {BaseProjectModel, ProjectModel, SolutionType} from '../ProjectInterfaces.js'; +import {BaseProjectModel, ProjectModel, ProjectType} from '../ProjectInterfaces.js'; jest.mock('../../../APICore.js'); @@ -16,14 +16,14 @@ describe('Project', () => { const mockNewProject: BaseProjectModel = { name: 'Pokemon Project', description: 'Project about pokemons', - solutionType: SolutionType.Commerce, + type: ProjectType.Commerce, }; const mockProject: ProjectModel = { id: mockProjectId, name: 'Pokemon Project', description: 'Project about pokemons', - solutionType: SolutionType.Commerce, + type: ProjectType.Commerce, createdBy: 'jdoe@example.com', updatedBy: 'jdoe@example.com', createdDate: '2023-07-19T02:37:23.399Z', @@ -57,7 +57,7 @@ describe('Project', () => { expect(api.post).toHaveBeenCalledWith(Project.baseUrl, { name: 'Pokemon Project', description: 'Project about pokemons', - solutionType: SolutionType.Commerce, + type: ProjectType.Commerce, }); }); }); @@ -70,7 +70,7 @@ describe('Project', () => { id: mockProjectId, name: 'Pokemon Project', description: 'Project about pokemons', - solutionType: SolutionType.Commerce, + type: ProjectType.Commerce, createdBy: 'jdoe@example.com', updatedBy: 'jdoe@example.com', createdDate: '2023-07-19T02:37:23.399Z',