diff --git a/.changeset/rare-pianos-repair.md b/.changeset/rare-pianos-repair.md new file mode 100644 index 000000000..de9f69c10 --- /dev/null +++ b/.changeset/rare-pianos-repair.md @@ -0,0 +1,5 @@ +--- +'@portaljs/ckan': patch +--- + +added package_count to organization type diff --git a/packages/ckan/src/interfaces/group.interface.ts b/packages/ckan/src/interfaces/group.interface.ts index 95f1519a7..5bb9b59fd 100644 --- a/packages/ckan/src/interfaces/group.interface.ts +++ b/packages/ckan/src/interfaces/group.interface.ts @@ -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; @@ -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; diff --git a/packages/ckan/src/interfaces/organization.interface.ts b/packages/ckan/src/interfaces/organization.interface.ts index 7535e5d92..d9f8ece41 100644 --- a/packages/ckan/src/interfaces/organization.interface.ts +++ b/packages/ckan/src/interfaces/organization.interface.ts @@ -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; @@ -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; activity_stream?: Array; users?: Array;