Skip to content

Commit

Permalink
more strict 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Aug 13, 2020
1 parent 1c76cbd commit e9a809e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const scheduleTaskFnFactory: ScheduleTaskFnFactory<CreateJobFn<
);

return {
...jobParams,
headers: serializedEncryptedHeaders,
indexPatternSavedObject,
...jobParams,
};
};
};
6 changes: 2 additions & 4 deletions x-pack/plugins/reporting/server/export_types/csv/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { ScheduledTaskParams } from '../../types';
import { CreateJobBaseParams, ScheduledTaskParams } from '../../types';

export type RawValue = string | object | null | undefined;

Expand All @@ -28,10 +28,8 @@ export interface IndexPatternSavedObject {
};
}

export interface JobParamsDiscoverCsv {
browserTimezone: string;
export interface JobParamsDiscoverCsv extends CreateJobBaseParams {
indexPatternId: string;
objectType: string;
title: string;
searchRequest: SearchRequest;
fields: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import { CreateJobBaseParams, ScheduledTaskParams } from '../../../server/types'
import { LayoutInstance, LayoutParams } from '../../lib/layouts';

// Job params: structure of incoming user request data, after being parsed from RISON
export interface JobParamsPDF {
objectType: string; // visualization, dashboard, etc. Used for job info & telemetry
export interface JobParamsPDF extends CreateJobBaseParams {
title: string;
relativeUrls: string[];
browserTimezone: string;
layout: LayoutInstance;
}

Expand Down

0 comments on commit e9a809e

Please sign in to comment.