@microsoft/windows-admin-center-sdk 4.87.0 → 4.167.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 (154) hide show
  1. package/angular/assets/strings/cs-CZ/strings.json +1 -1
  2. package/angular/assets/strings/de-DE/strings.json +1 -1
  3. package/angular/assets/strings/es-ES/strings.json +1 -1
  4. package/angular/assets/strings/fr-FR/strings.json +1 -1
  5. package/angular/assets/strings/hu-HU/strings.json +1 -1
  6. package/angular/assets/strings/id-ID/strings.json +1 -1
  7. package/angular/assets/strings/it-IT/strings.json +1 -1
  8. package/angular/assets/strings/ja-JP/strings.json +1 -1
  9. package/angular/assets/strings/ko-KR/strings.json +1 -1
  10. package/angular/assets/strings/nl-NL/strings.json +1 -1
  11. package/angular/assets/strings/pl-PL/strings.json +1 -1
  12. package/angular/assets/strings/pt-BR/strings.json +1 -1
  13. package/angular/assets/strings/pt-PT/strings.json +1 -1
  14. package/angular/assets/strings/ru-RU/strings.json +1 -1
  15. package/angular/assets/strings/strings.json +1 -1
  16. package/angular/assets/strings/sv-SE/strings.json +1 -1
  17. package/angular/assets/strings/tr-TR/strings.json +1 -1
  18. package/angular/assets/strings/zh-CN/strings.json +1 -1
  19. package/angular/assets/strings/zh-TW/strings.json +1 -1
  20. package/angular/esm2020/src/controls/actions/containers/action-bar/action-bar.component.mjs +2 -2
  21. package/angular/esm2020/src/controls/actions/containers/action-container.component.mjs +2 -3
  22. package/angular/esm2020/src/controls/alert-bar/alert-bar.component.mjs +2 -2
  23. package/angular/esm2020/src/controls/breadcrumb-header/breadcrumb-header.component.mjs +1 -1
  24. package/angular/esm2020/src/controls/common/base.component.mjs +1 -1
  25. package/angular/esm2020/src/controls/common/spacer-base.component.mjs +25 -1
  26. package/angular/esm2020/src/controls/context-menu/context-menu.component.mjs +2 -3
  27. package/angular/esm2020/src/controls/data-table/data-table.component.mjs +7 -7
  28. package/angular/esm2020/src/controls/dialog/base-dialog.component.mjs +2 -4
  29. package/angular/esm2020/src/controls/dialog/confirmation-list-dialog/confirmation-list-dialog.component.mjs +2 -2
  30. package/angular/esm2020/src/controls/dropdown/dropdown.component.mjs +1 -4
  31. package/angular/esm2020/src/controls/form/form-field/clock/clock-form-field.component.mjs +10 -7
  32. package/angular/esm2020/src/controls/form/form-field/form-field.component.mjs +1 -1
  33. package/angular/esm2020/src/controls/form/form-field/number/number-form-field.component.mjs +22 -4
  34. package/angular/esm2020/src/controls/form/form-field/radio-group/classic/radio-group-form-field.component.mjs +5 -5
  35. package/angular/esm2020/src/controls/icon/icon-text/icon-text.component.mjs +6 -6
  36. package/angular/esm2020/src/controls/icon/layered-icon/status/status-icon.component.mjs +1 -1
  37. package/angular/esm2020/src/controls/layout/editable-layout.component.mjs +2 -3
  38. package/angular/esm2020/src/controls/node-credentials-form/node-credentials-form.component.mjs +2 -2
  39. package/angular/esm2020/src/controls/property-grid/property-grid.component.mjs +33 -13
  40. package/angular/esm2020/src/controls/schema/tabbed-form-loader.component.mjs +2 -2
  41. package/angular/esm2020/src/controls/settings/common-settings/common-settings.component.mjs +5 -5
  42. package/angular/esm2020/src/controls/settings/settings-form.directive.mjs +3 -7
  43. package/angular/esm2020/src/controls/settings/settings-form.service.mjs +2 -4
  44. package/angular/esm2020/src/controls/snap-in-extension/snap-in-extension.component.mjs +1 -1
  45. package/angular/esm2020/src/controls/split-view/split-view.component.mjs +2 -2
  46. package/angular/esm2020/src/directives/router/router-link.directive.mjs +2 -2
  47. package/angular/esm2020/src/directives/svg/svg.directive.mjs +2 -3
  48. package/angular/esm2020/src/generated/strings.mjs +1 -1
  49. package/angular/esm2020/src/service/navigation.service.mjs +3 -8
  50. package/angular/esm2020/src/service/user-alive.service.mjs +2 -4
  51. package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.mjs +128 -73
  52. package/angular/fesm2015/microsoft-windows-admin-center-sdk-angular.mjs.map +1 -1
  53. package/angular/fesm2020/microsoft-windows-admin-center-sdk-angular.mjs +116 -71
  54. package/angular/fesm2020/microsoft-windows-admin-center-sdk-angular.mjs.map +1 -1
  55. package/angular/package.json +1 -1
  56. package/angular/src/controls/common/spacer-base.component.d.ts +11 -2
  57. package/angular/src/controls/form/form-field/number/number-form-field.component.d.ts +8 -0
  58. package/angular/src/controls/icon/icon-text/icon-text.component.d.ts +1 -1
  59. package/angular/src/controls/property-grid/property-grid.component.d.ts +2 -0
  60. package/angular/src/directives/svg/svg.directive.d.ts +1 -2
  61. package/angular/src/generated/strings.d.ts +12 -0
  62. package/core/assets/strings/cs-CZ/strings.json +1 -1
  63. package/core/assets/strings/es-ES/strings.json +1 -1
  64. package/core/assets/strings/fr-FR/strings.json +1 -1
  65. package/core/assets/strings/hu-HU/strings.json +1 -1
  66. package/core/assets/strings/id-ID/strings.json +1 -1
  67. package/core/assets/strings/it-IT/strings.json +1 -1
  68. package/core/assets/strings/ja-JP/strings.json +1 -1
  69. package/core/assets/strings/ko-KR/strings.json +1 -1
  70. package/core/assets/strings/pl-PL/strings.json +1 -1
  71. package/core/assets/strings/pt-BR/strings.json +1 -1
  72. package/core/assets/strings/pt-PT/strings.json +1 -1
  73. package/core/assets/strings/ru-RU/strings.json +1 -1
  74. package/core/assets/strings/sv-SE/strings.json +1 -1
  75. package/core/assets/strings/tr-TR/strings.json +1 -1
  76. package/core/assets/strings/zh-CN/strings.json +1 -1
  77. package/core/assets/strings/zh-TW/strings.json +1 -1
  78. package/core/azure/azure-constants.d.ts +3 -2
  79. package/core/azure/azure-constants.d.ts.map +1 -1
  80. package/core/azure/azure-constants.js +11 -3
  81. package/core/azure/azure-constants.js.map +1 -1
  82. package/core/base/utilities.d.ts +3 -3
  83. package/core/base/utilities.d.ts.map +1 -1
  84. package/core/base/utilities.js +2 -2
  85. package/core/base/utilities.js.map +1 -1
  86. package/core/data/active-directory/active-directory.d.ts.map +1 -1
  87. package/core/data/active-directory/active-directory.js +1 -1
  88. package/core/data/active-directory/active-directory.js.map +1 -1
  89. package/core/data/cookie.d.ts.map +1 -1
  90. package/core/data/cookie.js +7 -0
  91. package/core/data/cookie.js.map +1 -1
  92. package/core/data/gateway-url-translator.d.ts +1 -0
  93. package/core/data/gateway-url-translator.d.ts.map +1 -1
  94. package/core/data/gateway-url-translator.js +21 -6
  95. package/core/data/gateway-url-translator.js.map +1 -1
  96. package/core/data/gateway-urls.d.ts +6 -0
  97. package/core/data/gateway-urls.d.ts.map +1 -1
  98. package/core/data/gateway-urls.js +8 -0
  99. package/core/data/gateway-urls.js.map +1 -1
  100. package/core/data/node-connection.d.ts.map +1 -1
  101. package/core/data/node-connection.js +0 -2
  102. package/core/data/node-connection.js.map +1 -1
  103. package/core/generated/powershell-scripts.d.ts.map +1 -1
  104. package/core/generated/powershell-scripts.js +1 -1
  105. package/core/generated/powershell-scripts.js.map +1 -1
  106. package/core/resources/scripts/public/inventory/Get-ServerInventory.ps1 +38 -16
  107. package/core/security/tool-condition-validator.d.ts.map +1 -1
  108. package/core/security/tool-condition-validator.js +5 -5
  109. package/core/security/tool-condition-validator.js.map +1 -1
  110. package/core/shared/server-inventory/server-inventory-cache.d.ts.map +1 -1
  111. package/core/shared/server-inventory/server-inventory-cache.js +1 -1
  112. package/core/shared/server-inventory/server-inventory-cache.js.map +1 -1
  113. package/core/shared/server-inventory/server-inventory.d.ts +4 -4
  114. package/core/shared/server-inventory/server-inventory.d.ts.map +1 -1
  115. package/core/shared/server-inventory/server-inventory.js +2 -2
  116. package/core/shared/server-inventory/server-inventory.js.map +1 -1
  117. package/microsoft-windows-admin-center-sdk-4.167.0.tgz +0 -0
  118. package/package.json +10 -8
  119. package/styles/css/main-v2.css +1 -1
  120. package/tools/code-formatter/.eslintrc.base.json +1 -0
  121. package/tools/code-formatter/lint.d.ts.map +1 -1
  122. package/tools/code-formatter/lint.js +7 -1
  123. package/tools/code-formatter/lint.js.map +1 -1
  124. package/tools/code-formatter/utilities.d.ts +7 -0
  125. package/tools/code-formatter/utilities.d.ts.map +1 -0
  126. package/tools/code-formatter/utilities.js +79 -0
  127. package/tools/code-formatter/utilities.js.map +1 -0
  128. package/tools/gulp-update-notes-resource/index.d.ts.map +1 -1
  129. package/tools/gulp-update-notes-resource/index.js +4 -4
  130. package/tools/gulp-update-notes-resource/index.js.map +1 -1
  131. package/tools/module-template/.eslintrc.json +3 -0
  132. package/tools/module-template/build/pipelines/ci-build.yml +2 -2
  133. package/tools/module-template/gulpfile.ts/common/utilities.ts +1 -0
  134. package/tools/wac-cli/src/angular15/configs/angular-json-config.d.ts +2 -7
  135. package/tools/wac-cli/src/angular15/configs/angular-json-config.d.ts.map +1 -1
  136. package/tools/wac-cli/src/angular15/configs/angular-json-config.js +8 -1
  137. package/tools/wac-cli/src/angular15/configs/angular-json-config.js.map +1 -1
  138. package/tools/wac-cli/src/angular15/configs/eslint-auto-fix-config.d.ts +9 -0
  139. package/tools/wac-cli/src/angular15/configs/eslint-auto-fix-config.d.ts.map +1 -0
  140. package/tools/wac-cli/src/angular15/configs/eslint-auto-fix-config.js +16 -0
  141. package/tools/wac-cli/src/angular15/configs/eslint-auto-fix-config.js.map +1 -0
  142. package/tools/wac-cli/src/angular15/configs/package-json-config.d.ts +4 -0
  143. package/tools/wac-cli/src/angular15/configs/package-json-config.d.ts.map +1 -1
  144. package/tools/wac-cli/src/angular15/configs/package-json-config.js +13 -9
  145. package/tools/wac-cli/src/angular15/configs/package-json-config.js.map +1 -1
  146. package/tools/wac-cli/src/angular15/main.d.ts +20 -4
  147. package/tools/wac-cli/src/angular15/main.d.ts.map +1 -1
  148. package/tools/wac-cli/src/angular15/main.js +44 -8
  149. package/tools/wac-cli/src/angular15/main.js.map +1 -1
  150. package/tools/wac-cli/src/angular15/upgrader/eslint-auto-fix-upgrader.d.ts +18 -0
  151. package/tools/wac-cli/src/angular15/upgrader/eslint-auto-fix-upgrader.d.ts.map +1 -0
  152. package/tools/wac-cli/src/angular15/upgrader/eslint-auto-fix-upgrader.js +49 -0
  153. package/tools/wac-cli/src/angular15/upgrader/eslint-auto-fix-upgrader.js.map +1 -0
  154. package/tools/wac-cli/templates/wac-template/package.json +3 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../packages/core/azure/azure-constants.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAc;IACvB;;OAEG;IACI,MAAM,CAAU,sBAAsB,GAAG,8BAA8B,CAAC;IAE/E;;OAEG;IACI,MAAM,CAAU,iBAAiB,GAAG,0BAA0B,CAAC;IAEtE;;OAEG;IACI,MAAM,CAAU,qBAAqB,GAAG,qCAAqC,CAAC;IAErF;;OAEG;IACI,MAAM,CAAU,gBAAgB,GAAG,yBAAyB,CAAC;IAEpE;;OAEG;IACK,MAAM,CAAU,qBAAqB,GAAG,sCAAsC,CAAC;IAEvF;;OAEG;IACI,MAAM,CAAU,gBAAgB,GAAG,yBAAyB,CAAC;IAE7D,MAAM,CAAU,aAAa,GAAG,yBAAyB,CAAC;IAC1D,MAAM,CAAU,oBAAoB,GAAG,0CAA0C,CAAC;IAClF,MAAM,CAAU,gBAAgB,GACnC,+GAA+G,CAAC;IAC7G,MAAM,CAAU,qBAAqB,GACxC,wHAAwH,CAAC;IACtH,MAAM,CAAU,kBAAkB,GAAG,wDAAwD,CAAC;IAC9F,MAAM,CAAU,oBAAoB,GAAG,6DAA6D,CAAC;IAE5G,mBAAmB;IACZ,MAAM,CAAU,kBAAkB,GAAG,6DAA6D,CAAC;IACnG,MAAM,CAAU,gCAAgC,GACnD,iFAAiF,CAAC;IAC/E,MAAM,CAAU,gBAAgB,GAAG,iEAAiE,CAAC;IAE5G,4BAA4B;IACrB,MAAM,CAAU,gBAAgB,GACnC,+GAA+G,CAAC;IAEpH,iCAAiC;IAC1B,MAAM,CAAU,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,CAAU,sBAAsB,GAAG,eAAe,CAAC;IACzD,MAAM,CAAU,uBAAuB,GAAG,iBAAiB,CAAC;IAC5D,MAAM,CAAU,sBAAsB,GAAG,wBAAwB,CAAC;IAClE,MAAM,CAAU,4BAA4B,G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iB,YAAY;IACzB,SAAgB,iBAAiB,CAAC,UAAkB;QAChD,QAAQ,UAAU,EAAE;YAChB,KAAK,yBAAyB,CAAC,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC;YACnE,KAAK,0BAA0B,CAAC,CAAC,OAAO,oBAAoB,CAAC,QAAQ,CAAC;YACtE,KAAK,uBAAuB,CAAC,CAAC,OAAO,oBAAoB,CAAC,cAAc,CAAC;YACzE,KAAK,yBAAyB,CAAC,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC;YACpE,KAAK,2BAA2B,CAAC,CAAC,OAAO,oBAAoB,CAAC,cAAc,CAAC;YAC7E,KAAK,4BAA4B,CAAC,CAAC,OAAO,oBAAoB,CAAC,cAAc,CAAC;YAC9E,KAAK,iBAAiB,CAAC,CAAC,OAAO,oBAAoB,CAAC,YAAY,CAAC;YACjE,KAAK,yBAAyB,CAAC,CAAC,OAAO,oBAAoB,CAAC,aAAa,CAAC;YAC1E,KAAK,iCAAiC,CAAC,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC;YAC3E,KAAK,yBAAyB,CAAC,CAAC,OAAO,oBAAoB,CAAC,gBAAgB,CAAC;YAC7E,OAAO,CAAC,CAAC,OAAO,UAAU,CAAC;SAC9B;IACL,CAAC;IAde,8BAAiB,oBAchC,CAAA;AACL,CAAC,EAhBgB,YAAY,KAAZ,YAAY,QAgB5B","file":"azure-constants.js","sourcesContent":["export class AzureConstants {\r\n /**\r\n * Azure Resource Manager endpoint - Azure Global/Public cloud.\r\n */\r\n public static readonly azureGlobalArmEndpoint = 'https://management.azure.com';\r\n\r\n /**\r\n * Azure public portal.\r\n */\r\n public static readonly azureGlobalPortal = 'https://portal.azure.com';\r\n\r\n /**\r\n * Azure Resource Manager endpoint - Azure China cloud.\r\n */\r\n public static readonly azureChinaArmEndpoint = 'https://management.chinacloudapi.cn';\r\n\r\n /**\r\n * Azure China portal.\r\n */\r\n public static readonly azureChinaPortal = 'https://portal.azure.cn';\r\n\r\n /**\r\n * Azure Resource Manager endpoint - Azure US Govenment/Fairfax/Arlington.\r\n */\r\n public static readonly azureUSGovArmEndpoint = 'https://management.usgovcloudapi.net';\r\n\r\n /**\r\n * Azure US Government portal.\r\n */\r\n public static readonly azureUSGovPortal = 'https://portal.azure.us';\r\n\r\n public static readonly armApiVersion = '?api-version=2016-06-01';\r\n public static readonly azureSubscriptionUrl = '{0}/subscriptions?api-version=2016-06-01';\r\n public static readonly armDeploymentUrl =\r\n '{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}?api-version=2018-02-01';\r\n public static readonly validateAzureTemplate =\r\n '{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}/validate?api-version=2018-05-01';\r\n public static readonly getAllGeoLocations = '{0}/subscriptions/{1}/locations?api-version=2016-06-01';\r\n public static readonly getResourceGroupsUri = '{0}/subscriptions/{1}/resourcegroups?api-version=2018-02-01';\r\n\r\n // Resource groups.\r\n public static readonly listResourceGroups = '{0}/subscriptions/{1}/resourcegroups?api-version=2018-05-01';\r\n public static readonly listResourceGroupsWithParameters =\r\n '{0}/subscriptions/{1}/resourcegroups?$filter={2}&$top={3}api-version=2018-05-01';\r\n public static readonly resourceGroupUrl = '{0}/subscriptions/{1}/resourcegroups/{2}?api-version=2018-05-01';\r\n\r\n // Template deployment urls.\r\n public static readonly ArmDeploymentUrl =\r\n '{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}?api-version=2018-02-01';\r\n\r\n // Request header keys and values\r\n public static readonly bearer = 'Bearer ';\r\n public static readonly authorizationHeaderKey = 'Authorization';\r\n public static readonly acceptLanguageHeaderKey = 'Accept-Language';\r\n public static readonly clientRequestHeaderKey = 'x-ms-client-request-id';\r\n public static readonly returnClientRequestHeaderKey = 'x-ms-return-client-request-id';\r\n\r\n // TODO: Remove work around for telemetry. Client request id shouldnt have any parameters.\r\n public static readonly telemetryDataParameter = 'telemetryData={0}; ';\r\n public static readonly telemetryDataInvalidValue = 'invalid';\r\n public static readonly integrationTypeDataParameter = 'integrationType={0}; ';\r\n public static readonly clientRequestIdQualifier = '{0}; ';\r\n public static readonly sourceParameter = 'source=WindowsAdminCenter';\r\n public static readonly maxEncodedTelemetryDataLength = 512;\r\n public static readonly resourceDeploymentSubstring = 'Microsoft.Resources/deployments';\r\n\r\n // ms-graph resource endpoint\r\n public static readonly graphResourceEndpoint = '/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01';\r\n\r\n // ms-graph query\r\n public static readonly resourceTypeFilterQuery = `resources | where (type == \"microsoft.hybridcompute/machines\" or type == \"microsoft.compute/virtualmachines\")\r\n and tolower(name) in ({0}) | project arcStatus = properties.status, nodeName = name, type`;\r\n public static readonly azureVmsFilterQuery = `resources | where (type == \\\"microsoft.compute/virtualmachines\\\")\\n and tolower(name) in ({0}) | project nodeName = name, type`;\r\n\r\n public static readonly virtualMachine = \"microsoft.compute/virtualmachines\";\r\n\r\n /**\r\n * WAC URLS for azure arc machine agent\r\n */\r\n public static readonly arcMachineAgentIssuesURL = \"https://go.microsoft.com/fwlink/?linkid=2248533\";\r\n\r\n /**\r\n * The interval of running the graph query call.\r\n * In this case it's 15 minutes\r\n */\r\n public static graphQueryInterval = 900000;\r\n public static readonly arcStatusGraphQueryDelay = 7000;\r\n public static readonly arcStatusGraphQueryRetryCount = 8;\r\n}\r\n\r\n/*\r\n * Azure integration type is used to distinguish which Azure tool/service in Windows Admin Center is making a\r\n * Azure resource management (ARM) call. If only one repository has one tool/service, this will be inferred based\r\n * on the name of the module. If a repository has more than one tool/service then the integration type needs to be\r\n * explicitly set when calling this.appContextService.azureManagerService.createRequestWithHeaders() or when a\r\n * method like this.appContextService.azureManagerService.getSubscriptions() is called.\r\n */\r\nexport enum AzureIntegrationType {\r\n Backup = 'Backup',\r\n Bridge = 'Bridge',\r\n FileSync = 'FileSync',\r\n HybridServices = 'HybridServices',\r\n Monitor = 'Monitor',\r\n NetworkAdapter = 'NetworkAdapter',\r\n SecurityCenter = 'SecurityCenter',\r\n SiteRecovery = 'SiteRecovery',\r\n AzureMigrate = 'AzureMigrate',\r\n SubnetStretch = 'SubnetStretch',\r\n S2SVPN = 'S2SVPN',\r\n UpdateManagement = 'UpdateManagement',\r\n VirtualMachineCreation = 'VirtualMachineCreation',\r\n VirtualMachineSelection = 'VirtualMachineSelection'\r\n}\r\n\r\nexport namespace ArmTelemetry {\r\n export function toIntegrationType(moduleName: string): string {\r\n switch (moduleName) {\r\n case 'msft.azure.azure-backup': return AzureIntegrationType.Backup;\r\n case 'msft.sme.azure-file-sync': return AzureIntegrationType.FileSync;\r\n case 'msft.sme.azure-center': return AzureIntegrationType.HybridServices;\r\n case 'msft.sme.server-manager': return AzureIntegrationType.Monitor;\r\n case 'msft.sme.network-settings': return AzureIntegrationType.NetworkAdapter;\r\n case 'msft.azure.security-center': return AzureIntegrationType.SecurityCenter;\r\n case 'msft.sme.hyperv': return AzureIntegrationType.SiteRecovery;\r\n case 'msft.sme.subnet-stretch': return AzureIntegrationType.SubnetStretch;\r\n case 'msft.sdn.vgw-network-connection': return AzureIntegrationType.S2SVPN;\r\n case 'msft.sme.windows-update': return AzureIntegrationType.UpdateManagement;\r\n default: return moduleName;\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../../../packages/core/azure/azure-constants.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAc;IACvB;;OAEG;IACI,MAAM,CAAU,sBAAsB,GAAG,8BAA8B,CAAC;IAE/E;;OAEG;IACI,MAAM,CAAU,iBAAiB,GAAG,0BAA0B,CAAC;IAEtE;;OAEG;IACI,MAAM,CAAU,qBAAqB,GAAG,qCAAqC,CAAC;IAErF;;OAEG;IACI,MAAM,CAAU,gBAAgB,GAAG,yBAAyB,CAAC;IAEpE;;OAEG;IACK,MAAM,CAAU,qBAAqB,GAAG,sCAAsC,CAAC;IAEvF;;OAEG;IACI,MAAM,CAAU,gBAAgB,GAAG,yBAAyB,CAAC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C,cAAc,CAAC;YAC9E,KAAK,iBAAiB,CAAC,CAAC,OAAO,oBAAoB,CAAC,YAAY,CAAC;YACjE,KAAK,yBAAyB,CAAC,CAAC,OAAO,oBAAoB,CAAC,aAAa,CAAC;YAC1E,KAAK,iCAAiC,CAAC,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC;YAC3E,KAAK,yBAAyB,CAAC,CAAC,OAAO,oBAAoB,CAAC,gBAAgB,CAAC;YAC7E,OAAO,CAAC,CAAC,OAAO,UAAU,CAAC;SAC9B;IACL,CAAC;IAde,8BAAiB,oBAchC,CAAA;AACL,CAAC,EAhBgB,YAAY,KAAZ,YAAY,QAgB5B","file":"azure-constants.js","sourcesContent":["export class AzureConstants {\r\n /**\r\n * Azure Resource Manager endpoint - Azure Global/Public cloud.\r\n */\r\n public static readonly azureGlobalArmEndpoint = 'https://management.azure.com';\r\n\r\n /**\r\n * Azure public portal.\r\n */\r\n public static readonly azureGlobalPortal = 'https://portal.azure.com';\r\n\r\n /**\r\n * Azure Resource Manager endpoint - Azure China cloud.\r\n */\r\n public static readonly azureChinaArmEndpoint = 'https://management.chinacloudapi.cn';\r\n\r\n /**\r\n * Azure China portal.\r\n */\r\n public static readonly azureChinaPortal = 'https://portal.azure.cn';\r\n\r\n /**\r\n * Azure Resource Manager endpoint - Azure US Govenment/Fairfax/Arlington.\r\n */\r\n public static readonly azureUSGovArmEndpoint = 'https://management.usgovcloudapi.net';\r\n\r\n /**\r\n * Azure US Government portal.\r\n */\r\n public static readonly azureUSGovPortal = 'https://portal.azure.us';\r\n\r\n public static readonly armApiVersion = '?api-version=2016-06-01';\r\n public static readonly azureSubscriptionUrl = '{0}/subscriptions?api-version=2016-06-01';\r\n public static readonly armDeploymentUrl =\r\n '{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}?api-version=2018-02-01';\r\n public static readonly validateAzureTemplate =\r\n '{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}/validate?api-version=2018-05-01';\r\n public static readonly getAllGeoLocations = '{0}/subscriptions/{1}/locations?api-version=2016-06-01';\r\n public static readonly getResourceGroupsUri = '{0}/subscriptions/{1}/resourcegroups?api-version=2018-02-01';\r\n\r\n // Resource groups.\r\n public static readonly listResourceGroups = '{0}/subscriptions/{1}/resourcegroups?api-version=2018-05-01';\r\n public static readonly listResourceGroupsWithParameters =\r\n '{0}/subscriptions/{1}/resourcegroups?$filter={2}&$top={3}api-version=2018-05-01';\r\n public static readonly resourceGroupUrl = '{0}/subscriptions/{1}/resourcegroups/{2}?api-version=2018-05-01';\r\n\r\n // Template deployment urls.\r\n public static readonly ArmDeploymentUrl =\r\n '{0}/subscriptions/{1}/resourcegroups/{2}/providers/Microsoft.Resources/deployments/{3}?api-version=2018-02-01';\r\n\r\n // Request header keys and values\r\n public static readonly bearer = 'Bearer ';\r\n public static readonly authorizationHeaderKey = 'Authorization';\r\n public static readonly acceptLanguageHeaderKey = 'Accept-Language';\r\n public static readonly clientRequestHeaderKey = 'x-ms-client-request-id';\r\n public static readonly returnClientRequestHeaderKey = 'x-ms-return-client-request-id';\r\n\r\n // TODO: Remove work around for telemetry. Client request id shouldnt have any parameters.\r\n public static readonly telemetryDataParameter = 'telemetryData={0}; ';\r\n public static readonly telemetryDataInvalidValue = 'invalid';\r\n public static readonly integrationTypeDataParameter = 'integrationType={0}; ';\r\n public static readonly clientRequestIdQualifier = '{0}; ';\r\n public static readonly sourceParameter = 'source=WindowsAdminCenter';\r\n public static readonly maxEncodedTelemetryDataLength = 512;\r\n public static readonly resourceDeploymentSubstring = 'Microsoft.Resources/deployments';\r\n\r\n // ms-graph resource endpoint\r\n public static readonly graphResourceEndpoint = '/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01';\r\n\r\n // ms-graph query\r\n public static readonly resourceTypeFilterQuery = `resources \r\n | extend parsedProperties = parse_json(properties) \r\n | extend computerName = parsedProperties.osProfile.computerName \r\n | where (type == \\\"microsoft.hybridcompute/machines\\\" or type == \\\"microsoft.compute/virtualmachines\\\") and tolower(computerName) in ({0}) \r\n | project arcStatus = properties.status, nodeName = computerName, type`;\r\n public static readonly azureVmsFilterQuery = `resources \r\n | extend parsedProperties = parse_json(properties) \r\n | extend computerName = parsedProperties.osProfile.computerName \r\n | where (type == \"microsoft.compute/virtualmachines\") and tolower(computerName) in ({0})\r\n | project nodeName = computerName, type`;\r\n\r\n public static readonly virtualMachine = \"microsoft.compute/virtualmachines\";\r\n\r\n /**\r\n * WAC URLS for azure arc machine agent\r\n */\r\n public static readonly arcMachineAgentIssuesURL = \"https://go.microsoft.com/fwlink/?linkid=2248533\";\r\n public static readonly expiredArcMachineAgentURL = \"https://learn.microsoft.com/azure/azure-arc/servers/manage-agent?tabs=windows#step-2-disconnect-the-server-from-azure-arc\";\r\n\r\n /**\r\n * The interval of running the graph query call.\r\n * In this case it's 15 minutes\r\n */\r\n public static graphQueryInterval = 900000;\r\n public static readonly arcStatusGraphQueryDelay = 7000;\r\n public static readonly arcStatusGraphQueryRetryCount = 8;\r\n}\r\n\r\n/*\r\n * Azure integration type is used to distinguish which Azure tool/service in Windows Admin Center is making a\r\n * Azure resource management (ARM) call. If only one repository has one tool/service, this will be inferred based\r\n * on the name of the module. If a repository has more than one tool/service then the integration type needs to be\r\n * explicitly set when calling this.appContextService.azureManagerService.createRequestWithHeaders() or when a\r\n * method like this.appContextService.azureManagerService.getSubscriptions() is called.\r\n */\r\nexport enum AzureIntegrationType {\r\n Backup = 'Backup',\r\n Bridge = 'Bridge',\r\n FileSync = 'FileSync',\r\n HybridServices = 'HybridServices',\r\n Monitor = 'Monitor',\r\n NetworkAdapter = 'NetworkAdapter',\r\n SecurityCenter = 'SecurityCenter',\r\n SiteRecovery = 'SiteRecovery',\r\n AzureMigrate = 'AzureMigrate',\r\n SubnetStretch = 'SubnetStretch',\r\n S2SVPN = 'S2SVPN',\r\n UpdateManagement = 'UpdateManagement',\r\n VirtualMachineCreation = 'VirtualMachineCreation',\r\n VirtualMachineSelection = 'VirtualMachineSelection'\r\n}\r\n\r\nexport namespace ArmTelemetry {\r\n export function toIntegrationType(moduleName: string): string {\r\n switch (moduleName) {\r\n case 'msft.azure.azure-backup': return AzureIntegrationType.Backup;\r\n case 'msft.sme.azure-file-sync': return AzureIntegrationType.FileSync;\r\n case 'msft.sme.azure-center': return AzureIntegrationType.HybridServices;\r\n case 'msft.sme.server-manager': return AzureIntegrationType.Monitor;\r\n case 'msft.sme.network-settings': return AzureIntegrationType.NetworkAdapter;\r\n case 'msft.azure.security-center': return AzureIntegrationType.SecurityCenter;\r\n case 'msft.sme.hyperv': return AzureIntegrationType.SiteRecovery;\r\n case 'msft.sme.subnet-stretch': return AzureIntegrationType.SubnetStretch;\r\n case 'msft.sdn.vgw-network-connection': return AzureIntegrationType.S2SVPN;\r\n case 'msft.sme.windows-update': return AzureIntegrationType.UpdateManagement;\r\n default: return moduleName;\r\n }\r\n }\r\n}\r\n"]}
@@ -263,7 +263,7 @@ declare namespace MsftSme {
263
263
  */
264
264
  function extendStringMapIntoMap<T, U>(objToExtend: StringMap<U>, sourceItems: StringMap<T>, getValueCallback?: (item: T, key?: string) => U, onlyIfNotExist?: boolean): void;
265
265
  /**
266
- * Helpers funciton to create a object lightweight constructor
266
+ * Helper function to create a object lightweight constructor
267
267
  *
268
268
  * @param keys the ordered argument keys
269
269
  *
@@ -272,7 +272,7 @@ declare namespace MsftSme {
272
272
  function getStringMapFunc(...keys: string[]): Func<StringMap<any>>;
273
273
  function getStringMapFunc(keys: string[]): Func<StringMap<any>>;
274
274
  /**
275
- * Helpers funciton to create a object lightweight constructor
275
+ * Helper funciton to create a object lightweight constructor
276
276
  *
277
277
  * @param keys the ordered argument keys
278
278
  *
@@ -280,7 +280,7 @@ declare namespace MsftSme {
280
280
  */
281
281
  function applyStringMapFunc(keys: string[]): Func<StringMap<any>>;
282
282
  /**
283
- * Helpers funciton to create a object of type NameValue<N, T>
283
+ * Helper funciton to create a object of type NameValue<N, T>
284
284
  *
285
285
  * @param name name
286
286
  * @param value value