{"version":3,"sources":["../../../packages/core/data/extension-broker/model/extension-broker-request-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,oBAAY,6BAA6B,GACrC,mCAAmC,GACjC,iCAAiC,GACjC,gCAAgC,GAChC,oCAAoC,GACpC,iCAAiC,GACjC,0CAA0C,GAC1C,iCAAiC,GACjC,iCAAiC,GACjC,mCAAmC,CAAC;AAE1C,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAChD;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,sBAAsB;IAC7E;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB;IAC5E;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACjD;;OAEG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;CACb;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAChD;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;SAEK;IACL,SAAS,EAAE,MAAM,CAAC;CACrB;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACvD;;OAEG;IACH,WAAW,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,sBAAsB,CAAC;CACzC","file":"extension-broker-request-payload.d.ts","sourcesContent":["import { ExtensionRect } from './extension-rect';\r\nimport { ExtensionSearchOptions } from './extension-search-options';\r\n\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport type ExtensionBrokerRequestPayload =\r\n    ExtensionBrokerCreateRequestPayload\r\n    | ExtensionBrokerCallRequestPayload\r\n    | ExtensionBrokerRunRequestPayload\r\n    | ExtensionBrokerDestroyRequestPayload\r\n    | ExtensionBrokerMoveRequestPayload\r\n    | ExtensionBrokerFulfillTargetRequestPayload\r\n    | ExtensionBrokerFindRequestPayload\r\n    | ExtensionBrokerEmitRequestPayload\r\n    | ExtensionBrokerListenRequestPayload;\r\n\r\nexport interface ExtensionMethodPayload {\r\n    /**\r\n     * The version of the method to call on the extension instance\r\n     */\r\n    version: number;\r\n    /**\r\n     * The method to call on the extension instance\r\n     */\r\n    method: string;\r\n    /**\r\n     * The arguments of used in 'call' to pass to the extension instance method.\r\n     */\r\n    arguments?: any[];\r\n}\r\n\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerCreateRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'create';\r\n\r\n    /**\r\n     * The id of the extension entry point to create.\r\n     */\r\n    entryPointId: string;\r\n\r\n    /**\r\n     * The extension target we are creating this worker for\r\n     */\r\n    extensionTarget?: string;\r\n}\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerCallRequestPayload extends ExtensionMethodPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'call';\r\n    /**\r\n     * The id of the instance of an extension to call.\r\n     */\r\n    instanceId: string;\r\n    /**\r\n     * Indicates the type of call we are trying to make ('worker\" is assumed if not provided)\r\n     */\r\n    callType?: 'worker' | 'service' | 'component';\r\n}\r\n\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerRunRequestPayload extends ExtensionMethodPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'run';\r\n    /**\r\n     * Indicates if a return is expected from the run operation.\r\n     * For dialogs and short lived workers this will be true. For long running workers, it will be false.\r\n     */\r\n    expectReturn?: boolean;\r\n    /**\r\n     * The id of the extension entry point to run.\r\n     */\r\n    entryPointId: string;\r\n}\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerDestroyRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'destroy';\r\n    /**\r\n     * The id of the instance of an extension to destroy\r\n     */\r\n    instanceId: string;\r\n}\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerEmitRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'emit';\r\n    /**\r\n     * The id of the instance of an extension that emitted the event\r\n     */\r\n    instanceId: string;\r\n    /**\r\n     * String describing the type of event emitted that listeners have subscribed to\r\n     */\r\n    eventType: string;\r\n    /**\r\n     * The data to emit\r\n     */\r\n    data: any;\r\n}\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerListenRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'listen';\r\n    /**\r\n     * The id of the instance of an extension to to listen to\r\n     */\r\n    instanceId: string;\r\n    /**\r\n     * The type of even to listen to\r\n     * */\r\n    eventType: string;\r\n}\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerMoveRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'move';\r\n    /**\r\n     * The id of the instance of an extension to destroy\r\n     */\r\n    instanceId: string;\r\n    /**\r\n     * The rectangular position to move the extension to (relative to the iframe)\r\n     */\r\n    rect: ExtensionRect;\r\n    /**\r\n     * The z-index to move to\r\n     */\r\n    zIndex: number;\r\n}\r\n\r\n/**\r\n * Defines the payload for extension broker requests\r\n */\r\nexport interface ExtensionBrokerFulfillTargetRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'fulfill';\r\n    /**\r\n     * The id of the extension target to fulfill\r\n     */\r\n    extensionTargetId: string;\r\n}\r\n\r\n/**\r\n * Defines the payload for extension broker find requests\r\n */\r\nexport interface ExtensionBrokerFindRequestPayload {\r\n    /**\r\n     * The type of extension broker request\r\n     */\r\n    requestType: 'find';\r\n\r\n    /**\r\n     * The search options to find by.\r\n     */\r\n    searchOptions: ExtensionSearchOptions;\r\n}\r\n"]}