@azure-rest/health-insights-radiologyinsights 1.0.0-alpha.20241121.1 → 1.0.0-alpha.20241126.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 (249) hide show
  1. package/{types/src → dist/browser}/azureHealthInsightsClient.d.ts +1 -1
  2. package/{types/src → dist/browser}/azureHealthInsightsClient.d.ts.map +1 -1
  3. package/{dist-esm/src → dist/browser}/azureHealthInsightsClient.js +1 -1
  4. package/dist/browser/azureHealthInsightsClient.js.map +1 -0
  5. package/{types/src → dist/browser}/clientDefinitions.d.ts +2 -2
  6. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  7. package/dist/browser/clientDefinitions.js.map +1 -0
  8. package/dist/browser/index.d.ts +12 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/dist/browser/index.js +15 -0
  11. package/dist/browser/index.js.map +1 -0
  12. package/{types/src → dist/browser}/isUnexpected.d.ts +1 -1
  13. package/dist/browser/isUnexpected.d.ts.map +1 -0
  14. package/dist/browser/isUnexpected.js.map +1 -0
  15. package/dist/browser/package.json +3 -0
  16. package/{types/src → dist/browser}/parameters.d.ts +1 -1
  17. package/{types/src → dist/browser}/parameters.d.ts.map +1 -1
  18. package/dist/browser/parameters.js.map +1 -0
  19. package/{types/src → dist/browser}/pollingHelper.d.ts +1 -1
  20. package/{types/src → dist/browser}/pollingHelper.d.ts.map +1 -1
  21. package/dist/browser/pollingHelper.js.map +1 -0
  22. package/{types/src → dist/browser}/responses.d.ts +1 -1
  23. package/dist/browser/responses.d.ts.map +1 -0
  24. package/dist/browser/responses.js.map +1 -0
  25. package/dist/commonjs/azureHealthInsightsClient.d.ts +11 -0
  26. package/dist/commonjs/azureHealthInsightsClient.d.ts.map +1 -0
  27. package/dist/commonjs/azureHealthInsightsClient.js +33 -0
  28. package/dist/commonjs/azureHealthInsightsClient.js.map +1 -0
  29. package/dist/commonjs/clientDefinitions.d.ts +21 -0
  30. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  31. package/dist/commonjs/clientDefinitions.js +5 -0
  32. package/dist/commonjs/clientDefinitions.js.map +1 -0
  33. package/dist/commonjs/index.d.ts +12 -0
  34. package/dist/commonjs/index.d.ts.map +1 -0
  35. package/dist/commonjs/index.js +18 -0
  36. package/dist/commonjs/index.js.map +1 -0
  37. package/dist/commonjs/isUnexpected.d.ts +6 -0
  38. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  39. package/dist/commonjs/isUnexpected.js +75 -0
  40. package/dist/commonjs/isUnexpected.js.map +1 -0
  41. package/dist/commonjs/logger.d.ts +2 -0
  42. package/dist/commonjs/logger.d.ts.map +1 -0
  43. package/dist/commonjs/logger.js +8 -0
  44. package/dist/commonjs/logger.js.map +1 -0
  45. package/dist/commonjs/models.d.ts +909 -0
  46. package/dist/commonjs/models.d.ts.map +1 -0
  47. package/dist/commonjs/models.js +25 -0
  48. package/dist/commonjs/models.js.map +1 -0
  49. package/dist/commonjs/outputModels.d.ts +936 -0
  50. package/dist/commonjs/outputModels.d.ts.map +1 -0
  51. package/dist/commonjs/outputModels.js +26 -0
  52. package/dist/commonjs/outputModels.js.map +1 -0
  53. package/dist/commonjs/package.json +3 -0
  54. package/dist/commonjs/parameters.d.ts +32 -0
  55. package/dist/commonjs/parameters.d.ts.map +1 -0
  56. package/dist/commonjs/parameters.js +5 -0
  57. package/dist/commonjs/parameters.js.map +1 -0
  58. package/dist/commonjs/pollingHelper.d.ts +12 -0
  59. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  60. package/dist/commonjs/pollingHelper.js +46 -0
  61. package/dist/commonjs/pollingHelper.js.map +1 -0
  62. package/dist/commonjs/responses.d.ts +91 -0
  63. package/dist/commonjs/responses.d.ts.map +1 -0
  64. package/dist/commonjs/responses.js +5 -0
  65. package/dist/commonjs/responses.js.map +1 -0
  66. package/dist/commonjs/serializeHelper.d.ts +3 -0
  67. package/dist/commonjs/serializeHelper.d.ts.map +1 -0
  68. package/dist/commonjs/serializeHelper.js +17 -0
  69. package/dist/commonjs/serializeHelper.js.map +1 -0
  70. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  71. package/dist/esm/azureHealthInsightsClient.d.ts +11 -0
  72. package/dist/esm/azureHealthInsightsClient.d.ts.map +1 -0
  73. package/dist/esm/azureHealthInsightsClient.js +30 -0
  74. package/dist/esm/azureHealthInsightsClient.js.map +1 -0
  75. package/dist/esm/clientDefinitions.d.ts +21 -0
  76. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  77. package/dist/esm/clientDefinitions.js +4 -0
  78. package/dist/esm/clientDefinitions.js.map +1 -0
  79. package/dist/esm/index.d.ts +12 -0
  80. package/dist/esm/index.d.ts.map +1 -0
  81. package/dist/esm/index.js +15 -0
  82. package/dist/esm/index.js.map +1 -0
  83. package/dist/esm/isUnexpected.d.ts +6 -0
  84. package/dist/esm/isUnexpected.d.ts.map +1 -0
  85. package/dist/esm/isUnexpected.js +72 -0
  86. package/dist/esm/isUnexpected.js.map +1 -0
  87. package/dist/esm/logger.d.ts +2 -0
  88. package/dist/esm/logger.d.ts.map +1 -0
  89. package/dist/esm/logger.js +5 -0
  90. package/dist/esm/logger.js.map +1 -0
  91. package/dist/esm/models.d.ts +909 -0
  92. package/dist/esm/models.d.ts.map +1 -0
  93. package/dist/esm/models.js +22 -0
  94. package/dist/esm/models.js.map +1 -0
  95. package/dist/esm/outputModels.d.ts +936 -0
  96. package/dist/esm/outputModels.d.ts.map +1 -0
  97. package/dist/esm/outputModels.js +23 -0
  98. package/dist/esm/outputModels.js.map +1 -0
  99. package/dist/esm/package.json +3 -0
  100. package/dist/esm/parameters.d.ts +32 -0
  101. package/dist/esm/parameters.d.ts.map +1 -0
  102. package/dist/esm/parameters.js +4 -0
  103. package/dist/esm/parameters.js.map +1 -0
  104. package/dist/esm/pollingHelper.d.ts +12 -0
  105. package/dist/esm/pollingHelper.d.ts.map +1 -0
  106. package/dist/esm/pollingHelper.js +43 -0
  107. package/dist/esm/pollingHelper.js.map +1 -0
  108. package/dist/esm/responses.d.ts +91 -0
  109. package/dist/esm/responses.d.ts.map +1 -0
  110. package/dist/esm/responses.js +4 -0
  111. package/dist/esm/responses.js.map +1 -0
  112. package/dist/esm/serializeHelper.d.ts +3 -0
  113. package/dist/esm/serializeHelper.d.ts.map +1 -0
  114. package/dist/esm/serializeHelper.js +14 -0
  115. package/dist/esm/serializeHelper.js.map +1 -0
  116. package/dist/react-native/azureHealthInsightsClient.d.ts +11 -0
  117. package/dist/react-native/azureHealthInsightsClient.d.ts.map +1 -0
  118. package/dist/react-native/azureHealthInsightsClient.js +30 -0
  119. package/dist/react-native/azureHealthInsightsClient.js.map +1 -0
  120. package/dist/react-native/clientDefinitions.d.ts +21 -0
  121. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  122. package/dist/react-native/clientDefinitions.js +4 -0
  123. package/dist/react-native/clientDefinitions.js.map +1 -0
  124. package/dist/react-native/index.d.ts +12 -0
  125. package/dist/react-native/index.d.ts.map +1 -0
  126. package/dist/react-native/index.js +15 -0
  127. package/dist/react-native/index.js.map +1 -0
  128. package/dist/react-native/isUnexpected.d.ts +6 -0
  129. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  130. package/dist/react-native/isUnexpected.js +72 -0
  131. package/dist/react-native/isUnexpected.js.map +1 -0
  132. package/dist/react-native/logger.d.ts +2 -0
  133. package/dist/react-native/logger.d.ts.map +1 -0
  134. package/dist/react-native/logger.js +5 -0
  135. package/dist/react-native/logger.js.map +1 -0
  136. package/dist/react-native/models.d.ts +909 -0
  137. package/dist/react-native/models.d.ts.map +1 -0
  138. package/dist/react-native/models.js +22 -0
  139. package/dist/react-native/models.js.map +1 -0
  140. package/dist/react-native/outputModels.d.ts +936 -0
  141. package/dist/react-native/outputModels.d.ts.map +1 -0
  142. package/dist/react-native/outputModels.js +23 -0
  143. package/dist/react-native/outputModels.js.map +1 -0
  144. package/dist/react-native/package.json +3 -0
  145. package/dist/react-native/parameters.d.ts +32 -0
  146. package/dist/react-native/parameters.d.ts.map +1 -0
  147. package/dist/react-native/parameters.js +4 -0
  148. package/dist/react-native/parameters.js.map +1 -0
  149. package/dist/react-native/pollingHelper.d.ts +12 -0
  150. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  151. package/dist/react-native/pollingHelper.js +43 -0
  152. package/dist/react-native/pollingHelper.js.map +1 -0
  153. package/dist/react-native/responses.d.ts +91 -0
  154. package/dist/react-native/responses.d.ts.map +1 -0
  155. package/dist/react-native/responses.js +4 -0
  156. package/dist/react-native/responses.js.map +1 -0
  157. package/dist/react-native/serializeHelper.d.ts +3 -0
  158. package/dist/react-native/serializeHelper.d.ts.map +1 -0
  159. package/dist/react-native/serializeHelper.js +14 -0
  160. package/dist/react-native/serializeHelper.js.map +1 -0
  161. package/package.json +65 -45
  162. package/dist/index.js +0 -221
  163. package/dist/index.js.map +0 -1
  164. package/dist-esm/src/azureHealthInsightsClient.js.map +0 -1
  165. package/dist-esm/src/clientDefinitions.js.map +0 -1
  166. package/dist-esm/src/index.js +0 -14
  167. package/dist-esm/src/index.js.map +0 -1
  168. package/dist-esm/src/isUnexpected.js.map +0 -1
  169. package/dist-esm/src/parameters.js.map +0 -1
  170. package/dist-esm/src/pollingHelper.js.map +0 -1
  171. package/dist-esm/src/responses.js.map +0 -1
  172. package/review/health-insights-radiologyinsights.api.md +0 -1358
  173. package/types/samples-dev/sample_age_mismatch_inference_async.d.ts +0 -2
  174. package/types/samples-dev/sample_age_mismatch_inference_async.d.ts.map +0 -1
  175. package/types/samples-dev/sample_complete_order_discrepancy_inference_async.d.ts +0 -2
  176. package/types/samples-dev/sample_complete_order_discrepancy_inference_async.d.ts.map +0 -1
  177. package/types/samples-dev/sample_critical_result_inference_async.d.ts +0 -2
  178. package/types/samples-dev/sample_critical_result_inference_async.d.ts.map +0 -1
  179. package/types/samples-dev/sample_critical_result_managed_identity.d.ts +0 -2
  180. package/types/samples-dev/sample_critical_result_managed_identity.d.ts.map +0 -1
  181. package/types/samples-dev/sample_finding_inference_async.d.ts +0 -2
  182. package/types/samples-dev/sample_finding_inference_async.d.ts.map +0 -1
  183. package/types/samples-dev/sample_follow_up_communication_inference_async.d.ts +0 -2
  184. package/types/samples-dev/sample_follow_up_communication_inference_async.d.ts.map +0 -1
  185. package/types/samples-dev/sample_follow_up_recommendation_inference_async.d.ts +0 -2
  186. package/types/samples-dev/sample_follow_up_recommendation_inference_async.d.ts.map +0 -1
  187. package/types/samples-dev/sample_laterality_discrepancy_inference_async.d.ts +0 -2
  188. package/types/samples-dev/sample_laterality_discrepancy_inference_async.d.ts.map +0 -1
  189. package/types/samples-dev/sample_limited_order_discrepancy_inference_async.d.ts +0 -2
  190. package/types/samples-dev/sample_limited_order_discrepancy_inference_async.d.ts.map +0 -1
  191. package/types/samples-dev/sample_radiology_procedure_inference_async.d.ts +0 -2
  192. package/types/samples-dev/sample_radiology_procedure_inference_async.d.ts.map +0 -1
  193. package/types/samples-dev/sample_sex_mismatch_inference_async.d.ts +0 -2
  194. package/types/samples-dev/sample_sex_mismatch_inference_async.d.ts.map +0 -1
  195. package/types/src/clientDefinitions.d.ts.map +0 -1
  196. package/types/src/index.d.ts +0 -12
  197. package/types/src/index.d.ts.map +0 -1
  198. package/types/src/isUnexpected.d.ts.map +0 -1
  199. package/types/src/responses.d.ts.map +0 -1
  200. package/types/test/public/SampleAgeMismatchInferenceAsync.spec.d.ts +0 -2
  201. package/types/test/public/SampleAgeMismatchInferenceAsync.spec.d.ts.map +0 -1
  202. package/types/test/public/SampleCompleteOrderDiscrepancyInferenceAsync.spec.d.ts +0 -2
  203. package/types/test/public/SampleCompleteOrderDiscrepancyInferenceAsync.spec.d.ts.map +0 -1
  204. package/types/test/public/SampleCriticalResultInferenceAsync.spec.d.ts +0 -2
  205. package/types/test/public/SampleCriticalResultInferenceAsync.spec.d.ts.map +0 -1
  206. package/types/test/public/SampleFindingInferenceAsync.spec.d.ts +0 -2
  207. package/types/test/public/SampleFindingInferenceAsync.spec.d.ts.map +0 -1
  208. package/types/test/public/SampleFollowUpCommunicationAsync.spec.d.ts +0 -2
  209. package/types/test/public/SampleFollowUpCommunicationAsync.spec.d.ts.map +0 -1
  210. package/types/test/public/SampleFollowUpRecommendationAsync.spec.d.ts +0 -2
  211. package/types/test/public/SampleFollowUpRecommendationAsync.spec.d.ts.map +0 -1
  212. package/types/test/public/SampleLateralityDiscrepancyInferenceAsync.spec.d.ts +0 -2
  213. package/types/test/public/SampleLateralityDiscrepancyInferenceAsync.spec.d.ts.map +0 -1
  214. package/types/test/public/SampleLimitedOrderDiscrepancyInferenceAsync.spec.d.ts +0 -2
  215. package/types/test/public/SampleLimitedOrderDiscrepancyInferenceAsync.spec.d.ts.map +0 -1
  216. package/types/test/public/SampleRadiologyProcedureInferenceAsync.spec.d.ts +0 -2
  217. package/types/test/public/SampleRadiologyProcedureInferenceAsync.spec.d.ts.map +0 -1
  218. package/types/test/public/SampleSexMismatchInferenceAsync.spec.d.ts +0 -2
  219. package/types/test/public/SampleSexMismatchInferenceAsync.spec.d.ts.map +0 -1
  220. package/types/test/public/Test_RadiologyInsights_async.spec.d.ts +0 -2
  221. package/types/test/public/Test_RadiologyInsights_async.spec.d.ts.map +0 -1
  222. package/types/test/public/utils/env.browser.d.ts +0 -1
  223. package/types/test/public/utils/env.browser.d.ts.map +0 -1
  224. package/types/test/public/utils/env.d.ts +0 -2
  225. package/types/test/public/utils/env.d.ts.map +0 -1
  226. package/types/test/public/utils/recordedClient.d.ts +0 -13
  227. package/types/test/public/utils/recordedClient.d.ts.map +0 -1
  228. /package/{dist-esm/src → dist/browser}/clientDefinitions.js +0 -0
  229. /package/{dist-esm/src → dist/browser}/isUnexpected.js +0 -0
  230. /package/{types/src → dist/browser}/logger.d.ts +0 -0
  231. /package/{types/src → dist/browser}/logger.d.ts.map +0 -0
  232. /package/{dist-esm/src → dist/browser}/logger.js +0 -0
  233. /package/{dist-esm/src → dist/browser}/logger.js.map +0 -0
  234. /package/{types/src → dist/browser}/models.d.ts +0 -0
  235. /package/{types/src → dist/browser}/models.d.ts.map +0 -0
  236. /package/{dist-esm/src → dist/browser}/models.js +0 -0
  237. /package/{dist-esm/src → dist/browser}/models.js.map +0 -0
  238. /package/{types/src → dist/browser}/outputModels.d.ts +0 -0
  239. /package/{types/src → dist/browser}/outputModels.d.ts.map +0 -0
  240. /package/{dist-esm/src → dist/browser}/outputModels.js +0 -0
  241. /package/{dist-esm/src → dist/browser}/outputModels.js.map +0 -0
  242. /package/{dist-esm/src → dist/browser}/parameters.js +0 -0
  243. /package/{dist-esm/src → dist/browser}/pollingHelper.js +0 -0
  244. /package/{dist-esm/src → dist/browser}/responses.js +0 -0
  245. /package/{types/src → dist/browser}/serializeHelper.d.ts +0 -0
  246. /package/{types/src → dist/browser}/serializeHelper.d.ts.map +0 -0
  247. /package/{dist-esm/src → dist/browser}/serializeHelper.js +0 -0
  248. /package/{dist-esm/src → dist/browser}/serializeHelper.js.map +0 -0
  249. /package/{types → dist}/health-insights-radiologyinsights-rest.d.ts +0 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@azure-rest/health-insights-radiologyinsights",
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
- "version": "1.0.0-alpha.20241121.1",
5
+ "version": "1.0.0-alpha.20241126.1",
6
6
  "description": "A generated SDK for Health Insights Radiology Insights Rest",
7
7
  "keywords": [
8
8
  "node",
@@ -13,31 +13,28 @@
13
13
  "isomorphic"
14
14
  ],
15
15
  "license": "MIT",
16
- "main": "dist/index.js",
17
- "module": "./dist-esm/src/index.js",
18
- "types": "./types/health-insights-radiologyinsights-rest.d.ts",
16
+ "main": "./dist/commonjs/index.js",
17
+ "module": "./dist/esm/index.js",
18
+ "types": "./dist/commonjs/index.d.ts",
19
19
  "repository": "github:Azure/azure-sdk-for-js",
20
20
  "bugs": {
21
21
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
22
22
  },
23
23
  "files": [
24
24
  "dist/",
25
- "dist-esm/src/",
26
- "types/*",
27
25
  "README.md",
28
- "LICENSE",
29
- "review/*"
26
+ "LICENSE"
30
27
  ],
31
28
  "engines": {
32
29
  "node": ">=18.0.0"
33
30
  },
34
31
  "scripts": {
35
- "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
36
- "build:browser": "tsc -p . && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1",
37
- "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api",
38
- "build:node": "tsc -p . && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1",
32
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
33
+ "build:browser": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1",
34
+ "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api",
35
+ "build:node": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1",
39
36
  "build:samples": "echo skipped.",
40
- "build:test": "tsc -p . && dev-tool run bundle",
37
+ "build:test": "dev-tool run build-package && dev-tool run bundle",
41
38
  "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
42
39
  "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
43
40
  "execute:samples": "echo skipped",
@@ -54,49 +51,37 @@
54
51
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
55
52
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
56
53
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
57
- "unit-test:browser": "dev-tool run test:browser",
58
- "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
54
+ "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
55
+ "unit-test:node": "dev-tool run test:vitest",
59
56
  "update-snippets": "echo skipped"
60
57
  },
61
58
  "sideEffects": false,
62
59
  "autoPublish": false,
63
60
  "dependencies": {
64
- "@azure-rest/core-client": "^1.2.0",
65
- "@azure/abort-controller": "^1.0.0",
66
- "@azure/core-auth": "^1.6.0",
67
- "@azure/core-lro": "^2.5.4",
68
- "@azure/core-rest-pipeline": "^1.14.0",
69
- "@azure/logger": "^1.0.0",
70
- "tslib": "^2.2.0"
61
+ "@azure-rest/core-client": "^2.3.1",
62
+ "@azure/abort-controller": "^2.1.2",
63
+ "@azure/core-auth": "^1.9.0",
64
+ "@azure/core-lro": "^2.7.2",
65
+ "@azure/core-rest-pipeline": ">=1.18.0-alpha <1.18.0-alphb",
66
+ "@azure/logger": "^1.1.4",
67
+ "tslib": "^2.8.1"
71
68
  },
72
69
  "devDependencies": {
73
- "@azure-tools/test-credential": "^1.0.0",
74
- "@azure-tools/test-recorder": "^3.0.0",
70
+ "@azure-tools/test-credential": "^2.0.0",
71
+ "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
72
+ "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
75
73
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
76
74
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
77
75
  "@azure/identity": "^4.0.1",
78
- "@types/chai": "^4.2.8",
79
- "@types/mocha": "^10.0.0",
80
76
  "@types/node": "^18.0.0",
77
+ "@vitest/browser": "^2.1.5",
78
+ "@vitest/coverage-istanbul": "^2.1.5",
81
79
  "autorest": "latest",
82
- "chai": "^4.2.0",
83
80
  "dotenv": "^16.0.0",
84
81
  "eslint": "^9.9.0",
85
- "karma": "^6.2.0",
86
- "karma-chrome-launcher": "^3.0.0",
87
- "karma-coverage": "^2.0.0",
88
- "karma-env-preprocessor": "^0.1.1",
89
- "karma-firefox-launcher": "^2.1.2",
90
- "karma-junit-reporter": "^2.0.1",
91
- "karma-mocha": "^2.0.1",
92
- "karma-mocha-reporter": "^2.2.5",
93
- "karma-source-map-support": "~1.4.0",
94
- "karma-sourcemap-loader": "^0.4.0",
95
- "mocha": "^10.0.0",
96
- "nyc": "^17.0.0",
97
- "source-map-support": "^0.5.9",
98
- "ts-node": "^10.0.0",
99
- "typescript": "~5.6.2"
82
+ "playwright": "^1.49.0",
83
+ "typescript": "~5.6.2",
84
+ "vitest": "^2.1.5"
100
85
  },
101
86
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/README.md",
102
87
  "//metadata": {
@@ -107,9 +92,7 @@
107
92
  }
108
93
  ]
109
94
  },
110
- "browser": {
111
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
112
- },
95
+ "browser": "./dist/browser/index.js",
113
96
  "//sampleConfiguration": {
114
97
  "productName": "HealthInsightsRadiologyInsights",
115
98
  "productSlugs": [
@@ -117,5 +100,42 @@
117
100
  ],
118
101
  "disableDocsMs": true,
119
102
  "apiRefLink": "https://docs.microsoft.com/javascript/api"
103
+ },
104
+ "type": "module",
105
+ "tshy": {
106
+ "exports": {
107
+ "./package.json": "./package.json",
108
+ ".": "./src/index.ts"
109
+ },
110
+ "dialects": [
111
+ "esm",
112
+ "commonjs"
113
+ ],
114
+ "esmDialects": [
115
+ "browser",
116
+ "react-native"
117
+ ],
118
+ "selfLink": false
119
+ },
120
+ "exports": {
121
+ "./package.json": "./package.json",
122
+ ".": {
123
+ "browser": {
124
+ "types": "./dist/browser/index.d.ts",
125
+ "default": "./dist/browser/index.js"
126
+ },
127
+ "react-native": {
128
+ "types": "./dist/react-native/index.d.ts",
129
+ "default": "./dist/react-native/index.js"
130
+ },
131
+ "import": {
132
+ "types": "./dist/esm/index.d.ts",
133
+ "default": "./dist/esm/index.js"
134
+ },
135
+ "require": {
136
+ "types": "./dist/commonjs/index.d.ts",
137
+ "default": "./dist/commonjs/index.js"
138
+ }
139
+ }
120
140
  }
121
141
  }
package/dist/index.js DELETED
@@ -1,221 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var coreClient = require('@azure-rest/core-client');
6
- var logger$1 = require('@azure/logger');
7
- var coreLro = require('@azure/core-lro');
8
-
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- const logger = logger$1.createClientLogger("health-insights-radiologyinsights");
12
-
13
- // Copyright (c) Microsoft Corporation.
14
- // Licensed under the MIT License.
15
- /**
16
- * Initialize a new instance of `AzureHealthInsightsClient`
17
- * @param endpointParam - Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.cognitiveservices.azure.com).
18
- * @param credentials - uniquely identify client credential
19
- * @param options - the parameter for all optional parameters
20
- */
21
- function createClient(endpointParam, credentials, options = {}) {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
23
- const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `${endpointParam}/health-insights`;
24
- options.apiVersion = (_c = options.apiVersion) !== null && _c !== void 0 ? _c : "2024-04-01";
25
- const userAgentInfo = `azsdk-js-health-insights-radiologyinsights-rest/1.0.0`;
26
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
27
- ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
28
- : `${userAgentInfo}`;
29
- options = Object.assign(Object.assign({}, options), { userAgentOptions: {
30
- userAgentPrefix,
31
- }, loggingOptions: {
32
- logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info,
33
- }, credentials: {
34
- scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : ["https://cognitiveservices.azure.com/.default"],
35
- apiKeyHeaderName: (_j = (_h = options.credentials) === null || _h === void 0 ? void 0 : _h.apiKeyHeaderName) !== null && _j !== void 0 ? _j : "Ocp-Apim-Subscription-Key",
36
- } });
37
- const client = coreClient.getClient(endpointUrl, credentials, options);
38
- return client;
39
- }
40
-
41
- // Copyright (c) Microsoft Corporation.
42
- // Licensed under the MIT License.
43
- const responseMap = {
44
- "GET /radiology-insights/jobs/{id}": ["200"],
45
- "PUT /radiology-insights/jobs/{id}": ["200", "201"],
46
- };
47
- /** Unexpected responses for get & create job calls */
48
- function isUnexpected(response) {
49
- const lroOriginal = response.headers["x-ms-original-url"];
50
- const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
51
- const method = response.request.method;
52
- let pathDetails = responseMap[`${method} ${url.pathname}`];
53
- if (!pathDetails) {
54
- pathDetails = getParametrizedPathSuccess(method, url.pathname);
55
- }
56
- return !pathDetails.includes(response.status);
57
- }
58
- function getParametrizedPathSuccess(method, path) {
59
- var _a, _b, _c, _d;
60
- const pathParts = path.split("/");
61
- // Traverse list to match the longest candidate
62
- // matchedLen: the length of candidate path
63
- // matchedValue: the matched status code array
64
- let matchedLen = -1, matchedValue = [];
65
- // Iterate the responseMap to find a match
66
- for (const [key, value] of Object.entries(responseMap)) {
67
- // Extracting the path from the map key which is in format
68
- // GET /path/foo
69
- if (!key.startsWith(method)) {
70
- continue;
71
- }
72
- const candidatePath = getPathFromMapKey(key);
73
- // Get each part of the url path
74
- const candidateParts = candidatePath.split("/");
75
- // track if we have found a match to return the values found.
76
- let found = true;
77
- for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
78
- if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
79
- const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
80
- // If the current part of the candidate is a "template" part
81
- // Try to use the suffix of pattern to match the path
82
- // {guid} ==> $
83
- // {guid}:export ==> :export$
84
- const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
85
- if (!isMatched) {
86
- found = false;
87
- break;
88
- }
89
- continue;
90
- }
91
- // If the candidate part is not a template and
92
- // the parts don't match mark the candidate as not found
93
- // to move on with the next candidate path.
94
- if (candidateParts[i] !== pathParts[j]) {
95
- found = false;
96
- break;
97
- }
98
- }
99
- // We finished evaluating the current candidate parts
100
- // Update the matched value if and only if we found the longer pattern
101
- if (found && candidatePath.length > matchedLen) {
102
- matchedLen = candidatePath.length;
103
- matchedValue = value;
104
- }
105
- }
106
- return matchedValue;
107
- }
108
- function getPathFromMapKey(mapKey) {
109
- const pathStart = mapKey.indexOf("/");
110
- return mapKey.slice(pathStart);
111
- }
112
-
113
- // Copyright (c) Microsoft Corporation.
114
- // Licensed under the MIT License.
115
- /** Alias for ClinicalDocumentType */
116
- exports.ClinicalDocumentTypeEnum = void 0;
117
- (function (ClinicalDocumentTypeEnum) {
118
- /** Consultation documents */
119
- ClinicalDocumentTypeEnum["Consultation"] = "consultation";
120
- /** Discharge summary documents */
121
- ClinicalDocumentTypeEnum["DischargeSummary"] = "dischargeSummary";
122
- /** H&P documents */
123
- ClinicalDocumentTypeEnum["HistoryAndPhysical"] = "historyAndPhysical";
124
- /** Radiology documents */
125
- ClinicalDocumentTypeEnum["RadiologyReport"] = "radiologyReport";
126
- /** Procedure notes */
127
- ClinicalDocumentTypeEnum["Procedure"] = "procedure";
128
- /** Progress notes */
129
- ClinicalDocumentTypeEnum["Progress"] = "progress";
130
- /** Laboratory documents */
131
- ClinicalDocumentTypeEnum["Laboratory"] = "laboratory";
132
- // Add more predefined types as needed
133
- })(exports.ClinicalDocumentTypeEnum || (exports.ClinicalDocumentTypeEnum = {}));
134
-
135
- // Copyright (c) Microsoft Corporation.
136
- // Licensed under the MIT License.
137
- /** Alias for ClinicalDocumentTypeOutput */
138
- exports.ClinicalDocumentTypeOutputEnum = void 0;
139
- (function (ClinicalDocumentTypeOutputEnum) {
140
- /** Consultation documents */
141
- ClinicalDocumentTypeOutputEnum["Consultation"] = "consultation";
142
- /** Discharge summary documents */
143
- ClinicalDocumentTypeOutputEnum["DischargeSummary"] = "dischargeSummary";
144
- /** H&P documents */
145
- ClinicalDocumentTypeOutputEnum["HistoryAndPhysical"] = "historyAndPhysical";
146
- /** Radiology documents */
147
- ClinicalDocumentTypeOutputEnum["RadiologyReport"] = "radiologyReport";
148
- /** Procedure notes */
149
- ClinicalDocumentTypeOutputEnum["Procedure"] = "procedure";
150
- /** Progress notes */
151
- ClinicalDocumentTypeOutputEnum["Progress"] = "progress";
152
- /** Laboratory documents */
153
- ClinicalDocumentTypeOutputEnum["Laboratory"] = "laboratory";
154
- // Add more predefined types as needed
155
- // Add more predefined types as needed
156
- })(exports.ClinicalDocumentTypeOutputEnum || (exports.ClinicalDocumentTypeOutputEnum = {}));
157
-
158
- // Copyright (c) Microsoft Corporation.
159
- // Licensed under the MIT License.
160
- async function getLongRunningPoller(client, initialResponse, options = {}) {
161
- var _a;
162
- const poller = {
163
- requestMethod: initialResponse.request.method,
164
- requestPath: initialResponse.request.url,
165
- sendInitialRequest: async () => {
166
- // In the case of Rest Clients we are building the LRO poller object from a response that's the reason
167
- // we are not triggering the initial request here, just extracting the information from the
168
- // response we were provided.
169
- return getLroResponse(initialResponse);
170
- },
171
- sendPollRequest: async (path) => {
172
- // This is the callback that is going to be called to poll the service
173
- // to get the latest status. We use the client provided and the polling path
174
- // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
175
- // depending on the lro pattern that the service implements. If non is provided we default to the initial path.
176
- const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get();
177
- const lroResponse = getLroResponse(response);
178
- lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url;
179
- return lroResponse;
180
- },
181
- };
182
- options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true;
183
- return coreLro.createHttpPoller(poller, options);
184
- }
185
- /**
186
- * Converts a Rest Client response to a response that the LRO implementation understands
187
- * @param response - a rest client http response
188
- * @returns - An LRO response that the LRO implementation understands
189
- */
190
- function getLroResponse(response) {
191
- if (Number.isNaN(response.status)) {
192
- throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
193
- }
194
- return {
195
- flatResponse: response,
196
- rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
197
- };
198
- }
199
-
200
- // Copyright (c) Microsoft Corporation.
201
- // Licensed under the MIT License.
202
- /** Returns all parameters per item*/
203
- function buildMultiCollection(items, parameterName) {
204
- return items
205
- .map((item, index) => {
206
- if (index === 0) {
207
- return item;
208
- }
209
- return `${parameterName}=${item}`;
210
- })
211
- .join("&");
212
- }
213
-
214
- // Copyright (c) Microsoft Corporation.
215
- // Licensed under the MIT License.
216
-
217
- exports.buildMultiCollection = buildMultiCollection;
218
- exports.default = createClient;
219
- exports.getLongRunningPoller = getLongRunningPoller;
220
- exports.isUnexpected = isUnexpected;
221
- //# sourceMappingURL=index.js.map