@azure-rest/iot-device-update 1.0.1-alpha.20241219.1 → 1.1.0-alpha.20241223.1

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 (133) hide show
  1. package/dist/browser/clientDefinitions.d.ts +51 -51
  2. package/dist/browser/clientDefinitions.js.map +1 -1
  3. package/dist/browser/deviceUpdate.d.ts +12 -1
  4. package/dist/browser/deviceUpdate.d.ts.map +1 -1
  5. package/dist/browser/deviceUpdate.js +31 -9
  6. package/dist/browser/deviceUpdate.js.map +1 -1
  7. package/dist/browser/isUnexpected.d.ts +51 -51
  8. package/dist/browser/isUnexpected.js +37 -30
  9. package/dist/browser/isUnexpected.js.map +1 -1
  10. package/dist/browser/logger.d.ts +2 -0
  11. package/dist/browser/logger.d.ts.map +1 -0
  12. package/dist/browser/logger.js +5 -0
  13. package/dist/browser/logger.js.map +1 -0
  14. package/dist/browser/models.d.ts +11 -10
  15. package/dist/browser/models.d.ts.map +1 -1
  16. package/dist/browser/models.js.map +1 -1
  17. package/dist/browser/outputModels.d.ts +53 -5
  18. package/dist/browser/outputModels.d.ts.map +1 -1
  19. package/dist/browser/outputModels.js.map +1 -1
  20. package/dist/browser/paginateHelper.d.ts +27 -2
  21. package/dist/browser/paginateHelper.d.ts.map +1 -1
  22. package/dist/browser/paginateHelper.js +98 -1
  23. package/dist/browser/paginateHelper.js.map +1 -1
  24. package/dist/browser/parameters.d.ts +7 -5
  25. package/dist/browser/parameters.d.ts.map +1 -1
  26. package/dist/browser/parameters.js.map +1 -1
  27. package/dist/browser/pollingHelper.d.ts +67 -2
  28. package/dist/browser/pollingHelper.d.ts.map +1 -1
  29. package/dist/browser/pollingHelper.js +65 -9
  30. package/dist/browser/pollingHelper.js.map +1 -1
  31. package/dist/browser/responses.d.ts +50 -62
  32. package/dist/browser/responses.d.ts.map +1 -1
  33. package/dist/browser/responses.js.map +1 -1
  34. package/dist/commonjs/clientDefinitions.d.ts +51 -51
  35. package/dist/commonjs/clientDefinitions.js.map +1 -1
  36. package/dist/commonjs/deviceUpdate.d.ts +12 -1
  37. package/dist/commonjs/deviceUpdate.d.ts.map +1 -1
  38. package/dist/commonjs/deviceUpdate.js +31 -9
  39. package/dist/commonjs/deviceUpdate.js.map +1 -1
  40. package/dist/commonjs/isUnexpected.d.ts +51 -51
  41. package/dist/commonjs/isUnexpected.js +37 -30
  42. package/dist/commonjs/isUnexpected.js.map +1 -1
  43. package/dist/commonjs/logger.d.ts +2 -0
  44. package/dist/commonjs/logger.d.ts.map +1 -0
  45. package/dist/commonjs/logger.js +8 -0
  46. package/dist/commonjs/logger.js.map +1 -0
  47. package/dist/commonjs/models.d.ts +11 -10
  48. package/dist/commonjs/models.d.ts.map +1 -1
  49. package/dist/commonjs/models.js.map +1 -1
  50. package/dist/commonjs/outputModels.d.ts +53 -5
  51. package/dist/commonjs/outputModels.d.ts.map +1 -1
  52. package/dist/commonjs/outputModels.js.map +1 -1
  53. package/dist/commonjs/paginateHelper.d.ts +27 -2
  54. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  55. package/dist/commonjs/paginateHelper.js +99 -2
  56. package/dist/commonjs/paginateHelper.js.map +1 -1
  57. package/dist/commonjs/parameters.d.ts +7 -5
  58. package/dist/commonjs/parameters.d.ts.map +1 -1
  59. package/dist/commonjs/parameters.js.map +1 -1
  60. package/dist/commonjs/pollingHelper.d.ts +67 -2
  61. package/dist/commonjs/pollingHelper.d.ts.map +1 -1
  62. package/dist/commonjs/pollingHelper.js +64 -8
  63. package/dist/commonjs/pollingHelper.js.map +1 -1
  64. package/dist/commonjs/responses.d.ts +50 -62
  65. package/dist/commonjs/responses.d.ts.map +1 -1
  66. package/dist/commonjs/responses.js.map +1 -1
  67. package/dist/esm/clientDefinitions.d.ts +51 -51
  68. package/dist/esm/clientDefinitions.js.map +1 -1
  69. package/dist/esm/deviceUpdate.d.ts +12 -1
  70. package/dist/esm/deviceUpdate.d.ts.map +1 -1
  71. package/dist/esm/deviceUpdate.js +31 -9
  72. package/dist/esm/deviceUpdate.js.map +1 -1
  73. package/dist/esm/isUnexpected.d.ts +51 -51
  74. package/dist/esm/isUnexpected.js +37 -30
  75. package/dist/esm/isUnexpected.js.map +1 -1
  76. package/dist/esm/logger.d.ts +2 -0
  77. package/dist/esm/logger.d.ts.map +1 -0
  78. package/dist/esm/logger.js +5 -0
  79. package/dist/esm/logger.js.map +1 -0
  80. package/dist/esm/models.d.ts +11 -10
  81. package/dist/esm/models.d.ts.map +1 -1
  82. package/dist/esm/models.js.map +1 -1
  83. package/dist/esm/outputModels.d.ts +53 -5
  84. package/dist/esm/outputModels.d.ts.map +1 -1
  85. package/dist/esm/outputModels.js.map +1 -1
  86. package/dist/esm/paginateHelper.d.ts +27 -2
  87. package/dist/esm/paginateHelper.d.ts.map +1 -1
  88. package/dist/esm/paginateHelper.js +98 -1
  89. package/dist/esm/paginateHelper.js.map +1 -1
  90. package/dist/esm/parameters.d.ts +7 -5
  91. package/dist/esm/parameters.d.ts.map +1 -1
  92. package/dist/esm/parameters.js.map +1 -1
  93. package/dist/esm/pollingHelper.d.ts +67 -2
  94. package/dist/esm/pollingHelper.d.ts.map +1 -1
  95. package/dist/esm/pollingHelper.js +65 -9
  96. package/dist/esm/pollingHelper.js.map +1 -1
  97. package/dist/esm/responses.d.ts +50 -62
  98. package/dist/esm/responses.d.ts.map +1 -1
  99. package/dist/esm/responses.js.map +1 -1
  100. package/dist/react-native/clientDefinitions.d.ts +51 -51
  101. package/dist/react-native/clientDefinitions.js.map +1 -1
  102. package/dist/react-native/deviceUpdate.d.ts +12 -1
  103. package/dist/react-native/deviceUpdate.d.ts.map +1 -1
  104. package/dist/react-native/deviceUpdate.js +31 -9
  105. package/dist/react-native/deviceUpdate.js.map +1 -1
  106. package/dist/react-native/isUnexpected.d.ts +51 -51
  107. package/dist/react-native/isUnexpected.js +37 -30
  108. package/dist/react-native/isUnexpected.js.map +1 -1
  109. package/dist/react-native/logger.d.ts +2 -0
  110. package/dist/react-native/logger.d.ts.map +1 -0
  111. package/dist/react-native/logger.js +5 -0
  112. package/dist/react-native/logger.js.map +1 -0
  113. package/dist/react-native/models.d.ts +11 -10
  114. package/dist/react-native/models.d.ts.map +1 -1
  115. package/dist/react-native/models.js.map +1 -1
  116. package/dist/react-native/outputModels.d.ts +53 -5
  117. package/dist/react-native/outputModels.d.ts.map +1 -1
  118. package/dist/react-native/outputModels.js.map +1 -1
  119. package/dist/react-native/paginateHelper.d.ts +27 -2
  120. package/dist/react-native/paginateHelper.d.ts.map +1 -1
  121. package/dist/react-native/paginateHelper.js +98 -1
  122. package/dist/react-native/paginateHelper.js.map +1 -1
  123. package/dist/react-native/parameters.d.ts +7 -5
  124. package/dist/react-native/parameters.d.ts.map +1 -1
  125. package/dist/react-native/parameters.js.map +1 -1
  126. package/dist/react-native/pollingHelper.d.ts +67 -2
  127. package/dist/react-native/pollingHelper.d.ts.map +1 -1
  128. package/dist/react-native/pollingHelper.js +65 -9
  129. package/dist/react-native/pollingHelper.js.map +1 -1
  130. package/dist/react-native/responses.d.ts +50 -62
  131. package/dist/react-native/responses.d.ts.map +1 -1
  132. package/dist/react-native/responses.js.map +1 -1
  133. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsalC,oCAsKC;AA9dD,MAAM,WAAW,GAA6B;IAC5C,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,gDAAgD,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAChE,+CAA+C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC/D,6FAA6F,EAAE;QAC7F,KAAK;QACL,KAAK;KACN;IACD,gGAAgG,EAC9F,CAAC,KAAK,CAAC;IACT,kDAAkD,EAAE,CAAC,KAAK,CAAC;IAC3D,mEAAmE,EAAE,CAAC,KAAK,CAAC;IAC5E,mFAAmF,EA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;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DeviceUpdateListUpdates200Response,\n DeviceUpdateListUpdatesdefaultResponse,\n DeviceUpdateImportUpdate200Response,\n DeviceUpdateImportUpdate202Response,\n DeviceUpdateImportUpdatedefaultResponse,\n DeviceUpdateGetUpdate200Response,\n DeviceUpdateGetUpdate304Response,\n DeviceUpdateGetUpdatedefaultResponse,\n DeviceUpdateDeleteUpdate202Response,\n DeviceUpdateDeleteUpdatedefaultResponse,\n DeviceUpdateListProviders200Response,\n DeviceUpdateListProvidersdefaultResponse,\n DeviceUpdateListNames200Response,\n DeviceUpdateListNamesdefaultResponse,\n DeviceUpdateListVersions200Response,\n DeviceUpdateListVersionsdefaultResponse,\n DeviceUpdateListFiles200Response,\n DeviceUpdateListFilesdefaultResponse,\n DeviceUpdateGetFile200Response,\n DeviceUpdateGetFile304Response,\n DeviceUpdateGetFiledefaultResponse,\n DeviceUpdateListOperationStatuses200Response,\n DeviceUpdateListOperationStatusesdefaultResponse,\n DeviceUpdateGetOperationStatus200Response,\n DeviceUpdateGetOperationStatus304Response,\n DeviceUpdateGetOperationStatusdefaultResponse,\n DeviceManagementListDeviceClasses200Response,\n DeviceManagementListDeviceClassesdefaultResponse,\n DeviceManagementGetDeviceClass200Response,\n DeviceManagementGetDeviceClassdefaultResponse,\n DeviceManagementUpdateDeviceClass200Response,\n DeviceManagementUpdateDeviceClassdefaultResponse,\n DeviceManagementDeleteDeviceClass204Response,\n DeviceManagementDeleteDeviceClassdefaultResponse,\n DeviceManagementListInstallableUpdatesForDeviceClass200Response,\n DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n DeviceManagementListDevices200Response,\n DeviceManagementListDevicesdefaultResponse,\n DeviceManagementImportDevices202Response,\n DeviceManagementImportDevicesdefaultResponse,\n DeviceManagementGetDevice200Response,\n DeviceManagementGetDevicedefaultResponse,\n DeviceManagementGetDeviceModule200Response,\n DeviceManagementGetDeviceModuledefaultResponse,\n DeviceManagementGetUpdateCompliance200Response,\n DeviceManagementGetUpdateCompliancedefaultResponse,\n DeviceManagementListGroups200Response,\n DeviceManagementListGroupsdefaultResponse,\n DeviceManagementGetGroup200Response,\n DeviceManagementGetGroupdefaultResponse,\n DeviceManagementDeleteGroup204Response,\n DeviceManagementDeleteGroupdefaultResponse,\n DeviceManagementGetUpdateComplianceForGroup200Response,\n DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n DeviceManagementListBestUpdatesForGroup200Response,\n DeviceManagementListBestUpdatesForGroupdefaultResponse,\n DeviceManagementListDeploymentsForGroup200Response,\n DeviceManagementListDeploymentsForGroupdefaultResponse,\n DeviceManagementGetDeployment200Response,\n DeviceManagementGetDeploymentdefaultResponse,\n DeviceManagementCreateOrUpdateDeployment200Response,\n DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n DeviceManagementDeleteDeployment204Response,\n DeviceManagementDeleteDeploymentdefaultResponse,\n DeviceManagementGetDeploymentStatus200Response,\n DeviceManagementGetDeploymentStatusdefaultResponse,\n DeviceManagementListDeviceClassSubgroupsForGroup200Response,\n DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n DeviceManagementGetDeviceClassSubgroup200Response,\n DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n DeviceManagementDeleteDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n DeviceManagementListDeploymentsForDeviceClassSubgroup200Response,\n DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n DeviceManagementGetDeploymentForDeviceClassSubgroup200Response,\n DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n DeviceManagementStopDeployment200Response,\n DeviceManagementStopDeploymentdefaultResponse,\n DeviceManagementRetryDeployment200Response,\n DeviceManagementRetryDeploymentdefaultResponse,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n DeviceManagementGetOperationStatus200Response,\n DeviceManagementGetOperationStatus304Response,\n DeviceManagementGetOperationStatusdefaultResponse,\n DeviceManagementListOperationStatuses200Response,\n DeviceManagementListOperationStatusesdefaultResponse,\n DeviceManagementStartLogCollection201Response,\n DeviceManagementStartLogCollectiondefaultResponse,\n DeviceManagementGetLogCollection200Response,\n DeviceManagementGetLogCollectiondefaultResponse,\n DeviceManagementListLogCollections200Response,\n DeviceManagementListLogCollectionsdefaultResponse,\n DeviceManagementGetLogCollectionDetailedStatus200Response,\n DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n DeviceManagementListHealthOfDevices200Response,\n DeviceManagementListHealthOfDevicesdefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /deviceUpdate/{instanceId}/updates\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\": [\n \"200\",\n \"304\",\n ],\n \"DELETE /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\":\n [\"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\":\n [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/devices\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\n \"204\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"204\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\":\n [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/operations\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"201\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse,\n): response is DeviceUpdateListUpdatesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse,\n): response is DeviceUpdateImportUpdatedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse,\n): response is DeviceUpdateGetUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse,\n): response is DeviceUpdateDeleteUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse,\n): response is DeviceUpdateListProvidersdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse,\n): response is DeviceUpdateListNamesdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse,\n): response is DeviceUpdateListVersionsdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse,\n): response is DeviceUpdateListFilesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse,\n): response is DeviceUpdateGetFiledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesdefaultResponse,\n): response is DeviceUpdateListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse,\n): response is DeviceUpdateGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesdefaultResponse,\n): response is DeviceManagementListDeviceClassesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassdefaultResponse,\n): response is DeviceManagementGetDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassdefaultResponse,\n): response is DeviceManagementUpdateDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n): response is DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse,\n): response is DeviceManagementListDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse,\n): response is DeviceManagementImportDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse,\n): response is DeviceManagementGetDevicedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuledefaultResponse,\n): response is DeviceManagementGetDeviceModuledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse,\n): response is DeviceManagementListGroupsdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse,\n): response is DeviceManagementGetGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse,\n): response is DeviceManagementDeleteGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n): response is DeviceManagementGetUpdateComplianceForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse,\n): response is DeviceManagementListBestUpdatesForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse,\n): response is DeviceManagementGetDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n): response is DeviceManagementCreateOrUpdateDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentdefaultResponse,\n): response is DeviceManagementDeleteDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n): response is DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentdefaultResponse,\n): response is DeviceManagementStopDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentdefaultResponse,\n): response is DeviceManagementRetryDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse,\n): response is DeviceManagementGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse,\n): response is DeviceManagementListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse,\n): response is DeviceManagementStartLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectiondefaultResponse,\n): response is DeviceManagementGetLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse,\n): response is DeviceManagementListLogCollectionsdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n): response is DeviceManagementGetLogCollectionDetailedStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse,\n): response is DeviceManagementListHealthOfDevicesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListUpdates200Response\n | DeviceUpdateListUpdatesdefaultResponse\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse\n | DeviceUpdateDeleteUpdate202Response\n | DeviceUpdateDeleteUpdatedefaultResponse\n | DeviceUpdateListProviders200Response\n | DeviceUpdateListProvidersdefaultResponse\n | DeviceUpdateListNames200Response\n | DeviceUpdateListNamesdefaultResponse\n | DeviceUpdateListVersions200Response\n | DeviceUpdateListVersionsdefaultResponse\n | DeviceUpdateListFiles200Response\n | DeviceUpdateListFilesdefaultResponse\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesdefaultResponse\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesdefaultResponse\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassdefaultResponse\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassdefaultResponse\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassdefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n | DeviceManagementListDevices200Response\n | DeviceManagementListDevicesdefaultResponse\n | DeviceManagementImportDevices202Response\n | DeviceManagementImportDevicesdefaultResponse\n | DeviceManagementGetDevice200Response\n | DeviceManagementGetDevicedefaultResponse\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuledefaultResponse\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse\n | DeviceManagementListGroups200Response\n | DeviceManagementListGroupsdefaultResponse\n | DeviceManagementGetGroup200Response\n | DeviceManagementGetGroupdefaultResponse\n | DeviceManagementDeleteGroup204Response\n | DeviceManagementDeleteGroupdefaultResponse\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n | DeviceManagementGetDeployment200Response\n | DeviceManagementGetDeploymentdefaultResponse\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentdefaultResponse\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentdefaultResponse\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectiondefaultResponse\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse,\n): response is\n | DeviceUpdateListUpdatesdefaultResponse\n | DeviceUpdateImportUpdatedefaultResponse\n | DeviceUpdateGetUpdatedefaultResponse\n | DeviceUpdateDeleteUpdatedefaultResponse\n | DeviceUpdateListProvidersdefaultResponse\n | DeviceUpdateListNamesdefaultResponse\n | DeviceUpdateListVersionsdefaultResponse\n | DeviceUpdateListFilesdefaultResponse\n | DeviceUpdateGetFiledefaultResponse\n | DeviceUpdateListOperationStatusesdefaultResponse\n | DeviceUpdateGetOperationStatusdefaultResponse\n | DeviceManagementListDeviceClassesdefaultResponse\n | DeviceManagementGetDeviceClassdefaultResponse\n | DeviceManagementUpdateDeviceClassdefaultResponse\n | DeviceManagementDeleteDeviceClassdefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n | DeviceManagementListDevicesdefaultResponse\n | DeviceManagementImportDevicesdefaultResponse\n | DeviceManagementGetDevicedefaultResponse\n | DeviceManagementGetDeviceModuledefaultResponse\n | DeviceManagementGetUpdateCompliancedefaultResponse\n | DeviceManagementListGroupsdefaultResponse\n | DeviceManagementGetGroupdefaultResponse\n | DeviceManagementDeleteGroupdefaultResponse\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n | DeviceManagementGetDeploymentdefaultResponse\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n | DeviceManagementDeleteDeploymentdefaultResponse\n | DeviceManagementGetDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementStopDeploymentdefaultResponse\n | DeviceManagementRetryDeploymentdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n | DeviceManagementGetOperationStatusdefaultResponse\n | DeviceManagementListOperationStatusesdefaultResponse\n | DeviceManagementStartLogCollectiondefaultResponse\n | DeviceManagementGetLogCollectiondefaultResponse\n | DeviceManagementListLogCollectionsdefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n | DeviceManagementListHealthOfDevicesdefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = geParametrizedPathSuccess(url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction geParametrizedPathSuccess(path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // If the candidate and actual paths don't match in size\n // we move on to the next candidate path\n if (candidateParts.length === pathParts.length && hasParametrizedPath(key)) {\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = 0; i < candidateParts.length; i++) {\n if (candidateParts[i].startsWith(\"{\") && candidateParts[i].endsWith(\"}\")) {\n // If the current part of the candidate is a \"template\" part\n // it is a match with the actual path part on hand\n // skip as the parameterized part can match anything\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[i]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // if all parts matched we return the success values form\n // the path mapping.\n if (found) {\n return value;\n }\n }\n }\n\n // No match was found, return an empty array.\n return [];\n}\n\nfunction hasParametrizedPath(path: string): boolean {\n return path.includes(\"/{\");\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsalC,oCAsKC;AA9dD,MAAM,WAAW,GAA6B;IAC5C,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,+CAA+C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC/D,gDAAgD,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAChE,6FAA6F,EAAE;QAC7F,KAAK;QACL,KAAK;KACN;IACD,gGAAgG,EAC9F,CAAC,KAAK,CAAC;IACT,kDAAkD,EAAE,CAAC,KAAK,CAAC;IAC3D,mEAAmE,EAAE,CAAC,KAAK,CAAC;IAC5E,mFAAmF,EAAE,CAAC,KAAK,CAAC;IAC5F,mGAAmG,EACjG,CAAC,KAAK,CAAC;IACT,4GAA4G,EAC1G,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,mDAAmD,EAAE,CAAC,KAAK,CAAC;IAC5D,iEAAiE,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjF,yDAAyD,EAAE,CAAC,KAAK,CAAC;IAClE,yEAAyE,EAAE,CAAC,KAAK,CAAC;IAClF,2EAA2E,EAAE,CAAC,KAAK,CAAC;IACpF,4EAA4E,EAAE,CAAC,KAAK,CAAC;IACrF,4FAA4F,EAAE;QAC5F,KAAK;KACN;IACD,mDAAmD,EAAE,CAAC,KAAK,CAAC;IAC5D,0DAA0D,EAAE,CAAC,KAAK,CAAC;IACnE,2DAA2D,EAAE,CAAC,KAAK,CAAC;IACpE,8DAA8D,EAAE,CAAC,KAAK,CAAC;IACvE,iFAAiF,EAAE,CAAC,KAAK,CAAC;IAC1F,4DAA4D,EAAE,CAAC,KAAK,CAAC;IACrE,kDAAkD,EAAE,CAAC,KAAK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S,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DeviceUpdateListUpdates200Response,\n DeviceUpdateListUpdatesDefaultResponse,\n DeviceUpdateImportUpdate200Response,\n DeviceUpdateImportUpdate202Response,\n DeviceUpdateImportUpdateDefaultResponse,\n DeviceUpdateGetUpdate200Response,\n DeviceUpdateGetUpdate304Response,\n DeviceUpdateGetUpdateDefaultResponse,\n DeviceUpdateDeleteUpdate202Response,\n DeviceUpdateDeleteUpdateDefaultResponse,\n DeviceUpdateListProviders200Response,\n DeviceUpdateListProvidersDefaultResponse,\n DeviceUpdateListNames200Response,\n DeviceUpdateListNamesDefaultResponse,\n DeviceUpdateListVersions200Response,\n DeviceUpdateListVersionsDefaultResponse,\n DeviceUpdateListFiles200Response,\n DeviceUpdateListFilesDefaultResponse,\n DeviceUpdateGetFile200Response,\n DeviceUpdateGetFile304Response,\n DeviceUpdateGetFileDefaultResponse,\n DeviceUpdateListOperationStatuses200Response,\n DeviceUpdateListOperationStatusesDefaultResponse,\n DeviceUpdateGetOperationStatus200Response,\n DeviceUpdateGetOperationStatus304Response,\n DeviceUpdateGetOperationStatusDefaultResponse,\n DeviceManagementListDeviceClasses200Response,\n DeviceManagementListDeviceClassesDefaultResponse,\n DeviceManagementGetDeviceClass200Response,\n DeviceManagementGetDeviceClassDefaultResponse,\n DeviceManagementUpdateDeviceClass200Response,\n DeviceManagementUpdateDeviceClassDefaultResponse,\n DeviceManagementDeleteDeviceClass204Response,\n DeviceManagementDeleteDeviceClassDefaultResponse,\n DeviceManagementListInstallableUpdatesForDeviceClass200Response,\n DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse,\n DeviceManagementListDevices200Response,\n DeviceManagementListDevicesDefaultResponse,\n DeviceManagementImportDevices202Response,\n DeviceManagementImportDevicesDefaultResponse,\n DeviceManagementGetDevice200Response,\n DeviceManagementGetDeviceDefaultResponse,\n DeviceManagementGetDeviceModule200Response,\n DeviceManagementGetDeviceModuleDefaultResponse,\n DeviceManagementGetUpdateCompliance200Response,\n DeviceManagementGetUpdateComplianceDefaultResponse,\n DeviceManagementListGroups200Response,\n DeviceManagementListGroupsDefaultResponse,\n DeviceManagementGetGroup200Response,\n DeviceManagementGetGroupDefaultResponse,\n DeviceManagementDeleteGroup204Response,\n DeviceManagementDeleteGroupDefaultResponse,\n DeviceManagementGetUpdateComplianceForGroup200Response,\n DeviceManagementGetUpdateComplianceForGroupDefaultResponse,\n DeviceManagementListBestUpdatesForGroup200Response,\n DeviceManagementListBestUpdatesForGroupDefaultResponse,\n DeviceManagementListDeploymentsForGroup200Response,\n DeviceManagementListDeploymentsForGroupDefaultResponse,\n DeviceManagementGetDeployment200Response,\n DeviceManagementGetDeploymentDefaultResponse,\n DeviceManagementCreateOrUpdateDeployment200Response,\n DeviceManagementCreateOrUpdateDeploymentDefaultResponse,\n DeviceManagementDeleteDeployment204Response,\n DeviceManagementDeleteDeploymentDefaultResponse,\n DeviceManagementGetDeploymentStatus200Response,\n DeviceManagementGetDeploymentStatusDefaultResponse,\n DeviceManagementListDeviceClassSubgroupsForGroup200Response,\n DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse,\n DeviceManagementGetDeviceClassSubgroup200Response,\n DeviceManagementGetDeviceClassSubgroupDefaultResponse,\n DeviceManagementDeleteDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeviceClassSubgroupDefaultResponse,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response,\n DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse,\n DeviceManagementListDeploymentsForDeviceClassSubgroup200Response,\n DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse,\n DeviceManagementGetDeploymentForDeviceClassSubgroup200Response,\n DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse,\n DeviceManagementStopDeployment200Response,\n DeviceManagementStopDeploymentDefaultResponse,\n DeviceManagementRetryDeployment200Response,\n DeviceManagementRetryDeploymentDefaultResponse,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse,\n DeviceManagementGetOperationStatus200Response,\n DeviceManagementGetOperationStatus304Response,\n DeviceManagementGetOperationStatusDefaultResponse,\n DeviceManagementListOperationStatuses200Response,\n DeviceManagementListOperationStatusesDefaultResponse,\n DeviceManagementStartLogCollection201Response,\n DeviceManagementStartLogCollectionDefaultResponse,\n DeviceManagementGetLogCollection200Response,\n DeviceManagementGetLogCollectionDefaultResponse,\n DeviceManagementListLogCollections200Response,\n DeviceManagementListLogCollectionsDefaultResponse,\n DeviceManagementGetLogCollectionDetailedStatus200Response,\n DeviceManagementGetLogCollectionDetailedStatusDefaultResponse,\n DeviceManagementListHealthOfDevices200Response,\n DeviceManagementListHealthOfDevicesDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /deviceUpdate/{instanceId}/updates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"POST /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\": [\n \"200\",\n \"304\",\n ],\n \"DELETE /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\":\n [\"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\":\n [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/devices\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"POST /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\n \"204\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"204\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\":\n [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/operations\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"201\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse,\n): response is DeviceUpdateListUpdatesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdateDefaultResponse,\n): response is DeviceUpdateImportUpdateDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdateDefaultResponse,\n): response is DeviceUpdateGetUpdateDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse,\n): response is DeviceUpdateDeleteUpdateDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse,\n): response is DeviceUpdateListProvidersDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse,\n): response is DeviceUpdateListNamesDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse,\n): response is DeviceUpdateListVersionsDefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse,\n): response is DeviceUpdateListFilesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFileDefaultResponse,\n): response is DeviceUpdateGetFileDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesDefaultResponse,\n): response is DeviceUpdateListOperationStatusesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusDefaultResponse,\n): response is DeviceUpdateGetOperationStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesDefaultResponse,\n): response is DeviceManagementListDeviceClassesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassDefaultResponse,\n): response is DeviceManagementGetDeviceClassDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassDefaultResponse,\n): response is DeviceManagementUpdateDeviceClassDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassDefaultResponse,\n): response is DeviceManagementDeleteDeviceClassDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse,\n): response is DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse,\n): response is DeviceManagementListDevicesDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse,\n): response is DeviceManagementImportDevicesDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse,\n): response is DeviceManagementGetDeviceDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuleDefaultResponse,\n): response is DeviceManagementGetDeviceModuleDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateComplianceDefaultResponse,\n): response is DeviceManagementGetUpdateComplianceDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse,\n): response is DeviceManagementListGroupsDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse,\n): response is DeviceManagementGetGroupDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse,\n): response is DeviceManagementDeleteGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse,\n): response is DeviceManagementGetUpdateComplianceForGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupDefaultResponse,\n): response is DeviceManagementListBestUpdatesForGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupDefaultResponse,\n): response is DeviceManagementListDeploymentsForGroupDefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse,\n): response is DeviceManagementGetDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse,\n): response is DeviceManagementCreateOrUpdateDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentDefaultResponse,\n): response is DeviceManagementDeleteDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusDefaultResponse,\n): response is DeviceManagementGetDeploymentStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse,\n): response is DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementDeleteDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse,\n): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentDefaultResponse,\n): response is DeviceManagementStopDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentDefaultResponse,\n): response is DeviceManagementRetryDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse,\n): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusDefaultResponse,\n): response is DeviceManagementGetOperationStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesDefaultResponse,\n): response is DeviceManagementListOperationStatusesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectionDefaultResponse,\n): response is DeviceManagementStartLogCollectionDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectionDefaultResponse,\n): response is DeviceManagementGetLogCollectionDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsDefaultResponse,\n): response is DeviceManagementListLogCollectionsDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse,\n): response is DeviceManagementGetLogCollectionDetailedStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesDefaultResponse,\n): response is DeviceManagementListHealthOfDevicesDefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListUpdates200Response\n | DeviceUpdateListUpdatesDefaultResponse\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdateDefaultResponse\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdateDefaultResponse\n | DeviceUpdateDeleteUpdate202Response\n | DeviceUpdateDeleteUpdateDefaultResponse\n | DeviceUpdateListProviders200Response\n | DeviceUpdateListProvidersDefaultResponse\n | DeviceUpdateListNames200Response\n | DeviceUpdateListNamesDefaultResponse\n | DeviceUpdateListVersions200Response\n | DeviceUpdateListVersionsDefaultResponse\n | DeviceUpdateListFiles200Response\n | DeviceUpdateListFilesDefaultResponse\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFileDefaultResponse\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesDefaultResponse\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusDefaultResponse\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesDefaultResponse\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassDefaultResponse\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassDefaultResponse\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassDefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse\n | DeviceManagementListDevices200Response\n | DeviceManagementListDevicesDefaultResponse\n | DeviceManagementImportDevices202Response\n | DeviceManagementImportDevicesDefaultResponse\n | DeviceManagementGetDevice200Response\n | DeviceManagementGetDeviceDefaultResponse\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuleDefaultResponse\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateComplianceDefaultResponse\n | DeviceManagementListGroups200Response\n | DeviceManagementListGroupsDefaultResponse\n | DeviceManagementGetGroup200Response\n | DeviceManagementGetGroupDefaultResponse\n | DeviceManagementDeleteGroup204Response\n | DeviceManagementDeleteGroupDefaultResponse\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupDefaultResponse\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupDefaultResponse\n | DeviceManagementGetDeployment200Response\n | DeviceManagementGetDeploymentDefaultResponse\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentDefaultResponse\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentDefaultResponse\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusDefaultResponse\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesDefaultResponse\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectionDefaultResponse\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectionDefaultResponse\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsDefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesDefaultResponse,\n): response is\n | DeviceUpdateListUpdatesDefaultResponse\n | DeviceUpdateImportUpdateDefaultResponse\n | DeviceUpdateGetUpdateDefaultResponse\n | DeviceUpdateDeleteUpdateDefaultResponse\n | DeviceUpdateListProvidersDefaultResponse\n | DeviceUpdateListNamesDefaultResponse\n | DeviceUpdateListVersionsDefaultResponse\n | DeviceUpdateListFilesDefaultResponse\n | DeviceUpdateGetFileDefaultResponse\n | DeviceUpdateListOperationStatusesDefaultResponse\n | DeviceUpdateGetOperationStatusDefaultResponse\n | DeviceManagementListDeviceClassesDefaultResponse\n | DeviceManagementGetDeviceClassDefaultResponse\n | DeviceManagementUpdateDeviceClassDefaultResponse\n | DeviceManagementDeleteDeviceClassDefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse\n | DeviceManagementListDevicesDefaultResponse\n | DeviceManagementImportDevicesDefaultResponse\n | DeviceManagementGetDeviceDefaultResponse\n | DeviceManagementGetDeviceModuleDefaultResponse\n | DeviceManagementGetUpdateComplianceDefaultResponse\n | DeviceManagementListGroupsDefaultResponse\n | DeviceManagementGetGroupDefaultResponse\n | DeviceManagementDeleteGroupDefaultResponse\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse\n | DeviceManagementListBestUpdatesForGroupDefaultResponse\n | DeviceManagementListDeploymentsForGroupDefaultResponse\n | DeviceManagementGetDeploymentDefaultResponse\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse\n | DeviceManagementDeleteDeploymentDefaultResponse\n | DeviceManagementGetDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse\n | DeviceManagementStopDeploymentDefaultResponse\n | DeviceManagementRetryDeploymentDefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse\n | DeviceManagementGetOperationStatusDefaultResponse\n | DeviceManagementListOperationStatusesDefaultResponse\n | DeviceManagementStartLogCollectionDefaultResponse\n | DeviceManagementGetLogCollectionDefaultResponse\n | DeviceManagementListLogCollectionsDefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse\n | DeviceManagementListHealthOfDevicesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAA0C,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.logger = void 0;
6
+ const logger_1 = require("@azure/logger");
7
+ exports.logger = (0, logger_1.createClientLogger)("iot-device-update");
8
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,mBAAmB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"iot-device-update\");\n"]}
@@ -1,3 +1,4 @@
1
+ /** Update identifier. */
1
2
  export interface UpdateId {
2
3
  /** Update provider. */
3
4
  provider: string;
@@ -6,6 +7,7 @@ export interface UpdateId {
6
7
  /** Update version. */
7
8
  version: string;
8
9
  }
10
+ /** Import update input item metadata. */
9
11
  export interface ImportUpdateInputItem {
10
12
  /** Import manifest metadata like source URL, file size/hashes, etc. */
11
13
  importManifest: ImportManifestMetadata;
@@ -14,6 +16,7 @@ export interface ImportUpdateInputItem {
14
16
  /** One or more update file properties like filename and source URL. */
15
17
  files?: Array<FileImportMetadata>;
16
18
  }
19
+ /** Metadata describing the import manifest, a document which describes the files and other metadata about an update version. */
17
20
  export interface ImportManifestMetadata {
18
21
  /** Azure Blob location from which the import manifest can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */
19
22
  url: string;
@@ -22,24 +25,24 @@ export interface ImportManifestMetadata {
22
25
  /** A JSON object containing the hash(es) of the file. At least SHA256 hash is required. This object can be thought of as a set of key-value pairs where the key is the hash algorithm, and the value is the hash of the file calculated using that algorithm. */
23
26
  hashes: Record<string, string>;
24
27
  }
28
+ /** Metadata describing an update file. */
25
29
  export interface FileImportMetadata {
26
30
  /** Update file name as specified inside import manifest. */
27
31
  filename: string;
28
32
  /** Azure Blob location from which the update file can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */
29
33
  url: string;
30
34
  }
35
+ /** Update information. */
31
36
  export interface UpdateInfo {
32
37
  /** Update identifier. */
33
38
  updateId: UpdateId;
34
- /** Update description. */
35
- description?: string;
36
- /** Friendly update name. */
37
- friendlyName?: string;
38
39
  }
40
+ /** Device Class JSON Merge Patch request body */
39
41
  export interface PatchBody {
40
42
  /** The device class friendly name. Friendly name can be 1-100 characters, alphanumeric, dot, and dash. */
41
43
  friendlyName: string;
42
44
  }
45
+ /** Deployment metadata. */
43
46
  export interface Deployment {
44
47
  /** The caller-provided deployment identifier. This cannot be longer than 73 characters, must be all lower-case, and cannot contain '&', '^', '[', ']', '{', '}', '|', '<', '>', forward slash, backslash, or double quote. The Updates view in the Azure Portal IoT Hub resource generates a GUID for deploymentId when you create a deployment. */
45
48
  deploymentId: string;
@@ -60,18 +63,21 @@ export interface Deployment {
60
63
  /** Boolean flag indicating whether the deployment is a rollback deployment. */
61
64
  isCloudInitiatedRollback?: boolean;
62
65
  }
66
+ /** Rollback policy for deployment */
63
67
  export interface CloudInitiatedRollbackPolicy {
64
68
  /** Update to rollback to. */
65
69
  update: UpdateInfo;
66
70
  /** Failure conditions to initiate rollback policy. */
67
71
  failure: CloudInitiatedRollbackPolicyFailure;
68
72
  }
73
+ /** Failure conditions to initiate rollback policy */
69
74
  export interface CloudInitiatedRollbackPolicyFailure {
70
75
  /** Percentage of devices that failed. */
71
76
  devicesFailedPercentage: number;
72
77
  /** Number of devices that failed. */
73
78
  devicesFailedCount: number;
74
79
  }
80
+ /** Diagnostics request body */
75
81
  export interface LogCollection {
76
82
  /** The log collection id. */
77
83
  operationId?: string;
@@ -79,13 +85,8 @@ export interface LogCollection {
79
85
  deviceList: Array<DeviceUpdateAgentId>;
80
86
  /** Description of the diagnostics operation. */
81
87
  description?: string;
82
- /** The timestamp when the operation was created. */
83
- createdDateTime?: string;
84
- /** A timestamp for when the current state was entered. */
85
- lastActionDateTime?: string;
86
- /** Operation status. */
87
- status?: "NotStarted" | "Running" | "Succeeded" | "Failed";
88
88
  }
89
+ /** Device Update agent id */
89
90
  export interface DeviceUpdateAgentId {
90
91
  /** Device Id */
91
92
  deviceId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,cAAc,EAAE,sBAAsB,CAAC;IACvC,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,KAAK,CAAC,EAAE,KAAK,CA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,MAAM,WAAW,aAAa;IAC5B,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,6BAA6B;AAC7B,MAAM,WAAW,mBAAmB;IAClC,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport interface UpdateId {\n /** Update provider. */\n provider: string;\n /** Update name. */\n name: string;\n /** Update version. */\n version: string;\n}\n\nexport interface ImportUpdateInputItem {\n /** Import manifest metadata like source URL, file size/hashes, etc. */\n importManifest: ImportManifestMetadata;\n /** Friendly update name. */\n friendlyName?: string;\n /** One or more update file properties like filename and source URL. */\n files?: Array<FileImportMetadata>;\n}\n\nexport interface ImportManifestMetadata {\n /** Azure Blob location from which the import manifest can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */\n url: string;\n /** File size in number of bytes. */\n sizeInBytes: number;\n /** A JSON object containing the hash(es) of the file. At least SHA256 hash is required. This object can be thought of as a set of key-value pairs where the key is the hash algorithm, and the value is the hash of the file calculated using that algorithm. */\n hashes: Record<string, string>;\n}\n\nexport interface FileImportMetadata {\n /** Update file name as specified inside import manifest. */\n filename: string;\n /** Azure Blob location from which the update file can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */\n url: string;\n}\n\nexport interface UpdateInfo {\n /** Update identifier. */\n updateId: UpdateId;\n /** Update description. */\n description?: string;\n /** Friendly update name. */\n friendlyName?: string;\n}\n\nexport interface PatchBody {\n /** The device class friendly name. Friendly name can be 1-100 characters, alphanumeric, dot, and dash. */\n friendlyName: string;\n}\n\nexport interface Deployment {\n /** The caller-provided deployment identifier. This cannot be longer than 73 characters, must be all lower-case, and cannot contain '&', '^', '[', ']', '{', '}', '|', '<', '>', forward slash, backslash, or double quote. The Updates view in the Azure Portal IoT Hub resource generates a GUID for deploymentId when you create a deployment. */\n deploymentId: string;\n /** The deployment start datetime. */\n startDateTime: Date | string;\n /** Update information for the update in the deployment. */\n update: UpdateInfo;\n /** The group identity for the devices the deployment is intended to update. */\n groupId: string;\n /** The device class subgroups the deployment is compatible with and subgroup deployments have been created for. This is not provided by the caller during CreateOrUpdateDeployment but is automatically determined by Device Update */\n deviceClassSubgroups?: Array<string>;\n /** Boolean flag indicating whether the deployment was canceled. */\n isCanceled?: boolean;\n /** Boolean flag indicating whether the deployment has been retried. */\n isRetried?: boolean;\n /** The rollback policy for the deployment. */\n rollbackPolicy?: CloudInitiatedRollbackPolicy;\n /** Boolean flag indicating whether the deployment is a rollback deployment. */\n isCloudInitiatedRollback?: boolean;\n}\n\nexport interface CloudInitiatedRollbackPolicy {\n /** Update to rollback to. */\n update: UpdateInfo;\n /** Failure conditions to initiate rollback policy. */\n failure: CloudInitiatedRollbackPolicyFailure;\n}\n\nexport interface CloudInitiatedRollbackPolicyFailure {\n /** Percentage of devices that failed. */\n devicesFailedPercentage: number;\n /** Number of devices that failed. */\n devicesFailedCount: number;\n}\n\nexport interface LogCollection {\n /** The log collection id. */\n operationId?: string;\n /** Array of Device Update agent ids */\n deviceList: Array<DeviceUpdateAgentId>;\n /** Description of the diagnostics operation. */\n description?: string;\n /** The timestamp when the operation was created. */\n createdDateTime?: string;\n /** A timestamp for when the current state was entered. */\n lastActionDateTime?: string;\n /** Operation status. */\n status?: \"NotStarted\" | \"Running\" | \"Succeeded\" | \"Failed\";\n}\n\nexport interface DeviceUpdateAgentId {\n /** Device Id */\n deviceId: string;\n /** Module Id */\n moduleId?: string;\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Update identifier. */\nexport interface UpdateId {\n /** Update provider. */\n provider: string;\n /** Update name. */\n name: string;\n /** Update version. */\n version: string;\n}\n\n/** Import update input item metadata. */\nexport interface ImportUpdateInputItem {\n /** Import manifest metadata like source URL, file size/hashes, etc. */\n importManifest: ImportManifestMetadata;\n /** Friendly update name. */\n friendlyName?: string;\n /** One or more update file properties like filename and source URL. */\n files?: Array<FileImportMetadata>;\n}\n\n/** Metadata describing the import manifest, a document which describes the files and other metadata about an update version. */\nexport interface ImportManifestMetadata {\n /** Azure Blob location from which the import manifest can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */\n url: string;\n /** File size in number of bytes. */\n sizeInBytes: number;\n /** A JSON object containing the hash(es) of the file. At least SHA256 hash is required. This object can be thought of as a set of key-value pairs where the key is the hash algorithm, and the value is the hash of the file calculated using that algorithm. */\n hashes: Record<string, string>;\n}\n\n/** Metadata describing an update file. */\nexport interface FileImportMetadata {\n /** Update file name as specified inside import manifest. */\n filename: string;\n /** Azure Blob location from which the update file can be downloaded by Device Update for IoT Hub. This is typically a read-only SAS-protected blob URL with an expiration set to at least 4 hours. */\n url: string;\n}\n\n/** Update information. */\nexport interface UpdateInfo {\n /** Update identifier. */\n updateId: UpdateId;\n}\n\n/** Device Class JSON Merge Patch request body */\nexport interface PatchBody {\n /** The device class friendly name. Friendly name can be 1-100 characters, alphanumeric, dot, and dash. */\n friendlyName: string;\n}\n\n/** Deployment metadata. */\nexport interface Deployment {\n /** The caller-provided deployment identifier. This cannot be longer than 73 characters, must be all lower-case, and cannot contain '&', '^', '[', ']', '{', '}', '|', '<', '>', forward slash, backslash, or double quote. The Updates view in the Azure Portal IoT Hub resource generates a GUID for deploymentId when you create a deployment. */\n deploymentId: string;\n /** The deployment start datetime. */\n startDateTime: Date | string;\n /** Update information for the update in the deployment. */\n update: UpdateInfo;\n /** The group identity for the devices the deployment is intended to update. */\n groupId: string;\n /** The device class subgroups the deployment is compatible with and subgroup deployments have been created for. This is not provided by the caller during CreateOrUpdateDeployment but is automatically determined by Device Update */\n deviceClassSubgroups?: Array<string>;\n /** Boolean flag indicating whether the deployment was canceled. */\n isCanceled?: boolean;\n /** Boolean flag indicating whether the deployment has been retried. */\n isRetried?: boolean;\n /** The rollback policy for the deployment. */\n rollbackPolicy?: CloudInitiatedRollbackPolicy;\n /** Boolean flag indicating whether the deployment is a rollback deployment. */\n isCloudInitiatedRollback?: boolean;\n}\n\n/** Rollback policy for deployment */\nexport interface CloudInitiatedRollbackPolicy {\n /** Update to rollback to. */\n update: UpdateInfo;\n /** Failure conditions to initiate rollback policy. */\n failure: CloudInitiatedRollbackPolicyFailure;\n}\n\n/** Failure conditions to initiate rollback policy */\nexport interface CloudInitiatedRollbackPolicyFailure {\n /** Percentage of devices that failed. */\n devicesFailedPercentage: number;\n /** Number of devices that failed. */\n devicesFailedCount: number;\n}\n\n/** Diagnostics request body */\nexport interface LogCollection {\n /** The log collection id. */\n operationId?: string;\n /** Array of Device Update agent ids */\n deviceList: Array<DeviceUpdateAgentId>;\n /** Description of the diagnostics operation. */\n description?: string;\n}\n\n/** Device Update agent id */\nexport interface DeviceUpdateAgentId {\n /** Device Id */\n deviceId: string;\n /** Module Id */\n moduleId?: string;\n}\n"]}