From 207029f5a13134c8b99289b898b9de4c7ac6c67c Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Thu, 20 Nov 2025 14:17:33 +0100 Subject: [PATCH] remove paginated response fro model and make it as a global type --- src/templates/angular/model.ts.tpl | 11 ----------- src/templates/angular/service.ts.tpl | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/templates/angular/model.ts.tpl b/src/templates/angular/model.ts.tpl index fefabcb..b8f5f1f 100644 --- a/src/templates/angular/model.ts.tpl +++ b/src/templates/angular/model.ts.tpl @@ -4,14 +4,3 @@ export interface {{pascal}} { {{modelProperties}} } - -export interface PaginatedResponse { - data: T[]; - meta: { - totalItems: number; - itemCount: number; - itemsPerPage: number; - totalPages: number; - currentPage: number; - }; -} \ No newline at end of file diff --git a/src/templates/angular/service.ts.tpl b/src/templates/angular/service.ts.tpl index e201c36..ac1f43a 100644 --- a/src/templates/angular/service.ts.tpl +++ b/src/templates/angular/service.ts.tpl @@ -6,6 +6,8 @@ import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { {{pascal}}, PaginatedResponse } from '../models/{{singular}}.model'; import { ConfigurationService } from '../../../services/configuration.service'; +import { PaginatedResponse } from '../../../../types'; + export interface SearchResponse { data: T[];