{"version":3,"sources":["../../../packages/core/shared/tool-inventory/tool-inventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC1D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,cAAc,CAAC,EAAE,+BAA+B,CAAC;CACpD;AAED,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAElC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,qBAAqB,EAAE,CAAC;CACvC;AAED;;GAEG;AACH,qBAAa,aAAc,YAAW,iBAAiB;IACnD;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACI,EAAE,EAAE,MAAM,CAAC;IAElB;;OAEG;IACI,KAAK,EAAE,0BAA0B,CAAC;IAEzC;;OAEG;IACI,OAAO,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACI,UAAU,EAAE,qBAAqB,EAAE,CAAC;IAE3C;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB;CAMrD","file":"tool-inventory.d.ts","sourcesContent":["import { PowerShellSessionRequestOptions, PowerShellCommand } from '../../data/powershell';\r\n\r\nimport { EnvironmentModuleToolState } from '../../manifest/environment-modules';\r\n\r\n/**\r\n * Tool Inventory query parameters.\r\n */\r\nexport interface ToolInventoryParams extends PowerShellCommand {\r\n    /**\r\n     * The name of connection.\r\n     */\r\n    name: string;\r\n\r\n    /**\r\n     * The identification of the tool.\r\n     */\r\n    id: string;\r\n\r\n    /**\r\n     * The node request options.\r\n     */\r\n    requestOptions?: PowerShellSessionRequestOptions;\r\n}\r\n\r\nexport interface ToolInventoryProperty {\r\n    /**\r\n     * The name of data.\r\n     */\r\n    name: string;\r\n\r\n    /**\r\n     * The value of data.\r\n     */\r\n    value: string;\r\n\r\n    /**\r\n     * The type of data.\r\n     */\r\n    type: 'string' | 'number' | 'boolean';\r\n}\r\n\r\n/**\r\n * Tool Inventory data interface.\r\n */\r\nexport interface ToolInventoryData {\r\n    /**\r\n     * The name of connection.\r\n     */\r\n    name: string;\r\n\r\n    /**\r\n     * The identification of the tool.\r\n     */\r\n    id: string;\r\n\r\n    /**\r\n     * The state of supportable.\r\n     */\r\n    state: EnvironmentModuleToolState;\r\n\r\n    /**\r\n     * The message of state.\r\n     */\r\n    message: string;\r\n\r\n    /**\r\n     * The key value pairs of collected data.\r\n     */\r\n    properties: ToolInventoryProperty[];\r\n}\r\n\r\n/**\r\n * Tool Inventory class.\r\n */\r\nexport class ToolInventory implements ToolInventoryData {\r\n    /**\r\n     * The name of connection.\r\n     */\r\n    public name: string;\r\n\r\n    /**\r\n     * The identification of the tool.\r\n     */\r\n    public id: string;\r\n\r\n    /**\r\n     * The state of supportable.\r\n     */\r\n    public state: EnvironmentModuleToolState;\r\n\r\n    /**\r\n     * The message of state.\r\n     */\r\n    public message: string;\r\n\r\n    /**\r\n     * The key value pairs of collected data.\r\n     */\r\n    public properties: ToolInventoryProperty[];\r\n\r\n    /**\r\n     * Initializes a new instance of the ServerInventory Class.\r\n     *\r\n     * @param name the connection name to query.\r\n     * @param data the server inventory recovered data.\r\n     */\r\n    constructor(name: string, data?: ToolInventoryData) {\r\n        this.name = name;\r\n        if (data) {\r\n            Object.assign(this, data);\r\n        }\r\n    }\r\n}\r\n"]}