Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions lib/common-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import type {
} from './entities/app-action-call'
import type { AppBundleProps, CreateAppBundleProps } from './entities/app-bundle'
import type { ApiKeyProps, CreateApiKeyProps } from './entities/api-key'
import type { AppDefinitionProps, CreateAppDefinitionProps } from './entities/app-definition'
import type {
AppDefinitionProps,
AppInstallationsForOrganizationProps,
CreateAppDefinitionProps,
} from './entities/app-definition'
import type { AppInstallationProps, CreateAppInstallationProps } from './entities/app-installation'
import type {
AssetFileProp,
Expand Down Expand Up @@ -40,7 +44,6 @@ import type {
EnvironmentAliasProps,
} from './entities/environment-alias'
import type { CreateLocaleProps, LocaleProps } from './entities/locale'
import type { AppInstallationsForOrganizationProps } from './entities/app-definition'
import type { OrganizationProp } from './entities/organization'
import type {
CreateOrganizationInvitationProps,
Expand Down Expand Up @@ -2040,9 +2043,23 @@ export type GetOrganizationMembershipParams = GetOrganizationParams & {
export type GetConceptParams = GetOrganizationParams & { conceptId: string }
export type UpdateConceptParams = GetOrganizationParams & { conceptId: string; version: number }
export type DeleteConceptParams = GetOrganizationParams & { conceptId: string; version: number }

export type GetConceptDescendantsParams = GetOrganizationParams & { conceptId: string } & {
query?: { depth?: number; pageUrl?: string }
query?:
| { pageUrl?: string }
| {
depth?: number
order?:
| 'sys.createdAt'
| 'sys.updatedAt'
| 'prefLabel'
| '-sys.createdAt'
| '-sys.updatedAt'
| '-prefLabel'
query?: string
}
}

export type GetManyConceptParams = GetOrganizationParams & {
query?:
| { pageUrl?: string }
Expand Down