@@ -283,16 +283,12 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
283283 resume: (input : {
284284 continueToken: string ;
285285 }) => Promise <InternalErrorResponse | NodeStates >;
286- start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams >(options ? : StartOptions <QueryParams > | undefined ) => Promise <ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode >;
286+ start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams >(options ? : StartOptions <QueryParams > | undefined ) => Promise <StartNode | ErrorNode | FailureNode | ContinueNode | SuccessNode >;
287287 update: <T extends SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors | AutoCollectors >(collector : T ) => Updater <T >;
288288 validate: (collector : SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors ) => Validator ;
289289 pollStatus: (collector : PollingCollector ) => Poller ;
290290 getClient: () => {
291- action: string ;
292- collectors: Collectors [];
293- description? : string ;
294- name? : string ;
295- status: " continue" ;
291+ status: " start" ;
296292 } | {
297293 action: string ;
298294 collectors: Collectors [];
@@ -302,7 +298,11 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
302298 } | {
303299 status: " failure" ;
304300 } | {
305- status: " start" ;
301+ action: string ;
302+ collectors: Collectors [];
303+ description? : string ;
304+ name? : string ;
305+ status: " continue" ;
306306 } | {
307307 authorization? : {
308308 code? : string ;
@@ -313,15 +313,9 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
313313 getCollectors: () => Collectors [];
314314 getError: () => DaVinciError | null ;
315315 getErrorCollectors: () => CollectorErrors [];
316- getNode: () => ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode ;
316+ getNode: () => StartNode | ErrorNode | FailureNode | ContinueNode | SuccessNode ;
317317 getServer: () => {
318- _links? : Links ;
319- id? : string ;
320- interactionId? : string ;
321- interactionToken? : string ;
322- href? : string ;
323- eventName? : string ;
324- status: " continue" ;
318+ status: " start" ;
325319 } | {
326320 _links? : Links ;
327321 eventName? : string ;
@@ -338,7 +332,13 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
338332 interactionToken? : string ;
339333 status: " failure" ;
340334 } | {
341- status: " start" ;
335+ _links? : Links ;
336+ id? : string ;
337+ interactionId? : string ;
338+ interactionToken? : string ;
339+ href? : string ;
340+ eventName? : string ;
341+ status: " continue" ;
342342 } | {
343343 _links? : Links ;
344344 eventName? : string ;
@@ -355,14 +355,14 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
355355 } & Omit <{
356356 requestId: string ;
357357 data? : unknown ;
358- error? : FetchBaseQueryError | SerializedError | undefined ;
358+ error? : SerializedError | FetchBaseQueryError | undefined ;
359359 endpointName: string ;
360360 startedTimeStamp: number ;
361361 fulfilledTimeStamp? : number ;
362362 }, " data" | " fulfilledTimeStamp" > & Required <Pick <{
363363 requestId: string ;
364364 data? : unknown ;
365- error? : FetchBaseQueryError | SerializedError | undefined ;
365+ error? : SerializedError | FetchBaseQueryError | undefined ;
366366 endpointName: string ;
367367 startedTimeStamp: number ;
368368 fulfilledTimeStamp? : number ;
@@ -379,14 +379,14 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
379379 } & Omit <{
380380 requestId: string ;
381381 data? : unknown ;
382- error? : FetchBaseQueryError | SerializedError | undefined ;
382+ error? : SerializedError | FetchBaseQueryError | undefined ;
383383 endpointName: string ;
384384 startedTimeStamp: number ;
385385 fulfilledTimeStamp? : number ;
386386 }, " error" > & Required <Pick <{
387387 requestId: string ;
388388 data? : unknown ;
389- error? : FetchBaseQueryError | SerializedError | undefined ;
389+ error? : SerializedError | FetchBaseQueryError | undefined ;
390390 endpointName: string ;
391391 startedTimeStamp: number ;
392392 fulfilledTimeStamp? : number ;
@@ -407,14 +407,14 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
407407 } & Omit <{
408408 requestId: string ;
409409 data? : unknown ;
410- error? : FetchBaseQueryError | SerializedError | undefined ;
410+ error? : SerializedError | FetchBaseQueryError | undefined ;
411411 endpointName: string ;
412412 startedTimeStamp: number ;
413413 fulfilledTimeStamp? : number ;
414414 }, " data" | " fulfilledTimeStamp" > & Required <Pick <{
415415 requestId: string ;
416416 data? : unknown ;
417- error? : FetchBaseQueryError | SerializedError | undefined ;
417+ error? : SerializedError | FetchBaseQueryError | undefined ;
418418 endpointName: string ;
419419 startedTimeStamp: number ;
420420 fulfilledTimeStamp? : number ;
@@ -431,14 +431,14 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
431431 } & Omit <{
432432 requestId: string ;
433433 data? : unknown ;
434- error? : FetchBaseQueryError | SerializedError | undefined ;
434+ error? : SerializedError | FetchBaseQueryError | undefined ;
435435 endpointName: string ;
436436 startedTimeStamp: number ;
437437 fulfilledTimeStamp? : number ;
438438 }, " error" > & Required <Pick <{
439439 requestId: string ;
440440 data? : unknown ;
441- error? : FetchBaseQueryError | SerializedError | undefined ;
441+ error? : SerializedError | FetchBaseQueryError | undefined ;
442442 endpointName: string ;
443443 startedTimeStamp: number ;
444444 fulfilledTimeStamp? : number ;
0 commit comments