@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
1 lines • 6.44 kB
Source Map (JSON)
{"version":3,"sources":["../../../packages/core/data/extension-broker/model/extension-broker-response-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,0BAAkB,gCAAgC;IAC9C,OAAO,IAAI;IACX,uBAAuB,IAAI;IAC3B,cAAc,IAAI;IAClB,kBAAkB,IAAI;IACtB,gBAAgB,IAAI;IACpB,oBAAoB,IAAI;IACxB,eAAe,IAAI;CACtB;AAED;;GAEG;AACH,oBAAY,4BAA4B,GACpC,2BAA2B,GACzB,2CAA2C,GAC3C,2CAA2C,GAC3C,6CAA6C,GAC7C,sCAAsC,GACtC,oCAAoC,GACpC,wCAAwC,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,gCAAgC;IACjF;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,OAAO,CAAC;IAEpD;;OAEG;IACH,KAAK,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,2CAA4C,SAAQ,gCAAgC;IACjG;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,uBAAuB,CAAC;IAEpE;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,2CAA4C,SAAQ,gCAAgC;IACjG;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,cAAc,CAAC;IAE3D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,6CAA8C,SAAQ,gCAAgC;IACnG;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,eAAe,CAAC;IAE5D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,sCAAuC,SAAQ,gCAAgC;IAC5F;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,kBAAkB,CAAC;IAC/D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oCAAqC,SAAQ,gCAAgC;IAC1F;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,gBAAgB,CAAC;IAC7D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,wCAAyC,SAAQ,gCAAgC;IAC9F;;OAEG;IACH,SAAS,EAAE,gCAAgC,CAAC,oBAAoB,CAAC;IACjE;;OAEG;IACH,aAAa,EAAE,sBAAsB,CAAC;CACzC","file":"extension-broker-response-error.d.ts","sourcesContent":["import { ExtensionSearchOptions } from './extension-search-options';\r\n\r\n/**\r\n * Defines the contract object for extension errors\r\n */\r\nexport const enum ExtensionBrokerResponseErrorType {\r\n Unknown = 0,\r\n ExtensionTargetNotFound = 1,\r\n MethodNotFound = 2,\r\n EntryPointNotFound = 3,\r\n InstanceNotFound = 4,\r\n InvalidSearchOptions = 5,\r\n InvalidArgument = 6,\r\n}\r\n\r\n/**\r\n * Defines the contract object for extension errors\r\n */\r\nexport type ExtensionBrokerResponseError =\r\n ExtensionBrokerUnknownError\r\n | ExtensionBrokerExtensionTargetNotFoundError\r\n | ExtensionBrokerExtensionMethodNotFoundError\r\n | ExtensionBrokerExtensionMethodInvalidArgument\r\n | ExtensionBrokerEntryPointNotFoundError\r\n | ExtensionBrokerInstanceNotFoundError\r\n | ExtensionBrokerInvalidSearchOptionsError;\r\n\r\n/**\r\n * Defines An error object for more manageable extension broker error handeling\r\n */\r\nexport interface ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an unknown error has occurred\r\n */\r\nexport interface ExtensionBrokerUnknownError extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.Unknown;\r\n\r\n /**\r\n * The original error object for this error\r\n */\r\n error: any;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an extension target cannot be found\r\n */\r\nexport interface ExtensionBrokerExtensionTargetNotFoundError extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.ExtensionTargetNotFound;\r\n\r\n /**\r\n * The extensionTargetId we were unable to find\r\n */\r\n extensionTargetId: string;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an method cannot be found\r\n */\r\nexport interface ExtensionBrokerExtensionMethodNotFoundError extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.MethodNotFound;\r\n\r\n /**\r\n * The method we were unable to find\r\n */\r\n method: string;\r\n\r\n /**\r\n * The version of the method we were unable to find\r\n */\r\n version: number;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an methods argument is invalid\r\n */\r\nexport interface ExtensionBrokerExtensionMethodInvalidArgument extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.InvalidArgument;\r\n\r\n /**\r\n * The method we were trying to call\r\n */\r\n method: string;\r\n\r\n /**\r\n * The version of the method we were trying to call\r\n */\r\n version: number;\r\n\r\n /**\r\n * The name of the argument that is invalid\r\n */\r\n argumentName: string;\r\n\r\n /**\r\n * The reason that this argument is invalid.\r\n */\r\n argumentInvalidReason?: string;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an entry point cannot be found\r\n */\r\nexport interface ExtensionBrokerEntryPointNotFoundError extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.EntryPointNotFound;\r\n /**\r\n * The entryPointId we were unable to find\r\n */\r\n entryPointId: string;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an extension instance cannot be found\r\n */\r\nexport interface ExtensionBrokerInstanceNotFoundError extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.InstanceNotFound;\r\n /**\r\n * The instanceId we were unable to find\r\n */\r\n instanceId: string;\r\n}\r\n\r\n/**\r\n * Defines An error object for when an extension instance cannot be found\r\n */\r\nexport interface ExtensionBrokerInvalidSearchOptionsError extends ExtensionBrokerResponseErrorBase {\r\n /**\r\n * The type of extension broker response error\r\n */\r\n errorType: ExtensionBrokerResponseErrorType.InvalidSearchOptions;\r\n /**\r\n * The instanceId we were unable to find\r\n */\r\n searchOptions: ExtensionSearchOptions;\r\n}\r\n"]}