@@ -10,7 +10,7 @@ import { NumberFromString } from '../saved_object';
1010import { UserRT } from '../user' ;
1111import { CommentResponseRt } from './comment' ;
1212import { CasesStatusResponseRt } from './status' ;
13- import { CaseConnectorRt , ESCaseConnector } from '../connectors' ;
13+ import { CaseConnectorRt , ESCaseConnector , ConnectorPartialFieldsRt } from '../connectors' ;
1414
1515// eslint-disable-next-line @kbn/eslint/no-restricted-paths
1616export { ActionTypeExecutorResult } from '../../../../actions/server/types' ;
@@ -133,7 +133,7 @@ export const ServiceConnectorCommentParamsRt = rt.type({
133133 updatedBy : rt . union ( [ ServiceConnectorUserParams , rt . null ] ) ,
134134} ) ;
135135
136- export const ServiceConnectorCaseParamsRt = rt . type ( {
136+ export const ServiceConnectorBasicCaseParamsRt = rt . type ( {
137137 comments : rt . union ( [ rt . array ( ServiceConnectorCommentParamsRt ) , rt . null ] ) ,
138138 createdAt : rt . string ,
139139 createdBy : ServiceConnectorUserParams ,
@@ -145,6 +145,11 @@ export const ServiceConnectorCaseParamsRt = rt.type({
145145 updatedBy : rt . union ( [ ServiceConnectorUserParams , rt . null ] ) ,
146146} ) ;
147147
148+ export const ServiceConnectorCaseParamsRt = rt . intersection ( [
149+ ServiceConnectorBasicCaseParamsRt ,
150+ ConnectorPartialFieldsRt ,
151+ ] ) ;
152+
148153export const ServiceConnectorCaseResponseRt = rt . intersection ( [
149154 rt . type ( {
150155 title : rt . string ,
0 commit comments