@azure/synapse-spark 1.0.0-beta.4 → 1.0.0-beta.6

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 (207) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -13
  3. package/dist/browser/index.d.ts +4 -0
  4. package/dist/browser/index.d.ts.map +1 -0
  5. package/dist/browser/index.js +11 -0
  6. package/dist/browser/index.js.map +1 -0
  7. package/{types/synapse-spark.d.ts → dist/browser/models/index.d.ts} +548 -680
  8. package/dist/browser/models/index.d.ts.map +1 -0
  9. package/dist/browser/models/index.js +134 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.d.ts +19 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -0
  13. package/dist/browser/models/mappers.js +1151 -0
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/dist/browser/models/parameters.d.ts +16 -0
  16. package/dist/browser/models/parameters.d.ts.map +1 -0
  17. package/dist/browser/models/parameters.js +133 -0
  18. package/dist/browser/models/parameters.js.map +1 -0
  19. package/dist/browser/operations/index.d.ts +3 -0
  20. package/dist/browser/operations/index.d.ts.map +1 -0
  21. package/dist/browser/operations/index.js +10 -0
  22. package/dist/browser/operations/index.js.map +1 -0
  23. package/dist/browser/operations/sparkBatch.d.ts +36 -0
  24. package/dist/browser/operations/sparkBatch.d.ts.map +1 -0
  25. package/dist/browser/operations/sparkBatch.js +122 -0
  26. package/dist/browser/operations/sparkBatch.js.map +1 -0
  27. package/dist/browser/operations/sparkSessionOperations.d.ts +69 -0
  28. package/dist/browser/operations/sparkSessionOperations.d.ts.map +1 -0
  29. package/dist/browser/operations/sparkSessionOperations.js +259 -0
  30. package/dist/browser/operations/sparkSessionOperations.js.map +1 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  32. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/index.js +10 -0
  34. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  35. package/dist/browser/operationsInterfaces/sparkBatch.d.ts +28 -0
  36. package/dist/browser/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  37. package/dist/browser/operationsInterfaces/sparkBatch.js +9 -0
  38. package/dist/browser/operationsInterfaces/sparkBatch.js.map +1 -0
  39. package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  40. package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/sparkSessionOperations.js +9 -0
  42. package/dist/browser/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  43. package/dist/browser/package.json +3 -0
  44. package/dist/browser/sparkClient.d.ts +24 -0
  45. package/dist/browser/sparkClient.d.ts.map +1 -0
  46. package/dist/browser/sparkClient.js +86 -0
  47. package/dist/browser/sparkClient.js.map +1 -0
  48. package/dist/browser/tracing.d.ts +2 -0
  49. package/dist/browser/tracing.d.ts.map +1 -0
  50. package/dist/browser/tracing.js +14 -0
  51. package/dist/browser/tracing.js.map +1 -0
  52. package/dist/commonjs/index.d.ts +4 -0
  53. package/dist/commonjs/index.d.ts.map +1 -0
  54. package/dist/commonjs/index.js +16 -0
  55. package/dist/commonjs/index.js.map +1 -0
  56. package/dist/commonjs/models/index.d.ts +548 -0
  57. package/dist/commonjs/models/index.d.ts.map +1 -0
  58. package/dist/commonjs/models/index.js +137 -0
  59. package/dist/commonjs/models/index.js.map +1 -0
  60. package/dist/commonjs/models/mappers.d.ts +19 -0
  61. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  62. package/dist/commonjs/models/mappers.js +1154 -0
  63. package/dist/commonjs/models/mappers.js.map +1 -0
  64. package/dist/commonjs/models/parameters.d.ts +16 -0
  65. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  66. package/dist/commonjs/models/parameters.js +136 -0
  67. package/dist/commonjs/models/parameters.js.map +1 -0
  68. package/dist/commonjs/operations/index.d.ts +3 -0
  69. package/dist/commonjs/operations/index.d.ts.map +1 -0
  70. package/dist/commonjs/operations/index.js +13 -0
  71. package/dist/commonjs/operations/index.js.map +1 -0
  72. package/dist/commonjs/operations/sparkBatch.d.ts +36 -0
  73. package/dist/commonjs/operations/sparkBatch.d.ts.map +1 -0
  74. package/dist/commonjs/operations/sparkBatch.js +127 -0
  75. package/dist/commonjs/operations/sparkBatch.js.map +1 -0
  76. package/dist/commonjs/operations/sparkSessionOperations.d.ts +69 -0
  77. package/dist/commonjs/operations/sparkSessionOperations.d.ts.map +1 -0
  78. package/dist/commonjs/operations/sparkSessionOperations.js +264 -0
  79. package/dist/commonjs/operations/sparkSessionOperations.js.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  81. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  83. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  84. package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts +28 -0
  85. package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/sparkBatch.js +10 -0
  87. package/dist/commonjs/operationsInterfaces/sparkBatch.js.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  89. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  90. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js +10 -0
  91. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  92. package/dist/commonjs/package.json +3 -0
  93. package/dist/commonjs/sparkClient.d.ts +24 -0
  94. package/dist/commonjs/sparkClient.d.ts.map +1 -0
  95. package/dist/commonjs/sparkClient.js +91 -0
  96. package/dist/commonjs/sparkClient.js.map +1 -0
  97. package/dist/commonjs/tracing.d.ts +2 -0
  98. package/dist/commonjs/tracing.d.ts.map +1 -0
  99. package/dist/commonjs/tracing.js +17 -0
  100. package/dist/commonjs/tracing.js.map +1 -0
  101. package/dist/commonjs/tsdoc-metadata.json +11 -0
  102. package/dist/esm/index.d.ts +4 -0
  103. package/dist/esm/index.d.ts.map +1 -0
  104. package/dist/esm/index.js +11 -0
  105. package/dist/esm/index.js.map +1 -0
  106. package/dist/esm/models/index.d.ts +548 -0
  107. package/dist/esm/models/index.d.ts.map +1 -0
  108. package/dist/esm/models/index.js +134 -0
  109. package/dist/esm/models/index.js.map +1 -0
  110. package/dist/esm/models/mappers.d.ts +19 -0
  111. package/dist/esm/models/mappers.d.ts.map +1 -0
  112. package/dist/esm/models/mappers.js +1151 -0
  113. package/dist/esm/models/mappers.js.map +1 -0
  114. package/dist/esm/models/parameters.d.ts +16 -0
  115. package/dist/esm/models/parameters.d.ts.map +1 -0
  116. package/dist/esm/models/parameters.js +133 -0
  117. package/dist/esm/models/parameters.js.map +1 -0
  118. package/dist/esm/operations/index.d.ts +3 -0
  119. package/dist/esm/operations/index.d.ts.map +1 -0
  120. package/dist/esm/operations/index.js +10 -0
  121. package/dist/esm/operations/index.js.map +1 -0
  122. package/dist/esm/operations/sparkBatch.d.ts +36 -0
  123. package/dist/esm/operations/sparkBatch.d.ts.map +1 -0
  124. package/dist/esm/operations/sparkBatch.js +122 -0
  125. package/dist/esm/operations/sparkBatch.js.map +1 -0
  126. package/dist/esm/operations/sparkSessionOperations.d.ts +69 -0
  127. package/dist/esm/operations/sparkSessionOperations.d.ts.map +1 -0
  128. package/dist/esm/operations/sparkSessionOperations.js +259 -0
  129. package/dist/esm/operations/sparkSessionOperations.js.map +1 -0
  130. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  131. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  132. package/dist/esm/operationsInterfaces/index.js +10 -0
  133. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  134. package/dist/esm/operationsInterfaces/sparkBatch.d.ts +28 -0
  135. package/dist/esm/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  136. package/dist/esm/operationsInterfaces/sparkBatch.js +9 -0
  137. package/dist/esm/operationsInterfaces/sparkBatch.js.map +1 -0
  138. package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  139. package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  140. package/dist/esm/operationsInterfaces/sparkSessionOperations.js +9 -0
  141. package/dist/esm/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  142. package/dist/esm/package.json +3 -0
  143. package/dist/esm/sparkClient.d.ts +24 -0
  144. package/dist/esm/sparkClient.d.ts.map +1 -0
  145. package/dist/esm/sparkClient.js +86 -0
  146. package/dist/esm/sparkClient.js.map +1 -0
  147. package/dist/esm/tracing.d.ts +2 -0
  148. package/dist/esm/tracing.d.ts.map +1 -0
  149. package/dist/esm/tracing.js +14 -0
  150. package/dist/esm/tracing.js.map +1 -0
  151. package/dist/react-native/index.d.ts +4 -0
  152. package/dist/react-native/index.d.ts.map +1 -0
  153. package/dist/react-native/index.js +11 -0
  154. package/dist/react-native/index.js.map +1 -0
  155. package/dist/react-native/models/index.d.ts +548 -0
  156. package/dist/react-native/models/index.d.ts.map +1 -0
  157. package/dist/react-native/models/index.js +134 -0
  158. package/dist/react-native/models/index.js.map +1 -0
  159. package/dist/react-native/models/mappers.d.ts +19 -0
  160. package/dist/react-native/models/mappers.d.ts.map +1 -0
  161. package/dist/react-native/models/mappers.js +1151 -0
  162. package/dist/react-native/models/mappers.js.map +1 -0
  163. package/dist/react-native/models/parameters.d.ts +16 -0
  164. package/dist/react-native/models/parameters.d.ts.map +1 -0
  165. package/dist/react-native/models/parameters.js +133 -0
  166. package/dist/react-native/models/parameters.js.map +1 -0
  167. package/dist/react-native/operations/index.d.ts +3 -0
  168. package/dist/react-native/operations/index.d.ts.map +1 -0
  169. package/dist/react-native/operations/index.js +10 -0
  170. package/dist/react-native/operations/index.js.map +1 -0
  171. package/dist/react-native/operations/sparkBatch.d.ts +36 -0
  172. package/dist/react-native/operations/sparkBatch.d.ts.map +1 -0
  173. package/dist/react-native/operations/sparkBatch.js +122 -0
  174. package/dist/react-native/operations/sparkBatch.js.map +1 -0
  175. package/dist/react-native/operations/sparkSessionOperations.d.ts +69 -0
  176. package/dist/react-native/operations/sparkSessionOperations.d.ts.map +1 -0
  177. package/dist/react-native/operations/sparkSessionOperations.js +259 -0
  178. package/dist/react-native/operations/sparkSessionOperations.js.map +1 -0
  179. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  180. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  181. package/dist/react-native/operationsInterfaces/index.js +10 -0
  182. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  183. package/dist/react-native/operationsInterfaces/sparkBatch.d.ts +28 -0
  184. package/dist/react-native/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  185. package/dist/react-native/operationsInterfaces/sparkBatch.js +9 -0
  186. package/dist/react-native/operationsInterfaces/sparkBatch.js.map +1 -0
  187. package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  188. package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  189. package/dist/react-native/operationsInterfaces/sparkSessionOperations.js +9 -0
  190. package/dist/react-native/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  191. package/dist/react-native/package.json +3 -0
  192. package/dist/react-native/sparkClient.d.ts +24 -0
  193. package/dist/react-native/sparkClient.d.ts.map +1 -0
  194. package/dist/react-native/sparkClient.js +86 -0
  195. package/dist/react-native/sparkClient.js.map +1 -0
  196. package/dist/react-native/tracing.d.ts +2 -0
  197. package/dist/react-native/tracing.d.ts.map +1 -0
  198. package/dist/react-native/tracing.js +14 -0
  199. package/dist/react-native/tracing.js.map +1 -0
  200. package/package.json +82 -78
  201. package/CHANGELOG.md +0 -24
  202. package/dist/index.js +0 -2016
  203. package/dist/index.js.map +0 -1
  204. package/dist/index.min.js +0 -1
  205. package/dist/index.min.js.map +0 -1
  206. package/rollup.config.js +0 -3
  207. package/tsconfig.json +0 -19
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Microsoft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -12,7 +12,7 @@ npm install @azure/synapse-spark
12
12
 
13
13
  ### Currently supported environments
14
14
 
15
- - [LTS versions of Node.js](https://nodejs.org/about/releases/)
15
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
16
16
  - Latest versions of Safari, Chrome, Edge, and Firefox.
17
17
 
18
18
  See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
@@ -23,16 +23,21 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
23
23
 
24
24
  ## Examples
25
25
 
26
- ```ts
26
+ ```ts snippet:ReadmeSampleCreateClient_Node
27
27
  import { SparkClient } from "@azure/synapse-spark";
28
28
  import { DefaultAzureCredential } from "@azure/identity";
29
29
 
30
- export async function main(): Promise<void> {
31
- const credential = new DefaultAzureCredential();
32
-
33
- let client = new SparkClient(credential, "https://mysynapse.dev.azuresynapse.net", "mysparkpool");
34
- let output = await client.sparkBatch.getSparkBatchJobs();
35
- console.log("output:", output);
30
+ const client = new SparkClient(
31
+ new DefaultAzureCredential(),
32
+ "https://mysynapse.dev.azuresynapse.net",
33
+ "mysparkpool",
34
+ );
35
+
36
+ const output = await client.sparkBatch.getSparkBatchJobs();
37
+ if (output.sessions) {
38
+ for (const sparkBatchJob of output.sessions) {
39
+ console.log(`Spark batch job name: ${sparkBatchJob.name}`);
40
+ }
36
41
  }
37
42
  ```
38
43
 
@@ -40,13 +45,11 @@ export async function main(): Promise<void> {
40
45
 
41
46
  - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
42
47
 
43
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcdn%2Farm-cdn%2FREADME.png)
44
-
45
48
  ## Troubleshooting
46
49
 
47
50
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
48
51
 
49
- ```javascript
52
+ ```ts snippet:SetLogLevel
50
53
  import { setLogLevel } from "@azure/logger";
51
54
 
52
55
  setLogLevel("info");
@@ -59,5 +62,3 @@ In the future, you'll find additional code samples here.
59
62
  ## Contributing
60
63
 
61
64
  If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
62
-
63
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fkeyvault%2Fkeyvault-keys%2FREADME.png)
@@ -0,0 +1,4 @@
1
+ export * from "./models/index.js";
2
+ export { SparkClient } from "./sparkClient.js";
3
+ export * from "./operationsInterfaces/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./models/index.js";
9
+ export { SparkClient } from "./sparkClient.js";
10
+ export * from "./operationsInterfaces/index.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { SparkClient } from \"./sparkClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}