Skip to content

Commit

Permalink
Add type definitions, prepare for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejchak committed Oct 31, 2024
1 parent 5db9d27 commit c5836b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/integrationCategories/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// Fields externalId, iconUrl, createdAt, updatedAt will be deprecated.
// Use unique_id, icon_url, created_at, updated_at instead.
export type IntegrationCategory = {
id: number;
title: string;
externalId: string;
unique_id: string;
iconUrl?: string;
createdAt: string;
updatedAt: string;
icon_url?: string;
createdAt?: string;
created_at?: string;
updatedAt?: string;
updated_at?: string;
};
13 changes: 11 additions & 2 deletions src/integrations/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
// Fields shortDescription, websiteUrl, navigationUrl, imageUrl, accessCredentialsId, createdAt, updatedAt will be deprecated.
// Use short_description, website_url, navigation_url, image_url, access_credentials_id, created_at, updated_at instead.
export type Integration = {
id: number;
title: string;
shortDescription?: string;
short_description?: string;
websiteUrl?: string;
website_url?: string;
navigationUrl?: string;
navigation_url?: string;
imageUrl?: string;
image_url?: string;
featured?: boolean;
provider?: string;
application?: string;
accessCredentialsId?: number | null;
createdAt: string;
updatedAt: string;
access_credentials_id?: number | null;
createdAt?: string;
created_at?: string;
updatedAt?: string;
updated_at?: string;
};

0 comments on commit c5836b2

Please sign in to comment.