Skip to content

Commit 37cca6d

Browse files
committed
fix(taxonomy): order related concept collection params [NONE]
1 parent ca42f34 commit 37cca6d

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

lib/common-types.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ import type {
99
} from './entities/app-action-call'
1010
import type { AppBundleProps, CreateAppBundleProps } from './entities/app-bundle'
1111
import type { ApiKeyProps, CreateApiKeyProps } from './entities/api-key'
12-
import type { AppDefinitionProps, CreateAppDefinitionProps } from './entities/app-definition'
12+
import type {
13+
AppDefinitionProps,
14+
AppInstallationsForOrganizationProps,
15+
CreateAppDefinitionProps,
16+
} from './entities/app-definition'
1317
import type { AppInstallationProps, CreateAppInstallationProps } from './entities/app-installation'
1418
import type {
1519
AssetFileProp,
@@ -40,7 +44,6 @@ import type {
4044
EnvironmentAliasProps,
4145
} from './entities/environment-alias'
4246
import type { CreateLocaleProps, LocaleProps } from './entities/locale'
43-
import type { AppInstallationsForOrganizationProps } from './entities/app-definition'
4447
import type { OrganizationProp } from './entities/organization'
4548
import type {
4649
CreateOrganizationInvitationProps,
@@ -2040,9 +2043,23 @@ export type GetOrganizationMembershipParams = GetOrganizationParams & {
20402043
export type GetConceptParams = GetOrganizationParams & { conceptId: string }
20412044
export type UpdateConceptParams = GetOrganizationParams & { conceptId: string; version: number }
20422045
export type DeleteConceptParams = GetOrganizationParams & { conceptId: string; version: number }
2046+
20432047
export type GetConceptDescendantsParams = GetOrganizationParams & { conceptId: string } & {
2044-
query?: { depth?: number; pageUrl?: string }
2048+
query?:
2049+
| { pageUrl?: string }
2050+
| {
2051+
depth?: number
2052+
order?:
2053+
| 'sys.createdAt'
2054+
| 'sys.updatedAt'
2055+
| 'prefLabel'
2056+
| '-sys.createdAt'
2057+
| '-sys.updatedAt'
2058+
| '-prefLabel'
2059+
query?: string
2060+
}
20452061
}
2062+
20462063
export type GetManyConceptParams = GetOrganizationParams & {
20472064
query?:
20482065
| { pageUrl?: string }

0 commit comments

Comments
 (0)