Skip to content

Commit

Permalink
[@portaljs/ckan][sm] - fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
luccasmmg committed Aug 14, 2023
1 parent 84cc6cf commit 88ccee6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-pianos-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@portaljs/ckan': patch
---

added package_count to organization type
10 changes: 5 additions & 5 deletions packages/ckan/src/interfaces/group.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Activity } from "./activity.interface";
import { Dataset, Tag } from "./dataset.interface";
import { User } from "./user.interface";
import { Activity } from './activity.interface';
import { Dataset, Tag } from './dataset.interface';
import { User } from './user.interface';

export interface Group {
display_name: string;
Expand All @@ -10,9 +10,9 @@ export interface Group {
created: string;
name: string;
is_organization: false;
state: "active" | "deleted" | "inactive";
state: 'active' | 'deleted' | 'inactive';
image_url: string;
type: "group";
type: 'group';
title: string;
revision_id: string;
num_followers: number;
Expand Down
11 changes: 6 additions & 5 deletions packages/ckan/src/interfaces/organization.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Activity } from "./activity.interface";
import { Dataset, Tag } from "./dataset.interface";
import { User } from "./user.interface";
import { Activity } from './activity.interface';
import { Dataset, Tag } from './dataset.interface';
import { User } from './user.interface';

export interface Organization {
id: string;
Expand All @@ -13,8 +13,9 @@ export interface Organization {
image_display_url?: string;
created?: string;
is_organization: boolean;
approval_status?: "approved";
state: "active";
package_count: number;
approval_status?: 'approved';
state: 'active';
packages?: Array<Dataset>;
activity_stream?: Array<Activity>;
users?: Array<User>;
Expand Down

0 comments on commit 88ccee6

Please sign in to comment.