OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Align casing of Apiv3 services and types (#9968)
Benjamin Bädorfb4143f4083d1
diff --git a/frontend/src/app/core/apiv3/api-v3.service.spec.ts b/frontend/src/app/core/apiv3/api-v3.service.spec.tsindex 980acc84143..24fa24cda81 100644--- a/frontend/src/app/core/apiv3/api-v3.service.spec.ts+++ b/frontend/src/app/core/apiv3/api-v3.service.spec.ts@@ -27,12 +27,12 @@//++import { TestBed, waitForAsync } from '@angular/core/testing';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { States } from 'core-app/core/states/states.service';describe('APIv3Service', () => {- let service:APIV3Service;+ let service:ApiV3Service;beforeEach(waitForAsync(() => {// noinspection JSIgnoredPromiseFromCall@@ -40,12 +40,12 @@ describe('APIv3Service', () => {providers: [States,PathHelperService,- APIV3Service,+ ApiV3Service,],}).compileComponents().then(() => {- service = TestBed.inject(APIV3Service);+ service = TestBed.inject(ApiV3Service);});}));diff --git a/frontend/src/app/core/apiv3/api-v3.service.ts b/frontend/src/app/core/apiv3/api-v3.service.tsindex be455f65fe9..f090ad0aea7 100644--- a/frontend/src/app/core/apiv3/api-v3.service.ts+++ b/frontend/src/app/core/apiv3/api-v3.service.ts@@ -27,49 +27,49 @@//++import { Injectable, Injector } from '@angular/core';-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { Constructor } from '@angular/cdk/table';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { Apiv3GridsPaths } from 'core-app/core/apiv3/endpoints/grids/apiv3-grids-paths';-import { Apiv3TimeEntriesPaths } from 'core-app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths';-import { Apiv3CapabilitiesPaths } from 'core-app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths';-import { Apiv3MembershipsPaths } from 'core-app/core/apiv3/endpoints/memberships/apiv3-memberships-paths';-import { Apiv3UsersPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-users-paths';-import { APIv3TypesPaths } from 'core-app/core/apiv3/endpoints/types/apiv3-types-paths';-import { APIv3QueriesPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-queries-paths';-import { APIV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';-import { APIv3ProjectPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-project-paths';-import { APIv3ProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-projects-paths';-import { APIv3StatusesPaths } from 'core-app/core/apiv3/endpoints/statuses/apiv3-statuses-paths';-import { APIv3RolesPaths } from 'core-app/core/apiv3/endpoints/roles/apiv3-roles-paths';-import { APIv3VersionsPaths } from 'core-app/core/apiv3/endpoints/versions/apiv3-versions-paths';-import { Apiv3RelationsPaths } from 'core-app/core/apiv3/endpoints/relations/apiv3-relations-paths';-import { Apiv3NewsPaths } from 'core-app/core/apiv3/endpoints/news/apiv3-news-paths';-import { Apiv3HelpTextsPaths } from 'core-app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths';-import { Apiv3ConfigurationPath } from 'core-app/core/apiv3/endpoints/configuration/apiv3-configuration-path';-import { Apiv3BoardsPaths } from 'core-app/core/apiv3/virtual/apiv3-boards-paths';+import { ApiV3GridsPaths } from 'core-app/core/apiv3/endpoints/grids/apiv3-grids-paths';+import { ApiV3TimeEntriesPaths } from 'core-app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths';+import { ApiV3CapabilitiesPaths } from 'core-app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths';+import { ApiV3MembershipsPaths } from 'core-app/core/apiv3/endpoints/memberships/apiv3-memberships-paths';+import { ApiV3UsersPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-users-paths';+import { ApiV3TypesPaths } from 'core-app/core/apiv3/endpoints/types/apiv3-types-paths';+import { ApiV3QueriesPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-queries-paths';+import { ApiV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';+import { ApiV3ProjectPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-project-paths';+import { ApiV3ProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-projects-paths';+import { ApiV3StatusesPaths } from 'core-app/core/apiv3/endpoints/statuses/apiv3-statuses-paths';+import { ApiV3RolesPaths } from 'core-app/core/apiv3/endpoints/roles/apiv3-roles-paths';+import { ApiV3VersionsPaths } from 'core-app/core/apiv3/endpoints/versions/apiv3-versions-paths';+import { ApiV3RelationsPaths } from 'core-app/core/apiv3/endpoints/relations/apiv3-relations-paths';+import { ApiV3NewsPaths } from 'core-app/core/apiv3/endpoints/news/apiv3-news-paths';+import { ApiV3HelpTextsPaths } from 'core-app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths';+import { ApiV3ConfigurationPath } from 'core-app/core/apiv3/endpoints/configuration/apiv3-configuration-path';+import { ApiV3BoardsPaths } from 'core-app/core/apiv3/virtual/apiv3-boards-paths';import { RootResource } from 'core-app/features/hal/resources/root-resource';-import { Apiv3PlaceholderUsersPaths } from 'core-app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths';-import { Apiv3GroupsPaths } from 'core-app/core/apiv3/endpoints/groups/apiv3-groups-paths';+import { ApiV3PlaceholderUsersPaths } from 'core-app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths';+import { ApiV3GroupsPaths } from 'core-app/core/apiv3/endpoints/groups/apiv3-groups-paths';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import { Apiv3NotificationsPaths } from 'core-app/core/apiv3/endpoints/notifications/apiv3-notifications-paths';+import { ApiV3NotificationsPaths } from 'core-app/core/apiv3/endpoints/notifications/apiv3-notifications-paths';@Injectable({ providedIn: 'root' })-export class APIV3Service {+export class ApiV3Service {// /api/v3/attachmentspublic readonly attachments = this.apiV3CollectionEndpoint('attachments');// /api/v3/configuration- public readonly configuration = this.apiV3CustomEndpoint(Apiv3ConfigurationPath);+ public readonly configuration = this.apiV3CustomEndpoint(ApiV3ConfigurationPath);// /api/v3/documentspublic readonly documents = this.apiV3CollectionEndpoint('documents');// /api/v3/notifications- public readonly notifications = this.apiV3CustomEndpoint(Apiv3NotificationsPaths);+ public readonly notifications = this.apiV3CustomEndpoint(ApiV3NotificationsPaths);// /api/v3/grids- public readonly grids = this.apiV3CustomEndpoint(Apiv3GridsPaths);+ public readonly grids = this.apiV3CustomEndpoint(ApiV3GridsPaths);// /api/v3/principalspublic readonly principals = this.apiV3CollectionEndpoint('principals');@@ -78,64 +78,64 @@ export class APIV3Service {public readonly root = this.apiV3SingularEndpoint<RootResource>('');// /api/v3/statuses- public readonly statuses = this.apiV3CustomEndpoint(APIv3StatusesPaths);+ public readonly statuses = this.apiV3CustomEndpoint(ApiV3StatusesPaths);// /api/v3/relations- public readonly relations = this.apiV3CustomEndpoint(Apiv3RelationsPaths);+ public readonly relations = this.apiV3CustomEndpoint(ApiV3RelationsPaths);// /api/v3/prioritiespublic readonly priorities = this.apiV3CollectionEndpoint('priorities');// /api/v3/time_entries- public readonly time_entries = this.apiV3CustomEndpoint(Apiv3TimeEntriesPaths);+ public readonly time_entries = this.apiV3CustomEndpoint(ApiV3TimeEntriesPaths);// /api/v3/actionspublic readonly actions = this.apiV3CollectionEndpoint('actions');// /api/v3/capabilities- public readonly capabilities = this.apiV3CustomEndpoint(Apiv3CapabilitiesPaths);+ public readonly capabilities = this.apiV3CustomEndpoint(ApiV3CapabilitiesPaths);// /api/v3/memberships- public readonly memberships = this.apiV3CustomEndpoint(Apiv3MembershipsPaths);+ public readonly memberships = this.apiV3CustomEndpoint(ApiV3MembershipsPaths);// /api/v3/news- public readonly news = this.apiV3CustomEndpoint(Apiv3NewsPaths);+ public readonly news = this.apiV3CustomEndpoint(ApiV3NewsPaths);// /api/v3/types- public readonly types = this.apiV3CustomEndpoint(APIv3TypesPaths);+ public readonly types = this.apiV3CustomEndpoint(ApiV3TypesPaths);// /api/v3/versions- public readonly versions = this.apiV3CustomEndpoint(APIv3VersionsPaths);+ public readonly versions = this.apiV3CustomEndpoint(ApiV3VersionsPaths);// /api/v3/work_packages- public readonly work_packages = this.apiV3CustomEndpoint(APIV3WorkPackagesPaths);+ public readonly work_packages = this.apiV3CustomEndpoint(ApiV3WorkPackagesPaths);// /api/v3/queries- public readonly queries = this.apiV3CustomEndpoint(APIv3QueriesPaths);+ public readonly queries = this.apiV3CustomEndpoint(ApiV3QueriesPaths);// /api/v3/projects- public readonly projects = this.apiV3CustomEndpoint(APIv3ProjectsPaths);+ public readonly projects = this.apiV3CustomEndpoint(ApiV3ProjectsPaths);// /api/v3/users- public readonly users = this.apiV3CustomEndpoint(Apiv3UsersPaths);+ public readonly users = this.apiV3CustomEndpoint(ApiV3UsersPaths);// /api/v3/placeholder_users- public readonly placeholder_users = this.apiV3CustomEndpoint(Apiv3PlaceholderUsersPaths);+ public readonly placeholder_users = this.apiV3CustomEndpoint(ApiV3PlaceholderUsersPaths);// /api/v3/groups- public readonly groups = this.apiV3CustomEndpoint(Apiv3GroupsPaths);+ public readonly groups = this.apiV3CustomEndpoint(ApiV3GroupsPaths);// /api/v3/roles- public readonly roles = this.apiV3CustomEndpoint(APIv3RolesPaths);+ public readonly roles = this.apiV3CustomEndpoint(ApiV3RolesPaths);// /api/v3/help_texts- public readonly help_texts = this.apiV3CustomEndpoint(Apiv3HelpTextsPaths);+ public readonly help_texts = this.apiV3CustomEndpoint(ApiV3HelpTextsPaths);// /api/v3/job_statusespublic readonly job_statuses = this.apiV3CollectionEndpoint('job_statuses');// VIRTUAL boards are /api/v3/grids + a scope filter- public readonly boards = this.apiV3CustomEndpoint(Apiv3BoardsPaths);+ public readonly boards = this.apiV3CustomEndpoint(ApiV3BoardsPaths);constructor(readonly injector:Injector,readonly pathHelper:PathHelperService) {@@ -150,7 +150,7 @@ export class APIV3Service {** @param projectIdentifier*/- public withOptionalProject(projectIdentifier:string|number|null|undefined):APIv3ProjectPaths|this {+ public withOptionalProject(projectIdentifier:string|number|null|undefined):ApiV3ProjectPaths|this {if (_.isNil(projectIdentifier)) {return this;}@@ -163,15 +163,15 @@ export class APIV3Service {return this.apiV3CollectionEndpoint(path);}- private apiV3CollectionEndpoint<V extends HalResource, T extends APIv3GettableResource<V>>(segment:string, resource?:Constructor<T>) {- return new APIv3ResourceCollection<V, T>(this, this.pathHelper.api.v3.apiV3Base, segment, resource);+ private apiV3CollectionEndpoint<V extends HalResource, T extends ApiV3GettableResource<V>>(segment:string, resource?:Constructor<T>) {+ return new ApiV3ResourceCollection<V, T>(this, this.pathHelper.api.v3.apiV3Base, segment, resource);}private apiV3CustomEndpoint<T>(cls:Constructor<T>):T {return new cls(this, this.pathHelper.api.v3.apiV3Base);}- private apiV3SingularEndpoint<T extends HalResource = HalResource>(segment:string):APIv3GettableResource<T> {- return new APIv3GettableResource<T>(this, this.pathHelper.api.v3.apiV3Base, segment);+ private apiV3SingularEndpoint<T extends HalResource = HalResource>(segment:string):ApiV3GettableResource<T> {+ return new ApiV3GettableResource<T>(this, this.pathHelper.api.v3.apiV3Base, segment);}}diff --git a/frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.ts b/frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.tsindex 8fd6b207e64..568b5451396 100644--- a/frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.ts+++ b/frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.ts@@ -26,7 +26,7 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { States } from 'core-app/core/states/states.service';import { HasId, StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';@@ -35,12 +35,12 @@ import { CollectionResource } from 'core-app/features/hal/resources/collection-rimport { tap } from 'rxjs/operators';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-export abstract class CachableAPIV3Collection<+export abstract class ApiV3Collection<T extends HasId = HalResource,- V extends APIv3GettableResource<T> = APIv3GettableResource<T>,+ V extends ApiV3GettableResource<T> = ApiV3GettableResource<T>,X extends StateCacheService<T> = StateCacheService<T>,>- extends APIv3ResourceCollection<T, V> {+ extends ApiV3ResourceCollection<T, V> {@InjectField() states:States;readonly cache:X = this.createCache();diff --git a/frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.ts b/frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.tsindex 24a12823631..85eeaef6dd9 100644--- a/frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.ts+++ b/frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.ts@@ -26,7 +26,7 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { States } from 'core-app/core/states/states.service';import { HasId, StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';@@ -37,8 +37,8 @@ import {import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-export abstract class CachableAPIV3Resource<T extends HasId = HalResource>- extends APIv3GettableResource<T> {+export abstract class ApiV3Resource<T extends HasId = HalResource>+ extends ApiV3GettableResource<T> {@InjectField() states:States;@InjectField() schemaCache:SchemaCacheService;diff --git a/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.tsindex a6f3c95138f..9c4cf1dbc4d 100644--- a/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts@@ -26,33 +26,33 @@// See COPYRIGHT and LICENSE files for more details.//++-import { Apiv3CapabilityPaths } from 'core-app/core/apiv3/endpoints/capabilities/apiv3-capability-paths';+import { ApiV3CapabilityPaths } from 'core-app/core/apiv3/endpoints/capabilities/apiv3-capability-paths';import { CapabilityResource } from 'core-app/features/hal/resources/capability-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-import { CachableAPIV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';+import { ApiV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { CapabilityCacheService } from 'core-app/core/apiv3/endpoints/capabilities/capability-cache.service';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class Apiv3CapabilitiesPaths- extends CachableAPIV3Collection<CapabilityResource, Apiv3CapabilityPaths>- implements Apiv3ListResourceInterface<CapabilityResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3CapabilitiesPaths+ extends ApiV3Collection<CapabilityResource, ApiV3CapabilityPaths>+ implements ApiV3ListResourceInterface<CapabilityResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'capabilities', Apiv3CapabilityPaths);+ super(apiRoot, basePath, 'capabilities', ApiV3CapabilityPaths);}/*** Load a list of capabilities with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<CapabilityResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<CapabilityResource>> {return this.halResourceService.get<CollectionResource<CapabilityResource>>(this.path + listParamsString(params))diff --git a/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.ts b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.tsindex caa41ee3d32..4dddedb4f10 100644--- a/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.ts@@ -27,12 +27,12 @@//++import { CapabilityResource } from 'core-app/features/hal/resources/capability-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-import { Apiv3CapabilitiesPaths } from 'core-app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths';+import { ApiV3CapabilitiesPaths } from 'core-app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths';-export class Apiv3CapabilityPaths extends CachableAPIV3Resource<CapabilityResource> {+export class ApiV3CapabilityPaths extends ApiV3Resource<CapabilityResource> {protected createCache():StateCacheService<CapabilityResource> {- return (this.parent as Apiv3CapabilitiesPaths).cache;+ return (this.parent as ApiV3CapabilitiesPaths).cache;}}diff --git a/frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.ts b/frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.tsindex 9fbf1386218..ae3204d9165 100644--- a/frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.ts+++ b/frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.ts@@ -26,16 +26,16 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { ConfigurationResource } from 'core-app/features/hal/resources/configuration-resource';import { Observable } from 'rxjs';import { shareReplay } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-export class Apiv3ConfigurationPath extends APIv3GettableResource<ConfigurationResource> {+export class ApiV3ConfigurationPath extends ApiV3GettableResource<ConfigurationResource> {private $configuration:Observable<ConfigurationResource>;- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,readonly basePath:string) {super(apiRoot, basePath, 'configuration');}diff --git a/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.ts b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.tsindex 5128bcf041d..4d601da614f 100644--- a/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.ts+++ b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.ts@@ -26,13 +26,13 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';import { HalPayloadHelper } from 'core-app/features/hal/schemas/hal-payload.helper';import { GridWidgetResource } from 'core-app/features/hal/resources/grid-widget-resource';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-export class Apiv3GridForm extends APIv3FormResource {+export class ApiV3GridForm extends ApiV3FormResource {/*** We need to override the grid widget extraction* to pass the correct payload to the API.@@ -72,6 +72,6 @@ export class Apiv3GridForm extends APIv3FormResource {* @param schema*/public extractPayload(request:HalResource|Object, schema:SchemaResource|null = null) {- return Apiv3GridForm.extractPayload(request, schema);+ return ApiV3GridForm.extractPayload(request, schema);}}diff --git a/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.ts b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.tsindex 1e1f5f4f9bd..e7c9dc49f09 100644--- a/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.ts@@ -26,15 +26,15 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { GridResource } from 'core-app/features/hal/resources/grid-resource';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';import { Observable } from 'rxjs';-import { Apiv3GridForm } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-form';+import { ApiV3GridForm } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-form';-export class Apiv3GridPaths extends APIv3GettableResource<GridResource> {+export class ApiV3GridPaths extends ApiV3GettableResource<GridResource> {// Static paths- readonly form = this.subResource('form', Apiv3GridForm);+ readonly form = this.subResource('form', ApiV3GridForm);/*** Update a grid resource or payloaddiff --git a/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.ts b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.tsindex e09b40be068..ce4d7c48a31 100644--- a/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.ts@@ -26,35 +26,35 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { Apiv3GridPaths } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-paths';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GridPaths } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-paths';import { GridResource } from 'core-app/features/hal/resources/grid-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';-import { Apiv3GridForm } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-form';+import { ApiV3GridForm } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-form';import { Observable } from 'rxjs';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-export class Apiv3GridsPaths- extends APIv3ResourceCollection<GridResource, Apiv3GridPaths>- implements Apiv3ListResourceInterface<GridResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3GridsPaths+ extends ApiV3ResourceCollection<GridResource, ApiV3GridPaths>+ implements ApiV3ListResourceInterface<GridResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'grids', Apiv3GridPaths);+ super(apiRoot, basePath, 'grids', ApiV3GridPaths);}- readonly form = this.subResource('form', Apiv3GridForm);+ readonly form = this.subResource('form', ApiV3GridForm);/*** Load a list of grids with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<GridResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<GridResource>> {return this.halResourceService.get<CollectionResource<GridResource>>(this.path + listParamsString(params));diff --git a/frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.ts b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.tsindex 69b06b1b105..a89482de3c7 100644--- a/frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.ts@@ -26,11 +26,11 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { GroupResource } from 'core-app/features/hal/resources/group-resource';import { Observable } from 'rxjs';-export class Apiv3GroupPaths extends APIv3GettableResource<GroupResource> {+export class ApiV3GroupPaths extends ApiV3GettableResource<GroupResource> {/*** Update a placeholder user resource or payload* @param resourcediff --git a/frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.ts b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.tsindex 5158cae8a4b..0d1658a21c3 100644--- a/frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.ts@@ -26,31 +26,31 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { Apiv3GroupPaths } from 'core-app/core/apiv3/endpoints/groups/apiv3-group-paths';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GroupPaths } from 'core-app/core/apiv3/endpoints/groups/apiv3-group-paths';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { GroupResource } from 'core-app/features/hal/resources/group-resource';-export class Apiv3GroupsPaths- extends APIv3ResourceCollection<GroupResource, Apiv3GroupPaths>- implements Apiv3ListResourceInterface<GroupResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3GroupsPaths+ extends ApiV3ResourceCollection<GroupResource, ApiV3GroupPaths>+ implements ApiV3ListResourceInterface<GroupResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'groups', Apiv3GroupPaths);+ super(apiRoot, basePath, 'groups', ApiV3GroupPaths);}/*** Load a list of placeholder users with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<GroupResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<GroupResource>> {return this.halResourceService.get<CollectionResource<GroupResource>>(this.path + listParamsString(params));diff --git a/frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts b/frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.tsindex 6d7aa4c8c82..83b0538f0e0 100644--- a/frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts@@ -26,15 +26,15 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import { HelpTextResource } from 'core-app/features/hal/resources/help-text-resource';-export class Apiv3HelpTextsPaths- extends APIv3ResourceCollection<HelpTextResource, APIv3GettableResource<HelpTextResource>> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3HelpTextsPaths+ extends ApiV3ResourceCollection<HelpTextResource, ApiV3GettableResource<HelpTextResource>> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {super(apiRoot, basePath, 'help_texts');}diff --git a/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.ts b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.tsindex 79b2bac440e..bc4f901b2b3 100644--- a/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.ts+++ b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.ts@@ -26,10 +26,10 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { MembershipResourceEmbedded } from 'core-app/features/hal/resources/membership-resource';-export class Apiv3MembershipsForm extends APIv3FormResource {+export class ApiV3MembershipsForm extends ApiV3FormResource {/*** We need to override the grid widget extraction* to pass the correct payload to the API.@@ -59,6 +59,6 @@ export class Apiv3MembershipsForm extends APIv3FormResource {* @param schema*/public extractPayload(request:MembershipResourceEmbedded) {- return Apiv3MembershipsForm.extractPayload(request);+ return ApiV3MembershipsForm.extractPayload(request);}}diff --git a/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.ts b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.tsindex fc683254706..b5bad3c4806 100644--- a/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.ts@@ -26,26 +26,26 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3AvailableProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-available-projects-paths';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3AvailableProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-available-projects-paths';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { Observable } from 'rxjs';-import { Apiv3MembershipsForm } from 'core-app/core/apiv3/endpoints/memberships/apiv3-memberships-form';+import { ApiV3MembershipsForm } from 'core-app/core/apiv3/endpoints/memberships/apiv3-memberships-form';import { MembershipResource, MembershipResourceEmbedded } from 'core-app/features/hal/resources/membership-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-export class Apiv3MembershipsPaths- extends APIv3ResourceCollection<MembershipResource, APIv3GettableResource<MembershipResource>>- implements Apiv3ListResourceInterface<MembershipResource> {+export class ApiV3MembershipsPaths+ extends ApiV3ResourceCollection<MembershipResource, ApiV3GettableResource<MembershipResource>>+ implements ApiV3ListResourceInterface<MembershipResource> {// Static paths- readonly form = this.subResource('form', Apiv3MembershipsForm);+ readonly form = this.subResource('form', ApiV3MembershipsForm);- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {super(apiRoot, basePath, 'memberships');}@@ -54,14 +54,14 @@ export class Apiv3MembershipsPaths* Load a list of membership entries with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<MembershipResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<MembershipResource>> {return this.halResourceService.get<CollectionResource<MembershipResource>>(this.path + listParamsString(params));}// /api/v3/memberships/available_projects- readonly available_projects = this.subResource('available_projects', Apiv3AvailableProjectsPaths);+ readonly available_projects = this.subResource('available_projects', ApiV3AvailableProjectsPaths);/*** Create a new MembershipResourcediff --git a/frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.ts b/frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.tsindex a48027b9ba2..3627e8bd679 100644--- a/frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.ts@@ -26,22 +26,22 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { NewsResource } from 'core-app/features/hal/resources/news-resource';-export class Apiv3NewsPaths- extends APIv3ResourceCollection<NewsResource, APIv3GettableResource<NewsResource>>- implements Apiv3ListResourceInterface<NewsResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3NewsPaths+ extends ApiV3ResourceCollection<NewsResource, ApiV3GettableResource<NewsResource>>+ implements ApiV3ListResourceInterface<NewsResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {super(apiRoot, basePath, 'news');}@@ -50,7 +50,7 @@ export class Apiv3NewsPaths* Load a list of time entries with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<NewsResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<NewsResource>> {return this.halResourceService.get<CollectionResource<TimeEntryResource>>(this.path + listParamsString(params));diff --git a/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notification-paths.ts b/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notification-paths.tsindex c168e1c7641..8bc3b3342d6 100644--- a/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notification-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notification-paths.ts@@ -26,13 +26,13 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { Observable } from 'rxjs';import { HttpClient } from '@angular/common/http';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { InAppNotification } from 'core-app/core/state/in-app-notifications/in-app-notification.model';-export class Apiv3NotificationPaths extends APIv3GettableResource<InAppNotification> {+export class ApiV3NotificationPaths extends ApiV3GettableResource<InAppNotification> {@InjectField() http:HttpClient;public markRead():Observable<unknown> {diff --git a/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notifications-paths.ts b/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notifications-paths.tsindex e25d1cf811f..966cff85ee9 100644--- a/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notifications-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/notifications/apiv3-notifications-paths.ts@@ -26,31 +26,31 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import {- Apiv3ListParameters,+ ApiV3ListParameters,ApiV3ListFilter,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';-import { Apiv3NotificationPaths } from 'core-app/core/apiv3/endpoints/notifications/apiv3-notification-paths';+import { ApiV3NotificationPaths } from 'core-app/core/apiv3/endpoints/notifications/apiv3-notification-paths';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { HttpClient } from '@angular/common/http';import { IHALCollection } from 'core-app/core/apiv3/types/hal-collection.type';import { ID } from '@datorama/akita';import { InAppNotification } from 'core-app/core/state/in-app-notifications/in-app-notification.model';-export class Apiv3NotificationsPaths- extends APIv3ResourceCollection<InAppNotification, Apiv3NotificationPaths> {+export class ApiV3NotificationsPaths+ extends ApiV3ResourceCollection<InAppNotification, ApiV3NotificationPaths> {@InjectField() http:HttpClient;- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'notifications', Apiv3NotificationPaths);+ super(apiRoot, basePath, 'notifications', ApiV3NotificationPaths);}- public facet(facet:string, params?:Apiv3ListParameters):Observable<IHALCollection<InAppNotification>> {+ public facet(facet:string, params?:ApiV3ListParameters):Observable<IHALCollection<InAppNotification>> {if (facet === 'unread') {return this.unread(params);}@@ -61,26 +61,26 @@ export class Apiv3NotificationsPaths* Load a list of events with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<IHALCollection<InAppNotification>> {+ public list(params?:ApiV3ListParameters):Observable<IHALCollection<InAppNotification>> {return this.http.get<IHALCollection<InAppNotification>>(this.path + listParamsString(params));}- public listPath(params?:Apiv3ListParameters):string {+ public listPath(params?:ApiV3ListParameters):string {return this.path + listParamsString(params);}/*** Load unread events*/- public unread(additional?:Apiv3ListParameters):Observable<IHALCollection<InAppNotification>> {+ public unread(additional?:ApiV3ListParameters):Observable<IHALCollection<InAppNotification>> {const unreadFilter:ApiV3ListFilter = ['readIAN', '=', false];const filters = [...(additional?.filters ? additional.filters : []),unreadFilter,];- const params:Apiv3ListParameters = {+ const params:ApiV3ListParameters = {...additional,filters,};diff --git a/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.tsindex d984c83cb93..fb0325b0a4a 100644--- a/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts@@ -26,11 +26,11 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { PlaceholderUserResource } from 'core-app/features/hal/resources/placeholder-user-resource';import { Observable } from 'rxjs';-export class Apiv3PlaceholderUserPaths extends APIv3GettableResource<PlaceholderUserResource> {+export class ApiV3PlaceholderUserPaths extends ApiV3GettableResource<PlaceholderUserResource> {/*** Update a placeholder user resource or payload* @param resourcediff --git a/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.tsindex 96e98bfafc3..f6bef07eb5e 100644--- a/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts@@ -26,31 +26,31 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { Apiv3PlaceholderUserPaths } from 'core-app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3PlaceholderUserPaths } from 'core-app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths';import { PlaceholderUserResource } from 'core-app/features/hal/resources/placeholder-user-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-export class Apiv3PlaceholderUsersPaths- extends APIv3ResourceCollection<PlaceholderUserResource, Apiv3PlaceholderUserPaths>- implements Apiv3ListResourceInterface<PlaceholderUserResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3PlaceholderUsersPaths+ extends ApiV3ResourceCollection<PlaceholderUserResource, ApiV3PlaceholderUserPaths>+ implements ApiV3ListResourceInterface<PlaceholderUserResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'placeholder_users', Apiv3PlaceholderUserPaths);+ super(apiRoot, basePath, 'placeholder_users', ApiV3PlaceholderUserPaths);}/*** Load a list of placeholder users with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<PlaceholderUserResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<PlaceholderUserResource>> {return this.halResourceService.get<CollectionResource<PlaceholderUserResource>>(this.path + listParamsString(params));diff --git a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.tsindex 3dfc2428b20..b4d7eb2d13a 100644--- a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.ts@@ -27,25 +27,25 @@//++import { ProjectResource } from 'core-app/features/hal/resources/project-resource';-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { Observable } from 'rxjs';import { map } from 'rxjs/operators';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';-import { buildApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';+import { ApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';-export class Apiv3AvailableProjectsPaths- extends APIv3GettableResource<CollectionResource<ProjectResource>>- implements Apiv3ListResourceInterface<ProjectResource> {+export class ApiV3AvailableProjectsPaths+ extends ApiV3GettableResource<CollectionResource<ProjectResource>>+ implements ApiV3ListResourceInterface<ProjectResource> {/*** Load a list of available projects with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<ProjectResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<ProjectResource>> {return this.halResourceService.get<CollectionResource<ProjectResource>>(this.path + listParamsString(params));@@ -65,7 +65,7 @@ export class Apiv3AvailableProjectsPaths.halResourceService.get<CollectionResource<ProjectResource>>(this.path,- { filters: buildApiV3Filter('id', '=', [projectId]).toJson() },+ { filters: ApiV3Filter('id', '=', [projectId]).toJson() },).pipe(map((collection) => collection.count > 0),diff --git a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.tsindex 79949335c98..7d4bcc9119c 100644--- a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.ts@@ -26,16 +26,16 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { SimpleResource } from 'core-app/core/apiv3/paths/path-resources';-export class APIv3ProjectCopyPaths extends SimpleResource {- constructor(protected apiRoot:APIV3Service,+export class ApiV3ProjectCopyPaths extends SimpleResource {+ constructor(protected apiRoot:ApiV3Service,public basePath:string) {super(basePath, 'copy');}// /api/v3/projects/:project_id/copy/form- public readonly form = new APIv3FormResource(this.apiRoot, this.path, 'form');+ public readonly form = new ApiV3FormResource(this.apiRoot, this.path, 'form');}diff --git a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.tsindex 689e0317b40..142782b8269 100644--- a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.ts@@ -26,36 +26,36 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3QueriesPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-queries-paths';-import { APIv3TypesPaths } from 'core-app/core/apiv3/endpoints/types/apiv3-types-paths';-import { APIV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';+import { ApiV3QueriesPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-queries-paths';+import { ApiV3TypesPaths } from 'core-app/core/apiv3/endpoints/types/apiv3-types-paths';+import { ApiV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';-import { APIv3VersionsPaths } from 'core-app/core/apiv3/endpoints/versions/apiv3-versions-paths';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3VersionsPaths } from 'core-app/core/apiv3/endpoints/versions/apiv3-versions-paths';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-import { APIv3ProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-projects-paths';-import { APIv3ProjectCopyPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-project-copy-paths';+import { ApiV3ProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-projects-paths';+import { ApiV3ProjectCopyPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-project-copy-paths';-export class APIv3ProjectPaths extends CachableAPIV3Resource<ProjectResource> {+export class ApiV3ProjectPaths extends ApiV3Resource<ProjectResource> {// /api/v3/projects/:project_id/available_assigneespublic readonly available_assignees = this.subResource('available_assignees');// /api/v3/projects/:project_id/queries- public readonly queries = new APIv3QueriesPaths(this.apiRoot, this.path);+ public readonly queries = new ApiV3QueriesPaths(this.apiRoot, this.path);// /api/v3/projects/:project_id/types- public readonly types = new APIv3TypesPaths(this.apiRoot, this.path);+ public readonly types = new ApiV3TypesPaths(this.apiRoot, this.path);// /api/v3/projects/:project_id/work_packages- public readonly work_packages = new APIV3WorkPackagesPaths(this.apiRoot, this.path);+ public readonly work_packages = new ApiV3WorkPackagesPaths(this.apiRoot, this.path);// /api/v3/projects/:project_id/versions- public readonly versions = new APIv3VersionsPaths(this.apiRoot, this.path);+ public readonly versions = new ApiV3VersionsPaths(this.apiRoot, this.path);// /api/v3/projects/:project_id/copy- public readonly copy = new APIv3ProjectCopyPaths(this.apiRoot, this.path);+ public readonly copy = new ApiV3ProjectCopyPaths(this.apiRoot, this.path);protected createCache():StateCacheService<ProjectResource> {- return (this.parent as APIv3ProjectsPaths).cache;+ return (this.parent as ApiV3ProjectsPaths).cache;}}diff --git a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.tsindex 74f4ab1d445..ae762f442d6 100644--- a/frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.ts@@ -26,27 +26,27 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ProjectPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-project-paths';+import { ApiV3ProjectPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-project-paths';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { Observable } from 'rxjs';-import { CachableAPIV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';+import { ApiV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';import { ProjectCache } from 'core-app/core/apiv3/endpoints/projects/project.cache';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-export class APIv3ProjectsPaths- extends CachableAPIV3Collection<ProjectResource, APIv3ProjectPaths>- implements Apiv3ListResourceInterface<ProjectResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3ProjectsPaths+ extends ApiV3Collection<ProjectResource, ApiV3ProjectPaths>+ implements ApiV3ListResourceInterface<ProjectResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'projects', APIv3ProjectPaths);+ super(apiRoot, basePath, 'projects', ApiV3ProjectPaths);}// /api/v3/projects/schema@@ -57,7 +57,7 @@ export class APIv3ProjectsPaths** @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<ProjectResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<ProjectResource>> {return this.halResourceService.get<CollectionResource<ProjectResource>>(this.path + listParamsString(params))diff --git a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.tsindex c0661924728..be675a397a6 100644--- a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.ts@@ -26,42 +26,42 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { APIv3QueryPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-paths';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3QueryPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-paths';import { QueryResource } from 'core-app/features/hal/resources/query-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3QueryForm } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-form';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3QueryForm } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-form';import { Observable } from 'rxjs';import { QueryFormResource } from 'core-app/features/hal/resources/query-form-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-import { Apiv3ListParameters, listParamsString } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters, listParamsString } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { QueryFiltersService } from 'core-app/features/work-packages/components/wp-query/query-filters.service';import { HalPayloadHelper } from 'core-app/features/hal/schemas/hal-payload.helper';-export class APIv3QueriesPaths extends APIv3ResourceCollection<QueryResource, APIv3QueryPaths> {+export class ApiV3QueriesPaths extends ApiV3ResourceCollection<QueryResource, ApiV3QueryPaths> {@InjectField() private queryFilters:QueryFiltersService;- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'queries', APIv3QueryPaths);+ super(apiRoot, basePath, 'queries', ApiV3QueryPaths);}// Static paths// /api/v3/queries/form- readonly form = this.subResource('form', Apiv3QueryForm);+ readonly form = this.subResource('form', ApiV3QueryForm);// /api/v3/queries/default- readonly default = this.subResource<APIv3GettableResource<QueryResource>>('default');+ readonly default = this.subResource<ApiV3GettableResource<QueryResource>>('default');// /api/v3/queries/filter_instance_schemas/:id- readonly filter_instance_schemas = new APIv3ResourceCollection(this.apiRoot, this.path, 'filter_instance_schemas');+ readonly filter_instance_schemas = new ApiV3ResourceCollection(this.apiRoot, this.path, 'filter_instance_schemas');/*** Load a list of queries with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<QueryResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<QueryResource>> {return this.halResourceService.get<CollectionResource<QueryResource>>(this.path + listParamsString(params));@@ -139,7 +139,7 @@ export class APIv3QueriesPaths extends APIv3ResourceCollection<QueryResource, AP* @param projectIdentifier*/public filterNonHidden(projectIdentifier:string|null):Observable<CollectionResource<QueryResource>> {- const listParams:Apiv3ListParameters = {+ const listParams:ApiV3ListParameters = {filters: [['hidden', '=', ['f']]],};diff --git a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.tsindex 97a55981296..7a98efe6932 100644--- a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.ts+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.ts@@ -27,7 +27,7 @@//++import { QueryResource } from 'core-app/features/hal/resources/query-resource';-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { QueryFormResource } from 'core-app/features/hal/resources/query-form-resource';import { Observable } from 'rxjs';import * as URI from 'urijs';@@ -35,7 +35,7 @@ import { map, tap } from 'rxjs/operators';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { QueryFiltersService } from 'core-app/features/work-packages/components/wp-query/query-filters.service';-export class Apiv3QueryForm extends APIv3FormResource<QueryFormResource> {+export class ApiV3QueryForm extends ApiV3FormResource<QueryFormResource> {@InjectField() private queryFilters:QueryFiltersService;/**diff --git a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.tsindex acec4720834..329bdb5aca0 100644--- a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.ts+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.ts@@ -33,7 +33,7 @@ import { SimpleResource } from 'core-app/core/apiv3/paths/path-resources';export type QueryOrder = { [wpId:string]:number };-export class APIV3QueryOrder extends SimpleResource {+export class ApiV3QueryOrder extends SimpleResource {@InjectField() http:HttpClient;constructor(readonly injector:Injector,diff --git a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.tsindex 0d9b1f278ba..b4bc42acf6c 100644--- a/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.ts@@ -26,10 +26,10 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { QueryResource } from 'core-app/features/hal/resources/query-resource';-import { APIV3QueryOrder } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-order';-import { Apiv3QueryForm } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-form';+import { ApiV3QueryOrder } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-order';+import { ApiV3QueryForm } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-form';import { Observable } from 'rxjs';import { QueryFormResource } from 'core-app/features/hal/resources/query-form-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';@@ -37,14 +37,14 @@ import { QueryFiltersService } from 'core-app/features/work-packages/components/import { HalPayloadHelper } from 'core-app/features/hal/schemas/hal-payload.helper';import { PaginationObject } from 'core-app/shared/components/table-pagination/pagination-service';-export class APIv3QueryPaths extends APIv3GettableResource<QueryResource> {+export class ApiV3QueryPaths extends ApiV3GettableResource<QueryResource> {@InjectField() private queryFilters:QueryFiltersService;// Static paths- readonly form = this.subResource('form', Apiv3QueryForm);+ readonly form = this.subResource('form', ApiV3QueryForm);// Order path- readonly order = new APIV3QueryOrder(this.injector, this.path, 'order');+ readonly order = new ApiV3QueryOrder(this.injector, this.path, 'order');/*** Stream the response for the given query requestdiff --git a/frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.ts b/frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.tsindex 3d92bd4f807..d3cf91a8de9 100644--- a/frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.ts@@ -26,16 +26,16 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource, APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3GettableResource, ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { from, Observable } from 'rxjs';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { RelationResource } from 'core-app/features/hal/resources/relation-resource';import { map } from 'rxjs/operators';-import { buildApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';+import { ApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';-export class Apiv3RelationsPaths extends APIv3ResourceCollection<RelationResource, APIv3GettableResource<RelationResource>> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3RelationsPaths extends ApiV3ResourceCollection<RelationResource, ApiV3GettableResource<RelationResource>> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {super(apiRoot, basePath, 'relations');}@@ -57,7 +57,7 @@ export class Apiv3RelationsPaths extends APIv3ResourceCollection<RelationResourc}return this- .filtered(buildApiV3Filter('involved', '=', validIds))+ .filtered(ApiV3Filter('involved', '=', validIds)).get().pipe(map((collection) => collection.elements),diff --git a/frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.ts b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.tsindex 9a21941038e..1bea8f2a361 100644--- a/frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.ts@@ -27,10 +27,10 @@//++import { RoleResource } from 'core-app/features/hal/resources/role-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class APIv3RolePaths extends CachableAPIV3Resource<RoleResource> {+export class ApiV3RolePaths extends ApiV3Resource<RoleResource> {protected createCache():StateCacheService<RoleResource> {return new StateCacheService<RoleResource>(this.states.roles);}diff --git a/frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.ts b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.tsindex 7abac3a5555..9b26609c48d 100644--- a/frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.ts@@ -26,18 +26,18 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { RoleResource } from 'core-app/features/hal/resources/role-resource';-import { APIv3RolePaths } from 'core-app/core/apiv3/endpoints/roles/apiv3-role-paths';+import { ApiV3RolePaths } from 'core-app/core/apiv3/endpoints/roles/apiv3-role-paths';import { Observable } from 'rxjs';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { tap } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-export class APIv3RolesPaths extends APIv3ResourceCollection<RoleResource, APIv3RolePaths> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3RolesPaths extends ApiV3ResourceCollection<RoleResource, ApiV3RolePaths> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'roles', APIv3RolePaths);+ super(apiRoot, basePath, 'roles', ApiV3RolePaths);}/**diff --git a/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.ts b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.tsindex 7cf27f8ca79..5d92761925d 100644--- a/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.ts@@ -27,10 +27,10 @@//++import { StatusResource } from 'core-app/features/hal/resources/status-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class APIv3StatusPaths extends CachableAPIV3Resource<StatusResource> {+export class ApiV3StatusPaths extends ApiV3Resource<StatusResource> {protected createCache():StateCacheService<StatusResource> {return new StateCacheService<StatusResource>(this.states.statuses);}diff --git a/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.ts b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.tsindex 667e62aabad..5e0c05b7d31 100644--- a/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.ts@@ -26,18 +26,18 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { StatusResource } from 'core-app/features/hal/resources/status-resource';-import { APIv3StatusPaths } from 'core-app/core/apiv3/endpoints/statuses/apiv3-status-paths';+import { ApiV3StatusPaths } from 'core-app/core/apiv3/endpoints/statuses/apiv3-status-paths';import { Observable } from 'rxjs';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { tap } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';-export class APIv3StatusesPaths extends APIv3ResourceCollection<StatusResource, APIv3StatusPaths> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3StatusesPaths extends ApiV3ResourceCollection<StatusResource, ApiV3StatusPaths> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'statuses', APIv3StatusPaths);+ super(apiRoot, basePath, 'statuses', ApiV3StatusPaths);}/**diff --git a/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.tsindex 2a59dfe8d1d..24a2c9987c9 100644--- a/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts@@ -26,37 +26,37 @@// See COPYRIGHT and LICENSE files for more details.//++-import { Apiv3TimeEntryPaths } from 'core-app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths';+import { ApiV3TimeEntryPaths } from 'core-app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths';import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { Observable } from 'rxjs';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-import { CachableAPIV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';+import { ApiV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';import {- Apiv3ListParameters,- Apiv3ListResourceInterface,+ ApiV3ListParameters,+ ApiV3ListResourceInterface,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { TimeEntryCacheService } from 'core-app/core/apiv3/endpoints/time-entries/time-entry-cache.service';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class Apiv3TimeEntriesPaths- extends CachableAPIV3Collection<TimeEntryResource, Apiv3TimeEntryPaths>- implements Apiv3ListResourceInterface<TimeEntryResource> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3TimeEntriesPaths+ extends ApiV3Collection<TimeEntryResource, ApiV3TimeEntryPaths>+ implements ApiV3ListResourceInterface<TimeEntryResource> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'time_entries', Apiv3TimeEntryPaths);+ super(apiRoot, basePath, 'time_entries', ApiV3TimeEntryPaths);}// Static paths- public readonly form = this.subResource('form', APIv3FormResource);+ public readonly form = this.subResource('form', ApiV3FormResource);/*** Load a list of time entries with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<CollectionResource<TimeEntryResource>> {+ public list(params?:ApiV3ListParameters):Observable<CollectionResource<TimeEntryResource>> {return this.halResourceService.get<CollectionResource<TimeEntryResource>>(this.path + listParamsString(params))diff --git a/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.tsindex 714deab393e..7460b4d5b7e 100644--- a/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts@@ -27,19 +27,19 @@//++import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';import { Observable } from 'rxjs';import { tap } from 'rxjs/operators';-import { Apiv3TimeEntriesPaths } from 'core-app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths';+import { ApiV3TimeEntriesPaths } from 'core-app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths';import { HalPayloadHelper } from 'core-app/features/hal/schemas/hal-payload.helper';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-export class Apiv3TimeEntryPaths extends CachableAPIV3Resource<TimeEntryResource> {+export class ApiV3TimeEntryPaths extends ApiV3Resource<TimeEntryResource> {// Static paths- readonly form = this.subResource('form', APIv3FormResource);+ readonly form = this.subResource('form', ApiV3FormResource);/*** Update the time entry with the given payload.@@ -71,7 +71,7 @@ export class Apiv3TimeEntryPaths extends CachableAPIV3Resource<TimeEntryResource}protected createCache():StateCacheService<TimeEntryResource> {- return (this.parent as Apiv3TimeEntriesPaths).cache;+ return (this.parent as ApiV3TimeEntriesPaths).cache;}/**diff --git a/frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.ts b/frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.tsindex d46732fac5a..931220cc0ee 100644--- a/frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.ts@@ -27,12 +27,12 @@//++import { TypeResource } from 'core-app/features/hal/resources/type-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-import { APIv3TypesPaths } from 'core-app/core/apiv3/endpoints/types/apiv3-types-paths';+import { ApiV3TypesPaths } from 'core-app/core/apiv3/endpoints/types/apiv3-types-paths';-export class APIv3TypePaths extends CachableAPIV3Resource<TypeResource> {+export class ApiV3TypePaths extends ApiV3Resource<TypeResource> {protected createCache():StateCacheService<TypeResource> {- return (this.parent as APIv3TypesPaths).cache;+ return (this.parent as ApiV3TypesPaths).cache;}}diff --git a/frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.ts b/frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.tsindex d0ffb1f515c..07af705167a 100644--- a/frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.ts@@ -27,15 +27,15 @@//++import { TypeResource } from 'core-app/features/hal/resources/type-resource';-import { APIv3TypePaths } from 'core-app/core/apiv3/endpoints/types/apiv3-type-paths';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { CachableAPIV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';+import { ApiV3TypePaths } from 'core-app/core/apiv3/endpoints/types/apiv3-type-paths';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class APIv3TypesPaths extends CachableAPIV3Collection<TypeResource, APIv3TypePaths> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3TypesPaths extends ApiV3Collection<TypeResource, ApiV3TypePaths> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'types', APIv3TypePaths);+ super(apiRoot, basePath, 'types', ApiV3TypePaths);}protected createCache():StateCacheService<TypeResource> {diff --git a/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.ts b/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.tsindex bf6cb579d98..97bab502b36 100644--- a/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.ts@@ -27,14 +27,14 @@//++import { UserResource } from 'core-app/features/hal/resources/user-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-import { Apiv3UserPreferencesPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-preferences-paths';+import { ApiV3UserPreferencesPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-preferences-paths';-export class APIv3UserPaths extends CachableAPIV3Resource<UserResource> {+export class ApiV3UserPaths extends ApiV3Resource<UserResource> {readonly avatar = this.subResource('avatar');- readonly preferences = this.subResource('preferences', Apiv3UserPreferencesPaths);+ readonly preferences = this.subResource('preferences', ApiV3UserPreferencesPaths);protected createCache():StateCacheService<UserResource> {return new StateCacheService<UserResource>(this.states.users);diff --git a/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-preferences-paths.ts b/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-preferences-paths.tsindex 8126dde7420..2eb7c5161cd 100644--- a/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-preferences-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-preferences-paths.ts@@ -26,13 +26,13 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourcePath } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourcePath } from 'core-app/core/apiv3/paths/apiv3-resource';import { Observable } from 'rxjs';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { HttpClient } from '@angular/common/http';import { UserPreferencesModel } from 'core-app/features/user-preferences/state/user-preferences.model';-export class Apiv3UserPreferencesPaths extends APIv3ResourcePath<UserPreferencesModel> {+export class ApiV3UserPreferencesPaths extends ApiV3ResourcePath<UserPreferencesModel> {@InjectField() http:HttpClient;/**diff --git a/frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.ts b/frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.tsindex adbd04c2773..093004bbb83 100644--- a/frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.ts@@ -26,26 +26,26 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';-import { APIv3UserPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-paths';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3UserPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-paths';import { Observable } from 'rxjs';import { UserResource } from 'core-app/features/hal/resources/user-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';-export class Apiv3UsersPaths extends APIv3ResourceCollection<UserResource, APIv3UserPaths> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3UsersPaths extends ApiV3ResourceCollection<UserResource, ApiV3UserPaths> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'users', APIv3UserPaths);+ super(apiRoot, basePath, 'users', ApiV3UserPaths);}// Static paths// /api/v3/users/me- public readonly me = this.subResource('me', APIv3UserPaths);+ public readonly me = this.subResource('me', ApiV3UserPaths);// /api/v3/users/form- public readonly form = this.subResource('form', APIv3FormResource);+ public readonly form = this.subResource('form', ApiV3FormResource);/*** Create a new UserResourcediff --git a/frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.ts b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.tsindex e4fdf4d5cd1..773ae2b0eb5 100644--- a/frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.ts@@ -28,11 +28,11 @@import { VersionResource } from 'core-app/features/hal/resources/version-resource';import { Observable } from 'rxjs';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { tap } from 'rxjs/operators';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class APIv3VersionPaths extends CachableAPIV3Resource<VersionResource> {+export class ApiV3VersionPaths extends ApiV3Resource<VersionResource> {/*** Update a version resource with the given payload*diff --git a/frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.ts b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.tsindex 164ed54c1ea..54d6b746a8b 100644--- a/frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.ts@@ -26,26 +26,26 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { VersionResource } from 'core-app/features/hal/resources/version-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { Observable } from 'rxjs';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-import { Apiv3AvailableProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-available-projects-paths';-import { APIv3VersionPaths } from 'core-app/core/apiv3/endpoints/versions/apiv3-version-paths';+import { ApiV3AvailableProjectsPaths } from 'core-app/core/apiv3/endpoints/projects/apiv3-available-projects-paths';+import { ApiV3VersionPaths } from 'core-app/core/apiv3/endpoints/versions/apiv3-version-paths';-export class APIv3VersionsPaths extends APIv3ResourceCollection<VersionResource, APIv3VersionPaths> {- constructor(protected apiRoot:APIV3Service,+export class ApiV3VersionsPaths extends ApiV3ResourceCollection<VersionResource, ApiV3VersionPaths> {+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'versions', APIv3VersionPaths);+ super(apiRoot, basePath, 'versions', ApiV3VersionPaths);}// /api/v3/versions/form- public readonly form = this.subResource('form', APIv3FormResource);+ public readonly form = this.subResource('form', ApiV3FormResource);- public readonly available_projects = this.subResource('available_projects', Apiv3AvailableProjectsPaths);+ public readonly available_projects = this.subResource('available_projects', ApiV3AvailableProjectsPaths);/*** Get all versionsdiff --git a/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.tsindex e040d767ea2..1bba0822198 100644--- a/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts@@ -26,10 +26,10 @@// See COPYRIGHT and LICENSE files for more details.//++-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { WorkPackageCollectionResource } from 'core-app/features/hal/resources/wp-collection-resource';import { Observable } from 'rxjs';-import { APIV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';+import { ApiV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';import { take, tap } from 'rxjs/operators';import { WorkPackageCache } from 'core-app/core/apiv3/endpoints/work_packages/work-package.cache';import { States } from 'core-app/core/states/states.service';@@ -37,7 +37,7 @@ import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decoraimport { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';-export class ApiV3WorkPackageCachedSubresource extends APIv3GettableResource<WorkPackageCollectionResource> {+export class ApiV3WorkPackageCachedSubresource extends ApiV3GettableResource<WorkPackageCollectionResource> {@InjectField() private states:States;public get():Observable<WorkPackageCollectionResource> {@@ -52,7 +52,7 @@ export class ApiV3WorkPackageCachedSubresource extends APIv3GettableResource<Wor}protected get cache():WorkPackageCache {- return (this.parent as APIV3WorkPackagesPaths).cache;+ return (this.parent as ApiV3WorkPackagesPaths).cache;}private updateSchemas(schemas:CollectionResource<SchemaResource>) {diff --git a/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.tsindex bcd05b825a3..a3a81de83e3 100644--- a/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts@@ -27,14 +27,14 @@//++import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { Apiv3RelationsPaths } from 'core-app/core/apiv3/endpoints/relations/apiv3-relations-paths';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';-import { APIV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';+import { ApiV3RelationsPaths } from 'core-app/core/apiv3/endpoints/relations/apiv3-relations-paths';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3WorkPackagesPaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class APIV3WorkPackagePaths extends CachableAPIV3Resource<WorkPackageResource> {+export class ApiV3WorkPackagePaths extends ApiV3Resource<WorkPackageResource> {// /api/v3/(?:projectPath)/work_packages/(:workPackageId)/relations- public readonly relations = this.subResource('relations', Apiv3RelationsPaths);+ public readonly relations = this.subResource('relations', ApiV3RelationsPaths);// /api/v3/(?:projectPath)/work_packages/(:workPackageId)/revisionspublic readonly revisions = this.subResource('revisions');@@ -52,6 +52,6 @@ export class APIV3WorkPackagePaths extends CachableAPIV3Resource<WorkPackageResopublic readonly github_pull_requests = this.subResource('github_pull_requests');protected createCache():StateCacheService<WorkPackageResource> {- return (this.parent as APIV3WorkPackagesPaths).cache;+ return (this.parent as ApiV3WorkPackagesPaths).cache;}}diff --git a/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.tsindex 15acd83d1e5..16073fa63d1 100644--- a/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts@@ -27,35 +27,35 @@//++import { Observable } from 'rxjs';-import { APIV3WorkPackagePaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths';+import { ApiV3WorkPackagePaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { WorkPackageCollectionResource } from 'core-app/features/hal/resources/wp-collection-resource';-import { APIv3WorkPackageForm } from 'core-app/core/apiv3/endpoints/work_packages/apiv3-work-package-form';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { CachableAPIV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';+import { ApiV3WorkPackageForm } from 'core-app/core/apiv3/endpoints/work_packages/apiv3-work-package-form';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';import { WorkPackageCache } from 'core-app/core/apiv3/endpoints/work_packages/work-package.cache';-import { APIv3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3GettableResource } from 'core-app/core/apiv3/paths/apiv3-resource';import { ApiV3WorkPackageCachedSubresource } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource';import {ApiV3FilterBuilder,ApiV3FilterValueType,- buildApiV3Filter,+ ApiV3Filter,} from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';-export class APIV3WorkPackagesPaths extends CachableAPIV3Collection<WorkPackageResource, APIV3WorkPackagePaths, WorkPackageCache> {+export class ApiV3WorkPackagesPaths extends ApiV3Collection<WorkPackageResource, ApiV3WorkPackagePaths, WorkPackageCache> {// Base pathpublic readonly path:string;- constructor(readonly apiRoot:APIV3Service,+ constructor(readonly apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'work_packages', APIV3WorkPackagePaths);+ super(apiRoot, basePath, 'work_packages', ApiV3WorkPackagePaths);}// Static paths// /api/v3/(projects/:projectIdentifier)/work_packages/form- public readonly form:APIv3WorkPackageForm = this.subResource('form', APIv3WorkPackageForm);+ public readonly form:ApiV3WorkPackageForm = this.subResource('form', ApiV3WorkPackageForm);/***@@ -100,7 +100,7 @@ export class APIV3WorkPackagesPaths extends CachableAPIV3Collection<WorkPackageR);}- filtered<R = APIv3GettableResource<WorkPackageCollectionResource>>(filters:ApiV3FilterBuilder, params:{ [p:string]:string } = {}):R {+ filtered<R = ApiV3GettableResource<WorkPackageCollectionResource>>(filters:ApiV3FilterBuilder, params:{ [p:string]:string } = {}):R {return super.filtered(filters, params, ApiV3WorkPackageCachedSubresource) as any;}@@ -161,7 +161,7 @@ export class APIV3WorkPackagesPaths extends CachableAPIV3Collection<WorkPackageRthis.path,ids.length,{- filters: buildApiV3Filter('id', '=', ids).toJson(),+ filters: ApiV3Filter('id', '=', ids).toJson(),},);}diff --git a/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.tsindex 60a80ac2dc7..4fafd46fdcf 100644--- a/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts@@ -1,9 +1,9 @@-import { APIv3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';+import { ApiV3FormResource } from 'core-app/core/apiv3/forms/apiv3-form-resource';import { FormResource } from 'core-app/features/hal/resources/form-resource';import { Observable } from 'rxjs';import { HalSource } from 'core-app/features/hal/resources/hal-resource';-export class APIv3WorkPackageForm extends APIv3FormResource {+export class ApiV3WorkPackageForm extends ApiV3FormResource {/*** Returns a promise to post `/api/v3/work_packages/form` with only the type part of the* provided payload being sent to the backend.diff --git a/frontend/src/app/core/apiv3/forms/apiv3-form-resource.ts b/frontend/src/app/core/apiv3/forms/apiv3-form-resource.tsindex 4f71485e721..913ff1a70de 100644--- a/frontend/src/app/core/apiv3/forms/apiv3-form-resource.ts+++ b/frontend/src/app/core/apiv3/forms/apiv3-form-resource.ts@@ -1,10 +1,10 @@-import { APIv3ResourcePath } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourcePath } from 'core-app/core/apiv3/paths/apiv3-resource';import { FormResource } from 'core-app/features/hal/resources/form-resource';import { Observable } from 'rxjs';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';import { HalPayloadHelper } from 'core-app/features/hal/schemas/hal-payload.helper';-export class APIv3FormResource<T extends FormResource = FormResource> extends APIv3ResourcePath<T> {+export class ApiV3FormResource<T extends FormResource = FormResource> extends ApiV3ResourcePath<T> {/*** POST to the form resource identified by this path* @param request The request payloaddiff --git a/frontend/src/app/core/apiv3/openproject-api-v3.module.ts b/frontend/src/app/core/apiv3/openproject-api-v3.module.tsindex 5cc076f3234..0099e6a9cff 100644--- a/frontend/src/app/core/apiv3/openproject-api-v3.module.ts+++ b/frontend/src/app/core/apiv3/openproject-api-v3.module.ts@@ -32,10 +32,9 @@ import { OpenprojectHalModule } from 'core-app/features/hal/openproject-hal.modu@NgModule({imports: [- // CommonsOPSharedModule,OpenprojectHalModule,],})-export class OpenprojectApiV3Module {+export class ApiV3Module {}diff --git a/frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.ts b/frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.tsindex 96fdf21de2c..bc2990073cf 100644--- a/frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.ts+++ b/frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.ts@@ -32,7 +32,7 @@ import { ApiV3FilterBuilder, FilterOperator } from 'core-app/shared/helpers/api-export type ApiV3ListFilter = [string, FilterOperator, boolean|string[]];-export interface Apiv3ListParameters {+export interface ApiV3ListParameters {filters?:ApiV3ListFilter[];sortBy?:[string, string][];groupBy?:string;@@ -40,11 +40,11 @@ export interface Apiv3ListParameters {offset?:number;}-export interface Apiv3ListResourceInterface<T> {- list(params:Apiv3ListParameters):Observable<CollectionResource<T>>;+export interface ApiV3ListResourceInterface<T> {+ list(params:ApiV3ListParameters):Observable<CollectionResource<T>>;}-export function listParamsString(params?:Apiv3ListParameters):string {+export function listParamsString(params?:ApiV3ListParameters):string {const queryProps = [];if (params && params.sortBy) {diff --git a/frontend/src/app/core/apiv3/paths/apiv3-resource.ts b/frontend/src/app/core/apiv3/paths/apiv3-resource.tsindex a7ce6d4d2f1..a0d36fd8c9e 100644--- a/frontend/src/app/core/apiv3/paths/apiv3-resource.ts+++ b/frontend/src/app/core/apiv3/paths/apiv3-resource.ts@@ -3,20 +3,20 @@ import { SimpleResource, SimpleResourceCollection } from 'core-app/core/apiv3/paimport { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { Observable } from 'rxjs';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';-export class APIv3ResourcePath<T = HalResource> extends SimpleResource {+export class ApiV3ResourcePath<T = HalResource> extends SimpleResource {readonly injector = this.apiRoot.injector;@InjectField() halResourceService:HalResourceService;- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,readonly basePath:string,readonly id:string|number,- protected parent?:APIv3ResourcePath|APIv3ResourceCollection<any, any>) {+ protected parent?:ApiV3ResourcePath|ApiV3ResourceCollection<any, any>) {super(basePath, id);}@@ -25,12 +25,12 @@ export class APIv3ResourcePath<T = HalResource> extends SimpleResource {** @param segment Additional segment to add to the current path*/- protected subResource<R = APIv3GettableResource>(segment:string, cls:Constructor<R> = APIv3GettableResource as any):R {+ protected subResource<R = ApiV3GettableResource>(segment:string, cls:Constructor<R> = ApiV3GettableResource as any):R {return new cls(this.apiRoot, this.path, segment, this);}}-export class APIv3GettableResource<T = HalResource> extends APIv3ResourcePath<T> {+export class ApiV3GettableResource<T = HalResource> extends ApiV3ResourcePath<T> {/*** Perform a request to the HalResourceService with the current path*/@@ -41,12 +41,12 @@ export class APIv3GettableResource<T = HalResource> extends APIv3ResourcePath<T>}}-export class APIv3ResourceCollection<V, T extends APIv3GettableResource<V>> extends SimpleResourceCollection {+export class ApiV3ResourceCollection<V, T extends ApiV3GettableResource<V>> extends SimpleResourceCollection {readonly injector = this.apiRoot.injector;@InjectField() halResourceService:HalResourceService;- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,protected basePath:string,segment:string,protected resource?:Constructor<T>) {@@ -66,7 +66,7 @@ export class APIv3ResourceCollection<V, T extends APIv3GettableResource<V>> exteid = input.id!;}- return new (this.resource || APIv3GettableResource)(this.apiRoot, this.path, id, this) as T;+ return new (this.resource || ApiV3GettableResource)(this.apiRoot, this.path, id, this) as T;}public withOptionalId(id?:string|number|null):this|T {@@ -97,7 +97,7 @@ export class APIv3ResourceCollection<V, T extends APIv3GettableResource<V>> exte* @param filters filter object to filter with* @param params additional URL params to append*/- public filtered<R = APIv3GettableResource<CollectionResource<V>>>(filters:ApiV3FilterBuilder, params:{ [key:string]:string } = {}, resourceClass?:Constructor<R>):R {+ public filtered<R = ApiV3GettableResource<CollectionResource<V>>>(filters:ApiV3FilterBuilder, params:{ [key:string]:string } = {}, resourceClass?:Constructor<R>):R {return this.subResource<R>(`?${filters.toParams(params)}`, resourceClass);}@@ -106,7 +106,7 @@ export class APIv3ResourceCollection<V, T extends APIv3GettableResource<V>> exte** @param segment Additional segment to add to the current path*/- protected subResource<R = APIv3GettableResource<HalResource>>(segment:string, cls:Constructor<R> = APIv3GettableResource as any):R {+ protected subResource<R = ApiV3GettableResource<HalResource>>(segment:string, cls:Constructor<R> = ApiV3GettableResource as any):R {return new cls(this.apiRoot, this.path, segment, this);}}diff --git a/frontend/src/app/core/apiv3/virtual/apiv3-board-path.ts b/frontend/src/app/core/apiv3/virtual/apiv3-board-path.tsindex 78b2b6c323f..ca5f87ee3ec 100644--- a/frontend/src/app/core/apiv3/virtual/apiv3-board-path.ts+++ b/frontend/src/app/core/apiv3/virtual/apiv3-board-path.ts@@ -30,11 +30,11 @@ import { Board } from 'core-app/features/boards/board/board';import { Observable } from 'rxjs';import { map, switchMap, tap } from 'rxjs/operators';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-import { Apiv3BoardsPaths } from 'core-app/core/apiv3/virtual/apiv3-boards-paths';+import { ApiV3BoardsPaths } from 'core-app/core/apiv3/virtual/apiv3-boards-paths';-export class APIv3BoardPath extends CachableAPIV3Resource<Board> {+export class ApiV3BoardPath extends ApiV3Resource<Board> {/*** Perform a request to the HalResourceService with the current path*/@@ -100,6 +100,6 @@ export class APIv3BoardPath extends CachableAPIV3Resource<Board> {}protected createCache():StateCacheService<Board> {- return (this.parent as Apiv3BoardsPaths).cache;+ return (this.parent as ApiV3BoardsPaths).cache;}}diff --git a/frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.ts b/frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.tsindex 4a2f5231a52..95637812f12 100644--- a/frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.ts+++ b/frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.ts@@ -27,34 +27,34 @@//++import { GridResource } from 'core-app/features/hal/resources/grid-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';-import { Apiv3ListParameters, listParamsString } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters, listParamsString } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { Board, BoardType } from 'core-app/features/boards/board/board';import { map, switchMap, tap } from 'rxjs/operators';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';-import { CachableAPIV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';+import { ApiV3Collection } from 'core-app/core/apiv3/cache/cachable-apiv3-collection';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { APIv3BoardPath } from 'core-app/core/apiv3/virtual/apiv3-board-path';+import { ApiV3BoardPath } from 'core-app/core/apiv3/virtual/apiv3-board-path';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';-export class Apiv3BoardsPaths extends CachableAPIV3Collection<Board, APIv3BoardPath> {+export class ApiV3BoardsPaths extends ApiV3Collection<Board, ApiV3BoardPath> {@InjectField() private authorisationService:AuthorisationService;@InjectField() private PathHelper:PathHelperService;- constructor(protected apiRoot:APIV3Service,+ constructor(protected apiRoot:ApiV3Service,protected basePath:string) {- super(apiRoot, basePath, 'grids', APIv3BoardPath);+ super(apiRoot, basePath, 'grids', ApiV3BoardPath);}/*** Load a list of grids with a given list parameter filter* @param params*/- public list(params?:Apiv3ListParameters):Observable<Board[]> {+ public list(params?:ApiV3ListParameters):Observable<Board[]> {return this.halResourceService.get<CollectionResource<GridResource>>(this.path + listParamsString(params))diff --git a/frontend/src/app/core/config/configuration.service.ts b/frontend/src/app/core/config/configuration.service.tsindex 57d8ba39211..184d966c5ca 100644--- a/frontend/src/app/core/config/configuration.service.ts+++ b/frontend/src/app/core/config/configuration.service.ts@@ -29,7 +29,7 @@ import { Injectable } from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';import { ConfigurationResource } from 'core-app/features/hal/resources/configuration-resource';import * as moment from 'moment';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Injectable({ providedIn: 'root' })export class ConfigurationService {@@ -41,7 +41,7 @@ export class ConfigurationService {public initialized:Promise<boolean>;public constructor(readonly I18n:I18nService,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {this.initialized = this.loadConfiguration().then(() => true).catch(() => false);}diff --git a/frontend/src/app/core/current-project/current-project.service.ts b/frontend/src/app/core/current-project/current-project.service.tsindex 75c4f98a072..b5f8382439d 100644--- a/frontend/src/app/core/current-project/current-project.service.ts+++ b/frontend/src/app/core/current-project/current-project.service.ts@@ -28,7 +28,7 @@import { Injectable } from '@angular/core';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Injectable({ providedIn: 'root' })export class CurrentProjectService {@@ -36,7 +36,7 @@ export class CurrentProjectService {constructor(private PathHelper:PathHelperService,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,) {this.detect();}diff --git a/frontend/src/app/core/current-user/current-user.service.ts b/frontend/src/app/core/current-user/current-user.service.tsindex b5c107b8c2d..489903512c4 100644--- a/frontend/src/app/core/current-user/current-user.service.ts+++ b/frontend/src/app/core/current-user/current-user.service.ts@@ -31,7 +31,7 @@ import { forkJoin, of } from 'rxjs';import {distinctUntilChanged, map, mergeMap, take,} from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CapabilityResource } from 'core-app/features/hal/resources/capability-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';@@ -43,7 +43,7 @@ export class CurrentUserService {private PAGE_FETCH_SIZE = 1000;constructor(- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private currentUserStore:CurrentUserStore,private currentUserQuery:CurrentUserQuery,) {diff --git a/frontend/src/app/core/forms/forms.service.ts b/frontend/src/app/core/forms/forms.service.tsindex ebfb601f85c..f24fcb6f0d7 100644--- a/frontend/src/app/core/forms/forms.service.ts+++ b/frontend/src/app/core/forms/forms.service.ts@@ -170,7 +170,7 @@ export class FormsService {result = {...result,- ...this.isValue(resourceModel) && { [resourceKey]: resourceModel },+ ...(this.isValue(resourceModel) && { [resourceKey]: resourceModel }),};return result;diff --git a/frontend/src/app/core/global_search/input/global-search-input.component.ts b/frontend/src/app/core/global_search/input/global-search-input.component.tsindex 7e47c607a94..ec1a2e571bf 100644--- a/frontend/src/app/core/global_search/input/global-search-input.component.ts+++ b/frontend/src/app/core/global_search/input/global-search-input.component.ts@@ -53,7 +53,7 @@ import { OpAutocompleterComponent } from 'core-app/shared/components/autocompletimport { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import { APIV3Service } from '../../apiv3/api-v3.service';+import { ApiV3Service } from '../../apiv3/api-v3.service';export const globalSearchSelector = 'global-search-input';@@ -127,7 +127,7 @@ export class GlobalSearchInputComponent implements AfterViewInit, OnDestroy {constructor(readonly elementRef:ElementRef,readonly I18n:I18nService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly pathHelperService:PathHelperService,readonly halResourceService:HalResourceService,readonly globalSearchService:GlobalSearchService,diff --git a/frontend/src/app/core/global_search/services/global-search.service.spec.ts b/frontend/src/app/core/global_search/services/global-search.service.spec.tsindex b2b4e1c7fd4..e1d5ae0490a 100644--- a/frontend/src/app/core/global_search/services/global-search.service.spec.ts+++ b/frontend/src/app/core/global_search/services/global-search.service.spec.ts@@ -34,7 +34,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { TestBed, waitForAsync } from '@angular/core/testing';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { States } from 'core-app/core/states/states.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';describe('Global search service', () => {let service:GlobalSearchService;@@ -48,7 +48,7 @@ describe('Global search service', () => {I18nService,PathHelperService,States,- APIV3Service,+ ApiV3Service,CurrentProjectService,GlobalSearchService,],diff --git a/frontend/src/app/core/path-helper/apiv3-paths.ts b/frontend/src/app/core/path-helper/apiv3-paths.tsindex 24eda1a02c8..e5174054b5a 100644--- a/frontend/src/app/core/path-helper/apiv3-paths.ts+++ b/frontend/src/app/core/path-helper/apiv3-paths.ts@@ -1,6 +1,6 @@import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';-export class Apiv3Paths {+export class ApiV3Paths {readonly apiV3Base:string;constructor(basePath:string) {diff --git a/frontend/src/app/core/path-helper/path-helper.service.ts b/frontend/src/app/core/path-helper/path-helper.service.tsindex 2b04057084e..6de6548a6a9 100644--- a/frontend/src/app/core/path-helper/path-helper.service.ts+++ b/frontend/src/app/core/path-helper/path-helper.service.ts@@ -27,14 +27,14 @@//++import { Injectable } from '@angular/core';-import { Apiv3Paths } from './apiv3-paths';+import { ApiV3Paths } from './apiv3-paths';@Injectable({ providedIn: 'root' })export class PathHelperService {public readonly appBasePath = window.appBasePath || '';public readonly api = {- v3: new Apiv3Paths(this.appBasePath),+ v3: new ApiV3Paths(this.appBasePath),};public get staticBase() {diff --git a/frontend/src/app/core/permissions/permissions.service.ts b/frontend/src/app/core/permissions/permissions.service.tsindex 85cdb64fa21..0cb46fd8521 100644--- a/frontend/src/app/core/permissions/permissions.service.ts+++ b/frontend/src/app/core/permissions/permissions.service.ts@@ -1,5 +1,5 @@import { Injectable } from '@angular/core';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable, of } from 'rxjs';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { catchError, map } from 'rxjs/operators';@@ -10,7 +10,7 @@ import { FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-bui})export class PermissionsService {constructor(- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private currentProjectService:CurrentProjectService,) { }diff --git a/frontend/src/app/core/state/collection-store.ts b/frontend/src/app/core/state/collection-store.tsindex cbc08aa4bc5..f0a5ac70201 100644--- a/frontend/src/app/core/state/collection-store.ts+++ b/frontend/src/app/core/state/collection-store.ts@@ -5,7 +5,7 @@ import {} from '@datorama/akita';import { IHALCollection } from 'core-app/core/apiv3/types/hal-collection.type';import {- Apiv3ListParameters,+ ApiV3ListParameters,listParamsString,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { Observable } from 'rxjs';@@ -50,7 +50,7 @@ export function createInitialCollectionState():{ collections:Record<string, Coll** @param params list params*/-export function collectionKey(params:Apiv3ListParameters):string {+export function collectionKey(params:ApiV3ListParameters):string {return listParamsString(params);}@@ -60,7 +60,7 @@ export function collectionKey(params:Apiv3ListParameters):string {* @param service* @param params*/-export function selectCollectionAsHrefs$<T extends CollectionItem>(service:CollectionService<T>, params:Apiv3ListParameters):Observable<CollectionResponse> {+export function selectCollectionAsHrefs$<T extends CollectionItem>(service:CollectionService<T>, params:ApiV3ListParameters):Observable<CollectionResponse> {return service.query.select((state) => {@@ -93,7 +93,7 @@ export function selectEntitiesFromIDCollection<T extends CollectionItem>(service* @param state* @param params*/-export function selectCollectionAsEntities$<T extends CollectionItem>(service:CollectionService<T>, params:Apiv3ListParameters):T[] {+export function selectCollectionAsEntities$<T extends CollectionItem>(service:CollectionService<T>, params:ApiV3ListParameters):T[] {const state = service.query.getValue();const key = collectionKey(params);const collection = state.collections[key];diff --git a/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.ts b/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.tsindex 48ed532fc33..1598ed033d2 100644--- a/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.ts+++ b/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.ts@@ -8,12 +8,12 @@ import {applyTransaction,ID,} from '@datorama/akita';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ToastService } from 'core-app/shared/components/toaster/toast.service';import { IHALCollection } from 'core-app/core/apiv3/types/hal-collection.type';import { HttpClient } from '@angular/common/http';import { InAppNotificationsQuery } from 'core-app/core/state/in-app-notifications/in-app-notifications.query';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { collectionKey } from 'core-app/core/state/collection-store';import {markNotificationsAsRead,@@ -44,12 +44,12 @@ export class InAppNotificationsResourceService {constructor(readonly actions$:ActionsService,private http:HttpClient,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private toastService:ToastService,) {}- fetchNotifications(params:Apiv3ListParameters):Observable<IHALCollection<InAppNotification>> {+ fetchNotifications(params:ApiV3ListParameters):Observable<IHALCollection<InAppNotification>> {const collectionURL = collectionKey(params);return this@@ -83,7 +83,7 @@ export class InAppNotificationsResourceService {this.store.update(id, inAppNotification);}- modifyCollection(params:Apiv3ListParameters, callback:(collection:ID[]) => ID[]):void {+ modifyCollection(params:ApiV3ListParameters, callback:(collection:ID[]) => ID[]):void {const key = collectionKey(params);this.store.update(({ collections }) => ({@@ -98,7 +98,7 @@ export class InAppNotificationsResourceService {));}- removeFromCollection(params:Apiv3ListParameters, ids:ID[]):void {+ removeFromCollection(params:ApiV3ListParameters, ids:ID[]):void {const key = collectionKey(params);this.store.update(({ collections }) => ({diff --git a/frontend/src/app/core/state/principals/principals.service.ts b/frontend/src/app/core/state/principals/principals.service.tsindex 59603bdb7ec..28219dafedf 100644--- a/frontend/src/app/core/state/principals/principals.service.ts+++ b/frontend/src/app/core/state/principals/principals.service.ts@@ -8,12 +8,12 @@ import {applyTransaction,ID,} from '@datorama/akita';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ToastService } from 'core-app/shared/components/toaster/toast.service';import { IHALCollection } from 'core-app/core/apiv3/types/hal-collection.type';import { HttpClient } from '@angular/common/http';import { PrincipalsQuery } from 'core-app/core/state/principals/principals.query';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { collectionKey } from 'core-app/core/state/collection-store';import {EffectHandler,@@ -39,12 +39,12 @@ export class PrincipalsResourceService {constructor(readonly actions$:ActionsService,private http:HttpClient,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private toastService:ToastService,) {}- fetchPrincipals(params:Apiv3ListParameters):Observable<IHALCollection<Principal>> {+ fetchPrincipals(params:ApiV3ListParameters):Observable<IHALCollection<Principal>> {const collectionURL = collectionKey(params);return this@@ -78,7 +78,7 @@ export class PrincipalsResourceService {this.store.update(id, principal);}- modifyCollection(params:Apiv3ListParameters, callback:(collection:ID[]) => ID[]):void {+ modifyCollection(params:ApiV3ListParameters, callback:(collection:ID[]) => ID[]):void {const key = collectionKey(params);this.store.update(({ collections }) => ({@@ -93,7 +93,7 @@ export class PrincipalsResourceService {));}- removeFromCollection(params:Apiv3ListParameters, ids:ID[]):void {+ removeFromCollection(params:ApiV3ListParameters, ids:ID[]):void {const key = collectionKey(params);this.store.update(({ collections }) => ({diff --git a/frontend/src/app/core/state/projects/projects.service.ts b/frontend/src/app/core/state/projects/projects.service.tsindex 85804e6db8f..cc9e0ebe000 100644--- a/frontend/src/app/core/state/projects/projects.service.ts+++ b/frontend/src/app/core/state/projects/projects.service.ts@@ -9,11 +9,11 @@ import {ID,} from '@datorama/akita';import { HttpClient } from '@angular/common/http';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ToastService } from 'core-app/shared/components/toaster/toast.service';import { IHALCollection } from 'core-app/core/apiv3/types/hal-collection.type';import { ProjectsQuery } from 'core-app/core/state/projects/projects.query';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { collectionKey } from 'core-app/core/state/collection-store';import { ProjectsStore } from './projects.store';import { Project } from './project.model';@@ -33,12 +33,12 @@ export class ProjectsResourceService {constructor(private http:HttpClient,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private toastService:ToastService,) {}- fetchProjects(params:Apiv3ListParameters):Observable<IHALCollection<Project>> {+ fetchProjects(params:ApiV3ListParameters):Observable<IHALCollection<Project>> {const collectionURL = collectionKey(params);return this@@ -71,7 +71,7 @@ export class ProjectsResourceService {this.store.update(id, project);}- modifyCollection(params:Apiv3ListParameters, callback:(collection:ID[]) => ID[]):void {+ modifyCollection(params:ApiV3ListParameters, callback:(collection:ID[]) => ID[]):void {const key = collectionKey(params);this.store.update(({ collections }) => ({diff --git a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.tsindex c2e56f704c6..eb7d889721c 100644--- a/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts@@ -50,7 +50,7 @@ import { WorkPackageCreateService } from 'core-app/features/work-packages/componimport { BcfAuthorizationService } from 'core-app/features/bim/bcf/api/bcf-authorization.service';import { ViewpointsService } from 'core-app/features/bim/bcf/helper/viewpoints.service';import { BcfViewpointItem } from 'core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { BcfViewService } from 'core-app/features/bim/ifc_models/pages/viewer/bcf-view.service';import { filter, take } from 'rxjs/operators';@@ -148,7 +148,7 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implementsconstructor(readonly state:StateService,readonly bcfAuthorization:BcfAuthorizationService,readonly viewerBridge:ViewerBridgeService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly wpCreate:WorkPackageCreateService,readonly toastService:ToastService,@Optional() readonly bcfViewer:BcfViewService,diff --git a/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts b/frontend/src/app/features/bim/bcf/helper/viewpoints.service.tsindex 789d7061b7e..9202a03ab61 100644--- a/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts+++ b/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts@@ -35,7 +35,7 @@ import { ViewerBridgeService } from 'core-app/features/bim/bcf/bcf-viewer-bridgeimport { map, switchMap, tap } from 'rxjs/operators';import { forkJoin, Observable, of } from 'rxjs';import { BcfTopicResource } from 'core-app/features/bim/bcf/api/topics/bcf-topic.resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { BcfViewpointData, CreateBcfViewpointData } from 'core-app/features/bim/bcf/api/bcf-api.model';import { HalResource } from 'core-app/features/hal/resources/hal-resource';@@ -48,7 +48,7 @@ export class ViewpointsService {@InjectField() viewerBridge:ViewerBridgeService;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;constructor(readonly injector:Injector) { }diff --git a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.ts b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.tsindex 0352bf7ba95..854b7b26584 100644--- a/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.ts+++ b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.ts@@ -41,7 +41,7 @@ import { BoardActionService } from 'core-app/features/boards/board/board-actionsimport { trackByHref } from 'core-app/shared/helpers/angular/tracking-functions';import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';import { tap } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { Observable } from 'rxjs';import { OpAutocompleterComponent } from 'core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component';@@ -118,7 +118,7 @@ export class AddListModalComponent extends OpModalComponent implements OnInit {readonly state:StateService,readonly boardService:BoardService,readonly I18n:I18nService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly currentProject:CurrentProjectService) {super(locals, cdRef, elementRef);}diff --git a/frontend/src/app/features/boards/board/board-actions/board-action.service.ts b/frontend/src/app/features/boards/board/board-actions/board-action.service.tsindex 831277c093b..4246e9c7049 100644--- a/frontend/src/app/features/boards/board/board-actions/board-action.service.ts+++ b/frontend/src/app/features/boards/board/board-actions/board-action.service.ts@@ -12,7 +12,7 @@ import { map } from 'rxjs/operators';import { IFieldSchema } from 'core-app/shared/components/fields/field.base';import { WorkPackageChangeset } from 'core-app/features/work-packages/components/wp-edit/work-package-changeset';import { WorkPackageFilterValues } from 'core-app/features/work-packages/components/wp-edit-form/work-package-filter-values';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import { Observable } from 'rxjs';import { FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';@@ -31,7 +31,7 @@ export abstract class BoardActionService {protected halResourceService:HalResourceService,protected pathHelper:PathHelperService,protected currentProject:CurrentProjectService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected schemaCache:SchemaCacheService) {}diff --git a/frontend/src/app/features/boards/board/board-filter/board-filter.component.ts b/frontend/src/app/features/boards/board/board-filter/board-filter.component.tsindex c8f91169218..a8534d49266 100644--- a/frontend/src/app/features/boards/board/board-filter/board-filter.component.ts+++ b/frontend/src/app/features/boards/board/board-filter/board-filter.component.ts@@ -12,7 +12,7 @@ import { debounceTime, skip, take } from 'rxjs/operators';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { Observable } from 'rxjs';import { BoardFiltersService } from 'core-app/features/boards/board/board-filter/board-filters.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({selector: 'board-filter',@@ -26,7 +26,7 @@ export class BoardFilterComponent extends UntilDestroyedMixin implements AfterViconstructor(private readonly currentProjectService:CurrentProjectService,private readonly querySpace:IsolatedQuerySpace,- private readonly apiV3Service:APIV3Service,+ private readonly apiV3Service:ApiV3Service,private readonly halResourceService:HalResourceService,private readonly wpStatesInitialization:WorkPackageStatesInitializationService,private readonly wpTableFilters:WorkPackageViewFiltersService,diff --git a/frontend/src/app/features/boards/board/board-list/board-list.component.ts b/frontend/src/app/features/boards/board/board-list/board-list.component.tsindex 6fd88e2d41a..566b9db91b4 100644--- a/frontend/src/app/features/boards/board/board-list/board-list.component.ts+++ b/frontend/src/app/features/boards/board/board-list/board-list.component.ts@@ -48,7 +48,7 @@ import {import { ChangeItem } from 'core-app/shared/components/fields/changeset/changeset';import { WorkPackageChangeset } from 'core-app/features/work-packages/components/wp-edit/work-package-changeset';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';@@ -133,7 +133,7 @@ export class BoardListComponent extends AbstractWidgetComponent implements OnInipublic buttonPlaceholder:DisabledButtonPlaceholder|undefined;- constructor(readonly apiv3Service:APIV3Service,+ constructor(readonly apiv3Service:ApiV3Service,readonly I18n:I18nService,readonly state:StateService,readonly cdRef:ChangeDetectorRef,diff --git a/frontend/src/app/features/boards/board/board-list/board-lists.service.ts b/frontend/src/app/features/boards/board/board-list/board-lists.service.tsindex 0daee30fe9a..ce9c007b90b 100644--- a/frontend/src/app/features/boards/board/board-list/board-lists.service.ts+++ b/frontend/src/app/features/boards/board/board-list/board-lists.service.ts@@ -6,7 +6,7 @@ import { Board } from 'core-app/features/boards/board/board';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { ToastService } from 'core-app/shared/components/toaster/toast.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { GridWidgetResource } from 'core-app/features/hal/resources/grid-widget-resource';@@ -16,7 +16,7 @@ export class BoardListsService {constructor(private readonly CurrentProject:CurrentProjectService,private readonly pathHelper:PathHelperService,- private readonly apiV3Service:APIV3Service,+ private readonly apiV3Service:ApiV3Service,private readonly halResourceService:HalResourceService,private readonly toastService:ToastService,private readonly I18n:I18nService) {diff --git a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.tsindex 9a5b00cdca9..a03488024fb 100644--- a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts@@ -21,7 +21,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { BoardListCrossSelectionService } from 'core-app/features/boards/board/board-list/board-list-cross-selection.service';import { filter, tap } from 'rxjs/operators';import { BoardActionsRegistryService } from 'core-app/features/boards/board/board-actions/board-actions-registry.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageStatesInitializationService } from 'core-app/features/work-packages/components/wp-list/wp-states-initialization.service';@Component({@@ -82,13 +82,13 @@ export class BoardListContainerComponent extends UntilDestroyedMixin implementsreadonly boardActionRegistry:BoardActionsRegistryService,readonly opModalService:OpModalService,readonly injector:Injector,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly Boards:BoardService,readonly Banner:BannersService,readonly boardListCrossSelectionService:BoardListCrossSelectionService,readonly wpStatesInitialization:WorkPackageStatesInitializationService,readonly Drag:DragAndDropService,- readonly apiv3Service:APIV3Service,+ readonly apiv3Service:ApiV3Service,readonly QueryUpdated:QueryUpdatedService) {super();}diff --git a/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.ts b/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.tsindex 26ce66e2a7f..09789280322 100644--- a/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.ts+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.ts@@ -25,7 +25,7 @@ import { QueryResource } from 'core-app/features/hal/resources/query-resource';import { Ng2StateDeclaration } from '@uirouter/angular';import { BoardFiltersService } from 'core-app/features/boards/board/board-filter/board-filters.service';import { CardViewHandlerRegistry } from 'core-app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';export function boardCardViewHandlerFactory(injector:Injector) {return new CardViewHandlerRegistry(injector);@@ -144,7 +144,7 @@ export class BoardPartitionedPageComponent extends UntilDestroyedMixin {readonly toastService:ToastService,readonly halNotification:HalResourceNotificationService,readonly injector:Injector,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly boardFilters:BoardFiltersService,readonly Boards:BoardService) {super();diff --git a/frontend/src/app/features/boards/board/board.service.ts b/frontend/src/app/features/boards/board/board.service.tsindex 5d520788242..d31260e0b91 100644--- a/frontend/src/app/features/boards/board/board.service.ts+++ b/frontend/src/app/features/boards/board/board.service.ts@@ -8,7 +8,7 @@ import { GridWidgetResource } from 'core-app/features/hal/resources/grid-widget-import { I18nService } from 'core-app/core/i18n/i18n.service';import { BoardActionsRegistryService } from 'core-app/features/boards/board/board-actions/board-actions-registry.service';import { BehaviorSubject, Observable } from 'rxjs';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';export interface CreateBoardParams {type:BoardType;@@ -29,7 +29,7 @@ export class BoardService {unnamed_list: this.I18n.t('js.boards.label_unnamed_list'),};- constructor(protected apiV3Service:APIV3Service,+ constructor(protected apiV3Service:ApiV3Service,protected PathHelper:PathHelperService,protected CurrentProject:CurrentProjectService,protected halResourceService:HalResourceService,diff --git a/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.ts b/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.tsindex 2615064ce30..b83fd014c52 100644--- a/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.ts+++ b/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.ts@@ -46,7 +46,7 @@ import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import { WorkPackageCardDragAndDropService } from 'core-app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { OpAutocompleterComponent } from 'core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';@@ -122,7 +122,7 @@ export class BoardInlineAddAutocompleterComponent implements AfterViewInit {constructor(private readonly querySpace:IsolatedQuerySpace,private readonly pathHelper:PathHelperService,- private readonly apiV3Service:APIV3Service,+ private readonly apiV3Service:ApiV3Service,private readonly urlParamsHelper:UrlParamsHelperService,private readonly notificationService:WorkPackageNotificationService,private readonly CurrentProject:CurrentProjectService,diff --git a/frontend/src/app/features/boards/board/query-updated/query-updated.service.ts b/frontend/src/app/features/boards/board/query-updated/query-updated.service.tsindex 500b59a03fb..9fedd7401cb 100644--- a/frontend/src/app/features/boards/board/query-updated/query-updated.service.ts+++ b/frontend/src/app/features/boards/board/query-updated/query-updated.service.ts@@ -2,14 +2,14 @@ import { Injectable } from '@angular/core';import { interval } from 'rxjs';import { filter, startWith, switchMap } from 'rxjs/operators';import { ActiveWindowService } from 'core-app/core/active-window/active-window.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';const POLLING_INTERVAL = 2000;@Injectable()export class QueryUpdatedService {constructor(readonly activeWindow:ActiveWindowService,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {}public monitor(ids:string[]) {diff --git a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.tsindex 60e857547cf..6aba3cb8f70 100644--- a/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts+++ b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts@@ -6,7 +6,7 @@ import { compareByAttribute } from 'core-app/shared/helpers/angular/tracking-funimport { map } from 'rxjs/operators';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { MainMenuNavigationService } from 'core-app/core/main-menu/main-menu-navigation.service';export const boardsMenuSelector = 'boards-menu';@@ -32,7 +32,7 @@ export class BoardsMenuComponent extends UntilDestroyedMixin implements OnInit {);constructor(private readonly boardService:BoardService,- private readonly apiV3Service:APIV3Service,+ private readonly apiV3Service:ApiV3Service,private readonly currentProject:CurrentProjectService,private readonly mainMenuService:MainMenuNavigationService) {super();diff --git a/frontend/src/app/features/boards/index-page/boards-index-page.component.ts b/frontend/src/app/features/boards/index-page/boards-index-page.component.tsindex 02b6ed4fe90..bc2078ace2f 100644--- a/frontend/src/app/features/boards/index-page/boards-index-page.component.ts+++ b/frontend/src/app/features/boards/index-page/boards-index-page.component.ts@@ -16,7 +16,7 @@ import { DomSanitizer } from '@angular/platform-browser';import { boardTeaserVideoURL } from 'core-app/features/boards/board-constants.const';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { componentDestroyed } from '@w11k/ngx-componentdestroyed';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { map } from 'rxjs/operators';@Component({@@ -57,7 +57,7 @@ export class BoardsIndexPageComponent extends UntilDestroyedMixin implements OnIteaserVideoURL = this.domSanitizer.bypassSecurityTrustResourceUrl(boardTeaserVideoURL);constructor(private readonly boardService:BoardService,- private readonly apiV3Service:APIV3Service,+ private readonly apiV3Service:ApiV3Service,private readonly I18n:I18nService,private readonly toastService:ToastService,private readonly opModalService:OpModalService,diff --git a/frontend/src/app/features/hal/resources/mixins/attachable-mixin.ts b/frontend/src/app/features/hal/resources/mixins/attachable-mixin.tsindex dbb40608a73..0b358bf36bf 100644--- a/frontend/src/app/features/hal/resources/mixins/attachable-mixin.ts+++ b/frontend/src/app/features/hal/resources/mixins/attachable-mixin.ts@@ -31,7 +31,7 @@ import { PathHelperService } from 'core-app/core/path-helper/path-helper.serviceimport { ToastService } from 'core-app/shared/components/toaster/toast.service';import { ConfigurationService } from 'core-app/core/config/configuration.service';import { HttpErrorResponse } from '@angular/common/http';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { OpenProjectDirectFileUploadService } from 'core-app/core/file-upload/op-direct-file-upload.service';import { OpenProjectFileUploadService, UploadFile } from 'core-app/core/file-upload/op-file-upload.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';@@ -54,7 +54,7 @@ export function Attachable<TBase extends Constructor<HalResource>>(Base:TBase) {private pathHelper:PathHelperService;- private apiV3Service:APIV3Service;+ private apiV3Service:ApiV3Service;private config:ConfigurationService;@@ -230,7 +230,7 @@ export function Attachable<TBase extends Constructor<HalResource>>(Base:TBase) {}if (!this.apiV3Service) {- this.apiV3Service = this.injector.get(APIV3Service);+ this.apiV3Service = this.injector.get(ApiV3Service);}super.$initialize(source);diff --git a/frontend/src/app/features/hal/resources/work-package-resource.spec.ts b/frontend/src/app/features/hal/resources/work-package-resource.spec.tsindex 2305c5a55db..2e445b3b0d7 100644--- a/frontend/src/app/features/hal/resources/work-package-resource.spec.ts+++ b/frontend/src/app/features/hal/resources/work-package-resource.spec.ts@@ -40,7 +40,7 @@ import { StateService } from '@uirouter/core';import { WorkPackageCreateService } from 'core-app/features/work-packages/components/wp-new/wp-create.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { OpenProjectFileUploadService } from 'core-app/core/file-upload/op-file-upload.service';import { OpenProjectDirectFileUploadService } from 'core-app/core/file-upload/op-direct-file-upload.service';import { TimezoneService } from 'core-app/core/datetime/timezone.service';@@ -79,7 +79,7 @@ describe('WorkPackage', () => {LoadingIndicatorService,PathHelperService,I18nService,- APIV3Service,+ ApiV3Service,{ provide: HalResourceNotificationService, useValue: { handleRawError: () => false } },{ provide: WorkPackageNotificationService, useValue: {} as any },{ provide: WorkPackageCreateService, useValue: {} },diff --git a/frontend/src/app/features/hal/resources/work-package-resource.ts b/frontend/src/app/features/hal/resources/work-package-resource.tsindex 0dfb60bb926..2087c75d346 100644--- a/frontend/src/app/features/hal/resources/work-package-resource.ts+++ b/frontend/src/app/features/hal/resources/work-package-resource.ts@@ -34,7 +34,7 @@ import { InputState } from 'reactivestates';import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { OpenProjectFileUploadService } from 'core-app/core/file-upload/op-file-upload.service';import { AttachmentCollectionResource } from 'core-app/features/hal/resources/attachment-collection-resource';import { HalResource } from 'core-app/features/hal/resources/hal-resource';@@ -134,7 +134,7 @@ export class WorkPackageBaseResource extends HalResource {@InjectField() wpActivity:WorkPackagesActivityService;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;@InjectField() ToastService:ToastService;diff --git a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.tsindex b8fdd9b8ee1..178aac37225 100644--- a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts+++ b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts@@ -14,7 +14,7 @@ import {} from 'rxjs/operators';import { ActiveWindowService } from 'core-app/core/active-window/active-window.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { IanBellService } from 'core-app/features/in-app-notifications/bell/state/ian-bell.service';export const opInAppNotificationBellSelector = 'op-in-app-notification-bell';@@ -39,7 +39,7 @@ export class InAppNotificationBellComponent {constructor(readonly storeService:IanBellService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly activeWindow:ActiveWindowService,readonly modalService:OpModalService,readonly pathHelper:PathHelperService,diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.tsindex 43d321fb3f8..015ec1aeebd 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts@@ -14,7 +14,7 @@ import {TransitionService,} from '@uirouter/core';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { NotificationSettingsButtonComponent } from 'core-app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component';import { ActivateFacetButtonComponent } from 'core-app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component';import { MarkAllAsReadButtonComponent } from 'core-app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component';@@ -85,7 +85,7 @@ export class InAppNotificationCenterPageComponent extends UntilDestroyedMixin imreadonly $transitions:TransitionService,readonly state:StateService,readonly injector:Injector,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly backRoutingService:BackRoutingService,) {super();diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.tsindex 7901889aa02..9e95b699ea0 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.ts@@ -17,7 +17,7 @@ import {InAppNotification,NOTIFICATIONS_MAX_SIZE,} from 'core-app/core/state/in-app-notifications/in-app-notification.model';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { IanBellService } from 'core-app/features/in-app-notifications/bell/state/ian-bell.service';@@ -87,7 +87,7 @@ export class InAppNotificationCenterComponent implements OnInit {readonly bellService:IanBellService,readonly uiRouterGlobals:UIRouterGlobals,readonly state:StateService,- readonly apiV3:APIV3Service,+ readonly apiV3:ApiV3Service,readonly pathService:PathHelperService,) {}diff --git a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.tsindex d6f9073697d..30cae6178f3 100644--- a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts+++ b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts@@ -11,8 +11,8 @@ import {EffectHandler,} from 'core-app/core/state/effects/effect-handler.decorator';import { ActionsService } from 'core-app/core/state/actions/actions.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import { ProjectsResourceService } from 'core-app/core/state/projects/projects.service';@@ -37,7 +37,7 @@ export class IanMenuService {readonly ianResourceService:InAppNotificationsResourceService,readonly projectsResourceService:ProjectsResourceService,readonly actions$:ActionsService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,) {}@@ -60,7 +60,7 @@ export class IanMenuService {public reload():void {this.ianResourceService.fetchNotifications(IAN_MENU_PROJECT_FILTERS).subscribe((data) => {- const projectsFilter:Apiv3ListParameters = {+ const projectsFilter:ApiV3ListParameters = {pageSize: 100,filters: [],};diff --git a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.tsindex 30bc2e79541..090459b1b74 100644--- a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts+++ b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts@@ -1,5 +1,5 @@import { Store, StoreConfig } from '@datorama/akita';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';export interface IanMenuGroupingData {value:string;@@ -20,16 +20,16 @@ export interface BaseMenuItemData {export interface IanMenuState {notificationsByProject:IanMenuGroupingData[],notificationsByReason:IanMenuGroupingData[],- projectsFilter:Apiv3ListParameters,+ projectsFilter:ApiV3ListParameters,}-export const IAN_MENU_PROJECT_FILTERS:Apiv3ListParameters = {+export const IAN_MENU_PROJECT_FILTERS:ApiV3ListParameters = {pageSize: 100,groupBy: 'project',filters: [['read_ian', '=', false]],};-export const IAN_MENU_REASON_FILTERS:Apiv3ListParameters = {+export const IAN_MENU_REASON_FILTERS:ApiV3ListParameters = {pageSize: 100,groupBy: 'reason',filters: [['read_ian', '=', false]],diff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.tsindex 1a84e5b0826..39bb0f7c9fa 100644--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts@@ -10,7 +10,7 @@ import {} from 'core-app/features/in-app-notifications/center/state/ian-center.store';import {ApiV3ListFilter,- Apiv3ListParameters,+ ApiV3ListParameters,} from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import { selectEntitiesFromIDCollection } from 'core-app/core/state/collection-store';@@ -62,7 +62,7 @@ export class IanCenterQuery extends Query<IanCenterState> {distinctUntilChanged(),);- get params():Apiv3ListParameters {+ get params():ApiV3ListParameters {const state = this.store.getValue();const hasFilters = state.filters.name && state.filters.filter;return {diff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.tsindex 37a3563ba3d..692d174d817 100644--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts@@ -36,7 +36,7 @@ import {} from 'core-app/core/state/effects/effect-handler.decorator';import { ActionsService } from 'core-app/core/state/actions/actions.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import {mapHALCollectionToIDCollection,@@ -98,7 +98,7 @@ export class IanCenterService extends UntilDestroyedMixin {readonly injector:Injector,readonly resourceService:InAppNotificationsResourceService,readonly actions$:ActionsService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly toastService:ToastService,readonly uiRouterGlobals:UIRouterGlobals,readonly state:StateService,diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.tsindex 65268dc30c3..fb3f34aa599 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts@@ -11,7 +11,7 @@ import {Observable,timer,} from 'rxjs';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { I18nService } from 'core-app/core/i18n/i18n.service';import { TimezoneService } from 'core-app/core/datetime/timezone.service';@@ -73,7 +73,7 @@ export class InAppNotificationEntryComponent implements OnInit {};constructor(- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly I18n:I18nService,readonly storeService:IanCenterService,readonly timezoneService:TimezoneService,diff --git a/frontend/src/app/features/invite-user-modal/invite-user.component.ts b/frontend/src/app/features/invite-user-modal/invite-user.component.tsindex d89700f42d2..3e407539a5d 100644--- a/frontend/src/app/features/invite-user-modal/invite-user.component.ts+++ b/frontend/src/app/features/invite-user-modal/invite-user.component.ts@@ -10,7 +10,7 @@ import {import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';import { OpModalLocalsToken } from 'core-app/shared/components/modal/modal.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { PrincipalData } from 'core-app/shared/components/principal/principal-types';import { RoleResource } from 'core-app/features/hal/resources/role-resource';import { HalResource } from 'core-app/features/hal/resources/hal-resource';@@ -71,7 +71,7 @@ export class InviteUserModalComponent extends OpModalComponent implements OnInit@Inject(OpModalLocalsToken) public locals:OpModalLocalsMap,readonly cdRef:ChangeDetectorRef,readonly elementRef:ElementRef,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,) {super(locals, cdRef, elementRef);}diff --git a/frontend/src/app/features/invite-user-modal/principal/principal-search.component.ts b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.tsindex dee1adf2a42..6c1d9369a67 100644--- a/frontend/src/app/features/invite-user-modal/principal/principal-search.component.ts+++ b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.ts@@ -13,7 +13,7 @@ import {import {debounceTime, distinctUntilChanged, share, map, shareReplay, switchMap,} from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';@@ -103,7 +103,7 @@ export class PrincipalSearchComponent extends UntilDestroyedMixin implements OnIconstructor(public I18n:I18nService,readonly elementRef:ElementRef,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly currentUserService:CurrentUserService,) {super();diff --git a/frontend/src/app/features/invite-user-modal/principal/principal.component.ts b/frontend/src/app/features/invite-user-modal/principal/principal.component.tsindex b282c3b62a3..de830aec154 100644--- a/frontend/src/app/features/invite-user-modal/principal/principal.component.ts+++ b/frontend/src/app/features/invite-user-modal/principal/principal.component.ts@@ -9,7 +9,7 @@ import {} from '@angular/forms';import { take } from 'rxjs/internal/operators/take';import { map } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { DynamicFormComponent } from 'core-app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component';import { PrincipalData, PrincipalLike } from 'core-app/shared/components/principal/principal-types';@@ -127,7 +127,7 @@ export class PrincipalComponent implements OnInit {constructor(readonly I18n:I18nService,readonly httpClient:HttpClient,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef,) {}diff --git a/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.ts b/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.tsindex 028f72f5d8a..a4f3ab67a88 100644--- a/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.ts+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.ts@@ -7,7 +7,7 @@ import {import { FormControl } from '@angular/forms';import { BehaviorSubject, combineLatest } from 'rxjs';import { debounceTime, map, switchMap } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';@@ -69,7 +69,7 @@ export class ProjectSearchComponent extends UntilDestroyedMixin implements OnIniconstructor(readonly I18n:I18nService,readonly elementRef:ElementRef,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly currentUserService:CurrentUserService,) {super();diff --git a/frontend/src/app/features/invite-user-modal/role/role-search.component.ts b/frontend/src/app/features/invite-user-modal/role/role-search.component.tsindex 3bd931ee8d0..4fc5eb1055a 100644--- a/frontend/src/app/features/invite-user-modal/role/role-search.component.ts+++ b/frontend/src/app/features/invite-user-modal/role/role-search.component.ts@@ -9,7 +9,7 @@ import { Observable, Subject, combineLatest } from 'rxjs';import {debounceTime, distinctUntilChanged, filter, map,} from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';@@ -34,7 +34,7 @@ export class RoleSearchComponent extends UntilDestroyedMixin implements OnInit {constructor(readonly I18n:I18nService,readonly elementRef:ElementRef,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,) {super();diff --git a/frontend/src/app/features/invite-user-modal/summary/summary.component.ts b/frontend/src/app/features/invite-user-modal/summary/summary.component.tsindex 07e200c74e5..14e6f34240d 100644--- a/frontend/src/app/features/invite-user-modal/summary/summary.component.ts+++ b/frontend/src/app/features/invite-user-modal/summary/summary.component.ts@@ -8,7 +8,7 @@ import {import { Observable, of } from 'rxjs';import { mapTo, switchMap } from 'rxjs/operators';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { RoleResource } from 'core-app/features/hal/resources/role-resource';import { PrincipalData } from 'core-app/shared/components/principal/principal-types';import { HalResource } from 'core-app/features/hal/resources/hal-resource';@@ -68,7 +68,7 @@ export class SummaryComponent {constructor(readonly I18n:I18nService,readonly elementRef:ElementRef,- readonly api:APIV3Service,+ readonly api:ApiV3Service,) { }invite() {diff --git a/frontend/src/app/features/job-status/job-status-modal/job-status.modal.ts b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.tsindex 35d5fedb61d..853b6e46df3 100644--- a/frontend/src/app/features/job-status/job-status-modal/job-status.modal.ts+++ b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.ts@@ -15,7 +15,7 @@ import {import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { JobStatusEnum, JobStatusInterface } from 'core-app/features/job-status/job-status.interface';import { ToastService } from 'core-app/shared/components/toaster/toast.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './job-status.modal.html',@@ -70,7 +70,7 @@ export class JobStatusModalComponent extends OpModalComponent implements OnInitreadonly I18n:I18nService,readonly elementRef:ElementRef,readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly loadingIndicator:LoadingIndicatorService,readonly toastService:ToastService,readonly httpClient:HttpClient) {diff --git a/frontend/src/app/features/plugins/plugin-context.ts b/frontend/src/app/features/plugins/plugin-context.tsindex 81286f11766..ddf67644477 100644--- a/frontend/src/app/features/plugins/plugin-context.ts+++ b/frontend/src/app/features/plugins/plugin-context.ts@@ -13,7 +13,7 @@ import { States } from 'core-app/core/states/states.service';import { CKEditorPreviewService } from 'core-app/shared/components/editor/components/ckeditor/ckeditor-preview.service';import { ExternalRelationQueryConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ConfigurationService } from 'core-app/core/config/configuration.service';import { OpenProjectFileUploadService } from 'core-app/core/file-upload/op-file-upload.service';import { EditorMacrosService } from 'core-app/shared/components/modals/editor/editor-macros.service';@@ -56,7 +56,7 @@ export class OpenProjectPluginContext {ckEditorPreview: this.injector.get<CKEditorPreviewService>(CKEditorPreviewService),pathHelperService: this.injector.get<PathHelperService>(PathHelperService),states: this.injector.get<States>(States),- apiV3Service: this.injector.get<APIV3Service>(APIV3Service),+ apiV3Service: this.injector.get<ApiV3Service>(ApiV3Service),configurationService: this.injector.get<ConfigurationService>(ConfigurationService),};diff --git a/frontend/src/app/features/projects/components/copy-project/copy-project.component.ts b/frontend/src/app/features/projects/components/copy-project/copy-project.component.tsindex a2c906d56c3..c53ce0aed62 100644--- a/frontend/src/app/features/projects/components/copy-project/copy-project.component.ts+++ b/frontend/src/app/features/projects/components/copy-project/copy-project.component.ts@@ -4,7 +4,7 @@ import {IOPFormlyTemplateOptions,} from 'core-app/shared/components/dynamic-forms/typings';import { JobStatusModalComponent } from 'core-app/features/job-status/job-status-modal/job-status.modal';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';@@ -35,7 +35,7 @@ export class CopyProjectComponent extends UntilDestroyedMixin implements OnInit};constructor(- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private currentProjectService:CurrentProjectService,private pathHelperService:PathHelperService,private modalService:OpModalService,diff --git a/frontend/src/app/features/projects/components/new-project/new-project.component.ts b/frontend/src/app/features/projects/components/new-project/new-project.component.tsindex 9f4bb481573..ae9640f1b36 100644--- a/frontend/src/app/features/projects/components/new-project/new-project.component.ts+++ b/frontend/src/app/features/projects/components/new-project/new-project.component.ts@@ -4,7 +4,7 @@ import { PathHelperService } from 'core-app/core/path-helper/path-helper.serviceimport { IDynamicFieldGroupConfig, IOPFormlyFieldSettings } from 'core-app/shared/components/dynamic-forms/typings';import { I18nService } from 'core-app/core/i18n/i18n.service';import { FormControl, FormGroup } from '@angular/forms';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { map } from 'rxjs/operators';import { Observable } from 'rxjs';import { JobStatusModalComponent } from 'core-app/features/job-status/job-status-modal/job-status.modal';@@ -72,7 +72,7 @@ export class NewProjectComponent extends UntilDestroyedMixin implements OnInit {@ViewChild(DynamicFormComponent) dynamicForm:DynamicFormComponent;constructor(- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private uIRouterGlobals:UIRouterGlobals,private pathHelperService:PathHelperService,private modalService:OpModalService,diff --git a/frontend/src/app/features/team-planner/team-planner/planner/add-assignee.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/add-assignee.component.tsindex 2329aff7847..3d832499210 100644--- a/frontend/src/app/features/team-planner/team-planner/planner/add-assignee.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/planner/add-assignee.component.ts@@ -44,7 +44,7 @@ import { CurrentProjectService } from 'core-app/core/current-project/current-proimport { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './add-assignee.component.html',@@ -64,7 +64,7 @@ export class AddAssigneeComponent {protected I18n:I18nService,protected halNotification:HalResourceNotificationService,readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly injector:Injector,readonly currentProjectService:CurrentProjectService,) { }diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.tsindex b05c4e3be96..ad996d72593 100644--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts@@ -35,7 +35,7 @@ import { CurrentProjectService } from 'core-app/core/current-project/current-proimport { splitViewRoute } from 'core-app/features/work-packages/routing/split-view-routes.helper';import { QueryFilterInstanceResource } from 'core-app/features/hal/resources/query-filter-instance-resource';import { PrincipalsResourceService } from 'core-app/core/state/principals/principals.service';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';@@ -89,7 +89,7 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,filter((ids) => ids.length > 0),map((ids) => ({filters: [['id', '=', ids]],- }) as Apiv3ListParameters),+ }) as ApiV3ListParameters),);assignees:HalResource[] = [];diff --git a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.tsindex 27188f14d6b..7c62cc0b1c5 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts+++ b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts@@ -9,7 +9,7 @@ import { FormArray } from '@angular/forms';import { I18nService } from 'core-app/core/i18n/i18n.service';import { Observable } from 'rxjs';import { map } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { HalSourceLink } from 'core-app/features/hal/resources/hal-resource';import { UserPreferencesQuery } from 'core-app/features/user-preferences/state/user-preferences.query';@@ -50,7 +50,7 @@ export class NotificationSettingInlineCreateComponent {constructor(private I18n:I18nService,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,) {}diff --git a/frontend/src/app/features/user-preferences/state/user-preferences.service.ts b/frontend/src/app/features/user-preferences/state/user-preferences.service.tsindex 14c6186f49b..b71032d0081 100644--- a/frontend/src/app/features/user-preferences/state/user-preferences.service.ts+++ b/frontend/src/app/features/user-preferences/state/user-preferences.service.ts@@ -1,7 +1,7 @@import { Injectable } from '@angular/core';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ToastService } from 'core-app/shared/components/toaster/toast.service';-import { Apiv3UserPreferencesPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-preferences-paths';+import { ApiV3UserPreferencesPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-preferences-paths';import { I18nService } from 'core-app/core/i18n/i18n.service';import { UserPreferencesModel } from 'core-app/features/user-preferences/state/user-preferences.model';import { UserPreferencesStore } from 'core-app/features/user-preferences/state/user-preferences.store';@@ -14,7 +14,7 @@ export class UserPreferencesService {readonly query = new UserPreferencesQuery(this.store);constructor(- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private toastService:ToastService,private I18n:I18nService,) {@@ -48,7 +48,7 @@ export class UserPreferencesService {.add(() => this.store.setLoading(false));}- private preferenceAPI(user:string):Apiv3UserPreferencesPaths {+ private preferenceAPI(user:string):ApiV3UserPreferencesPaths {return this.apiV3Service.usersdiff --git a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.tsindex ee180f10931..8d246c5c625 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts+++ b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts@@ -1,13 +1,13 @@import { NgSelectComponent } from '@ng-select/ng-select';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { DebouncedRequestSwitchmap, errorNotificationHandler } from 'core-app/shared/helpers/rxjs/debounced-input-switchmap';import { Observable } from 'rxjs';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { map } from 'rxjs/operators';-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { CachableAPIV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';+import { ApiV3Resource } from 'core-app/core/apiv3/cache/cachable-apiv3-resource';import { QueryFilterInstanceResource } from 'core-app/features/hal/resources/query-filter-instance-resource';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { HalResourceSortingService } from 'core-app/features/hal/services/hal-resource-sorting.service';@@ -71,7 +71,7 @@ export class FilterSearchableMultiselectValueComponent extends UntilDestroyedMixconstructor(readonly halResourceService:HalResourceService,readonly halSorting:HalResourceSortingService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef,readonly I18n:I18nService,protected currentProject:CurrentProjectService,@@ -109,7 +109,7 @@ export class FilterSearchableMultiselectValueComponent extends UntilDestroyedMixconst { href } = this.filter.currentSchema!.values!.allowedValues as any;const filteredData = (this.apiV3Service.collectionFromString(href) as- APIv3ResourceCollection<HalResource, CachableAPIV3Resource>)+ ApiV3ResourceCollection<HalResource, ApiV3Resource>).filtered(filters).get().pipe(map((collection) => collection.elements));diff --git a/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.tsindex c8868a57cf3..bc70d1e7998 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts+++ b/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts@@ -44,7 +44,7 @@ import { compareByHrefOrString } from 'core-app/shared/helpers/angular/tracking-import { HalResourceSortingService } from 'core-app/features/hal/services/hal-resource-sorting.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { NgSelectComponent } from '@ng-select/ng-select';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CurrentUserService } from 'core-app/core/current-user/current-user.service';import { RootResource } from 'core-app/features/hal/resources/root-resource';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';@@ -78,7 +78,7 @@ export class FilterToggledMultiselectValueComponent implements OnInit, AfterViewconstructor(readonly halResourceService:HalResourceService,readonly halSorting:HalResourceSortingService,readonly PathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly currentUser:CurrentUserService,readonly cdRef:ChangeDetectorRef,readonly I18n:I18nService) {diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.tsindex 3ad27244a86..938201e247a 100644--- a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts+++ b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts@@ -44,7 +44,7 @@ import { ConfigurationService } from 'core-app/core/config/configuration.serviceimport { ToastService } from 'core-app/shared/components/toaster/toast.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageCommentFieldHandler } from 'core-app/features/work-packages/components/work-package-comment/work-package-comment-field-handler';import { CommentService } from 'core-app/features/work-packages/components/wp-activity/comment-service';import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';@@ -87,7 +87,7 @@ export class WorkPackageCommentComponent extends WorkPackageCommentFieldHandlerprotected wpLinkedActivities:WorkPackagesActivityService,protected ConfigurationService:ConfigurationService,protected loadingIndicator:LoadingIndicatorService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected workPackageNotificationService:WorkPackageNotificationService,protected toastService:ToastService,protected cdRef:ChangeDetectorRef,diff --git a/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.tsindex 69fec70201a..9fd3700b488 100644--- a/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts@@ -29,7 +29,7 @@ import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit,} from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { TimezoneService } from 'core-app/core/datetime/timezone.service';import { UserResource } from 'core-app/features/hal/resources/user-resource';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';@@ -73,7 +73,7 @@ export class RevisionActivityComponent implements OnInit {constructor(readonly I18n:I18nService,readonly timezoneService:TimezoneService,readonly cdRef:ChangeDetectorRef,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {}ngOnInit() {diff --git a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.tsindex 5d5f761a96b..bb33bd1f425 100644--- a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts@@ -40,7 +40,7 @@ import {} from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';import { DomSanitizer, SafeHtml } from '@angular/platform-browser';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageCommentFieldHandler } from 'core-app/features/work-packages/components/work-package-comment/work-package-comment-field-handler';import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';import { CommentService } from 'core-app/features/work-packages/components/wp-activity/comment-service';@@ -104,7 +104,7 @@ export class UserActivityComponent extends WorkPackageCommentFieldHandler implemreadonly wpLinkedActivities:WorkPackagesActivityService,readonly commentService:CommentService,readonly ConfigurationService:ConfigurationService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef,readonly I18n:I18nService,readonly ngZone:NgZone,diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.ts b/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.tsindex 1513999d41d..8619fea87ce 100644--- a/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.ts@@ -8,7 +8,7 @@ import { DragAndDropService } from 'core-app/shared/helpers/drag-and-drop/drag-aimport { findIndex } from 'core-app/shared/helpers/drag-and-drop/drag-and-drop.helpers';import { WorkPackageCardViewComponent } from 'core-app/features/work-packages/components/wp-card-view/wp-card-view.component';import { WorkPackageChangeset } from 'core-app/features/work-packages/components/wp-edit/work-package-changeset';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import isNewResource from 'core-app/features/hal/helpers/is-new-resource';@@ -28,7 +28,7 @@ export class WorkPackageCardDragAndDropService {readonly reorderService:WorkPackageViewOrderService,readonly wpCreate:WorkPackageCreateService,readonly notificationService:WorkPackageNotificationService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly currentProject:CurrentProjectService,@Optional() readonly dragService:DragAndDropService,readonly wpInlineCreate:WorkPackageInlineCreateService) {diff --git a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.tsindex 5dd3e31ebec..c948d1104bf 100644--- a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts@@ -30,7 +30,7 @@ import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit,} from '@angular/core';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CustomActionResource } from 'core-app/features/hal/resources/custom-action-resource';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';@@ -44,7 +44,7 @@ export class WpCustomActionsComponent extends UntilDestroyedMixin implements OnIactions:CustomActionResource[] = [];- constructor(readonly apiV3Service:APIV3Service,+ constructor(readonly apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.tsindex 8b5449c292d..389cf2a0424 100644--- a/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts@@ -34,7 +34,7 @@ import { HalResourceEditingService } from 'core-app/shared/components/fields/ediimport { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CustomActionResource } from 'core-app/features/hal/resources/custom-action-resource';@Component({@@ -47,7 +47,7 @@ export class WpCustomActionComponent {@Input() action:CustomActionResource;constructor(private halResourceService:HalResourceService,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private wpSchemaCacheService:SchemaCacheService,private wpActivity:WorkPackagesActivityService,private notificationService:WorkPackageNotificationService,diff --git a/frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts b/frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.tsindex 72d92509b80..3e52113b97e 100644--- a/frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts+++ b/frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts@@ -41,7 +41,7 @@ import { EditForm } from 'core-app/shared/components/fields/edit/edit-form/edit-import { editModeClassName } from 'core-app/shared/components/fields/edit/edit-field.component';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';export const activeFieldContainerClassName = 'inline-edit--active-field';export const activeFieldClassName = 'inline-edit--field';@@ -49,7 +49,7 @@ export const activeFieldClassName = 'inline-edit--field';export class TableEditForm extends EditForm<WorkPackageResource> {@InjectField() public wpTableColumns:WorkPackageViewColumnsService;- @InjectField() public apiV3Service!:APIV3Service;+ @InjectField() public apiV3Service!:ApiV3Service;@InjectField() public states:States;diff --git a/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.tsindex ceb4c73ec90..8419a43df4c 100644--- a/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts@@ -12,7 +12,7 @@ import { WorkPackageViewHierarchies } from 'core-app/features/work-packages/routimport { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';import { WorkPackageViewHierarchiesService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { additionalHierarchyRowClassName, SingleHierarchyRowBuilder } from './single-hierarchy-row-builder';export class HierarchyRenderPass extends PrimaryRenderPass {@@ -20,7 +20,7 @@ export class HierarchyRenderPass extends PrimaryRenderPass {@InjectField() states:States;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;@InjectField() wpTableHierarchies:WorkPackageViewHierarchiesService;diff --git a/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.tsindex f59783dc474..94b03d14708 100644--- a/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts@@ -14,7 +14,7 @@ import { WorkPackageViewOrderService } from 'core-app/features/work-packages/rouimport { BrowserDetector } from 'core-app/core/browser/browser-detector.service';import { WorkPackagesListService } from 'core-app/features/work-packages/components/wp-list/wp-list.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { isInsideCollapsedGroup } from 'core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers';import { collapsedGroupClass } from 'core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers';import { WorkPackageTable } from '../../wp-fast-table';@@ -34,7 +34,7 @@ export class DragAndDropTransformer {@InjectField() private readonly browserDetector:BrowserDetector;- @InjectField() private readonly apiV3Service:APIV3Service;+ @InjectField() private readonly apiV3Service:ApiV3Service;@InjectField() private readonly wpListService:WorkPackagesListService;diff --git a/frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.tsindex c2077820c09..ebb11f8ef69 100644--- a/frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.ts+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.ts@@ -4,7 +4,7 @@ import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/qimport { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { States } from 'core-app/core/states/states.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageViewCollapsedGroupsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';import { WorkPackageTableConfiguration } from 'core-app/features/work-packages/components/wp-table/wp-table-configuration';import { debugLog } from 'core-app/shared/helpers/debug_output';@@ -20,7 +20,7 @@ import { WorkPackageTableRow } from './wp-table.interfaces';export class WorkPackageTable {@InjectField() querySpace:IsolatedQuerySpace;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;@InjectField() states:States;diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.tsindex 5fe121a45e6..0af4ca84f04 100644--- a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts@@ -44,9 +44,9 @@ import {WorkPackageViewPaginationService,} from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service';import { ConfigurationService } from 'core-app/core/config/configuration.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { APIv3QueriesPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-queries-paths';-import { APIv3QueryPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-paths';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3QueriesPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-queries-paths';+import { ApiV3QueryPaths } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-paths';import { PaginationService } from 'core-app/shared/components/table-pagination/pagination-service';import { ErrorResource } from 'core-app/features/hal/resources/error-resource';import { QueryFormResource } from 'core-app/features/hal/resources/query-form-resource';@@ -90,7 +90,7 @@ export class WorkPackagesListService {protected UrlParamsHelper:UrlParamsHelperService,protected authorisationService:AuthorisationService,protected $state:StateService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected states:States,protected querySpace:IsolatedQuerySpace,protected pagination:PaginationService,@@ -188,7 +188,7 @@ export class WorkPackagesListService {public loadQueryFromExisting(query:QueryResource, additionalParams:Object, projectIdentifier?:string):Observable<QueryResource> {const params = this.UrlParamsHelper.buildV3GetQueryFromQueryResource(query, additionalParams);- let path:APIv3QueriesPaths|APIv3QueryPaths;+ let path:ApiV3QueriesPaths|ApiV3QueryPaths;if (query.id) {path = this.apiV3Service.queries.id(query.id);diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.tsindex 093a9eb748e..0b48a9c53ef 100644--- a/frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.ts@@ -17,7 +17,7 @@ import { WorkPackageViewTimelineService } from 'core-app/features/work-packages/import { WorkPackageViewGroupByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service';import { WorkPackageViewFiltersService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service';import { WorkPackageViewRelationColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageViewCollapsedGroupsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';import { QueryFormResource } from 'core-app/features/hal/resources/query-form-resource';import { QuerySchemaResource } from 'core-app/features/hal/resources/query-schema-resource';@@ -42,7 +42,7 @@ export class WorkPackageStatesInitializationService {protected wpTablePagination:WorkPackageViewPaginationService,protected wpTableOrder:WorkPackageViewOrderService,protected wpTableAdditionalElements:WorkPackageViewAdditionalElementsService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected wpListChecksumService:WorkPackagesListChecksumService,protected authorisationService:AuthorisationService,protected wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService) {diff --git a/frontend/src/app/features/work-packages/components/wp-new/wp-create.component.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-create.component.tsindex 9fc61372f3c..76878c43d01 100644--- a/frontend/src/app/features/work-packages/components/wp-new/wp-create.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-create.component.ts@@ -44,7 +44,7 @@ import { WorkPackageNotificationService } from 'core-app/features/work-packages/import * as URI from 'urijs';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { splitViewRoute } from 'core-app/features/work-packages/routing/split-view-routes.helper';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { HalSource } from 'core-app/features/hal/resources/hal-resource';import { OpTitleService } from 'core-app/core/html/op-title.service';import { WorkPackageCreateService } from './wp-create.service';@@ -87,7 +87,7 @@ export class WorkPackageCreateComponent extends UntilDestroyedMixin implements Oprotected readonly wpViewFocus:WorkPackageViewFocusService,protected readonly wpTableFilters:WorkPackageViewFiltersService,protected readonly pathHelper:PathHelperService,- protected readonly apiV3Service:APIV3Service,+ protected readonly apiV3Service:ApiV3Service,protected readonly cdRef:ChangeDetectorRef) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.tsindex c5fd08f59ce..ed6f391cf70 100644--- a/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts@@ -42,7 +42,7 @@ import { FormResource } from 'core-app/features/hal/resources/form-resource';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { HalResource, HalSource, HalSourceLink } from 'core-app/features/hal/resources/hal-resource';import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { SchemaResource } from 'core-app/features/hal/resources/schema-resource';@@ -60,7 +60,7 @@ export class WorkPackageCreateService extends UntilDestroyedMixin {constructor(protected injector:Injector,protected hooks:HookService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected halResourceService:HalResourceService,protected querySpace:IsolatedQuerySpace,protected authorisationService:AuthorisationService,diff --git a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.ts b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.tsindex ac9fb3dc602..3edfeac7a44 100644--- a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.ts@@ -1,7 +1,7 @@import { Component, Input, OnInit } from '@angular/core';import { combineLatest } from 'rxjs';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageRelationsService } from 'core-app/features/work-packages/components/wp-relations/wp-relations.service';@Component({@@ -13,7 +13,7 @@ export class WorkPackageRelationsCountComponent extends UntilDestroyedMixin implpublic count = 0;- constructor(protected apiV3Service:APIV3Service,+ constructor(protected apiV3Service:ApiV3Service,protected wpRelations:WorkPackageRelationsService) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.ts b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.tsindex e6b75387dfe..e111959de1b 100644--- a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.ts@@ -3,7 +3,7 @@ import {} from '@angular/core';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageWatchersService } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';@Component({@@ -16,7 +16,7 @@ export class WorkPackageWatchersCountComponent extends UntilDestroyedMixin implepublic count = 0;- constructor(protected apiV3Service:APIV3Service,+ constructor(protected apiV3Service:ApiV3Service,protected wpWatcherService:WorkPackageWatchersService,protected cdRef:ChangeDetectorRef) {super();diff --git a/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.tsindex 4c51d2bd5bf..a267b627bb2 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.ts@@ -40,7 +40,7 @@ import { WpChildrenInlineCreateService } from 'core-app/features/work-packages/cimport { filter } from 'rxjs/operators';import { QueryResource } from 'core-app/features/hal/resources/query-resource';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { GroupDescriptor } from 'core-app/features/work-packages/components/wp-single-view/wp-single-view.component';import idFromLink from 'core-app/features/hal/helpers/id-from-link';@@ -80,7 +80,7 @@ export class WorkPackageChildrenQueryComponent extends WorkPackageRelationQueryBprotected PathHelper:PathHelperService,protected wpInlineCreate:WorkPackageInlineCreateService,protected halEvents:HalEventsService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected queryUrlParamsHelper:UrlParamsHelperService,readonly I18n:I18nService) {super(queryUrlParamsHelper);diff --git a/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.tsindex 97a51d035cb..5f06b99088e 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts@@ -36,7 +36,7 @@ import { WorkPackageResource } from 'core-app/features/hal/resources/work-packagimport { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';import { RelationResource } from 'core-app/features/hal/resources/relation-resource';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3Filter } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';@@ -57,7 +57,7 @@ export class WpRelationInlineAddExistingComponent {constructor(protected readonly parent:WorkPackageInlineCreateComponent,@Inject(WorkPackageInlineCreateService) protected readonly wpInlineCreate:WpRelationInlineCreateServiceInterface,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected wpRelations:WorkPackageRelationsService,protected notificationService:WorkPackageNotificationService,protected halEvents:HalEventsService,diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.tsindex b504a4c7fb0..763d455256a 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.ts@@ -7,7 +7,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { RelationResource } from 'core-app/features/hal/resources/relation-resource';import { WorkPackageRelationsService } from '../wp-relations.service';@@ -63,7 +63,7 @@ export class WorkPackageRelationRowComponent extends UntilDestroyedMixin impleme},};- constructor(protected apiV3Service:APIV3Service,+ constructor(protected apiV3Service:ApiV3Service,protected notificationService:WorkPackageNotificationService,protected wpRelations:WorkPackageRelationsService,protected halEvents:HalEventsService,diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.tsindex 46e66caae39..8f1d1f6e535 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts@@ -33,7 +33,7 @@ import { PathHelperService } from 'core-app/core/path-helper/path-helper.serviceimport { WorkPackageRelationsHierarchyService } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';import { take } from 'rxjs/operators';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({selector: 'wp-relations-hierarchy',@@ -57,7 +57,7 @@ export class WorkPackageRelationsHierarchyComponent extends UntilDestroyedMixinpublic childrenQueryProps:any;constructor(protected wpRelationsHierarchyService:WorkPackageRelationsHierarchyService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,protected PathHelper:PathHelperService,readonly I18n:I18nService) {super();diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.tsindex 05f405758e4..591ef5db5e1 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts@@ -32,7 +32,7 @@ import { StateService } from '@uirouter/core';import { Injectable } from '@angular/core';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { HalEventsService } from 'core-app/features/hal/services/hal-events.service';@Injectable()@@ -42,7 +42,7 @@ export class WorkPackageRelationsHierarchyService {protected halEvents:HalEventsService,protected notificationService:WorkPackageNotificationService,protected pathHelper:PathHelperService,- protected apiV3Service:APIV3Service) {+ protected apiV3Service:ApiV3Service) {}diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.tsindex 4b5c0082658..8abae17508e 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts@@ -35,7 +35,7 @@ import { Observable, zip } from 'rxjs';import { take, takeUntil } from 'rxjs/operators';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { componentDestroyed } from '@w11k/ngx-componentdestroyed';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { RelationResource } from 'core-app/features/hal/resources/relation-resource';import { RelationsStateValue, WorkPackageRelationsService } from './wp-relations.service';import { RelatedWorkPackagesGroup } from './wp-relations.interfaces';@@ -68,7 +68,7 @@ export class WorkPackageRelationsComponent extends UntilDestroyedMixin implementconstructor(private I18n:I18nService,private wpRelations:WorkPackageRelationsService,private cdRef:ChangeDetectorRef,- private apiV3Service:APIV3Service) {+ private apiV3Service:ApiV3Service) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.tsindex 9083673aad4..26bcbe239e7 100644--- a/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.ts@@ -3,7 +3,7 @@ import { PathHelperService } from 'core-app/core/path-helper/path-helper.serviceimport { multiInput, MultiInputState, StatesGroup } from 'reactivestates';import { Injectable } from '@angular/core';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { StateCacheService } from 'core-app/core/apiv3/cache/state-cache.service';import { Observable } from 'rxjs';import { map, take } from 'rxjs/operators';@@ -25,7 +25,7 @@ export class RelationStateGroup extends StatesGroup {@Injectable()export class WorkPackageRelationsService extends StateCacheService<RelationsStateValue> {constructor(private PathHelper:PathHelperService,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private halResource:HalResourceService) {super(new RelationStateGroup().relations);}diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.tsindex d3f45b0034d..54fe742e10c 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts@@ -41,7 +41,7 @@ import { ActivityEntryInfo } from 'core-app/features/work-packages/components/wpimport { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WpSingleViewService } from 'core-app/features/work-packages/routing/wp-view-base/state/wp-single-view.service';@Directive()@@ -74,7 +74,7 @@ export class ActivityPanelBaseController extends UntilDestroyedMixin implementsprivate initialized = false;constructor(- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly I18n:I18nService,readonly cdRef:ChangeDetectorRef,readonly uiRouterGlobals:UIRouterGlobals,diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.tsindex cae1963e2ed..df4dead453f 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts@@ -31,7 +31,7 @@ import { StateService } from '@uirouter/core';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { I18nService } from 'core-app/core/i18n/i18n.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './overview-tab.html',@@ -46,7 +46,7 @@ export class WorkPackageOverviewTabComponent extends UntilDestroyedMixin {public constructor(readonly I18n:I18nService,readonly $state:StateService,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {super();this.workPackageId = this.$state.params.workPackageId;diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.tsindex 0df80a96620..125fde88d45 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts@@ -31,7 +31,7 @@ import { Component, Input, OnInit } from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './relations-tab.html',@@ -44,7 +44,7 @@ export class WorkPackageRelationsTabComponent extends UntilDestroyedMixin implempublic constructor(readonly I18n:I18nService,readonly $transition:Transition,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.tsindex 74f0b6e5f82..53829d54c57 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts@@ -39,7 +39,7 @@ import { PathHelperService } from 'core-app/core/path-helper/path-helper.serviceimport { trackByHref } from 'core-app/shared/helpers/angular/tracking-functions';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './watchers-tab.html',@@ -85,7 +85,7 @@ export class WorkPackageWatchersTabComponent extends UntilDestroyedMixin implemereadonly loadingIndicator:LoadingIndicatorService,readonly cdRef:ChangeDetectorRef,readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.ts b/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.tsindex df60abbfc7f..37474bb81ba 100644--- a/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.ts@@ -31,7 +31,7 @@ import { UIRouterGlobals } from '@uirouter/core';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { randomString } from 'core-app/shared/helpers/random-string';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({selector: 'wp-subject',@@ -43,7 +43,7 @@ export class WorkPackageSubjectComponent extends UntilDestroyedMixin implementspublic readonly uniqueElementIdentifier = `work-packages--subject-type-row-${randomString(16)}`;constructor(protected uiRouterGlobals:UIRouterGlobals,- protected apiV3Service:APIV3Service) {+ protected apiV3Service:ApiV3Service) {super();}diff --git a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.tsindex 036a06f0221..c688f3d0e18 100644--- a/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.ts@@ -31,7 +31,7 @@ import { OpModalComponent } from 'core-app/shared/components/modal/modal.componeimport { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';import { ComponentType } from '@angular/cdk/portal';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';export const WpTableConfigurationModalPrependToken = new InjectionToken<ComponentType<any>>('WpTableConfigurationModalPrependComponent');@@ -84,7 +84,7 @@ export class WpTableConfigurationModalComponent extends OpModalComponent implemereadonly loadingIndicator:LoadingIndicatorService,readonly querySpace:IsolatedQuerySpace,readonly wpStatesInitialization:WorkPackageStatesInitializationService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly notificationService:WorkPackageNotificationService,readonly wpTableColumns:WorkPackageViewColumnsService,readonly cdRef:ChangeDetectorRef,diff --git a/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.tsindex 1f027af2beb..72295819f05 100644--- a/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts@@ -8,14 +8,14 @@ import {} from 'core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers';import { relationRowClass, isInsideCollapsedGroup } from 'core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';export class HierarchyDragActionService extends TableDragActionService {@InjectField() private wpTableHierarchies:WorkPackageViewHierarchiesService;@InjectField() private relationHierarchyService:WorkPackageRelationsHierarchyService;- @InjectField() private apiV3Service:APIV3Service;+ @InjectField() private apiV3Service:ApiV3Service;public get applies() {return this.wpTableHierarchies.isEnabled;diff --git a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.tsindex ef212969ca8..52ba5a507b6 100644--- a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.ts@@ -12,7 +12,7 @@ import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/qimport { WorkPackagesViewBase } from 'core-app/features/work-packages/routing/wp-view-base/work-packages-view.base';import { QueryResource } from 'core-app/features/hal/resources/query-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { WorkPackageStatesInitializationService } from '../../wp-list/wp-states-initialization.service';@@ -34,7 +34,7 @@ export abstract class WorkPackageEmbeddedBaseComponent extends WorkPackagesViewBprotected initialized = false;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;@InjectField() querySpace:IsolatedQuerySpace;diff --git a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.tsindex ecbd8aaa06e..7cca4bc3e72 100644--- a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts@@ -15,7 +15,7 @@ import {} from 'rxjs/operators';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({selector: 'wp-embedded-table',@@ -36,7 +36,7 @@ export class WorkPackageEmbeddedTableComponent extends WorkPackageEmbeddedBaseCo/** Inform about loaded query */@Output() public onQueryLoaded = new EventEmitter<QueryResource>();- @InjectField() apiv3Service:APIV3Service;+ @InjectField() apiv3Service:ApiV3Service;@InjectField() opModalService:OpModalService;diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.tsindex 15e8c06cff3..50785bf9358 100644--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts@@ -38,7 +38,7 @@ import { HalEventsService } from 'core-app/features/hal/services/hal-events.servimport { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { take } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageCellLabels } from './wp-timeline-cell';import { TimelineCellRenderer } from './timeline-cell-renderer';import { RenderInfo } from '../wp-timeline';@@ -249,7 +249,7 @@ export function registerWorkPackageMouseHandler(this:void,}function saveWorkPackage(change:WorkPackageChangeset) {- const apiv3Service:APIV3Service = injector.get(APIV3Service);+ const apiv3Service:ApiV3Service = injector.get(ApiV3Service);const querySpace:IsolatedQuerySpace = injector.get(IsolatedQuerySpace);// Remember the time before saving the work package to know which work packages to updatediff --git a/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.tsindex 3e99b2330b4..deafe92f160 100644--- a/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts@@ -32,7 +32,7 @@ import {OnInit,} from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import { map } from 'rxjs/operators';import { WpTabDefinition } from 'core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab';@@ -58,7 +58,7 @@ export class WpTabWrapperComponent implements OnInit {constructor(readonly I18n:I18nService,readonly uiRouterGlobals:UIRouterGlobals,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly wpTabsService:WorkPackageTabsService) {}ngOnInit() {diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.tsindex fadc0e4144d..f8aa7a4267c 100644--- a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts@@ -2,7 +2,7 @@ import { Injector } from '@angular/core';import { combineLatest, Observable } from 'rxjs';import { map } from 'rxjs/operators';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageRelationsService } from 'core-app/features/work-packages/components/wp-relations/wp-relations.service';export function workPackageRelationsCount(@@ -10,7 +10,7 @@ export function workPackageRelationsCount(injector:Injector,):Observable<number> {const wpRelations = injector.get(WorkPackageRelationsService);- const apiV3Service = injector.get(APIV3Service);+ const apiV3Service = injector.get(ApiV3Service);const wpId = workPackage.id!.toString();wpRelations.require(wpId);diff --git a/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.tsindex f523be2c5e2..59da84119db 100644--- a/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts@@ -33,7 +33,7 @@ import {import { I18nService } from 'core-app/core/i18n/i18n.service';import { WorkPackageWatchersService } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({selector: 'wp-watcher-button',@@ -59,7 +59,7 @@ export class WorkPackageWatcherButtonComponent extends UntilDestroyedMixin impleconstructor(readonly I18n:I18nService,readonly wpWatchersService:WorkPackageWatchersService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef) {super();}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.tsindex 6af224b6455..a857a682c4a 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.ts@@ -10,7 +10,7 @@ import {import { selectCollectionAsEntities$ } from 'core-app/core/state/collection-store';import { InAppNotification } from 'core-app/core/state/in-app-notifications/in-app-notification.model';import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { combineLatest } from 'rxjs';export class WpSingleViewQuery extends Query<WpSingleViewState> {@@ -34,7 +34,7 @@ export class WpSingleViewQuery extends Query<WpSingleViewState> {map((count) => count > 0),);- get params():Apiv3ListParameters {+ get params():ApiV3ListParameters {return { filters: this.getValue().notifications.filters };}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.tsindex 4261f2d45e3..8f69769feb5 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts@@ -34,7 +34,7 @@ import { WorkPackageNotificationService } from 'core-app/features/work-packages/import { WorkPackageCollectionResource } from 'core-app/features/hal/resources/wp-collection-resource';import { QueryResource } from 'core-app/features/hal/resources/query-resource';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { RelationResource } from 'core-app/features/hal/resources/relation-resource';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { WorkPackageViewHierarchiesService } from './wp-view-hierarchy.service';@@ -47,7 +47,7 @@ export class WorkPackageViewAdditionalElementsService {readonly wpTableColumns:WorkPackageViewColumnsService,readonly notificationService:WorkPackageNotificationService,readonly halResourceService:HalResourceService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly schemaCache:SchemaCacheService,readonly wpRelations:WorkPackageRelationsService) {}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.tsindex 105132df034..604143e62a9 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts@@ -35,7 +35,7 @@ import { WorkPackageViewHierarchiesService } from 'core-app/features/work-packagimport { WorkPackageRelationsHierarchyService } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';import { WorkPackageViewHierarchyIdentationService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service';import { WorkPackageViewDisplayRepresentationService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { of } from 'rxjs';import SpyObj = jasmine.SpyObj;@@ -52,7 +52,7 @@ describe('WorkPackageViewIndentation service', () => {}}- class Apiv3serviceStub {+ class ApiV3serviceStub {work_packages = {id: (wpId:string) => ({get: () => of(states.workPackages.get(wpId).value),@@ -74,7 +74,7 @@ describe('WorkPackageViewIndentation service', () => {States,IsolatedQuerySpace,{ provide: WorkPackageViewDisplayRepresentationService, useValue: { isList: true } },- { provide: APIV3Service, useClass: Apiv3serviceStub },+ { provide: ApiV3Service, useClass: ApiV3serviceStub },{ provide: WorkPackageViewHierarchiesService, useClass: HierarchyServiceStub },{ provide: WorkPackageRelationsHierarchyService, useValue: parentServiceSpy },WorkPackageViewHierarchyIdentationService,diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.tsindex b0ebc587913..7fcc46f4138 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts@@ -5,7 +5,7 @@ import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/qimport { WorkPackageRelationsHierarchyService } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';import { States } from 'core-app/core/states/states.service';import { WorkPackageViewDisplayRepresentationService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Injectable()export class WorkPackageViewHierarchyIdentationService {@@ -13,7 +13,7 @@ export class WorkPackageViewHierarchyIdentationService {private wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService,private states:States,private wpRelationHierarchy:WorkPackageRelationsHierarchyService,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private querySpace:IsolatedQuerySpace) {}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.tsindex d73e08f22a4..8d384694e9c 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.ts@@ -40,14 +40,14 @@ import isPersistedResource from 'core-app/features/hal/helpers/is-persisted-resoimport { MAX_ORDER, buildDelta } from 'core-app/shared/helpers/drag-and-drop/reorder-delta-builder';import { WorkPackageViewSortByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service';import { CausedUpdatesService } from 'core-app/features/boards/board/caused-updates/caused-updates.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { QueryOrder } from 'core-app/core/apiv3/endpoints/queries/apiv3-query-order';import { WorkPackageQueryStateService } from './wp-view-base.service';@Injectable()export class WorkPackageViewOrderService extends WorkPackageQueryStateService<QueryOrder> {constructor(protected readonly querySpace:IsolatedQuerySpace,- protected readonly apiV3Service:APIV3Service,+ protected readonly apiV3Service:ApiV3Service,protected readonly states:States,protected readonly causedUpdates:CausedUpdatesService,protected readonly wpTableSortBy:WorkPackageViewSortByService,diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.tsindex 2b8e9a40145..04a9b366815 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts@@ -38,7 +38,7 @@ import {RelationQueryColumn,TypeRelationQueryColumn,} from 'core-app/features/work-packages/components/wp-query/query-column';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { RelationResource } from 'core-app/features/hal/resources/relation-resource';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { WorkPackageViewBaseService } from './wp-view-base.service';@@ -51,7 +51,7 @@ export class WorkPackageViewRelationColumnsService extends WorkPackageViewBaseSeconstructor(public querySpace:IsolatedQuerySpace,public wpTableColumns:WorkPackageViewColumnsService,public halResourceService:HalResourceService,- public apiV3Service:APIV3Service,+ public apiV3Service:ApiV3Service,public wpRelations:WorkPackageRelationsService) {super(querySpace);}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.tsindex 8c76ddc6547..2433304a42e 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.ts@@ -42,7 +42,7 @@ import { HalResourceEditingService } from 'core-app/shared/components/fields/ediimport { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { HookService } from 'core-app/features/plugins/hook-service';import { WpSingleViewService } from 'core-app/features/work-packages/routing/wp-view-base/state/wp-single-view.service';import { Observable } from 'rxjs';@@ -69,7 +69,7 @@ export class WorkPackageSingleViewBase extends UntilDestroyedMixin {@InjectField() readonly titleService:OpTitleService;- @InjectField() readonly apiV3Service:APIV3Service;+ @InjectField() readonly apiV3Service:ApiV3Service;@InjectField() readonly hooks:HookService;diff --git a/frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.ts b/frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.tsindex 8de507b7ab0..49a26c1a61d 100644--- a/frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.ts+++ b/frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.ts@@ -30,12 +30,12 @@ import { Injectable, Injector } from '@angular/core';import { IToast } from 'core-app/shared/components/toaster/toast.service';import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Injectable()export class WorkPackageNotificationService extends HalResourceNotificationService {constructor(readonly injector:Injector,- readonly apiV3Service:APIV3Service) {+ readonly apiV3Service:ApiV3Service) {super(injector);}diff --git a/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.ts b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.tsindex 1f164893afd..ccf30fb195b 100644--- a/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.ts+++ b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.ts@@ -28,7 +28,7 @@import { input } from 'reactivestates';import { Injectable } from '@angular/core';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { take } from 'rxjs/operators';import { CollectionResource } from 'core-app/features/hal/resources/collection-resource';import { HelpTextResource } from 'core-app/features/hal/resources/help-text-resource';@@ -37,7 +37,7 @@ import { HelpTextResource } from 'core-app/features/hal/resources/help-text-resoexport class AttributeHelpTextsService {private helpTexts = input<HelpTextResource[]>();- constructor(private apiV3Service:APIV3Service) {+ constructor(private apiV3Service:ApiV3Service) {}/**diff --git a/frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.tsindex eeaca13eaa5..8ffc8deef2c 100644--- a/frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.ts+++ b/frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.ts@@ -1,13 +1,13 @@import { Injectable } from '@angular/core';import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { map } from 'rxjs/operators';-import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';+import { ApiV3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';import { UserResource } from 'core-app/features/hal/resources/user-resource';-import { APIv3UserPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-paths';-import { APIV3WorkPackagePaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths';+import { ApiV3UserPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-paths';+import { ApiV3WorkPackagePaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { HalResource } from 'core-app/features/hal/resources/hal-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';@@ -15,7 +15,7 @@ import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destrexport class OpAutocompleterService extends UntilDestroyedMixin {constructor(- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,) {super();}@@ -25,7 +25,7 @@ export class OpAutocompleterService extends UntilDestroyedMixin {const finalFilters:ApiV3FilterBuilder = this.createFilters(filters ?? [], matching, searchKey);const filteredData = (this.apiV3Service[resource] as- APIv3ResourceCollection<UserResource|WorkPackageResource, APIv3UserPaths|APIV3WorkPackagePaths>)+ ApiV3ResourceCollection<UserResource|WorkPackageResource, ApiV3UserPaths|ApiV3WorkPackagePaths>).filtered(finalFilters).get().pipe(map((collection) => collection.elements));return filteredData;diff --git a/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.tsindex c02bc58e709..836674f216a 100644--- a/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts+++ b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts@@ -41,7 +41,7 @@ import {import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';import { NgSelectComponent } from '@ng-select/ng-select';import { UserResource } from 'core-app/features/hal/resources/user-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { ApiV3FilterBuilder, FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';export const usersAutocompleterSelector = 'user-autocompleter';@@ -93,7 +93,7 @@ export class UserAutocompleterComponent implements OnInit {protected I18n:I18nService,protected halNotification:HalResourceNotificationService,readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly injector:Injector) {}diff --git a/frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.tsindex b04b0101bb9..a2ca5afda12 100644--- a/frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.ts+++ b/frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.ts@@ -31,7 +31,7 @@ import {} from '@angular/core';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { CreateAutocompleterComponent } from 'core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { VersionResource } from 'core-app/features/hal/resources/version-resource';import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';import { I18nService } from 'core-app/core/i18n/i18n.service';@@ -50,7 +50,7 @@ export class VersionAutocompleterComponent extends CreateAutocompleterComponentreadonly currentProject:CurrentProjectService,readonly cdRef:ChangeDetectorRef,readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly halNotification:HalResourceNotificationService,) {super(injector);diff --git a/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.tsindex 8b9a561fb12..cdc7268c58a 100644--- a/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts+++ b/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts@@ -33,7 +33,7 @@ import { TimeEntryEditService } from 'core-app/shared/components/time_entries/edimport { TimeEntryCreateService } from 'core-app/shared/components/time_entries/create/create.service';import { ColorsService } from 'core-app/shared/components/colors/colors.service';import { BrowserDetector } from 'core-app/core/browser/browser-detector.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import { FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { TimezoneService } from 'core-app/core/datetime/timezone.service';@@ -140,7 +140,7 @@ export class TimeEntryCalendarComponent {};constructor(readonly states:States,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly $state:StateService,private element:ElementRef,readonly i18n:I18nService,diff --git a/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.tsindex 82dd56cbf58..dc082bb82b5 100644--- a/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts+++ b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts@@ -193,11 +193,11 @@ export class DynamicFieldsService {required,label,hasDefault,- ...payloadValue != null && { payloadValue },- ...minLength && { minLength },- ...maxLength && { maxLength },+ ...(payloadValue != null && { payloadValue }),+ ...(minLength && { minLength }),+ ...(maxLength && { maxLength }),...templateOptions,- ...fieldOptions && { options: fieldOptions },+ ...(fieldOptions && { options: fieldOptions }),},};@@ -223,8 +223,8 @@ export class DynamicFieldsService {className: field.name,templateOptions: {...inputConfig.templateOptions,- ...this.isMultiSelectField(field) && { multiple: true },- ...fieldType === 'User' && { showAddNewUserButton: true },+ ...(this.isMultiSelectField(field) && { multiple: true }),+ ...(fieldType === 'User' && { showAddNewUserButton: true }),},};} else if (inputConfig.type === 'formattableInput') {@@ -289,11 +289,11 @@ export class DynamicFieldsService {...newFormFieldGroup,templateOptions: {...newFormFieldGroup.templateOptions,- ...fieldGroup.settings.templateOptions && fieldGroup.settings.templateOptions,+ ...(fieldGroup.settings.templateOptions && fieldGroup.settings.templateOptions),},expressionProperties: {...newFormFieldGroup.expressionProperties,- ...fieldGroup.settings.expressionProperties && fieldGroup.settings.expressionProperties,+ ...(fieldGroup.settings.expressionProperties && fieldGroup.settings.expressionProperties),},};}diff --git a/frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.tsindex 9b1e35d1a4d..abdfd4dc6d1 100644--- a/frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.ts+++ b/frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.ts@@ -29,13 +29,13 @@import { Highlighting } from 'core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions';import { HighlightableDisplayField } from 'core-app/shared/components/fields/display/field-types/highlightable-display-field.module';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { TimezoneService } from 'core-app/core/datetime/timezone.service';export class DateDisplayField extends HighlightableDisplayField {@InjectField() timezoneService:TimezoneService;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;public render(element:HTMLElement, displayText:string):void {super.render(element, displayText);diff --git a/frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.tsindex b8ef96ac223..206e567c4c1 100644--- a/frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.ts+++ b/frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.ts@@ -32,7 +32,7 @@ import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decoraimport * as URI from 'urijs';import { TimeEntryCreateService } from 'core-app/shared/components/time_entries/create/create.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { DurationDisplayField } from './duration-display-field.module';export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {@@ -45,7 +45,7 @@ export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {@InjectField(TimeEntryCreateService, null) timeEntryCreateService:TimeEntryCreateService;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;public render(element:HTMLElement, displayText:string):void {if (!this.value) {diff --git a/frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.tsindex a2b4fa06b31..3848fa5e0b3 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.ts+++ b/frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.ts@@ -31,7 +31,7 @@ import { WorkPackageEditFieldComponent } from 'core-app/shared/components/fieldsimport { HalResource } from 'core-app/features/hal/resources/hal-resource';import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import {TimeEntryWorkPackageAutocompleterComponent,TimeEntryWorkPackageAutocompleterMode,@@ -44,7 +44,7 @@ const RECENT_TIME_ENTRIES_MAGIC_NUMBER = 30;templateUrl: './work-package-edit-field.component.html',})export class TimeEntryWorkPackageEditFieldComponent extends WorkPackageEditFieldComponent {- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;private recentWorkPackageIds:string[];diff --git a/frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.ts b/frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.tsindex ddede9cbfd1..f2394cef756 100644--- a/frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.ts+++ b/frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.ts@@ -27,7 +27,7 @@// ++ Ng1FieldControlsWrapper,import { Injectable } from '@angular/core';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { NEVER, Observable, throwError } from 'rxjs';import {filter, map, take, tap,@@ -50,7 +50,7 @@ export class AttributeModelLoaderService {// we may need to expensively filter for themprivate cache$ = multiInput<HalResource>();- constructor(readonly apiV3Service:APIV3Service,+ constructor(readonly apiV3Service:ApiV3Service,readonly transitions:TransitionService,readonly currentProject:CurrentProjectService,readonly I18n:I18nService) {diff --git a/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.ts b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.tsindex 10d54e5323e..758afcd761a 100644--- a/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.ts+++ b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.ts@@ -34,7 +34,7 @@ import {HostBinding,Injector,} from '@angular/core';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { Observable } from 'rxjs';import { tap } from 'rxjs/operators';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';@@ -78,7 +78,7 @@ export class WorkPackageQuickinfoMacroComponent {constructor(readonly elementRef:ElementRef,readonly injector:Injector,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly schemaCache:SchemaCacheService,readonly displayField:DisplayFieldService,readonly pathHelper:PathHelperService,diff --git a/frontend/src/app/shared/components/grids/grid/area.service.ts b/frontend/src/app/shared/components/grids/grid/area.service.tsindex 00252bacb8c..335cb5dba02 100644--- a/frontend/src/app/shared/components/grids/grid/area.service.ts+++ b/frontend/src/app/shared/components/grids/grid/area.service.ts@@ -9,8 +9,8 @@ import { WidgetChangeset } from 'core-app/shared/components/grids/widgets/widgetimport { ToastService } from 'core-app/shared/components/toaster/toast.service';import { I18nService } from 'core-app/core/i18n/i18n.service';import { BehaviorSubject } from 'rxjs';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3GridForm } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-form';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3GridForm } from 'core-app/core/apiv3/endpoints/grids/apiv3-grid-form';@Injectable()export class GridAreaService {@@ -36,7 +36,7 @@ export class GridAreaService {public helpMode = false;- constructor(private apiV3Service:APIV3Service,+ constructor(private apiV3Service:ApiV3Service,private toastService:ToastService,private i18n:I18nService) { }@@ -111,7 +111,7 @@ export class GridAreaService {}public saveWidgetChangeset(changeset:WidgetChangeset) {- const payload:any = Apiv3GridForm.extractPayload(this.resource, this.schema);+ const payload:any = ApiV3GridForm.extractPayload(this.resource, this.schema);const payloadWidget = payload.widgets.find((w:any) => w.id === changeset.pristineResource.id);Object.assign(payloadWidget, changeset.changes);diff --git a/frontend/src/app/shared/components/grids/grid/initialization.service.ts b/frontend/src/app/shared/components/grids/grid/initialization.service.tsindex f049f78462d..a962ca98009 100644--- a/frontend/src/app/shared/components/grids/grid/initialization.service.ts+++ b/frontend/src/app/shared/components/grids/grid/initialization.service.ts@@ -1,12 +1,12 @@import { Injectable } from '@angular/core';import { GridResource } from 'core-app/features/hal/resources/grid-resource';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { switchMap } from 'rxjs/operators';@Injectable()export class GridInitializationService {- constructor(readonly apiV3Service:APIV3Service,+ constructor(readonly apiV3Service:ApiV3Service,readonly halResourceService:HalResourceService) {}diff --git a/frontend/src/app/shared/components/grids/widgets/documents/documents.component.ts b/frontend/src/app/shared/components/grids/widgets/documents/documents.component.tsindex fca93f38f6b..9fd942e22d1 100644--- a/frontend/src/app/shared/components/grids/widgets/documents/documents.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/documents/documents.component.ts@@ -13,7 +13,7 @@ import { HalResourceService } from 'core-app/features/hal/services/hal-resource.import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { DomSanitizer } from '@angular/platform-browser';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { TimezoneService } from 'core-app/core/datetime/timezone.service';import { DocumentResource } from '../../../../../../../../modules/documents/frontend/module/hal/resources/document-resource';@@ -32,7 +32,7 @@ export class WidgetDocumentsComponent extends AbstractWidgetComponent implementsconstructor(readonly halResource:HalResourceService,readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly i18n:I18nService,readonly timezone:TimezoneService,readonly domSanitizer:DomSanitizer,diff --git a/frontend/src/app/shared/components/grids/widgets/members/members.component.ts b/frontend/src/app/shared/components/grids/widgets/members/members.component.tsindex 9b66597d814..aae64d6fa11 100644--- a/frontend/src/app/shared/components/grids/widgets/members/members.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/members/members.component.ts@@ -7,8 +7,8 @@ import { PathHelperService } from 'core-app/core/path-helper/path-helper.serviceimport { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { MembershipResource } from 'core-app/features/hal/resources/membership-resource';import { RoleResource } from 'core-app/features/hal/resources/role-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { HalResource } from 'core-app/features/hal/resources/hal-resource';const DISPLAYED_MEMBERS_LIMIT = 100;@@ -34,7 +34,7 @@ export class WidgetMembersComponent extends AbstractWidgetComponent implements Opublic membersAddable = false;constructor(readonly pathHelper:PathHelperService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly i18n:I18nService,protected readonly injector:Injector,readonly currentProject:CurrentProjectService,@@ -111,7 +111,7 @@ export class WidgetMembersComponent extends AbstractWidgetComponent implements O}private get listMembersParams() {- const params:Apiv3ListParameters = { sortBy: [['created_at', 'desc']], pageSize: DISPLAYED_MEMBERS_LIMIT };+ const params:ApiV3ListParameters = { sortBy: [['created_at', 'desc']], pageSize: DISPLAYED_MEMBERS_LIMIT };if (this.currentProject.id) {params.filters = [['project_id', '=', [this.currentProject.id]]];@@ -123,7 +123,7 @@ export class WidgetMembersComponent extends AbstractWidgetComponent implements Oprivate get listAvailableProjectsParams() {// It would make sense to set the pageSize but the backend for projects// returns an upaginated list which does not support that.- const params:Apiv3ListParameters = {};+ const params:ApiV3ListParameters = {};if (this.currentProject.id) {params.filters = [['id', '=', [this.currentProject.id]]];diff --git a/frontend/src/app/shared/components/grids/widgets/news/news.component.spec.ts b/frontend/src/app/shared/components/grids/widgets/news/news.component.spec.tsindex 4add0e4ab41..55175cba057 100644--- a/frontend/src/app/shared/components/grids/widgets/news/news.component.spec.ts+++ b/frontend/src/app/shared/components/grids/widgets/news/news.component.spec.ts@@ -5,7 +5,7 @@ import { States } from 'core-app/core/states/states.service';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';import { HttpClientModule } from '@angular/common/http';import { By } from '@angular/platform-browser';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { of } from 'rxjs';import { TimezoneService } from 'core-app/core/datetime/timezone.service';import { WidgetNewsComponent } from './news.component';@@ -51,7 +51,7 @@ describe('shows news', () => {TimezoneService,{ provide: ConfigurationService, useValue: configurationServiceStub },States,- { provide: APIV3Service, useValue: apiv3ServiceStub },+ { provide: ApiV3Service, useValue: apiv3ServiceStub },HalResourceService,],imports: [HttpClientModule],diff --git a/frontend/src/app/shared/components/grids/widgets/news/news.component.ts b/frontend/src/app/shared/components/grids/widgets/news/news.component.tsindex c7870ae1da1..2e066c7ee63 100644--- a/frontend/src/app/shared/components/grids/widgets/news/news.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/news/news.component.ts@@ -6,8 +6,8 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { NewsResource } from 'core-app/features/hal/resources/news-resource';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { TimezoneService } from 'core-app/core/datetime/timezone.service';import idFromLink from 'core-app/features/hal/helpers/id-from-link';@@ -34,7 +34,7 @@ export class WidgetNewsComponent extends AbstractWidgetComponent implements OnInprotected readonly injector:Injector,readonly timezone:TimezoneService,readonly currentProject:CurrentProjectService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly cdr:ChangeDetectorRef,) {super(i18n, injector);@@ -87,7 +87,7 @@ export class WidgetNewsComponent extends AbstractWidgetComponent implements OnIn}private get newsDmParams() {- const params:Apiv3ListParameters = {+ const params:ApiV3ListParameters = {sortBy: [['created_at', 'desc']],pageSize: 3,};diff --git a/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.ts b/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.tsindex 190fbfc3667..91f997c2f49 100644--- a/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.ts@@ -35,7 +35,7 @@ import { CurrentProjectService } from 'core-app/core/current-project/current-proimport { Observable } from 'rxjs';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './project-description.component.html',@@ -49,7 +49,7 @@ export class WidgetProjectDescriptionComponent extends AbstractWidgetComponent iconstructor(protected readonly i18n:I18nService,protected readonly injector:Injector,- protected readonly apiV3Service:APIV3Service,+ protected readonly apiV3Service:ApiV3Service,protected readonly currentProject:CurrentProjectService,protected readonly cdRef:ChangeDetectorRef) {super(i18n, injector);diff --git a/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.ts b/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.tsindex 5fb58eabdd1..dae00f53654 100644--- a/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.ts@@ -42,7 +42,7 @@ import { SchemaResource } from 'core-app/features/hal/resources/schema-resource'import { Observable } from 'rxjs';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './project-details.component.html',@@ -60,7 +60,7 @@ export class WidgetProjectDetailsComponent extends AbstractWidgetComponent impleconstructor(protected readonly i18n:I18nService,protected readonly injector:Injector,- protected readonly apiV3Service:APIV3Service,+ protected readonly apiV3Service:ApiV3Service,protected readonly currentProject:CurrentProjectService,protected readonly cdRef:ChangeDetectorRef) {super(i18n, injector);diff --git a/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.ts b/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.tsindex b94b9820c23..1ef5151509c 100644--- a/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.ts@@ -43,7 +43,7 @@ import { WorkPackageViewHighlightingService } from 'core-app/features/work-packaimport { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';import { Observable } from 'rxjs';import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({templateUrl: './project-status.component.html',@@ -65,7 +65,7 @@ export class WidgetProjectStatusComponent extends AbstractWidgetComponent implemconstructor(protected readonly i18n:I18nService,protected readonly injector:Injector,- protected readonly apiV3Service:APIV3Service,+ protected readonly apiV3Service:ApiV3Service,protected readonly currentProject:CurrentProjectService,protected readonly cdRef:ChangeDetectorRef) {super(i18n, injector);diff --git a/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.tsindex 561cf9b1ea2..346fa102e6e 100644--- a/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts@@ -7,8 +7,8 @@ import { HalResourceService } from 'core-app/features/hal/services/hal-resource.import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { ProjectResource } from 'core-app/features/hal/resources/project-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';-import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import { TimezoneService } from 'core-app/core/datetime/timezone.service';@Component({@@ -27,7 +27,7 @@ export class WidgetSubprojectsComponent extends AbstractWidgetComponent implemenreadonly i18n:I18nService,protected readonly injector:Injector,readonly timezone:TimezoneService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly currentProject:CurrentProjectService,readonly cdr:ChangeDetectorRef) {super(i18n, injector);@@ -61,7 +61,7 @@ export class WidgetSubprojectsComponent extends AbstractWidgetComponent implemenreturn this.projects && !this.projects.length;}- private get projectListParams():Apiv3ListParameters {+ private get projectListParams():ApiV3ListParameters {return {sortBy: [['name', 'asc']],filters: [['parent_id', '=', [this.currentProject.id!]]],diff --git a/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.tsindex f5c7be0fb1e..a9b5f095405 100644--- a/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.ts@@ -6,7 +6,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { TimeEntryEditService } from 'core-app/shared/components/time_entries/edit/edit.service';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';import { TimezoneService } from 'core-app/core/datetime/timezone.service';import { ConfirmDialogService } from 'core-app/shared/components/modals/confirm-dialog/confirm-dialog.service';@@ -37,7 +37,7 @@ export abstract class WidgetTimeEntriesListComponent extends AbstractWidgetCompo@InjectField() public readonly timeEntryEditService:TimeEntryEditService;- @InjectField() public readonly apiV3Service:APIV3Service;+ @InjectField() public readonly apiV3Service:ApiV3Service;constructor(readonly injector:Injector,readonly timezone:TimezoneService,diff --git a/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.tsindex ac162e97454..ee5069526a9 100644--- a/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.ts+++ b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.ts@@ -9,7 +9,7 @@ import { UrlParamsHelperService } from 'core-app/features/work-packages/componenimport { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';import { StateService } from '@uirouter/core';import { skip } from 'rxjs/operators';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Component({selector: 'widget-wp-table',@@ -38,7 +38,7 @@ export class WidgetWpTableComponent extends AbstractWidgetComponent {protected urlParamsHelper:UrlParamsHelperService,protected readonly state:StateService,protected readonly querySpace:IsolatedQuerySpace,- protected readonly apiV3Service:APIV3Service) {+ protected readonly apiV3Service:ApiV3Service) {super(i18n, injector);}diff --git a/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.tsindex 8ef82257de4..c0707333578 100644--- a/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts+++ b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts@@ -35,7 +35,7 @@ import { OpModalLocalsToken } from 'core-app/shared/components/modal/modal.serviimport { I18nService } from 'core-app/core/i18n/i18n.service';import { TypeResource } from 'core-app/features/hal/resources/type-resource';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { FormResource } from 'core-app/features/hal/resources/form-resource';@Component({@@ -76,7 +76,7 @@ export class WpButtonMacroModalComponent extends OpModalComponent implements Aftconstructor(readonly elementRef:ElementRef,@Inject(OpModalLocalsToken) public locals:OpModalLocalsMap,protected currentProject:CurrentProjectService,- protected apiV3Service:APIV3Service,+ protected apiV3Service:ApiV3Service,readonly cdRef:ChangeDetectorRef,readonly I18n:I18nService) {super(locals, cdRef, elementRef);diff --git a/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.tsindex 0e5cee65e6c..20660cdc193 100644--- a/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts+++ b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts@@ -35,7 +35,7 @@ import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';import { I18nService } from 'core-app/core/i18n/i18n.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import idFromLink from 'core-app/features/hal/helpers/id-from-link';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { StateService } from '@uirouter/core';@Component({@@ -54,7 +54,7 @@ export class WpPreviewModalComponent extends OpModalComponent implements OnInit@Inject(OpModalLocalsToken) readonly locals:OpModalLocalsMap,readonly cdRef:ChangeDetectorRef,readonly i18n:I18nService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly opModalService:OpModalService,readonly $state:StateService) {super(locals, cdRef, elementRef);diff --git a/frontend/src/app/shared/components/op-query-select/op-query-select.component.ts b/frontend/src/app/shared/components/op-query-select/op-query-select.component.tsindex c7f42de0332..81632802edd 100644--- a/frontend/src/app/shared/components/op-query-select/op-query-select.component.ts+++ b/frontend/src/app/shared/components/op-query-select/op-query-select.component.ts@@ -42,7 +42,7 @@ import {} from 'rxjs';import { States } from 'core-app/core/states/states.service';import { I18nService } from 'core-app/core/i18n/i18n.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { DatasetInputs } from 'core-app/shared/components/dataset-inputs.decorator';import { MainMenuNavigationService } from 'core-app/core/main-menu/main-menu-navigation.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';@@ -85,7 +85,7 @@ export class QuerySelectComponent extends UntilDestroyedMixin implements OnInitconstructor(readonly elementRef:ElementRef,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly I18n:I18nService,readonly states:States,readonly opStaticQueries:StaticQueriesService,diff --git a/frontend/src/app/shared/components/principal/principal-renderer.service.ts b/frontend/src/app/shared/components/principal/principal-renderer.service.tsindex 91c8bf96c28..be59e3ab9a0 100644--- a/frontend/src/app/shared/components/principal/principal-renderer.service.ts+++ b/frontend/src/app/shared/components/principal/principal-renderer.service.ts@@ -1,7 +1,7 @@import { Injectable } from '@angular/core';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';import { ColorsService } from 'core-app/shared/components/colors/colors.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { Principal } from 'core-app/core/state/principals/principal.model';import { PrincipalLike } from './principal-types';@@ -23,7 +23,7 @@ export interface NameOptions {@Injectable({ providedIn: 'root' })export class PrincipalRendererService {constructor(private pathHelper:PathHelperService,- private apiV3Service:APIV3Service,+ private apiV3Service:ApiV3Service,private colors:ColorsService) {}diff --git a/frontend/src/app/shared/components/principal/principal.component.ts b/frontend/src/app/shared/components/principal/principal.component.tsindex 483a7620636..4f152c00204 100644--- a/frontend/src/app/shared/components/principal/principal.component.ts+++ b/frontend/src/app/shared/components/principal/principal.component.ts@@ -35,7 +35,7 @@ import {} from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { TimezoneService } from 'core-app/core/datetime/timezone.service';import {@@ -76,7 +76,7 @@ export class OpPrincipalComponent implements OnInit {readonly PathHelper:PathHelperService,readonly principalRenderer:PrincipalRendererService,readonly I18n:I18nService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly timezoneService:TimezoneService) {}diff --git a/frontend/src/app/shared/components/time_entries/create/create.service.ts b/frontend/src/app/shared/components/time_entries/create/create.service.tsindex 2d12d60fcab..e4968d1f956 100644--- a/frontend/src/app/shared/components/time_entries/create/create.service.ts+++ b/frontend/src/app/shared/components/time_entries/create/create.service.ts@@ -9,7 +9,7 @@ import { HalResourceEditingService } from 'core-app/shared/components/fields/ediimport { Moment } from 'moment';import { TimeEntryCreateModalComponent } from 'core-app/shared/components/time_entries/create/create.modal';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';@@ -18,7 +18,7 @@ export class TimeEntryCreateService {constructor(readonly opModalService:OpModalService,readonly injector:Injector,readonly halResource:HalResourceService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly schemaCache:SchemaCacheService,protected halEditing:HalResourceEditingService,readonly i18n:I18nService) {diff --git a/frontend/src/app/shared/components/time_entries/edit/edit.service.ts b/frontend/src/app/shared/components/time_entries/edit/edit.service.tsindex d990b5163d0..50b9b19aa34 100644--- a/frontend/src/app/shared/components/time_entries/edit/edit.service.ts+++ b/frontend/src/app/shared/components/time_entries/edit/edit.service.ts@@ -5,7 +5,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { take } from 'rxjs/operators';import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';import { ResourceChangeset } from 'core-app/shared/components/fields/changeset/resource-changeset';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';import { TimeEntryEditModalComponent } from './edit.modal';@@ -13,7 +13,7 @@ import { TimeEntryEditModalComponent } from './edit.modal';export class TimeEntryEditService {constructor(readonly opModalService:OpModalService,readonly injector:Injector,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly halResource:HalResourceService,protected halEditing:HalResourceEditingService,readonly i18n:I18nService) {diff --git a/frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.ts b/frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.tsindex 000f66166ea..ef20fff1d1d 100644--- a/frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.ts+++ b/frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.ts@@ -6,7 +6,7 @@ import { TimeEntryEditService } from 'core-app/shared/components/time_entries/edimport { I18nService } from 'core-app/core/i18n/i18n.service';import { ToastService } from 'core-app/shared/components/toaster/toast.service';import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { TimeEntryResource } from 'core-app/features/hal/resources/time-entry-resource';export const triggerActionsEntryComponentSelector = 'time-entry--trigger-actions-entry';@@ -34,7 +34,7 @@ export const triggerActionsEntryComponentSelector = 'time-entry--trigger-actionsexport class TriggerActionsEntryComponent {@InjectField() readonly timeEntryEditService:TimeEntryEditService;- @InjectField() readonly apiv3Service:APIV3Service;+ @InjectField() readonly apiv3Service:ApiV3Service;@InjectField() readonly toastService:ToastService;diff --git a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.tsindex d1e546a5571..95b185530db 100644--- a/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts+++ b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts@@ -8,7 +8,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { TimeEntryFormComponent } from 'core-app/shared/components/time_entries/form/form.component';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';@Directive()export abstract class TimeEntryBaseModal extends OpModalComponent {@@ -28,7 +28,7 @@ export abstract class TimeEntryBaseModal extends OpModalComponent {public formInFlight:boolean;- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;constructor(readonly elementRef:ElementRef,@Inject(OpModalLocalsToken) readonly locals:OpModalLocalsMap,diff --git a/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.ts b/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.tsindex e71086ced71..27d6a6f3021 100644--- a/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.ts+++ b/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.ts@@ -12,7 +12,7 @@ import {} from 'core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration';import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { WorkPackageEmbeddedGraphDataset } from 'core-app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component';@Injectable()@@ -25,7 +25,7 @@ export class WpGraphConfigurationService {constructor(readonly I18n:I18nService,- readonly apiv3Service:APIV3Service,+ readonly apiv3Service:ApiV3Service,readonly notificationService:WorkPackageNotificationService,readonly currentProject:CurrentProjectService,) { }diff --git a/frontend/src/app/shared/helpers/api-v3/api-v3-filter-builder.ts b/frontend/src/app/shared/helpers/api-v3/api-v3-filter-builder.tsindex 9653c33e4ca..cbe152e842b 100644--- a/frontend/src/app/shared/helpers/api-v3/api-v3-filter-builder.ts+++ b/frontend/src/app/shared/helpers/api-v3/api-v3-filter-builder.ts@@ -143,6 +143,6 @@ export class ApiV3FilterBuilder {}}-export function buildApiV3Filter(name:string, operator:FilterOperator, values:ApiV3FilterValueType[]):ApiV3FilterBuilder {+export function ApiV3Filter(name:string, operator:FilterOperator, values:ApiV3FilterValueType[]):ApiV3FilterBuilder {return new ApiV3FilterBuilder().add(name, operator, values);}diff --git a/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts b/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.tsindex 72f0fc6896c..2b03e9d2835 100644--- a/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts+++ b/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts@@ -30,7 +30,7 @@import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";import { IFieldSchema } from "core-app/shared/components/fields/field.base";import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";-import { APIV3Service } from "core-app/core/apiv3/api-v3.service";+import { ApiV3Service } from "core-app/core/apiv3/api-v3.service";interface ICostsByType {costObjectId:string;@@ -46,7 +46,7 @@ interface ICostsByType {export class CostsByTypeDisplayField extends DisplayField {- @InjectField() apiV3Service:APIV3Service;+ @InjectField() apiV3Service:ApiV3Service;public apply(resource:any, schema:IFieldSchema) {super.apply(resource, schema);diff --git a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.tsindex 9696fe7a14f..85660eada82 100644--- a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts+++ b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts@@ -4,7 +4,7 @@ import { OpIconComponent } from "core-app/shared/components/icon/icon.component"import { GitActionsMenuDirective } from "core-app/features/plugins/linked/openproject-github_integration/git-actions-menu/git-actions-menu.directive";import { TabPrsComponent } from "core-app/features/plugins/linked/openproject-github_integration/tab-prs/tab-prs.component";import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";-import { APIV3Service } from "core-app/core/apiv3/api-v3.service";+import { ApiV3Service } from "core-app/core/apiv3/api-v3.service";import { of } from "rxjs";import { PullRequestComponent } from "core-app/features/plugins/linked/openproject-github_integration/pull-request/pull-request.component";import { By } from "@angular/platform-browser";@@ -30,7 +30,7 @@ describe('TabPrsComponent', () => {return 'test translation';}}- const APIV3Stub = {+ const ApiV3Stub = {work_packages: {id: () => ({github_pull_requests: 'prpath'})}@@ -98,7 +98,7 @@ describe('TabPrsComponent', () => {providers: [{ provide: I18nService, useValue: I18nServiceStub },{ provide: HalResourceService, useValue: halResourceServiceSpy },- { provide: APIV3Service, useValue: APIV3Stub },+ { provide: ApiV3Service, useValue: ApiV3Stub },{ provide: ChangeDetectorRef, useValue: changeDetectorSpy },],})diff --git a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.tsindex ece939150ac..205c590c887 100644--- a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts+++ b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts@@ -28,7 +28,7 @@import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";-import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';+import { ApiV3Service } from 'core-app/core/apiv3/api-v3.service';import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";import { CollectionResource } from "core-app/features/hal/resources/collection-resource";import { IGithubPullRequestResource } from "../../../../../../../../modules/github_integration/frontend/module/typings";@@ -46,7 +46,7 @@ export class TabPrsComponent implements OnInit {constructor(readonly I18n:I18nService,- readonly apiV3Service:APIV3Service,+ readonly apiV3Service:ApiV3Service,readonly halResourceService:HalResourceService,readonly changeDetector:ChangeDetectorRef,) {}