Skip to content

feat: v2 api hidden event types #22377

@linear

Description

@linear

Problem

Right now it is not possible to create hidden event types via api v2.

Solution

Allow passing an optional property hidden to

  1. packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts class class BaseCreateEventTypeInput
  2. packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.ts class class 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

No one assigned

    Labels

    High priorityCreated by Linear-GitHub SyncPrivateCreated by Linear-GitHub Syncapiarea: API, enterprise API, access token, OAuthevent-typesarea: event types, event-typesplatformAnything related to our platform plan✨ featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions