[@portaljs/ckan][sm] - fix types
This commit is contained in:
parent
84cc6cf82b
commit
88ccee6f0a
5
.changeset/rare-pianos-repair.md
Normal file
5
.changeset/rare-pianos-repair.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@portaljs/ckan': patch
|
||||
---
|
||||
|
||||
added package_count to organization type
|
||||
@ -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;
|
||||
|
||||
@ -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<Dataset>;
|
||||
activity_stream?: Array<Activity>;
|
||||
users?: Array<User>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user