@microsoft/windows-admin-center-sdk 4.52.0 → 4.123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/angular/esm2020/src/controls/actions/containers/action-bar/action-bar.component.mjs +2 -2
  2. package/angular/esm2020/src/controls/master-view/master-view.component.mjs +8 -6
  3. package/angular/esm2020/src/controls/ux/sme-ux-footer/sme-ux-footer-template/sme-wizard-lite-footer-template/sme-wizard-lite-footer-template.component.mjs +56 -1
  4. package/angular/esm2020/src/service/navigation.service.mjs +3 -1
  5. package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.mjs +66 -6
  6. package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.mjs.map +1 -1
  7. package/angular/fesm2020/microsoft-windows-admin-center-sdk-angular.mjs +65 -6
  8. package/angular/fesm2020/microsoft-windows-admin-center-sdk-angular.mjs.map +1 -1
  9. package/angular/src/controls/master-view/master-view.component.d.ts +6 -2
  10. package/angular/src/controls/ux/sme-ux-footer/sme-ux-footer-template/sme-wizard-lite-footer-template/sme-wizard-lite-footer-template.component.d.ts +64 -0
  11. package/core/assets/strings/cs-CZ/strings.json +1 -1
  12. package/core/assets/strings/de-DE/strings.json +1 -1
  13. package/core/assets/strings/es-ES/strings.json +1 -1
  14. package/core/assets/strings/fr-FR/strings.json +1 -1
  15. package/core/assets/strings/hu-HU/strings.json +1 -1
  16. package/core/assets/strings/id-ID/strings.json +1 -1
  17. package/core/assets/strings/it-IT/strings.json +1 -1
  18. package/core/assets/strings/ja-JP/strings.json +1 -1
  19. package/core/assets/strings/ko-KR/strings.json +1 -1
  20. package/core/assets/strings/nl-NL/strings.json +1 -1
  21. package/core/assets/strings/pl-PL/strings.json +1 -1
  22. package/core/assets/strings/pt-BR/strings.json +1 -1
  23. package/core/assets/strings/pt-PT/strings.json +1 -1
  24. package/core/assets/strings/ru-RU/strings.json +1 -1
  25. package/core/assets/strings/strings.json +1 -1
  26. package/core/assets/strings/sv-SE/strings.json +1 -1
  27. package/core/assets/strings/tr-TR/strings.json +1 -1
  28. package/core/assets/strings/zh-CN/strings.json +1 -1
  29. package/core/assets/strings/zh-TW/strings.json +1 -1
  30. package/core/azure/azure-constants.d.ts +7 -3
  31. package/core/azure/azure-constants.d.ts.map +1 -1
  32. package/core/azure/azure-constants.js +8 -4
  33. package/core/azure/azure-constants.js.map +1 -1
  34. package/core/azure/models/azureArcStatusEnum.d.ts +4 -2
  35. package/core/azure/models/azureArcStatusEnum.d.ts.map +1 -1
  36. package/core/azure/models/azureArcStatusEnum.js +3 -1
  37. package/core/azure/models/azureArcStatusEnum.js.map +1 -1
  38. package/core/base/utilities.d.ts +3 -3
  39. package/core/base/utilities.d.ts.map +1 -1
  40. package/core/base/utilities.js +2 -2
  41. package/core/base/utilities.js.map +1 -1
  42. package/core/data/active-directory/active-directory.d.ts.map +1 -1
  43. package/core/data/active-directory/active-directory.js +1 -1
  44. package/core/data/active-directory/active-directory.js.map +1 -1
  45. package/core/data/cookie.d.ts.map +1 -1
  46. package/core/data/cookie.js +7 -0
  47. package/core/data/cookie.js.map +1 -1
  48. package/core/data/gateway-connection.d.ts +12 -0
  49. package/core/data/gateway-connection.d.ts.map +1 -1
  50. package/core/data/gateway-connection.js +16 -0
  51. package/core/data/gateway-connection.js.map +1 -1
  52. package/core/data/gateway-url-translator.d.ts +1 -0
  53. package/core/data/gateway-url-translator.d.ts.map +1 -1
  54. package/core/data/gateway-url-translator.js +15 -0
  55. package/core/data/gateway-url-translator.js.map +1 -1
  56. package/core/data/gateway-urls.d.ts +6 -0
  57. package/core/data/gateway-urls.d.ts.map +1 -1
  58. package/core/data/gateway-urls.js +8 -0
  59. package/core/data/gateway-urls.js.map +1 -1
  60. package/core/data/net.d.ts +1 -0
  61. package/core/data/net.d.ts.map +1 -1
  62. package/core/data/net.js +26 -1
  63. package/core/data/net.js.map +1 -1
  64. package/core/data/websocket-stream.d.ts.map +1 -1
  65. package/core/data/websocket-stream.js +2 -2
  66. package/core/data/websocket-stream.js.map +1 -1
  67. package/core/generated/powershell-scripts.d.ts.map +1 -1
  68. package/core/generated/powershell-scripts.js +1 -1
  69. package/core/generated/powershell-scripts.js.map +1 -1
  70. package/core/generated/strings.d.ts +3 -0
  71. package/core/generated/strings.d.ts.map +1 -1
  72. package/core/generated/strings.js.map +1 -1
  73. package/core/notification/notification.d.ts.map +1 -1
  74. package/core/notification/notification.js +1 -3
  75. package/core/notification/notification.js.map +1 -1
  76. package/core/resources/scripts/public/inventory/Get-ServerInventory.ps1 +8 -8
  77. package/core/security/tool-condition-validator.d.ts.map +1 -1
  78. package/core/security/tool-condition-validator.js +5 -5
  79. package/core/security/tool-condition-validator.js.map +1 -1
  80. package/core/shared/server-inventory/server-inventory-cache.d.ts.map +1 -1
  81. package/core/shared/server-inventory/server-inventory-cache.js +1 -2
  82. package/core/shared/server-inventory/server-inventory-cache.js.map +1 -1
  83. package/core/shared/server-inventory/server-inventory.d.ts +4 -4
  84. package/core/shared/server-inventory/server-inventory.d.ts.map +1 -1
  85. package/core/shared/server-inventory/server-inventory.js +2 -2
  86. package/core/shared/server-inventory/server-inventory.js.map +1 -1
  87. package/microsoft-windows-admin-center-sdk-4.123.0.tgz +0 -0
  88. package/package.json +4 -4
  89. package/styles/css/main-v2.css +1 -1
  90. package/tools/module-template/build/pipelines/ci-build.yml +2 -2
  91. package/tools/wac-cli/src/angular15/configs/angular-json-config.d.ts +2 -7
  92. package/tools/wac-cli/src/angular15/configs/angular-json-config.d.ts.map +1 -1
  93. package/tools/wac-cli/src/angular15/configs/angular-json-config.js +8 -1
  94. package/tools/wac-cli/src/angular15/configs/angular-json-config.js.map +1 -1
  95. package/tools/wac-cli/src/angular15/configs/package-json-config.d.ts +4 -0
  96. package/tools/wac-cli/src/angular15/configs/package-json-config.d.ts.map +1 -1
  97. package/tools/wac-cli/src/angular15/configs/package-json-config.js +13 -9
  98. package/tools/wac-cli/src/angular15/configs/package-json-config.js.map +1 -1
  99. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.d.ts +14 -0
  100. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.d.ts.map +1 -0
  101. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.js +21 -0
  102. package/tools/wac-cli/src/angular15/configs/ui-test-automation-lagacy-config.js.map +1 -0
  103. package/tools/wac-cli/src/angular15/main.d.ts +33 -3
  104. package/tools/wac-cli/src/angular15/main.d.ts.map +1 -1
  105. package/tools/wac-cli/src/angular15/main.js +69 -7
  106. package/tools/wac-cli/src/angular15/main.js.map +1 -1
  107. package/tools/wac-cli/src/angular15/test/ui-test-automation-package.json/after.json +14 -0
  108. package/tools/wac-cli/src/angular15/test/ui-test-automation-package.json/before.json +13 -0
  109. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.d.ts +15 -0
  110. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.d.ts.map +1 -0
  111. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.js +48 -0
  112. package/tools/wac-cli/src/angular15/upgrader/ui-test-automation-legacy-upgrader.js.map +1 -0
  113. package/tools/wac-cli/src/angular15/utils/main-debugger.d.ts.map +1 -1
  114. package/tools/wac-cli/src/angular15/utils/main-debugger.js +3 -0
  115. package/tools/wac-cli/src/angular15/utils/main-debugger.js.map +1 -1
  116. package/tools/wac-cli/src/angular15/utils/update-shell-references.d.ts +2 -0
  117. package/tools/wac-cli/src/angular15/utils/update-shell-references.d.ts.map +1 -0
  118. package/tools/wac-cli/src/angular15/utils/update-shell-references.js +69 -0
  119. package/tools/wac-cli/src/angular15/utils/update-shell-references.js.map +1 -0
  120. package/tools/wac-cli/src/common.d.ts +6 -0
  121. package/tools/wac-cli/src/common.d.ts.map +1 -1
  122. package/tools/wac-cli/src/common.js +13 -0
  123. package/tools/wac-cli/src/common.js.map +1 -1
  124. package/tools/wac-cli/src/create/main.d.ts.map +1 -1
  125. package/tools/wac-cli/src/create/main.js +3 -51
  126. package/tools/wac-cli/src/create/main.js.map +1 -1
  127. package/tools/wac-cli/src/eslint/main.d.ts +5 -1
  128. package/tools/wac-cli/src/eslint/main.d.ts.map +1 -1
  129. package/tools/wac-cli/src/eslint/main.js +17 -2
  130. package/tools/wac-cli/src/eslint/main.js.map +1 -1
  131. package/tools/wac-cli/src/index.d.ts.map +1 -1
  132. package/tools/wac-cli/src/index.js +2 -2
  133. package/tools/wac-cli/src/index.js.map +1 -1
  134. package/tools/wac-cli/templates/wac-template/package.json +3 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/core/shared/server-inventory/server-inventory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAiBxE;;GAEG;AACH,MAAM,CAAN,IAAY,sBAcX;AAdD,WAAY,sBAAsB;IAC9B,yEAAW,CAAA;IACX,uEAAU,CAAA;IACV,mFAAgB,CAAA;IAChB,2EAAY,CAAA;IACZ,6FAAqB,CAAA;IACrB,iGAAuB,CAAA;IACvB,2EAAY,CAAA;IACZ,6FAAqB,CAAA;IACrB,uFAAkB,CAAA;IAClB,iGAAuB,CAAA;IACvB,8EAAc,CAAA;IACd,8FAAsB,CAAA;IACtB,8FAAsB,CAAA;AAC1B,CAAC,EAdW,sBAAsB,KAAtB,sBAAsB,QAcjC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,yEAAe,CAAA;IACf,mFAAoB,CAAA;IACpB,+DAAU,CAAA;AACd,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B;AA4QD;;GAEG;AACH,MAAM,OAAO,eAAe;IAiOL;IAhOX,MAAM,CAAC,iBAAiB,GAAG,UAAU,CAAC;IACtC,MAAM,CAAC,0BAA0B,GAAG,KAAK,CAAC;IAElD;;;;;;OAMG;IACK,MAAM,CAAC,cAAc,GAAa,CAAC,GAAG,E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,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC/C,OAAO,IAAI,CAAC,QAAQ;gBAChB,CAAC,CAAC,sBAAsB,CAAC,iBAAiB;gBAC1C,CAAC,CAAC,sBAAsB,CAAC,YAAY,CAAC;SAC7C;QAED,wEAAwE;QACxE,OAAO,sBAAsB,CAAC,MAAM,CAAC;IACzC,CAAC","file":"server-inventory.js","sourcesContent":["import { AzureArcStatusEnum } from '../../azure/models/azureArcStatusEnum';\r\nimport { PowerShellSessionRequestOptions } from '../../data/powershell';\r\nimport { MediaConversion, MediaConversionBase } from '../../data/units';\r\n\r\n/**\r\n * Server Inventory query parameters.\r\n */\r\nexport interface ServerInventoryParams {\r\n /**\r\n * name of server node.\r\n */\r\n name: string;\r\n\r\n /**\r\n * options for PowerShell session request.\r\n */\r\n requestOptions?: PowerShellSessionRequestOptions;\r\n}\r\n\r\n/**\r\n * Windows Operating Systems\r\n */\r\nexport enum WindowsOperatingSystem {\r\n Unknown = 0,\r\n Legacy = 1, // XP, Server 2003, Windows NT, etc.\r\n WindowsVista = 2,\r\n Windows7 = 3,\r\n WindowsServer2008 = 4,\r\n WindowsServer2008R2 = 5,\r\n Windows8 = 6,\r\n WindowsServer2012 = 7,\r\n Windows8Point1 = 8,\r\n WindowsServer2012R2 = 9,\r\n Windows10 = 10,\r\n WindowsServer2016 = 11,\r\n WindowsServer2019 = 12\r\n}\r\n\r\n/**\r\n * Windows Product Types\r\n */\r\nexport enum WindowsProductType {\r\n Workstation = 1,\r\n DomainController = 2,\r\n Server = 3\r\n}\r\n\r\n/**\r\n * Smbios Info\r\n */\r\nexport interface SmbiosData {\r\n /**\r\n * indicator of the Serial Number assigned from Company and is accessible on exterior of device.\r\n */\r\n serialNumber: string;\r\n /**\r\n * identifies the company brand name under which the device is marketed to the end user.\r\n */\r\n manufacturer: string;\r\n /**\r\n * This is a unique value and is intended to be associated with this specific machine.\r\n * This can be null depending on the machine\r\n */\r\n uuid: string;\r\n /**\r\n * identifies the baseboard and should accurately reflect\r\n * variances in baseboards across different devices in the same family and product name.\r\n * This can be null depending on the machine\r\n */\r\n baseBoardProduct: string;\r\n /**\r\n * physical frames or structures of a machine\r\n */\r\n chassis: string[];\r\n /**\r\n * Types of Chassis defined in the specification.\r\n */\r\n chassisTypes: string[];\r\n /**\r\n * identifies the company sub-brand name, specific to a grouping of similar devices known as a product line,\r\n * under which the device is marketed to end users\r\n */\r\n systemFamily: string;\r\n /**\r\n * identifies the device in a format that can be determined by Company.\r\n */\r\n systemSkuNumber: string;\r\n\r\n /**\r\n * Asset tag number of the system enclosure\r\n */\r\n smBiosAssetTag: string;\r\n}\r\n\r\n/**\r\n * The address entry for address list.\r\n */\r\nexport interface ServerInventoryAddressEntry {\r\n ipAddress: string;\r\n addressFamily: 'InterNetwork' | 'InterNetworkV6';\r\n}\r\n\r\n/**\r\n * Server Inventory data interface.\r\n */\r\nexport interface ServerInventoryData {\r\n /**\r\n * The server name.\r\n */\r\n serverName: string;\r\n\r\n /**\r\n * The name of server. (CSName/OperatingSystem)\r\n */\r\n name: string;\r\n\r\n /**\r\n * The domain name of server. (Domain/ComputerSystem)\r\n */\r\n domainName: string;\r\n\r\n /**\r\n * The workgroup name of server if any. (Workgroup/ComputerSystem)\r\n */\r\n workgroupName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem)\r\n */\r\n fullyQualifiedDomainName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem) Not lower cased.\r\n */\r\n fullyQualifiedDomainNameRaw: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer.\r\n */\r\n hostname: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer. Not lower cased.\r\n */\r\n hostnameRaw: string;\r\n\r\n /**\r\n * The NetBios name which might be trimmed by 15 characters.\r\n */\r\n netBios: string;\r\n\r\n /**\r\n * The IP address list.\r\n */\r\n addressList: ServerInventoryAddressEntry[];\r\n\r\n /**\r\n * The operating system name of server. (Caption/OperatingSystem)\r\n */\r\n operatingSystemName: string;\r\n\r\n /**\r\n * The operating system name of server. (SKU/OperatingSystem)\r\n */\r\n operatingSystemSKU: number;\r\n\r\n /**\r\n * The operating system version of server. (Version/OperatingSystem)\r\n */\r\n operatingSystemVersion: string;\r\n\r\n /**\r\n * The total size of physical memory.\r\n */\r\n totalPhysicalMemory: number;\r\n\r\n /**\r\n * The domain role.\r\n */\r\n domainRole: number;\r\n\r\n /**\r\n * The windows product type.\r\n */\r\n productType: WindowsProductType;\r\n\r\n /**\r\n * The computer manufacturer.\r\n */\r\n computerManufacturer: string;\r\n\r\n /**\r\n * The computer model.\r\n */\r\n computerModel: string;\r\n\r\n /**\r\n * The number of logical processors.\r\n */\r\n totalLogicalProcessors: number;\r\n\r\n /**\r\n * Indicating if the server has ManagementTools namespace to support TaskManager provider.\r\n */\r\n isManagementToolsAvailable: boolean;\r\n\r\n /**\r\n * Indicating if the computer has ServerManager namespace to support ServerManager provider.\r\n */\r\n isServerManagerAvailable: boolean;\r\n\r\n /**\r\n * Whether or not Windows Management Framework v5.0 or higher is installed.\r\n */\r\n isWmfInstalled: boolean;\r\n\r\n /**\r\n * Indicating if the server node is a part of Microsoft Cluster.\r\n */\r\n isCluster: boolean;\r\n\r\n /**\r\n * The FQDN of Microsoft Cluster if it's a part of Microsoft Cluster.\r\n */\r\n clusterFqdn: string;\r\n\r\n /**\r\n * Indicating if current user is a member of administrators group.\r\n */\r\n isAdministrator: boolean;\r\n\r\n /**\r\n * Indicates if the node has S2D enabled\r\n */\r\n isS2dEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the node has Britannica enabled\r\n */\r\n isBritannicaEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v role is installed\r\n */\r\n isHyperVRoleInstalled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v powershell feature is installed\r\n */\r\n isHyperVPowershellInstalled: boolean;\r\n\r\n /**\r\n * Indicates if CredSSP is enabled.\r\n */\r\n isCredSSPEnabled: boolean;\r\n\r\n /**\r\n * Indicating if remote app enabled.\r\n */\r\n isRemoteAppEnabled: boolean;\r\n\r\n /**\r\n * SMBIOS Data\r\n */\r\n smbiosData: SmbiosData;\r\n\r\n /**\r\n * Indicating if system lockdown policy is enforced which would put PowerShell in ConstrainedLanguage mode (WDAC).\r\n */\r\n isSystemLockdownPolicyEnforced: boolean;\r\n\r\n /**\r\n * Type of operating system value\r\n */\r\n osType: string;\r\n\r\n /**\r\n * Product name that a manufacturer gives to a computer\r\n */\r\n model: string;\r\n\r\n /**\r\n * Last reboot time\r\n */\r\n lastBootUpTime: string;\r\n\r\n /**\r\n * The status of the azure arc in the server\r\n * i.e connectioned, disconnected etc\r\n */\r\n azureArcStatus: AzureArcStatusEnum;\r\n\r\n /**\r\n * The operating system build number\r\n */\r\n buildNumber: string;\r\n\r\n /**\r\n * The operating system update build revision\r\n */\r\n updateBuildRevision: number;\r\n\r\n /**\r\n * The operating system display version eg: 22H2\r\n */\r\n operatingSystemDisplayVersion: string;\r\n\r\n /**\r\n * Indicating if the server is HCI.\r\n */\r\n isHciServer: boolean;\r\n}\r\n\r\n/**\r\n * Server Inventory class.\r\n */\r\nexport class ServerInventory implements ServerInventoryData {\r\n private static nanoDisplayFormat = '{0} Nano';\r\n private static server19PreviewBuildNumber = 17623;\r\n\r\n /*\r\n * OperatingSystemSKU: from https://msdn.microsoft.com/en-us/library/aa394239(v=vs.85).aspx\r\n * PRODUCT_DATACENTER_NANO_SERVER (143)\r\n * Windows Server Datacenter Edition (Nano Server installation)\r\n * PRODUCT_STANDARD_NANO_SERVER (144)\r\n * Windows Server Standard Edition (Nano Server installation)\r\n */\r\n private static nanoServerSkus: number[] = [143, 144];\r\n\r\n /**\r\n * The name of server. (CSName/OperatingSystem)\r\n */\r\n public name: string;\r\n\r\n /**\r\n * The domain name of server. (Domain/ComputerSystem)\r\n */\r\n public domainName: string;\r\n\r\n /**\r\n * The workgroup name of server if any. (Workgroup/ComputerSystem)\r\n */\r\n public workgroupName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem)\r\n */\r\n public fullyQualifiedDomainName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem) Not lower cased.\r\n */\r\n public fullyQualifiedDomainNameRaw: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer.\r\n */\r\n public hostname: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer. Not lower cased.\r\n */\r\n public hostnameRaw: string;\r\n\r\n /**\r\n * The NetBios name which might be trimmed by 15 characters.\r\n */\r\n public netBios: string;\r\n\r\n /**\r\n * The IP address list.\r\n */\r\n public addressList: ServerInventoryAddressEntry[];\r\n\r\n /**\r\n * The operating system name of server. (Caption/OperatingSystem)\r\n */\r\n public operatingSystemName: string;\r\n\r\n /**\r\n * The operating system name of server. (SKU/OperatingSystem)\r\n */\r\n public operatingSystemSKU: number;\r\n\r\n /**\r\n * The operating system version of server. (Version/OperatingSystem)\r\n */\r\n public operatingSystemVersion: string;\r\n\r\n /**\r\n * The total size of physical memory.\r\n */\r\n public totalPhysicalMemory: number;\r\n\r\n /**\r\n * The domain role.\r\n */\r\n public domainRole: number;\r\n\r\n /**\r\n * The windows product type.\r\n */\r\n public productType: WindowsProductType;\r\n\r\n /**\r\n * The computer manufacturer.\r\n */\r\n public computerManufacturer: string;\r\n\r\n /**\r\n * The computer model.\r\n */\r\n public computerModel: string;\r\n\r\n /**\r\n * The number of logical processors.\r\n */\r\n public totalLogicalProcessors: number;\r\n\r\n /**\r\n * Indicating if the server has ManagementTools namespace to support TaskManager provider.\r\n */\r\n public isManagementToolsAvailable: boolean;\r\n\r\n /**\r\n * Indicating if the computer has ServerManager namespace to support ServerManager provider.\r\n */\r\n public isServerManagerAvailable: boolean;\r\n\r\n /**\r\n * Whether or not Windows Management Framework v5.0 or higher is installed.\r\n */\r\n public isWmfInstalled: boolean;\r\n\r\n /**\r\n * Indicating if the server node is a part of Microsoft Cluster.\r\n */\r\n public isCluster: boolean;\r\n\r\n /**\r\n * The FQDN of Microsoft Cluster if it's a part of Microsoft Cluster.\r\n */\r\n public clusterFqdn: string;\r\n\r\n /**\r\n * Indicating if current user is a member of administrators group.\r\n */\r\n public isAdministrator: boolean;\r\n\r\n /**\r\n * Indicates if the node has S2D enabled\r\n */\r\n public isS2dEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the node has Britannica enabled\r\n */\r\n public isBritannicaEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v role is installed\r\n */\r\n public isHyperVRoleInstalled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v powershell feature is installed\r\n */\r\n public isHyperVPowershellInstalled: boolean;\r\n\r\n /**\r\n * Indicates if CredSSP is enabled.\r\n */\r\n public isCredSSPEnabled: boolean;\r\n\r\n /**\r\n * Indicating if remote app enabled.\r\n */\r\n public isRemoteAppEnabled: boolean;\r\n\r\n /**\r\n * SMBIOS Data\r\n */\r\n public smbiosData: SmbiosData;\r\n\r\n /**\r\n * Indicating if system lockdown policy is enforced which would put PowerShell in ConstrainedLanguage mode (WDAC).\r\n */\r\n public isSystemLockdownPolicyEnforced: boolean;\r\n\r\n /**\r\n * Type of operating system value\r\n */\r\n public osType: string;\r\n\r\n /**\r\n * Product name that a manufacturer gives to a computer\r\n */\r\n public model: string;\r\n\r\n /**\r\n * Last reboot time\r\n */\r\n public lastBootUpTime: string;\r\n\r\n /**\r\n * The status of the azure arc in the server\r\n * i.e connectioned, disconnected etc\r\n */\r\n azureArcStatus: AzureArcStatusEnum;\r\n\r\n /*\r\n * Operating system serial number\r\n */\r\n osSerialNumber: string;\r\n\r\n /**\r\n * The operating system build number\r\n */\r\n public buildNumber: string;\r\n\r\n /**\r\n * The operating system update build revision\r\n */\r\n public updateBuildRevision: number;\r\n\r\n /**\r\n * The operating system display version eg: 22H2\r\n */\r\n public operatingSystemDisplayVersion: string;\r\n\r\n /**\r\n * Indicating if the server is HCI.\r\n */\r\n public isHciServer: boolean;\r\n\r\n /**\r\n * Initializes a new instance of the ServerInventory Class.\r\n *\r\n * @param serverName the server name to query.\r\n * @param data the server inventory recovered data.\r\n */\r\n constructor(public serverName: string, data?: ServerInventoryData) {\r\n if (data) {\r\n Object.assign(this, data);\r\n }\r\n }\r\n\r\n /**\r\n * Gets the sku number indicating whether the computer is Nano server.\r\n *\r\n * @return boolean true if nano\r\n */\r\n public get isNano(): boolean {\r\n // given sku number is in nanoServerSkus array?\r\n return ServerInventory.nanoServerSkus.indexOf(this.operatingSystemSKU) > -1;\r\n }\r\n\r\n /**\r\n * Gets a value indicating if this is a windows server\r\n *\r\n * @return boolean true if this is a server\r\n */\r\n public get isServer(): boolean {\r\n return this.productType === WindowsProductType.Server;\r\n }\r\n\r\n /**\r\n * Gets a value indicating if this is a windows client\r\n *\r\n * @return boolean true if this is a client\r\n */\r\n public get isClient(): boolean {\r\n return this.productType === WindowsProductType.Workstation;\r\n }\r\n\r\n /**\r\n * Indicates whether the computer is domain controller or not.\r\n *\r\n * @return boolean true if domain controller\r\n */\r\n public get isDomainController(): boolean {\r\n // As per https://msdn.microsoft.com/en-us/library/windows/desktop/aa394102(v=vs.85)\r\n // domainRole of 4 or 5 means it's a domain controller.\r\n return (this.domainRole === 4 || this.domainRole === 5);\r\n }\r\n\r\n /**\r\n * Gets the display name of operating system.\r\n */\r\n public get operatingSystemDisplayName(): string {\r\n return this.isNano ? ServerInventory.nanoDisplayFormat.format(this.operatingSystemName) : this.operatingSystemName;\r\n }\r\n\r\n /**\r\n * Gets the display name of total physical memory.\r\n */\r\n public get totalPhysicalMemoryDisplayName(): string {\r\n return MediaConversion.getConvertedValue(this.totalPhysicalMemory, MediaConversionBase.Binary);\r\n }\r\n\r\n /**\r\n * Gets the operating system enumb of the machine\r\n * see: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx for operating system version mapping.\r\n */\r\n public get operatingSystem(): WindowsOperatingSystem {\r\n\r\n if (!this.operatingSystemVersion) {\r\n return WindowsOperatingSystem.Unknown;\r\n }\r\n\r\n // windows 10, server 2016, and server 2019\r\n // report anything newer as one of these options.\r\n if (this.operatingSystemVersion.indexOf('.') > 1) {\r\n // since . is more than 2 digits from the start of the screen we are going to assume its '10.', '11.', etc...\r\n if (this.isServer) {\r\n if (+this.operatingSystemVersion.split('.').last() >= ServerInventory.server19PreviewBuildNumber) {\r\n // 17623 first insiders preview of 2019\r\n return WindowsOperatingSystem.WindowsServer2019;\r\n } else {\r\n // 14393 official release version of 2016\r\n // fall back to 2016 for versions between 14393 and 17623\r\n return WindowsOperatingSystem.WindowsServer2016;\r\n }\r\n } else {\r\n return WindowsOperatingSystem.Windows10;\r\n }\r\n }\r\n\r\n // windows 8.1 and server 2012r2\r\n if (this.operatingSystemVersion.startsWith('6.3')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2012R2\r\n : WindowsOperatingSystem.Windows8Point1;\r\n }\r\n\r\n // windows 8 and server 2012\r\n if (this.operatingSystemVersion.startsWith('6.2')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2012\r\n : WindowsOperatingSystem.Windows8;\r\n }\r\n\r\n // windows 7 and server 2008 R2\r\n if (this.operatingSystemVersion.startsWith('6.1')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2008R2\r\n : WindowsOperatingSystem.Windows7;\r\n }\r\n\r\n // windows vista and server 2008\r\n if (this.operatingSystemVersion.startsWith('6.0')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2008\r\n : WindowsOperatingSystem.WindowsVista;\r\n }\r\n\r\n // assume a legacy os that somehow was able to run powershell.(unlikely)\r\n return WindowsOperatingSystem.Legacy;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../../packages/core/shared/server-inventory/server-inventory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAiBxE;;GAEG;AACH,MAAM,CAAN,IAAY,sBAcX;AAdD,WA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,SAAS,CAAC;aAC3C;SACJ;QAED,gCAAgC;QAChC,IAAI,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC/C,OAAO,IAAI,CAAC,QAAQ;gBAChB,CAAC,CAAC,sBAAsB,CAAC,mBAAmB;gBAC5C,CAAC,CAAC,sBAAsB,CAAC,cAAc,CAAC;SAC/C;QAED,4BAA4B;QAC5B,IAAI,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC/C,OAAO,IAAI,CAAC,QAAQ;gBAChB,CAAC,CAAC,sBAAsB,CAAC,iBAAiB;gBAC1C,CAAC,CAAC,sBAAsB,CAAC,QAAQ,CAAC;SACzC;QAED,+BAA+B;QAC/B,IAAI,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC/C,OAAO,IAAI,CAAC,QAAQ;gBAChB,CAAC,CAAC,sBAAsB,CAAC,mBAAmB;gBAC5C,CAAC,CAAC,sBAAsB,CAAC,QAAQ,CAAC;SACzC;QAED,gCAAgC;QAChC,IAAI,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC/C,OAAO,IAAI,CAAC,QAAQ;gBAChB,CAAC,CAAC,sBAAsB,CAAC,iBAAiB;gBAC1C,CAAC,CAAC,sBAAsB,CAAC,YAAY,CAAC;SAC7C;QAED,wEAAwE;QACxE,OAAO,sBAAsB,CAAC,MAAM,CAAC;IACzC,CAAC","file":"server-inventory.js","sourcesContent":["import { AzureArcStatusEnum } from '../../azure/models/azureArcStatusEnum';\r\nimport { PowerShellSessionRequestOptions } from '../../data/powershell';\r\nimport { MediaConversion, MediaConversionBase } from '../../data/units';\r\n\r\n/**\r\n * Server Inventory query parameters.\r\n */\r\nexport interface ServerInventoryParams {\r\n /**\r\n * name of server node.\r\n */\r\n name: string;\r\n\r\n /**\r\n * options for PowerShell session request.\r\n */\r\n requestOptions?: PowerShellSessionRequestOptions;\r\n}\r\n\r\n/**\r\n * Windows Operating Systems\r\n */\r\nexport enum WindowsOperatingSystem {\r\n Unknown = 0,\r\n Legacy = 1, // XP, Server 2003, Windows NT, etc.\r\n WindowsVista = 2,\r\n Windows7 = 3,\r\n WindowsServer2008 = 4,\r\n WindowsServer2008R2 = 5,\r\n Windows8 = 6,\r\n WindowsServer2012 = 7,\r\n Windows8Point1 = 8,\r\n WindowsServer2012R2 = 9,\r\n Windows10 = 10,\r\n WindowsServer2016 = 11,\r\n WindowsServer2019 = 12\r\n}\r\n\r\n/**\r\n * Windows Product Types\r\n */\r\nexport enum WindowsProductType {\r\n Workstation = 1,\r\n DomainController = 2,\r\n Server = 3\r\n}\r\n\r\n/**\r\n * Smbios Info\r\n */\r\nexport interface SmbiosData {\r\n /**\r\n * indicator of the Serial Number assigned from Company and is accessible on exterior of device.\r\n */\r\n serialNumber: string;\r\n /**\r\n * identifies the company brand name under which the device is marketed to the end user.\r\n */\r\n manufacturer: string;\r\n /**\r\n * This is a unique value and is intended to be associated with this specific machine.\r\n * This can be null depending on the machine\r\n */\r\n uuid: string;\r\n /**\r\n * identifies the baseboard and should accurately reflect\r\n * variances in baseboards across different devices in the same family and product name.\r\n * This can be null depending on the machine\r\n */\r\n baseBoardProduct: string;\r\n /**\r\n * physical frames or structures of a machine\r\n */\r\n chassis: string[];\r\n /**\r\n * Types of Chassis defined in the specification.\r\n */\r\n chassisTypes: string[];\r\n /**\r\n * identifies the company sub-brand name, specific to a grouping of similar devices known as a product line,\r\n * under which the device is marketed to end users\r\n */\r\n systemFamily: string;\r\n /**\r\n * identifies the device in a format that can be determined by Company.\r\n */\r\n systemSkuNumber: string;\r\n\r\n /**\r\n * Asset tag number of the system enclosure\r\n */\r\n smBiosAssetTag: string;\r\n}\r\n\r\n/**\r\n * The address entry for address list.\r\n */\r\nexport interface ServerInventoryAddressEntry {\r\n ipAddress: string;\r\n addressFamily: 'InterNetwork' | 'InterNetworkV6';\r\n}\r\n\r\n/**\r\n * Server Inventory data interface.\r\n */\r\nexport interface ServerInventoryData {\r\n /**\r\n * The server name.\r\n */\r\n serverName: string;\r\n\r\n /**\r\n * The name of server. (CSName/OperatingSystem)\r\n */\r\n name: string;\r\n\r\n /**\r\n * The domain name of server. (Domain/ComputerSystem)\r\n */\r\n domainName: string;\r\n\r\n /**\r\n * The workgroup name of server if any. (Workgroup/ComputerSystem)\r\n */\r\n workgroupName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem)\r\n */\r\n fullyQualifiedDomainName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem) Not lower cased.\r\n */\r\n fullyQualifiedDomainNameRaw: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer.\r\n */\r\n hostname: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer. Not lower cased.\r\n */\r\n hostnameRaw: string;\r\n\r\n /**\r\n * The NetBios name which might be trimmed by 15 characters.\r\n */\r\n netBios: string;\r\n\r\n /**\r\n * The IP address list.\r\n */\r\n addressList: ServerInventoryAddressEntry[];\r\n\r\n /**\r\n * The operating system name of server. (Caption/OperatingSystem)\r\n */\r\n operatingSystemName: string;\r\n\r\n /**\r\n * The operating system name of server. (SKU/OperatingSystem)\r\n */\r\n operatingSystemSKU: number;\r\n\r\n /**\r\n * The operating system version of server. (Version/OperatingSystem)\r\n */\r\n operatingSystemVersion: string;\r\n\r\n /**\r\n * The total size of physical memory.\r\n */\r\n totalPhysicalMemory: number;\r\n\r\n /**\r\n * The domain role.\r\n */\r\n domainRole: number;\r\n\r\n /**\r\n * The windows product type.\r\n */\r\n productType: WindowsProductType;\r\n\r\n /**\r\n * The computer manufacturer.\r\n */\r\n computerManufacturer: string;\r\n\r\n /**\r\n * The computer model.\r\n */\r\n computerModel: string;\r\n\r\n /**\r\n * The number of logical processors.\r\n */\r\n totalLogicalProcessors: number;\r\n\r\n /**\r\n * Indicating if the server has ManagementTools namespace to support TaskManager provider.\r\n */\r\n isManagementToolsAvailable: boolean;\r\n\r\n /**\r\n * Indicating if the computer has ServerManager namespace to support ServerManager provider.\r\n */\r\n isServerManagerAvailable: boolean;\r\n\r\n /**\r\n * Whether or not Windows Management Framework v5.0 or higher is installed.\r\n */\r\n isWmfInstalled: boolean;\r\n\r\n /**\r\n * Indicating if the server node is a part of Microsoft Cluster.\r\n */\r\n isCluster: boolean;\r\n\r\n /**\r\n * The FQDN of Microsoft Cluster if it's a part of Microsoft Cluster.\r\n */\r\n clusterFqdn: string;\r\n\r\n /**\r\n * Indicating if current user is a member of administrators group.\r\n */\r\n isAdministrator: boolean;\r\n\r\n /**\r\n * Indicates if the node has S2D enabled\r\n */\r\n isS2dEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the node has Britannica enabled\r\n */\r\n isBritannicaEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v role is installed\r\n */\r\n isHyperVRoleInstalled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v powershell feature is installed\r\n */\r\n isHyperVPowershellInstalled: boolean;\r\n\r\n /**\r\n * Indicates if CredSSP is enabled.\r\n */\r\n isCredSSPEnabled: boolean;\r\n\r\n /**\r\n * Indicating if remote app enabled.\r\n */\r\n isRemoteAppEnabled: boolean;\r\n\r\n /**\r\n * SMBIOS Data\r\n */\r\n smbiosData: SmbiosData;\r\n\r\n /**\r\n * The system lockdown policy enforcement mode.\r\n */\r\n systemLockdownPolicy: string;\r\n\r\n /**\r\n * Type of operating system value\r\n */\r\n osType: string;\r\n\r\n /**\r\n * Product name that a manufacturer gives to a computer\r\n */\r\n model: string;\r\n\r\n /**\r\n * Last reboot time\r\n */\r\n lastBootUpTime: string;\r\n\r\n /**\r\n * The status of the azure arc in the server\r\n * i.e connectioned, disconnected etc\r\n */\r\n azureArcStatus: AzureArcStatusEnum;\r\n\r\n /**\r\n * The operating system build number\r\n */\r\n buildNumber: string;\r\n\r\n /**\r\n * The operating system update build revision\r\n */\r\n updateBuildRevision: number;\r\n\r\n /**\r\n * The operating system display version eg: 22H2\r\n */\r\n operatingSystemDisplayVersion: string;\r\n\r\n /**\r\n * Indicating if the server is HCI.\r\n */\r\n isHciServer: boolean;\r\n}\r\n\r\n/**\r\n * Server Inventory class.\r\n */\r\nexport class ServerInventory implements ServerInventoryData {\r\n private static nanoDisplayFormat = '{0} Nano';\r\n private static server19PreviewBuildNumber = 17623;\r\n\r\n /*\r\n * OperatingSystemSKU: from https://msdn.microsoft.com/en-us/library/aa394239(v=vs.85).aspx\r\n * PRODUCT_DATACENTER_NANO_SERVER (143)\r\n * Windows Server Datacenter Edition (Nano Server installation)\r\n * PRODUCT_STANDARD_NANO_SERVER (144)\r\n * Windows Server Standard Edition (Nano Server installation)\r\n */\r\n private static nanoServerSkus: number[] = [143, 144];\r\n\r\n /**\r\n * The name of server. (CSName/OperatingSystem)\r\n */\r\n public name: string;\r\n\r\n /**\r\n * The domain name of server. (Domain/ComputerSystem)\r\n */\r\n public domainName: string;\r\n\r\n /**\r\n * The workgroup name of server if any. (Workgroup/ComputerSystem)\r\n */\r\n public workgroupName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem)\r\n */\r\n public fullyQualifiedDomainName: string;\r\n\r\n /**\r\n * The FQDN of server if any. (ComputerSystem) Not lower cased.\r\n */\r\n public fullyQualifiedDomainNameRaw: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer.\r\n */\r\n public hostname: string;\r\n\r\n /**\r\n * The hostname of computer which was configured on the computer. Not lower cased.\r\n */\r\n public hostnameRaw: string;\r\n\r\n /**\r\n * The NetBios name which might be trimmed by 15 characters.\r\n */\r\n public netBios: string;\r\n\r\n /**\r\n * The IP address list.\r\n */\r\n public addressList: ServerInventoryAddressEntry[];\r\n\r\n /**\r\n * The operating system name of server. (Caption/OperatingSystem)\r\n */\r\n public operatingSystemName: string;\r\n\r\n /**\r\n * The operating system name of server. (SKU/OperatingSystem)\r\n */\r\n public operatingSystemSKU: number;\r\n\r\n /**\r\n * The operating system version of server. (Version/OperatingSystem)\r\n */\r\n public operatingSystemVersion: string;\r\n\r\n /**\r\n * The total size of physical memory.\r\n */\r\n public totalPhysicalMemory: number;\r\n\r\n /**\r\n * The domain role.\r\n */\r\n public domainRole: number;\r\n\r\n /**\r\n * The windows product type.\r\n */\r\n public productType: WindowsProductType;\r\n\r\n /**\r\n * The computer manufacturer.\r\n */\r\n public computerManufacturer: string;\r\n\r\n /**\r\n * The computer model.\r\n */\r\n public computerModel: string;\r\n\r\n /**\r\n * The number of logical processors.\r\n */\r\n public totalLogicalProcessors: number;\r\n\r\n /**\r\n * Indicating if the server has ManagementTools namespace to support TaskManager provider.\r\n */\r\n public isManagementToolsAvailable: boolean;\r\n\r\n /**\r\n * Indicating if the computer has ServerManager namespace to support ServerManager provider.\r\n */\r\n public isServerManagerAvailable: boolean;\r\n\r\n /**\r\n * Whether or not Windows Management Framework v5.0 or higher is installed.\r\n */\r\n public isWmfInstalled: boolean;\r\n\r\n /**\r\n * Indicating if the server node is a part of Microsoft Cluster.\r\n */\r\n public isCluster: boolean;\r\n\r\n /**\r\n * The FQDN of Microsoft Cluster if it's a part of Microsoft Cluster.\r\n */\r\n public clusterFqdn: string;\r\n\r\n /**\r\n * Indicating if current user is a member of administrators group.\r\n */\r\n public isAdministrator: boolean;\r\n\r\n /**\r\n * Indicates if the node has S2D enabled\r\n */\r\n public isS2dEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the node has Britannica enabled\r\n */\r\n public isBritannicaEnabled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v role is installed\r\n */\r\n public isHyperVRoleInstalled: boolean;\r\n\r\n /**\r\n * Indicates if the hyper-v powershell feature is installed\r\n */\r\n public isHyperVPowershellInstalled: boolean;\r\n\r\n /**\r\n * Indicates if CredSSP is enabled.\r\n */\r\n public isCredSSPEnabled: boolean;\r\n\r\n /**\r\n * Indicating if remote app enabled.\r\n */\r\n public isRemoteAppEnabled: boolean;\r\n\r\n /**\r\n * SMBIOS Data\r\n */\r\n public smbiosData: SmbiosData;\r\n\r\n /**\r\n * The system lockdown policy enforcement mode.\r\n */\r\n public systemLockdownPolicy: string;\r\n\r\n /**\r\n * Type of operating system value\r\n */\r\n public osType: string;\r\n\r\n /**\r\n * Product name that a manufacturer gives to a computer\r\n */\r\n public model: string;\r\n\r\n /**\r\n * Last reboot time\r\n */\r\n public lastBootUpTime: string;\r\n\r\n /**\r\n * The status of the azure arc in the server\r\n * i.e connectioned, disconnected etc\r\n */\r\n azureArcStatus: AzureArcStatusEnum;\r\n\r\n /*\r\n * Operating system serial number\r\n */\r\n osSerialNumber: string;\r\n\r\n /**\r\n * The operating system build number\r\n */\r\n public buildNumber: string;\r\n\r\n /**\r\n * The operating system update build revision\r\n */\r\n public updateBuildRevision: number;\r\n\r\n /**\r\n * The operating system display version eg: 22H2\r\n */\r\n public operatingSystemDisplayVersion: string;\r\n\r\n /**\r\n * Indicating if the server is HCI.\r\n */\r\n public isHciServer: boolean;\r\n\r\n /**\r\n * Initializes a new instance of the ServerInventory Class.\r\n *\r\n * @param serverName the server name to query.\r\n * @param data the server inventory recovered data.\r\n */\r\n constructor(public serverName: string, data?: ServerInventoryData) {\r\n if (data) {\r\n Object.assign(this, data);\r\n }\r\n }\r\n\r\n /**\r\n * Gets the sku number indicating whether the computer is Nano server.\r\n *\r\n * @return boolean true if nano\r\n */\r\n public get isNano(): boolean {\r\n // given sku number is in nanoServerSkus array?\r\n return ServerInventory.nanoServerSkus.indexOf(this.operatingSystemSKU) > -1;\r\n }\r\n\r\n /**\r\n * Gets a value indicating if this is a windows server\r\n *\r\n * @return boolean true if this is a server\r\n */\r\n public get isServer(): boolean {\r\n return this.productType === WindowsProductType.Server;\r\n }\r\n\r\n /**\r\n * Gets a value indicating if this is a windows client\r\n *\r\n * @return boolean true if this is a client\r\n */\r\n public get isClient(): boolean {\r\n return this.productType === WindowsProductType.Workstation;\r\n }\r\n\r\n /**\r\n * Indicates whether the computer is domain controller or not.\r\n *\r\n * @return boolean true if domain controller\r\n */\r\n public get isDomainController(): boolean {\r\n // As per https://msdn.microsoft.com/en-us/library/windows/desktop/aa394102(v=vs.85)\r\n // domainRole of 4 or 5 means it's a domain controller.\r\n return (this.domainRole === 4 || this.domainRole === 5);\r\n }\r\n\r\n /**\r\n * Gets the display name of operating system.\r\n */\r\n public get operatingSystemDisplayName(): string {\r\n return this.isNano ? ServerInventory.nanoDisplayFormat.format(this.operatingSystemName) : this.operatingSystemName;\r\n }\r\n\r\n /**\r\n * Gets the display name of total physical memory.\r\n */\r\n public get totalPhysicalMemoryDisplayName(): string {\r\n return MediaConversion.getConvertedValue(this.totalPhysicalMemory, MediaConversionBase.Binary);\r\n }\r\n\r\n /**\r\n * Gets the operating system enumb of the machine\r\n * see: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx for operating system version mapping.\r\n */\r\n public get operatingSystem(): WindowsOperatingSystem {\r\n\r\n if (!this.operatingSystemVersion) {\r\n return WindowsOperatingSystem.Unknown;\r\n }\r\n\r\n // windows 10, server 2016, and server 2019\r\n // report anything newer as one of these options.\r\n if (this.operatingSystemVersion.indexOf('.') > 1) {\r\n // since . is more than 2 digits from the start of the screen we are going to assume its '10.', '11.', etc...\r\n if (this.isServer) {\r\n if (+this.operatingSystemVersion.split('.').last() >= ServerInventory.server19PreviewBuildNumber) {\r\n // 17623 first insiders preview of 2019\r\n return WindowsOperatingSystem.WindowsServer2019;\r\n } else {\r\n // 14393 official release version of 2016\r\n // fall back to 2016 for versions between 14393 and 17623\r\n return WindowsOperatingSystem.WindowsServer2016;\r\n }\r\n } else {\r\n return WindowsOperatingSystem.Windows10;\r\n }\r\n }\r\n\r\n // windows 8.1 and server 2012r2\r\n if (this.operatingSystemVersion.startsWith('6.3')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2012R2\r\n : WindowsOperatingSystem.Windows8Point1;\r\n }\r\n\r\n // windows 8 and server 2012\r\n if (this.operatingSystemVersion.startsWith('6.2')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2012\r\n : WindowsOperatingSystem.Windows8;\r\n }\r\n\r\n // windows 7 and server 2008 R2\r\n if (this.operatingSystemVersion.startsWith('6.1')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2008R2\r\n : WindowsOperatingSystem.Windows7;\r\n }\r\n\r\n // windows vista and server 2008\r\n if (this.operatingSystemVersion.startsWith('6.0')) {\r\n return this.isServer\r\n ? WindowsOperatingSystem.WindowsServer2008\r\n : WindowsOperatingSystem.WindowsVista;\r\n }\r\n\r\n // assume a legacy os that somehow was able to run powershell.(unlikely)\r\n return WindowsOperatingSystem.Legacy;\r\n }\r\n}\r\n"]}
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "author": {
22
22
  "name": "Microsoft Corporation"
23
23
  },
24
- "version": "4.52.0",
24
+ "version": "4.123.0",
25
25
  "private": false,
26
26
  "dependencies": {
27
27
  "@angular/animations": "15.2.9",
@@ -69,9 +69,9 @@
69
69
  "@angular/language-service": "15.2.9",
70
70
  "@compodoc/compodoc": "1.1.19",
71
71
  "@compodoc/gulp-compodoc": "0.0.10",
72
- "@msft-sme/tools": "4.50.0",
73
- "@msft-sme/core": "4.50.0",
74
- "@playwright/test": "1.25.2",
72
+ "@msft-sme/tools": "4.96.0",
73
+ "@msft-sme/core": "4.96.0",
74
+ "@playwright/test": "1.31.0",
75
75
  "@types/gulp": "^4.0.8",
76
76
  "@types/chart.js": "2.9.32",
77
77
  "@types/fetch-mock": "^7.2.2",