Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event annotations] add more API integration tests #166463

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const getResultSchema = schema.object(
);

const createOptionsSchema = schema.object({
overwrite: schema.maybe(schema.boolean()),
references: schema.maybe(referencesSchema),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ export type EventAnnotationGroupGetOut = GetResult<
// ----------- CREATE --------------

export interface CreateOptions {
/** If a document with the given `id` already exists, overwrite it's contents (default=false). */
overwrite?: boolean;
/** Array of referenced saved objects. */
references?: Reference[];
}
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/event_annotation/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ export type { FetchEventAnnotationsArgs } from './fetch_event_annotations/types'
export type { EventAnnotationArgs, EventAnnotationOutput } from './types';

export type {
EventAnnotationGroupGetIn,
EventAnnotationGroupGetOut,
EventAnnotationGroupSavedObjectAttributes,
EventAnnotationGroupCreateIn,
EventAnnotationGroupCreateOut,
EventAnnotationGroupUpdateIn,
EventAnnotationGroupSearchIn,
EventAnnotationGroupSearchOut,
EventAnnotationGroupDeleteIn,
EventAnnotationGroupDeleteOut,
} from './content_management';
export { CONTENT_ID } from './content_management';
export { ANNOTATIONS_LISTING_VIEW_ID } from './constants';
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export class EventAnnotationGroupStorage
const transforms = getTransforms(cmServicesDefinition, requestVersion);
const soClient = await savedObjectClientFromRequest(ctx);

// Save data in DB
const {
saved_object: savedObject,
alias_purpose: aliasPurpose,
Expand Down
Loading