Skip to content

Commit

Permalink
fix(api-client): Typo in attachment property name and type
Browse files Browse the repository at this point in the history
  • Loading branch information
richterb authored Feb 10, 2025
1 parent 3105532 commit 062ea49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api-client/src/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export type DatasetFieldType = ValueOf<typeof ODS_DATASET_FIELD_TYPE>;

export type DatasetFieldSemanticType = ValueOf<typeof ODS_DATASET_FIELD_SEMANTIC_TYPE>;

export interface DatasetAttachement {
export interface DatasetAttachment {
id: string;
mimetype: string;
title: string;
url: string;
}

export interface DatasetAlternativeExport extends DatasetAttachement {
export interface DatasetAlternativeExport extends DatasetAttachment {
description: string;
}

Expand All @@ -63,7 +63,7 @@ export type Dataset = DataWithLinks & {
metas: object;
fields: DatasetField[];
visibility: 'restricted' | 'domain';
attachements: DatasetAttachement[];
attachments: DatasetAttachment[];
alternative_exports: DatasetAlternativeExport[];
};

Expand Down

1 comment on commit 062ea49

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

94.71%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   index.ts100%100%100%100%
src/client
   constants.ts100%100%100%100%
   error.ts100%100%100%100%
   index.ts84.14%74.03%100%95.31%102–103, 124, 13, 146, 148, 148–149, 15, 15, 151, 162, 169, 169, 17, 17, 171, 176, 179, 182, 184, 52, 82
   types.ts100%100%100%100%
src/odsql
   clauses.ts82.61%71.43%80%90.91%14, 32, 42
   index.ts92.05%83.72%95.74%94.19%111, 146, 25, 28, 56–57, 57, 57–58, 68, 78–79

Please sign in to comment.