fe77ede49e
* introduce CI checks * fixx * add caching * fixes * wip * server bridge linting * No lint errors * fix paths on lint:prettier * make files pretty again * fix stylelint * fix lock --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
27 lines
886 B
TypeScript
27 lines
886 B
TypeScript
import type { ConversionResult } from '~/lib/conversions/conversionResult'
|
|
import type { IModelCardSharedEvents } from '~/lib/models/card'
|
|
import type { CardSetting } from '~/lib/models/card/setting'
|
|
import type {
|
|
IBinding,
|
|
IBindingSharedEvents
|
|
} from '~~/lib/bindings/definitions/IBinding'
|
|
|
|
export const IReceiveBindingKey = 'receiveBinding'
|
|
|
|
export interface IReceiveBinding extends IBinding<IReceiveBindingEvents> {
|
|
receive: (modelCardId: string) => Promise<void>
|
|
getReceiveSettings: () => Promise<CardSetting[]>
|
|
cancelReceive: (modelId: string) => Promise<void>
|
|
}
|
|
|
|
export interface IReceiveBindingEvents
|
|
extends IBindingSharedEvents,
|
|
IModelCardSharedEvents {
|
|
// See note oon timeout in bridge v2; we might not need this
|
|
setModelReceiveResult: (args: {
|
|
modelCardId: string
|
|
bakedObjectIds: string[]
|
|
conversionResults: ConversionResult[]
|
|
}) => void
|
|
}
|