-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
High priorityCreated by Linear-GitHub SyncCreated by Linear-GitHub SyncPrivateCreated by Linear-GitHub SyncCreated by Linear-GitHub Syncapiarea: API, enterprise API, access token, OAutharea: API, enterprise API, access token, OAuthevent-typesarea: event types, event-typesarea: event types, event-typesplatformAnything related to our platform planAnything related to our platform plan✨ featureNew feature or requestNew feature or request
Description
Problem
Right now it is not possible to create hidden event types via api v2.
Solution
Allow passing an optional property hidden
to
packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts
classclass BaseCreateEventTypeInput
packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.ts
classclass BaseUpdateEventTypeInput
Return hidden
property in getResponseEventType
apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/output-event-types.service.ts
and add it to the output type class BaseEventTypeOutput_2024_06_14 {
inpackages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.ts
.
Create a new describe set of tests in apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts
that has one "it" test to create a hidden event type and another one to update the hidden property.
Metadata
Metadata
Assignees
Labels
High priorityCreated by Linear-GitHub SyncCreated by Linear-GitHub SyncPrivateCreated by Linear-GitHub SyncCreated by Linear-GitHub Syncapiarea: API, enterprise API, access token, OAutharea: API, enterprise API, access token, OAuthevent-typesarea: event types, event-typesarea: event types, event-typesplatformAnything related to our platform planAnything related to our platform plan✨ featureNew feature or requestNew feature or request