Skip to content

Commit

Permalink
Refactored in own types
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanPaulus committed Dec 11, 2024
1 parent 66f8b82 commit 63489fe
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions src/server/services/parkeren/parkeren.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,28 +123,32 @@ type BaseSourceResponse<T> = {
};

type ActivePermitSourceResponse = BaseSourceResponse<
Array<{
link: string;
id: number;
client_id: number;
status: string;
permit_name: string;
permit_zone: string;
}>
ActivePermitRequestProps[]
>;

type ActivePermitRequestProps = {
link: string;
id: number;
client_id: number;
status: string;
permit_name: string;
permit_zone: string;
};

type ClientProductDetailsSourceResponse = BaseSourceResponse<
Array<{
client_product_id: number;
object: string;
client_id: number;
status: string;
started_at: string;
ended_at: string;
zone: string;
link: string;
vrns: string;
}>
ClientProductDetailsProps[]
>;

type ClientProductDetailsProps = {
client_product_id: number;
object: string;
client_id: number;
status: string;
started_at: string;
ended_at: string;
zone: string;
link: string;
vrns: string;
};

export const forTesting = { hasPermitsOrPermitRequests };

0 comments on commit 63489fe

Please sign in to comment.